PageSourceSearch

https://datasystems.nu/assets/index-uHQrwOsT.js

js datasystems.nu collected 2026-10-08 06:18:02 UTC 738,759 bytes, 284 lines download raw bytes

vendor: 6,685 bytes, lines 1-9
1var Hm=t=>{throw TypeError(t)};var ad=(t,e,n)=>e.has(t)||Hm("Cannot "+n);var D=(t,e,n)=>(ad(t,e,"read from private field"),n?n.call(t):e.get(t)),Se=(t,e,n)=>e.has(t)?Hm("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),he=(t,e,n,r)=>(ad(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),ct=(t,e,n)=>(ad(t,e,"access private method"),n);var wl=(t,e,n,r)=>({set _(s){he(t,e,s,n)},get _(){return D(t,e,r)}});function jy(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in t)){const o=Object.getOwnPropertyDescriptor(r,s);o&&Object.defineProperty(t,s,o.get?o:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();var gS=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bf(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Oy(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var s=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:function(){return t[r]}})}),n}var Ny={exports:{}},Yu={},Ay={exports:{}},_e={};/**
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 Fa=Symbol.for("react.element"),vS=Symbol.for("react.portal"),yS=Symbol.for("react.fragment"),_S=Symbol.for("react.strict_mode"),wS=Symbol.for("react.profiler"),xS=Symbol.for("react.provider"),bS=Symbol.for("react.context"),SS=Symbol.for("react.forward_ref"),kS=Symbol.for("react.suspense"),ES=Symbol.for("react.memo"),PS=Symbol.for("react.lazy"),Wm=Symbol.iterator;function CS(t){return t===null||typeof t!="object"?null:(t=Wm&&t[Wm]||t["@@iterator"],typeof t=="function"?t:null)}var Ly={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ry=Object.assign,Iy={};function lo(t,e,n){this.props=t,this.context=e,this.refs=Iy,this.updater=n||Ly}lo.prototype.isReactComponent={};lo.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=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,t,e,"setState")};lo.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function My(){}My.prototype=lo.prototype;function Sf(t,e,n){this.props=t,this.context=e,this.refs=Iy,this.updater=n||Ly}var kf=Sf.prototype=new My;kf.constructor=Sf;Ry(kf,lo.prototype);kf.isPureReactComponent=!0;var Vm=Array.isArray,Dy=Object.prototype.hasOwnProperty,Ef={current:null},zy={key:!0,ref:!0,__self:!0,__source:!0};function By(t,e,n){var r,s={},o=null,l=null;if(e!=null)for(r in e.ref!==void 0&&(l=e.ref),e.key!==void 0&&(o=""+e.key),e)Dy.call(e,r)&&!zy.hasOwnProperty(r)&&(s[r]=e[r]);var u=arguments.length-2;if(u===1)s.children=n;else if(1<u){for(var d=Array(u),h=0;h<u;h++)d[h]=arguments[h+2];s.children=d}if(t&&t.defaultProps)for(r in u=t.defaultProps,u)s[r]===void 0&&(s[r]=u[r]);return{$$typeof:Fa,type:t,key:o,ref:l,props:s,_owner:Ef.current}}function TS(t,e){return{$$typeof:Fa,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function Pf(t){return typeof t=="object"&&t!==null&&t.$$typeof===Fa}function jS(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var Zm=/\/+/g;function ld(t,e){return typeof t=="object"&&t!==null&&t.key!=null?jS(""+t.key):e.toString(36)}function Yl(t,e,n,r,s){var o=typeof t;(o==="undefined"||o==="boolean")&&(t=null);var l=!1;if(t===null)l=!0;else switch(o){case"string":case"number":l=!0;break;case"object":switch(t.$$typeof){case Fa:case vS:l=!0}}if(l)return l=t,s=s(l),t=r===""?"."+ld(l,0):r,Vm(s)?(n="",t!=null&&(n=t.replace(Zm,"$&/")+"/"),Yl(s,e,n,"",function(h){return h})):s!=null&&(Pf(s)&&(s=TS(s,n+(!s.key||l&&l.key===s.key?"":(""+s.key).replace(Zm,"$&/")+"/")+t)),e.push(s)),1;if(l=0,r=r===""?".":r+":",Vm(t))for(var u=0;u<t.length;u++){o=t[u];var d=r+ld(o,u);l+=Yl(o,e,n,d,s)}else if(d=CS(t),typeof d=="function")for(t=d.call(t),u=0;!(o=t.next()).done;)o=o.value,d=r+ld(o,u++),l+=Yl(o,e,n,d,s);else if(o==="object")throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return l}function xl(t,e,n){if(t==null)return t;var r=[],s=0;return Yl(t,r,"","",function(o){return e.call(n,o,s++)}),r}function OS(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){(t._status===0||t._status===-1)&&(t._status=1,t._result=n)},function(n){(t._status===0||t._status===-1)&&(t._status=2,t._result=n)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var Ct={current:null},Xl={transition:null},NS={ReactCurrentDispatcher:Ct,ReactCurrentBatchConfig:Xl,ReactCurrentOwner:Ef};function $y(){throw Error("act(...) is not supported in production builds of React.")}_e.Children={map:xl,forEach:function(t,e,n){xl(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return xl(t,function(){e++}),e},toArray:function(t){return xl(t,function(e){return e})||[]},only:function(t){if(!Pf(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};_e.Component=lo;_e.Fragment=yS;_e.Profiler=wS;_e.PureComponent=Sf;_e.StrictMode=_S;_e.Suspense=kS;
vendor: 9,038 bytes, lines 9-33
9_e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=NS;_e.act=$y;_e.cloneElement=function(t,e,n){if(t==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var r=Ry({},t.props),s=t.key,o=t.ref,l=t._owner;if(e!=null){if(e.ref!==void 0&&(o=e.ref,l=Ef.current),e.key!==void 0&&(s=""+e.key),t.type&&t.type.defaultProps)var u=t.type.defaultProps;for(d in e)Dy.call(e,d)&&!zy.hasOwnProperty(d)&&(r[d]=e[d]===void 0&&u!==void 0?u[d]:e[d])}var d=arguments.length-2;if(d===1)r.children=n;else if(1<d){u=Array(d);for(var h=0;h<d;h++)u[h]=arguments[h+2];r.children=u}return{$$typeof:Fa,type:t.type,key:s,ref:o,props:r,_owner:l}};_e.createContext=function(t){return t={$$typeof:bS,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:xS,_context:t},t.Consumer=t};_e.createElement=By;_e.createFactory=function(t){var e=By.bind(null,t);return e.type=t,e};_e.createRef=function(){return{current:null}};_e.forwardRef=function(t){return{$$typeof:SS,render:t}};_e.isValidElement=Pf;_e.lazy=function(t){return{$$typeof:PS,_payload:{_status:-1,_result:t},_init:OS}};_e.memo=function(t,e){return{$$typeof:ES,type:t,compare:e===void 0?null:e}};_e.startTransition=function(t){var e=Xl.transition;Xl.transition={};try{t()}finally{Xl.transition=e}};_e.unstable_act=$y;_e.useCallback=function(t,e){return Ct.current.useCallback(t,e)};_e.useContext=function(t){return Ct.current.useContext(t)};_e.useDebugValue=function(){};_e.useDeferredValue=function(t){return Ct.current.useDeferredValue(t)};_e.useEffect=function(t,e){return Ct.current.useEffect(t,e)};_e.useId=function(){return Ct.current.useId()};_e.useImperativeHandle=function(t,e,n){return Ct.current.useImperativeHandle(t,e,n)};_e.useInsertionEffect=function(t,e){return Ct.current.useInsertionEffect(t,e)};_e.useLayoutEffect=function(t,e){return Ct.current.useLayoutEffect(t,e)};_e.useMemo=function(t,e){return Ct.current.useMemo(t,e)};_e.useReducer=function(t,e,n){return Ct.current.useReducer(t,e,n)};_e.useRef=function(t){return Ct.current.useRef(t)};_e.useState=function(t){return Ct.current.useState(t)};_e.useSyncExternalStore=function(t,e,n){return Ct.current.useSyncExternalStore(t,e,n)};_e.useTransition=function(){return Ct.current.useTransition()};_e.version="18.3.1";Ay.exports=_e;var C=Ay.exports;const Z=bf(C),Fy=jy({__proto__:null,default:Z},[C]);/**
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 AS=C,LS=Symbol.for("react.element"),RS=Symbol.for("react.fragment"),IS=Object.prototype.hasOwnProperty,MS=AS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,DS={key:!0,ref:!0,__self:!0,__source:!0};function Uy(t,e,n){var r,s={},o=null,l=null;n!==void 0&&(o=""+n),e.key!==void 0&&(o=""+e.key),e.ref!==void 0&&(l=e.ref);for(r in e)IS.call(e,r)&&!DS.hasOwnProperty(r)&&(s[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps,e)s[r]===void 0&&(s[r]=e[r]);return{$$typeof:LS,type:t,key:o,ref:l,props:s,_owner:MS.current}}Yu.Fragment=RS;Yu.jsx=Uy;Yu.jsxs=Uy;Ny.exports=Yu;var p=Ny.exports,Hy={exports:{}},qt={},Wy={exports:{}},Vy={};/**
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(t){function e(R,$){var z=R.length;R.push($);e:for(;0<z;){var J=z-1>>>1,G=R[J];if(0<s(G,$))R[J]=$,R[z]=G,z=J;else break e}}function n(R){return R.length===0?null:R[0]}function r(R){if(R.length===0)return null;var $=R[0],z=R.pop();if(z!==$){R[0]=z;e:for(var J=0,G=R.length,ie=G>>>1;J<ie;){var te=2*(J+1)-1,oe=R[te],se=te+1,me=R[se];if(0>s(oe,z))se<G&&0>s(me,oe)?(R[J]=me,R[se]=z,J=se):(R[J]=oe,R[te]=z,J=te);else if(se<G&&0>s(me,z))R[J]=me,R[se]=z,J=se;else break e}}return $}function s(R,$){var z=R.sortIndex-$.sortIndex;return z!==0?z:R.id-$.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;t.unstable_now=function(){return o.now()}}else{var l=Date,u=l.now();t.unstable_now=function(){return l.now()-u}}var d=[],h=[],m=1,g=null,_=3,y=!1,P=!1,x=!1,E=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(R){for(var $=n(h);$!==null;){if($.callback===null)r(h);else if($.startTime<=R)r(h),$.sortIndex=$.expirationTime,e(d,$);else break;$=n(h)}}function T(R){if(x=!1,b(R),!P)if(n(d)!==null)P=!0,ee(O);else{var $=n(h);$!==null&&le(T,$.startTime-R)}}function O(R,$){P=!1,x&&(x=!1,S(B),B=-1),y=!0;var z=_;try{for(b($),g=n(d);g!==null&&(!(g.expirationTime>$)||R&&!Y());){var J=g.callback;if(typeof J=="function"){g.callback=null,_=g.priorityLevel;var G=J(g.expirationTime<=$);$=t.unstable_now(),typeof G=="function"?g.callback=G:g===n(d)&&r(d),b($)}else r(d);g=n(d)}if(g!==null)var ie=!0;else{var te=n(h);te!==null&&le(T,te.startTime-$),ie=!1}return ie}finally{g=null,_=z,y=!1}}var N=!1,I=null,B=-1,H=5,W=-1;function Y(){return!(t.unstable_now()-W<H)}function V(){if(I!==null){var R=t.unstable_now();W=R;var $=!0;try{$=I(!0,R)}finally{$?ce():(N=!1,I=null)}}else N=!1}var ce;if(typeof w=="function")ce=function(){w(V)};else if(typeof MessageChannel<"u"){var q=new MessageChannel,ve=q.port2;q.port1.onmessage=V,ce=function(){ve.postMessage(null)}}else ce=function(){E(V,0)};function ee(R){I=R,N||(N=!0,ce())}function le(R,$){B=E(function(){R(t.unstable_now())},$)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(R){R.callback=null},t.unstable_continueExecution=function(){P||y||(P=!0,ee(O))},t.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<R?Math.floor(1e3/R):5},t.unstable_getCurrentPriorityLevel=function(){return _},t.unstable_getFirstCallbackNode=function(){return n(d)},t.unstable_next=function(R){switch(_){case 1:case 2:case 3:var $=3;break;default:$=_}var z=_;_=$;try{return R()}finally{_=z}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(R,$){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var z=_;_=R;try{return $()}finally{_=z}},t.unstable_scheduleCallback=function(R,$,z){var J=t.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?J+z:J):z=J,R){case 1:var G=-1;break;case 2:G=250;break;case 5:G=1073741823;break;case 4:G=1e4;break;default:G=5e3}return G=z+G,R={id:m++,callback:$,priorityLevel:R,startTime:z,expirationTime:G,sortIndex:-1},z>J?(R.sortIndex=z,e(h,R),n(d)===null&&R===n(h)&&(x?(S(B),B=-1):x=!0,le(T,z-J))):(R.sortIndex=G,e(d,R),P||y||(P=!0,ee(O))),R},t.unstable_shouldYield=Y,t.unstable_wrapCallback=function(R){var $=_;return function(){var z=_;_=$;try{return R.apply(this,arguments)}finally{_=z}}}})(Vy);Wy.exports=Vy;var zS=Wy.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 BS=C,Vt=zS;function U(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Zy=new Set,ha={};function Zi(t,e){Js(t,e),Js(t+"Capture",e)}function Js(t,e){for(ha[t]=e,t=0;t<e.length;t++)Zy.add(e[t])}var yr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),eh=Object.prototype.hasOwnProperty,$S=/^[: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]*$/,qm={},Km={};function FS(t){return eh.call(Km,t)?!0:eh.call(qm,t)?!1:$S.test(t)?Km[t]=!0:(qm[t]=!0,!1)}function US(t,e,n,r){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function HS(t,e,n,r){if(e===null||typeof e>"u"||US(t,e,n,r))return!0;
vendor: 5,200 bytes, lines 33-34
33if(r)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Tt(t,e,n,r,s,o,l){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=o,this.removeEmptyString=l}var lt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){lt[t]=new Tt(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];lt[e]=new Tt(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){lt[t]=new Tt(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){lt[t]=new Tt(t,2,!1,t,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(t){lt[t]=new Tt(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){lt[t]=new Tt(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){lt[t]=new Tt(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){lt[t]=new Tt(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){lt[t]=new Tt(t,5,!1,t.toLowerCase(),null,!1,!1)});var Cf=/[\-:]([a-z])/g;function Tf(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(Cf,Tf);lt[e]=new Tt(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(Cf,Tf);lt[e]=new Tt(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(Cf,Tf);lt[e]=new Tt(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){lt[t]=new Tt(t,1,!1,t.toLowerCase(),null,!1,!1)});lt.xlinkHref=new Tt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){lt[t]=new Tt(t,1,!1,t.toLowerCase(),null,!0,!0)});function jf(t,e,n,r){var s=lt.hasOwnProperty(e)?lt[e]:null;(s!==null?s.type!==0:r||!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(HS(e,n,s,r)&&(n=null),r||s===null?FS(e)&&(n===null?t.removeAttribute(e):t.setAttribute(e,""+n)):s.mustUseProperty?t[s.propertyName]=n===null?s.type===3?!1:"":n:(e=s.attributeName,r=s.attributeNamespace,n===null?t.removeAttribute(e):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}var Er=BS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,bl=Symbol.for("react.element"),ws=Symbol.for("react.portal"),xs=Symbol.for("react.fragment"),Of=Symbol.for("react.strict_mode"),th=Symbol.for("react.profiler"),qy=Symbol.for("react.provider"),Ky=Symbol.for("react.context"),Nf=Symbol.for("react.forward_ref"),nh=Symbol.for("react.suspense"),rh=Symbol.for("react.suspense_list"),Af=Symbol.for("react.memo"),Ir=Symbol.for("react.lazy"),Gy=Symbol.for("react.offscreen"),Gm=Symbol.iterator;function Do(t){return t===null||typeof t!="object"?null:(t=Gm&&t[Gm]||t["@@iterator"],typeof t=="function"?t:null)}var Be=Object.assign,ud;function qo(t){if(ud===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);ud=e&&e[1]||""}return`
34`+ud+t}var cd=!1;function dd(t,e){if(!t||cd)return"";cd=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(h){var r=h}Reflect.construct(t,[],e)}else{try{e.call()}catch(h){r=h}t.call(e.prototype)}else{try{throw Error()}catch(h){r=h}t()}}
vendor: 18,177 bytes, lines 34-37
34catch(h){if(h&&r&&typeof h.stack=="string"){for(var s=h.stack.split(`
35`),o=r.stack.split(`
36`),l=s.length-1,u=o.length-1;1<=l&&0<=u&&s[l]!==o[u];)u--;for(;1<=l&&0<=u;l--,u--)if(s[l]!==o[u]){if(l!==1||u!==1)do if(l--,u--,0>u||s[l]!==o[u]){var d=`
37`+s[l].replace(" at new "," at ");return t.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",t.displayName)),d}while(1<=l&&0<=u);break}}}finally{cd=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?qo(t):""}function WS(t){switch(t.tag){case 5:return qo(t.type);case 16:return qo("Lazy");case 13:return qo("Suspense");case 19:return qo("SuspenseList");case 0:case 2:case 15:return t=dd(t.type,!1),t;case 11:return t=dd(t.type.render,!1),t;case 1:return t=dd(t.type,!0),t;default:return""}}function ih(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case xs:return"Fragment";case ws:return"Portal";case th:return"Profiler";case Of:return"StrictMode";case nh:return"Suspense";case rh:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case Ky:return(t.displayName||"Context")+".Consumer";case qy:return(t._context.displayName||"Context")+".Provider";case Nf:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Af:return e=t.displayName||null,e!==null?e:ih(t.type)||"Memo";case Ir:e=t._payload,t=t._init;try{return ih(t(e))}catch{}}return null}function VS(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ih(e);case 8:return e===Of?"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 e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function ii(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Jy(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function ZS(t){var e=Jy(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,o=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return s.call(this)},set:function(l){r=""+l,o.call(this,l)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Sl(t){t._valueTracker||(t._valueTracker=ZS(t))}function Qy(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=Jy(t)?t.checked?"true":"false":t.value),t=r,t!==n?(e.setValue(t),!0):!1}function fu(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function sh(t,e){var n=e.checked;return Be({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function Jm(t,e){var n=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;n=ii(e.value!=null?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function Yy(t,e){e=e.checked,e!=null&&jf(t,"checked",e,!1)}function oh(t,e){Yy(t,e);var n=ii(e.value),r=e.type;if(n!=null)r==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(r==="submit"||r==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?ah(t,e.type,n):e.hasOwnProperty("defaultValue")&&ah(t,e.type,ii(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function Qm(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function ah(t,e,n){(e!=="number"||fu(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var Ko=Array.isArray;function Ls(t,e,n,r){if(t=t.options,e){e={};for(var s=0;s<n.length;s++)e["$"+n[s]]=!0;for(n=0;n<t.length;n++)s=e.hasOwnProperty("$"+t[n].value),t[n].selected!==s&&(t[n].selected=s),s&&r&&(t[n].defaultSelected=!0)}else{for(n=""+ii(n),e=null,s=0;s<t.length;s++){if(t[s].value===n){t[s].selected=!0,r&&(t[s].defaultSelected=!0);return}e!==null||t[s].disabled||(e=t[s])}e!==null&&(e.selected=!0)}}function lh(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(U(91));return Be({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Ym(t,e){var n=e.value;if(n==null){if(n=e.children,e=e.defaultValue,n!=null){if(e!=null)throw Error(U(92));if(Ko(n)){if(1<n.length)throw Error(U(93));n=n[0]}e=n}e==null&&(e=""),n=e}t._wrapperState={initialValue:ii(n)}}function Xy(t,e){var n=ii(e.value),r=ii(e.defaultValue);n!=null&&(n=""+n,n!==t.value&&(t.value=n),e.defaultValue==null&&t.defaultValue!==n&&(t.defaultValue=n)),r!=null&&(t.defaultValue=""+r)}function Xm(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}function e_(t){switch(t){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 uh(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?e_(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var kl,t_=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,n,r,s){MSApp.execUnsafeLocalFunction(function(){return t(e,n,r,s)})}:t}(function(t,e){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=e;else{for(kl=kl||document.createElement("div"),kl.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=kl.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function fa(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Yo={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},qS=["Webkit","ms","Moz","O"];Object.keys(Yo).forEach(function(t){qS.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Yo[e]=Yo[t]})});function n_(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||Yo.hasOwnProperty(t)&&Yo[t]?(""+e).trim():e+"px"}function r_(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=n_(n,e[n],r);n==="float"&&(n="cssFloat"),r?t.setProperty(n,s):t[n]=s}}var KS=Be({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 ch(t,e){if(e){if(KS[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(U(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(U(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(U(61))}if(e.style!=null&&typeof e.style!="object")throw Error(U(62))}}function dh(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){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 hh=null;function Lf(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var fh=null,Rs=null,Is=null;function eg(t){if(t=Wa(t)){if(typeof fh!="function")throw Error(U(280));var e=t.stateNode;e&&(e=rc(e),fh(t.stateNode,t.type,e))}}function i_(t){Rs?Is?Is.push(t):Is=[t]:Rs=t}function s_(){if(Rs){var t=Rs,e=Is;if(Is=Rs=null,eg(t),e)for(t=0;t<e.length;t++)eg(e[t])}}function o_(t,e){return t(e)}function a_(){}var hd=!1;function l_(t,e,n){if(hd)return t(e,n);hd=!0;try{return o_(t,e,n)}finally{hd=!1,(Rs!==null||Is!==null)&&(a_(),s_())}}function pa(t,e){var n=t.stateNode;if(n===null)return null;var r=rc(n);if(r===null)return null;n=r[e];e:switch(e){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)||(t=t.type,r=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!r;break e;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(U(231,e,typeof n));return n}var ph=!1;if(yr)try{var zo={};Object.defineProperty(zo,"passive",{get:function(){ph=!0}}),window.addEventListener("test",zo,zo),window.removeEventListener("test",zo,zo)}catch{ph=!1}function GS(t,e,n,r,s,o,l,u,d){var h=Array.prototype.slice.call(arguments,3);try{e.apply(n,h)}catch(m){this.onError(m)}}var Xo=!1,pu=null,mu=!1,mh=null,JS={onError:function(t){Xo=!0,pu=t}};function QS(t,e,n,r,s,o,l,u,d){Xo=!1,pu=null,GS.apply(JS,arguments)}function YS(t,e,n,r,s,o,l,u,d){if(QS.apply(this,arguments),Xo){if(Xo){var h=pu;Xo=!1,pu=null}else throw Error(U(198));mu||(mu=!0,mh=h)}}function qi(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&4098&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function u_(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function tg(t){if(qi(t)!==t)throw Error(U(188))}function XS(t){var e=t.alternate;if(!e){if(e=qi(t),e===null)throw Error(U(188));return e!==t?null:t}for(var n=t,r=e;;){var s=n.return;if(s===null)break;var o=s.alternate;if(o===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===o.child){for(o=s.child;o;){if(o===n)return tg(s),t;if(o===r)return tg(s),e;o=o.sibling}throw Error(U(188))}if(n.return!==r.return)n=s,r=o;else{for(var l=!1,u=s.child;u;){if(u===n){l=!0,n=s,r=o;break}if(u===r){l=!0,r=s,n=o;break}u=u.sibling}if(!l){for(u=o.child;u;){if(u===n){l=!0,n=o,r=s;break}if(u===r){l=!0,r=o,n=s;break}u=u.sibling}if(!l)throw Error(U(189))}}if(n.alternate!==r)throw Error(U(190))}if(n.tag!==3)throw Error(U(188));return n.stateNode.current===n?t:e}function c_(t){return t=XS(t),t!==null?d_(t):null}function d_(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var e=d_(t);if(e!==null)return e;t=t.sibling}return null}var h_=Vt.unstable_scheduleCallback,ng=Vt.unstable_cancelCallback,ek=Vt.unstable_shouldYield,tk=Vt.unstable_requestPaint,Ve=Vt.unstable_now,nk=Vt.unstable_getCurrentPriorityLevel,Rf=Vt.unstable_ImmediatePriority,f_=Vt.unstable_UserBlockingPriority,gu=Vt.unstable_NormalPriority,rk=Vt.unstable_LowPriority,p_=Vt.unstable_IdlePriority,Xu=null,Jn=null;function ik(t){if(Jn&&typeof Jn.onCommitFiberRoot=="function")try{Jn.onCommitFiberRoot(Xu,t,void 0,(t.current.flags&128)===128)}catch{}}var Pn=Math.clz32?Math.clz32:ak,sk=Math.log,ok=Math.LN2;function ak(t){return t>>>=0,t===0?32:31-(sk(t)/ok|0)|0}var El=64,Pl=4194304;function Go(t){switch(t&-t){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 t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function vu(t,e){var n=t.pendingLanes;if(n===0)return 0;var r=0,s=t.suspendedLanes,o=t.pingedLanes,l=n&268435455;if(l!==0){var u=l&~s;u!==0?r=Go(u):(o&=l,o!==0&&(r=Go(o)))}else l=n&~s,l!==0?r=Go(l):o!==0&&(r=Go(o));if(r===0)return 0;if(e!==0&&e!==r&&!(e&s)&&(s=r&-r,o=e&-e,s>=o||s===16&&(o&4194240)!==0))return e;if(r&4&&(r|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=r;0<e;)n=31-Pn(e),s=1<<n,r|=t[n],e&=~s;return r}function lk(t,e){switch(t){case 1:case 2:case 4:return e+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 e+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 uk(t,e){for(var n=t.suspendedLanes,r=t.pingedLanes,s=t.expirationTimes,o=t.pendingLanes;0<o;){var l=31-Pn(o),u=1<<l,d=s[l];d===-1?(!(u&n)||u&r)&&(s[l]=lk(u,e)):d<=e&&(t.expiredLanes|=u),o&=~u}}function gh(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function m_(){var t=El;return El<<=1,!(El&4194240)&&(El=64),t}function fd(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Ua(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Pn(e),t[e]=n}function ck(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var r=t.eventTimes;for(t=t.expirationTimes;0<n;){var s=31-Pn(n),o=1<<s;e[s]=0,r[s]=-1,t[s]=-1,n&=~o}}function If(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var r=31-Pn(n),s=1<<r;s&e|t[r]&e&&(t[r]|=e),n&=~s}}var Ee=0;function g_(t){return t&=-t,1<t?4<t?t&268435455?16:536870912:4:1}var v_,Mf,y_,__,w_,vh=!1,Cl=[],Kr=null,Gr=null,Jr=null,ma=new Map,ga=new Map,Dr=[],dk="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 rg(t,e){switch(t){case"focusin":case"focusout":Kr=null;break;case"dragenter":case"dragleave":Gr=null;break;case"mouseover":case"mouseout":Jr=null;break;case"pointerover":case"pointerout":ma.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":ga.delete(e.pointerId)}}function Bo(t,e,n,r,s,o){return t===null||t.nativeEvent!==o?(t={blockedOn:e,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[s]},e!==null&&(e=Wa(e),e!==null&&Mf(e)),t):(t.eventSystemFlags|=r,e=t.targetContainers,s!==null&&e.indexOf(s)===-1&&e.push(s),t)}function hk(t,e,n,r,s){switch(e){case"focusin":return Kr=Bo(Kr,t,e,n,r,s),!0;case"dragenter":return Gr=Bo(Gr,t,e,n,r,s),!0;case"mouseover":return Jr=Bo(Jr,t,e,n,r,s),!0;case"pointerover":var o=s.pointerId;return ma.set(o,Bo(ma.get(o)||null,t,e,n,r,s)),!0;case"gotpointercapture":return o=s.pointerId,ga.set(o,Bo(ga.get(o)||null,t,e,n,r,s)),!0}return!1}function x_(t){var e=Ti(t.target);if(e!==null){var n=qi(e);if(n!==null){if(e=n.tag,e===13){if(e=u_(n),e!==null){t.blockedOn=e,w_(t.priority,function(){y_(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function eu(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=yh(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n===null){n=t.nativeEvent;var r=new n.constructor(n.type,n);hh=r,n.target.dispatchEvent(r),hh=null}else return e=Wa(n),e!==null&&Mf(e),t.blockedOn=n,!1;e.shift()}return!0}function ig(t,e,n){eu(t)&&n.delete(e)}function fk(){vh=!1,Kr!==null&&eu(Kr)&&(Kr=null),Gr!==null&&eu(Gr)&&(Gr=null),Jr!==null&&eu(Jr)&&(Jr=null),ma.forEach(ig),ga.forEach(ig)}function $o(t,e){t.blockedOn===e&&(t.blockedOn=null,vh||(vh=!0,Vt.unstable_scheduleCallback(Vt.unstable_NormalPriority,fk)))}function va(t){function e(s){return $o(s,t)}if(0<Cl.length){$o(Cl[0],t);for(var n=1;n<Cl.length;n++){var r=Cl[n];r.blockedOn===t&&(r.blockedOn=null)}}for(Kr!==null&&$o(Kr,t),Gr!==null&&$o(Gr,t),Jr!==null&&$o(Jr,t),ma.forEach(e),ga.forEach(e),n=0;n<Dr.length;n++)r=Dr[n],r.blockedOn===t&&(r.blockedOn=null);for(;0<Dr.length&&(n=Dr[0],n.blockedOn===null);)x_(n),n.blockedOn===null&&Dr.shift()}var Ms=Er.ReactCurrentBatchConfig,yu=!0;function pk(t,e,n,r){var s=Ee,o=Ms.transition;Ms.transition=null;try{Ee=1,Df(t,e,n,r)}finally{Ee=s,Ms.transition=o}}function mk(t,e,n,r){var s=Ee,o=Ms.transition;Ms.transition=null;try{Ee=4,Df(t,e,n,r)}finally{Ee=s,Ms.transition=o}}function Df(t,e,n,r){if(yu){var s=yh(t,e,n,r);if(s===null)Sd(t,e,r,_u,n),rg(t,r);else if(hk(s,t,e,n,r))r.stopPropagation();else if(rg(t,r),e&4&&-1<dk.indexOf(t)){for(;s!==null;){var o=Wa(s);if(o!==null&&v_(o),o=yh(t,e,n,r),o===null&&Sd(t,e,r,_u,n),o===s)break;s=o}s!==null&&r.stopPropagation()}else Sd(t,e,r,null,n)}}var _u=null;function yh(t,e,n,r){if(_u=null,t=Lf(r),t=Ti(t),t!==null)if(e=qi(t),e===null)t=null;else if(n=e.tag,n===13){if(t=u_(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null);return _u=t,null}
vendor: 9,127 bytes, line 37
37function b_(t){switch(t){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(nk()){case Rf:return 1;case f_:return 4;case gu:case rk:return 16;case p_:return 536870912;default:return 16}default:return 16}}var Vr=null,zf=null,tu=null;function S_(){if(tu)return tu;var t,e=zf,n=e.length,r,s="value"in Vr?Vr.value:Vr.textContent,o=s.length;for(t=0;t<n&&e[t]===s[t];t++);var l=n-t;for(r=1;r<=l&&e[n-r]===s[o-r];r++);return tu=s.slice(t,1<r?1-r:void 0)}function nu(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Tl(){return!0}function sg(){return!1}function Kt(t){function e(n,r,s,o,l){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=o,this.target=l,this.currentTarget=null;for(var u in t)t.hasOwnProperty(u)&&(n=t[u],this[u]=n?n(o):o[u]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Tl:sg,this.isPropagationStopped=sg,this}return Be(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Tl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Tl)},persist:function(){},isPersistent:Tl}),e}var uo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Bf=Kt(uo),Ha=Be({},uo,{view:0,detail:0}),gk=Kt(Ha),pd,md,Fo,ec=Be({},Ha,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$f,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Fo&&(Fo&&t.type==="mousemove"?(pd=t.screenX-Fo.screenX,md=t.screenY-Fo.screenY):md=pd=0,Fo=t),pd)},movementY:function(t){return"movementY"in t?t.movementY:md}}),og=Kt(ec),vk=Be({},ec,{dataTransfer:0}),yk=Kt(vk),_k=Be({},Ha,{relatedTarget:0}),gd=Kt(_k),wk=Be({},uo,{animationName:0,elapsedTime:0,pseudoElement:0}),xk=Kt(wk),bk=Be({},uo,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Sk=Kt(bk),kk=Be({},uo,{data:0}),ag=Kt(kk),Ek={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Pk={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"},Ck={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Tk(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Ck[t])?!!e[t]:!1}function $f(){return Tk}var jk=Be({},Ha,{key:function(t){if(t.key){var e=Ek[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=nu(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Pk[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$f,charCode:function(t){return t.type==="keypress"?nu(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?nu(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Ok=Kt(jk),Nk=Be({},ec,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),lg=Kt(Nk),Ak=Be({},Ha,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$f}),Lk=Kt(Ak),Rk=Be({},uo,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ik=Kt(Rk),Mk=Be({},ec,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Dk=Kt(Mk),zk=[9,13,27,32],Ff=yr&&"CompositionEvent"in window,ea=null;yr&&"documentMode"in document&&(ea=document.documentMode);var Bk=yr&&"TextEvent"in window&&!ea,k_=yr&&(!Ff||ea&&8<ea&&11>=ea),ug=" ",cg=!1;function E_(t,e){switch(t){case"keyup":return zk.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function P_(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var bs=!1;function $k(t,e){switch(t){case"compositionend":return P_(e);case"keypress":return e.which!==32?null:(cg=!0,ug);case"textInput":return t=e.data,t===ug&&cg?null:t;default:return null}}function Fk(t,e){if(bs)return t==="compositionend"||!Ff&&E_(t,e)?(t=S_(),tu=zf=Vr=null,bs=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return k_&&e.locale!=="ko"?null:e.data;default:return null}}var Uk={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 dg(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Uk[t.type]:e==="textarea"}function C_(t,e,n,r){i_(r),e=wu(e,"onChange"),0<e.length&&(n=new Bf("onChange","change",null,n,r),t.push({event:n,listeners:e}))}var ta=null,ya=null;function Hk(t){z_(t,0)}function tc(t){var e=Es(t);if(Qy(e))return t}function Wk(t,e){if(t==="change")return e}var T_=!1;if(yr){var vd;if(yr){var yd="oninput"in document;if(!yd){var hg=document.createElement("div");hg.setAttribute("oninput","return;"),yd=typeof hg.oninput=="function"}vd=yd}else vd=!1;T_=vd&&(!document.documentMode||9<document.documentMode)}function fg(){ta&&(ta.detachEvent("onpropertychange",j_),ya=ta=null)}function j_(t){if(t.propertyName==="value"&&tc(ya)){var e=[];C_(e,ya,t,Lf(t)),l_(Hk,e)}}function Vk(t,e,n){t==="focusin"?(fg(),ta=e,ya=n,ta.attachEvent("onpropertychange",j_)):t==="focusout"&&fg()}function Zk(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return tc(ya)}function qk(t,e){if(t==="click")return tc(e)}function Kk(t,e){if(t==="input"||t==="change")return tc(e)}function Gk(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Tn=typeof Object.is=="function"?Object.is:Gk;function _a(t,e){if(Tn(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!eh.call(e,s)||!Tn(t[s],e[s]))return!1}return!0}function pg(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function mg(t,e){var n=pg(t);t=0;for(var r;n;){if(n.nodeType===3){if(r=t+n.textContent.length,t<=e&&r>=e)return{node:n,offset:e-t};t=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=pg(n)}}function O_(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?O_(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function N_(){for(var t=window,e=fu();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=fu(t.document)}return e}function Uf(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function Jk(t){var e=N_(),n=t.focusedElem,r=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&O_(n.ownerDocument.documentElement,n)){if(r!==null&&Uf(n)){if
vendor: 5,775 bytes, line 37
37(e=r.start,t=r.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var s=n.textContent.length,o=Math.min(r.start,s);r=r.end===void 0?o:Math.min(r.end,s),!t.extend&&o>r&&(s=r,r=o,o=s),s=mg(n,o);var l=mg(n,r);s&&l&&(t.rangeCount!==1||t.anchorNode!==s.node||t.anchorOffset!==s.offset||t.focusNode!==l.node||t.focusOffset!==l.offset)&&(e=e.createRange(),e.setStart(s.node,s.offset),t.removeAllRanges(),o>r?(t.addRange(e),t.extend(l.node,l.offset)):(e.setEnd(l.node,l.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<e.length;n++)t=e[n],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var Qk=yr&&"documentMode"in document&&11>=document.documentMode,Ss=null,_h=null,na=null,wh=!1;function gg(t,e,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;wh||Ss==null||Ss!==fu(r)||(r=Ss,"selectionStart"in r&&Uf(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),na&&_a(na,r)||(na=r,r=wu(_h,"onSelect"),0<r.length&&(e=new Bf("onSelect","select",null,e,n),t.push({event:e,listeners:r}),e.target=Ss)))}function jl(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var ks={animationend:jl("Animation","AnimationEnd"),animationiteration:jl("Animation","AnimationIteration"),animationstart:jl("Animation","AnimationStart"),transitionend:jl("Transition","TransitionEnd")},_d={},A_={};yr&&(A_=document.createElement("div").style,"AnimationEvent"in window||(delete ks.animationend.animation,delete ks.animationiteration.animation,delete ks.animationstart.animation),"TransitionEvent"in window||delete ks.transitionend.transition);function nc(t){if(_d[t])return _d[t];if(!ks[t])return t;var e=ks[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in A_)return _d[t]=e[n];return t}var L_=nc("animationend"),R_=nc("animationiteration"),I_=nc("animationstart"),M_=nc("transitionend"),D_=new Map,vg="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 li(t,e){D_.set(t,e),Zi(e,[t])}for(var wd=0;wd<vg.length;wd++){var xd=vg[wd],Yk=xd.toLowerCase(),Xk=xd[0].toUpperCase()+xd.slice(1);li(Yk,"on"+Xk)}li(L_,"onAnimationEnd");li(R_,"onAnimationIteration");li(I_,"onAnimationStart");li("dblclick","onDoubleClick");li("focusin","onFocus");li("focusout","onBlur");li(M_,"onTransitionEnd");Js("onMouseEnter",["mouseout","mouseover"]);Js("onMouseLeave",["mouseout","mouseover"]);Js("onPointerEnter",["pointerout","pointerover"]);Js("onPointerLeave",["pointerout","pointerover"]);Zi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Zi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Zi("onBeforeInput",["compositionend","keypress","textInput","paste"]);Zi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Zi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Zi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Jo="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(" "),eE=new Set("cancel close invalid load scroll toggle".split(" ").concat(Jo));function yg(t,e,n){var r=t.type||"unknown-event";t.currentTarget=n,YS(r,e,void 0,t),t.currentTarget=null}function z_(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var r=t[n],s=r.event;r=r.listeners;e:{var o=void 0;if(e)for(var l=r.length-1;0<=l;l--){var u=r[l],d=u.instance,h=u.currentTarget;if(u=u.listener,d!==o&&s.isPropagationStopped())break e;yg(s,u,h),o=d}else for(l=0;l<r.length;l++){if(u=r[l],d=u.instance,h=u.currentTarget,u=u.listener,d!==o&&s.isPropagationStopped())break e;yg(s,u,h),o=d}}}if(mu)throw t=mh,mu=!1,mh=null,t}function Ae(t,e){var n=e[Eh];n===void 0&&(n=e[Eh]=new Set);var r=t+"__bubble";n.has(r)||(B_(e,t,2,!1),n.add(r))}function bd(t,e,n){var r=0;e&&(r|=4),B_(n,t,r,e)}var Ol="_reactListening"+Math.random().toString(36).slice(2);function wa(t){if(!t[Ol]){t[Ol]=!0,Zy.forEach(function(n){n!=="selectionchange"&&(eE.has(n)||bd(n,!1,t),bd(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Ol]||(e[Ol]=!0,bd("selectionchange",!1,e))}}function B_(t,e,n,r){switch(b_(e)){case 1:var s=pk;break;case 4:s=mk;break;default:s=Df}n=s.bind(null,e,n,t),s=void 0,!ph||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(s=!0),r?s!==void 0?t.addEventListener(e,n,{capture:!0,passive:s}):t.addEventListener(e,n,!0):s!==void 0?t.addEventListener(e,n,{passive:s}):t.addEventListener(e,n,!1)}function Sd(t,e,n,r,s){var o=r;if(!(e&1)&&!(e&2)&&r!==null)e:for(;;){if(r===null)return;var l=r.tag;if(l===3||l===4){var u=r.stateNode.containerInfo;
vendor: 4,410 bytes, line 37
37if(u===s||u.nodeType===8&&u.parentNode===s)break;if(l===4)for(l=r.return;l!==null;){var d=l.tag;if((d===3||d===4)&&(d=l.stateNode.containerInfo,d===s||d.nodeType===8&&d.parentNode===s))return;l=l.return}for(;u!==null;){if(l=Ti(u),l===null)return;if(d=l.tag,d===5||d===6){r=o=l;continue e}u=u.parentNode}}r=r.return}l_(function(){var h=o,m=Lf(n),g=[];e:{var _=D_.get(t);if(_!==void 0){var y=Bf,P=t;switch(t){case"keypress":if(nu(n)===0)break e;case"keydown":case"keyup":y=Ok;break;case"focusin":P="focus",y=gd;break;case"focusout":P="blur",y=gd;break;case"beforeblur":case"afterblur":y=gd;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":y=og;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=yk;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=Lk;break;case L_:case R_:case I_:y=xk;break;case M_:y=Ik;break;case"scroll":y=gk;break;case"wheel":y=Dk;break;case"copy":case"cut":case"paste":y=Sk;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=lg}var x=(e&4)!==0,E=!x&&t==="scroll",S=x?_!==null?_+"Capture":null:_;x=[];for(var w=h,b;w!==null;){b=w;var T=b.stateNode;if(b.tag===5&&T!==null&&(b=T,S!==null&&(T=pa(w,S),T!=null&&x.push(xa(w,T,b)))),E)break;w=w.return}0<x.length&&(_=new y(_,P,null,n,m),g.push({event:_,listeners:x}))}}if(!(e&7)){e:{if(_=t==="mouseover"||t==="pointerover",y=t==="mouseout"||t==="pointerout",_&&n!==hh&&(P=n.relatedTarget||n.fromElement)&&(Ti(P)||P[_r]))break e;if((y||_)&&(_=m.window===m?m:(_=m.ownerDocument)?_.defaultView||_.parentWindow:window,y?(P=n.relatedTarget||n.toElement,y=h,P=P?Ti(P):null,P!==null&&(E=qi(P),P!==E||P.tag!==5&&P.tag!==6)&&(P=null)):(y=null,P=h),y!==P)){if(x=og,T="onMouseLeave",S="onMouseEnter",w="mouse",(t==="pointerout"||t==="pointerover")&&(x=lg,T="onPointerLeave",S="onPointerEnter",w="pointer"),E=y==null?_:Es(y),b=P==null?_:Es(P),_=new x(T,w+"leave",y,n,m),_.target=E,_.relatedTarget=b,T=null,Ti(m)===h&&(x=new x(S,w+"enter",P,n,m),x.target=b,x.relatedTarget=E,T=x),E=T,y&&P)t:{for(x=y,S=P,w=0,b=x;b;b=ds(b))w++;for(b=0,T=S;T;T=ds(T))b++;for(;0<w-b;)x=ds(x),w--;for(;0<b-w;)S=ds(S),b--;for(;w--;){if(x===S||S!==null&&x===S.alternate)break t;x=ds(x),S=ds(S)}x=null}else x=null;y!==null&&_g(g,_,y,x,!1),P!==null&&E!==null&&_g(g,E,P,x,!0)}}e:{if(_=h?Es(h):window,y=_.nodeName&&_.nodeName.toLowerCase(),y==="select"||y==="input"&&_.type==="file")var O=Wk;else if(dg(_))if(T_)O=Kk;else{O=Zk;var N=Vk}else(y=_.nodeName)&&y.toLowerCase()==="input"&&(_.type==="checkbox"||_.type==="radio")&&(O=qk);if(O&&(O=O(t,h))){C_(g,O,n,m);break e}N&&N(t,_,h),t==="focusout"&&(N=_._wrapperState)&&N.controlled&&_.type==="number"&&ah(_,"number",_.value)}switch(N=h?Es(h):window,t){case"focusin":(dg(N)||N.contentEditable==="true")&&(Ss=N,_h=h,na=null);break;case"focusout":na=_h=Ss=null;break;case"mousedown":wh=!0;break;case"contextmenu":case"mouseup":case"dragend":wh=!1,gg(g,n,m);break;case"selectionchange":if(Qk)break;case"keydown":case"keyup":gg(g,n,m)}var I;if(Ff)e:{switch(t){case"compositionstart":var B="onCompositionStart";break e;case"compositionend":B="onCompositionEnd";break e;case"compositionupdate":B="onCompositionUpdate";break e}B=void 0}else bs?E_(t,n)&&(B="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(B="onCompositionStart");B&&(k_&&n.locale!=="ko"&&(bs||B!=="onCompositionStart"?B==="onCompositionEnd"&&bs&&(I=S_()):(Vr=m,zf="value"in Vr?Vr.value:Vr.textContent,bs=!0)),N=wu(h,B),0<N.length&&(B=new ag(B,t,null,n,m),g.push({event:B,listeners:N}),I?B.data=I:(I=P_(n),I!==null&&(B.data=I)))),(I=Bk?$k(t,n):Fk(t,n))&&(h=wu(h,"onBeforeInput"),0<h.length&&(m=new ag("onBeforeInput","beforeinput",null,n,m),g.push({event:m,listeners:h}),m.data=I))}z_(g,e)})}function xa(t,e,n){return{instance:t,listener:e,currentTarget:n}}function wu(t,e){for(var n=e+"Capture",r=[];t!==null;){var s=t,o=s.stateNode;s.tag===5&&o!==null&&(s=o,o=pa(t,n),o!=null&&r.unshift(xa(t,o,s)),o=pa(t,e),o!=null&&r.push(xa(t,o,s))),t=t.return}return r}function ds(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function _g(t,e,n,r,s){for(var o=e._reactName,l=[];n!==null&&n!==r;){var u=n,d=u.alternate,h=u.stateNode;
vendor: 5,730 bytes, lines 37-38
37if(d!==null&&d===r)break;u.tag===5&&h!==null&&(u=h,s?(d=pa(n,o),d!=null&&l.unshift(xa(n,d,u))):s||(d=pa(n,o),d!=null&&l.push(xa(n,d,u)))),n=n.return}l.length!==0&&t.push({event:e,listeners:l})}var tE=/\r\n?/g,nE=/\u0000|\uFFFD/g;function wg(t){return(typeof t=="string"?t:""+t).replace(tE,`
38`).replace(nE,"")}function Nl(t,e,n){if(e=wg(e),wg(t)!==e&&n)throw Error(U(425))}function xu(){}var xh=null,bh=null;function Sh(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var kh=typeof setTimeout=="function"?setTimeout:void 0,rE=typeof clearTimeout=="function"?clearTimeout:void 0,xg=typeof Promise=="function"?Promise:void 0,iE=typeof queueMicrotask=="function"?queueMicrotask:typeof xg<"u"?function(t){return xg.resolve(null).then(t).catch(sE)}:kh;function sE(t){setTimeout(function(){throw t})}function kd(t,e){var n=e,r=0;do{var s=n.nextSibling;if(t.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){t.removeChild(s),va(e);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);va(e)}function Qr(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return t}function bg(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"){if(e===0)return t;e--}else n==="/$"&&e++}t=t.previousSibling}return null}var co=Math.random().toString(36).slice(2),Kn="__reactFiber$"+co,ba="__reactProps$"+co,_r="__reactContainer$"+co,Eh="__reactEvents$"+co,oE="__reactListeners$"+co,aE="__reactHandles$"+co;function Ti(t){var e=t[Kn];if(e)return e;for(var n=t.parentNode;n;){if(e=n[_r]||n[Kn]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=bg(t);t!==null;){if(n=t[Kn])return n;t=bg(t)}return e}t=n,n=t.parentNode}return null}function Wa(t){return t=t[Kn]||t[_r],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function Es(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(U(33))}function rc(t){return t[ba]||null}var Ph=[],Ps=-1;function ui(t){return{current:t}}function Le(t){0>Ps||(t.current=Ph[Ps],Ph[Ps]=null,Ps--)}function Oe(t,e){Ps++,Ph[Ps]=t.current,t.current=e}var si={},mt=ui(si),Lt=ui(!1),$i=si;function Qs(t,e){var n=t.type.contextTypes;if(!n)return si;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var s={},o;for(o in n)s[o]=e[o];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=s),s}function Rt(t){return t=t.childContextTypes,t!=null}function bu(){Le(Lt),Le(mt)}function Sg(t,e,n){if(mt.current!==si)throw Error(U(168));Oe(mt,e),Oe(Lt,n)}function $_(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in e))throw Error(U(108,VS(t)||"Unknown",s));return Be({},n,r)}function Su(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||si,$i=mt.current,Oe(mt,t),Oe(Lt,Lt.current),!0}function kg(t,e,n){var r=t.stateNode;if(!r)throw Error(U(169));n?(t=$_(t,e,$i),r.__reactInternalMemoizedMergedChildContext=t,Le(Lt),Le(mt),Oe(mt,t)):Le(Lt),Oe(Lt,n)}var hr=null,ic=!1,Ed=!1;function F_(t){hr===null?hr=[t]:hr.push(t)}function lE(t){ic=!0,F_(t)}function ci(){if(!Ed&&hr!==null){Ed=!0;var t=0,e=Ee;try{var n=hr;for(Ee=1;t<n.length;t++){var r=n[t];do r=r(!0);while(r!==null)}hr=null,ic=!1}catch(s){throw hr!==null&&(hr=hr.slice(t+1)),h_(Rf,ci),s}finally{Ee=e,Ed=!1}}return null}var Cs=[],Ts=0,ku=null,Eu=0,rn=[],sn=0,Fi=null,pr=1,mr="";function Si(t,e){Cs[Ts++]=Eu,Cs[Ts++]=ku,ku=t,Eu=e}function U_(t,e,n){rn[sn++]=pr,rn[sn++]=mr,rn[sn++]=Fi,Fi=t;var r=pr;t=mr;var s=32-Pn(r)-1;r&=~(1<<s),n+=1;var o=32-Pn(e)+s;if(30<o){var l=s-s%5;o=(r&(1<<l)-1).toString(32),r>>=l,s-=l,pr=1<<32-Pn(e)+s|n<<s|r,mr=o+t}else pr=1<<o|n<<s|r,mr=t}function Hf(t){t.return!==null&&(Si(t,1),U_(t,1,0))}function Wf(t){for(;t===ku;)ku=Cs[--Ts],Cs[Ts]=null,Eu=Cs[--Ts],Cs[Ts]=null;for(;t===Fi;)Fi=rn[--sn],rn[sn]=null,mr=rn[--sn],rn[sn]=null,pr=rn[--sn],rn[sn]=null}var Ht=null,Ut=null,Re=!1,En=null;function H_(t,e){var n=on(5,null,null,0);n.elementType="DELETED",n.stateNode=e,n.return=t,e=t.deletions,e===null?(t.deletions=[n],t.flags|=16):e.push(n)}function Eg(t,e){switch(t.tag){case 5:var n=t.type;return e=e.nodeType!==1||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(t.stateNode=e,Ht=t,Ut=Qr(e.firstChild),!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,Ht=t,Ut=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(n=Fi!==null?{id:pr,overflow:mr}:null,t.memoizedState={dehydrated:e,treeContext:n,retryLane:1073741824},n=on(18,null,null,0),n.stateNode=e,n.return=t,t.child=n,Ht=t,Ut=null,!0):!1;default:return!1}}function Ch(t){return(t.mode&1)!==0&&(t.flags&128)===0}function Th(t){if(Re){var e=Ut;if(e){var n=e;if(!Eg(t,e)){if(Ch(t))throw Error(U(418));e=Qr(n.nextSibling);var r=Ht;e&&Eg(t,e)?H_(r,n):(t.flags=t.flags&-4097|2,Re=!1,Ht=t)}}else{if(Ch(t))throw Error(U(418));t.flags=t.flags&-4097|2,Re=!1,Ht=t}}}function Pg(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;Ht=t}function Al(t){if(t!==Ht)return!1;if(!Re)return Pg(t),Re=!0,!1;var e;if((e=t.tag!==3)&&!(e=t.tag!==5)&&(e=t.type,e=e!=="head"&&e!=="body"&&!Sh(t.type,t.memoizedProps)),e&&(e=Ut)){if(Ch(t))throw W_(),Error(U(418));for(;e;)H_(t,e),e=Qr(e.nextSibling)}if(Pg(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(U(317));e:{for(t=t.nextSibling,e=0;t;
vendor: 11,573 bytes, line 38
38){if(t.nodeType===8){var n=t.data;if(n==="/$"){if(e===0){Ut=Qr(t.nextSibling);break e}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++}t=t.nextSibling}Ut=null}}else Ut=Ht?Qr(t.stateNode.nextSibling):null;return!0}function W_(){for(var t=Ut;t;)t=Qr(t.nextSibling)}function Ys(){Ut=Ht=null,Re=!1}function Vf(t){En===null?En=[t]:En.push(t)}var uE=Er.ReactCurrentBatchConfig;function Uo(t,e,n){if(t=n.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(U(309));var r=n.stateNode}if(!r)throw Error(U(147,t));var s=r,o=""+t;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===o?e.ref:(e=function(l){var u=s.refs;l===null?delete u[o]:u[o]=l},e._stringRef=o,e)}if(typeof t!="string")throw Error(U(284));if(!n._owner)throw Error(U(290,t))}return t}function Ll(t,e){throw t=Object.prototype.toString.call(e),Error(U(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function Cg(t){var e=t._init;return e(t._payload)}function V_(t){function e(S,w){if(t){var b=S.deletions;b===null?(S.deletions=[w],S.flags|=16):b.push(w)}}function n(S,w){if(!t)return null;for(;w!==null;)e(S,w),w=w.sibling;return null}function r(S,w){for(S=new Map;w!==null;)w.key!==null?S.set(w.key,w):S.set(w.index,w),w=w.sibling;return S}function s(S,w){return S=ti(S,w),S.index=0,S.sibling=null,S}function o(S,w,b){return S.index=b,t?(b=S.alternate,b!==null?(b=b.index,b<w?(S.flags|=2,w):b):(S.flags|=2,w)):(S.flags|=1048576,w)}function l(S){return t&&S.alternate===null&&(S.flags|=2),S}function u(S,w,b,T){return w===null||w.tag!==6?(w=Ad(b,S.mode,T),w.return=S,w):(w=s(w,b),w.return=S,w)}function d(S,w,b,T){var O=b.type;return O===xs?m(S,w,b.props.children,T,b.key):w!==null&&(w.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===Ir&&Cg(O)===w.type)?(T=s(w,b.props),T.ref=Uo(S,w,b),T.return=S,T):(T=uu(b.type,b.key,b.props,null,S.mode,T),T.ref=Uo(S,w,b),T.return=S,T)}function h(S,w,b,T){return w===null||w.tag!==4||w.stateNode.containerInfo!==b.containerInfo||w.stateNode.implementation!==b.implementation?(w=Ld(b,S.mode,T),w.return=S,w):(w=s(w,b.children||[]),w.return=S,w)}function m(S,w,b,T,O){return w===null||w.tag!==7?(w=Bi(b,S.mode,T,O),w.return=S,w):(w=s(w,b),w.return=S,w)}function g(S,w,b){if(typeof w=="string"&&w!==""||typeof w=="number")return w=Ad(""+w,S.mode,b),w.return=S,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case bl:return b=uu(w.type,w.key,w.props,null,S.mode,b),b.ref=Uo(S,null,w),b.return=S,b;case ws:return w=Ld(w,S.mode,b),w.return=S,w;case Ir:var T=w._init;return g(S,T(w._payload),b)}if(Ko(w)||Do(w))return w=Bi(w,S.mode,b,null),w.return=S,w;Ll(S,w)}return null}function _(S,w,b,T){var O=w!==null?w.key:null;if(typeof b=="string"&&b!==""||typeof b=="number")return O!==null?null:u(S,w,""+b,T);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case bl:return b.key===O?d(S,w,b,T):null;case ws:return b.key===O?h(S,w,b,T):null;case Ir:return O=b._init,_(S,w,O(b._payload),T)}if(Ko(b)||Do(b))return O!==null?null:m(S,w,b,T,null);Ll(S,b)}return null}function y(S,w,b,T,O){if(typeof T=="string"&&T!==""||typeof T=="number")return S=S.get(b)||null,u(w,S,""+T,O);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case bl:return S=S.get(T.key===null?b:T.key)||null,d(w,S,T,O);case ws:return S=S.get(T.key===null?b:T.key)||null,h(w,S,T,O);case Ir:var N=T._init;return y(S,w,b,N(T._payload),O)}if(Ko(T)||Do(T))return S=S.get(b)||null,m(w,S,T,O,null);Ll(w,T)}return null}function P(S,w,b,T){for(var O=null,N=null,I=w,B=w=0,H=null;I!==null&&B<b.length;B++){I.index>B?(H=I,I=null):H=I.sibling;var W=_(S,I,b[B],T);if(W===null){I===null&&(I=H);break}t&&I&&W.alternate===null&&e(S,I),w=o(W,w,B),N===null?O=W:N.sibling=W,N=W,I=H}if(B===b.length)return n(S,I),Re&&Si(S,B),O;if(I===null){for(;B<b.length;B++)I=g(S,b[B],T),I!==null&&(w=o(I,w,B),N===null?O=I:N.sibling=I,N=I);return Re&&Si(S,B),O}for(I=r(S,I);B<b.length;B++)H=y(I,S,B,b[B],T),H!==null&&(t&&H.alternate!==null&&I.delete(H.key===null?B:H.key),w=o(H,w,B),N===null?O=H:N.sibling=H,N=H);return t&&I.forEach(function(Y){return e(S,Y)}),Re&&Si(S,B),O}function x(S,w,b,T){var O=Do(b);if(typeof O!="function")throw Error(U(150));if(b=O.call(b),b==null)throw Error(U(151));for(var N=O=null,I=w,B=w=0,H=null,W=b.next();I!==null&&!W.done;B++,W=b.next()){I.index>B?(H=I,I=null):H=I.sibling;var Y=_(S,I,W.value,T);if(Y===null){I===null&&(I=H);break}t&&I&&Y.alternate===null&&e(S,I),w=o(Y,w,B),N===null?O=Y:N.sibling=Y,N=Y,I=H}if(W.done)return n(S,I),Re&&Si(S,B),O;if(I===null){for(;!W.done;B++,W=b.next())W=g(S,W.value,T),W!==null&&(w=o(W,w,B),N===null?O=W:N.sibling=W,N=W);return Re&&Si(S,B),O}for(I=r(S,I);!W.done;B++,W=b.next())W=y(I,S,B,W.value,T),W!==null&&(t&&W.alternate!==null&&I.delete(W.key===null?B:W.key),w=o(W,w,B),N===null?O=W:N.sibling=W,N=W);return t&&I.forEach(function(V){return e(S,V)}),Re&&Si(S,B),O}function E(S,w,b,T){if(typeof b=="object"&&b!==null&&b.type===xs&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case bl:e:{for(var O=b.key,N=w;N!==null;){if(N.key===O){if(O=b.type,O===xs){if(N.tag===7){n(S,N.sibling),w=s(N,b.props.children),w.return=S,S=w;break e}}else if(N.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===Ir&&Cg(O)===N.type){n(S,N.sibling),w=s(N,b.props),w.ref=Uo(S,N,b),w.return=S,S=w;break e}n(S,N);break}else e(S,N);N=N.sibling}b.type===xs?(w=Bi(b.props.children,S.mode,T,b.key),w.return=S,S=w):(T=uu(b.type,b.key,b.props,null,S.mode,T),T.ref=Uo(S,w,b),T.return=S,S=T)}return l(S);case ws:e:{for(N=b.key;w!==null;){if(w.key===N)if(w.tag===4&&w.stateNode.containerInfo===b.containerInfo&&w.stateNode.implementation===b.implementation){n(S,w.sibling),w=s(w,b.children||[]),w.return=S,S=w;break e}else{n(S,w);break}else e(S,w);w=w.sibling}w=Ld(b,S.mode,T),w.return=S,S=w}return l(S);case Ir:return N=b._init,E(S,w,N(b._payload),T)}if(Ko(b))return P(S,w,b,T);if(Do(b))return x(S,w,b,T);Ll(S,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,w!==null&&w.tag===6?(n(S,w.sibling),w=s(w,b),w.return=S,S=w):(n(S,w),w=Ad(b,S.mode,T),w.return=S,S=w),l(S)):n(S,w)}return E}var Xs=V_(!0),Z_=V_(!1),Pu=ui(null),Cu=null,js=null,Zf=null;function qf(){Zf=js=Cu=null}function Kf(t){var e=Pu.current;Le(Pu),t._currentValue=e}function jh(t,e,n){for(;t!==null;){var r=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,r!==null&&(r.childLanes|=e)):r!==null&&(r.childLanes&e)!==e&&(r.childLanes|=e),t===n)break;t=t.return}}function Ds(t,e){Cu=t,Zf=js=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(At=!0),t.firstContext=null)}function ln(t){var e=t._currentValue;if(Zf!==t)if(t={context:t,memoizedValue:e,next:null},js===null){if(Cu===null)throw Error(U(308));js=t,Cu.dependencies={lanes:0,firstContext:t}}else js=js.next=t;return e}var ji=null;function Gf(t){ji===null?ji=[t]:ji.push(t)}function q_(t,e,n,r){var s=e.interleaved;return s===null?(n.next=n,Gf(e)):(n.next=s.next,s.next=n),e.interleaved=n,wr(t,r)}function wr(t,e){t.lanes|=e;var n=t.alternate;for(n!==null&&(n.lanes|=e),n=t,t=t.return;t!==null;)t.childLanes|=e,n=t.alternate,n!==null&&(n.childLanes|=e),n=t,t=t.return;return n.tag===3?n.stateNode:null}var Mr=!1;function Jf(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function K_(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function gr(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function Yr(t,e,n){var r=t.updateQueue;if(r===null)return null;if(r=r.shared,xe&2){var s=r.pending;return s===null?e.next=e:(e.next=s.next,s.next=e),r.pending=e,wr(t,n)}return s=r.interleaved,s===null?(e.next=e,Gf(r)):(e.next=s.next,s.next=e),r.interleaved=e,wr(t,n)}function ru(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194240)!==0)){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,If(t,n)}}function Tg(t,e){var n=t.updateQueue,r=t.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?s=o=l:o=o.next=l,n=n.next}while(n!==null);o===null?s=o=e:o=o.next=e}else s=o=e;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:o,shared:r.shared,effects:r.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function Tu(t,e,n,r){var s=t.updateQueue;Mr=!1;var o=s.firstBaseUpdate,l=s.lastBaseUpdate,u=s.shared.pending;if(u!==null){s.shared.pending=null;var d=u,h=d.next;d.next=null,l===null?o=h:l.next=h,l=d;var m=t.alternate;m!==null&&(m=m.updateQueue,u=m.lastBaseUpdate,u!==l&&(u===null?m.firstBaseUpdate=h:u.next=h,m.lastBaseUpdate=d))}if(o!==null){var g=s.baseState;l=0,m=h=d=null,u=o;do{var _=u.lane,y=u.eventTime;if((r&_)===_){m!==null&&(m=m.next={eventTime:y,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var P=t,x=u;switch(_=e,y=n,x.tag){case 1:if(P=x.payload,typeof P=="function"){g=P.call(y,g,_);break e}g=P;break e;case 3:P.flags=P.flags&-65537|128;case 0:if(P=x.payload,_=typeof P=="function"?P.call(y,g,_):P,_==null)break e;g=Be({},g,_);break e;case 2:Mr=!0}}u.callback!==null&&u.lane!==0&&(t.flags|=64,_=s.effects,_===null?s.effects=[u]:_.push(u))}else y={eventTime:y,lane:_,tag:u.tag,payload:u.payload,callback:u.callback,next:null},m===null?(h=m=y,d=g):m=m.next=y,l|=_;if(u=u.next,u===null){if(u=s.shared.pending,u===null)break;_=u,u=_.next,_.next=null,s.lastBaseUpdate=_,s.shared.pending=null}}while(!0);if(m===null&&(d=g),s.baseState=d,s.firstBaseUpdate=h,s.lastBaseUpdate=m,e=s.shared.interleaved,e!==null){s=e;do l|=s.lane,s=s.next;while(s!==e)}else o===null&&(s.shared.lanes=0);Hi|=l,t.lanes=l,t.memoizedState=g}}function jg(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;e<t.length;e++){var r=t[e],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(U(191,s));s.call(r)}}}var Va={},Qn=ui(Va),Sa=ui(Va),ka=ui(Va);function Oi(t){if(t===Va)throw Error(U(174));return t}function Qf(t,e){switch(Oe(ka,e),Oe(Sa,t),Oe(Qn,Va),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:uh(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=uh(e,t)}Le(Qn),Oe(Qn,e)}function eo(){Le(Qn),Le(Sa),Le(ka)}function G_(t){Oi(ka.current);var e=Oi(Qn.current),n=uh(e,t.type);e!==n&&(Oe(Sa,t),Oe(Qn,n))}function Yf(t){Sa.current===t&&(Le(Qn),Le(Sa))}var De=ui(0);function ju(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Pd=[];function Xf(){for(var t=0;t<Pd.length;t++)Pd[t]._workInProgressVersionPrimary=null;Pd.length=0}var iu=Er.ReactCurrentDispatcher,Cd=Er.ReactCurrentBatchConfig,Ui=0,ze=null,et=null,rt=null,Ou=!1,ra=!1,Ea=0,cE=0;function dt(){throw Error(U(321))}function ep(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Tn(t[n],e[n]))return!1;return!0}function tp(t,e,n,r,s,o){if(Ui=o,ze=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,iu.current=t===null||t.memoizedState===null?pE:mE,t=n(r,s),ra){o=0;
vendor: 6,592 bytes, line 38
38do{if(ra=!1,Ea=0,25<=o)throw Error(U(301));o+=1,rt=et=null,e.updateQueue=null,iu.current=gE,t=n(r,s)}while(ra)}if(iu.current=Nu,e=et!==null&&et.next!==null,Ui=0,rt=et=ze=null,Ou=!1,e)throw Error(U(300));return t}function np(){var t=Ea!==0;return Ea=0,t}function Wn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return rt===null?ze.memoizedState=rt=t:rt=rt.next=t,rt}function un(){if(et===null){var t=ze.alternate;t=t!==null?t.memoizedState:null}else t=et.next;var e=rt===null?ze.memoizedState:rt.next;if(e!==null)rt=e,et=t;else{if(t===null)throw Error(U(310));et=t,t={memoizedState:et.memoizedState,baseState:et.baseState,baseQueue:et.baseQueue,queue:et.queue,next:null},rt===null?ze.memoizedState=rt=t:rt=rt.next=t}return rt}function Pa(t,e){return typeof e=="function"?e(t):e}function Td(t){var e=un(),n=e.queue;if(n===null)throw Error(U(311));n.lastRenderedReducer=t;var r=et,s=r.baseQueue,o=n.pending;if(o!==null){if(s!==null){var l=s.next;s.next=o.next,o.next=l}r.baseQueue=s=o,n.pending=null}if(s!==null){o=s.next,r=r.baseState;var u=l=null,d=null,h=o;do{var m=h.lane;if((Ui&m)===m)d!==null&&(d=d.next={lane:0,action:h.action,hasEagerState:h.hasEagerState,eagerState:h.eagerState,next:null}),r=h.hasEagerState?h.eagerState:t(r,h.action);else{var g={lane:m,action:h.action,hasEagerState:h.hasEagerState,eagerState:h.eagerState,next:null};d===null?(u=d=g,l=r):d=d.next=g,ze.lanes|=m,Hi|=m}h=h.next}while(h!==null&&h!==o);d===null?l=r:d.next=u,Tn(r,e.memoizedState)||(At=!0),e.memoizedState=r,e.baseState=l,e.baseQueue=d,n.lastRenderedState=r}if(t=n.interleaved,t!==null){s=t;do o=s.lane,ze.lanes|=o,Hi|=o,s=s.next;while(s!==t)}else s===null&&(n.lanes=0);return[e.memoizedState,n.dispatch]}function jd(t){var e=un(),n=e.queue;if(n===null)throw Error(U(311));n.lastRenderedReducer=t;var r=n.dispatch,s=n.pending,o=e.memoizedState;if(s!==null){n.pending=null;var l=s=s.next;do o=t(o,l.action),l=l.next;while(l!==s);Tn(o,e.memoizedState)||(At=!0),e.memoizedState=o,e.baseQueue===null&&(e.baseState=o),n.lastRenderedState=o}return[o,r]}function J_(){}function Q_(t,e){var n=ze,r=un(),s=e(),o=!Tn(r.memoizedState,s);if(o&&(r.memoizedState=s,At=!0),r=r.queue,rp(e0.bind(null,n,r,t),[t]),r.getSnapshot!==e||o||rt!==null&&rt.memoizedState.tag&1){if(n.flags|=2048,Ca(9,X_.bind(null,n,r,s,e),void 0,null),it===null)throw Error(U(349));Ui&30||Y_(n,e,s)}return s}function Y_(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ze.updateQueue,e===null?(e={lastEffect:null,stores:null},ze.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function X_(t,e,n,r){e.value=n,e.getSnapshot=r,t0(e)&&n0(t)}function e0(t,e,n){return n(function(){t0(e)&&n0(t)})}function t0(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Tn(t,n)}catch{return!0}}function n0(t){var e=wr(t,1);e!==null&&Cn(e,t,1,-1)}function Og(t){var e=Wn();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:t},e.queue=t,t=t.dispatch=fE.bind(null,ze,t),[e.memoizedState,t]}function Ca(t,e,n,r){return t={tag:t,create:e,destroy:n,deps:r,next:null},e=ze.updateQueue,e===null?(e={lastEffect:null,stores:null},ze.updateQueue=e,e.lastEffect=t.next=t):(n=e.lastEffect,n===null?e.lastEffect=t.next=t:(r=n.next,n.next=t,t.next=r,e.lastEffect=t)),t}function r0(){return un().memoizedState}function su(t,e,n,r){var s=Wn();ze.flags|=t,s.memoizedState=Ca(1|e,n,void 0,r===void 0?null:r)}function sc(t,e,n,r){var s=un();r=r===void 0?null:r;var o=void 0;if(et!==null){var l=et.memoizedState;if(o=l.destroy,r!==null&&ep(r,l.deps)){s.memoizedState=Ca(e,n,o,r);return}}ze.flags|=t,s.memoizedState=Ca(1|e,n,o,r)}function Ng(t,e){return su(8390656,8,t,e)}function rp(t,e){return sc(2048,8,t,e)}function i0(t,e){return sc(4,2,t,e)}function s0(t,e){return sc(4,4,t,e)}function o0(t,e){if(typeof e=="function")return t=t(),e(t),function(){e(null)};if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function a0(t,e,n){return n=n!=null?n.concat([t]):null,sc(4,4,o0.bind(null,e,t),n)}function ip(){}function l0(t,e){var n=un();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&ep(e,r[1])?r[0]:(n.memoizedState=[t,e],t)}function u0(t,e){var n=un();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&ep(e,r[1])?r[0]:(t=t(),n.memoizedState=[t,e],t)}function c0(t,e,n){return Ui&21?(Tn(n,e)||(n=m_(),ze.lanes|=n,Hi|=n,t.baseState=!0),e):(t.baseState&&(t.baseState=!1,At=!0),t.memoizedState=n)}function dE(t,e){var n=Ee;Ee=n!==0&&4>n?n:4,t(!0);var r=Cd.transition;Cd.transition={};try{t(!1),e()}finally{Ee=n,Cd.transition=r}}function d0(){return un().memoizedState}function hE(t,e,n){var r=ei(t);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},h0(t))f0(e,n);else if(n=q_(t,e,n,r),n!==null){var s=Et();Cn(n,t,r,s),p0(n,e,r)}}function fE(t,e,n){var r=ei(t),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(h0(t))f0(e,s);else{var o=t.alternate;if(t.lanes===0&&(o===null||o.lanes===0)&&(o=e.lastRenderedReducer,o!==null))try{var l=e.lastRenderedState,u=o(l,n);if(s.hasEagerState=!0,s.eagerState=u,Tn(u,l)){var d=e.interleaved;d===null?(s.next=s,Gf(e)):(s.next=d.next,d.next=s),e.interleaved=s;return}}catch{}finally{}n=q_(t,e,s,r),n!==null&&(s=Et(),Cn(n,t,r,s),p0(n,e,r))}}function h0(t){var e=t.alternate;return t===ze||e!==null&&e===ze}function f0(t,e){ra=Ou=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function p0(t,e,n){if(n&4194240){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,If(t,n)}}var Nu={readContext:ln,useCallback:dt,useContext:dt,useEffect:dt,useImperativeHandle:dt,useInsertionEffect:dt,useLayoutEffect:dt,useMemo:dt,useReducer:dt,useRef:dt,useState:dt,useDebugValue:dt,useDeferredValue:dt,useTransition:dt,useMutableSource:dt,useSyncExternalStore:dt,useId:dt,unstable_isNewReconciler:!1},pE={readContext:ln,useCallback:function(t,e){return Wn().memoizedState=[t,e===void 0?null:e],t},useContext:ln,useEffect:Ng,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,su(4194308,4,o0.bind(null,e,t),n)},useLayoutEffect:function(t,e){return su(4194308,4,t,e)},useInsertionEffect:function(t,e){return su(4,2,t,e)},useMemo:function(t,e){var n=Wn();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=Wn();return e=n!==void 0?n(e):e,r.memoizedState=r.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},r.queue=t,t=t.dispatch=hE.bind(null,ze,t),[r.memoizedState,t]}
vendor: 5,922 bytes, lines 38-40
38,useRef:function(t){var e=Wn();return t={current:t},e.memoizedState=t},useState:Og,useDebugValue:ip,useDeferredValue:function(t){return Wn().memoizedState=t},useTransition:function(){var t=Og(!1),e=t[0];return t=dE.bind(null,t[1]),Wn().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var r=ze,s=Wn();if(Re){if(n===void 0)throw Error(U(407));n=n()}else{if(n=e(),it===null)throw Error(U(349));Ui&30||Y_(r,e,n)}s.memoizedState=n;var o={value:n,getSnapshot:e};return s.queue=o,Ng(e0.bind(null,r,o,t),[t]),r.flags|=2048,Ca(9,X_.bind(null,r,o,n,e),void 0,null),n},useId:function(){var t=Wn(),e=it.identifierPrefix;if(Re){var n=mr,r=pr;n=(r&~(1<<32-Pn(r)-1)).toString(32)+n,e=":"+e+"R"+n,n=Ea++,0<n&&(e+="H"+n.toString(32)),e+=":"}else n=cE++,e=":"+e+"r"+n.toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},mE={readContext:ln,useCallback:l0,useContext:ln,useEffect:rp,useImperativeHandle:a0,useInsertionEffect:i0,useLayoutEffect:s0,useMemo:u0,useReducer:Td,useRef:r0,useState:function(){return Td(Pa)},useDebugValue:ip,useDeferredValue:function(t){var e=un();return c0(e,et.memoizedState,t)},useTransition:function(){var t=Td(Pa)[0],e=un().memoizedState;return[t,e]},useMutableSource:J_,useSyncExternalStore:Q_,useId:d0,unstable_isNewReconciler:!1},gE={readContext:ln,useCallback:l0,useContext:ln,useEffect:rp,useImperativeHandle:a0,useInsertionEffect:i0,useLayoutEffect:s0,useMemo:u0,useReducer:jd,useRef:r0,useState:function(){return jd(Pa)},useDebugValue:ip,useDeferredValue:function(t){var e=un();return et===null?e.memoizedState=t:c0(e,et.memoizedState,t)},useTransition:function(){var t=jd(Pa)[0],e=un().memoizedState;return[t,e]},useMutableSource:J_,useSyncExternalStore:Q_,useId:d0,unstable_isNewReconciler:!1};function yn(t,e){if(t&&t.defaultProps){e=Be({},e),t=t.defaultProps;for(var n in t)e[n]===void 0&&(e[n]=t[n]);return e}return e}function Oh(t,e,n,r){e=t.memoizedState,n=n(r,e),n=n==null?e:Be({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var oc={isMounted:function(t){return(t=t._reactInternals)?qi(t)===t:!1},enqueueSetState:function(t,e,n){t=t._reactInternals;var r=Et(),s=ei(t),o=gr(r,s);o.payload=e,n!=null&&(o.callback=n),e=Yr(t,o,s),e!==null&&(Cn(e,t,s,r),ru(e,t,s))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var r=Et(),s=ei(t),o=gr(r,s);o.tag=1,o.payload=e,n!=null&&(o.callback=n),e=Yr(t,o,s),e!==null&&(Cn(e,t,s,r),ru(e,t,s))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Et(),r=ei(t),s=gr(n,r);s.tag=2,e!=null&&(s.callback=e),e=Yr(t,s,r),e!==null&&(Cn(e,t,r,n),ru(e,t,r))}};function Ag(t,e,n,r,s,o,l){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(r,o,l):e.prototype&&e.prototype.isPureReactComponent?!_a(n,r)||!_a(s,o):!0}function m0(t,e,n){var r=!1,s=si,o=e.contextType;return typeof o=="object"&&o!==null?o=ln(o):(s=Rt(e)?$i:mt.current,r=e.contextTypes,o=(r=r!=null)?Qs(t,s):si),e=new e(n,o),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=oc,t.stateNode=e,e._reactInternals=t,r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=s,t.__reactInternalMemoizedMaskedChildContext=o),e}function Lg(t,e,n,r){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,r),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&oc.enqueueReplaceState(e,e.state,null)}function Nh(t,e,n,r){var s=t.stateNode;s.props=n,s.state=t.memoizedState,s.refs={},Jf(t);var o=e.contextType;typeof o=="object"&&o!==null?s.context=ln(o):(o=Rt(e)?$i:mt.current,s.context=Qs(t,o)),s.state=t.memoizedState,o=e.getDerivedStateFromProps,typeof o=="function"&&(Oh(t,e,o,n),s.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(e=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),e!==s.state&&oc.enqueueReplaceState(s,s.state,null),Tu(t,n,s,r),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308)}function to(t,e){try{var n="",r=e;do n+=WS(r),r=r.return;while(r);var s=n}catch(o){s=`
39Error generating stack: `+o.message+`
40`+o.stack}return{value:t,source:e,stack:s,digest:null}}function Od(t,e,n){return{value:t,source:null,stack:n??null,digest:e??null}}function Ah(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var vE=typeof WeakMap=="function"?WeakMap:Map;function g0(t,e,n){n=gr(-1,n),n.tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){Lu||(Lu=!0,Uh=r),Ah(t,e)},n}function v0(t,e,n){n=gr(-1,n),n.tag=3;var r=t.type.getDerivedStateFromError;if(typeof r=="function"){var s=e.value;n.payload=function(){return r(s)},n.callback=function(){Ah(t,e)}}var o=t.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Ah(t,e),typeof r!="function"&&(Xr===null?Xr=new Set([this]):Xr.add(this));var l=e.stack;this.componentDidCatch(e.value,{componentStack:l!==null?l:""})}),n}function Rg(t,e,n){var r=t.pingCache;if(r===null){r=t.pingCache=new vE;var s=new Set;r.set(e,s)}else s=r.get(e),s===void 0&&(s=new Set,r.set(e,s));s.has(n)||(s.add(n),t=NE.bind(null,t,e,n),e.then(t,t))}function Ig(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function Mg(t,e,n,r,s){return t.mode&1?(t.flags|=65536,t.lanes=s,t):(t===e?t.flags|=65536:(t.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(e=gr(-1,1),e.tag=2,Yr(n,e,1))),n.lanes|=1),t)}var yE=Er.ReactCurrentOwner,At=!1;function bt(t,e,n,r){e.child=t===null?Z_(e,null,n,r):Xs(e,t.child,n,r)}function Dg(t,e,n,r,s){n=n.render;var o=e.ref;
vendor: 6,232 bytes, line 40
40return Ds(e,s),r=tp(t,e,n,r,o,s),n=np(),t!==null&&!At?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~s,xr(t,e,s)):(Re&&n&&Hf(e),e.flags|=1,bt(t,e,r,s),e.child)}function zg(t,e,n,r,s){if(t===null){var o=n.type;return typeof o=="function"&&!hp(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=o,y0(t,e,o,r,s)):(t=uu(n.type,null,r,e,e.mode,s),t.ref=e.ref,t.return=e,e.child=t)}if(o=t.child,!(t.lanes&s)){var l=o.memoizedProps;if(n=n.compare,n=n!==null?n:_a,n(l,r)&&t.ref===e.ref)return xr(t,e,s)}return e.flags|=1,t=ti(o,r),t.ref=e.ref,t.return=e,e.child=t}function y0(t,e,n,r,s){if(t!==null){var o=t.memoizedProps;if(_a(o,r)&&t.ref===e.ref)if(At=!1,e.pendingProps=r=o,(t.lanes&s)!==0)t.flags&131072&&(At=!0);else return e.lanes=t.lanes,xr(t,e,s)}return Lh(t,e,n,r,s)}function _0(t,e,n){var r=e.pendingProps,s=r.children,o=t!==null?t.memoizedState:null;if(r.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},Oe(Ns,zt),zt|=n;else{if(!(n&1073741824))return t=o!==null?o.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,Oe(Ns,zt),zt|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Oe(Ns,zt),zt|=r}else o!==null?(r=o.baseLanes|n,e.memoizedState=null):r=n,Oe(Ns,zt),zt|=r;return bt(t,e,s,n),e.child}function w0(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=512,e.flags|=2097152)}function Lh(t,e,n,r,s){var o=Rt(n)?$i:mt.current;return o=Qs(e,o),Ds(e,s),n=tp(t,e,n,r,o,s),r=np(),t!==null&&!At?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~s,xr(t,e,s)):(Re&&r&&Hf(e),e.flags|=1,bt(t,e,n,s),e.child)}function Bg(t,e,n,r,s){if(Rt(n)){var o=!0;Su(e)}else o=!1;if(Ds(e,s),e.stateNode===null)ou(t,e),m0(e,n,r),Nh(e,n,r,s),r=!0;else if(t===null){var l=e.stateNode,u=e.memoizedProps;l.props=u;var d=l.context,h=n.contextType;typeof h=="object"&&h!==null?h=ln(h):(h=Rt(n)?$i:mt.current,h=Qs(e,h));var m=n.getDerivedStateFromProps,g=typeof m=="function"||typeof l.getSnapshotBeforeUpdate=="function";g||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(u!==r||d!==h)&&Lg(e,l,r,h),Mr=!1;var _=e.memoizedState;l.state=_,Tu(e,r,l,s),d=e.memoizedState,u!==r||_!==d||Lt.current||Mr?(typeof m=="function"&&(Oh(e,n,m,r),d=e.memoizedState),(u=Mr||Ag(e,n,u,r,_,d,h))?(g||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(e.flags|=4194308)):(typeof l.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=r,e.memoizedState=d),l.props=r,l.state=d,l.context=h,r=u):(typeof l.componentDidMount=="function"&&(e.flags|=4194308),r=!1)}else{l=e.stateNode,K_(t,e),u=e.memoizedProps,h=e.type===e.elementType?u:yn(e.type,u),l.props=h,g=e.pendingProps,_=l.context,d=n.contextType,typeof d=="object"&&d!==null?d=ln(d):(d=Rt(n)?$i:mt.current,d=Qs(e,d));var y=n.getDerivedStateFromProps;(m=typeof y=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(u!==g||_!==d)&&Lg(e,l,r,d),Mr=!1,_=e.memoizedState,l.state=_,Tu(e,r,l,s);var P=e.memoizedState;u!==g||_!==P||Lt.current||Mr?(typeof y=="function"&&(Oh(e,n,y,r),P=e.memoizedState),(h=Mr||Ag(e,n,h,r,_,P,d)||!1)?(m||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,P,d),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,P,d)),typeof l.componentDidUpdate=="function"&&(e.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof l.componentDidUpdate!="function"||u===t.memoizedProps&&_===t.memoizedState||(e.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||u===t.memoizedProps&&_===t.memoizedState||(e.flags|=1024),e.memoizedProps=r,e.memoizedState=P),l.props=r,l.state=P,l.context=d,r=h):(typeof l.componentDidUpdate!="function"||u===t.memoizedProps&&_===t.memoizedState||(e.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||u===t.memoizedProps&&_===t.memoizedState||(e.flags|=1024),r=!1)}return Rh(t,e,n,r,o,s)}function Rh(t,e,n,r,s,o){w0(t,e);var l=(e.flags&128)!==0;if(!r&&!l)return s&&kg(e,n,!1),xr(t,e,o);r=e.stateNode,yE.current=e;var u=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return e.flags|=1,t!==null&&l?(e.child=Xs(e,t.child,null,o),e.child=Xs(e,null,u,o)):bt(t,e,u,o),e.memoizedState=r.state,s&&kg(e,n,!0),e.child}function x0(t){var e=t.stateNode;e.pendingContext?Sg(t,e.pendingContext,e.pendingContext!==e.context):e.context&&Sg(t,e.context,!1),Qf(t,e.containerInfo)}function $g(t,e,n,r,s){return Ys(),Vf(s),e.flags|=256,bt(t,e,n,r),e.child}var Ih={dehydrated:null,treeContext:null,retryLane:0};function Mh(t){return{baseLanes:t,cachePool:null,transitions:null}}function b0(t,e,n){var r=e.pendingProps,s=De.current,o=!1,l=(e.flags&128)!==0,u;if((u=l)||(u=t!==null&&t.memoizedState===null?!1:(s&2)!==0),u?(o=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(s|=1),Oe(De,s&1),t===null)return Th(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(e.mode&1?t.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(l=r.children,t=r.fallback,o?(r=e.mode,o=e.child,l={mode:"hidden",children:l},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=l):o=uc(l,r,0,null),t=Bi(t,r,n,null),o.return=e,t.return=e,o.sibling=t,e.child=o,e.child.memoizedState=Mh(n),e.memoizedState=Ih,t):sp(e,l));if(s=t.memoizedState,s!==null&&(u=s.dehydrated,u!==null))return _E(t,e,l,r,u,s,n);if(o){o=r.fallback,l=e.mode,s=t.child,u=s.sibling;var d={mode:"hidden",children:r.children};return!(l&1)&&e.child!==s?(r=e.child,r.childLanes=0,r.pendingProps=d,e.deletions=null):(r=ti(s,d),r.subtreeFlags=s.subtreeFlags&14680064),u!==null?o=ti(u,o):(o=Bi(o,l,n,null),o.flags|=2),o.return=e,r.return=e,r.sibling=o,e.child=r,r=o,o=e.child,l=t.child.memoizedState,l=l===null?Mh(n):{baseLanes:l.base
vendor: 8,906 bytes, line 40
40Lanes|n,cachePool:null,transitions:l.transitions},o.memoizedState=l,o.childLanes=t.childLanes&~n,e.memoizedState=Ih,r}return o=t.child,t=o.sibling,r=ti(o,{mode:"visible",children:r.children}),!(e.mode&1)&&(r.lanes=n),r.return=e,r.sibling=null,t!==null&&(n=e.deletions,n===null?(e.deletions=[t],e.flags|=16):n.push(t)),e.child=r,e.memoizedState=null,r}function sp(t,e){return e=uc({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function Rl(t,e,n,r){return r!==null&&Vf(r),Xs(e,t.child,null,n),t=sp(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function _E(t,e,n,r,s,o,l){if(n)return e.flags&256?(e.flags&=-257,r=Od(Error(U(422))),Rl(t,e,l,r)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(o=r.fallback,s=e.mode,r=uc({mode:"visible",children:r.children},s,0,null),o=Bi(o,s,l,null),o.flags|=2,r.return=e,o.return=e,r.sibling=o,e.child=r,e.mode&1&&Xs(e,t.child,null,l),e.child.memoizedState=Mh(l),e.memoizedState=Ih,o);if(!(e.mode&1))return Rl(t,e,l,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var u=r.dgst;return r=u,o=Error(U(419)),r=Od(o,r,void 0),Rl(t,e,l,r)}if(u=(l&t.childLanes)!==0,At||u){if(r=it,r!==null){switch(l&-l){case 4:s=2;break;case 16:s=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:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|l)?0:s,s!==0&&s!==o.retryLane&&(o.retryLane=s,wr(t,s),Cn(r,t,s,-1))}return dp(),r=Od(Error(U(421))),Rl(t,e,l,r)}return s.data==="$?"?(e.flags|=128,e.child=t.child,e=AE.bind(null,t),s._reactRetry=e,null):(t=o.treeContext,Ut=Qr(s.nextSibling),Ht=e,Re=!0,En=null,t!==null&&(rn[sn++]=pr,rn[sn++]=mr,rn[sn++]=Fi,pr=t.id,mr=t.overflow,Fi=e),e=sp(e,r.children),e.flags|=4096,e)}function Fg(t,e,n){t.lanes|=e;var r=t.alternate;r!==null&&(r.lanes|=e),jh(t.return,e,n)}function Nd(t,e,n,r,s){var o=t.memoizedState;o===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(o.isBackwards=e,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=s)}function S0(t,e,n){var r=e.pendingProps,s=r.revealOrder,o=r.tail;if(bt(t,e,r.children,n),r=De.current,r&2)r=r&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Fg(t,n,e);else if(t.tag===19)Fg(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}r&=1}if(Oe(De,r),!(e.mode&1))e.memoizedState=null;else switch(s){case"forwards":for(n=e.child,s=null;n!==null;)t=n.alternate,t!==null&&ju(t)===null&&(s=n),n=n.sibling;n=s,n===null?(s=e.child,e.child=null):(s=n.sibling,n.sibling=null),Nd(e,!1,s,n,o);break;case"backwards":for(n=null,s=e.child,e.child=null;s!==null;){if(t=s.alternate,t!==null&&ju(t)===null){e.child=s;break}t=s.sibling,s.sibling=n,n=s,s=t}Nd(e,!0,n,null,o);break;case"together":Nd(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function ou(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function xr(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Hi|=e.lanes,!(n&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(U(153));if(e.child!==null){for(t=e.child,n=ti(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=ti(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function wE(t,e,n){switch(e.tag){case 3:x0(e),Ys();break;case 5:G_(e);break;case 1:Rt(e.type)&&Su(e);break;case 4:Qf(e,e.stateNode.containerInfo);break;case 10:var r=e.type._context,s=e.memoizedProps.value;Oe(Pu,r._currentValue),r._currentValue=s;break;case 13:if(r=e.memoizedState,r!==null)return r.dehydrated!==null?(Oe(De,De.current&1),e.flags|=128,null):n&e.child.childLanes?b0(t,e,n):(Oe(De,De.current&1),t=xr(t,e,n),t!==null?t.sibling:null);Oe(De,De.current&1);break;case 19:if(r=(n&e.childLanes)!==0,t.flags&128){if(r)return S0(t,e,n);e.flags|=128}if(s=e.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Oe(De,De.current),r)break;return null;case 22:case 23:return e.lanes=0,_0(t,e,n)}return xr(t,e,n)}var k0,Dh,E0,P0;k0=function(t,e){for(var n=e.child;n!==null;){if(n.tag===5||n.tag===6)t.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Dh=function(){};E0=function(t,e,n,r){var s=t.memoizedProps;if(s!==r){t=e.stateNode,Oi(Qn.current);var o=null;switch(n){case"input":s=sh(t,s),r=sh(t,r),o=[];break;case"select":s=Be({},s,{value:void 0}),r=Be({},r,{value:void 0}),o=[];break;case"textarea":s=lh(t,s),r=lh(t,r),o=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(t.onclick=xu)}ch(n,r);var l;n=null;for(h in s)if(!r.hasOwnProperty(h)&&s.hasOwnProperty(h)&&s[h]!=null)if(h==="style"){var u=s[h];for(l in u)u.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else h!=="dangerouslySetInnerHTML"&&h!=="children"&&h!=="suppressContentEditableWarning"&&h!=="suppressHydrationWarning"&&h!=="autoFocus"&&(ha.hasOwnProperty(h)?o||(o=[]):(o=o||[]).push(h,null));for(h in r){var d=r[h];if(u=s!=null?s[h]:void 0,r.hasOwnProperty(h)&&d!==u&&(d!=null||u!=null))if(h==="style")if(u){for(l in u)!u.hasOwnProperty(l)||d&&d.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in d)d.hasOwnProperty(l)&&u[l]!==d[l]&&(n||(n={}),n[l]=d[l])}else n||(o||(o=[]),o.push(h,n)),n=d;else h==="dangerouslySetInnerHTML"?(d=d?d.__html:void 0,u=u?u.__html:void 0,d!=null&&u!==d&&(o=o||[]).push(h,d)):h==="children"?typeof d!="string"&&typeof d!="number"||(o=o||[]).push(h,""+d):h!=="suppressContentEditableWarning"&&h!=="suppressHydrationWarning"&&(ha.hasOwnProperty(h)?(d!=null&&h==="onScroll"&&Ae("scroll",t),o||u===d||(o=[])):(o=o||[]).push(h,d))}n&&(o=o||[]).push("style",n);var h=o;(e.updateQueue=h)&&(e.flags|=4)}};P0=function(t,e,n,r){n!==r&&(e.flags|=4)};function Ho(t,e){if(!Re)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:r.sibling=null}}function ht(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,r=0;if(e)for(var s=t.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=t,s=s.sibling;else for(s=t.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=t,s=s.sibling;return t.subtreeFlags|=r,t.childLanes=n,e}function xE(t,e,n){var r=e.pendingProps;switch(Wf(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ht(e),null;case 1:return Rt(e.type)&&bu(),ht(e),null;case 3:return r=e.stateNode,eo(),Le(Lt),Le(mt),Xf(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(t===null||t.child===null)&&(Al(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,En!==null&&(Vh(En),En=null))),Dh(t,e),ht(e),null;case 5:Yf(e);var s=Oi(ka.current);if(n=e.type,t!==null&&e.stateNode!=null)E0(t,e,n,r,s),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!r){if(e.stateNode===null)throw Error(U(166));return ht(e),null}if(t=Oi(Qn.current),Al(e)){r=e.stateNode,n=e.type;var o=e.memoizedProps;switch(r[Kn]=e,r[ba]=o,t=(e.mode&1)!==0,n){case"dialog":Ae("cancel",r),Ae("close",r);break;case"iframe":case"object":case"embed":Ae("load",r);break;case"video":case"audio":for(s=0;s<Jo.length;s++)Ae(Jo[s],r);break;case"source":Ae("error",r);break;case"img":case"image":case"link":Ae("error",r),Ae("load",r);break;case"details":Ae("toggle",r);break;case"input":Jm(r,o),Ae("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Ae("invalid",r);break;case"textarea":Ym(r,o),Ae("invalid",r)}ch(n,o),s=null;for(var l in o)if(o.hasOwnProperty(l)){var u=o[l];l==="children"?typeof u=="string"?r.textContent!==u&&(o.suppressHydrationWarning!==!0&&Nl(r.textContent,u,t),s=["children",u]):typeof u=="number"&&r.textContent!==""+u&&(o.suppressHydrationWarning!==!0&&Nl(r.textContent,u,t),s=["children",""+u]):ha.hasOwnProperty(l)&&u!=null&&l==="onScroll"&&Ae("scroll",r)}switch(n){case"input":Sl(r),Qm(r,o,!0);break;case"textarea":Sl(r),Xm(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=xu)}r=s,e.updateQueue=r,r!==null&&(e.flags|=4)}else{l=s.nodeType===9?s:s.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=e_(n)),t==="http://www.w3.org/1999/xhtml"?n==="script"?(t=l.createElement("div"),t.innerHTML="<script><\/script>
40",t=t.removeChild(t.firstChild)):typeof r.is=="string"?t=l.createElement(n,{is:r.is}):(t=l.createElement(n),n==="select"&&(l=t,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):t=l.createElementNS(t,n),t[Kn]=e,t[ba]=r,k0(t,e,!1,!1),e.stateNode=t;e:{switch(l=dh(n,r),n){case"dialog":Ae("cancel",t),Ae("close",t),s=r;break;case"iframe":case"object":case"embed":Ae("load",t),s=r;break;case"video":case"audio":for(s=0;s<Jo.length;s++)Ae(Jo[s],t);s=r;break;case"source":Ae("error",t),s=r;break;case"img":case"image":case"link":Ae("error",t),Ae("load",t),s=r;break;case"details":Ae("toggle",t),s=r;break;case"input":Jm(t,r),s=sh(t,r),Ae("invalid",t);break;case"option":s=r;break;case"select":t._wrapperState={wasMultiple:!!r.multiple},s=Be({},r,{value:void 0}),Ae("invalid",t);break;case"textarea":Ym(t,r),s=lh(t,r),Ae("invalid",t);break;default:s=r}ch(n,s),u=s;for(o in u)if(u.hasOwnProperty(o)){var d=u[o];o==="style"?r_(t,d):o==="dangerouslySetInnerHTML"?(d=d?d.__html:void 0,d!=null&&t_(t,d)):o==="children"?typeof d=="string"?(n!=="textarea"||d!=="")&&fa(t,d):typeof d=="number"&&fa(t,""+d):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(ha.hasOwnProperty(o)?d!=null&&o==="onScroll"&&Ae("scroll",t):d!=null&&jf(t,o,d,l))}switch(n){case"input":Sl(t),Qm(t,r,!1);break;case"textarea":Sl(t),Xm(t);break;case"option":r.value!=null&&t.setAttribute("value",""+ii(r.value));break;case"select":t.multiple=!!r.multiple,o=r.value,o!=null?Ls(t,!!r.multiple,o,!1):r.defaultValue!=null&&Ls(t,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(t.onclick=xu)}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&&(e.flags|=4)}e.ref!==null&&(e.flags|=512,e.flags|=2097152)}return ht(e),null;case 6:if(t&&e.stateNode!=null)P0(t,e,t.memoizedProps,r);else{if(typeof r!="string"&&e.stateNode===null)throw Error(U(166));if(n=Oi(ka.current),Oi(Qn.current),Al(e)){if(r=e.stateNode,n=e.memoizedProps,r[Kn]=e,(o=r.nodeValue!==n)&&(t=Ht,t!==null))switch(t.tag){case 3:Nl(r.nodeValue,n,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&Nl(r.nodeValue,n,(t.mode&1)!==0)}o&&(e.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Kn]=e,e.stateNode=r}return ht(e),null;case 13:if(Le(De),r=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(Re&&Ut!==null&&e.mode&1&&!(e.flags&128))W_(),Ys(),e.flags|=98560,o=!1;else if(o=Al(e),r!==null&&r.dehydrated!==null){if(t===null){if(!o)throw Error(U(318));if(o=e.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(U(317));o[Kn]=e}else Ys(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;ht(e),o=!1}else En!==null&&(Vh(En),En=null),o=!0;if(!o)return e.flags&65536?e:null}return e.flags&128?(e.lanes=n,e):(r=r!==null,r!==(t!==null&&t.memoizedState!==null)&&r&&(e.child.flags|=8192,e.mode&1&&(t===null||De.current&1?tt===0&&(tt=3):dp())),e.updateQueue!==null&&(e.flags|=4),ht(e),null);case 4:return eo(),Dh(t,e),t===null&&wa(e.stateNode.containerInfo),ht(e),null;case 10:return Kf(e.type._context),ht(e),null;case 17:return Rt(e.type)&&bu(),ht(e),null;case 19:if(Le(De),o=e.memoizedState,o===null)return ht(e),null;if(r=(e.flags&128)!==0,l=o.rendering,l===null)if(r)Ho(o,!1);else{if(tt!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(l=ju(t),l!==null){for(e.flags|=128,Ho(o,!1),r=l.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),e.subtreeFlags=0,r=n,n=e.child;n!==null;)o=n,t=r,o.flags&=14680066,l=o.alternate,l===null?(o.childLanes=0,o.lanes=t,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=l.childLanes,o.lanes=l.lanes,o.child=l.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=l.memoizedProps,o.memoizedState=l.memoizedState,o.updateQueue=l.updateQueue,o.type=l.type,t=l.dependencies,o.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),n=n.sibling;return Oe(De,De.current&1|2),e.child}t=t.sibling}o.tail!==null&&Ve()>no&&(e.flags|=128,r=!0,Ho(o,!1),e.lanes=4194304)}else{if(!r)if(t=ju(l),t!==null){if(e.flags|=128,r=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),Ho(o,!0),o.tail===null&&o.tailMode==="hidden"&&!l.alternate&&!Re)return ht(e),null}else 2*Ve()-o.renderingStartTime>no&&n!==1073741824&&(e.flags|=128,r=!0,Ho(o,!1),e.lanes=4194304);o.isBackwards?(l.sibling=e.child,e.child=l):(n=o.last,n!==null?n.sibling=l:e.child=l,o.last=l)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=Ve(),e.sibling=null,n=De.current,Oe(De,r?n&1|2:n&1),e):(ht(e),null);case 22:case 23:return cp(),r=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?zt&1073741824&&(ht(e),e.subtreeFlags&6&&(e.flags|=8192)):ht(e),null;case 24:return null;case 25:return null}throw Error(U(156,e.tag))}function bE(t,e){switch(Wf(e),e.tag){case 1:return Rt(e.type)&&bu(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;
vendor: 24,369 bytes, line 40
40case 3:return eo(),Le(Lt),Le(mt),Xf(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return Yf(e),null;case 13:if(Le(De),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(U(340));Ys()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Le(De),null;case 4:return eo(),null;case 10:return Kf(e.type._context),null;case 22:case 23:return cp(),null;case 24:return null;default:return null}}var Il=!1,pt=!1,SE=typeof WeakSet=="function"?WeakSet:Set,Q=null;function Os(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ue(t,e,r)}else n.current=null}function zh(t,e,n){try{n()}catch(r){Ue(t,e,r)}}var Ug=!1;function kE(t,e){if(xh=yu,t=N_(),Uf(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var s=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var l=0,u=-1,d=-1,h=0,m=0,g=t,_=null;t:for(;;){for(var y;g!==n||s!==0&&g.nodeType!==3||(u=l+s),g!==o||r!==0&&g.nodeType!==3||(d=l+r),g.nodeType===3&&(l+=g.nodeValue.length),(y=g.firstChild)!==null;)_=g,g=y;for(;;){if(g===t)break t;if(_===n&&++h===s&&(u=l),_===o&&++m===r&&(d=l),(y=g.nextSibling)!==null)break;g=_,_=g.parentNode}g=y}n=u===-1||d===-1?null:{start:u,end:d}}else n=null}n=n||{start:0,end:0}}else n=null;for(bh={focusedElem:t,selectionRange:n},yu=!1,Q=e;Q!==null;)if(e=Q,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Q=t;else for(;Q!==null;){e=Q;try{var P=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(P!==null){var x=P.memoizedProps,E=P.memoizedState,S=e.stateNode,w=S.getSnapshotBeforeUpdate(e.elementType===e.type?x:yn(e.type,x),E);S.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var b=e.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(U(163))}}catch(T){Ue(e,e.return,T)}if(t=e.sibling,t!==null){t.return=e.return,Q=t;break}Q=e.return}return P=Ug,Ug=!1,P}function ia(t,e,n){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&t)===t){var o=s.destroy;s.destroy=void 0,o!==void 0&&zh(e,n,o)}s=s.next}while(s!==r)}}function ac(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function Bh(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function C0(t){var e=t.alternate;e!==null&&(t.alternate=null,C0(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[Kn],delete e[ba],delete e[Eh],delete e[oE],delete e[aE])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function T0(t){return t.tag===5||t.tag===3||t.tag===4}function Hg(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||T0(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function $h(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=xu));else if(r!==4&&(t=t.child,t!==null))for($h(t,e,n),t=t.sibling;t!==null;)$h(t,e,n),t=t.sibling}function Fh(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(r!==4&&(t=t.child,t!==null))for(Fh(t,e,n),t=t.sibling;t!==null;)Fh(t,e,n),t=t.sibling}var ot=null,Sn=!1;function Or(t,e,n){for(n=n.child;n!==null;)j0(t,e,n),n=n.sibling}function j0(t,e,n){if(Jn&&typeof Jn.onCommitFiberUnmount=="function")try{Jn.onCommitFiberUnmount(Xu,n)}catch{}switch(n.tag){case 5:pt||Os(n,e);case 6:var r=ot,s=Sn;ot=null,Or(t,e,n),ot=r,Sn=s,ot!==null&&(Sn?(t=ot,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):ot.removeChild(n.stateNode));break;case 18:ot!==null&&(Sn?(t=ot,n=n.stateNode,t.nodeType===8?kd(t.parentNode,n):t.nodeType===1&&kd(t,n),va(t)):kd(ot,n.stateNode));break;case 4:r=ot,s=Sn,ot=n.stateNode.containerInfo,Sn=!0,Or(t,e,n),ot=r,Sn=s;break;case 0:case 11:case 14:case 15:if(!pt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var o=s,l=o.destroy;o=o.tag,l!==void 0&&(o&2||o&4)&&zh(n,e,l),s=s.next}while(s!==r)}Or(t,e,n);break;case 1:if(!pt&&(Os(n,e),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){Ue(n,e,u)}Or(t,e,n);break;case 21:Or(t,e,n);break;case 22:n.mode&1?(pt=(r=pt)||n.memoizedState!==null,Or(t,e,n),pt=r):Or(t,e,n);break;default:Or(t,e,n)}}function Wg(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new SE),e.forEach(function(r){var s=LE.bind(null,t,r);n.has(r)||(n.add(r),r.then(s,s))})}}function pn(t,e){var n=e.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var o=t,l=e,u=l;e:for(;u!==null;){switch(u.tag){case 5:ot=u.stateNode,Sn=!1;break e;case 3:ot=u.stateNode.containerInfo,Sn=!0;break e;case 4:ot=u.stateNode.containerInfo,Sn=!0;break e}u=u.return}if(ot===null)throw Error(U(160));j0(o,l,s),ot=null,Sn=!1;var d=s.alternate;d!==null&&(d.return=null),s.return=null}catch(h){Ue(s,e,h)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)O0(e,t),e=e.sibling}function O0(t,e){var n=t.alternate,r=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(pn(e,t),Un(t),r&4){try{ia(3,t,t.return),ac(3,t)}catch(x){Ue(t,t.return,x)}try{ia(5,t,t.return)}catch(x){Ue(t,t.return,x)}}break;case 1:pn(e,t),Un(t),r&512&&n!==null&&Os(n,n.return);break;case 5:if(pn(e,t),Un(t),r&512&&n!==null&&Os(n,n.return),t.flags&32){var s=t.stateNode;try{fa(s,"")}catch(x){Ue(t,t.return,x)}}if(r&4&&(s=t.stateNode,s!=null)){var o=t.memoizedProps,l=n!==null?n.memoizedProps:o,u=t.type,d=t.updateQueue;if(t.updateQueue=null,d!==null)try{u==="input"&&o.type==="radio"&&o.name!=null&&Yy(s,o),dh(u,l);var h=dh(u,o);for(l=0;l<d.length;l+=2){var m=d[l],g=d[l+1];m==="style"?r_(s,g):m==="dangerouslySetInnerHTML"?t_(s,g):m==="children"?fa(s,g):jf(s,m,g,h)}switch(u){case"input":oh(s,o);break;case"textarea":Xy(s,o);break;case"select":var _=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!o.multiple;var y=o.value;y!=null?Ls(s,!!o.multiple,y,!1):_!==!!o.multiple&&(o.defaultValue!=null?Ls(s,!!o.multiple,o.defaultValue,!0):Ls(s,!!o.multiple,o.multiple?[]:"",!1))}s[ba]=o}catch(x){Ue(t,t.return,x)}}break;case 6:if(pn(e,t),Un(t),r&4){if(t.stateNode===null)throw Error(U(162));s=t.stateNode,o=t.memoizedProps;try{s.nodeValue=o}catch(x){Ue(t,t.return,x)}}break;case 3:if(pn(e,t),Un(t),r&4&&n!==null&&n.memoizedState.isDehydrated)try{va(e.containerInfo)}catch(x){Ue(t,t.return,x)}break;case 4:pn(e,t),Un(t);break;case 13:pn(e,t),Un(t),s=t.child,s.flags&8192&&(o=s.memoizedState!==null,s.stateNode.isHidden=o,!o||s.alternate!==null&&s.alternate.memoizedState!==null||(lp=Ve())),r&4&&Wg(t);break;case 22:if(m=n!==null&&n.memoizedState!==null,t.mode&1?(pt=(h=pt)||m,pn(e,t),pt=h):pn(e,t),Un(t),r&8192){if(h=t.memoizedState!==null,(t.stateNode.isHidden=h)&&!m&&t.mode&1)for(Q=t,m=t.child;m!==null;){for(g=Q=m;Q!==null;){switch(_=Q,y=_.child,_.tag){case 0:case 11:case 14:case 15:ia(4,_,_.return);break;case 1:Os(_,_.return);var P=_.stateNode;if(typeof P.componentWillUnmount=="function"){r=_,n=_.return;try{e=r,P.props=e.memoizedProps,P.state=e.memoizedState,P.componentWillUnmount()}catch(x){Ue(r,n,x)}}break;case 5:Os(_,_.return);break;case 22:if(_.memoizedState!==null){Zg(g);continue}}y!==null?(y.return=_,Q=y):Zg(g)}m=m.sibling}e:for(m=null,g=t;;){if(g.tag===5){if(m===null){m=g;try{s=g.stateNode,h?(o=s.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(u=g.stateNode,d=g.memoizedProps.style,l=d!=null&&d.hasOwnProperty("display")?d.display:null,u.style.display=n_("display",l))}catch(x){Ue(t,t.return,x)}}}else if(g.tag===6){if(m===null)try{g.stateNode.nodeValue=h?"":g.memoizedProps}catch(x){Ue(t,t.return,x)}}else if((g.tag!==22&&g.tag!==23||g.memoizedState===null||g===t)&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===t)break e;for(;g.sibling===null;){if(g.return===null||g.return===t)break e;m===g&&(m=null),g=g.return}m===g&&(m=null),g.sibling.return=g.return,g=g.sibling}}break;case 19:pn(e,t),Un(t),r&4&&Wg(t);break;case 21:break;default:pn(e,t),Un(t)}}function Un(t){var e=t.flags;if(e&2){try{e:{for(var n=t.return;n!==null;){if(T0(n)){var r=n;break e}n=n.return}throw Error(U(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(fa(s,""),r.flags&=-33);var o=Hg(t);Fh(t,o,s);break;case 3:case 4:var l=r.stateNode.containerInfo,u=Hg(t);$h(t,u,l);break;default:throw Error(U(161))}}catch(d){Ue(t,t.return,d)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function EE(t,e,n){Q=t,N0(t)}function N0(t,e,n){for(var r=(t.mode&1)!==0;Q!==null;){var s=Q,o=s.child;if(s.tag===22&&r){var l=s.memoizedState!==null||Il;if(!l){var u=s.alternate,d=u!==null&&u.memoizedState!==null||pt;u=Il;var h=pt;if(Il=l,(pt=d)&&!h)for(Q=s;Q!==null;)l=Q,d=l.child,l.tag===22&&l.memoizedState!==null?qg(s):d!==null?(d.return=l,Q=d):qg(s);for(;o!==null;)Q=o,N0(o),o=o.sibling;Q=s,Il=u,pt=h}Vg(t)}else s.subtreeFlags&8772&&o!==null?(o.return=s,Q=o):Vg(t)}}function Vg(t){for(;Q!==null;){var e=Q;if(e.flags&8772){var n=e.alternate;try{if(e.flags&8772)switch(e.tag){case 0:case 11:case 15:pt||ac(5,e);break;case 1:var r=e.stateNode;if(e.flags&4&&!pt)if(n===null)r.componentDidMount();else{var s=e.elementType===e.type?n.memoizedProps:yn(e.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=e.updateQueue;o!==null&&jg(e,o,r);break;case 3:var l=e.updateQueue;if(l!==null){if(n=null,e.child!==null)switch(e.child.tag){case 5:n=e.child.stateNode;break;case 1:n=e.child.stateNode}jg(e,l,n)}break;case 5:var u=e.stateNode;if(n===null&&e.flags&4){n=u;var d=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":d.autoFocus&&n.focus();break;case"img":d.src&&(n.src=d.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(e.memoizedState===null){var h=e.alternate;if(h!==null){var m=h.memoizedState;if(m!==null){var g=m.dehydrated;g!==null&&va(g)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(U(163))}pt||e.flags&512&&Bh(e)}catch(_){Ue(e,e.return,_)}}if(e===t){Q=null;break}if(n=e.sibling,n!==null){n.return=e.return,Q=n;break}Q=e.return}}function Zg(t){for(;Q!==null;){var e=Q;if(e===t){Q=null;break}var n=e.sibling;if(n!==null){n.return=e.return,Q=n;break}Q=e.return}}function qg(t){for(;Q!==null;){var e=Q;try{switch(e.tag){case 0:case 11:case 15:var n=e.return;try{ac(4,e)}catch(d){Ue(e,n,d)}break;case 1:var r=e.stateNode;if(typeof r.componentDidMount=="function"){var s=e.return;try{r.componentDidMount()}catch(d){Ue(e,s,d)}}var o=e.return;try{Bh(e)}catch(d){Ue(e,o,d)}break;case 5:var l=e.return;try{Bh(e)}catch(d){Ue(e,l,d)}}}catch(d){Ue(e,e.return,d)}if(e===t){Q=null;break}var u=e.sibling;if(u!==null){u.return=e.return,Q=u;break}Q=e.return}}var PE=Math.ceil,Au=Er.ReactCurrentDispatcher,op=Er.ReactCurrentOwner,an=Er.ReactCurrentBatchConfig,xe=0,it=null,Qe=null,at=0,zt=0,Ns=ui(0),tt=0,Ta=null,Hi=0,lc=0,ap=0,sa=null,Nt=null,lp=0,no=1/0,cr=null,Lu=!1,Uh=null,Xr=null,Ml=!1,Zr=null,Ru=0,oa=0,Hh=null,au=-1,lu=0;function Et(){return xe&6?Ve():au!==-1?au:au=Ve()}function ei(t){return t.mode&1?xe&2&&at!==0?at&-at:uE.transition!==null?(lu===0&&(lu=m_()),lu):(t=Ee,t!==0||(t=window.event,t=t===void 0?16:b_(t.type)),t):1}function Cn(t,e,n,r){if(50<oa)throw oa=0,Hh=null,Error(U(185));Ua(t,n,r),(!(xe&2)||t!==it)&&(t===it&&(!(xe&2)&&(lc|=n),tt===4&&zr(t,at)),It(t,r),n===1&&xe===0&&!(e.mode&1)&&(no=Ve()+500,ic&&ci()))}function It(t,e){var n=t.callbackNode;uk(t,e);var r=vu(t,t===it?at:0);if(r===0)n!==null&&ng(n),t.callbackNode=null,t.callbackPriority=0;else if(e=r&-r,t.callbackPriority!==e){if(n!=null&&ng(n),e===1)t.tag===0?lE(Kg.bind(null,t)):F_(Kg.bind(null,t)),iE(function(){!(xe&6)&&ci()}),n=null;else{switch(g_(r)){case 1:n=Rf;break;case 4:n=f_;break;case 16:n=gu;break;case 536870912:n=p_;break;default:n=gu}n=B0(n,A0.bind(null,t))}t.callbackPriority=e,t.callbackNode=n}}function A0(t,e){if(au=-1,lu=0,xe&6)throw Error(U(327));var n=t.callbackNode;if(zs()&&t.callbackNode!==n)return null;var r=vu(t,t===it?at:0);if(r===0)return null;if(r&30||r&t.expiredLanes||e)e=Iu(t,r);else{e=r;var s=xe;xe|=2;var o=R0();(it!==t||at!==e)&&(cr=null,no=Ve()+500,zi(t,e));do try{jE();break}catch(u){L0(t,u)}while(!0);qf(),Au.current=o,xe=s,Qe!==null?e=0:(it=null,at=0,e=tt)}if(e!==0){if(e===2&&(s=gh(t),s!==0&&(r=s,e=Wh(t,s))),e===1)throw n=Ta,zi(t,0),zr(t,r),It(t,Ve()),n;if(e===6)zr(t,r);else{if(s=t.current.alternate,!(r&30)&&!CE(s)&&(e=Iu(t,r),e===2&&(o=gh(t),o!==0&&(r=o,e=Wh(t,o))),e===1))throw n=Ta,zi(t,0),zr(t,r),It(t,Ve()),n;switch(t.finishedWork=s,t.finishedLanes=r,e){case 0:case 1:throw Error(U(345));case 2:ki(t,Nt,cr);break;case 3:if(zr(t,r),(r&130023424)===r&&(e=lp+500-Ve(),10<e)){if(vu(t,0)!==0)break;if(s=t.suspendedLanes,(s&r)!==r){Et(),t.pingedLanes|=t.suspendedLanes&s;break}t.timeoutHandle=kh(ki.bind(null,t,Nt,cr),e);break}ki(t,Nt,cr);break;case 4:if(zr(t,r),(r&4194240)===r)break;for(e=t.eventTimes,s=-1;0<r;){var l=31-Pn(r);o=1<<l,l=e[l],l>s&&(s=l),r&=~o}if(r=s,r=Ve()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*PE(r/1960))-r,10<r){t.timeoutHandle=kh(ki.bind(null,t,Nt,cr),r);break}ki(t,Nt,cr);break;case 5:ki(t,Nt,cr);break;default:throw Error(U(329))}}}return It(t,Ve()),t.callbackNode===n?A0.bind(null,t):null}function Wh(t,e){var n=sa;return t.current.memoizedState.isDehydrated&&(zi(t,e).flags|=256),t=Iu(t,e),t!==2&&(e=Nt,Nt=n,e!==null&&Vh(e)),t}function Vh(t){Nt===null?Nt=t:Nt.push.apply(Nt,t)}function CE(t){for(var e=t;;){if(e.flags&16384){var n=e.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var s=n[r],o=s.getSnapshot;s=s.value;try{if(!Tn(o(),s))return!1}catch{return!1}}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function zr(t,e){for(e&=~ap,e&=~lc,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-Pn(e),r=1<<n;t[n]=-1,e&=~r}}function Kg(t){if(xe&6)throw Error(U(327));zs();var e=vu(t,0);if(!(e&1))return It(t,Ve()),null;var n=Iu(t,e);if(t.tag!==0&&n===2){var r=gh(t);r!==0&&(e=r,n=Wh(t,r))}if(n===1)throw n=Ta,zi(t,0),zr(t,e),It(t,Ve()),n;if(n===6)throw Error(U(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,ki(t,Nt,cr),It(t,Ve()),null}function up(t,e){var n=xe;xe|=1;try{return t(e)}finally{xe=n,xe===0&&(no=Ve()+500,ic&&ci())}}function Wi(t){Zr!==null&&Zr.tag===0&&!(xe&6)&&zs();var e=xe;xe|=1;var n=an.transition,r=Ee;try{if(an.transition=null,Ee=1,t)return t()}finally{Ee=r,an.transition=n,xe=e,!(xe&6)&&ci()}}function cp(){zt=Ns.current,Le(Ns)}function zi(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(n!==-1&&(t.timeoutHandle=-1,rE(n)),Qe!==null)for(n=Qe.return;n!==null;){var r=n;switch(Wf(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&bu();break;case 3:eo(),Le(Lt),Le(mt),Xf();break;case 5:Yf(r);break;case 4:eo();break;case 13:Le(De);break;case 19:Le(De);break;case 10:Kf(r.type._context);break;case 22:case 23:cp()}n=n.return}if(it=t,Qe=t=ti(t.current,null),at=zt=e,tt=0,Ta=null,ap=lc=Hi=0,Nt=sa=null,ji!==null){for(e=0;e<ji.length;e++)if(n=ji[e],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,o=n.pending;if(o!==null){var l=o.next;o.next=s,r.next=l}n.pending=r}ji=null}return t}function L0(t,e){do{var n=Qe;try{if(qf(),iu.current=Nu,Ou){for(var r=ze.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}Ou=!1}if(Ui=0,rt=et=ze=null,ra=!1,Ea=0,op.current=null,n===null||n.return===null){tt=1,Ta=e,Qe=null;break}e:{var o=t,l=n.return,u=n,d=e;if(e=at,u.flags|=32768,d!==null&&typeof d=="object"&&typeof d.then=="function"){var h=d,m=u,g=m.tag;if(!(m.mode&1)&&(g===0||g===11||g===15)){var _=m.alternate;_?(m.updateQueue=_.updateQueue,m.memoizedState=_.memoizedState,m.lanes=_.lanes):(m.updateQueue=null,m.memoizedState=null)}var y=Ig(l);if(y!==null){y.flags&=-257,Mg(y,l,u,o,e),y.mode&1&&Rg(o,h,e),e=y,d=h;var P=e.updateQueue;if(P===null){var x=new Set;x.add(d),e.updateQueue=x}else P.add(d);break e}else{if(!(e&1)){Rg(o,h,e),dp();break e}d=Error(U(426))}}else if(Re&&u.mode&1){var E=Ig(l);if(E!==null){!(E.flags&65536)&&(E.flags|=256),Mg(E,l,u,o,e),Vf(to(d,u));break e}}o=d=to(d,u),tt!==4&&(tt=2),sa===null?sa=[o]:sa.push(o),o=l;do{switch(o.tag){case 3:o.flags|=65536,e&=-e,o.lanes|=e;var S=g0(o,d,e);Tg(o,S);break e;case 1:u=d;var w=o.type,b=o.stateNode;if(!(o.flags&128)&&(typeof w.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(Xr===null||!Xr.has(b)))){o.flags|=65536,e&=-e,o.lanes|=e;var T=v0(o,u,e);Tg(o,T);break e}}o=o.return}while(o!==null)}M0(n)}catch(O){e=O,Qe===n&&n!==null&&(Qe=n=n.return);continue}break}while(!0)}function R0(){var t=Au.current;return Au.current=Nu,t===null?Nu:t}function dp(){(tt===0||tt===3||tt===2)&&(tt=4),it===null||!(Hi&268435455)&&!(lc&268435455)||zr(it,at)}function Iu(t,e){var n=xe;xe|=2;var r=R0();(it!==t||at!==e)&&(cr=null,zi(t,e));do try{TE();break}catch(s){L0(t,s)}while(!0);if(qf(),xe=n,Au.current=r,Qe!==null)throw Error(U(261));return it=null,at=0,tt}function TE(){for(;Qe!==null;)I0(Qe)}function jE(){for(;Qe!==null&&!ek();)I0(Qe)}function I0(t){var e=z0(t.alternate,t,zt);t.memoizedProps=t.pendingProps,e===null?M0(t):Qe=e,op.current=null}function M0(t){var e=t;do{var n=e.alternate;if(t=e.return,e.flags&32768){if(n=bE(n,e),n!==null){n.flags&=32767,Qe=n;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{tt=6,Qe=null;return}}else if(n=xE(n,e,zt),n!==null){Qe=n;return}if(e=e.sibling,e!==null){Qe=e;return}Qe=e=t}while(e!==null);tt===0&&(tt=5)}function ki(t,e,n){var r=Ee,s=an.transition;try{an.transition=null,Ee=1,OE(t,e,n,r)}finally{an.transition=s,Ee=r}return null}function OE(t,e,n,r){do zs();while(Zr!==null);if(xe&6)throw Error(U(327));n=t.finishedWork;var s=t.finishedLanes;if(n===null)return null;if(t.finishedWork=null,t.finishedLanes=0,n===t.current)throw Error(U(177));t.callbackNode=null,t.callbackPriority=0;var o=n.lanes|n.childLanes;if(ck(t,o),t===it&&(Qe=it=null,at=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ml||(Ml=!0,B0(gu,function(){return zs(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=an.transition,an.transition=null;var l=Ee;Ee=1;var u=xe;xe|=4,op.current=null,kE(t,n),O0(n,t),Jk(bh),yu=!!xh,bh=xh=null,t.current=n,EE(n),tk(),xe=u,Ee=l,an.transition=o}else t.current=n;if(Ml&&(Ml=!1,Zr=t,Ru=s),o=t.pendingLanes,o===0&&(Xr=null),ik(n.stateNode),It(t,Ve()),e!==null)for(r=t.onRecoverableError,n=0;n<e.length;n++)s=e[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(Lu)throw Lu=!1,t=Uh,Uh=null,t;return Ru&1&&t.tag!==0&&zs(),o=t.pendingLanes,o&1?t===Hh?oa++:(oa=0,Hh=t):oa=0,ci(),null}function zs(){if(Zr!==null){var t=g_(Ru),e=an.transition,n=Ee;try{if(an.transition=null,Ee=16>t?16:t,Zr===null)var r=!1;else{if(t=Zr,Zr=null,Ru=0,xe&6)throw Error(U(331));var s=xe;for(xe|=4,Q=t.current;Q!==null;){var o=Q,l=o.child;if(Q.flags&16){var u=o.deletions;if(u!==null){for(var d=0;d<u.length;d++){var h=u[d];for(Q=h;Q!==null;){var m=Q;switch(m.tag){case 0:case 11:case 15:ia(8,m,o)}var g=m.child;if(g!==null)g.return=m,Q=g;else for(;Q!==null;){m=Q;var _=m.sibling,y=m.return;if(C0(m),m===h){Q=null;break}if(_!==null){_.return=y,Q=_;break}Q=y}}}var P=o.alternate;if(P!==null){var x=P.child;if(x!==null){P.child=null;do{var E=x.sibling;x.sibling=null,x=E}while(x!==null)}}Q=o}}if(o.subtreeFlags&2064&&l!==null)l.return=o,Q=l;else e:for(;Q!==null;){if(o=Q,o.flags&2048)switch(o.tag){case 0:case 11:case 15:ia(9,o,o.return)}var S=o.sibling;if(S!==null){S.return=o.return,Q=S;break e}Q=o.return}}var w=t.current;for(Q=w;Q!==null;){l=Q;var b=l.child;if(l.subtreeFlags&2064&&b!==null)b.return=l,Q=b;else e:for(l=w;Q!==null;){if(u=Q,u.flags&2048)try{switch(u.tag){case 0:case 11:case 15:ac(9,u)}}catch(O){Ue(u,u.return,O)}if(u===l){Q=null;break e}var T=u.sibling;if(T!==null){T.return=u.return,Q=T;break e}Q=u.return}}if(xe=s,ci(),Jn&&typeof Jn.onPostCommitFiberRoot=="function")try{Jn.onPostCommitFiberRoot(Xu,t)}catch{}r=!0}return r}finally{Ee=n,an.transition=e}}return!1}function Gg(t,e,n){e=to(n,e),e=g0(t,e,1),t=Yr(t,e,1),e=Et(),t!==null&&(Ua(t,1,e),It(t,e))}function Ue(t,e,n){if(t.tag===3)Gg(t,t,n);else for(;e!==null;){if(e.tag===3){Gg(e,t,n);break}else if(e.tag===1){var r=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Xr===null||!Xr.has(r))){t=to(n,t),t=v0(e,t,1),e=Yr(e,t,1),t=Et(),e!==null&&(Ua(e,1,t),It(e,t));break}}e=e.return}}function NE(t,e,n){var r=t.pingCache;r!==null&&r.delete(e),e=Et(),t.pingedLanes|=t.suspendedLanes&n,it===t&&(at&n)===n&&(tt===4||tt===3&&(at&130023424)===at&&500>Ve()-lp?zi(t,0):ap|=n),It(t,e)}function D0(t,e){e===0&&(t.mode&1?(e=Pl,Pl<<=1,!(Pl&130023424)&&(Pl=4194304)):e=1);var n=Et();t=wr(t,e),t!==null&&(Ua(t,e,n),It(t,n))}function AE(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),D0(t,n)}function LE(t,e){var n=0;switch(t.tag){case 13:var r=t.stateNode,s=t.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=t.stateNode;break;default:throw Error(U(314))}r!==null&&r.delete(e),D0(t,n)}var z0;z0=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||Lt.current)At=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return At=!1,wE(t,e,n);At=!!(t.flags&131072)}else At=!1,Re&&e.flags&1048576&&U_(e,Eu,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;ou(t,e),t=e.pendingProps;var s=Qs(e,mt.current);Ds(e,n),s=tp(null,e,r,t,s,n);var o=np();return e.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,Rt(r)?(o=!0,Su(e)):o=!1,e.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,Jf(e),s.updater=oc,e.stateNode=s,s._reactInternals=e,Nh(e,r,t,n),e=Rh(null,e,r,!0,o,n)):(e.tag=0,Re&&o&&Hf(e),bt(null,e,s,n),e=e.child),e;case 16:r=e.elementType;e:{switch(ou(t,e),t=e.pendingProps,s=r._init,r=s(r._payload),e.type=r,s=e.tag=IE(r),t=yn(r,t),s){case 0:e=Lh(null,e,r,t,n);break e;case 1:e=Bg(null,e,r,t,n);break e;case 11:e=Dg(null,e,r,t,n);break e;case 14:e=zg(null,e,r,yn(r.type,t),n);break e}throw Error(U(306,r,""))}return e;case 0:return r=e.type,s=e.pendingProps,s=e.elementType===r?s:yn(r,s),Lh(t,e,r,s,n);case 1:return r=e.type,s=e.pendingProps,s=e.elementType===r?s:yn(r,s),Bg(t,e,r,s,n);case 3:e:{if(x0(e),t===null)throw Error(U(387));r=e.pendingProps,o=e.memoizedState,s=o.element,K_(t,e),Tu(e,r,null,n);var l=e.memoizedState;if(r=l.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},e.updateQueue.baseState=o,e.memoizedState=o,e.flags&256){s=to(Error(U(423)),e),e=$g(t,e,r,n,s);break e}else if(r!==s){s=to(Error(U(424)),e),e=$g(t,e,r,n,s);break e}else for(Ut=Qr(e.stateNode.containerInfo.firstChild),Ht=e,Re=!0,En=null,n=Z_(e,null,r,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ys(),r===s){e=xr(t,e,n);break e}bt(t,e,r,n)}e=e.child}return e;case 5:return G_(e),t===null&&Th(e),r=e.type,s=e.pendingProps,o=t!==null?t.memoizedProps:null,l=s.children,Sh(r,s)?l=null:o!==null&&Sh(r,o)&&(e.flags|=32),w0(t,e),bt(t,e,l,n),e.child;case 6:return t===null&&Th(e),null;case 13:return b0(t,e,n);case 4:return Qf(e,e.stateNode.containerInfo),r=e.pendingProps,t===null?e.child=Xs(e,null,r,n):bt(t,e,r,n),e.child;case 11:return r=e.type,s=e.pendingProps,s=e.elementType===r?s:yn(r,s),Dg(t,e,r,s,n);case 7:return bt(t,e,e.pendingProps,n),e.child;case 8:return bt(t,e,e.pendingProps.children,n),e.child;case 12:return bt(t,e,e.pendingProps.children,n),e.child;
vendor: 2,882 bytes, line 40
40case 10:e:{if(r=e.type._context,s=e.pendingProps,o=e.memoizedProps,l=s.value,Oe(Pu,r._currentValue),r._currentValue=l,o!==null)if(Tn(o.value,l)){if(o.children===s.children&&!Lt.current){e=xr(t,e,n);break e}}else for(o=e.child,o!==null&&(o.return=e);o!==null;){var u=o.dependencies;if(u!==null){l=o.child;for(var d=u.firstContext;d!==null;){if(d.context===r){if(o.tag===1){d=gr(-1,n&-n),d.tag=2;var h=o.updateQueue;if(h!==null){h=h.shared;var m=h.pending;m===null?d.next=d:(d.next=m.next,m.next=d),h.pending=d}}o.lanes|=n,d=o.alternate,d!==null&&(d.lanes|=n),jh(o.return,n,e),u.lanes|=n;break}d=d.next}}else if(o.tag===10)l=o.type===e.type?null:o.child;else if(o.tag===18){if(l=o.return,l===null)throw Error(U(341));l.lanes|=n,u=l.alternate,u!==null&&(u.lanes|=n),jh(l,n,e),l=o.sibling}else l=o.child;if(l!==null)l.return=o;else for(l=o;l!==null;){if(l===e){l=null;break}if(o=l.sibling,o!==null){o.return=l.return,l=o;break}l=l.return}o=l}bt(t,e,s.children,n),e=e.child}return e;case 9:return s=e.type,r=e.pendingProps.children,Ds(e,n),s=ln(s),r=r(s),e.flags|=1,bt(t,e,r,n),e.child;case 14:return r=e.type,s=yn(r,e.pendingProps),s=yn(r.type,s),zg(t,e,r,s,n);case 15:return y0(t,e,e.type,e.pendingProps,n);case 17:return r=e.type,s=e.pendingProps,s=e.elementType===r?s:yn(r,s),ou(t,e),e.tag=1,Rt(r)?(t=!0,Su(e)):t=!1,Ds(e,n),m0(e,r,s),Nh(e,r,s,n),Rh(null,e,r,!0,t,n);case 19:return S0(t,e,n);case 22:return _0(t,e,n)}throw Error(U(156,e.tag))};function B0(t,e){return h_(t,e)}function RE(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,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 on(t,e,n,r){return new RE(t,e,n,r)}function hp(t){return t=t.prototype,!(!t||!t.isReactComponent)}function IE(t){if(typeof t=="function")return hp(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Nf)return 11;if(t===Af)return 14}return 2}function ti(t,e){var n=t.alternate;return n===null?(n=on(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function uu(t,e,n,r,s,o){var l=2;if(r=t,typeof t=="function")hp(t)&&(l=1);else if(typeof t=="string")l=5;else e:switch(t){case xs:return Bi(n.children,s,o,e);case Of:l=8,s|=8;break;case th:return t=on(12,n,e,s|2),t.elementType=th,t.lanes=o,t;
vendor: 6,258 bytes, line 40
40case nh:return t=on(13,n,e,s),t.elementType=nh,t.lanes=o,t;case rh:return t=on(19,n,e,s),t.elementType=rh,t.lanes=o,t;case Gy:return uc(n,s,o,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case qy:l=10;break e;case Ky:l=9;break e;case Nf:l=11;break e;case Af:l=14;break e;case Ir:l=16,r=null;break e}throw Error(U(130,t==null?t:typeof t,""))}return e=on(l,n,e,s),e.elementType=t,e.type=r,e.lanes=o,e}function Bi(t,e,n,r){return t=on(7,t,r,e),t.lanes=n,t}function uc(t,e,n,r){return t=on(22,t,r,e),t.elementType=Gy,t.lanes=n,t.stateNode={isHidden:!1},t}function Ad(t,e,n){return t=on(6,t,null,e),t.lanes=n,t}function Ld(t,e,n){return e=on(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function ME(t,e,n,r,s){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=fd(0),this.expirationTimes=fd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fd(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function fp(t,e,n,r,s,o,l,u,d){return t=new ME(t,e,n,u,d),e===1?(e=1,o===!0&&(e|=8)):e=0,o=on(3,null,null,e),t.current=o,o.stateNode=t,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Jf(o),t}function DE(t,e,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ws,key:r==null?null:""+r,children:t,containerInfo:e,implementation:n}}function $0(t){if(!t)return si;t=t._reactInternals;e:{if(qi(t)!==t||t.tag!==1)throw Error(U(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(Rt(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(U(171))}if(t.tag===1){var n=t.type;if(Rt(n))return $_(t,n,e)}return e}function F0(t,e,n,r,s,o,l,u,d){return t=fp(n,r,!0,t,s,o,l,u,d),t.context=$0(null),n=t.current,r=Et(),s=ei(n),o=gr(r,s),o.callback=e??null,Yr(n,o,s),t.current.lanes=s,Ua(t,s,r),It(t,r),t}function cc(t,e,n,r){var s=e.current,o=Et(),l=ei(s);return n=$0(n),e.context===null?e.context=n:e.pendingContext=n,e=gr(o,l),e.payload={element:t},r=r===void 0?null:r,r!==null&&(e.callback=r),t=Yr(s,e,l),t!==null&&(Cn(t,s,l,o),ru(t,s,l)),l}function Mu(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function Jg(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function pp(t,e){Jg(t,e),(t=t.alternate)&&Jg(t,e)}function zE(){return null}var U0=typeof reportError=="function"?reportError:function(t){console.error(t)};function mp(t){this._internalRoot=t}dc.prototype.render=mp.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(U(409));cc(t,e,null,null)};dc.prototype.unmount=mp.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Wi(function(){cc(null,t,null,null)}),e[_r]=null}};function dc(t){this._internalRoot=t}dc.prototype.unstable_scheduleHydration=function(t){if(t){var e=__();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Dr.length&&e!==0&&e<Dr[n].priority;n++);Dr.splice(n,0,t),n===0&&x_(t)}};function gp(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function hc(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function Qg(){}function BE(t,e,n,r,s){if(s){if(typeof r=="function"){var o=r;r=function(){var h=Mu(l);o.call(h)}}var l=F0(e,r,t,0,null,!1,!1,"",Qg);return t._reactRootContainer=l,t[_r]=l.current,wa(t.nodeType===8?t.parentNode:t),Wi(),l}for(;s=t.lastChild;)t.removeChild(s);if(typeof r=="function"){var u=r;r=function(){var h=Mu(d);u.call(h)}}var d=fp(t,0,!1,null,null,!1,!1,"",Qg);return t._reactRootContainer=d,t[_r]=d.current,wa(t.nodeType===8?t.parentNode:t),Wi(function(){cc(e,d,n,r)}),d}function fc(t,e,n,r,s){var o=n._reactRootContainer;if(o){var l=o;if(typeof s=="function"){var u=s;s=function(){var d=Mu(l);u.call(d)}}cc(e,l,t,s)}else l=BE(n,e,t,s,r);return Mu(l)}v_=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var n=Go(e.pendingLanes);n!==0&&(If(e,n|1),It(e,Ve()),!(xe&6)&&(no=Ve()+500,ci()))}break;case 13:Wi(function(){var r=wr(t,1);if(r!==null){var s=Et();Cn(r,t,1,s)}}),pp(t,1)}};Mf=function(t){if(t.tag===13){var e=wr(t,134217728);if(e!==null){var n=Et();Cn(e,t,134217728,n)}pp(t,134217728)}};y_=function(t){if(t.tag===13){var e=ei(t),n=wr(t,e);if(n!==null){var r=Et();Cn(n,t,e,r)}pp(t,e)}};__=function(){return Ee};w_=function(t,e){var n=Ee;try{return Ee=t,e()}finally{Ee=n}};fh=function(t,e,n){switch(e){case"input":if(oh(t,n),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var r=n[e];if(r!==t&&r.form===t.form){var s=rc(r);if(!s)throw Error(U(90));Qy(r),oh(r,s)}}}break;case"textarea":Xy(t,n);break;case"select":e=n.value,e!=null&&Ls(t,!!n.multiple,e,!1)}};o_=up;a_=Wi;var $E={usingClientEntryPoint:!1,Events:[Wa,Es,rc,i_,s_,up]},Wo={findFiberByHostInstance:Ti,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},FE={bundleType:Wo.bundleType,version:Wo.version,rendererPackageName:Wo.rendererPackageName,rendererConfig:Wo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Er.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=c_(t),t===null?null:t.stateNode},findFiberByHostInstance:Wo.findFiberByHostInstance||zE,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};
40if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Dl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Dl.isDisabled&&Dl.supportsFiber)try{Xu=Dl.inject(FE),Jn=Dl}catch{}}qt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$E;qt.createPortal=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!gp(e))throw Error(U(200));return DE(t,e,null,n)};qt.createRoot=function(t,e){if(!gp(t))throw Error(U(299));var n=!1,r="",s=U0;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(r=e.identifierPrefix),e.onRecoverableError!==void 0&&(s=e.onRecoverableError)),e=fp(t,1,!1,null,null,n,!1,r,s),t[_r]=e.current,wa(t.nodeType===8?t.parentNode:t),new mp(e)};qt.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(U(188)):(t=Object.keys(t).join(","),Error(U(268,t)));return t=c_(e),t=t===null?null:t.stateNode,t};qt.flushSync=function(t){return Wi(t)};qt.hydrate=function(t,e,n){if(!hc(e))throw Error(U(200));return fc(null,t,e,!0,n)};qt.hydrateRoot=function(t,e,n){if(!gp(t))throw Error(U(405));var r=n!=null&&n.hydratedSources||null,s=!1,o="",l=U0;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(l=n.onRecoverableError)),e=F0(e,null,t,1,n??null,s,!1,o,l),t[_r]=e.current,wa(t),r)for(t=0;t<r.length;t++)n=r[t],s=n._getVersion,s=s(n._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[n,s]:e.mutableSourceEagerHydrationData.push(n,s);return new dc(e)};qt.render=function(t,e,n){if(!hc(e))throw Error(U(200));return fc(null,t,e,!1,n)};qt.unmountComponentAtNode=function(t){if(!hc(t))throw Error(U(40));return t._reactRootContainer?(Wi(function(){fc(null,null,t,!1,function(){t._reactRootContainer=null,t[_r]=null})}),!0):!1};qt.unstable_batchedUpdates=up;qt.unstable_renderSubtreeIntoContainer=function(t,e,n,r){if(!hc(n))throw Error(U(200));if(t==null||t._reactInternals===void 0)throw Error(U(38));return fc(t,e,n,!1,r)};qt.version="18.3.1-next-f1338f8080-20240426";function H0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(H0)}catch(t){console.error(t)}}H0(),Hy.exports=qt;var Za=Hy.exports;const W0=bf(Za);var V0,Yg=Za;V0=Yg.createRoot,Yg.hydrateRoot;const UE=1,HE=1e6;let Rd=0;function WE(){return Rd=(Rd+1)%Number.MAX_SAFE_INTEGER,Rd.toString()}const Id=new Map,Xg=t=>{if(Id.has(t))return;const e=setTimeout(()=>{Id.delete(t),aa({type:"REMOVE_TOAST",toastId:t})},HE);Id.set(t,e)},VE=(t,e)=>{switch(e.type){case"ADD_TOAST":return{...t,toasts:[e.toast,...t.toasts].slice(0,UE)};case"UPDATE_TOAST":return{...t,toasts:t.toasts.map(n=>n.id===e.toast.id?{...n,...e.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=e;return n?Xg(n):t.toasts.forEach(r=>{Xg(r.id)}),{...t,toasts:t.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return e.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(n=>n.id!==e.toastId)}}},cu=[];let du={toasts:[]};function aa(t){du=VE(du,t),cu.forEach(e=>{e(du)})}function ZE({...t}){const e=WE(),n=s=>aa({type:"UPDATE_TOAST",toast:{...s,id:e}}),r=()=>aa({type:"DISMISS_TOAST",toastId:e});return aa({type:"ADD_TOAST",toast:{...t,id:e,open:!0,onOpenChange:s=>{s||r()}}}),{id:e,dismiss:r,update:n}}function qE(){const[t,e]=C.useState(du);return C.useEffect(()=>(cu.push(e),()=>{const n=cu.indexOf(e);n>-1&&cu.splice(n,1)}),[t]),{...t,toast:ZE,dismiss:n=>aa({type:"DISMISS_TOAST",toastId:n})}}function Ze(t,e,{checkForDefaultPrevented:n=!0}={}){return function(s){if(t==null||t(s),n===!1||!s.defaultPrevented)return e==null?void 0:e(s)}}function ev(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Z0(...t){return e=>{let n=!1;const r=t.map(s=>{const o=ev(s,e);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let s=0;s<r.length;s++){const o=r[s];typeof o=="function"?o():ev(t[s],null)}}}}function Zt(...t){return C.useCallback(Z0(...t),t)}function ho(t,e=[]){let n=[];function r(o,l){const u=C.createContext(l),d=n.length;n=[...n,l];const h=g=>{var S;const{scope:_,children:y,...P}=g,x=((S=_==null?void 0:_[t])==null?void 0:S[d])||u,E=C.useMemo(()=>P,Object.values(P));return p.jsx(x.Provider,{value:E,children:y})};h.displayName=o+"Provider";function m(g,_){var x;const y=((x=_==null?void 0:_[t])==null?void 0:x[d])||u,P=C.useContext(y);if(P)return P;if(l!==void 0)return l;throw new Error(`\`${g}\` must be used within \`${o}\``)}return[h,m]}const s=()=>{const o=n.map(l=>C.createContext(l));
vendor: 8,635 bytes, line 40
40return function(u){const d=(u==null?void 0:u[t])||o;return C.useMemo(()=>({[`__scope${t}`]:{...u,[t]:d}}),[u,d])}};return s.scopeName=t,[r,KE(s,...e)]}function KE(...t){const e=t[0];if(t.length===1)return e;const n=()=>{const r=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(o){const l=r.reduce((u,{useScope:d,scopeName:h})=>{const g=d(o)[`__scope${h}`];return{...u,...g}},{});return C.useMemo(()=>({[`__scope${e.scopeName}`]:l}),[l])}};return n.scopeName=e.scopeName,n}function Du(t){const e=JE(t),n=C.forwardRef((r,s)=>{const{children:o,...l}=r,u=C.Children.toArray(o),d=u.find(YE);if(d){const h=d.props.children,m=u.map(g=>g===d?C.Children.count(h)>1?C.Children.only(null):C.isValidElement(h)?h.props.children:null:g);return p.jsx(e,{...l,ref:s,children:C.isValidElement(h)?C.cloneElement(h,void 0,m):null})}return p.jsx(e,{...l,ref:s,children:o})});return n.displayName=`${t}.Slot`,n}var GE=Du("Slot");function JE(t){const e=C.forwardRef((n,r)=>{const{children:s,...o}=n;if(C.isValidElement(s)){const l=eP(s),u=XE(o,s.props);return s.type!==C.Fragment&&(u.ref=r?Z0(r,l):l),C.cloneElement(s,u)}return C.Children.count(s)>1?C.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var q0=Symbol("radix.slottable");function QE(t){const e=({children:n})=>p.jsx(p.Fragment,{children:n});return e.displayName=`${t}.Slottable`,e.__radixId=q0,e}function YE(t){return C.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===q0}function XE(t,e){const n={...e};for(const r in e){const s=t[r],o=e[r];/^on[A-Z]/.test(r)?s&&o?n[r]=(...u)=>{const d=o(...u);return s(...u),d}:s&&(n[r]=s):r==="style"?n[r]={...s,...o}:r==="className"&&(n[r]=[s,o].filter(Boolean).join(" "))}return{...t,...n}}function eP(t){var r,s;let e=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}function tP(t){const e=t+"CollectionProvider",[n,r]=ho(e),[s,o]=n(e,{collectionRef:{current:null},itemMap:new Map}),l=x=>{const{scope:E,children:S}=x,w=Z.useRef(null),b=Z.useRef(new Map).current;return p.jsx(s,{scope:E,itemMap:b,collectionRef:w,children:S})};l.displayName=e;const u=t+"CollectionSlot",d=Du(u),h=Z.forwardRef((x,E)=>{const{scope:S,children:w}=x,b=o(u,S),T=Zt(E,b.collectionRef);return p.jsx(d,{ref:T,children:w})});h.displayName=u;const m=t+"CollectionItemSlot",g="data-radix-collection-item",_=Du(m),y=Z.forwardRef((x,E)=>{const{scope:S,children:w,...b}=x,T=Z.useRef(null),O=Zt(E,T),N=o(m,S);return Z.useEffect(()=>(N.itemMap.set(T,{ref:T,...b}),()=>void N.itemMap.delete(T))),p.jsx(_,{[g]:"",ref:O,children:w})});y.displayName=m;function P(x){const E=o(t+"CollectionConsumer",x);return Z.useCallback(()=>{const w=E.collectionRef.current;if(!w)return[];const b=Array.from(w.querySelectorAll(`[${g}]`));return Array.from(E.itemMap.values()).sort((N,I)=>b.indexOf(N.ref.current)-b.indexOf(I.ref.current))},[E.collectionRef,E.itemMap])}return[{Provider:l,Slot:h,ItemSlot:y},P,r]}var nP=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],qe=nP.reduce((t,e)=>{const n=Du(`Primitive.${e}`),r=C.forwardRef((s,o)=>{const{asChild:l,...u}=s,d=l?n:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(d,{...u,ref:o})});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{});function K0(t,e){t&&Za.flushSync(()=>t.dispatchEvent(e))}function br(t){const e=C.useRef(t);return C.useEffect(()=>{e.current=t}),C.useMemo(()=>(...n)=>{var r;return(r=e.current)==null?void 0:r.call(e,...n)},[])}function rP(t,e=globalThis==null?void 0:globalThis.document){const n=br(t);C.useEffect(()=>{const r=s=>{s.key==="Escape"&&n(s)};return e.addEventListener("keydown",r,{capture:!0}),()=>e.removeEventListener("keydown",r,{capture:!0})},[n,e])}var iP="DismissableLayer",Zh="dismissableLayer.update",sP="dismissableLayer.pointerDownOutside",oP="dismissableLayer.focusOutside",tv,G0=C.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),vp=C.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:o,onInteractOutside:l,onDismiss:u,...d}=t,h=C.useContext(G0),[m,g]=C.useState(null),_=(m==null?void 0:m.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=C.useState({}),P=Zt(e,I=>g(I)),x=Array.from(h.layers),[E]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),S=x.indexOf(E),w=m?x.indexOf(m):-1,b=h.layersWithOutsidePointerEventsDisabled.size>0,T=w>=S,O=lP(I=>{const B=I.target,H=[...h.branches].some(W=>W.contains(B));!T||H||(s==null||s(I),l==null||l(I),I.defaultPrevented||u==null||u())},_),N=uP(I=>{const B=I.target;[...h.branches].some(W=>W.contains(B))||(o==null||o(I),l==null||l(I),I.defaultPrevented||u==null||u())},_);return rP(I=>{w===h.layers.size-1&&(r==null||r(I),!I.defaultPrevented&&u&&(I.preventDefault(),u()))},_),C.useEffect(()=>{if(m)return n&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(tv=_.body.style.pointerEvents,_.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(m)),h.layers.add(m),nv(),()=>{n&&h.layersWithOutsidePointerEventsDisabled.size===1&&(_.body.style.pointerEvents=tv)}},[m,_,n,h]),C.useEffect(()=>()=>{m&&(h.layers.delete(m),h.layersWithOutsidePointerEventsDisabled.delete(m),nv())},[m,h]),C.useEffect(()=>{const I=()=>y({});return document.addEventListener(Zh,I),()=>document.removeEventListener(Zh,I)},[]),p.jsx(qe.div,{...d,ref:P,style:{pointerEvents:b?T?"auto":"none":void 0,...t.style},onFocusCapture:Ze(t.onFocusCapture,N.onFocusCapture),onBlurCapture:Ze(t.onBlurCapture,N.onBlurCapture),onPointerDownCapture:Ze(t.onPointerDownCapture,O.onPointerDownCapture)})});vp.displayName=iP;var aP="DismissableLayerBranch",J0=C.forwardRef((t,e)=>{const n=C.useContext(G0),r=C.useRef(null),s=Zt(e,r);return C.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),p.jsx(qe.div,{...t,ref:s})});J0.displayName=aP;function lP(t,e=globalThis==null?void 0:globalThis.document){const n=br(t),r=C.useRef(!1),s=C.useRef(()=>{});return C.useEffect(()=>{const o=u=>{if(u.target&&!r.current){let d=function(){Q0(sP,n,h,{discrete:!0})};const h={originalEvent:u};u.pointerType==="touch"?(e.removeEventListener("click",s.current),s.current=d,e.addEventListener("click",s.current,{once:!0})):d()}else e.removeEventListener("click",s.current);r.current=!1},l=window.setTimeout(()=>{e.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(l),e.removeEventListener("pointerdown",o),e.removeEventListener("click",s.current)}},[e,n]),{onPointerDownCapture:()=>r.current=!0}}function uP(t,e=globalThis==null?void 0:globalThis.document){const n=br(t),r=C.useRef(!1);return C.useEffect(()=>{const s=o=>{o.target&&!r.current&&Q0(oP,n,{originalEvent:o},{discrete:!1})};return e.addEventListener("focusin",s),()=>e.removeEventListener("focusin",s)},[e,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function nv(){const t=new CustomEvent(Zh);document.dispatchEvent(t)}function Q0(t,e,n,{discrete:r}){const s=n.originalEvent.target,o=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&s.addEventListener(t,e,{once:!0}),r?K0(s,o):s.dispatchEvent(o)}var cP=vp,dP=J0,jn=globalThis!=null&&globalThis.document?C.useLayoutEffect:()=>{},hP="Portal",Y0=C.forwardRef((t,e)=>{var u;const{container:n,...r}=t,[s,o]=C.useState(!1);jn(()=>o(!0),[]);const l=n||s&&((u=globalThis==null?void 0:globalThis.document)==null?void 0:u.body);return l?W0.createPortal(p.jsx(qe.div,{...r,ref:e}),l):null});Y0.displayName=hP;function fP(t,e){return C.useReducer((n,r)=>e[n][r]??n,t)}var pc=t=>{const{present:e,children:n}=t,r=pP(e),s=typeof n=="function"?n({present:r.isPresent}):C.Children.only(n),o=Zt(r.ref,mP(s));return typeof n=="function"||r.isPresent?C.cloneElement(s,{ref:o}):null};pc.displayName="Presence";function pP(t){const[e,n]=C.useState(),r=C.useRef(null),s=C.useRef(t),o=C.useRef("none"),l=t?"mounted":"unmounted",[u,d]=fP(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return C.useEffect(()=>{const h=zl(r.current);o.current=u==="mounted"?h:"none"},[u]),jn(()=>{const h=r.current,m=s.current;if(m!==t){const _=o.current,y=zl(h);t?d("MOUNT"):y==="none"||(h==null?void 0:h.display)==="none"?d("UNMOUNT"):d(m&&_!==y?"ANIMATION_OUT":"UNMOUNT"),s.current=t}},[t,d]),jn(()=>
40{if(e){let h;const m=e.ownerDocument.defaultView??window,g=y=>{const x=zl(r.current).includes(y.animationName);if(y.target===e&&x&&(d("ANIMATION_END"),!s.current)){const E=e.style.animationFillMode;e.style.animationFillMode="forwards",h=m.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=E)})}},_=y=>{y.target===e&&(o.current=zl(r.current))};return e.addEventListener("animationstart",_),e.addEventListener("animationcancel",g),e.addEventListener("animationend",g),()=>{m.clearTimeout(h),e.removeEventListener("animationstart",_),e.removeEventListener("animationcancel",g),e.removeEventListener("animationend",g)}}else d("ANIMATION_END")},[e,d]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:C.useCallback(h=>{r.current=h?getComputedStyle(h):null,n(h)},[])}}function zl(t){return(t==null?void 0:t.animationName)||"none"}function mP(t){var r,s;let e=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var gP=Fy[" useInsertionEffect ".trim().toString()]||jn;function X0({prop:t,defaultProp:e,onChange:n=()=>{},caller:r}){const[s,o,l]=vP({defaultProp:e,onChange:n}),u=t!==void 0,d=u?t:s;{const m=C.useRef(t!==void 0);C.useEffect(()=>{const g=m.current;g!==u&&console.warn(`${r} is changing from ${g?"controlled":"uncontrolled"} to ${u?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),m.current=u},[u,r])}const h=C.useCallback(m=>{var g;if(u){const _=yP(m)?m(t):m;_!==t&&((g=l.current)==null||g.call(l,_))}else o(m)},[u,t,o,l]);return[d,h]}function vP({defaultProp:t,onChange:e}){const[n,r]=C.useState(t),s=C.useRef(n),o=C.useRef(e);return gP(()=>{o.current=e},[e]),C.useEffect(()=>{var l;s.current!==n&&((l=o.current)==null||l.call(o,n),s.current=n)},[n,s]),[n,r,o]}function yP(t){return typeof t=="function"}var _P=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"}),wP="VisuallyHidden",mc=C.forwardRef((t,e)=>p.jsx(qe.span,{...t,ref:e,style:{..._P,...t.style}}));mc.displayName=wP;var xP=mc,yp="ToastProvider",[_p,bP,SP]=tP("Toast"),[ew,TR]=ho("Toast",[SP]),[kP,gc]=ew(yp),tw=t=>{const{__scopeToast:e,label:n="Notification",duration:r=5e3,swipeDirection:s="right",swipeThreshold:o=50,children:l}=t,[u,d]=C.useState(null),[h,m]=C.useState(0),g=C.useRef(!1),_=C.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${yp}\`. Expected non-empty \`string\`.`),p.jsx(_p.Provider,{scope:e,children:p.jsx(kP,{scope:e,label:n,duration:r,swipeDirection:s,swipeThreshold:o,toastCount:h,viewport:u,onViewportChange:d,onToastAdd:C.useCallback(()=>m(y=>y+1),[]),onToastRemove:C.useCallback(()=>m(y=>y-1),[]),isFocusedToastEscapeKeyDownRef:g,isClosePausedRef:_,children:l})})};tw.displayName=yp;var nw="ToastViewport",EP=["F8"],qh="toast.viewportPause",Kh="toast.viewportResume",rw=C.forwardRef((t,e)=>{const{__scopeToast:n,hotkey:r=EP,label:s="Notifications ({hotkey})",...o}=t,l=gc(nw,n),u=bP(n),d=C.useRef(null),h=C.useRef(null),m=C.useRef(null),g=C.useRef(null),_=Zt(e,g,l.onViewportChange),y=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),P=l.toastCount>0;C.useEffect(()=>{const E=S=>{var b;r.length!==0&&r.every(T=>S[T]||S.code===T)&&((b=g.current)==null||b.focus())};return document.addEventListener("keydown",E),()=>document.removeEventListener("keydown",E)},[r]),C.useEffect(()=>{const E=d.current,S=g.current;if(P&&E&&S){const w=()=>{if(!l.isClosePausedRef.current){const N=new CustomEvent(qh);S.dispatchEvent(N),l.isClosePausedRef.current=!0}},b=()=>{if(l.isClosePausedRef.current){const N=new CustomEvent(Kh);S.dispatchEvent(N),l.isClosePausedRef.current=!1}},T=N=>{!E.contains(N.relatedTarget)&&b()},O=()=>{E.contains(document.activeElement)||b()};return E.addEventListener("focusin",w),E.addEventListener("focusout",T),E.addEventListener("pointermove",w),E.addEventListener("pointerleave",O),window.addEventListener("blur",w),window.addEventListener("focus",b),()=>{E.removeEventListener("focusin",w),E.removeEventListener("focusout",T),E.removeEventListener("pointermove",w),E.removeEventListener("pointerleave",O),window.removeEventListener("blur",w),window.removeEventListener("focus",b)}}},[P,l.isClosePausedRef]);const x=C.useCallback(({tabbingDirection:E})=>{const w=u().map(b=>{const T=b.ref.current,O=[T,...zP(T)];return E==="forwards"?O:O.reverse()});return(E==="forwards"?w.reverse():w).flat()},[u]);return C.useEffect(()=>{const E=g.current;if(E){const S=w=>{var O,N,I;const b=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!b){const B=document.activeElement,H=w.shiftKey;if(w.target===E&&H){(O=h.current)==null||O.focus();return}const V=x({tabbingDirection:H?"backwards":"forwards"}),ce=V.findIndex(q=>q===B);Md(V.slice(ce+1))?w.preventDefault():H?(N=h.current)==null||N.focus():(I=m.current)==null||I.focus()}};return E.addEventListener("keydown",S),()=>E.removeEventListener("keydown",S)}},[u,x]),p.jsxs(dP,{ref:d,role:"region","aria-label":s.replace("{hotkey}",y),tabIndex:-1,style:{pointerEvents:P?void 0:"none"},children:[P&&p.jsx(Gh,{ref:h,onFocusFromOutsideViewport:()=>{const E=x({tabbingDirection:"forwards"});Md(E)}}),p.jsx(_p.Slot,{scope:n,children:p.jsx(qe.ol,{tabIndex:-1,...o,ref:_})}),P&&p.jsx(Gh,{ref:m,onFocusFromOutsideViewport:()=>{const E=x({tabbingDirection:"backwards"});Md(E)}})]})});rw.displayName=nw;var iw="ToastFocusProxy",Gh=C.forwardRef((t,e)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...s}=t,o=gc(iw,n);return p.jsx(mc,{"aria-hidden":!0,tabIndex:0,...s,ref:e,style:{position:"fixed"},onFocus:l=>{var h;const u=l.relatedTarget;!((h=o.viewport)!=null&&h.contains(u))&&r()}})});Gh.displayName=iw;var qa="Toast",PP="toast.swipeStart",CP="toast.swipeMove",TP="toast.swipeCancel",jP="toast.swipeEnd",sw=C.forwardRef((t,e)=>{const{forceMount:n,open:r,defaultOpen:s,onOpenChange:o,...l}=t,[u,d]=X0({prop:r,defaultProp:s??!0,onChange:o,caller:qa});return p.jsx(pc,{present:n||u,children:p.jsx(AP,{open:u,...l,ref:e,onClose:()=>d(!1),onPause:br(t.onPause),onResume:br(t.onResume),onSwipeStart:Ze(t.onSwipeStart,h=>{h.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Ze(t.onSwipeMove,h=>{const{x:m,y:g}=h.detail.delta;
40h.currentTarget.setAttribute("data-swipe","move"),h.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${m}px`),h.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${g}px`)}),onSwipeCancel:Ze(t.onSwipeCancel,h=>{h.currentTarget.setAttribute("data-swipe","cancel"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),h.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),h.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Ze(t.onSwipeEnd,h=>{const{x:m,y:g}=h.detail.delta;h.currentTarget.setAttribute("data-swipe","end"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),h.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${m}px`),h.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${g}px`),d(!1)})})})});sw.displayName=qa;var[OP,NP]=ew(qa,{onClose(){}}),AP=C.forwardRef((t,e)=>{const{__scopeToast:n,type:r="foreground",duration:s,open:o,onClose:l,onEscapeKeyDown:u,onPause:d,onResume:h,onSwipeStart:m,onSwipeMove:g,onSwipeCancel:_,onSwipeEnd:y,...P}=t,x=gc(qa,n),[E,S]=C.useState(null),w=Zt(e,q=>S(q)),b=C.useRef(null),T=C.useRef(null),O=s||x.duration,N=C.useRef(0),I=C.useRef(O),B=C.useRef(0),{onToastAdd:H,onToastRemove:W}=x,Y=br(()=>{var ve;(E==null?void 0:E.contains(document.activeElement))&&((ve=x.viewport)==null||ve.focus()),l()}),V=C.useCallback(q=>{!q||q===1/0||(window.clearTimeout(B.current),N.current=new Date().getTime(),B.current=window.setTimeout(Y,q))},[Y]);C.useEffect(()=>{const q=x.viewport;if(q){const ve=()=>{V(I.current),h==null||h()},ee=()=>{const le=new Date().getTime()-N.current;I.current=I.current-le,window.clearTimeout(B.current),d==null||d()};return q.addEventListener(qh,ee),q.addEventListener(Kh,ve),()=>{q.removeEventListener(qh,ee),q.removeEventListener(Kh,ve)}}},[x.viewport,O,d,h,V]),C.useEffect(()=>{o&&!x.isClosePausedRef.current&&V(O)},[o,O,x.isClosePausedRef,V]),C.useEffect(()=>(H(),()=>W()),[H,W]);const ce=C.useMemo(()=>E?hw(E):null,[E]);return x.viewport?p.jsxs(p.Fragment,{children:[ce&&p.jsx(LP,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:ce}),p.jsx(OP,{scope:n,onClose:Y,children:Za.createPortal(p.jsx(_p.ItemSlot,{scope:n,children:p.jsx(cP,{asChild:!0,onEscapeKeyDown:Ze(u,()=>{x.isFocusedToastEscapeKeyDownRef.current||Y(),x.isFocusedToastEscapeKeyDownRef.current=!1}),children:p.jsx(qe.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":x.swipeDirection,...P,ref:w,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:Ze(t.onKeyDown,q=>{q.key==="Escape"&&(u==null||u(q.nativeEvent),q.nativeEvent.defaultPrevented||(x.isFocusedToastEscapeKeyDownRef.current=!0,Y()))}),onPointerDown:Ze(t.onPointerDown,q=>{q.button===0&&(b.current={x:q.clientX,y:q.clientY})}),onPointerMove:Ze(t.onPointerMove,q=>{if(!b.current)return;const ve=q.clientX-b.current.x,ee=q.clientY-b.current.y,le=!!T.current,R=["left","right"].includes(x.swipeDirection),$=["left","up"].includes(x.swipeDirection)?Math.min:Math.max,z=R?$(0,ve):0,J=R?0:$(0,ee),G=q.pointerType==="touch"?10:2,ie={x:z,y:J},te={originalEvent:q,delta:ie};le?(T.current=ie,Bl(CP,g,te,{discrete:!1})):rv(ie,x.swipeDirection,G)?(T.current=ie,Bl(PP,m,te,{discrete:!1}),q.target.setPointerCapture(q.pointerId)):(Math.abs(ve)>G||Math.abs(ee)>G)&&(b.current=null)}),onPointerUp:Ze(t.onPointerUp,q=>{const ve=T.current,ee=q.target;if(ee.hasPointerCapture(q.pointerId)&&ee.releasePointerCapture(q.pointerId),T.current=null,b.current=null,ve){const le=q.currentTarget,R={originalEvent:q,delta:ve};rv(ve,x.swipeDirection,x.swipeThreshold)?Bl(jP,y,R,{discrete:!0}):Bl(TP,_,R,{discrete:!0}),le.addEventListener("click",$=>$.preventDefault(),{once:!0})}})})})}),x.viewport)})]}):null}),LP=t=>{const{__scopeToast:e,children:n,...r}=t,s=gc(qa,e),[o,l]=C.useState(!1),[u,d]=C.useState(!1);return MP(()=>l(!0)),C.useEffect(()=>{const h=window.setTimeout(()=>d(!0),1e3);return()=>window.clearTimeout(h)},[]),u?null:p.jsx(Y0,{asChild:!0,children:p.jsx(mc,{...r,children:o&&p.jsxs(p.Fragment,{children:[s.label," ",n]})})})},RP="ToastTitle",ow=C.forwardRef((t,e)=>{const{__scopeToast:n,...r}=t;return p.jsx(qe.div,{...r,ref:e})});ow.displayName=RP;var IP="ToastDescription",aw=C.forwardRef((t,e)=>{const{__scopeToast:n,...r}=t;return p.jsx(qe.div,{...r,ref:e})});aw.displayName=IP;var lw="ToastAction",uw=C.forwardRef((t,e)=>{const{altText:n,...r}=t;
vendor: 12,076 bytes, lines 40-160
40return n.trim()?p.jsx(dw,{altText:n,asChild:!0,children:p.jsx(wp,{...r,ref:e})}):(console.error(`Invalid prop \`altText\` supplied to \`${lw}\`. Expected non-empty \`string\`.`),null)});uw.displayName=lw;var cw="ToastClose",wp=C.forwardRef((t,e)=>{const{__scopeToast:n,...r}=t,s=NP(cw,n);return p.jsx(dw,{asChild:!0,children:p.jsx(qe.button,{type:"button",...r,ref:e,onClick:Ze(t.onClick,s.onClose)})})});wp.displayName=cw;var dw=C.forwardRef((t,e)=>{const{__scopeToast:n,altText:r,...s}=t;return p.jsx(qe.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...s,ref:e})});function hw(t){const e=[];return Array.from(t.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&e.push(r.textContent),DP(r)){const s=r.ariaHidden||r.hidden||r.style.display==="none",o=r.dataset.radixToastAnnounceExclude==="";if(!s)if(o){const l=r.dataset.radixToastAnnounceAlt;l&&e.push(l)}else e.push(...hw(r))}}),e}function Bl(t,e,n,{discrete:r}){const s=n.originalEvent.currentTarget,o=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:n});e&&s.addEventListener(t,e,{once:!0}),r?K0(s,o):s.dispatchEvent(o)}var rv=(t,e,n=0)=>{const r=Math.abs(t.x),s=Math.abs(t.y),o=r>s;return e==="left"||e==="right"?o&&r>n:!o&&s>n};function MP(t=()=>{}){const e=br(t);jn(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(e)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[e])}function DP(t){return t.nodeType===t.ELEMENT_NODE}function zP(t){const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e}function Md(t){const e=document.activeElement;return t.some(n=>n===e?!0:(n.focus(),document.activeElement!==e))}var BP=tw,fw=rw,pw=sw,mw=ow,gw=aw,vw=uw,yw=wp;function _w(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(e=0;e<s;e++)t[e]&&(n=_w(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function ww(){for(var t,e,n=0,r="",s=arguments.length;n<s;n++)(t=arguments[n])&&(e=_w(t))&&(r&&(r+=" "),r+=e);return r}const iv=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,sv=ww,vc=(t,e)=>n=>{var r;if((e==null?void 0:e.variants)==null)return sv(t,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:o}=e,l=Object.keys(s).map(h=>{const m=n==null?void 0:n[h],g=o==null?void 0:o[h];if(m===null)return null;const _=iv(m)||iv(g);return s[h][_]}),u=n&&Object.entries(n).reduce((h,m)=>{let[g,_]=m;return _===void 0||(h[g]=_),h},{}),d=e==null||(r=e.compoundVariants)===null||r===void 0?void 0:r.reduce((h,m)=>{let{class:g,className:_,...y}=m;return Object.entries(y).every(P=>{let[x,E]=P;return Array.isArray(E)?E.includes({...o,...u}[x]):{...o,...u}[x]===E})?[...h,g,_]:h},[]);return sv(t,l,d,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 $P=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),xw=(...t)=>t.filter((e,n,r)=>!!e&&e.trim()!==""&&r.indexOf(e)===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 FP={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 UP=C.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:o,iconNode:l,...u},d)=>C.createElement("svg",{ref:d,...FP,width:e,height:e,stroke:t,strokeWidth:r?Number(n)*24/Number(e):n,className:xw("lucide",s),...u},[...l.map(([h,m])=>C.createElement(h,m)),...Array.isArray(o)?o:[o]]));/**
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 Pe=(t,e)=>{const n=C.forwardRef(({className:r,...s},o)=>C.createElement(UP,{ref:o,iconNode:e,className:xw(`lucide-${$P(t)}`,r),...s}));return n.displayName=`${t}`,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 HP=Pe("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
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 WP=Pe("Award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);/**
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 VP=Pe("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/**
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.
80 */const bw=Pe("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
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 ZP=Pe("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
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 qP=Pe("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
91 * @license lucide-react v0.462.0 - ISC
92 *
93 * This source code is licensed under the ISC license.
94 * See the LICENSE file in the root directory of this source tree.
95 */const ov=Pe("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
96 * @license lucide-react v0.462.0 - ISC
97 *
98 * This source code is licensed under the ISC license.
99 * See the LICENSE file in the root directory of this source tree.
100 */const Sw=Pe("Cloud",[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]]);/**
101 * @license lucide-react v0.462.0 - ISC
102 *
103 * This source code is licensed under the ISC license.
104 * See the LICENSE file in the root directory of this source tree.
105 */const kw=Pe("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
106 * @license lucide-react v0.462.0 - ISC
107 *
108 * This source code is licensed under the ISC license.
109 * See the LICENSE file in the root directory of this source tree.
110 */const vr=Pe("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"}]]);/**
111 * @license lucide-react v0.462.0 - ISC
112 *
113 * This source code is licensed under the ISC license.
114 * See the LICENSE file in the root directory of this source tree.
115 */const av=Pe("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]);/**
116 * @license lucide-react v0.462.0 - ISC
117 *
118 * This source code is licensed under the ISC license.
119 * See the LICENSE file in the root directory of this source tree.
120 */const KP=Pe("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
121 * @license lucide-react v0.462.0 - ISC
122 *
123 * This source code is licensed under the ISC license.
124 * See the LICENSE file in the root directory of this source tree.
125 */const Ew=Pe("GraduationCap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]);/**
126 * @license lucide-react v0.462.0 - ISC
127 *
128 * This source code is licensed under the ISC license.
129 * See the LICENSE file in the root directory of this source tree.
130 */const GP=Pe("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
131 * @license lucide-react v0.462.0 - ISC
132 *
133 * This source code is licensed under the ISC license.
134 * See the LICENSE file in the root directory of this source tree.
135 */const yc=Pe("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
136 * @license lucide-react v0.462.0 - ISC
137 *
138 * This source code is licensed under the ISC license.
139 * See the LICENSE file in the root directory of this source tree.
140 */const JP=Pe("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/**
141 * @license lucide-react v0.462.0 - ISC
142 *
143 * This source code is licensed under the ISC license.
144 * See the LICENSE file in the root directory of this source tree.
145 */const QP=Pe("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"}]]);/**
146 * @license lucide-react v0.462.0 - ISC
147 *
148 * This source code is licensed under the ISC license.
149 * See the LICENSE file in the root directory of this source tree.
150 */const YP=Pe("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
151 * @license lucide-react v0.462.0 - ISC
152 *
153 * This source code is licensed under the ISC license.
154 * See the LICENSE file in the root directory of this source tree.
155 */const Pw=Pe("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/**
156 * @license lucide-react v0.462.0 - ISC
157 *
158 * This source code is licensed under the ISC license.
159 * See the LICENSE file in the root directory of this source tree.
160 */const lv=Pe("Rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3
160kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]);/**
161 * @license lucide-react v0.462.0 - ISC
162 *
163 * This source code is licensed under the ISC license.
164 * See the LICENSE file in the root directory of this source tree.
165 */const XP=Pe("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
166 * @license lucide-react v0.462.0 - ISC
167 *
168 * This source code is licensed under the ISC license.
169 * See the LICENSE file in the root directory of this source tree.
170 */const eC=Pe("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
171 * @license lucide-react v0.462.0 - ISC
172 *
173 * This source code is licensed under the ISC license.
174 * See the LICENSE file in the root directory of this source tree.
175 */const tC=Pe("Trophy",[["path",{d:"M6 9H4.5a2.5 2.5 0 0 1 0-5H6",key:"17hqa7"}],["path",{d:"M18 9h1.5a2.5 2.5 0 0 0 0-5H18",key:"lmptdp"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22",key:"1nw9bq"}],["path",{d:"M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22",key:"1np0yb"}],["path",{d:"M18 2H6v7a6 6 0 0 0 12 0V2Z",key:"u46fv3"}]]);/**
176 * @license lucide-react v0.462.0 - ISC
177 *
178 * This source code is licensed under the ISC license.
179 * See the LICENSE file in the root directory of this source tree.
180 */const nC=Pe("Twitter",[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]]);/**
181 * @license lucide-react v0.462.0 - ISC
182 *
183 * This source code is licensed under the ISC license.
184 * See the LICENSE file in the root directory of this source tree.
185 */const uv=Pe("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/**
186 * @license lucide-react v0.462.0 - ISC
187 *
188 * This source code is licensed under the ISC license.
189 * See the LICENSE file in the root directory of this source tree.
190 */const Cw=Pe("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
191 * @license lucide-react v0.462.0 - ISC
192 *
193 * This source code is licensed under the ISC license.
194 * See the LICENSE file in the root directory of this source tree.
195 */const Tw=Pe("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),xp="-",rC=t=>{const e=sC(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:l=>{const u=l.split(xp);return u[0]===""&&u.length!==1&&u.shift(),jw(u,e)||iC(l)},getConflictingClassGroupIds:(l,u)=>{const d=n[l]||[];return u&&r[l]?[...d,...r[l]]:d}}},jw=(t,e)=>{var l;if(t.length===0)return e.classGroupId;const n=t[0],r=e.nextPart.get(n),s=r?jw(t.slice(1),r):void 0;if(s)return s;if(e.validators.length===0)return;const o=t.join(xp);return(l=e.validators.find(({validator:u})=>u(o)))==null?void 0:l.classGroupId},cv=/^\[(.+)\]$/,iC=t=>{if(cv.test(t)){const e=cv.exec(t)[1],n=e==null?void 0:e.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}},sC=t=>{const{theme:e,prefix:n}=t,r={nextPart:new Map,validators:[]};
vendor: 5,124 bytes, line 195
195return aC(Object.entries(t.classGroups),n).forEach(([o,l])=>{Jh(l,r,o,e)}),r},Jh=(t,e,n,r)=>{t.forEach(s=>{if(typeof s=="string"){const o=s===""?e:dv(e,s);o.classGroupId=n;return}if(typeof s=="function"){if(oC(s)){Jh(s(r),e,n,r);return}e.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([o,l])=>{Jh(l,dv(e,o),n,r)})})},dv=(t,e)=>{let n=t;return e.split(xp).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},oC=t=>t.isThemeGetter,aC=(t,e)=>e?t.map(([n,r])=>{const s=r.map(o=>typeof o=="string"?e+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([l,u])=>[e+l,u])):o);return[n,s]}):t,lC=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=new Map,r=new Map;const s=(o,l)=>{n.set(o,l),e++,e>t&&(e=0,r=n,n=new Map)};return{get(o){let l=n.get(o);if(l!==void 0)return l;if((l=r.get(o))!==void 0)return s(o,l),l},set(o,l){n.has(o)?n.set(o,l):s(o,l)}}},Ow="!",uC=t=>{const{separator:e,experimentalParseClassName:n}=t,r=e.length===1,s=e[0],o=e.length,l=u=>{const d=[];let h=0,m=0,g;for(let E=0;E<u.length;E++){let S=u[E];if(h===0){if(S===s&&(r||u.slice(E,E+o)===e)){d.push(u.slice(m,E)),m=E+o;continue}if(S==="/"){g=E;continue}}S==="["?h++:S==="]"&&h--}const _=d.length===0?u:u.substring(m),y=_.startsWith(Ow),P=y?_.substring(1):_,x=g&&g>m?g-m:void 0;return{modifiers:d,hasImportantModifier:y,baseClassName:P,maybePostfixModifierPosition:x}};return n?u=>n({className:u,parseClassName:l}):l},cC=t=>{if(t.length<=1)return t;const e=[];let n=[];return t.forEach(r=>{r[0]==="["?(e.push(...n.sort(),r),n=[]):n.push(r)}),e.push(...n.sort()),e},dC=t=>({cache:lC(t.cacheSize),parseClassName:uC(t),...rC(t)}),hC=/\s+/,fC=(t,e)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=e,o=[],l=t.trim().split(hC);let u="";for(let d=l.length-1;d>=0;d-=1){const h=l[d],{modifiers:m,hasImportantModifier:g,baseClassName:_,maybePostfixModifierPosition:y}=n(h);let P=!!y,x=r(P?_.substring(0,y):_);if(!x){if(!P){u=h+(u.length>0?" "+u:u);continue}if(x=r(_),!x){u=h+(u.length>0?" "+u:u);continue}P=!1}const E=cC(m).join(":"),S=g?E+Ow:E,w=S+x;if(o.includes(w))continue;o.push(w);const b=s(x,P);for(let T=0;T<b.length;++T){const O=b[T];o.push(S+O)}u=h+(u.length>0?" "+u:u)}return u};function pC(){let t=0,e,n,r="";for(;t<arguments.length;)(e=arguments[t++])&&(n=Nw(e))&&(r&&(r+=" "),r+=n);return r}const Nw=t=>{if(typeof t=="string")return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=Nw(t[r]))&&(n&&(n+=" "),n+=e);return n};function mC(t,...e){let n,r,s,o=l;function l(d){const h=e.reduce((m,g)=>g(m),t());return n=dC(h),r=n.cache.get,s=n.cache.set,o=u,u(d)}function u(d){const h=r(d);if(h)return h;const m=fC(d,n);return s(d,m),m}return function(){return o(pC.apply(null,arguments))}}const Ne=t=>{const e=n=>n[t]||[];return e.isThemeGetter=!0,e},Aw=/^\[(?:([a-z-]+):)?(.+)\]$/i,gC=/^\d+\/\d+$/,vC=new Set(["px","full","screen"]),yC=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,_C=/\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$/,wC=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,xC=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,bC=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,lr=t=>Bs(t)||vC.has(t)||gC.test(t),Nr=t=>fo(t,"length",OC),Bs=t=>!!t&&!Number.isNaN(Number(t)),Dd=t=>fo(t,"number",Bs),Vo=t=>!!t&&Number.isInteger(Number(t)),SC=t=>t.endsWith("%")&&Bs(t.slice(0,-1)),pe=t=>Aw.test(t),Ar=t=>yC.test(t),kC=new Set(["length","size","percentage"]),EC=t=>fo(t,kC,Lw),PC=t=>fo(t,"position",Lw),CC=new Set(["image","url"]),TC=t=>fo(t,CC,AC),jC=t=>fo(t,"",NC),Zo=()=>!0,fo=(t,e,n)=>{const r=Aw.exec(t);return r?r[1]?typeof e=="string"?r[1]===e:e.has(r[1]):n(r[2]):!1},OC=t=>_C.test(t)&&!wC.test(t),Lw=()=>!1,NC=t=>xC.test(t),AC=t=>bC.test(t),LC=()=>{const t=Ne("colors"),e=Ne("spacing"),n=Ne("blur"),r=Ne("brightness"),s=Ne("borderColor"),o=Ne("borderRadius"),l=Ne("borderSpacing"),u=Ne("borderWidth"),d=Ne("contrast"),h=Ne("grayscale"),m=Ne("hueRotate"),g=Ne("invert"),_=Ne("gap"),y=Ne("gradientColorStops"),P=Ne("gradientColorStopPositions"),x=Ne("inset"),E=Ne("margin"),S=Ne("opacity"),w=Ne("padding"),b=Ne("saturate"),T=Ne("scale"),O=Ne("sepia"),N=Ne("skew"),I=Ne("space"),B=Ne("translate"),H=()=>["auto","contain","none"],W=()=>["auto","hidden","clip","visible","scroll"],Y=()=>["auto",pe,e],V=()=>[pe,e],ce=()=>["",lr,Nr],q=()=>["auto",Bs,pe],ve=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ee=()=>["solid","dashed","dotted","double","none"],le=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],R=()=>["start","end","center","between","around","evenly","stretch"],$=()=>["","0",pe],z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],J=()=>[Bs,pe];return{cacheSize:500,separator:":",theme:{colors:[Zo],spacing:[lr,Nr],blur:["none","",Ar,pe],brightness:J(),borderColor:[t],borderRadius:["n
195one","","full",Ar,pe],borderSpacing:V(),borderWidth:ce(),contrast:J(),grayscale:$(),hueRotate:J(),invert:$(),gap:V(),gradientColorStops:[t],gradientColorStopPositions:[SC,Nr],inset:Y(),margin:Y(),opacity:J(),padding:V(),saturate:J(),scale:J(),sepia:$(),skew:J(),space:V(),translate:V()},classGroups:{aspect:[{aspect:["auto","square","video",pe]}],container:["container"],columns:[{columns:[Ar]}],"break-after":[{"break-after":z()}],"break-before":[{"break-before":z()}],"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:[...ve(),pe]}],overflow:[{overflow:W()}],"overflow-x":[{"overflow-x":W()}],"overflow-y":[{"overflow-y":W()}],overscroll:[{overscroll:H()}],"overscroll-x":[{"overscroll-x":H()}],"overscroll-y":[{"overscroll-y":H()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[x]}],"inset-x":[{"inset-x":[x]}],"inset-y":[{"inset-y":[x]}],start:[{start:[x]}],end:[{end:[x]}],top:[{top:[x]}],right:[{right:[x]}],bottom:[{bottom:[x]}],left:[{left:[x]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Vo,pe]}],basis:[{basis:Y()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",pe]}],grow:[{grow:$()}],shrink:[{shrink:$()}],order:[{order:["first","last","none",Vo,pe]}],"grid-cols":[{"grid-cols":[Zo]}],"col-start-end":[{col:["auto",{span:["full",Vo,pe]},pe]}],"col-start":[{"col-start":q()}],"col-end":[{"col-end":q()}],"grid-rows":[{"grid-rows":[Zo]}],"row-start-end":[{row:["auto",{span:[Vo,pe]},pe]}],"row-start":[{"row-start":q()}],"row-end":[{"row-end":q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",pe]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",pe]}],gap:[{gap:[_]}],"gap-x":[{"gap-x":[_]}],"gap-y":[{"gap-y":[_]}],"justify-content":[{justify:["normal",...R()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...R(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...R(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[E]}],mx:[{mx:[E]}],my:[{my:[E]}],ms:[{ms:[E]}],me:[{me:[E]}],mt:[{mt:[E]}],mr:[{mr:[E]}],mb:[{mb:[E]}],ml:[{ml:[E]}],"space-x":[{"space-x":[I]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[I]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",pe,e]}],"min-w":[{"min-w":[pe,e,"min","max","fit"]}],"max-w":[{"max-w":[pe,e,"none","full","min","max","fit","prose",{screen:[Ar]},Ar]}],h:[{h:[pe,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[pe,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[pe,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[pe,e,"auto","min","max","fit"]}],"font-size":[{text:["base",Ar,Nr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Dd]}],"font-family":[{font:[Zo]}],"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",pe]}],"line-clamp":[{"line-clamp":["none",Bs,Dd]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",lr,pe]}],"list-image":[{"list-image":["none",pe]}],"list-style-type":[{list:["none","disc","decimal",pe]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[S]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[S]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ee(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",lr,Nr]}],"underline-offset":[{"underline-offset":["auto",lr,pe]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:V()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",pe]}],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",pe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[S]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ve(),PC]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",EC]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},TC]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[P]}
195],"gradient-via-pos":[{via:[P]}],"gradient-to-pos":[{to:[P]}],"gradient-from":[{from:[y]}],"gradient-via":[{via:[y]}],"gradient-to":[{to:[y]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[u]}],"border-w-x":[{"border-x":[u]}],"border-w-y":[{"border-y":[u]}],"border-w-s":[{"border-s":[u]}],"border-w-e":[{"border-e":[u]}],"border-w-t":[{"border-t":[u]}],"border-w-r":[{"border-r":[u]}],"border-w-b":[{"border-b":[u]}],"border-w-l":[{"border-l":[u]}],"border-opacity":[{"border-opacity":[S]}],"border-style":[{border:[...ee(),"hidden"]}],"divide-x":[{"divide-x":[u]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[u]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[S]}
vendor: 4,472 bytes, line 195
195],"divide-style":[{divide:ee()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...ee()]}],"outline-offset":[{"outline-offset":[lr,pe]}],"outline-w":[{outline:[lr,Nr]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:ce()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[S]}],"ring-offset-w":[{"ring-offset":[lr,Nr]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",Ar,jC]}],"shadow-color":[{shadow:[Zo]}],opacity:[{opacity:[S]}],"mix-blend":[{"mix-blend":[...le(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":le()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",Ar,pe]}],grayscale:[{grayscale:[h]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[g]}],saturate:[{saturate:[b]}],sepia:[{sepia:[O]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[h]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[g]}],"backdrop-opacity":[{"backdrop-opacity":[S]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[O]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",pe]}],duration:[{duration:J()}],ease:[{ease:["linear","in","out","in-out",pe]}],delay:[{delay:J()}],animate:[{animate:["none","spin","ping","pulse","bounce",pe]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[T]}],"scale-x":[{"scale-x":[T]}],"scale-y":[{"scale-y":[T]}],rotate:[{rotate:[Vo,pe]}],"translate-x":[{"translate-x":[B]}],"translate-y":[{"translate-y":[B]}],"skew-x":[{"skew-x":[N]}],"skew-y":[{"skew-y":[N]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",pe]}],accent:[{accent:["auto",t]}],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",pe]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":V()}],"scroll-mx":[{"scroll-mx":V()}],"scroll-my":[{"scroll-my":V()}],"scroll-ms":[{"scroll-ms":V()}],"scroll-me":[{"scroll-me":V()}],"scroll-mt":[{"scroll-mt":V()}],"scroll-mr":[{"scroll-mr":V()}],"scroll-mb":[{"scroll-mb":V()}],"scroll-ml":[{"scroll-ml":V()}],"scroll-p":[{"scroll-p":V()}],"scroll-px":[{"scroll-px":V()}],"scroll-py":[{"scroll-py":V()}],"scroll-ps":[{"scroll-ps":V()}],"scroll-pe":[{"scroll-pe":V()}],"scroll-pt":[{"scroll-pt":V()}],"scroll-pr":[{"scroll-pr":V()}],"scroll-pb":[{"scroll-pb":V()}],"scroll-pl":[{"scroll-pl":V()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",pe]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[lr,Nr,Dd]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","
195none"]}]},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"]}}},RC=mC(LC);function $e(...t){return RC(ww(t))}const IC=BP,Rw=C.forwardRef(({className:t,...e},n)=>p.jsx(fw,{ref:n,className:$e("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]",t),...e}));Rw.displayName=fw.displayName;const MC=vc("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"}}),Iw=C.forwardRef(({className:t,variant:e,...n},r)=>p.jsx(pw,{ref:r,className:$e(MC({variant:e}),t),...n}));Iw.displayName=pw.displayName;const DC=C.forwardRef(({className:t,...e},n)=>p.jsx(vw,{ref:n,className:$e("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 hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",t),...e}));DC.displayName=vw.displayName;const Mw=C.forwardRef(({className:t,...e},n)=>p.jsx(yw,{ref:n,className:$e("absolute right-2 top-2 rounded-md p-1 text-foreground
195/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",t),"toast-close":"",...e,children:p.jsx(Tw,{className:"h-4 w-4"})}));Mw.displayName=yw.displayName;const Dw=C.forwardRef(({className:t,...e},n)=>p.jsx(mw,{ref:n,className:$e("text-sm font-semibold",t),...e}));Dw.displayName=mw.displayName;const zw=C.forwardRef(({className:t,...e},n)=>p.jsx(gw,{ref:n,className:$e("text-sm opacity-90",t),...e}));zw.displayName=gw.displayName;function zC(){const{toasts:t}=qE();return p.jsxs(IC,{children:[t.map(function({id:e,title:n,description:r,action:s,...o}){return p.jsxs(Iw,{...o,children:[p.jsxs("div",{className:"grid gap-1",children:[n&&p.jsx(Dw,{children:n}),r&&p.jsx(zw,{children:r})]}),s,p.jsx(Mw,{})]},e)}),p.jsx(Rw,{})]})}var hv=["light","dark"],BC="(prefers-color-scheme: dark)",$C=C.createContext(void 0),FC={setTheme:t=>{},themes:[]},UC=()=>{var t;return(t=C.useContext($C))!=null?t:FC};C.memo(({forcedTheme:t,storageKey:e,attribute:n,enableSystem:r,enableColorScheme:s,defaultTheme:o,value:l,attrs:u,nonce:d})=>{let h=o==="system",m=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${u.map(P=>`'${P}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,g=s?hv.includes(o)&&o?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${o}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",_=(P,x=!1,E=!0)=>{let S=l?l[P]:P,w=x?P+"|| ''":`'${S}'`,b="";return s&&E&&!x&&hv.includes(P)&&(b+=`d.style.colorScheme = '${P}';`),n==="class"?x||S?b+=`c.add(${w})`:b+="null":S&&(b+=`d[s](n,${w})`),b},y=t?`!function(){${m}${_(t)}}()`:r?`!function(){try{${m}var e=localStorage.getItem('${e}');if('system'===e||(!e&&${h})){var t='${BC}',m=window.matchMedia(t);if(m.media!==t||m.matches){${_("dark")}}else{${_("light")}}}else if(e){${l?`var x=${JSON.stringify(l)};`:""}${_(l?"x[e]":"e",!0)}}${h?"":"else{"+_(o,!1,!1)+"}"}${g}}catch(e){}}()`:`!function(){try{${m}var e=localStorage.getItem('${e}');if(e){${l?`var x=${JSON.stringify(l)};`:""}${_(l?"x[e]":"e",!0)}}else{${_(o,!1,!1)};}${g}}catch(t){}}();`;return C.createElement("script",{nonce:d,dangerouslySetInnerHTML:{__html:y}})});var HC=t=>{switch(t){case"success":return ZC;case"info":return KC;case"warning":return qC;case"error":return GC;default:return null}},WC=Array(12).fill(0),VC=({visible:t,className:e})=>Z.createElement("div",{className:["sonner-loading-wrapper",e].filter(Boolean).join(" "),"data-visible":t},Z.createElement("div",{className:"sonner-spinner"},WC.map((n,r)=>Z.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),ZC=Z.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Z.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"})),qC=Z.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},Z.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"})),KC=Z.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Z.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"})),GC=Z.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Z.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"})),JC=Z.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"},Z.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),Z.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),QC=()=>{let[t,e]=Z.useState(document.hidden);return Z.useEffect(()=>{let n=()=>{e(document.hidden)};
195return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),t},Qh=1,YC=class{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{let e=this.subscribers.indexOf(t);this.subscribers.splice(e,1)}),this.publish=t=>{this.subscribers.forEach(e=>e(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var e;let{message:n,...r}=t,s=typeof(t==null?void 0:t.id)=="number"||((e=t.id)==null?void 0:e.length)>0?t.id:Qh++,o=this.toasts.find(u=>u.id===s),l=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),o?this.toasts=this.toasts.map(u=>u.id===s?(this.publish({...u,...t,id:s,title:n}),{...u,...t,id:s,dismissible:l,title:n}):u):this.addToast({title:n,...r,dismissible:l,id:s}),s},this.dismiss=t=>(this.dismissedToasts.add(t),t||this.toasts.forEach(e=>{this.subscribers.forEach(n=>n({id:e.id,dismiss:!0}))}),this.subscribers.forEach(e=>e({id:t,dismiss:!0})),t),this.message=(t,e)=>this.create({...e,message:t}),this.error=(t,e)=>this.create({...e,message:t,type:"error"}),this.success=(t,e)=>this.create({...e,type:"success",message:t}),this.info=(t,e)=>this.create({...e,type:"info",message:t}),this.warning=(t,e)=>this.create({...e,type:"warning",message:t}),this.loading=(t,e)=>this.create({...e,type:"loading",message:t}),this.promise=(t,e)=>{if(!e)return;let n;e.loading!==void 0&&(n=this.create({...e,promise:t,type:"loading",message:e.loading,description:typeof e.description!="function"?e.description:void 0}));let r=t instanceof Promise?t:t(),s=n!==void 0,o,l=r.then(async d=>{if(o=["resolve",d],Z.isValidElement(d))s=!1,this.create({id:n,type:"default",message:d});else if(eT(d)&&!d.ok){s=!1;let h=typeof e.error=="function"?await e.error(`HTTP error! status: ${d.status}`):e.error,m=typeof e.description=="function"?await e.description(`HTTP error! status: ${d.status}`):e.description;this.create({id:n,type:"error",message:h,description:m})}else if(e.success!==void 0){s=!1;let h=typeof e.success=="function"?await e.success(d):e.success,m=typeof e.description=="function"?await e.description(d):e.description;this.create({id:n,type:"success",message:h,description:m})}}).catch(async d=>{if(o=["reject",d],e.error!==void 0){s=!1;let h=typeof e.error=="function"?await e.error(d):e.error,m=typeof e.description=="function"?await e.description(d):e.description;this.create({id:n,type:"error",message:h,description:m})}}).finally(()=>{var d;s&&(this.dismiss(n),n=void 0),(d=e.finally)==null||d.call(e)}),u=()=>new Promise((d,h)=>l.then(()=>o[0]==="reject"?h(o[1]):d(o[1])).catch(h));return typeof n!="string"&&typeof n!="number"?{unwrap:u}:Object.assign(n,{unwrap:u})},this.custom=(t,e)=>{let n=(e==null?void 0:e.id)||Qh++;return this.create({jsx:t(n),id:n,...e}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Ot=new YC,XC=(t,e)=>{let n=(e==null?void 0:e.id)||Qh++;return Ot.addToast({title:t,...e,id:n}),n},eT=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",tT=XC,nT=()=>Ot.toasts,rT=()=>Ot.getActiveToasts(),zu=Object.assign(tT,{success:Ot.success,info:Ot.info,warning:Ot.warning,error:Ot.error,custom:Ot.custom,message:Ot.message,promise:Ot.promise,dismiss:Ot.dismiss,loading:Ot.loading},{getHistory:nT,getToasts:rT});function iT(t,{insertAt:e}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",e==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=t:r.appendChild(document.createTextNode(t))}iT(`: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;
195left: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}
195: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%);
195--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%)}
196`);function $l(t){return t.label!==void 0}var sT=3,oT="32px",aT="16px",fv=4e3,lT=356,uT=14,cT=20,dT=200;function mn(...t){return t.filter(Boolean).join(" ")}function hT(t){let[e,n]=t.split("-"),r=[];return e&&r.push(e),n&&r.push(n),r}var fT=t=>{var e,n,r,s,o,l,u,d,h,m,g;let{invert:_,toast:y,unstyled:P,interacting:x,setHeights:E,visibleToasts:S,heights:w,index:b,toasts:T,expanded:O,removeToast:N,defaultRichColors:I,closeButton:B,style:H,cancelButtonStyle:W,actionButtonStyle:Y,className:V="",descriptionClassName:ce="",duration:q,position:ve,gap:ee,loadingIcon:le,expandByDefault:R,classNames:$,icons:z,closeButtonAriaLabel:J="Close toast",pauseWhenPageIsHidden:G}=t,[ie,te]=Z.useState(null),[oe,se]=Z.useState(null),[me,gt]=Z.useState(!1),[cn,dn]=Z.useState(!1),[Gt,Jt]=Z.useState(!1),[Qt,Yi]=Z.useState(!1),[Xi,hi]=Z.useState(!1),[fi,An]=Z.useState(0),[Pr,xo]=Z.useState(0),tr=Z.useRef(y.duration||q||fv),bo=Z.useRef(null),Ln=Z.useRef(null),Oc=b===0,Nc=b+1<=S,ut=y.type,nr=y.dismissible!==!1,Qa=y.className||"",Ac=y.descriptionClassName||"",pi=Z.useMemo(()=>w.findIndex(de=>de.toastId===y.id)||0,[w,y.id]),Ya=Z.useMemo(()=>{var de;return(de=y.closeButton)!=null?de:B},[y.closeButton,B]),Xa=Z.useMemo(()=>y.duration||q||fv,[y.duration,q]),es=Z.useRef(0),Rn=Z.useRef(0),So=Z.useRef(0),Cr=Z.useRef(null),[mi,Lc]=ve.split("-"),el=Z.useMemo(()=>w.reduce((de,ke,Ce)=>Ce>=pi?de:de+ke.height,0),[w,pi]),ko=QC(),tl=y.invert||_,ts=ut==="loading";Rn.current=Z.useMemo(()=>pi*ee+el,[pi,el]),Z.useEffect(()=>{tr.current=Xa},[Xa]),Z.useEffect(()=>{gt(!0)},[]),Z.useEffect(()=>{let de=Ln.current;if(de){let ke=de.getBoundingClientRect().height;return xo(ke),E(Ce=>[{toastId:y.id,height:ke,position:y.position},...Ce]),()=>E(Ce=>Ce.filter(Mt=>Mt.toastId!==y.id))}},[E,y.id]),Z.useLayoutEffect(()=>{if(!me)return;let de=Ln.current,ke=de.style.height;de.style.height="auto";let Ce=de.getBoundingClientRect().height;de.style.height=ke,xo(Ce),E(Mt=>Mt.find(vt=>vt.toastId===y.id)?Mt.map(vt=>vt.toastId===y.id?{...vt,height:Ce}:vt):[{toastId:y.id,height:Ce,position:y.position},...Mt])},[me,y.title,y.description,E,y.id]);let In=Z.useCallback(()=>{dn(!0),An(Rn.current),E(de=>de.filter(ke=>ke.toastId!==y.id)),setTimeout(()=>{N(y)},dT)},[y,N,E,Rn]);Z.useEffect(()=>{if(y.promise&&ut==="loading"||y.duration===1/0||y.type==="loading")return;let de;return O||x||G&&ko?(()=>{if(So.current<es.current){let ke=new Date().getTime()-es.current;tr.current=tr.current-ke}
196So.current=new Date().getTime()})():tr.current!==1/0&&(es.current=new Date().getTime(),de=setTimeout(()=>{var ke;(ke=y.onAutoClose)==null||ke.call(y,y),In()},tr.current)),()=>clearTimeout(de)},[O,x,y,ut,G,ko,In]),Z.useEffect(()=>{y.delete&&In()},[In,y.delete]);function Rc(){var de,ke,Ce;return z!=null&&z.loading?Z.createElement("div",{className:mn($==null?void 0:$.loader,(de=y==null?void 0:y.classNames)==null?void 0:de.loader,"sonner-loader"),"data-visible":ut==="loading"},z.loading):le?Z.createElement("div",{className:mn($==null?void 0:$.loader,(ke=y==null?void 0:y.classNames)==null?void 0:ke.loader,"sonner-loader"),"data-visible":ut==="loading"},le):Z.createElement(VC,{className:mn($==null?void 0:$.loader,(Ce=y==null?void 0:y.classNames)==null?void 0:Ce.loader),visible:ut==="loading"})}return Z.createElement("li",{tabIndex:0,ref:Ln,className:mn(V,Qa,$==null?void 0:$.toast,(e=y==null?void 0:y.classNames)==null?void 0:e.toast,$==null?void 0:$.default,$==null?void 0:$[ut],(n=y==null?void 0:y.classNames)==null?void 0:n[ut]),"data-sonner-toast":"","data-rich-colors":(r=y.richColors)!=null?r:I,"data-styled":!(y.jsx||y.unstyled||P),"data-mounted":me,"data-promise":!!y.promise,"data-swiped":Xi,"data-removed":cn,"data-visible":Nc,"data-y-position":mi,"data-x-position":Lc,"data-index":b,"data-front":Oc,"data-swiping":Gt,"data-dismissible":nr,"data-type":ut,"data-invert":tl,"data-swipe-out":Qt,"data-swipe-direction":oe,"data-expanded":!!(O||R&&me),style:{"--index":b,"--toasts-before":b,"--z-index":T.length-b,"--offset":`${cn?fi:Rn.current}px`,"--initial-height":R?"auto":`${Pr}px`,...H,...y.style},onDragEnd:()=>{Jt(!1),te(null),Cr.current=null},onPointerDown:de=>{ts||!nr||(bo.current=new Date,An(Rn.current),de.target.setPointerCapture(de.pointerId),de.target.tagName!=="BUTTON"&&(Jt(!0),Cr.current={x:de.clientX,y:de.clientY}))},onPointerUp:()=>{var de,ke,Ce,Mt;if(Qt||!nr)return;Cr.current=null;let vt=Number(((de=Ln.current)==null?void 0:de.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Mn=Number(((ke=Ln.current)==null?void 0:ke.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),rr=new Date().getTime()-((Ce=bo.current)==null?void 0:Ce.getTime()),Dt=ie==="x"?vt:Mn,Dn=Math.abs(Dt)/rr;if(Math.abs(Dt)>=cT||Dn>.11){An(Rn.current),(Mt=y.onDismiss)==null||Mt.call(y,y),se(ie==="x"?vt>0?"right":"left":Mn>0?"down":"up"),In(),Yi(!0),hi(!1);return}Jt(!1),te(null)},onPointerMove:de=>{var ke,Ce,Mt,vt;if(!Cr.current||!nr||((ke=window.getSelection())==null?void 0:ke.toString().length)>0)return;let Mn=de.clientY-Cr.current.y,rr=de.clientX-Cr.current.x,Dt=(Ce=t.swipeDirections)!=null?Ce:hT(ve);!ie&&(Math.abs(rr)>
1961||Math.abs(Mn)>1)&&te(Math.abs(rr)>Math.abs(Mn)?"x":"y");let Dn={x:0,y:0};ie==="y"?(Dt.includes("top")||Dt.includes("bottom"))&&(Dt.includes("top")&&Mn<0||Dt.includes("bottom")&&Mn>0)&&(Dn.y=Mn):ie==="x"&&(Dt.includes("left")||Dt.includes("right"))&&(Dt.includes("left")&&rr<0||Dt.includes("right")&&rr>0)&&(Dn.x=rr),(Math.abs(Dn.x)>0||Math.abs(Dn.y)>0)&&hi(!0),(Mt=Ln.current)==null||Mt.style.setProperty("--swipe-amount-x",`${Dn.x}px`),(vt=Ln.current)==null||vt.style.setProperty("--swipe-amount-y",`${Dn.y}px`)}},Ya&&!y.jsx?Z.createElement("button",{"aria-label":J,"data-disabled":ts,"data-close-button":!0,onClick:ts||!nr?()=>{}:()=>{var de;In(),(de=y.onDismiss)==null||de.call(y,y)},className:mn($==null?void 0:$.closeButton,(s=y==null?void 0:y.classNames)==null?void 0:s.closeButton)},(o=z==null?void 0:z.close)!=null?o:JC):null,y.jsx||C.isValidElement(y.title)?y.jsx?y.jsx:typeof y.title=="function"?y.title():y.title:Z.createElement(Z.Fragment,null,ut||y.icon||y.promise?Z.createElement("div",{"data-icon":"",className:mn($==null?void 0:$.icon,(l=y==null?void 0:y.classNames)==null?void 0:l.icon)},y.promise||y.type==="loading"&&!y.icon?y.icon||Rc():null,y.type!=="loading"?y.icon||(z==null?void 0:z[ut])||HC(ut):null):null,Z.createElement("div",{"data-content":"",className:mn($==null?void 0:$.content,(u=y==null?void 0:y.classNames)==null?void 0:u.content)},Z.createElement("div",{"data-title":"",className:mn($==null?void 0:$.title,(d=y==null?void 0:y.classNames)==null?void 0:d.title)},typeof y.title=="function"?y.title():y.title),y.description?Z.createElement("div",{"data-description":"",className:mn(ce,Ac,$==null?void 0:$.description,(h=y==null?void 0:y.classNames)==null?void 0:h.description)},typeof y.description=="function"?y.description():y.description):null),C.isValidElement(y.cancel)?y.cancel:y.cancel&&$l(y.cancel)?Z.createElement("button",{"data-button":!0,"data-cancel":!0,style:y.cancelButtonStyle||W,onClick:de=>{var ke,Ce;$l(y.cancel)&&nr&&((Ce=(ke=y.cancel).onClick)==null||Ce.call(ke,de),In())},className:mn($==null?void 0:$.cancelButton,(m=y==null?void 0:y.classNames)==null?void 0:m.cancelButton)},y.cancel.label):null,C.isValidElement(y.action)?y.action:y.action&&$l(y.action)?Z.createElement("button",{"data-button":!0,"data-action":!0,style:y.actionButtonStyle||Y,onClick:de=>{var ke,Ce;$l(y.action)&&((Ce=(ke=y.action).onClick)==null||Ce.call(ke,de),!de.defaultPrevented&&In())},className:mn($==null?void 0:$.actionButton,(g=y==null?void 0:y.classNames)==null?void 0:g.actionButton)},y.action.label):null))};function pv(){if(typeof window>"u"||typeof document>"u")return"ltr";let t=document.documentElement.getAttribute("dir");return t==="auto"||!t?window.getComputedStyle(document.documentElement).direction:t}function pT(t,e){let n={};return[t,e].forEach((r,s)=>{let o=s===1,l=o?"--mobile-offset":"--offset",u=o?aT:oT;function d(h){["top","right","bottom","left"].forEach(m=>{n[`${l}-${m}`]=typeof h=="number"?`${h}px`:h})}typeof r=="number"||typeof r=="string"?d(r):typeof r=="object"?["top","right","bottom","left"].forEach(h=>{r[h]===void 0?n[`${l}-${h}`]=u:n[`${l}-${h}`]=typeof r[h]=="number"?`${r[h]}px`:r[h]}):d(u)}),n}var mT=C.forwardRef(function(t,e){let{invert:n,position:r="bottom-right",hotkey:s=["altKey","KeyT"],expand:o,closeButton:l,className:u,offset:d,mobileOffset:h,theme:m="light",richColors:g,duration:_,style:y,visibleToasts:P=sT,toastOptions:x,dir:E=pv(),gap:S=uT,loadingIcon:w,icons:b,containerAriaLabel:T="Notifications",pauseWhenPageIsHidden:O}=t,[N,I]=Z.useState([]),B=Z.useMemo(()=>Array.from(new Set([r].concat(N.filter(G=>G.position).map(G=>G.position)))),[N,r]),[H,W]=Z.useState([]),[Y,V]=Z.useState(!1),[ce,q]=Z.useState(!1),[ve,ee]=Z.useState(m!=="system"?m:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),le=Z.useRef(null),R=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),$=Z.useRef(null),z=Z.useRef(!1),J=Z.useCallback(G=>{I(ie=>{var te;return(te=ie.find(oe=>oe.id===G.id))!=null&&te.delete||Ot.dismiss(G.id),ie.filter(({id:oe})=>oe!==G.id)})},[]);return Z.useEffect(()=>Ot.subscribe(G=>
vendor: 4,391 bytes, line 196
196{if(G.dismiss){I(ie=>ie.map(te=>te.id===G.id?{...te,delete:!0}:te));return}setTimeout(()=>{W0.flushSync(()=>{I(ie=>{let te=ie.findIndex(oe=>oe.id===G.id);return te!==-1?[...ie.slice(0,te),{...ie[te],...G},...ie.slice(te+1)]:[G,...ie]})})})}),[]),Z.useEffect(()=>{if(m!=="system"){ee(m);return}if(m==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?ee("dark"):ee("light")),typeof window>"u")return;let G=window.matchMedia("(prefers-color-scheme: dark)");try{G.addEventListener("change",({matches:ie})=>{ee(ie?"dark":"light")})}catch{G.addListener(({matches:te})=>{try{ee(te?"dark":"light")}catch(oe){console.error(oe)}})}},[m]),Z.useEffect(()=>{N.length<=1&&V(!1)},[N]),Z.useEffect(()=>{let G=ie=>{var te,oe;s.every(se=>ie[se]||ie.code===se)&&(V(!0),(te=le.current)==null||te.focus()),ie.code==="Escape"&&(document.activeElement===le.current||(oe=le.current)!=null&&oe.contains(document.activeElement))&&V(!1)};return document.addEventListener("keydown",G),()=>document.removeEventListener("keydown",G)},[s]),Z.useEffect(()=>{if(le.current)return()=>{$.current&&($.current.focus({preventScroll:!0}),$.current=null,z.current=!1)}},[le.current]),Z.createElement("section",{ref:e,"aria-label":`${T} ${R}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},B.map((G,ie)=>{var te;let[oe,se]=G.split("-");return N.length?Z.createElement("ol",{key:G,dir:E==="auto"?pv():E,tabIndex:-1,ref:le,className:u,"data-sonner-toaster":!0,"data-theme":ve,"data-y-position":oe,"data-lifted":Y&&N.length>1&&!o,"data-x-position":se,style:{"--front-toast-height":`${((te=H[0])==null?void 0:te.height)||0}px`,"--width":`${lT}px`,"--gap":`${S}px`,...y,...pT(d,h)},onBlur:me=>{z.current&&!me.currentTarget.contains(me.relatedTarget)&&(z.current=!1,$.current&&($.current.focus({preventScroll:!0}),$.current=null))},onFocus:me=>{me.target instanceof HTMLElement&&me.target.dataset.dismissible==="false"||z.current||(z.current=!0,$.current=me.relatedTarget)},onMouseEnter:()=>V(!0),onMouseMove:()=>V(!0),onMouseLeave:()=>{ce||V(!1)},onDragEnd:()=>V(!1),onPointerDown:me=>{me.target instanceof HTMLElement&&me.target.dataset.dismissible==="false"||q(!0)},onPointerUp:()=>q(!1)},N.filter(me=>!me.position&&ie===0||me.position===G).map((me,gt)=>{var cn,dn;return Z.createElement(fT,{key:me.id,icons:b,index:gt,toast:me,defaultRichColors:g,duration:(cn=x==null?void 0:x.duration)!=null?cn:_,className:x==null?void 0:x.className,descriptionClassName:x==null?void 0:x.descriptionClassName,invert:n,visibleToasts:P,closeButton:(dn=x==null?void 0:x.closeButton)!=null?dn:l,interacting:ce,position:G,style:x==null?void 0:x.style,unstyled:x==null?void 0:x.unstyled,classNames:x==null?void 0:x.classNames,cancelButtonStyle:x==null?void 0:x.cancelButtonStyle,actionButtonStyle:x==null?void 0:x.actionButtonStyle,removeToast:J,toasts:N.filter(Gt=>Gt.position==me.position),heights:H.filter(Gt=>Gt.position==me.position),setHeights:W,expandByDefault:o,gap:S,loadingIcon:w,expanded:Y,pauseWhenPageIsHidden:O,swipeDirections:t.swipeDirections})})):null}))});const gT=({...t})=>{const{theme:e="system"}=UC();return p.jsx(mT,{theme:e,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"}},...t})},vT=["top","right","bottom","left"],oi=Math.min,Bt=Math.max,Bu=Math.round,Fl=Math.floor,Yn=t=>({x:t,y:t}),yT={left:"right",right:"left",bottom:"top",top:"bottom"},_T={start:"end",end:"start"};function Yh(t,e,n){return Bt(t,oi(e,n))}function Sr(t,e){return typeof t=="function"?t(e):t}function kr(t){return t.split("-")[0]}function po(t){return t.split("-")[1]}function bp(t){return t==="x"?"y":"x"}function Sp(t){return t==="y"?"height":"width"}const wT=new Set(["top","bottom"]);function Gn(t){return wT.has(kr(t))?"y":"x"}function kp(t){return bp(Gn(t))}function xT(t,e,n){n===void 0&&(n=!1);const r=po(t),s=kp(t),o=Sp(s);let l=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(l=$u(l)),[l,$u(l)]}function bT(t){const e=$u(t);
vendor: 11,275 bytes, line 196
196return[Xh(t),e,Xh(e)]}function Xh(t){return t.replace(/start|end/g,e=>_T[e])}const mv=["left","right"],gv=["right","left"],ST=["top","bottom"],kT=["bottom","top"];function ET(t,e,n){switch(t){case"top":case"bottom":return n?e?gv:mv:e?mv:gv;case"left":case"right":return e?ST:kT;default:return[]}}function PT(t,e,n,r){const s=po(t);let o=ET(kr(t),n==="start",r);return s&&(o=o.map(l=>l+"-"+s),e&&(o=o.concat(o.map(Xh)))),o}function $u(t){return t.replace(/left|right|bottom|top/g,e=>yT[e])}function CT(t){return{top:0,right:0,bottom:0,left:0,...t}}function Bw(t){return typeof t!="number"?CT(t):{top:t,right:t,bottom:t,left:t}}function Fu(t){const{x:e,y:n,width:r,height:s}=t;return{width:r,height:s,top:n,left:e,right:e+r,bottom:n+s,x:e,y:n}}function vv(t,e,n){let{reference:r,floating:s}=t;const o=Gn(e),l=kp(e),u=Sp(l),d=kr(e),h=o==="y",m=r.x+r.width/2-s.width/2,g=r.y+r.height/2-s.height/2,_=r[u]/2-s[u]/2;let y;switch(d){case"top":y={x:m,y:r.y-s.height};break;case"bottom":y={x:m,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:g};break;case"left":y={x:r.x-s.width,y:g};break;default:y={x:r.x,y:r.y}}switch(po(e)){case"start":y[l]-=_*(n&&h?-1:1);break;case"end":y[l]+=_*(n&&h?-1:1);break}return y}const TT=async(t,e,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:o=[],platform:l}=n,u=o.filter(Boolean),d=await(l.isRTL==null?void 0:l.isRTL(e));let h=await l.getElementRects({reference:t,floating:e,strategy:s}),{x:m,y:g}=vv(h,r,d),_=r,y={},P=0;for(let x=0;x<u.length;x++){const{name:E,fn:S}=u[x],{x:w,y:b,data:T,reset:O}=await S({x:m,y:g,initialPlacement:r,placement:_,strategy:s,middlewareData:y,rects:h,platform:l,elements:{reference:t,floating:e}});m=w??m,g=b??g,y={...y,[E]:{...y[E],...T}},O&&P<=50&&(P++,typeof O=="object"&&(O.placement&&(_=O.placement),O.rects&&(h=O.rects===!0?await l.getElementRects({reference:t,floating:e,strategy:s}):O.rects),{x:m,y:g}=vv(h,_,d)),x=-1)}return{x:m,y:g,placement:_,strategy:s,middlewareData:y}};async function ja(t,e){var n;e===void 0&&(e={});const{x:r,y:s,platform:o,rects:l,elements:u,strategy:d}=t,{boundary:h="clippingAncestors",rootBoundary:m="viewport",elementContext:g="floating",altBoundary:_=!1,padding:y=0}=Sr(e,t),P=Bw(y),E=u[_?g==="floating"?"reference":"floating":g],S=Fu(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(E)))==null||n?E:E.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(u.floating)),boundary:h,rootBoundary:m,strategy:d})),w=g==="floating"?{x:r,y:s,width:l.floating.width,height:l.floating.height}:l.reference,b=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u.floating)),T=await(o.isElement==null?void 0:o.isElement(b))?await(o.getScale==null?void 0:o.getScale(b))||{x:1,y:1}:{x:1,y:1},O=Fu(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:w,offsetParent:b,strategy:d}):w);return{top:(S.top-O.top+P.top)/T.y,bottom:(O.bottom-S.bottom+P.bottom)/T.y,left:(S.left-O.left+P.left)/T.x,right:(O.right-S.right+P.right)/T.x}}const jT=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:s,rects:o,platform:l,elements:u,middlewareData:d}=e,{element:h,padding:m=0}=Sr(t,e)||{};if(h==null)return{};const g=Bw(m),_={x:n,y:r},y=kp(s),P=Sp(y),x=await l.getDimensions(h),E=y==="y",S=E?"top":"left",w=E?"bottom":"right",b=E?"clientHeight":"clientWidth",T=o.reference[P]+o.reference[y]-_[y]-o.floating[P],O=_[y]-o.reference[y],N=await(l.getOffsetParent==null?void 0:l.getOffsetParent(h));let I=N?N[b]:0;(!I||!await(l.isElement==null?void 0:l.isElement(N)))&&(I=u.floating[b]||o.floating[P]);const B=T/2-O/2,H=I/2-x[P]/2-1,W=oi(g[S],H),Y=oi(g[w],H),V=W,ce=I-x[P]-Y,q=I/2-x[P]/2+B,ve=Yh(V,q,ce),ee=!d.arrow&&po(s)!=null&&q!==ve&&o.reference[P]/2-(q<V?W:Y)-x[P]/2<0,le=ee?q<V?q-V:q-ce:0;return{[y]:_[y]+le,data:{[y]:ve,centerOffset:q-ve-le,...ee&&{alignmentOffset:le}},reset:ee}}}),OT=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:s,middlewareData:o,rects:l,initialPlacement:u,platform:d,elements:h}=e,{mainAxis:m=!0,crossAxis:g=!0,fallbackPlacements:_,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:P="none",flipAlignment:x=!0,...E}=Sr(t,e);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const S=kr(s),w=Gn(u),b=kr(u)===u,T=await(d.isRTL==null?void 0:d.isRTL(h.floating)),O=_||(b||!x?[$u(u)]:bT(u)),N=P!=="none";!_&&N&&O.push(...PT(u,x,P,T));const I=[u,...O],B=await ja(e,E),H=[];let W=((r=o.flip)==null?void 0:r.overflows)||[];if(m&&H.push(B[S]),g){const q=xT(s,l,T);H.push(B[q[0]],B[q[1]])}if(W=[...W,{placement:s,overflows:H}],!H.every(q=>q<=0)){var Y,V;const q=(((Y=o.flip)==null?void 0:Y.index)||0)+1,ve=I[q];if(ve&&(!(g==="alignment"?w!==Gn(ve):!1)||W.every(R=>R.overflows[0]>0&&Gn(R.placement)===w)))return{data:{index:q,overflows:W},reset:{placement:ve}};let ee=(V=W.filter(le=>le.overflows[0]<=0).sort((le,R)=>le.overflows[1]-R.overflows[1])[0])==null?void 0:V.placement;if(!ee)switch(y){case"bestFit":{var ce;const le=(ce=W.filter(R=>{if(N){const $=Gn(R.placement);return $===w||$==="y"}return!0}).map(R=>[R.placement,R.overflows.filter($=>$>0).reduce(($,z)=>$+z,0)]).sort((R,$)=>R[1]-$[1])[0])==null?void 0:ce[0];le&&(ee=le);break}case"initialPlacement":ee=u;break}if(s!==ee)return{reset:{placement:ee}}}return{}}}};function yv(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function _v(t){return vT.some(e=>t[e]>=0)}const NT=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:r="referenceHidden",...s}=Sr(t,e);switch(r){case"referenceHidden":{const o=await ja(e,{...s,elementContext:"reference"}),l=yv(o,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:_v(l)}}}case"escaped":{const o=await ja(e,{...s,altBoundary:!0}),l=yv(o,n.floating);return{data:{escapedOffsets:l,escaped:_v(l)}}}default:return{}}}}},$w=new Set(["left","top"]);async function AT(t,e){const{placement:n,platform:r,elements:s}=t,o=await(r.isRTL==null?void 0:r.isRTL(s.floating)),l=kr(n),u=po(n),d=Gn(n)==="y",h=$w.has(l)?-1:1,m=o&&d?-1:1,g=Sr(e,t);let{mainAxis:_,crossAxis:y,alignmentAxis:P}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return u&&typeof P=="number"&&(y=u==="end"?P*-1:P),d?{x:y*m,y:_*h}:{x:_*h,y:y*m}}const LT=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:s,y:o,placement:l,middlewareData:u}=e,d=await AT(e,t);return l===((n=u.offset)==null?void 0:n.placement)&&(r=u.arrow)!=null&&r.alignmentOffset?{}:{x:s+d.x,y:o+d.y,data:{...d,placement:l}}}}},RT=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:s}=e,{mainAxis:o=!0,crossAxis:l=!1,limiter:u={fn:E=>{let{x:S,y:w}=E;return{x:S,y:w}}},...d}=Sr(t,e),h={x:n,y:r},m=await ja(e,d),g=Gn(kr(s)),_=bp(g);let y=h[_],P=h[g];if(o){const E=_==="y"?"top":"left",S=_==="y"?"bottom":"right",w=y+m[E],b=y-m[S];y=Yh(w,y,b)}if(l){const E=g==="y"?"top":"left",S=g==="y"?"bottom":"right",w=P+m[E],b=P-m[S];P=Yh(w,P,b)}const x=u.fn({...e,[_]:y,[g]:P});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[_]:o,[g]:l}}}}}},IT=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:r,placement:s,rects:o,middlewareData:l}=e,{offset:u=0,mainAxis:d=!0,crossAxis:h=!0}=Sr(t,e),m={x:n,y:r},g=Gn(s),_=bp(g);let y=m[_],P=m[g];const x=Sr(u,e),E=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(d){const b=_==="y"?"height":"width",T=o.reference[_]-o.floating[b]+E.mainAxis,O=o.reference[_]+o.reference[b]-E.mainAxis;y<T?y=T:y>O&&(y=O)}if(h){var S,w;const b=_==="y"?"width":"height",T=$w.has(kr(s)),O=o.reference[g]-o.floating[b]+(T&&((S=l.offset)==null?void 0:S[g])||0)+(T?0:E.crossAxis),N=o.reference[g]+o.reference[b]+(T?0:((w=l.offset)==null?void 0:w[g])||0)-(T?E.crossAxis:0);P<O?P=O:P>N&&(P=N)}return{[_]:y,[g]:P}}}},MT=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,r;const{placement:s,rects:o,platform:l,elements:u}=e,{apply:d=()=>{},...h}=Sr(t,e),m=await ja(e,h),g=kr(s),_=po(s),y=Gn(s)==="y",{width:P,height:x}=o.floating;let E,S;g==="top"||g==="bottom"?(E=g,S=_===(await(l.isRTL==null?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(S=g,E=_==="end"?"top":"bottom");const w=x-m.top-m.bottom,b=P-m.left-m.right,T=oi(x-m[E],w),O=oi(P-m[S],b),N=!e.middlewareData.shift;let I=T,B=O;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(B=b),(r=e.middlewareData.shift)!=null&&r.enabled.y&&(I=w),N&&!_){const W=Bt(m.left,0),Y=Bt(m.right,0),V=Bt(m.top,0),ce=Bt(m.bottom,0);y?B=P-2*(W!==0||Y!==0?W+Y:Bt(m.left,m.right)):I=x-2*(V!==0||ce!==0?V+ce:Bt(m.top,m.bottom))}await d({...e,availableWidth:B,availableHeight:I});const H=await l.getDimensions(u.floating);return P!==H.width||x!==H.height?{reset:{rects:!0}}:{}}}};function _c(){return typeof window<"u"}function mo(t){return Fw(t)?(t.nodeName||"").toLowerCase():"#document"}function Wt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function er(t){var e;return(e=(Fw(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Fw(t){return _c()?t instanceof Node||t instanceof Wt(t).Node:!1}function On(t){return _c()?t instanceof Element||t instanceof Wt(t).Element:!1}function Xn(t){return _c()?t instanceof HTMLElement||t instanceof Wt(t).HTMLElement:!1}function wv(t){return!_c()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Wt(t).ShadowRoot}const DT=new Set(["inline","contents"]);function Ka(t){const{overflow:e,overflowX:n,overflowY:r,display:s}=Nn(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!DT.has(s)}const zT=new Set(["table","td","th"]);function BT(t){return zT.has(mo(t))}const $T=[":popover-open",":modal"];function wc(t){return $T.some(e=>{try{return t.matches(e)}catch{return!1}})}const FT=["transform","translate","scale","rotate","perspective"],UT=["transform","translate","scale","rotate","perspective","filter"],HT=["paint","layout","strict","content"];function Ep(t){const e=Pp(),n=On(t)?Nn(t):t;return FT.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||UT.some(r=>(n.willChange||"").includes(r))||HT.some(r=>(n.contain||"").includes(r))}function WT(t){let e=ai(t);for(;Xn(e)&&!ro(e);){if(Ep(e))return e;if(wc(e))return null;e=ai(e)}return null}function Pp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const VT=new Set(["html","body","#document"]);function ro(t){return VT.has(mo(t))}function Nn(t){return Wt(t).getComputedStyle(t)}function xc(t){return On(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function ai(t){if(mo(t)==="html")return t;const e=t.assignedSlot||t.parentNode||wv(t)&&t.host||er(t);return wv(e)?e.host:e}function Uw(t){const e=ai(t);return ro(e)?t.ownerDocument?t.ownerDocument.body:t.body:Xn(e)&&Ka(e)?e:Uw(e)}function Oa(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const s=Uw(t),o=s===((r=t.ownerDocument)==null?void 0:r.body),l=Wt(s);if(o){const u=ef(l);
vendor: 6,809 bytes, line 196
196return e.concat(l,l.visualViewport||[],Ka(s)?s:[],u&&n?Oa(u):[])}return e.concat(s,Oa(s,[],n))}function ef(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Hw(t){const e=Nn(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const s=Xn(t),o=s?t.offsetWidth:n,l=s?t.offsetHeight:r,u=Bu(n)!==o||Bu(r)!==l;return u&&(n=o,r=l),{width:n,height:r,$:u}}function Cp(t){return On(t)?t:t.contextElement}function $s(t){const e=Cp(t);if(!Xn(e))return Yn(1);const n=e.getBoundingClientRect(),{width:r,height:s,$:o}=Hw(e);let l=(o?Bu(n.width):n.width)/r,u=(o?Bu(n.height):n.height)/s;return(!l||!Number.isFinite(l))&&(l=1),(!u||!Number.isFinite(u))&&(u=1),{x:l,y:u}}const ZT=Yn(0);function Ww(t){const e=Wt(t);return!Pp()||!e.visualViewport?ZT:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function qT(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Wt(t)?!1:e}function Vi(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const s=t.getBoundingClientRect(),o=Cp(t);let l=Yn(1);e&&(r?On(r)&&(l=$s(r)):l=$s(t));const u=qT(o,n,r)?Ww(o):Yn(0);let d=(s.left+u.x)/l.x,h=(s.top+u.y)/l.y,m=s.width/l.x,g=s.height/l.y;if(o){const _=Wt(o),y=r&&On(r)?Wt(r):r;let P=_,x=ef(P);for(;x&&r&&y!==P;){const E=$s(x),S=x.getBoundingClientRect(),w=Nn(x),b=S.left+(x.clientLeft+parseFloat(w.paddingLeft))*E.x,T=S.top+(x.clientTop+parseFloat(w.paddingTop))*E.y;d*=E.x,h*=E.y,m*=E.x,g*=E.y,d+=b,h+=T,P=Wt(x),x=ef(P)}}return Fu({width:m,height:g,x:d,y:h})}function Tp(t,e){const n=xc(t).scrollLeft;return e?e.left+n:Vi(er(t)).left+n}function Vw(t,e,n){n===void 0&&(n=!1);const r=t.getBoundingClientRect(),s=r.left+e.scrollLeft-(n?0:Tp(t,r)),o=r.top+e.scrollTop;return{x:s,y:o}}function KT(t){let{elements:e,rect:n,offsetParent:r,strategy:s}=t;const o=s==="fixed",l=er(r),u=e?wc(e.floating):!1;if(r===l||u&&o)return n;let d={scrollLeft:0,scrollTop:0},h=Yn(1);const m=Yn(0),g=Xn(r);if((g||!g&&!o)&&((mo(r)!=="body"||Ka(l))&&(d=xc(r)),Xn(r))){const y=Vi(r);h=$s(r),m.x=y.x+r.clientLeft,m.y=y.y+r.clientTop}const _=l&&!g&&!o?Vw(l,d,!0):Yn(0);return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-d.scrollLeft*h.x+m.x+_.x,y:n.y*h.y-d.scrollTop*h.y+m.y+_.y}}function GT(t){return Array.from(t.getClientRects())}function JT(t){const e=er(t),n=xc(t),r=t.ownerDocument.body,s=Bt(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),o=Bt(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+Tp(t);const u=-n.scrollTop;return Nn(r).direction==="rtl"&&(l+=Bt(e.clientWidth,r.clientWidth)-s),{width:s,height:o,x:l,y:u}}function QT(t,e){const n=Wt(t),r=er(t),s=n.visualViewport;let o=r.clientWidth,l=r.clientHeight,u=0,d=0;if(s){o=s.width,l=s.height;const h=Pp();(!h||h&&e==="fixed")&&(u=s.offsetLeft,d=s.offsetTop)}return{width:o,height:l,x:u,y:d}}const YT=new Set(["absolute","fixed"]);function XT(t,e){const n=Vi(t,!0,e==="fixed"),r=n.top+t.clientTop,s=n.left+t.clientLeft,o=Xn(t)?$s(t):Yn(1),l=t.clientWidth*o.x,u=t.clientHeight*o.y,d=s*o.x,h=r*o.y;return{width:l,height:u,x:d,y:h}}function xv(t,e,n){let r;if(e==="viewport")r=QT(t,n);else if(e==="document")r=JT(er(t));else if(On(e))r=XT(e,n);else{const s=Ww(t);r={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return Fu(r)}function Zw(t,e){const n=ai(t);return n===e||!On(n)||ro(n)?!1:Nn(n).position==="fixed"||Zw(n,e)}function ej(t,e){const n=e.get(t);if(n)return n;let r=Oa(t,[],!1).filter(u=>On(u)&&mo(u)!=="body"),s=null;const o=Nn(t).position==="fixed";let l=o?ai(t):t;for(;On(l)&&!ro(l);){const u=Nn(l),d=Ep(l);!d&&u.position==="fixed"&&(s=null),(o?!d&&!s:!d&&u.position==="static"&&!!s&&YT.has(s.position)||Ka(l)&&!d&&Zw(t,l))?r=r.filter(m=>m!==l):s=u,l=ai(l)}return e.set(t,r),r}function tj(t){let{element:e,boundary:n,rootBoundary:r,strategy:s}=t;const l=[...n==="clippingAncestors"?wc(e)?[]:ej(e,this._c):[].concat(n),r],u=l[0],d=l.reduce((h,m)=>{const g=xv(e,m,s);return h.top=Bt(g.top,h.top),h.right=oi(g.right,h.right),h.bottom=oi(g.bottom,h.bottom),h.left=Bt(g.left,h.left),h},xv(e,u,s));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function nj(t){const{width:e,height:n}=Hw(t);return{width:e,height:n}}function rj(t,e,n){const r=Xn(e),s=er(e),o=n==="fixed",l=Vi(t,!0,o,e);let u={scrollLeft:0,scrollTop:0};const d=Yn(0);function h(){d.x=Tp(s)}if(r||!r&&!o)if((mo(e)!=="body"||Ka(s))&&(u=xc(e)),r){const y=Vi(e,!0,o,e);d.x=y.x+e.clientLeft,d.y=y.y+e.clientTop}else s&&h();o&&!r&&s&&h();const m=s&&!r&&!o?Vw(s,u):Yn(0),g=l.left+u.scrollLeft-d.x-m.x,_=l.top+u.scrollTop-d.y-m.y;return{x:g,y:_,width:l.width,height:l.height}}function zd(t){return Nn(t).position==="static"}function bv(t,e){if(!Xn(t)||Nn(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return er(t)===n&&(n=n.ownerDocument.body),n}function qw(t,e){const n=Wt(t);if(wc(t))return n;if(!Xn(t)){let s=ai(t);for(;s&&!ro(s);){if(On(s)&&!zd(s))return s;s=ai(s)}return n}let r=bv(t,e);for(;r&&BT(r)&&zd(r);)r=bv(r,e);return r&&ro(r)&&zd(r)&&!Ep(r)?n:r||WT(t)||n}const ij=async function(t){const e=this.getOffsetParent||qw,n=this.getDimensions,r=await n(t.floating);return{reference:rj(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function sj(t){return Nn(t).direction==="rtl"}const oj={convertOffsetParentRelativeRectToViewportRelativeRect:KT,getDocumentElement:er,getClippingRect:tj,getOffsetParent:qw,getElementRects:ij,getClientRects:GT,getDimensions:nj,getScale:$s,isElement:On,isRTL:sj};function Kw(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function aj(t,e){let n=null,r;const s=er(t);function o(){var u;clearTimeout(r),(u=n)==null||u.disconnect(),n=null}function l(u,d){u===void 0&&(u=!1),d===void 0&&(d=1),o();const h=t.getBoundingClientRect(),{left:m,top:g,width:_,height:y}=h;if(u||e(),!_||!y)return;const P=Fl(g),x=Fl(s.clientWidth-(m+_)),E=Fl(s.clientHeight-(g+y)),S=Fl(m),b={rootMargin:-P+"px "+-x+"px "+-E+"px "+-S+"px",threshold:Bt(0,oi(1,d))||1};let T=!0;function O(N){const I=N[0].intersectionRatio;if(I!==d){if(!T)return l();I?l(!1,I):r=setTimeout(()=>{l(!1,1e-7)},1e3)}I===1&&!Kw(h,t.getBoundingClientRect())&&l(),T=!1}try{n=new IntersectionObserver(O,{...b,root:s.ownerDocument})}catch{n=new IntersectionObserver(O,b)}n.observe(t)}return l(!0),o}function lj(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:o=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,h=Cp(t),m=s||o?[...h?Oa(h):[],...Oa(e)]:[];m.forEach(S=>{s&&S.addEventListener("scroll",n,{passive:!0}),o&&S.addEventListener("resize",n)});const g=h&&u?aj(h,n):null;let _=-1,y=null;l&&(y=new ResizeObserver(S=>{let[w]=S;w&&w.target===h&&y&&(y.unobserve(e),cancelAnimationFrame(_),_=requestAnimationFrame(()=>{var b;(b=y)==null||b.observe(e)})),n()}
vendor: 6,990 bytes, line 196
196),h&&!d&&y.observe(h),y.observe(e));let P,x=d?Vi(t):null;d&&E();function E(){const S=Vi(t);x&&!Kw(x,S)&&n(),x=S,P=requestAnimationFrame(E)}return n(),()=>{var S;m.forEach(w=>{s&&w.removeEventListener("scroll",n),o&&w.removeEventListener("resize",n)}),g==null||g(),(S=y)==null||S.disconnect(),y=null,d&&cancelAnimationFrame(P)}}const uj=LT,cj=RT,dj=OT,hj=MT,fj=NT,Sv=jT,pj=IT,mj=(t,e,n)=>{const r=new Map,s={platform:oj,...n},o={...s.platform,_c:r};return TT(t,e,{...s,platform:o})};var gj=typeof document<"u",vj=function(){},hu=gj?C.useLayoutEffect:vj;function Uu(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,r,s;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;r--!==0;)if(!Uu(t[r],e[r]))return!1;return!0}if(s=Object.keys(t),n=s.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(e,s[r]))return!1;for(r=n;r--!==0;){const o=s[r];if(!(o==="_owner"&&t.$$typeof)&&!Uu(t[o],e[o]))return!1}return!0}return t!==t&&e!==e}function Gw(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function kv(t,e){const n=Gw(t);return Math.round(e*n)/n}function Bd(t){const e=C.useRef(t);return hu(()=>{e.current=t}),e}function yj(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:o,floating:l}={},transform:u=!0,whileElementsMounted:d,open:h}=t,[m,g]=C.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[_,y]=C.useState(r);Uu(_,r)||y(r);const[P,x]=C.useState(null),[E,S]=C.useState(null),w=C.useCallback(R=>{R!==N.current&&(N.current=R,x(R))},[]),b=C.useCallback(R=>{R!==I.current&&(I.current=R,S(R))},[]),T=o||P,O=l||E,N=C.useRef(null),I=C.useRef(null),B=C.useRef(m),H=d!=null,W=Bd(d),Y=Bd(s),V=Bd(h),ce=C.useCallback(()=>{if(!N.current||!I.current)return;const R={placement:e,strategy:n,middleware:_};Y.current&&(R.platform=Y.current),mj(N.current,I.current,R).then($=>{const z={...$,isPositioned:V.current!==!1};q.current&&!Uu(B.current,z)&&(B.current=z,Za.flushSync(()=>{g(z)}))})},[_,e,n,Y,V]);hu(()=>{h===!1&&B.current.isPositioned&&(B.current.isPositioned=!1,g(R=>({...R,isPositioned:!1})))},[h]);const q=C.useRef(!1);hu(()=>(q.current=!0,()=>{q.current=!1}),[]),hu(()=>{if(T&&(N.current=T),O&&(I.current=O),T&&O){if(W.current)return W.current(T,O,ce);ce()}},[T,O,ce,W,H]);const ve=C.useMemo(()=>({reference:N,floating:I,setReference:w,setFloating:b}),[w,b]),ee=C.useMemo(()=>({reference:T,floating:O}),[T,O]),le=C.useMemo(()=>{const R={position:n,left:0,top:0};if(!ee.floating)return R;const $=kv(ee.floating,m.x),z=kv(ee.floating,m.y);return u?{...R,transform:"translate("+$+"px, "+z+"px)",...Gw(ee.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:$,top:z}},[n,u,ee.floating,m.x,m.y]);return C.useMemo(()=>({...m,update:ce,refs:ve,elements:ee,floatingStyles:le}),[m,ce,ve,ee,le])}const _j=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:r,padding:s}=typeof t=="function"?t(n):t;return r&&e(r)?r.current!=null?Sv({element:r.current,padding:s}).fn(n):{}:r?Sv({element:r,padding:s}).fn(n):{}}}},wj=(t,e)=>({...uj(t),options:[t,e]}),xj=(t,e)=>({...cj(t),options:[t,e]}),bj=(t,e)=>({...pj(t),options:[t,e]}),Sj=(t,e)=>({...dj(t),options:[t,e]}),kj=(t,e)=>({...hj(t),options:[t,e]}),Ej=(t,e)=>({...fj(t),options:[t,e]}),Pj=(t,e)=>({..._j(t),options:[t,e]});var Cj="Arrow",Jw=C.forwardRef((t,e)=>{const{children:n,width:r=10,height:s=5,...o}=t;return p.jsx(qe.svg,{...o,ref:e,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});Jw.displayName=Cj;var Tj=Jw;function Qw(t){const[e,n]=C.useState(void 0);return jn(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const o=s[0];let l,u;if("borderBoxSize"in o){const d=o.borderBoxSize,h=Array.isArray(d)?d[0]:d;l=h.inlineSize,u=h.blockSize}else l=t.offsetWidth,u=t.offsetHeight;n({width:l,height:u})});return r.observe(t,{box:"border-box"}),()=>r.unobserve(t)}else n(void 0)},[t]),e}var Yw="Popper",[Xw,ex]=ho(Yw),[jR,tx]=Xw(Yw),nx="PopperAnchor",rx=C.forwardRef((t,e)=>{const{__scopePopper:n,virtualRef:r,...s}=t,o=tx(nx,n),l=C.useRef(null),u=Zt(e,l);return C.useEffect(()=>{o.onAnchorChange((r==null?void 0:r.current)||l.current)}),r?null:p.jsx(qe.div,{...s,ref:u})});rx.displayName=nx;var jp="PopperContent",[jj,Oj]=Xw(jp),ix=C.forwardRef((t,e)=>{var me,gt,cn,dn,Gt,Jt;const{__scopePopper:n,side:r="bottom",sideOffset:s=0,align:o="center",alignOffset:l=0,arrowPadding:u=0,avoidCollisions:d=!0,collisionBoundary:h=[],collisionPadding:m=0,sticky:g="partial",hideWhenDetached:_=!1,updatePositionStrategy:y="optimized",onPlaced:P,...x}=t,E=tx(jp,n),[S,w]=C.useState(null),b=Zt(e,Qt=>w(Qt)),[T,O]=C.useState(null),N=Qw(T),I=(N==null?void 0:N.width)??0,B=(N==null?void 0:N.height)??0,H=r+(o!=="center"?"-"+o:""),W=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},Y=Array.isArray(h)?h:[h],V=Y.length>0,ce={padding:W,boundary:Y.filter(Aj),altBoundary:V},{refs:q,floatingStyles:ve,placement:ee,isPositioned:le,middlewareData:R}=yj({strategy:"fixed",placement:H,whileElementsMounted:(...Qt)=>lj(...Qt,{animationFrame:y==="always"}),elements:{reference:E.anchor},middleware:[wj({mainAxis:s+B,alignmentAxis:l}),d&&xj({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?bj():void 0,...ce}),d&&Sj({...ce}),kj({...ce,apply:({elements:Qt,rects:Yi,availableWidth:Xi,availableHeight:hi})=>{const{width:fi,height:An}=Yi.reference,Pr=Qt.floating.style;Pr.setProperty("--radix-popper-available-width",`${Xi}px`),Pr.setProperty("--radix-popper-available-height",`${hi}px`),Pr.setProperty("--radix-popper-anchor-width",`${fi}px`),Pr.setProperty("--radix-popper-anchor-height",`${An}px`)}}),T&&Pj({element:T,padding:u}),Lj({arrowWidth:I,arrowHeight:B}),_&&Ej({strategy:"referenceHidden",...ce})]}),[$,z]=ax(ee),J=br(P);jn(()=>{le&&(J==null||J())},[le,J]);const G=(me=R.arrow)==null?void 0:me.x,ie=(gt=R.arrow)==null?void 0:gt.y,te=((cn=R.arrow)==null?void 0:cn.centerOffset)!==0,[oe,se]=C.useState();return jn(()=>{S&&se(window.getComputedStyle(S).zIndex)},[S]),p.jsx("div",{ref:q.setFloating,"data-radix-popper-content-wrapper":"",style:{...ve,transform:le?ve.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:oe,"--radix-popper-transform-origin":[(dn=R.transformOrigin)==null?void 0:dn.x,(Gt=R.transformOrigin)==null?void 0:Gt.y].join(" "),...((Jt=R.hide)==null?void 0:Jt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:p.jsx(jj,{scope:n,placedSide:$,onArrowChange:O,arrowX:G,arrowY:ie,shouldHideArrow:te,children:p.jsx(qe.div,{"data-side":$,"data-align":z,...x,ref:b,style:{...x.style,animation:le?void 0:"none"}})})})});ix.displayName=jp;var sx="PopperArrow",Nj={top:"bottom",right:"left",bottom:"top",left:"r
196ight"},ox=C.forwardRef(function(e,n){const{__scopePopper:r,...s}=e,o=Oj(sx,r),l=Nj[o.placedSide];return p.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:p.jsx(Tj,{...s,ref:n,style:{...s.style,display:"block"}})})});ox.displayName=sx;function Aj(t){return t!==null}var Lj=t=>({name:"transformOrigin",options:t,fn(e){var E,S,w;const{placement:n,rects:r,middlewareData:s}=e,l=((E=s.arrow)==null?void 0:E.centerOffset)!==0,u=l?0:t.arrowWidth,d=l?0:t.arrowHeight,[h,m]=ax(n),g={start:"0%",center:"50%",end:"100%"}[m],_=(((S=s.arrow)==null?void 0:S.x)??0)+u/2,y=(((w=s.arrow)==null?void 0:w.y)??0)+d/2;let P="",x="";return h==="bottom"?(P=l?g:`${_}px`,x=`${-d}px`):h==="top"?(P=l?g:`${_}px`,x=`${r.floating.height+d}px`):h==="right"?(P=`${-d}px`,x=l?g:`${y}px`):h==="left"&&(P=`${r.floating.width+d}px`,x=l?g:`${y}px`),{data:{x:P,y:x}}}});function ax(t){const[e,n="center"]=t.split("-");return[e,n]}var Rj=rx,Ij=ix,Mj=ox,[bc,OR]=ho("Tooltip",[ex]),Op=ex(),lx="TooltipProvider",Dj=700,Ev="tooltip.open",[zj,ux]=bc(lx),cx=t=>{const{__scopeTooltip:e,delayDuration:n=Dj,skipDelayDuration:r=300,disableHoverableContent:s=!1,children:o}=t,l=C.useRef(!0),u=C.useRef(!1),d=C.useRef(0);return C.useEffect(()=>{const h=d.current;return()=>window.clearTimeout(h)},[]),p.jsx(zj,{scope:e,isOpenDelayedRef:l,delayDuration:n,onOpen:C.useCallback(()=>{window.clearTimeout(d.current),l.current=!1},[]),onClose:C.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>l.current=!0,r)},[r]),isPointerInTransitRef:u,onPointerInTransitChange:C.useCallback(h=>{u.current=h},[]),disableHoverableContent:s,children:o})};cx.displayName=lx;var dx="Tooltip",[NR,Sc]=bc(dx),tf="TooltipTrigger",Bj=C.forwardRef((t,e)=>{const{__scopeTooltip:n,...r}=t,s=Sc(tf,n),o=ux(tf,n),l=Op(n),u=C.useRef(null),d=Zt(e,u,s.onTriggerChange),h=C.useRef(!1),m=C.useRef(!1),g=C.useCallback(()=>h.current=!1,[]);return C.useEffect(()=>()=>document.removeEventListener("pointerup",g),[g]),p.jsx(Rj,{asChild:!0,...l,children:p.jsx(qe.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...r,ref:d,onPointerMove:Ze(t.onPointerMove,_=>{_.pointerType!=="touch"&&!m.current&&!o.isPointerInTransitRef.current&&(s.onTriggerEnter(),m.current=!0)}),onPointerLeave:Ze(t.onPointerLeave,()=>{s.onTriggerLeave(),m.current=!1}),onPointerDown:Ze(t.onPointerDown,()=>{s.open&&s.onClose(),h.current=!0,document.addEventListener("pointerup",g,{once:!0})}),onFocus:Ze(t.onFocus,()=>{h.current||s.onOpen()}),onBlur:Ze(t.onBlur,s.onClose),onClick:Ze(t.onClick,s.onClose)})})});Bj.displayName=tf;var $j="TooltipPortal",[AR,Fj]=bc($j,{forceMount:void 0}),io="TooltipContent",hx=C.forwardRef((t,e)=>{const n=Fj(io,t.__scopeTooltip),{forceMount:r=n.forceMount,side:s="top",...o}=t,l=Sc(io,t.__scopeTooltip);return p.jsx(pc,{present:r||l.open,children:l.disableHoverableContent?p.jsx(fx,{side:s,...o,ref:e}):p.jsx(Uj,{side:s,...o,ref:e})})}),Uj=C.forwardRef((t,e)=>{const n=Sc(io,t.__scopeTooltip),r=ux(io,t.__scopeTooltip),s=C.useRef(null),o=Zt(e,s),[l,u]=C.useState(null),{trigger:d,onClose:h}=n,m=s.current,{onPointerInTransitChange:g}=r,_=C.useCallback(()=>{u(null),g(!1)},[g]),y=C.useCallback((P,x)=>{const E=P.currentTarget,S={x:P.clientX,y:P.clientY},w=qj(S,E.getBoundingClientRect()),b=Kj(S,w),T=Gj(x.getBoundingClientRect()),O=Qj([...b,...T]);u(O),g(!0)},[g]);return C.useEffect(()=>()=>_(),[_]),C.useEffect(()=>{if(d&&m){const P=E=>y(E,m),x=E=>y(E,d);return d.addEventListener("pointerleave",P),m.addEventListener("pointerleave",x),()=>{d.removeEventListener("pointerleave",P),m.removeEventListener("pointerleave",x)}}},[d,m,y,_]),C.useEffect(()=>{if(l){const P=x=>{const E=x.target,S={x:x.clientX,y:x.clientY},w=(d==null?void 0:d.contains(E))||(m==null?void 0:m.contains(E)),b=!Jj(S,l);w?_():b&&(_(),h())};return document.addEventListener("pointermove",P),()=>document.removeEventListener("pointermove",P)}},[d,m,l,h,_]),p.jsx(fx,{...t,ref:o})}),[Hj,Wj]=bc(dx,{isInside:!1}),Vj=QE("TooltipContent"),fx=C.forwardRef((t,e)=>{const{__scopeTooltip:n,children:r,"aria-label":s,onEscapeKeyDown:o,onPointerDownOutside:l,...u}=t,d=Sc(io,n),h=Op(n),{onClose:m}=d;return C.useEffect(()=>(document.addEventListener(Ev,m),()=>document.removeEventListener(Ev,m)),[m]),C.useEffect(()=>{if(d.trigger){const g=_=>{const y=_.target;y!=null&&y.contains(d.trigger)&&m()};return window.addEventListener("scroll",g,{capture:!0}),()=>window.removeEventListener("scroll",g,{capture:!0})}},[d.trigger,m]),p.jsx(vp,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:g=>g.preventDefault(),onDismiss:m,children:p.jsxs(Ij,{"data-state":d.stateAttribute,...h,...u,ref:e,style:{...u.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:[p.jsx(Vj,{children:r}),p.jsx(Hj,{scope:n,isInside:!0,children:p.jsx(xP,{id:d.contentId,role:"tooltip",children:s||r})})]})})});hx.displayName=io;var px="TooltipArrow",Zj=C.forwardRef((t,e)=>{const{__scopeTooltip:n,...r}=t,s=Op(n);return Wj(px,n).isInside?null:p.jsx(Mj,{...s,...r,ref:e})});Zj.displayName=px;function qj(t,e){const n=Math.abs(e.top-t.y),r=Math.abs(e.bottom-t.y),s=Math.abs(e.right-t.x),o=Math.abs(e.left-t.x);switch(Math.min(n,r,s,o)){case o:return"left";case s:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Kj(t,e,n=5){const r=[];switch(e){case"top":r.push({x:t.x-n,y:t.y+n},{x:t.x+n,y:t.y+n});break;case"bottom":r.push({x:t.x-n,y:t.y-n},{x:t.x+n,y:t.y-n});break;case"left":r.push({x:t.x+n,y:t.y-n},{x:t.x+n,y:t.y+n});break;case"right":r.push({x:t.x-n,y:t.y-n},{x:t.x-n,y:t.y+n});break}return r}function Gj(t){const{top:e,right:n,bottom:r,left:s}=t;return[{x:s,y:e},{x:n,y:e},{x:n,y:r},{x:s,y:r}]}function Jj(t,e){const{x:n,y:r}=t;let s=!1;for(let o=0,l=e.length-1;o<e.length;l=o++){const u=e[o],d=e[l],h=u.x,m=u.y,g=d.x,_=d.y;m>r!=_>r&&n<(g-h)*(r-m)/(_-m)+h&&(s=!s)}return s}function Qj(t){const e=t.slice();return e.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),Yj(e)}function Yj(t){if(t.length<=1)return t.slice();const e=[];for(let r=0;r<t.length;r++){const s=t[r];for(;e.length>=2;){const o=e[e.length-1],l=e[e.length-2];if((o.x-l.x)*(s.y-l.y)>=(o.y-l.y)*(s.x-l.x))e.pop();else break}e.push(s)}e.pop();const n=[];for(let r=t.length-1;r>=0;r--){const s=t[r];for(;n.length>=2;){const o=n[n.length-1],l=n[n.length-2];if((o.x-l.x)*(s.y-l.y)>=(o.y-l.y)*(s.x-l.x))n.pop();else break}n.push(s)}return n.pop(),e.length===1&&n.length===1&&e[0].x===n[0].x&&e[0].y===n[0].y?e:e.concat(n)}var Xj=cx,mx=hx;
vendor: 8,908 bytes, line 196
196const eO=Xj,tO=C.forwardRef(({className:t,sideOffset:e=4,...n},r)=>p.jsx(mx,{ref:r,sideOffset:e,className:$e("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]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...n}));tO.displayName=mx.displayName;var kc=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ec=typeof window>"u"||"Deno"in globalThis;function _n(){}function nO(t,e){return typeof t=="function"?t(e):t}function rO(t){return typeof t=="number"&&t>=0&&t!==1/0}function iO(t,e){return Math.max(t+(e||0)-Date.now(),0)}function nf(t,e){return typeof t=="function"?t(e):t}function sO(t,e){return typeof t=="function"?t(e):t}function Pv(t,e){const{type:n="all",exact:r,fetchStatus:s,predicate:o,queryKey:l,stale:u}=t;if(l){if(r){if(e.queryHash!==Np(l,e.options))return!1}else if(!Aa(e.queryKey,l))return!1}if(n!=="all"){const d=e.isActive();if(n==="active"&&!d||n==="inactive"&&d)return!1}return!(typeof u=="boolean"&&e.isStale()!==u||s&&s!==e.state.fetchStatus||o&&!o(e))}function Cv(t,e){const{exact:n,status:r,predicate:s,mutationKey:o}=t;if(o){if(!e.options.mutationKey)return!1;if(n){if(Na(e.options.mutationKey)!==Na(o))return!1}else if(!Aa(e.options.mutationKey,o))return!1}return!(r&&e.state.status!==r||s&&!s(e))}function Np(t,e){return((e==null?void 0:e.queryKeyHashFn)||Na)(t)}function Na(t){return JSON.stringify(t,(e,n)=>rf(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function Aa(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(n=>Aa(t[n],e[n])):!1}function gx(t,e){if(t===e)return t;const n=Tv(t)&&Tv(e);if(n||rf(t)&&rf(e)){const r=n?t:Object.keys(t),s=r.length,o=n?e:Object.keys(e),l=o.length,u=n?[]:{},d=new Set(r);let h=0;for(let m=0;m<l;m++){const g=n?m:o[m];(!n&&d.has(g)||n)&&t[g]===void 0&&e[g]===void 0?(u[g]=void 0,h++):(u[g]=gx(t[g],e[g]),u[g]===t[g]&&t[g]!==void 0&&h++)}return s===l&&h===s?t:u}return e}function Tv(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function rf(t){if(!jv(t))return!1;const e=t.constructor;if(e===void 0)return!0;const n=e.prototype;return!(!jv(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function jv(t){return Object.prototype.toString.call(t)==="[object Object]"}function oO(t){return new Promise(e=>{setTimeout(e,t)})}function aO(t,e,n){return typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?gx(t,e):e}function lO(t,e,n=0){const r=[...t,e];return n&&r.length>n?r.slice(1):r}function uO(t,e,n=0){const r=[e,...t];return n&&r.length>n?r.slice(0,-1):r}var Ap=Symbol();function vx(t,e){return!t.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!t.queryFn||t.queryFn===Ap?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}var Ai,$r,Us,xy,cO=(xy=class extends kc{constructor(){super();Se(this,Ai);Se(this,$r);Se(this,Us);he(this,Us,e=>{if(!Ec&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){D(this,$r)||this.setEventListener(D(this,Us))}onUnsubscribe(){var e;this.hasListeners()||((e=D(this,$r))==null||e.call(this),he(this,$r,void 0))}setEventListener(e){var n;he(this,Us,e),(n=D(this,$r))==null||n.call(this),he(this,$r,e(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(e){D(this,Ai)!==e&&(he(this,Ai,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(n=>{n(e)})}isFocused(){var e;return typeof D(this,Ai)=="boolean"?D(this,Ai):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},Ai=new WeakMap,$r=new WeakMap,Us=new WeakMap,xy),yx=new cO,Hs,Fr,Ws,by,dO=(by=class extends kc{constructor(){super();Se(this,Hs,!0);Se(this,Fr);Se(this,Ws);he(this,Ws,e=>{if(!Ec&&window.addEventListener){const n=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){D(this,Fr)||this.setEventListener(D(this,Ws))}onUnsubscribe(){var e;this.hasListeners()||((e=D(this,Fr))==null||e.call(this),he(this,Fr,void 0))}setEventListener(e){var n;he(this,Ws,e),(n=D(this,Fr))==null||n.call(this),he(this,Fr,e(this.setOnline.bind(this)))}setOnline(e){D(this,Hs)!==e&&(he(this,Hs,e),this.listeners.forEach(r=>{r(e)}))}isOnline(){return D(this,Hs)}},Hs=new WeakMap,Fr=new WeakMap,Ws=new WeakMap,by),Hu=new dO;function hO(){let t,e;const n=new Promise((s,o)=>{t=s,e=o});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),t(s)},n.reject=s=>{r({status:"rejected",reason:s}),e(s)},n}function fO(t){return Math.min(1e3*2**t,3e4)}function _x(t){return(t??"online")==="online"?Hu.isOnline():!0}var wx=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function $d(t){return t instanceof wx}function xx(t){let e=!1,n=0,r=!1,s;const o=hO(),l=x=>{var E;r||(_(new wx(x)),(E=t.abort)==null||E.call(t))},u=()=>{e=!0},d=()=>{e=!1},h=()=>yx.isFocused()&&(t.networkMode==="always"||Hu.isOnline())&&t.canRun(),m=()=>_x(t.networkMode)&&t.canRun(),g=x=>{var E;r||(r=!0,(E=t.onSuccess)==null||E.call(t,x),s==null||s(),o.resolve(x))},_=x=>{var E;r||(r=!0,(E=t.onError)==null||E.call(t,x),s==null||s(),o.reject(x))},y=()=>new Promise(x=>{var E;s=S=>{(r||h())&&x(S)},(E=t.onPause)==null||E.call(t)}).then(()=>{var x;s=void 0,r||(x=t.onContinue)==null||x.call(t)}),P=()=>{if(r)return;let x;const E=n===0?t.initialPromise:void 0;try{x=E??t.fn()}catch(S){x=Promise.reject(S)}Promise.resolve(x).then(g).catch(S=>{var N;if(r)return;const w=t.retry??(Ec?0:3),b=t.retryDelay??fO,T=typeof b=="function"?b(n,S):b,O=w===!0||typeof w=="number"&&n<w||typeof w=="function"&&w(n,S);if(e||!O){_(S);return}n++,(N=t.onFail)==null||N.call(t,n,S),oO(T).then(()=>h()?void 0:y()).then(()=>{e?_(S):P()})})};return{promise:o,cancel:l,continue:()=>(s==null||s(),o),cancelRetry:u,continueRetry:d,canStart:m,start:()=>(m()?P():y().then(P),o)}}var pO=t=>setTimeout(t,0);function mO(){let t=[],e=0,n=u=>{u()},r=u=>{u()},s=pO;const o=u=>{e?t.push(u):s(()=>{n(u)})},l=()=>{const u=t;t=[],u.length&&s(()=>{r(()=>{u.forEach(d=>{n(d)})})})};return{batch:u=>{let d;e++;try{d=u()}finally{e--,e||l()}return d},batchCalls:u=>(...d)=>{o(()=>{u(...d)})},schedule:o,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{r=u},setScheduler:u=>{s=u}}}var St=mO(),Li,Sy,bx=(Sy=class{constructor(){Se(this,Li)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),rO(this.gcTime)&&he(this,Li,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(Ec?1/0:5*60*1e3))}clearGcTimeout(){D(this,Li)&&(clearTimeout(D(this,Li)),he(this,Li,void 0))}},Li=new WeakMap,Sy),Vs,Ri,nn,Ii,ft,Ba,Mi,xn,ur,ky,gO=(ky=class extends bx{constructor(e){super();Se(this,xn);Se(this,Vs);Se(this,Ri);Se(this,nn);Se(this,Ii);Se(this,ft);Se(this,Ba);Se(this,Mi);he(this,Mi,!1),he(this,Ba,e.defaultOptions),this.setOptions(e.options),this.observers=[],he(this,Ii,e.client),he(this,nn,D(this,Ii).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,he(this,Vs,yO(this.options)),this.state=e.state??D(this,Vs),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=D(this,ft))==null?void 0:e.promise}setOptions(e){this.options={...D(this,Ba),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&D(this,nn).remove(this)}setData(e,n){const r=aO(this.state.data,e,this.options);return ct(this,xn,ur).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(e,n){ct(this,xn,ur).call(this,{type:"setState",state:e,setStateOptions:n})}cancel(e){var r,s;const n=(r=D(this,ft))==null?void 0:r.promise;return(s=D(this,ft))==null||s.cancel(e),n?n.then(_n).catch(_n):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(D(this,Vs))}isActive(){return this.observers.some(e=>sO(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ap||this.state.dataUpdateCount+this.state.errorUpdate
196Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>nf(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!iO(this.state.dataUpdatedAt,e)}onFocus(){var n;const e=this.observers.find(r=>r.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(n=D(this,ft))==null||n.continue()}onOnline(){var n;const e=this.observers.find(r=>r.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(n=D(this,ft))==null||n.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),D(this,nn).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(n=>n!==e),this.observers.length||(D(this,ft)&&(D(this,Mi)?D(this,ft).cancel({revert:!0}):D(this,ft).cancelRetry()),this.scheduleGc()),D(this,nn).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ct(this,xn,ur).call(this,{type:"invalidate"})}fetch(e,n){var h,m,g;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(D(this,ft))return D(this,ft).continueRetry(),D(this,ft).promise}if(e&&this.setOptions(e),!this.options.queryFn){const _=this.observers.find(y=>y.options.queryFn);_&&this.setOptions(_.options)}const r=new AbortController,s=_=>{Object.defineProperty(_,"signal",{enumerable:!0,get:()=>(he(this,Mi,!0),r.signal)})},o=()=>{const _=vx(this.options,n),P=(()=>{const x={client:D(this,Ii),queryKey:this.queryKey,meta:this.meta};return s(x),x})();return he(this,Mi,!1),this.options.persister?this.options.persister(_,P,this):_(P)},u=(()=>{const _={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:D(this,Ii),state:this.state,fetchFn:o};return s(_),_})();(h=this.options.behavior)==null||h.onFetch(u,this),he(this,Ri,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((m=u.fetchOptions)==null?void 0:m.meta))&&ct(this,xn,ur).call(this,{type:"fetch",meta:(g=u.fetchOptions)==null?void 0:g.meta});const d=_=>{var y,P,x,E;$d(_)&&_.silent||ct(this,xn,ur).call(this,{type:"error",error:_}),$d(_)||((P=(y=D(this,nn).config).onError)==null||P.call(y,_,this),(E=(x=D(this,nn).config).onSettled)==null||E.call(x,this.state.data,_,this)),this.scheduleGc()};return he(this,ft,xx({initialPromise:n==null?void 0:n.initialPromise,fn:u.fetchFn,abort:r.abort.bind(r),onSuccess:_=>{var y,P,x,E;if(_===void 0){d(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(_)}catch(S){d(S);return}(P=(y=D(this,nn).config).onSuccess)==null||P.call(y,_,this),(E=(x=D(this,nn).config).onSettled)==null||E.call(x,_,this.state.error,this),this.scheduleGc()},onError:d,onFail:(_,y)=>{ct(this,xn,ur).call(this,{type:"failed",failureCount:_,error:y})},onPause:()=>{ct(this,xn,ur).call(this,{type:"pause"})},onContinue:()=>{ct(this,xn,ur).call(this,{type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0})),D(this,ft).start()}},Vs=new WeakMap,Ri=new WeakMap,nn=new WeakMap,Ii=new WeakMap,ft=new WeakMap,Ba=new WeakMap,Mi=new WeakMap,xn=new WeakSet,ur=function(e){const n=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...vO(r.data,this.options),fetchMeta:e.meta??null};case"success":return he(this,Ri,void 0),{...r,data:e.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=e.error;return $d(s)&&s.revert&&D(this,Ri)?{...D(this,Ri),fetchStatus:"idle"}
vendor: 4,261 bytes, line 196
196:{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=n(this.state),St.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),D(this,nn).notify({query:this,type:"updated",action:e})})},ky);function vO(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:_x(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function yO(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,n=e!==void 0,r=n?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,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 Vn,Ey,_O=(Ey=class extends kc{constructor(e={}){super();Se(this,Vn);this.config=e,he(this,Vn,new Map)}build(e,n,r){const s=n.queryKey,o=n.queryHash??Np(s,n);let l=this.get(o);return l||(l=new gO({client:e,queryKey:s,queryHash:o,options:e.defaultQueryOptions(n),state:r,defaultOptions:e.getQueryDefaults(s)}),this.add(l)),l}add(e){D(this,Vn).has(e.queryHash)||(D(this,Vn).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=D(this,Vn).get(e.queryHash);n&&(e.destroy(),n===e&&D(this,Vn).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){St.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return D(this,Vn).get(e)}getAll(){return[...D(this,Vn).values()]}find(e){const n={exact:!0,...e};return this.getAll().find(r=>Pv(n,r))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(r=>Pv(e,r)):n}notify(e){St.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){St.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){St.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Vn=new WeakMap,Ey),Zn,xt,Di,qn,Rr,Py,wO=(Py=class extends bx{constructor(e){super();Se(this,qn);Se(this,Zn);Se(this,xt);Se(this,Di);this.mutationId=e.mutationId,he(this,xt,e.mutationCache),he(this,Zn,[]),this.state=e.state||xO(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){D(this,Zn).includes(e)||(D(this,Zn).push(e),this.clearGcTimeout(),D(this,xt).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){he(this,Zn,D(this,Zn).filter(n=>n!==e)),this.scheduleGc(),D(this,xt).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){D(this,Zn).length||(this.state.status==="pending"?this.scheduleGc():D(this,xt).remove(this))}continue(){var e;return((e=D(this,Di))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var o,l,u,d,h,m,g,_,y,P,x,E,S,w,b,T,O,N,I,B;const n=()=>{ct(this,qn,Rr).call(this,{type:"continue"})};he(this,Di,xx({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(H,W)=>{ct(this,qn,Rr).call(this,{type:"failed",failureCount:H,error:W})},onPause:()=>{ct(this,qn,Rr).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>D(this,xt).canRun(this)}));const r=this.state.status==="pending",s=!D(this,Di).canStart();try{if(r)n();else{ct(this,qn,Rr).call(this,{type:"pending",variables:e,isPaused:s}),await((l=(o=D(this,xt).config).onMutate)==null?void 0:l.call(o,e,this));const W=await((d=(u=this.options).onMutate)==null?void 0:d.call(u,e));W!==this.state.context&&ct(this,qn,Rr).call(this,{type:"pending",context:W,variables:e,isPaused:s})}const H=await D(this,Di).start();return await((m=(h=D(this,xt).config).onSuccess)==null?void 0:m.call(h,H,e,this.state.context,this)),await((_=(g=this.options).onSuccess)==null?void 0:_.call(g,H,e,this.state.context)),await((P=(y=D(this,xt).config).onSettled)==null?void 0:P.call(y,H,null,this.state.variables,this.state.context,this)),await((E=(x=this.options).onSettled)==null?void 0:E.
196call(x,H,null,e,this.state.context)),ct(this,qn,Rr).call(this,{type:"success",data:H}),H}catch(H){try{throw await((w=(S=D(this,xt).config).onError)==null?void 0:w.call(S,H,e,this.state.context,this)),await((T=(b=this.options).onError)==null?void 0:T.call(b,H,e,this.state.context)),await((N=(O=D(this,xt).config).onSettled)==null?void 0:N.call(O,void 0,H,this.state.variables,this.state.context,this)),await((B=(I=this.options).onSettled)==null?void 0:B.call(I,void 0,H,e,this.state.context)),H}finally{ct(this,qn,Rr).call(this,{type:"error",error:H})}}finally{D(this,xt).runNext(this)}}},Zn=new WeakMap,xt=new WeakMap,Di=new WeakMap,qn=new WeakSet,Rr=function(e){const n=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=n(this.state),St.batch(()=>{D(this,Zn).forEach(r=>{r.onMutationUpdate(e)}),D(this,xt).notify({mutation:this,type:"updated",action:e})})},Py);function xO(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var fr,bn,$a,Cy,bO=(Cy=class extends kc{constructor(e={}){super();Se(this,fr);Se(this,bn);Se(this,$a);this.config=e,he(this,fr,new Set),he(this,bn,new Map),he(this,$a,0)}build(e,n,r){const s=new wO({mutationCache:this,mutationId:++wl(this,$a)._,options:e.defaultMutationOptions(n),state:r});return this.add(s),s}add(e){D(this,fr).add(e);const n=Ul(e);if(typeof n=="string"){const r=D(this,bn).get(n);r?r.push(e):D(this,bn).set(n,[e])}this.notify({type:"added",mutation:e})}remove(e){if(D(this,fr).delete(e)){const n=Ul(e);if(typeof n=="string"){const r=D(this,bn).get(n);if(r)if(r.length>1){const s=r.indexOf(e);s!==-1&&r.splice(s,1)}else r[0]===e&&D(this,bn).delete(n)}}this.notify({type:"removed",mutation:e})}canRun(e){const n=Ul(e);if(typeof n=="string"){const r=D(this,bn).get(n),s=r==null?void 0:r.find(o=>o.state.status==="pending");return!s||s===e}else return!0}runNext(e){var r;const n=Ul(e);if(typeof n=="string"){const s=(r=D(this,bn).get(n))==null?void 0:r.find(o=>o!==e&&o.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){St.batch(()=>{D(this,fr).forEach(e=>{this.notify({type:"removed",mutation:e})}),D(this,fr).clear(),D(this,bn).clear()})}getAll(){return Array.from(D(this,fr))}find(e){const n={exact:!0,...e};return this.getAll().find(r=>Cv(n,r))}findAll(e={}){return this.getAll().filter(n=>Cv(e,n))}notify(e){St.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return St.batch(()=>Promise.all(e.map(n=>n.continue().catch(_n))))}},fr=new WeakMap,bn=new WeakMap,$a=new WeakMap,Cy);function Ul(t){var e;return(e=t.options.scope)==null?void 0:e.id}function Ov(t){return{onFetch:(e,n)=>{var m,g,_,y,P;const r=e.options,s=(_=(g=(m=e.fetchOptions)==null?void 0:m.meta)==null?void 0:g.fetchMore)==null?void 0:_.direction,o=((y=e.state.data)==null?void 0:y.pages)||[],l=((P=e.state.data)==null?void 0:P.pageParams)||[];let u={pages:[],pageParams:[]},d=0;const h=async()=>{let x=!1;const E=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(e.signal.aborted?x=!0:e.signal.addEventListener("abort",()=>{x=!0}),e.signal)})},S=vx(e.options,e.fetchOptions),w=async(b,T,O)=>{if(x)return Promise.reject();if(T==null&&b.pages.length)return Promise.resolve(b);const I=(()=>{const Y={client:e.client,queryKey:e.queryKey,pageParam:T,direction:O?"backward":"forward",meta:e.options.meta};return E(Y),Y})(),B=await S(I),{maxPages:H}=e.options,W=O?uO:lO;return{pages:W(b.pages,B,H),pageParams:W(b.pageParams,T,H)}};if(s&&o.length){const b=s==="backward",T=b?SO:Nv,O={pages:o,pageParams:l},N=T(r,O);u=await w(O,N,b)}else{const b=t??o.length;do{const T=d===0?l[0]??r.initialPageParam:Nv(r,u);if(d>0&&T==null)break;u=await w(u,T),d++}while(d<b)}return u};e.options.persister?e.fetchFn=()=>{var x,E;
vendor: 6,190 bytes, lines 196-205
196return(E=(x=e.options).persister)==null?void 0:E.call(x,h,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n)}:e.fetchFn=h}}}function Nv(t,{pages:e,pageParams:n}){const r=e.length-1;return e.length>0?t.getNextPageParam(e[r],e,n[r],n):void 0}function SO(t,{pages:e,pageParams:n}){var r;return e.length>0?(r=t.getPreviousPageParam)==null?void 0:r.call(t,e[0],e,n[0],n):void 0}var Fe,Ur,Hr,Zs,qs,Wr,Ks,Gs,Ty,kO=(Ty=class{constructor(t={}){Se(this,Fe);Se(this,Ur);Se(this,Hr);Se(this,Zs);Se(this,qs);Se(this,Wr);Se(this,Ks);Se(this,Gs);he(this,Fe,t.queryCache||new _O),he(this,Ur,t.mutationCache||new bO),he(this,Hr,t.defaultOptions||{}),he(this,Zs,new Map),he(this,qs,new Map),he(this,Wr,0)}mount(){wl(this,Wr)._++,D(this,Wr)===1&&(he(this,Ks,yx.subscribe(async t=>{t&&(await this.resumePausedMutations(),D(this,Fe).onFocus())})),he(this,Gs,Hu.subscribe(async t=>{t&&(await this.resumePausedMutations(),D(this,Fe).onOnline())})))}unmount(){var t,e;wl(this,Wr)._--,D(this,Wr)===0&&((t=D(this,Ks))==null||t.call(this),he(this,Ks,void 0),(e=D(this,Gs))==null||e.call(this),he(this,Gs,void 0))}isFetching(t){return D(this,Fe).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return D(this,Ur).findAll({...t,status:"pending"}).length}getQueryData(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=D(this,Fe).get(e.queryHash))==null?void 0:n.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),n=D(this,Fe).build(this,e),r=n.state.data;return r===void 0?this.fetchQuery(t):(t.revalidateIfStale&&n.isStaleByTime(nf(e.staleTime,n))&&this.prefetchQuery(e),Promise.resolve(r))}getQueriesData(t){return D(this,Fe).findAll(t).map(({queryKey:e,state:n})=>{const r=n.data;return[e,r]})}setQueryData(t,e,n){const r=this.defaultQueryOptions({queryKey:t}),s=D(this,Fe).get(r.queryHash),o=s==null?void 0:s.state.data,l=nO(e,o);if(l!==void 0)return D(this,Fe).build(this,r).setData(l,{...n,manual:!0})}setQueriesData(t,e,n){return St.batch(()=>D(this,Fe).findAll(t).map(({queryKey:r})=>[r,this.setQueryData(r,e,n)]))}getQueryState(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=D(this,Fe).get(e.queryHash))==null?void 0:n.state}removeQueries(t){const e=D(this,Fe);St.batch(()=>{e.findAll(t).forEach(n=>{e.remove(n)})})}resetQueries(t,e){const n=D(this,Fe);return St.batch(()=>(n.findAll(t).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const n={revert:!0,...e},r=St.batch(()=>D(this,Fe).findAll(t).map(s=>s.cancel(n)));return Promise.all(r).then(_n).catch(_n)}invalidateQueries(t,e={}){return St.batch(()=>(D(this,Fe).findAll(t).forEach(n=>{n.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},e)))}refetchQueries(t,e={}){const n={...e,cancelRefetch:e.cancelRefetch??!0},r=St.batch(()=>D(this,Fe).findAll(t).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let o=s.fetch(void 0,n);return n.throwOnError||(o=o.catch(_n)),s.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(_n)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const n=D(this,Fe).build(this,e);return n.isStaleByTime(nf(e.staleTime,n))?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(_n).catch(_n)}fetchInfiniteQuery(t){return t.behavior=Ov(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(_n).catch(_n)}ensureInfiniteQueryData(t){return t.behavior=Ov(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Hu.isOnline()?D(this,Ur).resumePausedMutations():Promise.resolve()}getQueryCache(){return D(this,Fe)}getMutationCache(){return D(this,Ur)}getDefaultOptions(){return D(this,Hr)}setDefaultOptions(t){he(this,Hr,t)}setQueryDefaults(t,e){D(this,Zs).set(Na(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...D(this,Zs).values()],n={};return e.forEach(r=>{Aa(t,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(t,e){D(this,qs).set(Na(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...D(this,qs).values()],n={};return e.forEach(r=>{Aa(t,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(t){if(t._defaulted)return t;const e={...D(this,Hr).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=Np(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===Ap&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...D(this,Hr).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){D(this,Fe).clear(),D(this,Ur).clear()}},Fe=new WeakMap,Ur=new WeakMap,Hr=new WeakMap,Zs=new WeakMap,qs=new WeakMap,Wr=new WeakMap,Ks=new WeakMap,Gs=new WeakMap,Ty),EO=C.createContext(void 0),PO=({client:t,children:e})=>(C.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),p.jsx(EO.Provider,{value:t,children:e}));/**
197 * @remix-run/router v1.23.0
198 *
199 * Copyright (c) Remix Software Inc.
200 *
201 * This source code is licensed under the MIT license found in the
202 * LICENSE.md file in the root directory of this source tree.
203 *
204 * @license MIT
205 */function La(){return La=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},La.apply(this,arguments)}var qr;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(qr||(qr={}));const Av="popstate";function CO(t){t===void 0&&(t={});function e(s,o){let{pathname:l="/",search:u="",hash:d=""}=Ki(s.location.hash.substr(1));return!l.startsWith("/")&&!l.startsWith(".")&&(l="/"+l),sf("",{pathname:l,search:u,hash:d},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(s,o){let l=s.document.querySelector("base"),u="";if(l&&l.getAttribute("href")){let d=s.location.href,h=d.indexOf("#");u=h===-1?d:d.slice(0,h)}
vendor: 4,766 bytes, line 205
205return u+"#"+(typeof o=="string"?o:Wu(o))}function r(s,o){Lp(s.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(o)+")")}return jO(e,n,r,t)}function Ye(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Lp(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function TO(){return Math.random().toString(36).substr(2,8)}function Lv(t,e){return{usr:t.state,key:t.key,idx:e}}function sf(t,e,n,r){return n===void 0&&(n=null),La({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?Ki(e):e,{state:n,key:e&&e.key||r||TO()})}function Wu(t){let{pathname:e="/",search:n="",hash:r=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Ki(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substr(r),t=t.substr(0,r)),t&&(e.pathname=t)}return e}function jO(t,e,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:o=!1}=r,l=s.history,u=qr.Pop,d=null,h=m();h==null&&(h=0,l.replaceState(La({},l.state,{idx:h}),""));function m(){return(l.state||{idx:null}).idx}function g(){u=qr.Pop;let E=m(),S=E==null?null:E-h;h=E,d&&d({action:u,location:x.location,delta:S})}function _(E,S){u=qr.Push;let w=sf(x.location,E,S);n&&n(w,E),h=m()+1;let b=Lv(w,h),T=x.createHref(w);try{l.pushState(b,"",T)}catch(O){if(O instanceof DOMException&&O.name==="DataCloneError")throw O;s.location.assign(T)}o&&d&&d({action:u,location:x.location,delta:1})}function y(E,S){u=qr.Replace;let w=sf(x.location,E,S);n&&n(w,E),h=m();let b=Lv(w,h),T=x.createHref(w);l.replaceState(b,"",T),o&&d&&d({action:u,location:x.location,delta:0})}function P(E){let S=s.location.origin!=="null"?s.location.origin:s.location.href,w=typeof E=="string"?E:Wu(E);return w=w.replace(/ $/,"%20"),Ye(S,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,S)}let x={get action(){return u},get location(){return t(s,l)},listen(E){if(d)throw new Error("A history only accepts one active listener");return s.addEventListener(Av,g),d=E,()=>{s.removeEventListener(Av,g),d=null}},createHref(E){return e(s,E)},createURL:P,encodeLocation(E){let S=P(E);return{pathname:S.pathname,search:S.search,hash:S.hash}},push:_,replace:y,go(E){return l.go(E)}};return x}var Rv;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(Rv||(Rv={}));function OO(t,e,n){return n===void 0&&(n="/"),NO(t,e,n,!1)}function NO(t,e,n,r){let s=typeof e=="string"?Ki(e):e,o=Rp(s.pathname||"/",n);if(o==null)return null;let l=Sx(t);AO(l);let u=null;for(let d=0;u==null&&d<l.length;++d){let h=HO(o);u=FO(l[d],h,r)}return u}function Sx(t,e,n,r){e===void 0&&(e=[]),n===void 0&&(n=[]),r===void 0&&(r="");let s=(o,l,u)=>{let d={relativePath:u===void 0?o.path||"":u,caseSensitive:o.caseSensitive===!0,childrenIndex:l,route:o};d.relativePath.startsWith("/")&&(Ye(d.relativePath.startsWith(r),'Absolute route path "'+d.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),d.relativePath=d.relativePath.slice(r.length));let h=ni([r,d.relativePath]),m=n.concat(d);o.children&&o.children.length>0&&(Ye(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+h+'".')),Sx(o.children,e,m,h)),!(o.path==null&&!o.index)&&e.push({path:h,score:BO(h,o.index),routesMeta:m})};return t.forEach((o,l)=>{var u;if(o.path===""||!((u=o.path)!=null&&u.includes("?")))s(o,l);else for(let d of kx(o.path))s(o,l,d)}),e}function kx(t){let e=t.split("/");if(e.length===0)return[];let[n,...r]=e,s=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return s?[o,""]:[o];let l=kx(r.join("/")),u=[];return u.push(...l.map(d=>d===""?o:[o,d].join("/"))),s&&u.push(...l),u.map(d=>t.startsWith("/")&&d===""?"/":d)}function AO(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:$O(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const LO=/^:[\w-]+$/,RO=3,IO=2,MO=1,DO=10,zO=-2,Iv=t=>t==="*";function BO(t,e){let n=t.split("/"),r=n.length;return n.some(Iv)&&(r+=zO),e&&(r+=IO),n.filter(s=>!Iv(s)).reduce((s,o)=>s+(LO.test(o)?RO:o===""?MO:DO),r)}function $O(t,e){return t.length===e.length&&t.slice(0,-1).every((r,s)=>r===e[s])?t[t.length-1]-e[e.length-1]:0}function FO(t,e,n){let{routesMeta:r}=t,s={},o="/",l=[];for(let u=0;u<r.length;++u){let d=r[u],h=u===r.length-1,m=o==="/"?e:e.slice(o.length)||"/",g=Mv({path:d.relativePath,caseSensitive:d.caseSensitive,end:h},m),_=d.route;if(!g&&h&&n&&!r[r.length-1].route.index&&(g=Mv({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},m)),!g)return null;
vendor: 9,412 bytes, lines 205-214
205Object.assign(s,g.params),l.push({params:s,pathname:ni([o,g.pathname]),pathnameBase:qO(ni([o,g.pathnameBase])),route:_}),g.pathnameBase!=="/"&&(o=ni([o,g.pathnameBase]))}return l}function Mv(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,r]=UO(t.path,t.caseSensitive,t.end),s=e.match(n);if(!s)return null;let o=s[0],l=o.replace(/(.)\/+$/,"$1"),u=s.slice(1);return{params:r.reduce((h,m,g)=>{let{paramName:_,isOptional:y}=m;if(_==="*"){let x=u[g]||"";l=o.slice(0,o.length-x.length).replace(/(.)\/+$/,"$1")}const P=u[g];return y&&!P?h[_]=void 0:h[_]=(P||"").replace(/%2F/g,"/"),h},{}),pathname:o,pathnameBase:l,pattern:t}}function UO(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),Lp(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let r=[],s="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,u,d)=>(r.push({paramName:u,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(r.push({paramName:"*"}),s+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":t!==""&&t!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,e?void 0:"i"),r]}function HO(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return Lp(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function Rp(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&r!=="/"?null:t.slice(n)||"/"}function WO(t,e){e===void 0&&(e="/");let{pathname:n,search:r="",hash:s=""}=typeof t=="string"?Ki(t):t;return{pathname:n?n.startsWith("/")?n:VO(n,e):e,search:KO(r),hash:GO(s)}}function VO(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function Fd(t,e,n,r){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` 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 ZO(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function Ex(t,e){let n=ZO(t);return e?n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Px(t,e,n,r){r===void 0&&(r=!1);let s;typeof t=="string"?s=Ki(t):(s=La({},t),Ye(!s.pathname||!s.pathname.includes("?"),Fd("?","pathname","search",s)),Ye(!s.pathname||!s.pathname.includes("#"),Fd("#","pathname","hash",s)),Ye(!s.search||!s.search.includes("#"),Fd("#","search","hash",s)));let o=t===""||s.pathname==="",l=o?"/":s.pathname,u;if(l==null)u=n;else{let g=e.length-1;if(!r&&l.startsWith("..")){let _=l.split("/");for(;_[0]==="..";)_.shift(),g-=1;s.pathname=_.join("/")}u=g>=0?e[g]:"/"}let d=WO(s,u),h=l&&l!=="/"&&l.endsWith("/"),m=(o||l===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(h||m)&&(d.pathname+="/"),d}const ni=t=>t.join("/").replace(/\/\/+/g,"/"),qO=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),KO=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,GO=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function JO(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const Cx=["post","put","patch","delete"];new Set(Cx);const QO=["get",...Cx];new Set(QO);/**
206 * React Router v6.30.1
207 *
208 * Copyright (c) Remix Software Inc.
209 *
210 * This source code is licensed under the MIT license found in the
211 * LICENSE.md file in the root directory of this source tree.
212 *
213 * @license MIT
214 */function Ra(){return Ra=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ra.apply(this,arguments)}const Ip=C.createContext(null),YO=C.createContext(null),Gi=C.createContext(null),Pc=C.createContext(null),Ji=C.createContext({outlet:null,matches:[],isDataRoute:!1}),Tx=C.createContext(null);function XO(t,e){let{relative:n}=e===void 0?{}:e;Ga()||Ye(!1);let{basename:r,navigator:s}=C.useContext(Gi),{hash:o,pathname:l,search:u}=Ox(t,{relative:n}),d=l;return r!=="/"&&(d=l==="/"?r:ni([r,l])),s.createHref({pathname:d,search:u,hash:o})}function Ga(){return C.useContext(Pc)!=null}function go(){return Ga()||Ye(!1),C.useContext(Pc).location}function jx(t){C.useContext(Gi).static||C.useLayoutEffect(t)}function eN(){let{isDataRoute:t}=C.useContext(Ji);return t?fN():tN()}function tN(){Ga()||Ye(!1);let t=C.useContext(Ip),{basename:e,future:n,navigator:r}=C.useContext(Gi),{matches:s}=C.useContext(Ji),{pathname:o}=go(),l=JSON.stringify(Ex(s,n.v7_relativeSplatPath)),u=C.useRef(!1);return jx(()=>{u.current=!0}),C.useCallback(function(h,m){if(m===void 0&&(m={}),!u.current)return;if(typeof h=="number"){r.go(h);return}let g=Px(h,JSON.parse(l),o,m.relative==="path");t==null&&e!=="/"&&(g.pathname=g.pathname==="/"?e:ni([e,g.pathname])),(m.replace?r.replace:r.push)(g,m.state,m)},[e,r,l,o,t])}function Ox(t,e){let{relative:n}=e===void 0?{}:e,{future:r}=C.useContext(Gi),{matches:s}=C.useContext(Ji),{pathname:o}=go(),l=JSON.stringify(Ex(s,r.v7_relativeSplatPath));return C.useMemo(()=>Px(t,JSON.parse(l),o,n==="path"),[t,l,o,n])}function nN(t,e){return rN(t,e)}function rN(t,e,n,r){Ga()||Ye(!1);let{navigator:s}=C.useContext(Gi),{matches:o}=C.useContext(Ji),l=o[o.length-1],u=l?l.params:{};l&&l.pathname;let d=l?l.pathnameBase:"/";l&&l.route;let h=go(),m;if(e){var g;let E=typeof e=="string"?Ki(e):e;d==="/"||(g=E.pathname)!=null&&g.startsWith(d)||Ye(!1),m=E}else m=h;let _=m.pathname||"/",y=_;if(d!=="/"){let E=d.replace(/^\//,"").split("/");y="/"+_.replace(/^\//,"").split("/").slice(E.length).join("/")}let P=OO(t,{pathname:y}),x=lN(P&&P.map(E=>Object.assign({},E,{params:Object.assign({},u,E.params),pathname:ni([d,s.encodeLocation?s.encodeLocation(E.pathname).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?d:ni([d,s.encodeLocation?s.encodeLocation(E.pathnameBase).pathname:E.pathnameBase])})),o,n,r);return e&&x?C.createElement(Pc.Provider,{value:{location:Ra({pathname:"/",search:"",hash:"",state:null,key:"default"},m),navigationType:qr.Pop}},x):x}function iN(){let t=hN(),e=JO(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},e),n?C.createElement("pre",{style:s},n):null,null)}const sN=C.createElement(iN,null);class oN extends C.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,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?C.createElement(Ji.Provider,{value:this.props.routeContext},C.createElement(Tx.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function aN(t){let{routeContext:e,match:n,children:r}=t,s=C.useContext(Ip);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),C.createElement(Ji.Provider,{value:e},r)}function lN(t,e,n,r){var s;if(e===void 0&&(e=[]),n===void 0&&(n=null),r===void 0&&(r=null),t==null){var o;if(!n)return null;if(n.errors)t=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let l=t,u=(s=n)==null?void 0:s.errors;if(u!=null){let m=l.findIndex(g=>g.route.id&&(u==null?void 0:u[g.route.id])!==void 0);m>=0||Ye(!1),l=l.slice(0,Math.min(l.length,m+1))}let d=!1,h=-1;if(n&&r&&r.v7_partialHydration)for(let m=0;m<l.length;m++){let g=l[m];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(h=m),g.route.id){let{loaderData:_,errors:y}=n,P=g.route.loader&&_[g.route.id]===void 0&&(!y||y[g.route.id]===void 0);if(g.route.lazy||P){d=!0,h>=0?l=l.slice(0,h+1):l=[l[0]];break}}}return l.reduceRight((m,g,_)=>{let y,P=!1,x=null,E=null;n&&(y=u&&g.route.id?u[g.route.id]:void 0,x=g.route.errorElement||sN,d&&(h<0&&_===0?(P=!0,E=null):h===_&&(P=!0,E=g.route.hydrateFallbackElement||null)));let S=e.concat(l.slice(0,_+1)),w=()=>{let b;return y?b=x:P?b=E:g.route.Component?b=C.createElement(g.route.Component,null):g.route.element?b=g.route.element:b=m,C.createElement(aN,{match:g,routeContext:{outlet:m,matches:S,isDataRoute:n!=null},children:b})};return n&&(g.route.ErrorBoundary||g.route.errorElement||_===0)?C.createElement(oN,{location:n.location,revalidation:n.revalidation,component:x,error:y,children:w(),routeC
214ontext:{outlet:null,matches:S,isDataRoute:!0}}):w()},null)}var Nx=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(Nx||{}),Vu=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(Vu||{});function uN(t){let e=C.useContext(Ip);return e||Ye(!1),e}function cN(t){let e=C.useContext(YO);return e||Ye(!1),e}function dN(t){let e=C.useContext(Ji);return e||Ye(!1),e}function Ax(t){let e=dN(),n=e.matches[e.matches.length-1];return n.route.id||Ye(!1),n.route.id}function hN(){var t;let e=C.useContext(Tx),n=cN(Vu.UseRouteError),r=Ax(Vu.UseRouteError);return e!==void 0?e:(t=n.errors)==null?void 0:t[r]}function fN(){let{router:t}=uN(Nx.UseNavigateStable),e=Ax(Vu.UseNavigateStable),n=C.useRef(!1);return jx(()=>{n.current=!0}),C.useCallback(function(s,o){o===void 0&&(o={}),n.current&&(typeof s=="number"?t.navigate(s):t.navigate(s,Ra({fromRouteId:e},o)))},[t,e])}function pN(t,e){t==null||t.v7_startTransition,t==null||t.v7_relativeSplatPath}function vs(t){Ye(!1)}function mN(t){let{basename:e="/",children:n=null,location:r,navigationType:s=qr.Pop,navigator:o,static:l=!1,future:u}=t;Ga()&&Ye(!1);let d=e.replace(/^\/*/,"/"),h=C.useMemo(()=>({basename:d,navigator:o,static:l,future:Ra({v7_relativeSplatPath:!1},u)}),[d,u,o,l]);typeof r=="string"&&(r=Ki(r));let{pathname:m="/",search:g="",hash:_="",state:y=null,key:P="default"}=r,x=C.useMemo(()=>{let E=Rp(m,d);return E==null?null:{location:{pathname:E,search:g,hash:_,state:y,key:P},navigationType:s}},[d,m,g,_,y,P,s]);return x==null?null:C.createElement(Gi.Provider,{value:h},C.createElement(Pc.Provider,{children:n,value:x}))}function gN(t){let{children:e,location:n}=t;return nN(of(e),n)}new Promise(()=>{});function of(t,e){e===void 0&&(e=[]);let n=[];return C.Children.forEach(t,(r,s)=>{if(!C.isValidElement(r))return;let o=[...e,s];if(r.type===C.Fragment){n.push.apply(n,of(r.props.children,o));return}r.type!==vs&&Ye(!1),!r.props.index||!r.props.children||Ye(!1);let l={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=of(r.props.children,o)),n.push(l)}),n}/**
215 * React Router DOM v6.30.1
216 *
217 * Copyright (c) Remix Software Inc.
218 *
219 * This source code is licensed under the MIT license found in the
220 * LICENSE.md file in the root directory of this source tree.
221 *
222 * @license MIT
223 */function af(){return af=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},af.apply(this,arguments)}function vN(t,e){if(t==null)return{};var n={},r=Object.keys(t),s,o;for(o=0;o<r.length;o++)s=r[o],!(e.indexOf(s)>=0)&&(n[s]=t[s]);return n}function yN(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function _N(t,e){return t.button===0&&(!e||e==="_self")&&!yN(t)}const wN=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],xN="6";try{window.__reactRouterVersion=xN}catch{}const bN="startTransition",Dv=Fy[bN];function SN(t){let{basename:e,children:n,future:r,window:s}=t,o=C.useRef();o.current==null&&(o.current=CO({window:s,v5Compat:!0}));let l=o.current,[u,d]=C.useState({action:l.action,location:l.location}),{v7_startTransition:h}=r||{},m=C.useCallback(g=>{h&&Dv?Dv(()=>d(g)):d(g)},[d,h]);return C.useLayoutEffect(()=>l.listen(m),[l,m]),C.useEffect(()=>pN(r),[r]),C.createElement(mN,{basename:e,children:n,location:u.location,navigationType:u.action,navigator:l,future:r})}const kN=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",EN=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,PN=C.forwardRef(function(e,n){let{onClick:r,relative:s,reloadDocument:o,replace:l,state:u,target:d,to:h,preventScrollReset:m,viewTransition:g}=e,_=vN(e,wN),{basename:y}=C.useContext(Gi),P,x=!1;
223if(typeof h=="string"&&EN.test(h)&&(P=h,kN))try{let b=new URL(window.location.href),T=h.startsWith("//")?new URL(b.protocol+h):new URL(h),O=Rp(T.pathname,y);T.origin===b.origin&&O!=null?h=O+T.search+T.hash:x=!0}catch{}let E=XO(h,{relative:s}),S=CN(h,{replace:l,state:u,target:d,preventScrollReset:m,relative:s,viewTransition:g});function w(b){r&&r(b),b.defaultPrevented||S(b)}return C.createElement("a",af({},_,{href:P||E,onClick:x||o?r:w,ref:n,target:d}))});var zv;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(zv||(zv={}));var Bv;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(Bv||(Bv={}));function CN(t,e){let{target:n,replace:r,state:s,preventScrollReset:o,relative:l,viewTransition:u}=e===void 0?{}:e,d=eN(),h=go(),m=Ox(t,{relative:l});return C.useCallback(g=>{if(_N(g,n)){g.preventDefault();let _=r!==void 0?r:Wu(h)===Wu(m);d(t,{replace:_,state:s,preventScrollReset:o,relative:l,viewTransition:u})}},[h,d,m,r,s,n,t,o,l,u])}const $v="dsl-theme",Fv=t=>{document.documentElement.classList.toggle("dark",t)},Uv=({className:t=""})=>{const[e,n]=C.useState(()=>typeof document<"u"?document.documentElement.classList.contains("dark"):!1);C.useEffect(()=>{const s=window.matchMedia("(prefers-color-scheme: dark)"),o=()=>{const l=localStorage.getItem($v),u=l?l==="dark":s.matches;n(u),Fv(u)};return o(),s.addEventListener("change",o),()=>s.removeEventListener("change",o)},[]);const r=()=>{const s=!e;n(s),Fv(s),localStorage.setItem($v,s?"dark":"light")};return p.jsx("button",{onClick:r,"aria-label":e?"Switch to light mode":"Switch to dark mode",title:e?"Light mode":"Dark mode",className:`relative inline-flex h-9 w-9 items-center justify-center rounded-full border border-white/25 bg-white/10 text-white backdrop-blur-sm transition-all hover:border-white/50 hover:bg-white/20 hover:shadow-magic-glow ${t}`,children:e?p.jsx(eC,{size:17}):p.jsx(YP,{size:17})})},TN=()=>{const[t,e]=C.useState(!1),n=s=>{const o=document.getElementById(s);o&&(o.scrollIntoView({behavior:"smooth"}),e(!1))},r=()=>{window.scrollTo({top:0,behavior:"smooth"})};return p.jsx("header",{className:"fixed top-0 w-full bg-gradient-to-r from-[#000000]/30 via-[#1a237e]/30 to-[#4a148c]/30 backdrop-blur-md border-b border-purple-400/20 z-30",children:p.jsxs("div",{className:"container mx-auto px-6 py-4",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsxs("button",{onClick:r,className:"flex items-center space-x-4 hover:opacity-80 transition-opacity cursor-pointer",children:[p.jsx("img",{src:"/lovable-uploads/33fa9fe8-7ecd-4efe-8b5b-4ca284703491.png",alt:"Data Systems Lab Logo",className:"w-10 h-10"}),p.jsx("h1",{className:"text-2xl font-bold text-white font-space-grotesk tracking-tight",children:"Data Systems Lab"})]}),p.jsxs("nav",{className:"hidden md:flex items-center space-x-8",children:[p.jsx("button",{onClick:()=>n("research"),className:"text-white font-bold hover:text-white/70 transition-colors",children:"Research"}),p.jsx("button",{onClick:()=>n("team"),className:"text-white font-bold hover:text-white/70 transition-colors",children:"Team"}),p.jsx("button",{onClick:()=>n("teaching"),className:"text-white font-bold hover:text-white/70 transition-colors",children:"Teaching"}),p.jsx("button",{onClick:()=>n("publications"),className:"text-white font-bold hover:text-white/70 transition-colors",children:"Publications"}),p.jsx("button",{onClick:()=>n("contact"),className:"text-white font-bold hover:text-white/70 transition-colors",children:"Contact"}),p.jsx(Uv,{})]}),p.jsxs("div",{className:"flex items-center gap-3 md:hidden",children:[p.jsx(Uv,{}),p.jsx("button",{className:"text-white",onClick:()=>e(!t),children:t?p.jsx(Tw,{size:24}):p.jsx(QP,{size:24})})]})]}),t&&p.jsx("nav",{className:"md:hidden mt-4 py-4 border-t border-white/10",children:p.jsxs("div",{className:"flex flex-col space-y-4",children:[p.jsx("button",{onClick:()=>n("research"),className:"text-left text-white font-bold hover:text-white/70 transition-colors",children:"Research"}),p.jsx("button",{onClick:()=>n("teaching"),className:"text-left text-white font-bold hover:text-white/70 transition-colors",children:"Teaching"}),p.jsx("button",{onClick:()=>n("team"),className:"text-left text-white font-bold hover:text-white/70 transition-colors",children:"Team"}),p.jsx("button",{onClick:()=>n("publications"),className:"text-left text-white font-bold hover:text-white/70 transition-colors",children:"Publications"}),p.jsx("button",{onClick:()=>n("contact"),className:"text-left text-white font-bold hover:text-white/70 transition-colors",children:"Contact"})]})})]})})},jN=vc("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Pt=C.forwardRef(({className:t,variant:e,size:n,asChild:r=!1,...s},o)=>{const l=r?GE:"button";return p.jsx(l,{className:$e(jN({variant:e,size:n,className:t})),ref:o,...s})});Pt.displayName="Button";const ON="/assets/hero-data-systems-CRb3onkx.jpg",NN="/assets/hero-minimal-horizon-BD_jNvhY.jpg",AN="/assets/hero-stalenhag-space-D8m-8F1S.jpg",Hv=[{src:ON,overlay:"bg-gradient-hero opacity-70"},{src:NN,overlay:"bg-[#050b18] opacity-40"},{src:AN,overlay:"bg-[#0d0a1a] opacity-45"}],Ud="magic-word sm:text-3xl md:text-3xl text-xl ",Hd=[{text:"We"},{text:"build"},{text:"systems"},{text:"that"},{text:"stand"},{text:"the"},{text:"test"},{text:"of"},{text:"time,"},{text:"uncompromising"},{text:"in"},{text:"speed",className:Ud+"magic-speed",suffix:","},{text:"trust",className:Ud+"magic-trust",suffix:","},{text:"and"},{text:"simplicity",className:Ud+"magic-simplicity",suffix:"."}],LN=()=>{const[t,e]=C.useState(!1),[n]=C.useState(()=>Hv[Math.floor(Math.random()*Hv.length)]);return p.jsxs("section",{className:"hero-section relative min-h-screen flex items-center justify-center overflow-hidden pt-20 md:pt-0 bg-[#0a1628]",children:[p.jsxs("div",{className:"absolute inset-0",children:[p.jsx("img",{src:n.src,alt:"Data Systems Lab Hero Backgroun
223d",className:`w-full h-full object-cover transition-opacity duration-700 ${t?"opacity-100":"opacity-0"}`,onLoad:()=>e(!0)}),p.jsx("div",{className:`absolute inset-0 ${n.overlay}`})]}),p.jsxs("div",{className:"relative z-10 container mx-auto px-4 md:px-6 text-center text-primary-foreground transform translate-x-[3%]",children:[p.jsxs("div",{className:"transform md:-translate-y-12",children:[p.jsxs("div",{className:"flex items-center justify-center gap-4 md:gap-6 mb-6 md:mb-8 -ml-8 md:-ml-12",children:[p.jsx("img",{src:"/lovable-uploads/33fa9fe8-7ecd-4efe-8b5b-4ca284703491.png",alt:"Data Systems Lab Logo",width:80,height:80,loading:"eager",decoding:"sync",fetchPriority:"high",className:"w-12 h-12 md:w-20 md:h-20"}),p.jsx("h1",{className:"text-3xl sm:text-5xl font-bold leading-tight font-space-grotesk tracking-tight md:text-7xl",children:"Data Systems Lab"})]}),p.jsxs("div",{className:"text-base sm:text-xl md:text-2xl mb-4 sm:mb-8 max-w-7xl mx-auto leading-relaxed opacity-90",children:[p.jsx("p",{className:"mb-2 unravel-line",children:Hd.map((r,s)=>p.jsxs("span",{className:"unravel-word",style:{animationDelay:`${.2+s*.06}s`},children:[p.jsx("span",{className:r.className,children:r.text}),r.suffix,s<Hd.length-1?" ":""]},`${r.text}-${s}`))}),p.jsx("p",{className:"text-sm sm:text-lg md:text-xl opacity-80",children:p.jsx("span",{className:"unravel-word",style:{animationDelay:`${.2+Hd.length*.06+.3}s`},children:"Made in Stockholm, Sweden 🇸🇪"})})]})]}),p.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 sm:gap-6 justify-center mt-4 md:mt-8 -ml-4 md:-ml-6",children:[p.jsx(Pt,{size:"lg",variant:"secondary",className:"bg-primary-foreground text-primary hover:bg-primary-foreground/90 shadow-hero text-base md:text-lg px-6 py-5 md:px-8 md:py-6",onClick:()=>{var r;return(r=document.getElementById("research"))==null?void 0:r.scrollIntoView({behavior:"smooth"})},children:"Explore Research"}),p.jsx(Pt,{size:"lg",variant:"secondary",className:"bg-primary-foreground text-primary hover:bg-primary-foreground/90 shadow-hero text-base md:text-lg px-6 py-5 md:px-8 md:py-6",onClick:()=>{var r;return(r=document.getElementById("publications"))==null?void 0:r.scrollIntoView({behavior:"smooth"})},children:"View Publications"})]})]}),p.jsx("div",{className:"absolute bottom-8 left-1/2 transform -translate-x-1/2 animate-bounce",children:p.jsx("div",{className:"w-6 h-10 border-2 border-primary-foreground rounded-full opacity-75",children:p.jsx("div",{className:"w-1 h-3 bg-primary-foreground rounded-full mx-auto mt-2"})})})]})},We=C.forwardRef(({className:t,...e},n)=>p.jsx("div",{ref:n,className:$e("rounded-lg border bg-card text-card-foreground shadow-sm",t),...e}));We.displayName="Card";const RN=C.forwardRef(({className:t,...e},n)=>p.jsx("div",{ref:n,className:$e("flex flex-col space-y-1.5 p-6",t),...e}));RN.displayName="CardHeader";const IN=C.forwardRef(({className:t,...e},n)=>p.jsx("h3",{ref:n,className:$e("text-2xl font-semibold leading-none tracking-tight",t),...e}));IN.displayName="CardTitle";const MN=C.forwardRef(({className:t,...e},n)=>p.jsx("p",{ref:n,className:$e("text-sm text-muted-foreground",t),...e}));MN.displayName="CardDescription";const Lx=C.forwardRef(({className:t,...e},n)=>p.jsx("div",{ref:n,className:$e("p-6 pt-0",t),...e}));Lx.displayName="CardContent";const DN=C.forwardRef(({className:t,...e},n)=>p.jsx("div",{ref:n,className:$e("flex items-center p-6 pt-0",t),...e}));DN.displayName="CardFooter";const zN="/assets/research-trustworthy-data-D-Pgw4OZ.jpg",BN="/assets/research-realtime-dataflows-C_EpbY0t.jpg",$N="/assets/research-cloud-space-D6tGS9sM.jpg",FN="/assets/research-neural-data-D45DyKDQ.jpg",UN=()=>{const t=[{title:"Cloud-to-Space Computing",description:"Pushing distributed systems and databases beyond known frontiers.",icon:p.jsx(Sw,{className:"w-8 h-8"}),image:$N,keywords:["Mixed Consistency","Low-latency Edge","Dissagregation","Deep Space","Quantum Communications","6G NTN","LEO PNT"]},{title:"AI-native Data Systems",description:"Model-driven computing, expanding our capabilities to scale automation reliably",icon:p.jsx(bw,{className:"w-8 h-8"}),image:FN,keywords:["Predictive Databases","AI-Assisted Interoperability","Data-Bound Computing","Trustworthy AI","Safety-critical AI"]},{title:"Foundations of Trustworthy Data Systems",description:"Building reliable foundations for global-scale, trustworthy data systems",icon:p.jsx(kw,{className:"w-8 h-8"}
223),image:zN,keywords:["Geo-replication","Linearizability","ACID Transactions","Fault Tolerance","Formal Semantics","Agreement & Coordination","TLA+","Determinism"]},{title:"Continuous Intelligence and Dataflow Computing",description:"Next-generation stream processing and event-driven systems.",icon:p.jsx(Pw,{className:"w-8 h-8"}),image:BN,keywords:["Dissagregated State Management","Dataflow Semantics","Dataflow Languages","Hardware-Acceleration","Agentic Dataflow Apps"]}];return p.jsx("section",{id:"research",className:"py-20 bg-gradient-card",children:p.jsxs("div",{className:"container mx-auto px-6",children:[p.jsxs("div",{className:"text-center mb-16",children:[p.jsx("h2",{className:"text-4xl md:text-5xl font-bold mb-6 text-academic-blue",children:"Research Areas"}),p.jsx("p",{className:"text-xl text-academic-gray-light max-w-3xl mx-auto",children:"Our research spans multiple domains of data systems, from theoretical foundations to practical implementations that address challenges that matter deeply to us"})]}),p.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 sm:gap-8",children:t.map((e,n)=>p.jsxs(We,{className:"group hover:shadow-hover hover:glow-shift transition-all duration-300 overflow-hidden bg-card border-0 shadow-card",children:[p.jsxs("div",{className:"relative h-48 overflow-hidden",children:[p.jsx("img",{src:e.image,alt:e.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300"}),p.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-academic-blue/80 to-transparent"}),p.jsx("div",{className:"absolute top-4 left-4 text-primary-foreground",children:e.icon})]}),p.jsxs("div",{className:"p-6",children:[p.jsx("h3",{className:"text-2xl font-semibold mb-3 text-academic-blue group-hover:text-academic-blue-light transition-colors",children:e.title}),p.jsx("p",{className:"text-academic-gray-light mb-4 leading-relaxed",children:e.description}),p.jsx("div",{className:"flex flex-wrap gap-2",children:e.keywords.map((r,s)=>p.jsx("span",{className:"px-3 py-1 bg-academic-accent text-academic-blue text-sm rounded-full",children:r},s))})]})]},n))})]})})},HN=vc("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Ia({className:t,variant:e,...n}){return p.jsx("div",{className:$e(HN({variant:e}),t),...n})}const WN=1,VN="818661d2-946c-47d5-9173-c5cc5644f621",ZN="f70c4479-f26b-4946-925e-124c7d177018",qN="/__l5e/assets-v1/818661d2-946c-47d5-9173-c5cc5644f621/kth-logo-white.png",KN="a/v1/f70c4479-f26b-4946-925e-124c7d177018/818661d2-946c-47d5-9173-c5cc5644f621/kth-logo-white.png",GN="kth-logo-white.png",JN=190850,QN="image/png",YN="2026-06-12T06:08:51Z",XN={version:WN,asset_id:VN,project_id:ZN,url:qN,r2_key:KN,original_filename:GN,size:JN,content_type:QN,created_at:YN},e2=()=>{const t=[{code:"IV1351",title:"Data Storage Paradigms",level:"Bachelors",description:"An interactive course on the internals of relational database systems, including memory management, transactions, indexing algorithms, and query optimization. The course sets the fundamentals for data systems and their optimisation.",topics:["Data Modelling","Query Processing","Memory & Disk Management","Transaction Management","Indexing Algorithms","Database Query Optimisation"],color:"bg-gradient-course-a"},{code:"ID2203",title:"Distributed Systems Advanced Course",level:"Masters",description:"A definitive take on distributed algorithms from simple failure detectors and linearizable stores to complex modern geo-replicated databases. The course combines world-exclusive Scala/Rust verification middleware and TLA+.",topics:["Linearizable Data Stores","Replicated State Machines","Eventual Consistency","Atomic Commitment","Atomic and Quantum Entangled Clocks","Distributed Snapshotting"],color:"bg-gradient-course-b"}];return p.jsx("section",{id:"teaching",className:"py-6 bg-gradient-to-b from-secondary/10 to-secondary/30 border-t border-border/50",children:p.jsxs("div",{className:"container mx-auto px-6",children:[p.jsxs("div",{className:"text-center mb-16",children:[p.jsx("div",{className:"flex justify-center mb-4",children:p.jsx(Ew,{className:"h-12 w-12 text-academic-blue"})}),p.jsx("h2",{className:"text-4xl font-bold text-foreground mb-4",children:"Data Systems Education @ KTH"}),p.jsx("p",{className:"text-xl text-muted-foreground max-w-3xl mx-auto leading-relaxed",children:"We take the teaching of systems seriously [THS Best-Teacher Award 2024]. Our comprehensive data systems specialization features courses across all cycles of education, building up knowledge from 0 to peak data system expertise."})]}),p.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8 mb-16",children:t.map(e=>p.jsxs(We,{className:"overflow-hidden shadow-card border border-transparent hover:glow-shift hover:border-gray-300/20 dark:hover:border-gray-700/20 transition-all duration-100",children:[p.jsxs("div",{className:`${e.color} px-6 py-4 text-white`,children:[p.jsxs("div",{className:"flex items-center justify-between mb-2",children:[p.jsx(Ia,{variant:"secondary",className:"bg-white/20 text-white border-white/30",children:e.level}),p.jsx(VP,{className:"h-6 w-6"})]}),p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("img",{src:XN.url,alt:"KTH",className:"h-14 w-auto opacity-95 flex-shrink-0"}),p.jsxs("div",{className:"min-w-0",children:[p.jsx("h3",{className:"text-2xl font-bold leading-tight",children:e.code}),p.jsx("h4",{className:"text-lg font-medium opacity-90 leading-tight",children:e.title})]})]})]}),p.jsxs(Lx,{className:"p-6",children:[p.jsx("p",{className:"text-muted-foreground mb-6 leading-relaxed",children:e.description}),p.jsxs("div",{children:[p.jsx("h5",{className:"font-semibold text-foreground mb-3",children:"Key Topics:"}),p.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:e.topics.map(n=>p.jsxs("div",{className:"flex items-center text-sm text-muted-foreground",children:[p.jsx("div",{className:"w-2 h-2 bg-academic-blue rounded-full mr-3 flex-shrink-0"}),n]},n))})]})]})]},e.code))})]})})},t2="/assets/sonia-Na11NOM9.jpeg",n2="/assets/harald-DOsJIANA.jpeg",r2="/assets/max-I06qg2LC.jpg",i2="/assets/jonas-Br10zhgx.jpeg",s2="/assets/adam-CflZRd8B.jpeg",o2="/assets/klas-BmiCbsKU.jpeg",a2="/assets/andra-CZR-FjF0.jpg",Rx="/assets/paris-new-Bt1VKCuT.jpg",l2="/assets/jonathan-6w6mmSSF.jpg",u2=()=>{const t=[{name:"Paris Carbone",role:"Assoc Professor",department:"Lab Founder",bio:`Original Apache Flink founding team 
224 Co-Founder of OrbDB Labs 
225 PI of LeoDOS space OS project 🇸🇪.`,email:"[email protected]",profileUrl:"/profile",initials:"PC",image:Rx},{name:"Andra Ionescu",role:"Postdoctoral Researcher",department:"Health Data System Interoperability",bio:"Researching the use of AI and Graphs for Multi-Modal Data Integration. Leader of the Mediverse Project",email:"[email protected]",profileUrl:"https://andraionescu.github.io/",initials:"AI",image:a2},{name:"Jonathan Arns",role:"PhD Student",department:"Hyper-Scale Data Systems",bio:`Investigating new distributed system architectures.
226Co-supervised by Å arÅ«nas Girdzijauskas`,email:"[email protected]",profileUrl:"https://www.kth.se/profile/jarns",initials:"JA",image:l2},{name:"Sonia Horchidan",role:"PhD Student",department:"Predictive Database Systems",bio:"Researching predictive databases and AI with statistically bounded errors. Creator of OrbDB.",initials:"SH",image:t2,tag:"Defended 15/06/26",alumniLabel:"Alumna",thesisUrl:"https://urn.
226kb.se/resolve?urn=urn:nbn:se:kth:diva-382126",websiteUrl:"https://orbdb.io",websiteLabel:"Spinoff"},{name:"Harald Ng",role:"PhD Student",department:"Meta-Coordination Systems",bio:"Researching distributed data systems that can bypass the limitations of centralized coordination. Creator of OmniPaxos.",initials:"HN",image:n2,tag:"Defended 08/06/26",alumniLabel:"Alumnus",thesisUrl:"https://kth.diva-portal.org/smash/record.jsf?pid=diva2%3A2059969&dswid=8554"},{name:"Max Meldrum",role:"PhD Student",department:"Stream Processing Systems",bio:"Researching high-performance streaming analytics and temporal data processing. Creator of μWheels",email:"[email protected]",profileUrl:"https://www.kth.se/profile/mmeldrum",initials:"MM",image:r2,tag:"Industry Track"},{name:"Adam Hasselberg",role:"PhD Student",department:"Edge and Space Serverless Computing",bio:"Research in edge serverless computing architectures. Co-supervised with György Dán.",email:"[email protected]",profileUrl:"https://www.kth.se/profile/adamhas",initials:"AH",image:s2,tag:"Institute Track"},{name:"Jonas Spenger",role:"PhD Student",department:"Serverless Programming Languages & Systems",bio:"Researching the intersection of actor and dataflow paradigms. Creator of Portals. Co-supervised with Philipp Haller.",initials:"JS",image:i2,tag:"Defended 11/12/25",alumniLabel:"Alumnus",thesisUrl:"https://www.diva-portal.org/smash
226/record.jsf?pid=diva2:2013047",websiteUrl:"https://www.jspenger.com/"},{name:"Klas Segeljakt",role:"PhD Student",department:"Stream Processing Languages",bio:"Making programming languages and compilers for dataflow applications. Creator of AquaLang. Co-supervised with Seif Haridi.",email:"[email protected]",profileUrl:"https://www.kth.se/profile/klasseg",initials:"KS",image:o2,tag:"Institute Track"}];return p.jsx("section",{id:"team",className:"py-12 bg-background",children:p.jsxs("div",{className:"container mx-auto px-6",children:[p.jsxs("div",{className:"text-center mb-10",children:[p.jsx("h2",{className:"text-4xl md:text-5xl font-bold mb-4 text-academic-blue",children:"Our Team"}),p.jsx("p",{className:"text-lg text-academic-gray max-w-3xl mx-auto",children:"Meet the dedicated researchers and engineers driving innovation in data systems."})]}),p.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-4 auto-rows-fr",children:t.map((e,n)=>{var r;return p.jsxs(We,{className:"group h-full bg-gradient-card border border-border/60 shadow-card hover:glow-shift hover:border-academic-blue/30 transition-all duration-100 relative overflow-hidden",children:[e.image&&p.jsx("div",{className:"pointer-events-none absolute inset-y-0 left-0 w-[45%] bg-cover bg-center opacity-85 grayscale-[0.15] saturate-125 dark:opacity-95 dark:grayscale-0 dark:saturate-150 dark:contrast-[1.05] transition-all duration-500 group-hover:opacity-100 group-hover:grayscale-0 group-hover:scale-105",style:{backgroundImage:`url(${e.image})`,maskImage:"linear-gradient(to right, hsl(0 0% 0% / 1) 0%, hsl(0 0% 0% / 0.6) 45%, transparent 100%)",WebkitMaskImage:"linear-gradient(to right, hsl(0 0% 0% / 1) 0%, hsl(0 0% 0% / 0.6) 45%, transparent 100%)"},"aria-hidden":"true"}),p.jsx("div",{className:"relative p-4 pl-[38%] h-full flex text-left",children:p.jsxs("div",{className:"min-w-0 flex-1 flex flex-col h-full",children:[p.jsxs("div",{className:"flex items-start justify-between gap-2",children:[p.jsx("h3",{className:"text-base font-bold leading-tight text-academic-blue",children:e.name}),((r=e.tag)==null?void 0:r.startsWith("Defended"))&&p.jsx("span",{className:"shrink-0 rounded border border-green-600 bg-green-50 dark:bg-green-950 px-1.5 py-0.5 text-[10px] font-bold uppercase tracking-wide text-green-700 dark:text-green-400",children:e.alumniLabel||"Alumni"})]}),p.jsxs("p",{className:"text-sm font-semibold text-academic-blue-lighter leading-tight",children:[e.role,p.jsxs("span",{className:"font-normal text-academic-gray",children:[" · ",e.department]})]}),e.tag&&p.jsx(Ia,{variant:"secondary",className:"mt-1.5 self-start text-[11px] font-semibold text-academic-gray",children:e.tag}),p.jsx("p",{className:"mt-1.5 text-[13px] text-academic-gray leading-snug whitespace-pre-line",children:e.bio}),p.jsxs("div",{className:"mt-auto pt-2 flex flex-wrap items-center gap-x-3 gap-y-1",children:[e.email&&p.jsxs("a",{href:`mailto:${e.email}`,className:"flex items-center font-medium text-academic-blue hover:text-academic-blue-light transition-colors",children:[p.jsx(yc,{size:14,className:"mr-1"}),p.jsx("span",{className:"text-[13px]",children:"Email"})]}),e.profileUrl&&p.jsxs("a",{href:e.profileUrl.startsWith("/")?`${window.location.origin}${window.location.pathname}#${e.profileUrl}`:e.profileUrl,target:"_blank",rel:"noopener noreferrer",className:"flex items-center font-medium text-academic-blue hover:text-academic-blue-light transition-colors",children:[p.jsx(vr,{size:14,className:"mr-1"}),p.jsx("span",{className:"text-[13px]",children:"Profile"})]}),e.websiteUrl&&p.jsxs("a",{href:e.websiteUrl,target:"_blank",rel:"noopener noreferrer",className:"flex items-center font-medium text-academic-blue hover:text-academic-blue-light transition-colors",children:[p.jsx(vr,{size:14,className:"mr-1"}),p.jsx("span",{className:"text-[13px]",children:e.websiteLabel||"Website"})]}),e.thesisUrl&&p.jsxs("a",{href:e.thesisUrl,target:"_blank",rel:"noopener noreferrer",className:"flex items-center font-medium text-academic-blue hover:text-academic-blue-light transition-colors",children:[p.jsx(vr,{size:14,className:"mr-1"}),p.jsx("span",{className:"text-[13px]",children:"Thesis"})]})]})]})})]},n)})})]})})},c2=()=>{const[t,e]=C.useState(!1),n={foundations:{icon:kw,label:"Trustworthy Data Systems",color:"text-blue-600"},dataflow:{icon:Pw,label:"Dataflow Computing",color:"text-green-600"},cloud:{icon:Sw,label:"Cloud-to-Space",color:"text-purple-600"},ai:{icon:bw,label:"AI-native Systems",color:"text-orange-600"}},r=[{title:"GRESSE: Geo-Replicated Stateful Serverless for the Edge",authors:"A. Hasselberg, P. Carbone, G. Dán",venue:"ACM SEC",year:"2026",abstract:"A geo-replicated stateful serverless framework based on CRDTs, for dynamic edge deployments such as sensor, robotic, vehicular and satellite networks",doi:"n/a",category:"cloud"},{title:"ConRAD: Conformal Risk-Aware Neural Databases",authors:"S. Horchidan, F. Zeiher, X. Shi, V. Kalavri, H. Boström, I. Kontoyiannis, P. Carbone",venue:"VLDB",year:"2026",abstract:"The first framework to achieve declarative recall guarantees natively within a predictive query engine, deriving per-operator thresholds via Conformal Risk Control while maximizing end-to-e
226nd precision.",doi:"n/a",link:"https://www.vldb.org/pvldb/vol19/p3511-horchidan.pdf",category:"ai"},{title:"Interoperability in Healthcare: A Primer and New Frontiers",authors:"A. Ionescu, P. Carbone, S. Meijer, C. Koutras, J. Freire, K. Hose, J. Raghothama",venue:"VLDB",year:"2026",abstract:"A primer on data interoperability challenges in healthcare, surveying the state of the art and outlining new frontiers for integrating clinical and medical data across systems.",doi:"n/a",link:"https://www.vldb.org/pvldb/vol19/p4912-ionescu.pdf",website:"https://tutorial.mediverse.se/",category:"foundations"},{title:"Mediverse: Multimodal Clinical Exploration and Search on a Single Graph",authors:"A. Ionescu, P. Carbone, S. Meijer, J. Raghothama",venue:"BioDMS@VLDB",year:"2026",abstract:"Bridging clinical and medical research by combining all medical knowledge into a single graph for deep exploration and predictions across diverse modalities, establishing trust in medical data systems through graph representation learning.",doi:"n/a",link:"https://openreview.net/pdf?id=1cDpN0B4G2",category:"ai"},{title:"Lightspeed Data Compute for the Space Era",authors:"T. Sandholm, B. A. Huberman, K. Segeljakt, P. Carbone",venue:"arXiv",year:"2026",abstract:"In this preview we show how satellite megaconstellations can leverage space physics and lightspeed lasers to accelerate computations in space.",doi:"10.48550/arXiv.2601.17589",link:"https://arxiv.org/pdf/2601.17589",website:"https://leodos.org",category:"cloud",isPreview:!0},{title:"Event Horizon: Asymmetric Dependencies for Fast Geo-Distributed Operations",authors:"J. Arns, H. Ng, K. Psarakis, A. Katsifodimos, P. Carbone",venue:"CIDR",year:"2026",abstract:"Presenting a new model of semi-linearizability, suitable for geo-replication, inspired by the asymmetric nature of operation dependencies and the event horizon surrounding black holes",doi:"n/a",link:"https://vldb.org/cidrdb/papers/2026/p20-arns.pdf",category:"cloud"},{title:"ConANN: Conformal Approximate Nearest Neighbor Search",authors:"S. Horchidan, F. Zeiher, H. Boström, P. Carbone",venue:"VLDB",year:"2026",abstract:"A novel approach to approximate nearest neighbor search with conformal prediction guarantees, enabling uncertainty quantification in similarity-based retrieval systems.",doi:"n/a",link:"https://www.vldb.org/pvldb/vol19/p29-horchidan.pdf",category:"ai"},{title:"Reminiscences on Google's Dataflow Model (VLDB15)",authors:"P. Carbone",venue:"SIGMOD Record",year:"2025",abstract:"An 10year analysis of Google's Dataflow model. The What, When, Where and How's",doi:"n/a",link:"https://sigmodrecord.org/publications/sigmodRecord/2509/pdfs/04_Reminiscences_Leis.pdf",category:"dataflow"},{title:"Failure-Transparent Actors",authors:"J. Spenger, P. Carbone, P. Haller",venue:"LNCS",year:"2025",abstract:"A new actor model built on trust with provable failure transparency based on prophecy variables.",doi:"n/a",link:"https://link.springer.com/content/pdf/10.1007/978-3-032-05291-9.pdf",category:"foundations"},{title:"Disaggregated State Management in Apache Flink® 2.0",authors:"Y. Mei, Z. Lan, L. Huang, Y. Lei, H. Yin, R. Xia, K. Hu, P. Carbone, V. Kalavri",venue:"VLDB",year:"2025",abstract:"Flink 2.0 is here with a paradigm shift, separating compute and storage for improved state scalability and throughput.",doi:"10.14778/3685800.3685820",link:"https://www.vldb.org/pvldb/vol18/p4846-mei.pdf",website:"https://flink.apache.org/",category:"dataflow"},{title:"μWheel: Aggregate Management for Streams and Queries",authors:"M. Meldrum, P. Carbone",venue:"DEBS",year:"2024",abstract:"A unified system for managing aggregates across streaming and batch workloads, providing efficient incremental computation with strong consistency guarantees.",doi:"10.1145/3629104.3666037",award:"Best Paper Award",link:"https://dl.acm.org/doi/pdf/10.1145/3629104.3666031",website:"https://uwheel.rs/",category:"dataflow"},{title:"AquaLang: A Dataflow Programming Language",authors:"K. Segeljakt, S. Haridi, P. Carbone",venue:"DEBS",year:"2024",abstract:"A new dataflow programming language, combining declarative stream and query semantics, without the unnecessary bits, while offering unprecedented performance benefits.",doi:"10.1145/3629104.3666039",category:"dataflow",link:"https://dl.acm.org/doi/pdf/10.1145/3629104.3666030",website:"https://aqua-language.github.io/"},{title:"CheckMate: Evaluating Checkpointing Protocols for Streaming Dataflows",authors:"G. Siachamis, K. Psarakis, M. Fragkoulis, A. van Deursen, P. C
226arbone, A. Katsifodimos",venue:"ICDE",year:"2024",abstract:"The first comprehensive evaluation framework for checkpointing protocols in distributed stream processing, comparing consistency, performance, and fault tolerance trade-offs.",doi:"10.1109/ICDE60146.2024.00183",link:"https://arxiv.org/pdf/2403.13629",category:"foundations"},{title:"Crayfish: Navigating the Labyrinth of Machine Learning Inference in Stream Processing Systems",authors:"S. Horchidan, P. H. Chen, E. Kritharakis, P. Carbone, V. Kalavri",venue:"EDBT",year:"2024",abstract:"The first benchmark for ML inference in streaming environments, allowing adaptive model deployment and resource management for real-time machine learning pipelines.",doi:"10.48786/edbt.2024.29",link:"https://par.nsf.gov/servlets/purl/10522848",category:"ai"},{title:"A Survey on the Evolution of Stream Processing Systems",authors:"M. Fragkoulis, P. Carbone, V. Kalavri, A. Katsifodimos",venue:"VLDB Journal",year:"2024",abstract:"A comprehensive survey covering over 20 years of stream processing research, analyzing the evolution of key concepts like out-of-order processing, state management, and fault tolerance.",doi:"10.1007/s00778-023-00819-8",link:"https://link.springer.com/article/10.1007/s00778-023-00819-8",category:"dataflow"},{title:"Cliffhanger: An Experimental Evaluation of Stateful Serverless at the Edge",authors:"A. Hasselberg, T. O. Timoudas, P. Carbone, G. Dán",venue:"WONS",year:"2024",abstract:"An experimental study of stateful serverless computing at network edges, evaluating performance, consistency, and scalability challenges in edge computing environments.",doi:"10.23919/WONS60642.2024.10449789",link:"https://opendl.ifip-tc6.org/db/conf/wons/wons2024/1570970020.pdf",category:"cloud"},{title:"Autonomous Realization of Safety- and Time-Critical Embedded Artificial Intelligence",authors:"J. Lindén, A. Ermedahl, H. Salomonson, M. Daneshtalab, B. Forsberg, P. Carbone",venue:"DATE",year:"2024",abstract:"An effort to provide AI model-serving capabilities on existing critical hardware infratructure by SAAB and Ericsson using model quantization and multi-level compiler infrastructure.",link:"https://past.date-conference.com/proceedings-archive/2024/DATA/3001_pdf_upload.pdf",category:"ai"},{title:"A Survey of Actor-Like Programming Models for Serverless Computing",authors:"J. Spenger, P. Carbone, P. Haller",venue:"LNCS",year:"2024",abstract:"An extensive survey covering actors and serverless history and influences.",link:"https://people.kth.se/~jspenger/pdfs/spenger23aol.pdf",category:"foundations"},{title:"Failure Transparency in Stateful Dataflow Systems",authors:"A. Veresov, J. Spenger, P. Carbone, P. Haller",venue:"ECOOP",year:"2024",abstract:"The first formal take on failure transparency and its proof on recovery-based checkpointing approaches.",link:"https://www.diva-portal.org/smash
226/get/diva2:1913072/FULLTEXT01.pdf",category:"foundations"},{title:"Omni-Paxos: Breaking the Barriers of Partial Connectivity",authors:"H. Ng, S. Haridi, P. Carbone",venue:"EuroSys",year:"2023",abstract:"A framework and consensus protocol that enables distributed agreement in partially connected networks, improving fault tolerance and availability under extreme network conditions.",doi:"10.1145/3552326.3587448",link:"https://dl.acm.org/doi/pdf/10.1145/3552326.3587441",website:"https://omnipaxos.com/",category:"cloud"},{title:"Portals: A Showcase of Multi-Dataflow Stateful Serverless",authors:"J. Spenger, C. Huang, P. Haller, P. Carbone",venue:"VLDB",year:"2023",abstract:"Serverless computing that bridges multiple stateful dataflows with unified state management.",doi:"10.14778/3611540.3611625",link:"https://dl.acm.org/doi/pdf/10.14778/3611540.3611619",website:"https://www.portals-project.org/",category:"cloud"},{title:"ORB: Empowering Graph Queries through Inference",authors:"S. Horchidan, P. Carbone",venue:"DMKG",year:"2023",abstract:"A teaser of our visionary predictive DB architecture",link:"https://ceur-ws.org/Vol-3443/ESWC_2023_DMKG_paper_6223.pdf",website:"https://orbdb.io/",category:"ai"},{title:"Query Optimization for Inference-Based Graph Databases",authors:"S. Horchidan, supervised by P. Carbone",venue:"VLDB",year:"2023",abstract:"Novel query optimization techniques for graph databases that incorporate machine learning inference, enabling efficient querying over predicted graph structures.",doi:"10.14778/3611540.3611626",award:"Best Paper Award",link:"https://ceur-ws.org/Vol-3452/paper9.pdf",category:"ai"},{title:"UniCache: Efficient Log Replication through Learning Workload Patterns",authors:"H. Ng, K. Wu, P. Carbone",venue:"EDBT",year:"2023",abstract:"A machine learning-based approach to log replication that adapts to workload patterns, improving performance and reducing network overhead in distributed systems.",doi:"10.48786/edbt.2023.32",link:"https://openproceedings.org/2023/conf/edbt/3-paper-117.pdf",category:"ai"},{title:"Portals: An Extension of Dataflow Streaming for Stateful Serverless",authors:"J. Spenger, P. Carbone, P. Haller",venue:"SIGPLAN PPOPP",year:"2022",abstract:"A programming model that extends dataflow streaming to support decentralized stateful serverless computing, enabling scalable and fault-tolerant edge applications.",doi:"10.1145/3528416.3530238",link:"https://dl.acm.org/doi/pdf/10.1145/3563835.3567664",website:"https://www.portals-project.org/",category:"cloud"},{title:"NeuroRAN: Rethinking Virtualization for AI-native Radio Access Networks in 6G",authors:"P. Carbone, G. Dán, J. Gross, B. Göransson, M. Petrova",venue:"INSIGHT",year:"2022",abstract:"A proposition with telecom folks on AI-native radio access networks in 6G, using serverlss agents for model-serving capabilities",link:"https://incose.onlinelibrary.wiley.com/doi/pdfdirect/10.1002/inst.12416",category:"ai"},{title:"Learning on Streaming Graphs with Experience Replay",authors:"M. Perini, G. Ramponi, P. Carbone, V. Kalavri",venue:"ACM SAC",year:"2022",abstract:"We investigate experience replay for continuous graph representation learning in streaming settings, proposing new online training methods",link:"https://dl.acm.org/doi/pdf/10.1145/3477314.3507113",category:"ai"},{title:"Evaluating Model Serving Strategies over Streaming Data",authors:"S. Horchidan, E. Kritharakis, V. Kalavri, P. Carbone",venue:"DEEM@SIGMOD",year:"2022",award:"Best Paper Award",abstract:"An awarded new benchmark framework tailored to AI workloads on streaming platforms",link:"https://dl.acm.org/doi/pdf/10.1145/3533028.3533308",category:"ai"},{title:"GCNSplit: Bounding the State of Streaming Graph Partitioning",authors:"M. Zwolak, Z. Abbas, S. Horchidan, P. Carbone, V. Kalavri",venue:"aiDM@SIGMOD",year:"2022",abstract:"The first non-algorithmic based scalable streaming graph partitioning method using graph convolutional networks to bound state while maintaining balanced partitions and low cut ratios.",link:"https://dl.acm.org/doi/pdf/10.1145/3533702.3534920",category:"ai"},{title:"Beyond Analytics: The Evolution of Stream Processing Systems",authors:"P. Carbone, M. Fragkoulis, V. Kalavri, A. Katsifodimos",venue:"SIGMOD",year:"2020",abstract:"A tutorial on the evolution of stream processing systems, moving from pure analytics to general-purpose dataflow engines and future directions.",doi:"10.1145/3318464.3383131",link:"https://dl.acm.org/doi/pdf/10.1145/3318464.3383131",website:"https://streaming-research.github.io/Tutorial-SIGMOD-2020/",category:"dataflow"},{title:"Streaming Graph Partitioning: An Experimental Study",authors:"Z. Abbas, V. Kalavri, P. C
226arbone, V. Vlassov",venue:"VLDB",year:"2018",abstract:"An experimental survey where we define and categorize online graph partitioning techniques based on their assumptions, objectives and costs.",doi:"10.14778/3236187.3236195",link:"https://dl.acm.org/doi/pdf/10.14778/3236187.3236208",category:"dataflow"},{title:"State Management in Apache Flink: Consistent Stateful Distributed Stream Processing",authors:"P. Carbone, S. Ewen, G. Fóra, S. Haridi, S. Richter, K. Tzoumas",venue:"VLDB",year:"2017",abstract:"The design and implementation of state management in Apache Flink, providing for the first time consistent stateful stream processing with exactly-once guarantees.",doi:"10.14778/3137765.3137777",link:"https://dl.acm.org/doi/pdf/10.14778/3137765.3137777",website:"https://flink.apache.org/",category:"foundations"},{title:"Cutty: Aggregate Sharing for User-Defined Windows",authors:"P. Carbone, J. Traub, A. Katsifodimos, S. Haridi, V. Markl",venue:"CIKM",year:"2016",abstract:"Cutty introduces aggregate sharing for user-defined windows in stream processing, enabling efficient reuse of computations across overlapping queries and improving system throughput.",doi:"10.1145/2983323.2983849",link:"https://dl.acm.org/doi/pdf/10.1145/2983323.2983807",category:"dataflow"},{title:"Apache Flink: Stream and Batch Processing in a Single Engine",authors:"P. Carbone, A. Katsifodimos, S. Ewen, V. Markl, S. Haridi, K. Tzoumas",venue:"IEEE TKDE",year:"2015",abstract:"An overview of Apache Flink's unified approach to stream and batch processing, highlighting key architectural decisions and performance characteristics.",doi:"10.1109/TMSCS.2017.2711612",link:"https://www.diva-portal.org/smash
226/get/diva2:1059537/FULLTEXT01.pdf",website:"https://flink.apache.org/",category:"dataflow"}];return p.jsx("section",{id:"publications",className:"py-6 bg-gradient-card border-t border-border/50",children:p.jsxs("div",{className:"container mx-auto px-6",children:[p.jsxs("div",{className:"text-center mb-16",children:[p.jsx("h2",{className:"text-4xl md:text-5xl font-bold mb-6 text-academic-blue",children:"Selected Publications"}),p.jsx("p",{className:"text-xl text-academic-gray-light max-w-3xl mx-auto",children:"Our latest research contributions to top-tier conferences and journals in data systems and distributed computing."})]}),p.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:(t?r:r.slice(0,10)).map((s,o)=>p.jsx(We,{className:"group bg-card border border-transparent shadow-card hover:glow-shift hover:border-gray-300/20 dark:hover:border-gray-700/20 transition-all duration-100",children:p.jsxs("div",{className:"p-6",children:[p.jsxs("div",{className:"flex items-start justify-between mb-4",children:[p.jsxs("div",{className:"flex-1",children:[p.jsx("div",{className:"flex items-start gap-2 mb-2",children:p.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[(()=>{const l=n[s.category],u=l.icon;return p.jsxs("div",{className:"flex items-center gap-1 px-2 py-1 bg-academic-accent rounded-full",children:[p.jsx(u,{size:12,className:l.color}),p.jsx("span",{className:"text-xs font-medium text-academic-blue",children:l.label})]})})(),s.isPreview&&p.jsx("span",{className:"inline-flex items-center gap-1 px-2 py-1 bg-gradient-to-r from-purple-100 to-violet-100 dark:from-purple-900/40 dark:to-violet-900/40 rounded-full text-xs font-medium text-purple-700 dark:text-purple-300 ring-1 ring-purple-300/50 dark:ring-purple-500/30",children:"✨ Research Preview"}),s.award&&p.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 bg-academic-accent rounded-full text-xs font-medium text-academic-blue",children:[p.jsx("span",{className:"text-sm",children:"🏆"})," Best Paper"]})]})}),p.jsx("h3",{className:"text-base sm:text-lg font-semibold mb-2 text-academic-blue group-hover:text-academic-blue-light transition-colors leading-tight",children:s.title}),p.jsx("div",{className:"flex items-start text-sm text-academic-gray-light mb-3",children:p.jsxs("div",{className:"flex items-start",children:[p.jsx(Cw,{size:14,className:"mr-1 mt-0.5 flex-shrink-0"}),p.jsx("span",{className:"break-words",children:s.authors})]})})]}),p.jsx("span",{className:"px-3 py-1 bg-gradient-accent text-academic-blue text-sm font-medium rounded-full whitespace-nowrap ml-4",children:s.venue})]}),p.jsx("p",{className:"text-academic-gray-light text-sm mb-6 leading-relaxed",children:s.abstract}),p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsxs("div",{className:"flex items-center text-sm text-academic-gray-light",children:[p.jsx(ZP,{size:14,className:"mr-1"}),s.year]}),p.jsxs("div",{className:"flex items-center gap-2",children:[s.website&&p.jsxs(Pt,{variant:"outline",size:"sm",className:"border-purple-500 text-purple-600 hover:bg-purple-500 hover:text-white dark:border-purple-400 dark:text-purple-400",onClick:l=>{l.preventDefault();const u=document.createElement("a");u.href=s.website,u.target="_blank",u.rel="noopener noreferrer",document.body.appendChild(u),u.click(),document.body.removeChild(u)},children:[p.jsx(vr,{size:14,className:"mr-2"}),"Website"]}),p.jsxs(Pt,{variant:"outline",size:"sm",className:s.link?"border-academic-blue text-academic-blue hover:bg-academic-blue hover:text-primary-foreground":"border-academic-gray-light text-academic-gray-light cursor-not-allowed opacity-60",disabled:!s.link,onClick:l=>{if(l.preventDefault(),s.link){console.log("Opening URL:",s.link);const u=document.createElement("a");u.href=s.link,u.target="_blank",u.rel="noopener noreferrer",document.body.appendChild(u),u.click(),document.body.removeChild(u)}},children:[p.jsx(vr,{size:14,className:"mr-2"}),s.link?"View Paper":"Coming Soon"]})]})]})]})},o))}),p.jsx("div",{className:"text-center mt-12",children:p.jsx(Pt,{variant:"outline",size:"lg",className:"border-academic-blue text-academic-blue hover:bg-academic-blue hover:text-primary-foreground",onClick:()=>e(!t),children:t?"Show Less":`View All Publications (${r.length})`})})]})})};var lf={exports:{}};/* @preserve
227 * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
228 * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
229 */(function(t,e){(function(n,r){r(e)})(gS,function(n){var r="1.9.4";function s(i){var a,c,f,v;for(c=1,f=arguments.length;c<f;c++){v=arguments[c];for(a in v)i[a]=v[a]}return i}var o=Object.create||function(){function i(){}return function(a){return i.prototype=a,new i}}();function l(i,a){var c=Array.prototype.slice;
229if(i.bind)return i.bind.apply(i,c.call(arguments,1));var f=c.call(arguments,2);return function(){return i.apply(a,f.length?f.concat(c.call(arguments)):arguments)}}var u=0;function d(i){return"_leaflet_id"in i||(i._leaflet_id=++u),i._leaflet_id}function h(i,a,c){var f,v,k,j;return j=function(){f=!1,v&&(k.apply(c,v),v=!1)},k=function(){f?v=arguments:(i.apply(c,arguments),setTimeout(j,a),f=!0)},k}function m(i,a,c){var f=a[1],v=a[0],k=f-v;return i===f&&c?i:((i-v)%k+k)%k+v}function g(){return!1}function _(i,a){if(a===!1)return i;var c=Math.pow(10,a===void 0?6:a);return Math.round(i*c)/c}function y(i){return i.trim?i.trim():i.replace(/^\s+|\s+$/g,"")}function P(i){return y(i).split(/\s+/)}function x(i,a){Object.prototype.hasOwnProperty.call(i,"options")||(i.options=i.options?o(i.options):{});for(var c in a)i.options[c]=a[c];return i.options}function E(i,a,c){var f=[];for(var v in i)f.push(encodeURIComponent(c?v.toUpperCase():v)+"="+encodeURIComponent(i[v]));return(!a||a.indexOf("?")===-1?"?":"&")+f.join("&")}var S=/\{ *([\w_ -]+) *\}/g;function w(i,a){return i.replace(S,function(c,f){var v=a[f];if(v===void 0)throw new Error("No value provided for variable "+c);return typeof v=="function"&&(v=v(a)),v})}var b=Array.isArray||function(i){return Object.prototype.toString.call(i)==="[object Array]"};function T(i,a){for(var c=0;c<i.length;c++)if(i[c]===a)return c;return-1}var O="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function N(i){return window["webkit"+i]||window["moz"+i]||window["ms"+i]}var I=0;function B(i){var a=+new Date,c=Math.max(0,16-(a-I));return I=a+c,window.setTimeout(i,c)}var H=window.requestAnimationFrame||N("RequestAnimationFrame")||B,W=window.cancelAnimationFrame||N("CancelAnimationFrame")||N("CancelRequestAnimationFrame")||function(i){window.clearTimeout(i)};function Y(i,a,c){if(c&&H===B)i.call(a);else return H.call(window,l(i,a))}function V(i){i&&W.call(window,i)}var ce={__proto__:null,extend:s,create:o,bind:l,get lastId(){return u},stamp:d,throttle:h,wrapNum:m,falseFn:g,formatNum:_,trim:y,splitWords:P,setOptions:x,getParamString:E,template:w,isArray:b,indexOf:T,emptyImageUrl:O,requestFn:H,cancelFn:W,requestAnimFrame:Y,cancelAnimFrame:V};function q(){}q.extend=function(i){var a=function(){x(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},c=a.__super__=this.prototype,f=o(c);f.constructor=a,a.prototype=f;for(var v in this)Object.prototype.hasOwnProperty.call(this,v)&&v!=="prototype"&&v!=="__super__"&&(a[v]=this[v]);return i.statics&&s(a,i.statics),i.includes&&(ve(i.includes),s.apply(null,[f].concat(i.includes))),s(f,i),delete f.statics,delete f.includes,f.options&&(f.options=c.options?o(c.options):{},s(f.options,i.options)),f._initHooks=[],f.callInitHooks=function(){if(!this._initHooksCalled){c.callInitHooks&&c.callInitHooks.call(this),this._initHooksCalled=!0;for(var k=0,j=f._initHooks.length;k<j;k++)f._initHooks[k].call(this)}},a},q.include=function(i){var a=this.prototype.options;return s(this.prototype,i),i.options&&(this.prototype.options=a,this.mergeOptions(i.options)),this},q.mergeOptions=function(i){return s(this.prototype.options,i),this},q.addInitHook=function(i){var a=Array.prototype.slice.call(arguments,1),c=typeof i=="function"?i:function(){this[i].apply(this,a)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(c),this};function ve(i){if(!(typeof L>"u"||!L||!L.Mixin)){i=b(i)?i:[i];for(var a=0;a<i.length;
229a++)i[a]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var ee={on:function(i,a,c){if(typeof i=="object")for(var f in i)this._on(f,i[f],a);else{i=P(i);for(var v=0,k=i.length;v<k;v++)this._on(i[v],a,c)}return this},off:function(i,a,c){if(!arguments.length)delete this._events;else if(typeof i=="object")for(var f in i)this._off(f,i[f],a);else{i=P(i);for(var v=arguments.length===1,k=0,j=i.length;k<j;k++)v?this._off(i[k]):this._off(i[k],a,c)}return this},_on:function(i,a,c,f){if(typeof a!="function"){console.warn("wrong listener type: "+typeof a);return}if(this._listens(i,a,c)===!1){c===this&&(c=void 0);var v={fn:a,ctx:c};f&&(v.once=!0),this._events=this._events||{},this._events[i]=this._events[i]||[],this._events[i].push(v)}},_off:function(i,a,c){var f,v,k;if(this._events&&(f=this._events[i],!!f)){if(arguments.length===1){if(this._firingCount)for(v=0,k=f.length;v<k;v++)f[v].fn=g;delete this._events[i];return}if(typeof a!="function"){console.warn("wrong listener type: "+typeof a);return}var j=this._listens(i,a,c);if(j!==!1){var A=f[j];this._firingCount&&(A.fn=g,this._events[i]=f=f.slice()),f.splice(j,1)}}},fire:function(i,a,c){if(!this.listens(i,c))return this;var f=s({},a,{type:i,target:this,sourceTarget:a&&a.sourceTarget||this});if(this._events){var v=this._events[i];if(v){this._firingCount=this._firingCount+1||1;for(var k=0,j=v.length;k<j;k++){var A=v[k],M=A.fn;A.once&&this.off(i,M,A.ctx),M.call(A.ctx||this,f)}this._firingCount--}}return c&&this._propagateEvent(f),this},listens:function(i,a,c,f){typeof i!="string"&&console.warn('"string" type argument expected');var v=a;typeof a!="function"&&(f=!!a,v=void 0,c=void 0);var k=this._events&&this._events[i];if(k&&k.length&&this._listens(i,v,c)!==!1)return!0;if(f){for(var j in this._eventParents)if(this._eventParents[j].listens(i,a,c,f))return!0}return!1},_listens:function(i,a,c){if(!this._events)return!1;var f=this._events[i]||[];if(!a)return!!f.length;c===this&&(c=void 0);for(var v=0,k=f.length;v<k;v++)if(f[v].fn===a&&f[v].ctx===c)return v;return!1},once:function(i,a,c){if(typeof i=="object")for(var f in i)this._on(f,i[f],a,!0);else{i=P(i);for(var v=0,k=i.length;v<k;v++)this._on(i[v],a,c,!0)}return this},addEventParent:function(i){return this._eventParents=this._eventParents||{},this._eventParents[d(i)]=i,this},removeEventParent:function(i){return this._eventParents&&delete this._eventParents[d(i)],this},_propagateEvent:function(i){for(var a in this._eventParents)this._eventParents[a].fire(i.type,s({layer:i.target,propagatedFrom:i.target},i),!0)}};ee.addEventListener=ee.on,ee.removeEventListener=ee.clearAllEventListeners=ee.off,ee.addOneTimeEventListener=ee.once,ee.fireEvent=ee.fire,ee.hasEventListeners=ee.listens;var le=q.extend(ee);function R(i,a,c){this.x=c?Math.round(i):i,this.y=c?Math.round(a):a}var $=Math.trunc||function(i){return i>0?Math.floor(i):Math.ceil(i)};R.prototype={clone:function(){return new R(this.x,this.y)},add:function(i){return this.clone()._add(z(i))},_add:function(i){return this.x+=i.x,this.y+=i.y,this},subtract:function(i){return this.clone()._subtract(z(i))},_subtract:function(i){return this.x-=i.x,this.y-=i.y,this},divideBy:function(i){return this.clone()._divideBy(i)},_divideBy:function(i){return this.x/=i,this.y/=i,this},multiplyBy:function(i){return this.clone()._multiplyBy(i)},_multiplyBy:function(i){return this.x*=i,this.y*=i,this},scaleBy:function(i){return new R(this.x*i.x,this.y*i.y)},unscaleBy:function(i){return new R(this.x/i.x,this.y/i.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=$(this.x),this.y=$(this.y),this},distanceTo:function(i){i=z(i);var a=i.x-this.x,c=i.y-this.y;return Math.sqrt(a*a+c*c)},equals:function(i){return i=z(i),i.x===this.x&&i.y===this.y},contains:function(i){return i=z(i),Math.abs(i.x)<=Math.abs(this.x)&&Math.abs(i.y)<=Math.abs(this.y)},toString:function(){return"Point("+_(this.x)+", "+_(this.y)+")"}};function z(i,a,c){return i instanceof R?i:b(i)?new R(i[0],i[1]):i==null?i:typeof i=="object"&&"x"in i&&"y"in i?new R(i.x,i.y):new R(i,a,c)}function J(i,a){if(i)for(var c=a?[i,a]:i,f=0,v=c.length;f<v;f++)this.extend(c[f])}J.prototype={extend:function(i){var a,c;if(!i)return this;if(i instanceof R||typeof i[0]=="number"||"x"in i)a=c=z(i);
229else if(i=G(i),a=i.min,c=i.max,!a||!c)return this;return!this.min&&!this.max?(this.min=a.clone(),this.max=c.clone()):(this.min.x=Math.min(a.x,this.min.x),this.max.x=Math.max(c.x,this.max.x),this.min.y=Math.min(a.y,this.min.y),this.max.y=Math.max(c.y,this.max.y)),this},getCenter:function(i){return z((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,i)},getBottomLeft:function(){return z(this.min.x,this.max.y)},getTopRight:function(){return z(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(i){var a,c;return typeof i[0]=="number"||i instanceof R?i=z(i):i=G(i),i instanceof J?(a=i.min,c=i.max):a=c=i,a.x>=this.min.x&&c.x<=this.max.x&&a.y>=this.min.y&&c.y<=this.max.y},intersects:function(i){i=G(i);var a=this.min,c=this.max,f=i.min,v=i.max,k=v.x>=a.x&&f.x<=c.x,j=v.y>=a.y&&f.y<=c.y;return k&&j},overlaps:function(i){i=G(i);var a=this.min,c=this.max,f=i.min,v=i.max,k=v.x>a.x&&f.x<c.x,j=v.y>a.y&&f.y<c.y;return k&&j},isValid:function(){return!!(this.min&&this.max)},pad:function(i){var a=this.min,c=this.max,f=Math.abs(a.x-c.x)*i,v=Math.abs(a.y-c.y)*i;return G(z(a.x-f,a.y-v),z(c.x+f,c.y+v))},equals:function(i){return i?(i=G(i),this.min.equals(i.getTopLeft())&&this.max.equals(i.getBottomRight())):!1}};function G(i,a){return!i||i instanceof J?i:new J(i,a)}function ie(i,a){if(i)for(var c=a?[i,a]:i,f=0,v=c.length;f<v;f++)this.extend(c[f])}ie.prototype={extend:function(i){var a=this._southWest,c=this._northEast,f,v;if(i instanceof oe)f=i,v=i;else if(i instanceof ie){if(f=i._southWest,v=i._northEast,!f||!v)return this}else return i?this.extend(se(i)||te(i)):this;return!a&&!c?(this._southWest=new oe(f.lat,f.lng),this._northEast=new oe(v.lat,v.lng)):(a.lat=Math.min(f.lat,a.lat),a.lng=Math.min(f.lng,a.lng),c.lat=Math.max(v.lat,c.lat),c.lng=Math.max(v.lng,c.lng)),this},pad:function(i){var a=this._southWest,c=this._northEast,f=Math.abs(a.lat-c.lat)*i,v=Math.abs(a.lng-c.lng)*i;return new ie(new oe(a.lat-f,a.lng-v),new oe(c.lat+f,c.lng+v))},getCenter:function(){return new oe((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new oe(this.getNorth(),this.getWest())},getSouthEast:function(){return new oe(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(i){typeof i[0]=="number"||i instanceof oe||"lat"in i?i=se(i):i=te(i);var a=this._southWest,c=this._northEast,f,v;
229return i instanceof ie?(f=i.getSouthWest(),v=i.getNorthEast()):f=v=i,f.lat>=a.lat&&v.lat<=c.lat&&f.lng>=a.lng&&v.lng<=c.lng},intersects:function(i){i=te(i);var a=this._southWest,c=this._northEast,f=i.getSouthWest(),v=i.getNorthEast(),k=v.lat>=a.lat&&f.lat<=c.lat,j=v.lng>=a.lng&&f.lng<=c.lng;return k&&j},overlaps:function(i){i=te(i);var a=this._southWest,c=this._northEast,f=i.getSouthWest(),v=i.getNorthEast(),k=v.lat>a.lat&&f.lat<c.lat,j=v.lng>a.lng&&f.lng<c.lng;return k&&j},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(i,a){return i?(i=te(i),this._southWest.equals(i.getSouthWest(),a)&&this._northEast.equals(i.getNorthEast(),a)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function te(i,a){return i instanceof ie?i:new ie(i,a)}function oe(i,a,c){if(isNaN(i)||isNaN(a))throw new Error("Invalid LatLng object: ("+i+", "+a+")");this.lat=+i,this.lng=+a,c!==void 0&&(this.alt=+c)}oe.prototype={equals:function(i,a){if(!i)return!1;i=se(i);var c=Math.max(Math.abs(this.lat-i.lat),Math.abs(this.lng-i.lng));return c<=(a===void 0?1e-9:a)},toString:function(i){return"LatLng("+_(this.lat,i)+", "+_(this.lng,i)+")"},distanceTo:function(i){return gt.distance(this,se(i))},wrap:function(){return gt.wrapLatLng(this)},toBounds:function(i){var a=180*i/40075017,c=a/Math.cos(Math.PI/180*this.lat);return te([this.lat-a,this.lng-c],[this.lat+a,this.lng+c])},clone:function(){return new oe(this.lat,this.lng,this.alt)}};function se(i,a,c){return i instanceof oe?i:b(i)&&typeof i[0]!="object"?i.length===3?new oe(i[0],i[1],i[2]):i.length===2?new oe(i[0],i[1]):null:i==null?i:typeof i=="object"&&"lat"in i?new oe(i.lat,"lng"in i?i.lng:i.lon,i.alt):a===void 0?null:new oe(i,a,c)}var me={latLngToPoint:function(i,a){var c=this.projection.project(i),f=this.scale(a);return this.transformation._transform(c,f)},pointToLatLng:function(i,a){var c=this.scale(a),f=this.transformation.untransform(i,c);return this.projection.unproject(f)},project:function(i){return this.projection.project(i)},unproject:function(i){return this.projection.unproject(i)},scale:function(i){return 256*Math.pow(2,i)},zoom:function(i){return Math.log(i/256)/Math.LN2},getProjectedBounds:function(i){if(this.infinite)return null;var a=this.projection.bounds,c=this.scale(i),f=this.transformation.transform(a.min,c),v=this.transformation.transform(a.max,c);return new J(f,v)},infinite:!1,wrapLatLng:function(i){var a=this.wrapLng?m(i.lng,this.wrapLng,!0):i.lng,c=this.wrapLat?m(i.lat,this.wrapLat,!0):i.lat,f=i.alt;return new oe(c,a,f)},wrapLatLngBounds:function(i){var a=i.getCenter(),c=this.wrapLatLng(a),f=a.lat-c.lat,v=a.lng-c.lng;if(f===0&&v===0)return i;
229var k=i.getSouthWest(),j=i.getNorthEast(),A=new oe(k.lat-f,k.lng-v),M=new oe(j.lat-f,j.lng-v);return new ie(A,M)}},gt=s({},me,{wrapLng:[-180,180],R:6371e3,distance:function(i,a){var c=Math.PI/180,f=i.lat*c,v=a.lat*c,k=Math.sin((a.lat-i.lat)*c/2),j=Math.sin((a.lng-i.lng)*c/2),A=k*k+Math.cos(f)*Math.cos(v)*j*j,M=2*Math.atan2(Math.sqrt(A),Math.sqrt(1-A));return this.R*M}}),cn=6378137,dn={R:cn,MAX_LATITUDE:85.0511287798,project:function(i){var a=Math.PI/180,c=this.MAX_LATITUDE,f=Math.max(Math.min(c,i.lat),-c),v=Math.sin(f*a);return new R(this.R*i.lng*a,this.R*Math.log((1+v)/(1-v))/2)},unproject:function(i){var a=180/Math.PI;return new oe((2*Math.atan(Math.exp(i.y/this.R))-Math.PI/2)*a,i.x*a/this.R)},bounds:function(){var i=cn*Math.PI;return new J([-i,-i],[i,i])}()};function Gt(i,a,c,f){if(b(i)){this._a=i[0],this._b=i[1],this._c=i[2],this._d=i[3];return}this._a=i,this._b=a,this._c=c,this._d=f}Gt.prototype={transform:function(i,a){return this._transform(i.clone(),a)},_transform:function(i,a){return a=a||1,i.x=a*(this._a*i.x+this._b),i.y=a*(this._c*i.y+this._d),i},untransform:function(i,a){return a=a||1,new R((i.x/a-this._b)/this._a,(i.y/a-this._d)/this._c)}};function Jt(i,a,c,f){return new Gt(i,a,c,f)}var Qt=s({},gt,{code:"EPSG:3857",projection:dn,transformation:function(){var i=.5/(Math.PI*dn.R);return Jt(i,.5,-i,.5)}()}),Yi=s({},Qt,{code:"EPSG:900913"});function Xi(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function hi(i,a){var c="",f,v,k,j,A,M;for(f=0,k=i.length;f<k;f++){for(A=i[f],v=0,j=A.length;v<j;v++)M=A[v],c+=(v?"L":"M")+M.x+" "+M.y;c+=a?ne.svg?"z":"x":""}return c||"M0 0"}var fi=document.documentElement.style,An="ActiveXObject"in window,Pr=An&&!document.addEventListener,xo="msLaunchUri"in navigator&&!("documentMode"in document),tr=zn("webkit"),bo=zn("android"),Ln=zn("android 2")||zn("android 3"),Oc=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),Nc=bo&&zn("Google")&&Oc<537&&!("AudioNode"in window),ut=!!window.opera,nr=!xo&&zn("chrome"),Qa=zn("gecko")&&!tr&&!ut&&!An,Ac=!nr&&zn("safari"),pi=zn("phantom"),Ya="OTransition"in fi,Xa=navigator.platform.indexOf("Win")===0,es=An&&"transition"in fi,Rn="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!Ln,So="MozPerspective"in fi,Cr=!window.L_DISABLE_3D&&(es||Rn||So)&&!Ya&&!pi,mi=typeof orientation<"u"||zn("mobile"),Lc=mi&&tr,el=mi&&Rn,ko=!window.PointerEvent&&window.MSPointerEvent,tl=!!(window.PointerEvent||ko),ts="ontouchstart"in window||!!window.TouchEvent,In=!window.L_NO_TOUCH&&(ts||tl),Rc=mi&&ut,de=mi&&Qa,ke=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Ce=function(){var i=!1;try{var a=Object.defineProperty({},"passive",{get:function(){i=!0}});window.addEventListener("testPassiveEventSupport",g,a),window.removeEventListener("testPassiveEventSupport",g,a)}catch{}return i}(),Mt=function(){return!!document.createElement("canvas").getContext}(),vt=!!(document.createElementNS&&Xi("svg").createSVGRect),Mn=!!vt&&function(){var i=document.createElement("div");return i.innerHTML="<svg/>",(i.firstChild&&i.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),rr=!vt&&function(){try{var i=document.createElement("div");i.innerHTML='<v:shape adj="1"/>';var a=i.firstChild;return a.style.behavior="url(#default#VML)",a&&typeof a.adj=="object"}catch{return!1}}(),Dt=navigator.platform.indexOf("Mac")===0,Dn=navigator.platform.indexOf("Linux")===0;function zn(i){return navigator.userAgent.toLowerCase().indexOf(i)>=0}var ne={ie:An,ielt9:Pr,edge:xo,webkit:tr,android:bo,android23:Ln,androidStock:Nc,opera:ut,chrome:nr,gecko:Qa,safari:Ac,phantom:pi,opera12:Ya,win:Xa,ie3d:es,webkit3d:Rn,gecko3d:So,any3d:Cr,mobile:mi,mobileWebkit:Lc,mobileWebkit3d:el,msPointer:ko,pointer:tl,touch:In,touchNative:ts,mobileOpera:Rc,mobileGecko:de,retina:ke,passiveEvents:Ce,canvas:Mt,svg:vt,vml:rr,inlineSvg:Mn,mac:Dt,linux:Dn},Kp=ne.msPointer?"MSPointerDown":"pointerdown",Gp=ne.msPointer?"MSPointerMove":"pointermove",Jp=ne.msPointer?"MSPointerUp":"pointerup",Qp=ne.msPointer?"MSPointerCancel":"pointercancel",Ic={touchstart:Kp,touchmove:Gp,touchend:Jp,touchcancel:Qp},Yp={touchstart:g1,touchmove:nl,touchend:nl,touchcancel:nl},ns={},Xp=!1;function d1(i,a,c){return a==="touchstart"&&m1(),Yp[a]?(c=Yp[a].bind(this,c),i.addEventListener(Ic[a],c,!1),c):(console.warn("wrong event specified:",a),g)}function h1(i,a,c){if(!Ic[a]){console.warn("wrong event specified:",a);return}i.removeEventListener(Ic[a],c,!1)}function f1(i){ns[i.pointerId]=i}function p1(i){ns[i.pointerId]&&(ns[i.pointerId]=i)}function em(i){delete ns[i.pointerId]}function m1(){Xp||(document.addEventListener(Kp,f1,!0),document.addEventListener(Gp,p1,!0),document.addEventListener(Jp,em,!0),document.addEventListener(Qp,em,!0),Xp=!0)}function nl(i,a){if(a.pointerType!==(a.MSPOINTER_TYPE_MOUSE||"mouse")){a.touches=[];for(var c in ns)a.touches.push(ns[c]);a.changedTouches=[a],i(a)}}function g1(i,a){a.MSPOINTER_TYPE_TOUCH&&a.pointerType===a.MSPOINTER_TYPE_TOUCH&&st(a),nl(i,a)}function v1(i){var a={},c,f;for(f in i)c=i[f],a[f]=c&&c.bind?c.bind(i):c;return i=a,a.type="dblclick",a.detail=2,a.isTrusted=!1,a._simulated=!0,a}var y1=200;function _1(i,a){i.addEventListener("dblclick",a);var c=0,f;function v(k){if(k.detail!==1){f=k.detail;return}if(!(k.pointerType==="mouse"||k.sourceCapabilities&&!k.sourceCapabilities.firesTouchEvents)){var j=sm(k);if(!(j.some(function(M){return M instanceof HTMLLabelElement&&M.attributes.for})&&!j.some(function(M){return M instanceof HTMLInputElement||M instanceof HTMLSelectElement}))){var A=Date.now();A-c<=y1?(f++,f===2&&a(v1(k))):f=1,c=A}}}return i.addEventListener("click",v),{dblclick:a,simDblclick:v}}function w1(i,a){i.removeEventListener("dblclick",a.dblclick),i.removeEventListener("click",a.simDblclick)}var Mc=sl(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Eo=sl(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),tm=Eo==="webkitTransition"||Eo==="OTransition"?Eo+"End":"transitionend";function nm(i){return typeof i=="string"?document.getElementById(i):i}function Po(i,a){var c=i.style[a]||i.currentStyle&&i.currentStyle[a];if((!c||c==="auto")&&document.defaultView){var f=document.defaultView.getComputedStyle(i,null);c=f?f[a]:null}return c==="auto"?null:c}function be(i,a,c){var f=document.createElement(i);return f.className=a||"",c&&c.appendChild(f),f}function Ie(i){var a=i.parentNode;a&&a.removeChild(i)}function rl(i){for(;i.firstChild;)i.removeChild(i.firstChild)}function rs(i){var a=i.parentNode;a&&a.lastChild!==i&&a.appendChild(i)}function is(i){var a=i.parentNode;a&&a.firstChild!==i&&a.insertBefore(i,a.firstChild)}function Dc(i,a){if(i.classList!==void 0)return i.classList.contains(a);var c=il(i);return c.length>0&&new RegExp("(^|\\s)"+a+"(\\s|$)").test(c)}function ge(i,a){if(i.classList!==void 0)for(var c=P(a),f=0,v=c.length;f<v;f++)i.classList.add(c[f]);else if(!Dc(i,a)){var k=il(i);zc(i,(k?k+" ":"")+a)}}function He(i,a){i.classList!==void 0?i.classList.remove(a):zc(i,y((" "+il(i)+" ").replace(" "+a+" "," ")))}function zc(i,a){i.className.baseVal===void 0?i.className=a:i.className.baseVal=a}function il(i){return i.correspondingElement&&(i=i.correspondingElement),i.className.baseVal===void 0?i.className:i.className.baseVal}function Yt(i,a){"opacity"in i.style?i.style.opacity=a:"filter"in i.style&&x1(i,a)}function x1(i,a){var c=!1,f="DXImageTransform.Microsoft.Alpha";try{c=i.filters.item(f)}catch{if(a===1)return}a=Math.round(a*100),c?(c.Enabled=a!==100,c.Opacity=a):i.style.filter+=" progid:"+f+"(opacity="+a+")"}function sl(i){for(var a=document.documentElement.style,c=0;c<i.length;c++)if(i[c]in a)return i[c];return!1}function gi(i,a,c){var f=a||new R(0,0);i.style[Mc]=(ne.ie3d?"translate("+f.x+"px,"+f.y+"px)":"translate3d("+f.x+"px,"+f.y+"px,0)")+(c?" scale("+c+")":"")}function Ke(i,a){i._leaflet_pos=a,ne.any3d?gi(i,a):(i.style.left=a.x+"px",i.style.top=a.y+"px")}function vi(i){return i._leaflet_pos||new R(0,0)}var Co,To,Bc;if("onselectstart"in document)Co=function(){fe(window,"selectstart",st)},To=function(){Te(window,"selectstart",st)};else{var jo=sl(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Co=function(){if(jo){var i=document.documentElement.style;Bc=i[jo],i[jo]="none"}}
229,To=function(){jo&&(document.documentElement.style[jo]=Bc,Bc=void 0)}}function $c(){fe(window,"dragstart",st)}function Fc(){Te(window,"dragstart",st)}var ol,Uc;function Hc(i){for(;i.tabIndex===-1;)i=i.parentNode;i.style&&(al(),ol=i,Uc=i.style.outlineStyle,i.style.outlineStyle="none",fe(window,"keydown",al))}function al(){ol&&(ol.style.outlineStyle=Uc,ol=void 0,Uc=void 0,Te(window,"keydown",al))}function rm(i){do i=i.parentNode;while((!i.offsetWidth||!i.offsetHeight)&&i!==document.body);return i}function Wc(i){var a=i.getBoundingClientRect();return{x:a.width/i.offsetWidth||1,y:a.height/i.offsetHeight||1,boundingClientRect:a}}var b1={__proto__:null,TRANSFORM:Mc,TRANSITION:Eo,TRANSITION_END:tm,get:nm,getStyle:Po,create:be,remove:Ie,empty:rl,toFront:rs,toBack:is,hasClass:Dc,addClass:ge,removeClass:He,setClass:zc,getClass:il,setOpacity:Yt,testProp:sl,setTransform:gi,setPosition:Ke,getPosition:vi,get disableTextSelection(){return Co},get enableTextSelection(){return To},disableImageDrag:$c,enableImageDrag:Fc,preventOutline:Hc,restoreOutline:al,getSizedParentNode:rm,getScale:Wc};function fe(i,a,c,f){if(a&&typeof a=="object")for(var v in a)Zc(i,v,a[v],c);else{a=P(a);for(var k=0,j=a.length;k<j;k++)Zc(i,a[k],c,f)}return this}var Bn="_leaflet_events";function Te(i,a,c,f){if(arguments.length===1)im(i),delete i[Bn];else if(a&&typeof a=="object")for(var v in a)qc(i,v,a[v],c);else if(a=P(a),arguments.length===2)im(i,function(A){return T(a,A)!==-1});else for(var k=0,j=a.length;k<j;k++)qc(i,a[k],c,f);return this}function im(i,a){for(var c in i[Bn]){var f=c.split(/\d/)[0];(!a||a(f))&&qc(i,f,null,null,c)}}
229var Vc={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Zc(i,a,c,f){var v=a+d(c)+(f?"_"+d(f):"");if(i[Bn]&&i[Bn][v])return this;var k=function(A){return c.call(f||i,A||window.event)},j=k;!ne.touchNative&&ne.pointer&&a.indexOf("touch")===0?k=d1(i,a,k):ne.touch&&a==="dblclick"?k=_1(i,k):"addEventListener"in i?a==="touchstart"||a==="touchmove"||a==="wheel"||a==="mousewheel"?i.addEventListener(Vc[a]||a,k,ne.passiveEvents?{passive:!1}:!1):a==="mouseenter"||a==="mouseleave"?(k=function(A){A=A||window.event,Gc(i,A)&&j(A)},i.addEventListener(Vc[a],k,!1)):i.addEventListener(a,j,!1):i.attachEvent("on"+a,k),i[Bn]=i[Bn]||{},i[Bn][v]=k}function qc(i,a,c,f,v){v=v||a+d(c)+(f?"_"+d(f):"");var k=i[Bn]&&i[Bn][v];if(!k)return this;!ne.touchNative&&ne.pointer&&a.indexOf("touch")===0?h1(i,a,k):ne.touch&&a==="dblclick"?w1(i,k):"removeEventListener"in i?i.removeEventListener(Vc[a]||a,k,!1):i.detachEvent("on"+a,k),i[Bn][v]=null}function yi(i){return i.stopPropagation?i.stopPropagation():i.originalEvent?i.originalEvent._stopped=!0:i.cancelBubble=!0,this}function Kc(i){return Zc(i,"wheel",yi),this}function Oo(i){return fe(i,"mousedown touchstart dblclick contextmenu",yi),i._leaflet_disable_click=!0,this}function st(i){return i.preventDefault?i.preventDefault():i.returnValue=!1,this}function _i(i){return st(i),yi(i),this}function sm(i){if(i.composedPath)return i.composedPath();for(var a=[],c=i.target;c;)a.push(c),c=c.parentNode;return a}function om(i,a){if(!a)return new R(i.clientX,i.clientY);var c=Wc(a),f=c.boundingClientRect;return new R((i.clientX-f.left)/c.x-a.clientLeft,(i.clientY-f.top)/c.y-a.clientTop)}var S1=ne.linux&&ne.chrome?window.devicePixelRatio:ne.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function am(i){return ne.edge?i.wheelDeltaY/2:i.deltaY&&i.deltaMode===0?-i.deltaY/S1:i.deltaY&&i.deltaMode===1?-i.deltaY*20:i.deltaY&&i.deltaMode===2?-i.deltaY*60:i.deltaX||i.deltaZ?0:i.wheelDelta?(i.wheelDeltaY||i.wheelDelta)/2:i.detail&&Math.abs(i.detail)<32765?-i.detail*20:i.detail?i.detail/-32765*60:0}function Gc(i,a){var c=a.relatedTarget;if(!c)return!0;try{for(;c&&c!==i;)c=c.parentNode}catch{return!1}return c!==i}var k1={__proto__:null,on:fe,off:Te,stopPropagation:yi,disableScrollPropagation:Kc,disableClickPropagation:Oo,preventDefault:st,stop:_i,getPropagationPath:sm,getMousePosition:om,getWheelDelta:am,isExternalTarget:Gc,addListener:fe,removeListener:Te},lm=le.extend({run:function(i,a,c,f){this.stop(),this._el=i,this._inProgress=!0,this._duration=c||.25,this._easeOutPower=1/Math.max(f||.5,.2),this._startPos=vi(i),this._offset=a.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=Y(this._animate,this),this._step()},_step:function(i){var a=+new Date-this._startTime,c=this._duration*1e3;a<c?this._runFrame(this._easeOut(a/c),i):(this._runFrame(1),this._complete())},_runFrame:function(i,a){var c=this._startPos.add(this._offset.multiplyBy(i));a&&c._round(),Ke(this._el,c),this.fire("step")},_complete:function(){V(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(i){return 1-Math.pow(1-i,this._easeOutPower)}}),we=le.extend({options:{crs:Qt,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(i,a){a=x(this,a),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(i),this._initLayout(),this._onResize=l(this._onResize,this),this._initEvents(),a.maxBounds&&this.setMaxBounds(a.maxBounds),a.zoom!==void 0&&(this._zoom=this._limitZoom(a.zoom)),a.center&&a.zoom!==void 0&&this.setView(se(a.center),a.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=Eo&&ne.any3d&&!ne.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),fe(this._proxy,tm,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)}
vendor: 8,589 bytes, line 229
229,setView:function(i,a,c){if(a=a===void 0?this._zoom:this._limitZoom(a),i=this._limitCenter(se(i),a,this.options.maxBounds),c=c||{},this._stop(),this._loaded&&!c.reset&&c!==!0){c.animate!==void 0&&(c.zoom=s({animate:c.animate},c.zoom),c.pan=s({animate:c.animate,duration:c.duration},c.pan));var f=this._zoom!==a?this._tryAnimatedZoom&&this._tryAnimatedZoom(i,a,c.zoom):this._tryAnimatedPan(i,c.pan);if(f)return clearTimeout(this._sizeTimer),this}return this._resetView(i,a,c.pan&&c.pan.noMoveStart),this},setZoom:function(i,a){return this._loaded?this.setView(this.getCenter(),i,{zoom:a}):(this._zoom=i,this)},zoomIn:function(i,a){return i=i||(ne.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+i,a)},zoomOut:function(i,a){return i=i||(ne.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-i,a)},setZoomAround:function(i,a,c){var f=this.getZoomScale(a),v=this.getSize().divideBy(2),k=i instanceof R?i:this.latLngToContainerPoint(i),j=k.subtract(v).multiplyBy(1-1/f),A=this.containerPointToLatLng(v.add(j));return this.setView(A,a,{zoom:c})},_getBoundsCenterZoom:function(i,a){a=a||{},i=i.getBounds?i.getBounds():te(i);var c=z(a.paddingTopLeft||a.padding||[0,0]),f=z(a.paddingBottomRight||a.padding||[0,0]),v=this.getBoundsZoom(i,!1,c.add(f));if(v=typeof a.maxZoom=="number"?Math.min(a.maxZoom,v):v,v===1/0)return{center:i.getCenter(),zoom:v};var k=f.subtract(c).divideBy(2),j=this.project(i.getSouthWest(),v),A=this.project(i.getNorthEast(),v),M=this.unproject(j.add(A).divideBy(2).add(k),v);return{center:M,zoom:v}},fitBounds:function(i,a){if(i=te(i),!i.isValid())throw new Error("Bounds are not valid.");var c=this._getBoundsCenterZoom(i,a);return this.setView(c.center,c.zoom,a)},fitWorld:function(i){return this.fitBounds([[-90,-180],[90,180]],i)},panTo:function(i,a){return this.setView(i,this._zoom,{pan:a})},panBy:function(i,a){if(i=z(i).round(),a=a||{},!i.x&&!i.y)return this.fire("moveend");if(a.animate!==!0&&!this.getSize().contains(i))return this._resetView(this.unproject(this.project(this.getCenter()).add(i)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new lm,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),a.noMoveStart||this.fire("movestart"),a.animate!==!1){ge(this._mapPane,"leaflet-pan-anim");var c=this._getMapPanePos().subtract(i).round();this._panAnim.run(this._mapPane,c,a.duration||.25,a.easeLinearity)}else this._rawPanBy(i),this.fire("move").fire("moveend");return this},flyTo:function(i,a,c){if(c=c||{},c.animate===!1||!ne.any3d)return this.setView(i,a,c);this._stop();var f=this.project(this.getCenter()),v=this.project(i),k=this.getSize(),j=this._zoom;i=se(i),a=a===void 0?j:a;var A=Math.max(k.x,k.y),M=A*this.getZoomScale(j,a),F=v.distanceTo(f)||1,K=1.42,ae=K*K;function ye(Ge){var _l=Ge?-1:1,hS=Ge?M:A,fS=M*M-A*A+_l*ae*ae*F*F,pS=2*hS*ae*F,od=fS/pS,Um=Math.sqrt(od*od+1)-od,mS=Um<1e-9?-18:Math.log(Um);return mS}function yt(Ge){return(Math.exp(Ge)-Math.exp(-Ge))/2}function nt(Ge){return(Math.exp(Ge)+Math.exp(-Ge))/2}function en(Ge){return yt(Ge)/nt(Ge)}var jt=ye(0);function cs(Ge){return A*(nt(jt)/nt(jt+K*Ge))}function lS(Ge){return A*(nt(jt)*en(jt+K*Ge)-yt(jt))/ae}function uS(Ge){return 1-Math.pow(1-Ge,1.5)}var cS=Date.now(),$m=(ye(1)-jt)/K,dS=c.duration?1e3*c.duration:1e3*$m*.8;function Fm(){var Ge=(Date.now()-cS)/dS,_l=uS(Ge)*$m;Ge<=1?(this._flyToFrame=Y(Fm,this),this._move(this.unproject(f.add(v.subtract(f).multiplyBy(lS(_l)/F)),j),this.getScaleZoom(A/cs(_l),j),{flyTo:!0})):this._move(i,a)._moveEnd(!0)}return this._moveStart(!0,c.noMoveStart),Fm.call(this),this},flyToBounds:function(i,a){var c=this._getBoundsCenterZoom(i,a);return this.flyTo(c.center,c.zoom,a)},setMaxBounds:function(i){return i=te(i),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),i.isValid()?(this.options.maxBounds=i,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(i){var a=this.options.minZoom;return this.options.minZoom=i,this._loaded&&a!==i&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(i):this},setMaxZoom:function(i){var a=this.options.maxZoom;return this.options.maxZoom=i,this._loaded&&a!==i&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(i):this},panInsideBounds:function(i,a){this._enforcingBounds=!0;var c=this.getCenter(),f=this._limitCenter(c,this._zoom,te(i));return c.equals(f)||this.panTo(f,a),this._enforcingBounds=!1,this},panInside:function(i,a){a=a||{};var c=z(a.paddingTopLeft||a.padding||[0,0]),f=z(a.paddingBottomRight||a.padding||[0,0]),v=this.project(this.getCenter()),k=this.project(i),j=this.getPixelBounds(),A=G([j.min.add(c),j.max.subtract(f)]),M=A.getSize();if(!A.contains(k)){this._enforcingBounds=!0;var F=k.subtract(A.getCenter()),K=A.extend(k).getSize().subtract(M);v.x+=F.x<0?-K.x:K.x,v.y+=F.y<0?-K.y:K.y,this.panTo(this.unproject(v),a),this._enforcingBounds=!1}return this},invalidateSize:function(i){if(!this._loaded)return this;i=s({animate:!1,pan:!0},i===!0?{animate:!0}:i);var a=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var c=this.getSize(),f=a.divideBy(2).round(),v=c.divideBy(2).round(),k=f.subtract(v);return!k.x&&!k.y?this:(i.animate&&i.pan?this.panBy(k):(i.pan&&this._rawPanBy(k),this.fire("move"),i.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(l(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:a,newSize:c}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(i){if(i=this._locateOptions=s({timeout:1e4,watch:!1},i),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var a=l(this._handleGeolocationResponse,this),c=l(this._handleGeolocationError,this);return i.watch?this._locationWatchId=navigator.geolocation.watchPosition(a,c,i):navigator.geolocation.getCurrentPosition(a,c,i),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(i){if(this._container._leaflet_id){var a=i.code,c=i.message||(a===1?"permission denied":a===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:a,message:"Geolocation error: "+c+"."})}},_handleGeolocationResponse:function(i){if(this._container._leaflet_id){var a=i.coords.latitude,c=i.coords.longitude,f=new oe(a,c),v=f.toBounds(i.coords.accuracy*2),k=this._locateOptions;if(k.setView){var j=this.getBoundsZoom(v);this.setView(f,k.maxZoom?Math.min(j,k.maxZoom):j)}var A={latlng:f,bounds:v,timestamp:i.timestamp};for(var M in i.coords)typeof i.coords[M]=="number"&&(A[M]=i.coords[M]);this.fire("locationfound",A)}},addHandler:function(i,a){if(!a)return this;var c=this[i]=new a(this);return this._handlers.push(c),this.options[i]&&c.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),Ie(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(V(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var i;for(i in this._layers)this._layers[i].remove();for(i in this._panes)Ie(this._panes[i]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(i,a){var c="leaflet-pane"+(i?" leaflet-"+i.replace("Pane","")+"-pane":""),f=be("div",c,a||this._mapPane);return i&&(this._panes[i]=f),f},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var i=this.getPixelBounds(),a=this.unproject(i.getBottomLeft()),c=this.unproject(i.getTopRight());return new ie(a,c)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZo
229om===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(i,a,c){i=te(i),c=z(c||[0,0]);var f=this.getZoom()||0,v=this.getMinZoom(),k=this.getMaxZoom(),j=i.getNorthWest(),A=i.getSouthEast(),M=this.getSize().subtract(c),F=G(this.project(A,f),this.project(j,f)).getSize(),K=ne.any3d?this.options.zoomSnap:1,ae=M.x/F.x,ye=M.y/F.y,yt=a?Math.max(ae,ye):Math.min(ae,ye);return f=this.getScaleZoom(yt,f),K&&(f=Math.round(f/(K/100))*(K/100),f=a?Math.ceil(f/K)*K:Math.floor(f/K)*K),Math.max(v,Math.min(k,f))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new R(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(i,a){var c=this._getTopLeftPoint(i,a);return new J(c,c.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(i){return this.options.crs.getProjectedBounds(i===void 0?this.getZoom():i)},getPane:function(i){return typeof i=="string"?this._panes[i]:i},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(i,a){var c=this.options.crs;return a=a===void 0?this._zoom:a,c.scale(i)/c.scale(a)},getScaleZoom:function(i,a){var c=this.options.crs;a=a===void 0?this._zoom:a;var f=c.zoom(i*c.scale(a));return isNaN(f)?1/0:f},project:function(i,a){return a=a===void 0?this._zoom:a,this.options.crs.latLngToPoint(se(i),a)},unproject:function(i,a){return a=a===void 0?this._zoom:a,this.options.crs.pointToLatLng(z(i),a)},layerPointToLatLng:function(i){var a=z(i).add(this.getPixelOrigin());return this.unproject(a)},latLngToLayerPoint:function(i){var a=this.project(se(i))._round();return a._subtract(this.getPixelOrigin())},wrapLatLng:function(i){return this.options.crs.wrapLatLng(se(i))},wrapLatLngBounds:function(i){return this.options.crs.wrapLatLngBounds(te(i))},distance:function(i,a){return this.options.crs.distance(se(i),se(a))},containerPointToLayerPoint:function(i){return z(i).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(i){return z(i).add(this._getMapPanePos())},containerPointToLatLng:function(i){var a=this.containerPointToLayerPoint(z(i));
229return this.layerPointToLatLng(a)},latLngToContainerPoint:function(i){return this.layerPointToContainerPoint(this.latLngToLayerPoint(se(i)))},mouseEventToContainerPoint:function(i){return om(i,this._container)},mouseEventToLayerPoint:function(i){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(i))},mouseEventToLatLng:function(i){return this.layerPointToLatLng(this.mouseEventToLayerPoint(i))},_initContainer:function(i){var a=this._container=nm(i);if(a){if(a._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");fe(a,"scroll",this._onScroll,this),this._containerId=d(a)},_initLayout:function(){var i=this._container;this._fadeAnimated=this.options.fadeAnimation&&ne.any3d,ge(i,"leaflet-container"+(ne.touch?" leaflet-touch":"")+(ne.retina?" leaflet-retina":"")+(ne.ielt9?" leaflet-oldie":"")+(ne.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var a=Po(i,"position");a!=="absolute"&&a!=="relative"&&a!=="fixed"&&a!=="sticky"&&(i.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var i=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Ke(this._mapPane,new R(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(ge(i.markerPane,"leaflet-zoom-hide"),ge(i.shadowPane,"leaflet-zoom-hide"))},_resetView:function(i,a,c){Ke(this._mapPane,new R(0,0));var f=!this._loaded;this._loaded=!0,a=this._limitZoom(a),this.fire("viewprereset");var v=this._zoom!==a;this._moveStart(v,c)._move(i,a)._moveEnd(v),this.fire("viewreset"),f&&this.fire("load")},_moveStart:function(i,a){return i&&this.fire("zoomstart"),a||this.fire("movestart"),this},_move:function(i,a,c,f){a===void 0&&(a=this._zoom);var v=this._zoom!==a;return this._zoom=a,this._lastCenter=i,this._pixelOrigin=this._getNewPixelOrigin(i),f?c&&c.pinch&&this.fire("zoom",c):((v||c&&c.pinch)&&this.fire("zoom",c),this.fire("move",c)),this},_moveEnd:function(i){return i&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return V(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(i){Ke(this._mapPane,this._getMapPanePos().subtract(i))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(i){this._targets={},this._targets[d(this._container)]=this;var a=i?Te:fe;a(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&a(window,"resize",this._onResize,this),ne.any3d&&this.options.transform3DLimit&&(i?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){V(this._resizeRequest),this._resizeRequest=Y(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var i=this._getMapPanePos();Math.max(Math.abs(i.x),Math.abs(i.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(i,a){for(var c=[],f,v=a==="mouseout"||a==="mouseover",k=i.target||i.srcElement,j=!1;k;){if(f=this._targets[d(k)],f&&(a==="click"||a==="preclick")&&this._draggableMoved(f)){j=!0;break}if(f&&f.listens(a,!0)&&(v&&!Gc(k,i)||(c.push(f),v))||k===this._container)break;k=k.parentNode}return!c.length&&!j&&!v&&this.listens(a,!0)&&(c=[this]),c},_isClickDisabled:function(i){for(;i&&i!==this._container;){if(i._leaflet_disable_click)return!0;i=i.parentNode}},_handleDOMEvent:function(i){var a=i.target||i.srcElement;if(!(!this._loaded||a._leaflet_disable_events||i.type==="click"&&this._isClickDisabled(a))){var c=i.type;c==="mousedown"&&Hc(a),this._fireDOMEvent(i,c)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(i,a,c){if(i.type==="click"){var f=s({},i);f.type="preclick",this._fireDOMEvent(f,f.type,c)}var v=this._findEventTargets(i,a);if(c){for(var k=[],j=0;j<c.length;j++)c[j].listens(a,!0)&&k.push(c[j]);v=k.concat(v)}if(v.length){a==="contextmenu"&&st(i);var A=v[0],M={originalEvent:i};if(i.type!=="keypress"&&i.type!=="keydown"&&i.type!=="keyup"){var F=A.getLatLng&&(!A._radius||A._radius<=10);M.containerPoint=F?this.latLngToContainerPoint(A.getLatLng()):this.mouseEventToContainerPoint(i),M.layerPoint=this.containerPointToLayerPoint(M.containerPoint),M.latlng=F?A.getLatLng():this.layerPointToLatLng(M.layerPoint)}for(j=0;j<v.length;j++)if(v[j].fire(a,M,!0),M.originalEvent._stopped||v[j].options.bubblingMouseEvents===!1&&T(this._mouseEvents,a)!==-1)return}},_draggableMoved:function(i){return i=i.dragging&&i.dragging.enabled()?i:this,i.dragging&&i.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var i=0,a=this._handlers.length;i<a;i++)this._handlers[i].disable()},whenReady:function(i,a){return this._loaded?i.call(a||this,{target:this}):this.on("load",i,a),this},_getMapPanePos:function(){return vi(this._mapPane)||new R(0,0)},_moved:function(){var i=this._getMapPanePos();return i&&!i.equals([0,0])},_getTopLeftPoint:function(i,a){var c=i&&a!==void 0?this._getNewPixelOrigin(i,a):this.getPixelOrigin();return c.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(i,a){var c=this.getSize()._divideBy(2);return this.project(i,a)._subtract(c)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(i,a,c){var f=this._getNewPixelOrigin(c,a);return this.project(i,a)._subtract(f)},_latLngBoundsToNewLayerBounds:function(i,a,c){var f=this._getNewPixelOrigin(c,a);
vendor: 14,313 bytes, line 229
229return G([this.project(i.getSouthWest(),a)._subtract(f),this.project(i.getNorthWest(),a)._subtract(f),this.project(i.getSouthEast(),a)._subtract(f),this.project(i.getNorthEast(),a)._subtract(f)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(i){return this.latLngToLayerPoint(i).subtract(this._getCenterLayerPoint())},_limitCenter:function(i,a,c){if(!c)return i;var f=this.project(i,a),v=this.getSize().divideBy(2),k=new J(f.subtract(v),f.add(v)),j=this._getBoundsOffset(k,c,a);return Math.abs(j.x)<=1&&Math.abs(j.y)<=1?i:this.unproject(f.add(j),a)},_limitOffset:function(i,a){if(!a)return i;var c=this.getPixelBounds(),f=new J(c.min.add(i),c.max.add(i));return i.add(this._getBoundsOffset(f,a))},_getBoundsOffset:function(i,a,c){var f=G(this.project(a.getNorthEast(),c),this.project(a.getSouthWest(),c)),v=f.min.subtract(i.min),k=f.max.subtract(i.max),j=this._rebound(v.x,-k.x),A=this._rebound(v.y,-k.y);return new R(j,A)},_rebound:function(i,a){return i+a>0?Math.round(i-a)/2:Math.max(0,Math.ceil(i))-Math.max(0,Math.floor(a))},_limitZoom:function(i){var a=this.getMinZoom(),c=this.getMaxZoom(),f=ne.any3d?this.options.zoomSnap:1;return f&&(i=Math.round(i/f)*f),Math.max(a,Math.min(c,i))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){He(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(i,a){var c=this._getCenterOffset(i)._trunc();return(a&&a.animate)!==!0&&!this.getSize().contains(c)?!1:(this.panBy(c,a),!0)},_createAnimProxy:function(){var i=this._proxy=be("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(i),this.on("zoomanim",function(a){var c=Mc,f=this._proxy.style[c];gi(this._proxy,this.project(a.center,a.zoom),this.getZoomScale(a.zoom,1)),f===this._proxy.style[c]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Ie(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var i=this.getCenter(),a=this.getZoom();gi(this._proxy,this.project(i,a),this.getZoomScale(a,1))},_catchTransitionEnd:function(i){this._animatingZoom&&i.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(i,a,c){if(this._animatingZoom)return!0;if(c=c||{},!this._zoomAnimated||c.animate===!1||this._nothingToAnimate()||Math.abs(a-this._zoom)>this.options.zoomAnimationThreshold)return!1;var f=this.getZoomScale(a),v=this._getCenterOffset(i)._divideBy(1-1/f);return c.animate!==!0&&!this.getSize().contains(v)?!1:(Y(function(){this._moveStart(!0,c.noMoveStart||!1)._animateZoom(i,a,!0)},this),!0)},_animateZoom:function(i,a,c,f){this._mapPane&&(c&&(this._animatingZoom=!0,this._animateToCenter=i,this._animateToZoom=a,ge(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:i,zoom:a,noUpdate:f}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(l(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&He(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function E1(i,a){return new we(i,a)}var hn=q.extend({options:{position:"topright"},initialize:function(i){x(this,i)},getPosition:function(){return this.options.position},setPosition:function(i){var a=this._map;return a&&a.removeControl(this),this.options.position=i,a&&a.addControl(this),this},getContainer:function(){return this._container},addTo:function(i){this.remove(),this._map=i;var a=this._container=this.onAdd(i),c=this.getPosition(),f=i._controlCorners[c];return ge(a,"leaflet-control"),c.indexOf("bottom")!==-1?f.insertBefore(a,f.firstChild):f.appendChild(a),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Ie(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(i){this._map&&i&&i.screenX>0&&i.screenY>0&&this._map.getContainer().focus()}}),No=function(i){return new hn(i)};we.include({addControl:function(i){return i.addTo(this),this},removeControl:function(i){return i.remove(),this},_initControlPos:function(){var i=this._controlCorners={},a="leaflet-",c=this._controlContainer=be("div",a+"control-container",this._container);function f(v,k){var j=a+v+" "+a+k;i[v+k]=be("div",j,c)}f("top","left"),f("top","right"),f("bottom","left"),f("bottom","right")},_clearControlPos:function(){for(var i in this._controlCorners)Ie(this._controlCorners[i]);Ie(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var um=hn.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(i,a,c,f){return c<f?-1:f<c?1:0}},initialize:function(i,a,c){x(this,c),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var f in i)this._addLayer(i[f],f);for(f in a)this._addLayer(a[f],f,!0)},onAdd:function(i){this._initLayout(),this._update(),this._map=i,i.on("zoomend",this._checkDisabledLayers,this);for(var a=0;a<this._layers.length;a++)this._layers[a].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(i){return hn.prototype.addTo.call(this,i),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var i=0;i<this._layers.length;i++)this._layers[i].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(i,a){return this._addLayer(i,a),this._map?this._update():this},addOverlay:function(i,a){return this._addLayer(i,a,!0),this._map?this._update():this},removeLayer:function(i){i.off("add remove",this._onLayerChange,this);var a=this._getLayer(d(i));return a&&this._layers.splice(this._layers.indexOf(a),1),this._map?this._update():this},expand:function(){ge(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var i=this._map.getSize().y-(this._container.offsetTop+50);return i<this._section.clientHeight?(ge(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=i+"px"):He(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return He(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var i="leaflet-control-layers",a=this._container=be("div",i),c=this.options.collapsed;a.setAttribute("aria-haspopup",!0),Oo(a),Kc(a);var f=this._section=be("section",i+"-list");c&&(this._map.on("click",this.collapse,this),fe(a,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var v=this._layersLink=be("a",i+"-toggle",a);v.href="#",v.title="Layers",v.setAttribute("role","button"),fe(v,{keydown:function(k){k.keyCode===13&&this._expandSafely()},click:function(k){st(k),this._expandSafely()}},this),c||this.expand(),this._baseLayersList=be("div",i+"-base",f),this._separator=be("div",i+"-separator",f),this._overlaysList=be("div",i+"-overlays",f),a.appendChild(f)},_getLayer:function(i){for(var a=0;a<this._layers.length;a++)if(this._layers[a]&&d(this._layers[a].layer)===i)return this._layers[a]},_addLayer:function(i,a,c){this._map&&i.on("add remove",this._onLayerChange,this),this._layers.push({layer:i,name:a,overlay:c}),this.options.sortLayers&&this._layers.sort(l(function(f,v){return this.options.sortFunction(f.layer,v.layer,f.name,v.name)},this)),this.options.autoZIndex&&i.setZIndex&&(this._lastZIndex++,i.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;rl(this._baseLayersList),rl(this._overlaysList),this._layerControlInputs=[];var i,a,c,f,v=0;for(c=0;c<this._layers.length;c++)f=this._layers[c],this._addItem(f),a=a||f.overlay,i=i||!f.overlay,v+=f.overlay?0:1;return this.options.hideSingleBase&&(i=i&&v>1,this._baseLayersList.style.display=i?"":"none"),this._separator.style.display=a&&i?"":"none",this},_onLayerChange:function(i){this._handlingClick||this._update();var a=this._getLayer(d(i.target)),c=a.overlay?i.type==="add"?"overlayadd":"overlayremove":i.type==="add"?"baselayerchange":null;c&&this._map.fire(c,a)},_createRadioElement:function(i,a){var c='<input type="radio" class="leaflet-control-layers-selector" name="'+i+'"'+(a?' checked="checked"':"")+"/>",f=document.createElement("div");return f.innerHTML=c,f.firstChild},_addItem:function(i){var a=document.createElement("label"),c=this._map.hasLayer(i.layer),f;i.overlay?(f=document.createElement("input"),f.type="checkbox",f.className="leaflet-control-layers-selector",f.defaultChecked=c):f=this._createRadioElement("leaflet-base-layers_"+d(this),c),this._layerControlInputs.push(f),f.layerId=d(i.layer),fe(f,"click",this._onInputClick,this);var v=document.createElement("span");v.innerHTML=" "+i.name;var k=document.createElement("span");a.appendChild(k),k.appendChild(f),k.appendChild(v);var j=i.overlay?this._overlaysList:this._baseLayersList;return j.appendChild(a),this._checkDisabledLayers(),a},_onInputClick:function(){if(!this._preventClick){var i=this._layerControlInputs,a,c,f=[],v=[];this._handlingClick=!0;for(var k=i.length-1;k>=0;k--)a=i[k],c=this._getLayer(a.layerId).layer,a.checked?f.push(c):a.checked||v.push(c);for(k=0;k<v.length;k++)this._map.hasLayer(v[k])&&this._map.removeLayer(v[k]);for(k=0;k<f.length;k++)this._map.hasLayer(f[k])||this._map.addLayer(f[k]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var i=this._layerControlInputs,a,c,f=this._map.getZoom(),v=i.length-1;v>=0;v--)a=i[v],c=this._getLayer(a.layerId).layer,a.disabled=c.options.minZoom!==void 0&&f<c.options.minZoom||c.options.maxZoom!==void 0&&f>c.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var i=this._section;this._preventClick=!0,fe(i,"click",st),this.expand();var a=this;setTimeout(function(){Te(i,"click",st),a._preventClick=!1})}}),P1=function(i,a,c){return new um(i,a,c)},Jc=hn.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(i){var a="leaflet-control-zoom",c=be("div",a+" leaflet-bar"),f=this.options;return this._zoomInButton=this._createButton(f.zoomInText,f.zoomInTitle,a+"-in",c,this._zoomIn),this._zoomOutButton=this._createButton(f.zoomOutText,f.zoomOutTitle,a+"-out",c,this._zoomOut),this._updateDisabled(),i.on("zoomend zoomlevelschange",this._updateDisabled,this),c},onRemove:function(i){i.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(i){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(i.shiftKey?3:1))},_zoomOut:function(i){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(i.shiftKey?3:1))},_createButton:function(i,a,c,f,v){var k=be("a",c,f);return k.innerHTML=i,k.href="#",k.title=a,k.setAttribute("role","button"),k.setAttribute("aria-label",a),Oo(k),fe(k,"click",_i),fe(k,"click",v,this),fe(k,"click",this._refocusOnMap,this),k},_updateDisabled:function(){var i=this._map,a="leaflet-disabled";He(this._zoomInButton,a),He(this._zoomOutButton,a),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||i._zoom===i.getMinZoom())&&(ge(this._zoomOutButton,a),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||i._zoom===i.getMaxZoom())&&(ge(this._zoomInButton,a),this._zoomInButton.setAttribute("aria-disabled","true"))}});we.mergeOptions({zoomControl:!0}),we.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Jc,this.addControl(this.zoomControl))});var C1=function(i){return new Jc(i)},cm=hn.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(i){var a="leaflet-control-scale",c=be("div",a),f=this.options;return this._addScales(f,a+"-line",c),i.on(f.updateWhenIdle?"moveend":"move",this._update,this),i.whenReady(this._update,this),c},onRemove:function(i){i.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(i,a,c){i.metric&&(this._mScale=be("div",a,c)),i.imperial&&(this._iScale=be("div",a,c))},_update:function(){var i=this._map,a=i.getSize().y/2,c=i.distance(i.containerPointToLatLng([0,a]),i.containerPointToLatLng([this.options.maxWidth,a]));this._updateScales(c)},_updateScales:function(i){this.options.metric&&i&&this._updateMetric(i),this.options.imperial&&i&&this._updateImperial(i)},_updateMetric:function(i){var a=this._getRoundNum(i),c=a<1e3?a+" m":a/1e3+" km";this._updateScale(this._mScale,c,a/i)},_updateImperial:function(i){var a=i*3.2808399,c,f,v;a>5280?(c=a/5280,f=this._getRoundNum(c),this._updateScale(this._iScale,f+" mi",f/c)):(v=this._getRoundNum(a),this._updateScale(this._iScale,v+" ft",v/a))},_updateScale:function(i,a,c){i.style.width=Math.round(this.options.maxWidth*c)+"px",i.innerHTML=a},_getRoundNum:function(i){var a=Math.pow(10,(Math.floor(i)+"").length-1),c=i/a;return c=c>=10?10:c>=5?5:c>=3?3:c>=2?2:1,a*c}}),T1=function(i){return new cm(i)},j1='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',Qc=hn.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(ne.inlineSvg?j1+" ":"")+"Leaflet</a>"},initialize:function(i){x(this,i),this._attributions={}}
229,onAdd:function(i){i.attributionControl=this,this._container=be("div","leaflet-control-attribution"),Oo(this._container);for(var a in i._layers)i._layers[a].getAttribution&&this.addAttribution(i._layers[a].getAttribution());return this._update(),i.on("layeradd",this._addAttribution,this),this._container},onRemove:function(i){i.off("layeradd",this._addAttribution,this)},_addAttribution:function(i){i.layer.getAttribution&&(this.addAttribution(i.layer.getAttribution()),i.layer.once("remove",function(){this.removeAttribution(i.layer.getAttribution())},this))},setPrefix:function(i){return this.options.prefix=i,this._update(),this},addAttribution:function(i){return i?(this._attributions[i]||(this._attributions[i]=0),this._attributions[i]++,this._update(),this):this},removeAttribution:function(i){return i?(this._attributions[i]&&(this._attributions[i]--,this._update()),this):this},_update:function(){if(this._map){var i=[];for(var a in this._attributions)this._attributions[a]&&i.push(a);var c=[];this.options.prefix&&c.push(this.options.prefix),i.length&&c.push(i.join(", ")),this._container.innerHTML=c.join(' <span aria-hidden="true">|</span> ')}}});we.mergeOptions({attributionControl:!0}),we.addInitHook(function(){this.options.attributionControl&&new Qc().addTo(this)});var O1=function(i){return new Qc(i)};hn.Layers=um,hn.Zoom=Jc,hn.Scale=cm,hn.Attribution=Qc,No.layers=P1,No.zoom=C1,No.scale=T1,No.attribution=O1;var $n=q.extend({initialize:function(i){this._map=i},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});$n.addTo=function(i,a){return i.addHandler(a,this),this};var N1={Events:ee},dm=ne.touch?"touchstart mousedown":"mousedown",Tr=le.extend({options:{clickTolerance:3},initialize:function(i,a,c,f){x(this,f),this._element=i,this._dragStartTarget=a||i,this._preventOutline=c},enable:function(){this._enabled||(fe(this._dragStartTarget,dm,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Tr._dragging===this&&this.finishDrag(!0),Te(this._dragStartTarget,dm,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(i){if(this._enabled&&(this._moved=!1,!Dc(this._element,"leaflet-zoom-anim"))){if(i.touches&&i.touches.length!==1){Tr._dragging===this&&this.finishDrag();return}if(!(Tr._dragging||i.shiftKey||i.which!==1&&i.button!==1&&!i.touches)&&(Tr._dragging=this,this._preventOutline&&Hc(this._element),$c(),Co(),!this._moving)){this.fire("down");var a=i.touches?i.touches[0]:i,c=rm(this._element);this._startPoint=new R(a.clientX,a.clientY),this._startPos=vi(this._element),this._parentScale=Wc(c);var f=i.type==="mousedown";fe(document,f?"mousemove":"touchmove",this._onMove,this),fe(document,f?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(i){if(this._enabled){if(i.touches&&i.touches.length>1){this._moved=!0;return}var a=i.touches&&i.touches.length===1?i.touches[0]:i,c=new R(a.clientX,a.clientY)._subtract(this._startPoint);!c.x&&!c.y||Math.abs(c.x)+Math.abs(c.y)<this.options.clickTolerance||(c.x/=this._parentScale.x,c.y/=this._parentScale.y,st(i),this._moved||(this.fire("dragstart"),this._moved=!0,ge(document.body,"leaflet-dragging"),this._lastTarget=i.target||i.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),ge(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(c),this._moving=!0,this._lastEvent=i,this._updatePosition())}},_updatePosition:function(){var i={originalEvent:this._lastEvent};this.fire("predrag",i),Ke(this._element,this._newPos),this.fire("drag",i)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(i){He(document.body,"leaflet-dragging"),this._lastTarget&&(He(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Te(document,"mousemove touchmove",this._onMove,this),Te(document,"mouseup touchend touchcancel",this._onUp,this),Fc(),To();var a=this._moved&&this._moving;this._moving=!1,Tr._dragging=!1,a&&this.fire("dragend",{noInertia:i,distance:this._newPos.distanceTo(this._startPos)})}});function hm(i,a,c){var f,v=[1,4,2,8],k,j,A,M,F,K,ae,ye;for(k=0,K=i.length;k<K;k++)i[k]._code=wi(i[k],a);for(A=0;A<4;A++){for(ae=v[A],f=[],k=0,K=i.length,j=K-1;k<K;j=k++)M=i[k],F=i[j],M._code&ae?F._code&ae||(ye=ll(F,M,ae,a,c),ye._code=wi(ye,a),f.push(ye)):(F._code&ae&&(ye=ll(F,M,ae,a,c),ye._code=wi(ye,a),f.push(ye)),f.push(M));i=f}return i}function fm(i,a){var c,f,v,k,j,A,M,F,K;if(!i||i.length===0)throw new Error("latlngs not passed");Xt(i)||(console.warn("latlngs are not flat! Only the first ring will be used"),i=i[0]);var ae=se([0,0]),ye=te(i),yt=ye.getNorthWest().distanceTo(ye.getSouthWest
229())*ye.getNorthEast().distanceTo(ye.getNorthWest());yt<1700&&(ae=Yc(i));var nt=i.length,en=[];for(c=0;c<nt;c++){var jt=se(i[c]);en.push(a.project(se([jt.lat-ae.lat,jt.lng-ae.lng])))}for(A=M=F=0,c=0,f=nt-1;c<nt;f=c++)v=en[c],k=en[f],j=v.y*k.x-k.y*v.x,M+=(v.x+k.x)*j,F+=(v.y+k.y)*j,A+=j*3;A===0?K=en[0]:K=[M/A,F/A];var cs=a.unproject(z(K));return se([cs.lat+ae.lat,cs.lng+ae.lng])}function Yc(i){for(var a=0,c=0,f=0,v=0;v<i.length;v++){var k=se(i[v]);a+=k.lat,c+=k.lng,f++}return se([a/f,c/f])}var A1={__proto__:null,clipPolygon:hm,polygonCenter:fm,centroid:Yc};function pm(i,a){if(!a||!i.length)return i.slice();var c=a*a;return i=I1(i,c),i=R1(i,c),i}function mm(i,a,c){return Math.sqrt(Ao(i,a,c,!0))}function L1(i,a,c){return Ao(i,a,c)}function R1(i,a){var c=i.length,f=typeof Uint8Array<"u"?Uint8Array:Array,v=new f(c);v[0]=v[c-1]=1,Xc(i,v,a,0,c-1);var k,j=[];for(k=0;k<c;k++)v[k]&&j.push(i[k]);return j}function Xc(i,a,c,f,v){var k=0,j,A,M;for(A=f+1;A<=v-1;A++)M=Ao(i[A],i[f],i[v],!0),M>k&&(j=A,k=M);k>c&&(a[j]=1,Xc(i,a,c,f,j),Xc(i,a,c,j,v))}function I1(i,a){for(var c=[i[0]],f=1,v=0,k=i.length;f<k;f++)M1(i[f],i[v])>a&&(c.push(i[f]),v=f);return v<k-1&&c.push(i[k-1]),c}var gm;function vm(i,a,c,f,v){var k=f?gm:wi(i,c),j=wi(a,c),A,M,F;for(gm=j;;){if(!(k|j))return[i,a];if(k&j)return!1;A=k||j,M=ll(i,a,A,c,v),F=wi(M,c),A===k?(i=M,k=F):(a=M,j=F)}}function ll(i,a,c,f,v){var k=a.x-i.x,j=a.y-i.y,A=f.min,M=f.max,F,K;return c&8?(F=i.x+k*(M.y-i.y)/j,K=M.y):c&4?(F=i.x+k*(A.y-i.y)/j,K=A.y):c&2?(F=M.x,K=i.y+j*(M.x-i.x)/k):c&1&&(F=A.x,K=i.y+j*(A.x-i.x)/k),new R(F,K,v)}function wi(i,a){var c=0;return i.x<a.min.x?c|=1:i.x>a.max.x&&(c|=2),i.y<a.min.y?c|=4:i.y>a.max.y&&(c|=8),c}function M1(i,a){var c=a.x-i.x,f=a.y-i.y;return c*c+f*f}function Ao(i,a,c,f){var v=a.x,k=a.y,j=c.x-v,A=c.y-k,M=j*j+A*A,F;return M>0&&(F=((i.x-v)*j+(i.y-k)*A)/M,F>1?(v=c.x,k=c.y):F>0&&(v+=j*F,k+=A*F)),j=i.x-v,A=i.y-k,f?j*j+A*A:new R(v,k)}function Xt(i){return!b(i[0])||typeof i[0][0]!="object"&&typeof i[0][0]<"u"}function ym(i){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Xt(i)}function _m(i,a){var c,f,v,k,j,A,M,F;if(!i||i.length===0)throw new Error("latlngs not passed");Xt(i)||(console.warn("latlngs are not flat! Only the first ring will be used"),i=i[0]);var K=se([0,0]),ae=te(i),ye=ae.getNorthWest().distanceTo(ae.getSouthWest
vendor: 4,217 bytes, line 229
229())*ae.getNorthEast().distanceTo(ae.getNorthWest());ye<1700&&(K=Yc(i));var yt=i.length,nt=[];for(c=0;c<yt;c++){var en=se(i[c]);nt.push(a.project(se([en.lat-K.lat,en.lng-K.lng])))}for(c=0,f=0;c<yt-1;c++)f+=nt[c].distanceTo(nt[c+1])/2;if(f===0)F=nt[0];else for(c=0,k=0;c<yt-1;c++)if(j=nt[c],A=nt[c+1],v=j.distanceTo(A),k+=v,k>f){M=(k-f)/v,F=[A.x-M*(A.x-j.x),A.y-M*(A.y-j.y)];break}var jt=a.unproject(z(F));return se([jt.lat+K.lat,jt.lng+K.lng])}var D1={__proto__:null,simplify:pm,pointToSegmentDistance:mm,closestPointOnSegment:L1,clipSegment:vm,_getEdgeIntersection:ll,_getBitCode:wi,_sqClosestPointOnSegment:Ao,isFlat:Xt,_flat:ym,polylineCenter:_m},ed={project:function(i){return new R(i.lng,i.lat)},unproject:function(i){return new oe(i.y,i.x)},bounds:new J([-180,-90],[180,90])},td={R:6378137,R_MINOR:6356752314245179e-9,bounds:new J([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(i){var a=Math.PI/180,c=this.R,f=i.lat*a,v=this.R_MINOR/c,k=Math.sqrt(1-v*v),j=k*Math.sin(f),A=Math.tan(Math.PI/4-f/2)/Math.pow((1-j)/(1+j),k/2);return f=-c*Math.log(Math.max(A,1e-10)),new R(i.lng*a*c,f)},unproject:function(i){for(var a=180/Math.PI,c=this.R,f=this.R_MINOR/c,v=Math.sqrt(1-f*f),k=Math.exp(-i.y/c),j=Math.PI/2-2*Math.atan(k),A=0,M=.1,F;A<15&&Math.abs(M)>1e-7;A++)F=v*Math.sin(j),F=Math.pow((1-F)/(1+F),v/2),M=Math.PI/2-2*Math.atan(k*F)-j,j+=M;return new oe(j*a,i.x*a/c)}},z1={__proto__:null,LonLat:ed,Mercator:td,SphericalMercator:dn},B1=s({},gt,{code:"EPSG:3395",projection:td,transformation:function(){var i=.5/(Math.PI*td.R);return Jt(i,.5,-i,.5)}()}),wm=s({},gt,{code:"EPSG:4326",projection:ed,transformation:Jt(1/180,1,-1/180,.5)}),$1=s({},me,{projection:ed,transformation:Jt(1,0,-1,0),scale:function(i){return Math.pow(2,i)},zoom:function(i){return Math.log(i)/Math.LN2},distance:function(i,a){var c=a.lng-i.lng,f=a.lat-i.lat;return Math.sqrt(c*c+f*f)},infinite:!0});me.Earth=gt,me.EPSG3395=B1,me.EPSG3857=Qt,me.EPSG900913=Yi,me.EPSG4326=wm,me.Simple=$1;var fn=le.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(i){return i.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(i){return i&&i.removeLayer(this),this},getPane:function(i){return this._map.getPane(i?this.options[i]||i:this.options.pane)},addInteractiveTarget:function(i){return this._map._targets[d(i)]=this,this},removeInteractiveTarget:function(i){return delete this._map._targets[d(i)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(i){var a=i.target;if(a.hasLayer(this)){if(this._map=a,this._zoomAnimated=a._zoomAnimated,this.getEvents){var c=this.getEvents();a.on(c,this),this.once("remove",function(){a.off(c,this)},this)}this.onAdd(a),this.fire("add"),a.fire("layeradd",{layer:this})}}});we.include({addLayer:function(i){if(!i._layerAdd)throw new Error("The provided object is not a Layer.");var a=d(i);return this._layers[a]?this:(this._layers[a]=i,i._mapToAdd=this,i.beforeAdd&&i.beforeAdd(this),this.whenReady(i._layerAdd,i),this)},removeLayer:function(i){var a=d(i);return this._layers[a]?(this._loaded&&i.onRemove(this),delete this._layers[a],this._loaded&&(this.fire("layerremove",{layer:i}),i.fire("remove")),i._map=i._mapToAdd=null,this):this},hasLayer:function(i){return d(i)in this._layers},eachLayer:function(i,a){for(var c in this._layers)i.call(a,this._layers[c]);return this},_addLayers:function(i){i=i?b(i)?i:[i]:[];for(var a=0,c=i.length;a<c;a++)this.addLayer(i[a])},_addZoomLimit:function(i){(!isNaN(i.options.maxZoom)||!isNaN(i.options.minZoom))&&(this._zoomBoundLayers[d(i)]=i,this._updateZoomLevels())},_removeZoomLimit:function(i){var a=d(i);this._zoomBoundLayers[a]&&(delete this._zoomBoundLayers[a],this._updateZoomLevels())},_updateZoomLevels:function(){var i=1/0,a=-1/0,c=this._getZoomSpan();for(var f in this._zoomBoundLayers){var v=this._zoomBoundLayers[f].options;i=v.minZoom===void 0?i:Math.min(i,v.minZoom),a=v.maxZoom===void 0?a:Math.max(a,v.maxZoom)}this._layersMaxZoom=a===-1/0?void 0:a,this._layersMinZoom=i===1/0?void 0:i,c!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZo
229om&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var ss=fn.extend({initialize:function(i,a){x(this,a),this._layers={};var c,f;if(i)for(c=0,f=i.length;c<f;c++)this.addLayer(i[c])},addLayer:function(i){var a=this.getLayerId(i);return this._layers[a]=i,this._map&&this._map.addLayer(i),this},removeLayer:function(i){var a=i in this._layers?i:this.getLayerId(i);return this._map&&this._layers[a]&&this._map.removeLayer(this._layers[a]),delete this._layers[a],this},hasLayer:function(i){var a=typeof i=="number"?i:this.getLayerId(i);return a in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(i){var a=Array.prototype.slice.call(arguments,1),c,f;for(c in this._layers)f=this._layers[c],f[i]&&f[i].apply(f,a);return this},onAdd:function(i){this.eachLayer(i.addLayer,i)},onRemove:function(i){this.eachLayer(i.removeLayer,i)},eachLayer:function(i,a){for(var c in this._layers)i.call(a,this._layers[c]);return this},getLayer:function(i){return this._layers[i]},getLayers:function(){var i=[];return this.eachLayer(i.push,i),i},setZIndex:function(i){return this.invoke("setZIndex",i)},getLayerId:function(i){return d(i)}}),F1=function(i,a){return new ss(i,a)},ir=ss.extend({addLayer:function(i){return this.hasLayer(i)?this:(i.addEventParent(this),ss.prototype.addLayer.call(this,i),this.fire("layeradd",{layer:i}))},removeLayer:function(i){return this.hasLayer(i)?(i in this._layers&&(i=this._layers[i]),i.removeEventParent(this),ss.prototype.removeLayer.call(this,i),this.fire("layerremove",{layer:i})):this},setStyle:function(i){return this.invoke("setStyle",i)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var i=new ie;for(var a in this._layers){var c=this._layers[a];i.extend(c.getBounds?c.getBounds():c.getLatLng())}return i}}),U1=function(i,a){return new ir(i,a)},os=q.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(i){x(this,i)},createIcon:function(i){return this._createIcon("icon",i)},createShadow:function(i){return this._createIcon("shadow",i)},_createIcon:function(i,a){var c=this._getIconUrl(i);if(!c){if(i==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var f=this._createImg(c,a&&a.tagName==="IMG"?a:null);return this._setIconStyles(f,i),(this.options.crossOrigin||this.options.crossOrigin==="")&&(f.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),f},_setIconStyles:function(i,a){var c=this.options,f=c[a+"Size"];typeof f=="number"&&(f=[f,f]);var v=z(f),k=z(a==="shadow"&&c.shadowAnchor||c.iconAnchor||v&&v.divideBy(2,!0));i.className="leaflet-marker-"+a+" "+(c.className||""),k&&(i.style.marginLeft=-k.x+"px",i.style.marginTop=-k.y+"px"),v&&(i.style.width=v.x+"px",i.style.height=v.y+"px")},_createImg:function(i,a){return a=a||document.createElement("img"),a.src=i,a},_getIconUrl:function(i){return ne.retina&&this.options[i+"RetinaUrl"]||this.options[i+"Url"]}});function H1(i){return new os(i)}var Lo=os.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(i){return typeof Lo.imagePath!="string"&&(Lo.imagePath=this._detectIconPath()),(this.options.imagePath||Lo.imagePath)+os.prototype._getIconUrl.call(this,i)},_stripUrl:function(i){var a=function(c,f,v){var k=f.exec(c);return k&&k[v]};return i=a(i,/^url\((['"])?(.+)\1\)$/,2),i&&a(i,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var i=be("div","leaflet-default-icon-path",document.body),a=Po(i,"background-image")||Po(i,"backgroundImage");if(document.body.removeChild(i),a=this._stripUrl(a),a)return a;var c=document.querySelector('link[href$="leaflet.css"]');return c?c.href.substring(0,c.href.length-11-1):""}}),xm=$n.extend({initialize:function(i){this._marker=i},addHooks:function(){var i=this._marker._icon;this._draggable||(this._draggable=new Tr(i,i,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),ge(i,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&He(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(i){var a=this._marker,c=a._map,f=this._marker.options.autoPanSpeed,v=this._marker.options.autoPanPadding,k=vi(a._icon),j=c.getPixelBounds(),A=c.getPixelOrigin(),M=G(j.min._subtract(A).add(v),j.max._subtract(A).subtract(v));if(!M.contains(k)){var F=z((Math.max(M.max.x,k.x)-M.max.x)/(j.max.x-M.max.x)-(Math.min(M.min.x,k.x)-M.min.x)/(j.min.x-M.min.x),(Math.max(M.max.y,k.y)-M.max.y)/(j.max.y-M.max.y)-(Math.min(M.min.y,
vendor: 8,810 bytes, line 229
229k.y)-M.min.y)/(j.min.y-M.min.y)).multiplyBy(f);c.panBy(F,{animate:!1}),this._draggable._newPos._add(F),this._draggable._startPos._add(F),Ke(a._icon,this._draggable._newPos),this._onDrag(i),this._panRequest=Y(this._adjustPan.bind(this,i))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(i){this._marker.options.autoPan&&(V(this._panRequest),this._panRequest=Y(this._adjustPan.bind(this,i)))},_onDrag:function(i){var a=this._marker,c=a._shadow,f=vi(a._icon),v=a._map.layerPointToLatLng(f);c&&Ke(c,f),a._latlng=v,i.latlng=v,i.oldLatLng=this._oldLatLng,a.fire("move",i).fire("drag",i)},_onDragEnd:function(i){V(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",i)}}),ul=fn.extend({options:{icon:new Lo,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(i,a){x(this,a),this._latlng=se(i)},onAdd:function(i){this._zoomAnimated=this._zoomAnimated&&i.options.markerZoomAnimation,this._zoomAnimated&&i.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(i){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&i.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(i){var a=this._latlng;return this._latlng=se(i),this.update(),this.fire("move",{oldLatLng:a,latlng:this._latlng})},setZIndexOffset:function(i){return this.options.zIndexOffset=i,this.update()},getIcon:function(){return this.options.icon},setIcon:function(i){return this.options.icon=i,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var i=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(i)}return this},_initIcon:function(){var i=this.options,a="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),c=i.icon.createIcon(this._icon),f=!1;c!==this._icon&&(this._icon&&this._removeIcon(),f=!0,i.title&&(c.title=i.title),c.tagName==="IMG"&&(c.alt=i.alt||"")),ge(c,a),i.keyboard&&(c.tabIndex="0",c.setAttribute("role","button")),this._icon=c,i.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&fe(c,"focus",this._panOnFocus,this);var v=i.icon.createShadow(this._shadow),k=!1;v!==this._shadow&&(this._removeShadow(),k=!0),v&&(ge(v,a),v.alt=""),this._shadow=v,i.opacity<1&&this._updateOpacity(),f&&this.getPane().appendChild(this._icon),this._initInteraction(),v&&k&&this.getPane(i.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Te(this._icon,"focus",this._panOnFocus,this),Ie(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&Ie(this._shadow),this._shadow=null},_setPos:function(i){this._icon&&Ke(this._icon,i),this._shadow&&Ke(this._shadow,i),this._zIndex=i.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(i){this._icon&&(this._icon.style.zIndex=this._zIndex+i)},_animateZoom:function(i){var a=this._map._latLngToNewLayerPoint(this._latlng,i.zoom,i.center).round();this._setPos(a)},_initInteraction:function(){if(this.options.interactive&&(ge(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),xm)){var i=this.options.draggable;this.dragging&&(i=this.dragging.enabled(),this.dragging.disable()),this.dragging=new xm(this),i&&this.dragging.enable()}},setOpacity:function(i){return this.options.opacity=i,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var i=this.options.opacity;this._icon&&Yt(this._icon,i),this._shadow&&Yt(this._shadow,i)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var i=this._map;if(i){var a=this.options.icon.options,c=a.iconSize?z(a.iconSize):z(0,0),f=a.iconAnchor?z(a.iconAnchor):z(0,0);i.panInside(this._latlng,{paddingTopLeft:f,paddingBottomRight:c.subtract(f)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function W1(i,a){return new ul(i,a)}var jr=fn.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(i){this._renderer=i.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(i){return x(this,i),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&i&&Object.prototype.hasOwnProperty.call(i,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),cl=jr.extend({options:{fill:!0,radius:10},initialize:function(i,a){x(this,a),this._latlng=se(i),this._radius=this.options.radius},setLatLng:function(i){var a=this._latlng;return this._latlng=se(i),this.redraw(),this.fire("move",{oldLatLng:a,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(i){return this.options.radius=this._radius=i,this.redraw()},getRadius:function(){return this._radius},setStyle:function(i){var a=i&&i.radius||this._radius;return jr.prototype.setStyle.call(this,i),this.setRadius(a),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var i=this._radius,a=this._radiusY||i,c=this._clickTolerance(),f=[i+c,a+c];this._pxBounds=new J(this._point.subtract(f),this._point.add(f))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(i){return i.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function V1(i,a){return new cl(i,a)}var nd=cl.extend({initialize:function(i,a,c){if(typeof a=="number"&&(a=s({},c,{radius:a})),x(this,a),this._latlng=se(i),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(i){return this._mRadius=i,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var i=[this._radius,this._radiusY||this._radius];return new ie(this._map.layerPointToLatLng(this._point.subtract(i)),this._map.layerPointToLatLng(this._point.add(i)))},setStyle:jr.prototype.setStyle,_project:function(){var i=this._latlng.lng,a=this._latlng.lat,c=this._map,f=c.options.crs;if(f.distance===gt.distance){var v=Math.PI/180,k=this._mRadius/gt.R/v,j=c.project([a+k,i]),A=c.project([a-k,i]),M=j.add(A).divideBy(2),F=c.unproject(M).lat,K=Math.acos((Math.cos(k*v)-Math.sin(a*v)*Math.sin(F*v))/(Math.cos(a*v)*Math.cos(F*v)))/v;(isNaN(K)||K===0)&&(K=k/Math.cos(Math.PI/180*a)),this._point=M.subtract(c.getPixelOrigin()),this._radius=isNaN(K)?0:M.x-c.project([F,i-K]).x,this._radiusY=M.y-j.y}else{var ae=f.unproject(f.project(this._latlng).subtract([this._mRadius,0]));this._point=c.latLngToLayerPoint(this._latlng),this._radius=this._point.x-c.latLngToLayerPoint(ae).x}this._updateBounds()}});function Z1(i,a,c){return new nd(i,a,c)}var sr=jr.extend({options:{smoothFactor:1,noClip:!1},initialize:function(i,a){x(this,a),this._setLatLngs(i)},getLatLngs:function(){return this._latlngs},setLatLngs:function(i){return this._setLatLngs(i),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(i){for(var a=1/0,c=null,f=Ao,v,k,j=0,A=this._parts.length;j<A;j++)for(var M=this._parts[j],F=1,K=M.length;F<K;F++){v=M[F-1],k=M[F];var ae=f(i,v,k,!0);ae<a&&(a=ae,c=f(i,v,k))}return c&&(c.distance=Math.sqrt(a)),c}
229,getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return _m(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(i,a){return a=a||this._defaultShape(),i=se(i),a.push(i),this._bounds.extend(i),this.redraw()},_setLatLngs:function(i){this._bounds=new ie,this._latlngs=this._convertLatLngs(i)},_defaultShape:function(){return Xt(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(i){for(var a=[],c=Xt(i),f=0,v=i.length;f<v;f++)c?(a[f]=se(i[f]),this._bounds.extend(a[f])):a[f]=this._convertLatLngs(i[f]);return a},_project:function(){var i=new J;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,i),this._bounds.isValid()&&i.isValid()&&(this._rawPxBounds=i,this._updateBounds())},_updateBounds:function(){var i=this._clickTolerance(),a=new R(i,i);this._rawPxBounds&&(this._pxBounds=new J([this._rawPxBounds.min.subtract(a),this._rawPxBounds.max.add(a)]))},_projectLatlngs:function(i,a,c){var f=i[0]instanceof oe,v=i.length,k,j;if(f){for(j=[],k=0;k<v;k++)j[k]=this._map.latLngToLayerPoint(i[k]),c.extend(j[k]);a.push(j)}else for(k=0;k<v;k++)this._projectLatlngs(i[k],a,c)},_clipPoints:function(){var i=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(i))){if(this.options.noClip){this._parts=this._rings;return}var a=this._parts,c,f,v,k,j,A,M;for(c=0,v=0,k=this._rings.length;c<k;c++)for(M=this._rings[c],f=0,j=M.length;f<j-1;f++)A=vm(M[f],M[f+1],i,f,!0),A&&(a[v]=a[v]||[],a[v].push(A[0]),(A[1]!==M[f+1]||f===j-2)&&(a[v].push(A[1]),v++))}},_simplifyPoints:function(){for(var i=this._parts,a=this.options.smoothFactor,c=0,f=i.length;c<f;c++)i[c]=pm(i[c],a)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(i,a){var c,f,v,k,j,A,M=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(i))return!1;for(c=0,k=this._parts.length;c<k;c++)for(A=this._parts[c],f=0,j=A.length,v=j-1;f<j;v=f++)if(!(!a&&f===0)&&mm(i,A[v],A[f])<=M)return!0;return!1}});function q1(i,a){return new sr(i,a)}sr._flat=ym;var as=sr.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length}
229,getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return fm(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(i){var a=sr.prototype._convertLatLngs.call(this,i),c=a.length;return c>=2&&a[0]instanceof oe&&a[0].equals(a[c-1])&&a.pop(),a},_setLatLngs:function(i){sr.prototype._setLatLngs.call(this,i),Xt(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Xt(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var i=this._renderer._bounds,a=this.options.weight,c=new R(a,a);if(i=new J(i.min.subtract(c),i.max.add(c)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(i))){if(this.options.noClip){this._parts=this._rings;return}for(var f=0,v=this._rings.length,k;f<v;f++)k=hm(this._rings[f],i,!0),k.length&&this._parts.push(k)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(i){var a=!1,c,f,v,k,j,A,M,F;if(!this._pxBounds||!this._pxBounds.contains(i))return!1;for(k=0,M=this._parts.length;k<M;k++)for(c=this._parts[k],j=0,F=c.length,A=F-1;j<F;A=j++)f=c[j],v=c[A],f.y>i.y!=v.y>i.y&&i.x<(v.x-f.x)*(i.y-f.y)/(v.y-f.y)+f.x&&(a=!a);return a||sr.prototype._containsPoint.call(this,i,!0)}});function K1(i,a){return new as(i,a)}var or=ir.extend({initialize:function(i,a){x(this,a),this._layers={},i&&this.addData(i)},addData:function(i){var a=b(i)?i:i.features,c,f,v;if(a){for(c=0,f=a.length;c<f;c++)v=a[c],(v.geometries||v.geometry||v.features||v.coordinates)&&this.addData(v);return this}var k=this.options;if(k.filter&&!k.filter(i))return this;var j=dl(i,k);return j?(j.feature=pl(i),j.defaultOptions=j.options,this.resetStyle(j),k.onEachFeature&&k.onEachFeature(i,j),this.addLayer(j)):this},resetStyle:function(i){return i===void 0?this.eachLayer(this.resetStyle,this):(i.options=s({},i.defaultOptions),this._setLayerStyle(i,this.options.style),this)},setStyle:function(i){return this.eachLayer(function(a){this._setLayerStyle(a,i)},this)},_setLayerStyle:function(i,a){i.setStyle&&(typeof a=="function"&&(a=a(i.feature)),i.setStyle(a))}});function dl(i,a){var c=i.type==="Feature"?i.geometry:i,f=c?c.coordinates:null,v=[],k=a&&a.pointToLayer,j=a&&a.coordsToLatLng||rd,A,M,F,K;if(!f&&!c)return null;switch(c.type){case"Point":return A=j(f),bm(k,i,A,a);case"MultiPoint":for(F=0,K=f.length;F<K;F++)A=j(f[F]),v.push(bm(k,i,A,a));return new ir(v);case"LineString":case"MultiLineString":return M=hl(f,c.type==="LineString"?0:1,j),new sr(M,a);case"Polygon":case"MultiPolygon":return M=hl(f,c.type==="Polygon"?1:2,j),new as(M,a);case"GeometryCollection":for(F=0,K=c.geometries.length;F<K;F++){var ae=dl({geometry:c.geometries[F],type:"Feature",properties:i.properties},a);ae&&v.push(ae)}return new ir(v);case"FeatureCollection":for(F=0,K=c.features.length;F<K;F++){var ye=dl(c.features[F],a);ye&&v.push(ye)}return new ir(v);default:throw new Error("Invalid GeoJSON object.")}}function bm(i,a,c,f){return i?i(a,c):new ul(c,f&&f.markersInheritOptions&&f)}function rd(i){return new oe(i[1],i[0],i[2])}function hl(i,a,c){for(var f=[],v=0,k=i.length,j;v<k;v++)j=a?hl(i[v],a-1,c):(c||rd)(i[v]),f.push(j);return f}function id(i,a){return i=se(i),i.alt!==void 0?[_(i.lng,a),_(i.lat,a),_(i.alt,a)]:[_(i.lng,a),_(i.lat,a)]}function fl(i,a,c,f){for(var v=[],k=0,j=i.length;k<j;k++)v.push(a?fl(i[k],Xt(i[k])?0:a-1,c,f):id(i[k],f));return!a&&c&&v.length>0&&v.push(v[0].slice()),v}function ls(i,a){return i.feature?s({},i.feature,{geometry:a}):pl(a)}function pl(i){return i.type==="Feature"||i.type==="FeatureCollection"?i:{type:"Feature",properties:{},geometry:i}}var sd={toGeoJSON:function(i){return ls(this,{type:"Point",coordinates:id(this.getLatLng(),i)})}};ul.include(sd),nd.include(sd),cl.include(sd),sr.include({toGeoJSON:function(i){var a=!Xt(this._latlngs),c=fl(this._latlngs,a?1:0,!1,i);return ls(this,{type:(a?"Multi":"")+"LineString",coordinates:c})}}),as.include({toGeoJSON:function(i){var a=!Xt(this._latlngs),c=a&&!Xt(this._latlngs[0]),f=fl(this._latlngs,c?2:a?1:0,!0,i);return a||(f=[f]),ls(this,{type:(c?"Multi":"")+"Polygon",coordinates:f})}}),ss.include({toMultiPoint:function(i){var a=[];return this.eachLayer(function(c){a.push(c.toGeoJSON(i).geometry.coordinates)}),ls(this,{type:"MultiPoint",coordinates:a})},toGeoJSON:function(i){var a=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(a==="MultiPoint")return this.toMultiPoint(i);var c=a==="GeometryCollection",f=[];return this.eachLayer(function(v){if(v.toGeoJSON){var k=v.toGeoJSON(i);if(c)f.push(k.geometry);else{var j=pl(k);j.type==="FeatureCollection"?f.push.apply(f,j.features):f.push(j)}}}),c?ls(this,{geometries:f,type:"GeometryCollection"}):{type:"FeatureCollection",features:f}}});function Sm(i,a){return new or(i,a)}var G1=Sm,ml=fn.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(i,a,c){this._url=i,this._bounds=te(a),x(this,c)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(ge(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Ie(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(i){return this.options.opacity=i,this._image&&this._updateOpacity(),this},setStyle:function(i){return i.opacity&&this.setOpacity(i.opacity),this},bringToFront:function(){return this._map&&rs(this._image),this},bringToBack:function(){return this._map&&is(this._image),this},setUrl:function(i){return this._url=i,this._image&&(this._image.src=i),this},setBounds:function(i){return this._bounds=te(i),this._map&&this._reset(),this},getEvents:function(){var i={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(i.zoomanim=this._animateZoom),i},setZIndex:function(i){return this.options.zIndex=i,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var i=this._url.tagName==="IMG",a=this._image=i?this._url:be("img");if(ge(a,"leaflet-image-layer"),this._zoomAnimated&&ge(a,"leaflet-zoom-animated"),this.options.className&&ge(a,this.options.className),a.onselectstart=g,a.onmousemove=g,a.onload=l(this.fire,this,"load"),a.onerror=l(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(a.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),i){this._url=a.src;return}a.src=this._url,a.alt=this.options.alt},_animateZoom:function(i){var a=this._map.getZoomScale(i.zoom),c=this._map._latLngBoundsToNewLayerBounds(this._bounds,i.zoom,i.center).min;gi(this._image,c,a)},_reset:function(){var i=this._image,a=new J(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),c=a.getSize();Ke(i,a.min),i.style.width=c.x+"px",i.style.height=c.y+"px"},_updateOpacity:function(){Yt(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var i=this.options.errorOverlayUrl;i&&this._url!==i&&(this._url=i,this._image.src=i)},getCenter:function(){return this._bounds.getCenter()}}),J1=function(i,a,c){return new ml(i,a,c)},km=ml.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInl
vendor: 10,331 bytes, line 229
229ine:!0},_initImage:function(){var i=this._url.tagName==="VIDEO",a=this._image=i?this._url:be("video");if(ge(a,"leaflet-image-layer"),this._zoomAnimated&&ge(a,"leaflet-zoom-animated"),this.options.className&&ge(a,this.options.className),a.onselectstart=g,a.onmousemove=g,a.onloadeddata=l(this.fire,this,"load"),i){for(var c=a.getElementsByTagName("source"),f=[],v=0;v<c.length;v++)f.push(c[v].src);this._url=c.length>0?f:[a.src];return}b(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(a.style,"objectFit")&&(a.style.objectFit="fill"),a.autoplay=!!this.options.autoplay,a.loop=!!this.options.loop,a.muted=!!this.options.muted,a.playsInline=!!this.options.playsInline;for(var k=0;k<this._url.length;k++){var j=be("source");j.src=this._url[k],a.appendChild(j)}}});function Q1(i,a,c){return new km(i,a,c)}var Em=ml.extend({_initImage:function(){var i=this._image=this._url;ge(i,"leaflet-image-layer"),this._zoomAnimated&&ge(i,"leaflet-zoom-animated"),this.options.className&&ge(i,this.options.className),i.onselectstart=g,i.onmousemove=g}});function Y1(i,a,c){return new Em(i,a,c)}var Fn=fn.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(i,a){i&&(i instanceof oe||b(i))?(this._latlng=se(i),x(this,a)):(x(this,i),this._source=a),this.options.content&&(this._content=this.options.content)},openOn:function(i){return i=arguments.length?i:this._source._map,i.hasLayer(this)||i.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(i){return this._map?this.close():(arguments.length?this._source=i:i=this._source,this._prepareOpen(),this.openOn(i._map)),this},onAdd:function(i){this._zoomAnimated=i._zoomAnimated,this._container||this._initLayout(),i._fadeAnimated&&Yt(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),i._fadeAnimated&&Yt(this._container,1),this.bringToFront(),this.options.interactive&&(ge(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(i){i._fadeAnimated?(Yt(this._container,0),this._removeTimeout=setTimeout(l(Ie,void 0,this._container),200)):Ie(this._container),this.options.interactive&&(He(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(i){return this._latlng=se(i),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(i){return this._content=i,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var i={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(i.zoomanim=this._animateZoom),i},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&rs(this._container),this},bringToBack:function(){return this._map&&is(this._container),this},_prepareOpen:function(i){var a=this._source;if(!a._map)return!1;if(a instanceof ir){a=null;var c=this._source._layers;for(var f in c)if(c[f]._map){a=c[f];break}if(!a)return!1;this._source=a}if(!i)if(a.getCenter)i=a.getCenter();else if(a.getLatLng)i=a.getLatLng();else if(a.getBounds)i=a.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(i),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var i=this._contentNode,a=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof a=="string")i.innerHTML=a;else{for(;i.hasChildNodes();)i.removeChild(i.firstChild);i.appendChild(a)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var i=this._map.latLngToLayerPoint(this._latlng),a=z(this.options.offset),c=this._getAnchor();this._zoomAnimated?Ke(this._container,i.add(c)):a=a.add(i).add(c);var f=this._containerBottom=-a.y,v=this._containerLeft=-Math.round(this._containerWidth/2)+a.x;this._container.style.bottom=f+"px",this._container.style.left=v+"px"}},_getAnchor:function(){return[0,0]}});we.include({_initOverlay:function(i,a,c,f){var v=a;return v instanceof i||(v=new i(f).setContent(a)),c&&v.setLatLng(c),v}}),fn.include({_initOverlay:function(i,a,c,f){var v=c;return v instanceof i?(x(v,f),v._source=this):(v=a&&!f?a:new i(f,this),v.setContent(c)),v}});var gl=Fn.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(i){return i=arguments.length?i:this._source._map,!i.hasLayer(this)&&i._popup&&i._popup.options.autoClose&&i.removeLayer(i._popup),i._popup=this,Fn.prototype.openOn.call(this,i)},onAdd:function(i){Fn.prototype.onAdd.call(this,i),i.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof jr||this._source.on("preclick",yi))},onRemove:function(i){Fn.prototype.onRemove.call(this,i),i.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof jr||this._source.off("preclick",yi))},getEvents:function(){var i=Fn.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(i.preclick=this.close),this.options.keepInView&&(i.moveend=this._adjustPan),i},_initLayout:function(){var i="leaflet-popup",a=this._container=be("div",i+" "+(this.options.className||"")+" leaflet-zoom-animated"),c=this._wrapper=be("div",i+"-content-wrapper",a);if(this._contentNode=be("div",i+"-content",c),Oo(a),Kc(this._contentNode),fe(a,"contextmenu",yi),this._tipContainer=be("div",i+"-tip-container",a),this._tip=be("div",i+"-tip",this._tipContainer),this.options.closeButton){var f=this._closeButton=be("a",i+"-close-button",a);f.setAttribute("role","button"),f.setAttribute("aria-label","Close popup"),f.href="#close",f.innerHTML='<span aria-hidden="true">&#215;</span>',fe(f,"click",function(v){st(v),this.close()},this)}},_updateLayout:function(){var i=this._contentNode,a=i.style;a.width="",a.whiteSpace="nowrap";var c=i.offsetWidth;c=Math.min(c,this.options.maxWidth),c=Math.max(c,this.options.minWidth),a.width=c+1+"px",a.whiteSpace="",a.height="";var f=i.offsetHeight,v=this.options.maxHeight,k="leaflet-popup-scrolled";v&&f>v?(a.height=v+"px",ge(i,k)):He(i,k),this._containerWidth=this._container.offsetWidth},_animateZoom:function(i){var a=this._map._latLngToNewLayerPoint(this._latlng,i.zoom,i.center),c=this._getAnchor();Ke(this._container,a.add(c))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var i=this._map,a=parseInt(Po(this._container,"marginBottom"),10)||0,c=this._container.offsetHeight+a,f=this._containerWidth,v=new R(this._containerLeft,-c-this._containerBottom);v._add(vi(this._container));var k=i.layerPointToContainerPoint(v),j=z(this.options.autoPanPadding),A=z(this.options.autoPanPaddingTopLeft||j),M=z(this.options.autoPanPaddingBottomRight||j),F=i.getSize(),K=0,ae=0;k.x+f+M.x>F.x&&(K=k.x+f-F.x+M.x),k.x-K-A.x<0&&(K=k.x-A.x),k.y+c+M.y>F.y&&(ae=k.y+c-F.y+M.y),k.y-ae-A.y<0&&(ae=k.y-A.y),(K||ae)&&(this.options.keepInView&&(this._autopanning=!0),i.fire("autopanstart").panBy([K,ae]))}},_getAnchor:function(){return z(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),X1=function(i,a){return new gl(i,a)};we.mergeOptions({closePopupOnClick:!0}),we.include({openPopup:function(i,a,c){return this._initOverlay(gl,i,a,c).openOn(this),this},closePopup:function(i){return i=arguments.length?i:this._popup,i&&i.close(),this}}),fn.include({bindPopup:function(i,a){return this._popup=this._initOverlay(gl,this._popup,i,a),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(i){return this._popup&&(this instanceof ir||(this._popup._source=this),this._popup._prepareOpen(i||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(i){return this._popup&&this._popup.setContent(i),this},getPopup:function(){return this._popup},_openPopup:function(i){if(!(!this._popup||!this._map)){_i(i);var a=i.layer||i.target;if(this._popup._source===a&&!(a instanceof jr)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(i.latlng);return}this._popup._source=a,this.openPopup(i.latlng)}},_movePopup:function(i){this._popup.setLatLng(i.latlng)},_onKeyPress:function(i){i.originalEvent.keyCode===13&&this._openPopup(i)}});var vl=Fn.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(i){Fn.prototype.onAdd.call(this,i),this.setOpacity(this.options.opacity),i.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(i){Fn.prototype.onRemove.call(this,i),i.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var i=Fn.prototype.getEvents.call(this);return this.options.permanent||(i.preclick=this.close),i},_initLayout:function(){var i="leaflet-tooltip",a=i+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=be("div",a),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+
229d(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(i){var a,c,f=this._map,v=this._container,k=f.latLngToContainerPoint(f.getCenter()),j=f.layerPointToContainerPoint(i),A=this.options.direction,M=v.offsetWidth,F=v.offsetHeight,K=z(this.options.offset),ae=this._getAnchor();A==="top"?(a=M/2,c=F):A==="bottom"?(a=M/2,c=0):A==="center"?(a=M/2,c=F/2):A==="right"?(a=0,c=F/2):A==="left"?(a=M,c=F/2):j.x<k.x?(A="right",a=0,c=F/2):(A="left",a=M+(K.x+ae.x)*2,c=F/2),i=i.subtract(z(a,c,!0)).add(K).add(ae),He(v,"leaflet-tooltip-right"),He(v,"leaflet-tooltip-left"),He(v,"leaflet-tooltip-top"),He(v,"leaflet-tooltip-bottom"),ge(v,"leaflet-tooltip-"+A),Ke(v,i)},_updatePosition:function(){var i=this._map.latLngToLayerPoint(this._latlng);this._setPosition(i)},setOpacity:function(i){this.options.opacity=i,this._container&&Yt(this._container,i)},_animateZoom:function(i){var a=this._map._latLngToNewLayerPoint(this._latlng,i.zoom,i.center);this._setPosition(a)},_getAnchor:function(){return z(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),eS=function(i,a){return new vl(i,a)};we.include({openTooltip:function(i,a,c){return this._initOverlay(vl,i,a,c).openOn(this),this},closeTooltip:function(i){return i.close(),this}}),fn.include({bindTooltip:function(i,a){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(vl,this._tooltip,i,a),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(i){if(!(!i&&this._tooltipHandlersAdded)){var a=i?"off":"on",c={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?c.add=this._openTooltip:(c.mouseover=this._openTooltip,c.mouseout=this.closeTooltip,c.click=this._openTooltip,this._map?this._addFocusListeners():c.add=this._addFocusListeners),this._tooltip.options.sticky&&(c.mousemove=this._moveTooltip),this[a](c),this._tooltipHandlersAdded=!i}},openTooltip:function(i){return this._tooltip&&(this instanceof ir||(this._tooltip._source=this),this._tooltip._prepareOpen(i)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(i){return this._tooltip&&this._tooltip.setContent(i),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(i){var a=typeof i.getElement=="function"&&i.getElement();a&&(fe(a,"focus",function(){this._tooltip._source=i,this.openTooltip()},this),fe(a,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(i){var a=typeof i.getElement=="function"&&i.getElement();a&&a.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(i){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var a=this;this._map.once("moveend",function(){a._openOnceFlag=!1,a._openTooltip(i)});return}this._tooltip._source=i.layer||i.target,this.openTooltip(this._tooltip.options.sticky?i.latlng:void 0)}},_moveTooltip:function(i){var a=i.latlng,c,f;this._tooltip.options.sticky&&i.originalEvent&&(c=this._map.mouseEventToContainerPoint(i.originalEvent),f=this._map.containerPointToLayerPoint(c),a=this._map.layerPointToLatLng(f)),this._tooltip.setLatLng(a)}});var Pm=os.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(i){var a=i&&i.tagName==="DIV"?i:document.createElement("div"),c=this.options;if(c.html instanceof Element?(rl(a),a.appendChild(c.html)):a.innerHTML=c.html!==!1?c.html:"",c.bgPos){var f=z(c.bgPos);a.style.backgroundPosition=-f.x+"px "+-f.y+"px"}return this._setIconStyles(a,"icon"),a},createShadow:function(){return null}});function tS(i){return new Pm(i)}os.Default=Lo;var Ro=fn.extend({options:{tileSize:256,opacity:1,updateWhenIdle:ne.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(i){x(this,i)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()}
229,beforeAdd:function(i){i._addZoomLimit(this)},onRemove:function(i){this._removeAllTiles(),Ie(this._container),i._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(rs(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(is(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(i){return this.options.opacity=i,this._updateOpacity(),this},setZIndex:function(i){return this.options.zIndex=i,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var i=this._clampZoom(this._map.getZoom());i!==this._tileZoom&&(this._tileZoom=i,this._updateLevels()),this._update()}return this},getEvents:function(){var i={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=h(this._onMoveEnd,this.options.updateInterval,this)),i.move=this._onMove),this._zoomAnimated&&(i.zoomanim=this._animateZoom),i},createTile:function(){return document.createElement("div")},getTileSize:function(){var i=this.options.tileSize;return i instanceof R?i:new R(i,i)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(i){for(var a=this.getPane().children,c=-i(-1/0,1/0),f=0,v=a.length,k;f<v;f++)k=a[f].style.zIndex,a[f]!==this._container&&k&&(c=i(c,+k));isFinite(c)&&(this.options.zIndex=c+i(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!ne.ielt9){Yt(this._container,this.options.opacity);var i=+new Date,a=!1,c=!1;for(var f in this._tiles){var v=this._tiles[f];if(!(!v.current||!v.loaded)){var k=Math.min(1,(i-v.loaded)/200);Yt(v.el,k),k<1?a=!0:(v.active?c=!0:this._onOpaqueTile(v),v.active=!0)}}c&&!this._noPrune&&this._pruneTiles(),a&&(V(this._fadeFrame),this._fadeFrame=Y(this._updateOpacity,this))}},_onOpaqueTile:g,_initContainer:function(){this._container||(this._container=be("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var i=this._tileZoom,a=this.options.maxZoom;if(i!==void 0){for(var c in this._levels)c=Number(c),this._levels[c].el.children.length||c===i?(this._levels[c].el.style.zIndex=a-Math.abs(i-c),this._onUpdateLevel(c)):(Ie(this._levels[c].el),this._removeTilesAtZoom(c),this._onRemoveLevel(c),delete this._levels[c]);var f=this._levels[i],v=this._map;return f||(f=this._levels[i]={},f.el=be("div","leaflet-tile-container leaflet-zoom-animated",this._container),f.el.style.zIndex=a,f.origin=v.project(v.unproject(v.getPixelOrigin()),i).round(),f.zoom=i,this._setZoomTransform(f,v.getCenter(),v.getZoom()),g(f.el.offsetWidth),this._onCreateLevel(f)),this._level=f,f}},_onUpdateLevel:g,_onRemoveLevel:g,_onCreateLevel:g,_pruneTiles:function(){if(this._map){var i,a,c=this._map.getZoom();if(c>this.options.maxZoom||c<this.options.minZoom){this._removeAllTiles();return}for(i in this._tiles)a=this._tiles[i],a.retain=a.current;for(i in this._tiles)if(a=this._tiles[i],a.current&&!a.active){var f=a.coords;this._retainParent(f.x,f.y,f.z,f.z-5)||this._retainChildren(f.x,f.y,f.z,f.z+2)}for(i in this._tiles)this._tiles[i].retain||this._removeTile(i)}},_removeTilesAtZoom:function(i){for(var a in this._tiles)this._tiles[a].coords.z===i&&this._removeTile(a)},_removeAllTiles:function(){for(var i in this._tiles)this._removeTile(i)},_invalidateAll:function(){for(var i in this._levels)Ie(this._levels[i].el),this._onRemoveLevel(Number(i)),delete this._levels[i];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(i,a,c,f){var v=Math.floor(i/2),k=Math.floor(a/2),j=c-1,A=new R(+v,+k);A.z=+j;var M=this._tileCoordsToKey(A),F=this._tiles[M];return F&&F.active?(F.retain=!0,!0):(F&&F.loaded&&(F.retain=!0),j>f?this._retainParent(v,k,j,f):!1)},_retainChildren:function(i,a,c,f){for(var v=2*i;v<2*i+2;v++)for(var k=2*a;k<2*a+2;k++){var j=new R(v,k);j.z=c+1;var A=this._tileCoordsToKey(j),M=this._tiles[A];if(M&&M.active){M.retain=!0;continue}else M&&M.loaded&&(M.retain=!0);c+1<f&&this._retainChildren(v,k,c+1,f)}},_resetView:function(i){var a=i&&(i.pinch||i.flyTo);
vendor: 5,332 bytes, line 229
229this._setView(this._map.getCenter(),this._map.getZoom(),a,a)},_animateZoom:function(i){this._setView(i.center,i.zoom,!0,i.noUpdate)},_clampZoom:function(i){var a=this.options;return a.minNativeZoom!==void 0&&i<a.minNativeZoom?a.minNativeZoom:a.maxNativeZoom!==void 0&&a.maxNativeZoom<i?a.maxNativeZoom:i},_setView:function(i,a,c,f){var v=Math.round(a);this.options.maxZoom!==void 0&&v>this.options.maxZoom||this.options.minZoom!==void 0&&v<this.options.minZoom?v=void 0:v=this._clampZoom(v);var k=this.options.updateWhenZooming&&v!==this._tileZoom;(!f||k)&&(this._tileZoom=v,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),v!==void 0&&this._update(i),c||this._pruneTiles(),this._noPrune=!!c),this._setZoomTransforms(i,a)},_setZoomTransforms:function(i,a){for(var c in this._levels)this._setZoomTransform(this._levels[c],i,a)},_setZoomTransform:function(i,a,c){var f=this._map.getZoomScale(c,i.zoom),v=i.origin.multiplyBy(f).subtract(this._map._getNewPixelOrigin(a,c)).round();ne.any3d?gi(i.el,v,f):Ke(i.el,v)},_resetGrid:function(){var i=this._map,a=i.options.crs,c=this._tileSize=this.getTileSize(),f=this._tileZoom,v=this._map.getPixelWorldBounds(this._tileZoom);v&&(this._globalTileRange=this._pxBoundsToTileRange(v)),this._wrapX=a.wrapLng&&!this.options.noWrap&&[Math.floor(i.project([0,a.wrapLng[0]],f).x/c.x),Math.ceil(i.project([0,a.wrapLng[1]],f).x/c.y)],this._wrapY=a.wrapLat&&!this.options.noWrap&&[Math.floor(i.project([a.wrapLat[0],0],f).y/c.x),Math.ceil(i.project([a.wrapLat[1],0],f).y/c.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(i){var a=this._map,c=a._animatingZoom?Math.max(a._animateToZoom,a.getZoom()):a.getZoom(),f=a.getZoomScale(c,this._tileZoom),v=a.project(i,this._tileZoom).floor(),k=a.getSize().divideBy(f*2);return new J(v.subtract(k),v.add(k))},_update:function(i){var a=this._map;if(a){var c=this._clampZoom(a.getZoom());if(i===void 0&&(i=a.getCenter()),this._tileZoom!==void 0){var f=this._getTiledPixelBounds(i),v=this._pxBoundsToTileRange(f),k=v.getCenter(),j=[],A=this.options.keepBuffer,M=new J(v.getBottomLeft().subtract([A,-A]),v.getTopRight().add([A,-A]));if(!(isFinite(v.min.x)&&isFinite(v.min.y)&&isFinite(v.max.x)&&isFinite(v.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var F in this._tiles){var K=this._tiles[F].coords;(K.z!==this._tileZoom||!M.contains(new R(K.x,K.y)))&&(this._tiles[F].current=!1)}if(Math.abs(c-this._tileZoom)>1){this._setView(i,c);return}for(var ae=v.min.y;ae<=v.max.y;ae++)for(var ye=v.min.x;ye<=v.max.x;ye++){var yt=new R(ye,ae);if(yt.z=this._tileZoom,!!this._isValidTile(yt)){var nt=this._tiles[this._tileCoordsToKey(yt)];nt?nt.current=!0:j.push(yt)}}if(j.sort(function(jt,cs){return jt.distanceTo(k)-cs.distanceTo(k)}),j.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var en=document.createDocumentFragment();for(ye=0;ye<j.length;ye++)this._addTile(j[ye],en);this._level.el.appendChild(en)}}}},_isValidTile:function(i){var a=this._map.options.crs;if(!a.infinite){var c=this._globalTileRange;if(!a.wrapLng&&(i.x<c.min.x||i.x>c.max.x)||!a.wrapLat&&(i.y<c.min.y||i.y>c.max.y))return!1}if(!this.options.bounds)return!0;var f=this._tileCoordsToBounds(i);return te(this.options.bounds).overlaps(f)},_keyToBounds:function(i){return this._tileCoordsToBounds(this._keyToTileCoords(i))},_tileCoordsToNwSe:function(i){var a=this._map,c=this.getTileSize(),f=i.scaleBy(c),v=f.add(c),k=a.unproject(f,i.z),j=a.unproject(v,i.z);return[k,j]},_tileCoordsToBounds:function(i){var a=this._tileCoordsToNwSe(i),c=new ie(a[0],a[1]);return this.options.noWrap||(c=this._map.wrapLatLngBounds(c)),c},_tileCoordsToKey:function(i){return i.x+":"+i.y+":"+i.z},_keyToTileCoords:function(i){var a=i.split(":"),c=new R(+a[0],+a[1]);return c.z=+a[2],c},_removeTile:function(i){var a=this._tiles[i];a&&(Ie(a.el),delete this._tiles[i],this.fire("tileunload",{tile:a.el,coords:this._keyToTileCoords(i)}))},_initTile:function(i){ge(i,"leaflet-tile");var a=this.getTileSize();i.style.width=a.x+"px",i.style.height=a.y+"px",i.onselectstart=g,i.onmousemove=g,ne.ielt9&&this.options.opacity<1&&Yt(i,this.options.opacity)},_addTile:function(i,a){var c=this._getTilePos(i),f=this._tileCoordsToKey(i),v=this.createTile(this._wrapCoords(i),l(this._tileReady,this,i));this._initTile(v),this.createTile.length<2&&Y(l(this._tileReady,this,i,null,v)),Ke(v,c),this._tiles[f]={el:v,coords:i,current:!0},a.appendChild(v),this.fire("tileloadstart",{tile:v,coords:i})},_tileReady:function(i,a,c){a&&this.fire("tileerror",{error:a,tile:c,coords:i});var f=this._tileCoordsToKey(i);c=this._tiles[f],c&&(c.loaded=+new Date,this._map._fadeAnimated?(Yt(c.el,0),V(this._fadeFrame),this._fadeFrame=Y(this._updateOpacity,this)):(c.active=!0,this._pruneTiles()),a||(ge(c.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:c.el,coords:i})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),ne.ielt9||!this._map._fadeAnimated?Y(this._pruneTiles,this):setTimeout(l(this._pruneTiles,this),250)))},_getTilePos:function(i){return i.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(i){var a=new R(this._wrapX?m(i.x,this._wrapX):i.x,this._wrapY?m(i.y,this._wrapY):i.y);return a.z=i.z,a},_pxBoundsToTileRange:function(i){var a=this.getTileSize();
vendor: 5,239 bytes, line 229
229return new J(i.min.unscaleBy(a).floor(),i.max.unscaleBy(a).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var i in this._tiles)if(!this._tiles[i].loaded)return!1;return!0}});function nS(i){return new Ro(i)}var us=Ro.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(i,a){this._url=i,a=x(this,a),a.detectRetina&&ne.retina&&a.maxZoom>0?(a.tileSize=Math.floor(a.tileSize/2),a.zoomReverse?(a.zoomOffset--,a.minZoom=Math.min(a.maxZoom,a.minZoom+1)):(a.zoomOffset++,a.maxZoom=Math.max(a.minZoom,a.maxZoom-1)),a.minZoom=Math.max(0,a.minZoom)):a.zoomReverse?a.minZoom=Math.min(a.maxZoom,a.minZoom):a.maxZoom=Math.max(a.minZoom,a.maxZoom),typeof a.subdomains=="string"&&(a.subdomains=a.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(i,a){return this._url===i&&a===void 0&&(a=!0),this._url=i,a||this.redraw(),this},createTile:function(i,a){var c=document.createElement("img");return fe(c,"load",l(this._tileOnLoad,this,a,c)),fe(c,"error",l(this._tileOnError,this,a,c)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(c.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(c.referrerPolicy=this.options.referrerPolicy),c.alt="",c.src=this.getTileUrl(i),c},getTileUrl:function(i){var a={r:ne.retina?"@2x":"",s:this._getSubdomain(i),x:i.x,y:i.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var c=this._globalTileRange.max.y-i.y;this.options.tms&&(a.y=c),a["-y"]=c}return w(this._url,s(a,this.options))},_tileOnLoad:function(i,a){ne.ielt9?setTimeout(l(i,this,null,a),0):i(null,a)},_tileOnError:function(i,a,c){var f=this.options.errorTileUrl;f&&a.getAttribute("src")!==f&&(a.src=f),i(c,a)},_onTileRemove:function(i){i.tile.onload=null},_getZoomForUrl:function(){var i=this._tileZoom,a=this.options.maxZoom,c=this.options.zoomReverse,f=this.options.zoomOffset;return c&&(i=a-i),i+f},_getSubdomain:function(i){var a=Math.abs(i.x+i.y)%this.options.subdomains.length;return this.options.subdomains[a]},_abortLoading:function(){var i,a;for(i in this._tiles)if(this._tiles[i].coords.z!==this._tileZoom&&(a=this._tiles[i].el,a.onload=g,a.onerror=g,!a.complete)){a.src=O;var c=this._tiles[i].coords;Ie(a),delete this._tiles[i],this.fire("tileabort",{tile:a,coords:c})}},_removeTile:function(i){var a=this._tiles[i];if(a)return a.el.setAttribute("src",O),Ro.prototype._removeTile.call(this,i)},_tileReady:function(i,a,c){if(!(!this._map||c&&c.getAttribute("src")===O))return Ro.prototype._tileReady.call(this,i,a,c)}});function Cm(i,a){return new us(i,a)}var Tm=us.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(i,a){this._url=i;var c=s({},this.defaultWmsParams);for(var f in a)f in this.options||(c[f]=a[f]);a=x(this,a);var v=a.detectRetina&&ne.retina?2:1,k=this.getTileSize();c.width=k.x*v,c.height=k.y*v,this.wmsParams=c},onAdd:function(i){this._crs=this.options.crs||i.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var a=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[a]=this._crs.code,us.prototype.onAdd.call(this,i)},getTileUrl:function(i){var a=this._tileCoordsToNwSe(i),c=this._crs,f=G(c.project(a[0]),c.project(a[1])),v=f.min,k=f.max,j=(this._wmsVersion>=1.3&&this._crs===wm?[v.y,v.x,k.y,k.x]:[v.x,v.y,k.x,k.y]).join(","),A=us.prototype.getTileUrl.call(this,i);return A+E(this.wmsParams,A,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+j},setParams:function(i,a){return s(this.wmsParams,i),a||this.redraw(),this}});function rS(i,a){return new Tm(i,a)}us.WMS=Tm,Cm.wms=rS;var ar=fn.extend({options:{padding:.1},initialize:function(i){x(this,i),d(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),ge(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var i={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(i.zoomanim=this._onAnimZoom),i},_onAnimZoom:function(i){this._updateTransform(i.center,i.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(i,a){var c=this._map.getZoomScale(a,this._zoom),f=this._map.getSize().multiplyBy(.5+this.options.padding),v=this._map.project(this._center,a),k=f.multiplyBy(-c).add(v).subtract(this._map._getNewPixelOrigin(i,a));ne.any3d?gi(this._container,k,c):Ke(this._container,k)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var i in this._layers)this._layers[i]._reset()},_onZoomEnd:function(){for(var i in this._layers)this._layers[i]._project()},_updatePaths:function(){for(var i in this._layers)this._layers[i]._update()},_update:function(){var i=this.options.padding,a=this._map.getSize(),c=this._map.containerPointToLayerPoint(a.multiplyBy(-i)).round();
vendor: 4,450 bytes, line 229
229this._bounds=new J(c,c.add(a.multiplyBy(1+i*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),jm=ar.extend({options:{tolerance:0},getEvents:function(){var i=ar.prototype.getEvents.call(this);return i.viewprereset=this._onViewPreReset,i},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){ar.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var i=this._container=document.createElement("canvas");fe(i,"mousemove",this._onMouseMove,this),fe(i,"click dblclick mousedown mouseup contextmenu",this._onClick,this),fe(i,"mouseout",this._handleMouseOut,this),i._leaflet_disable_events=!0,this._ctx=i.getContext("2d")},_destroyContainer:function(){V(this._redrawRequest),delete this._ctx,Ie(this._container),Te(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var i;this._redrawBounds=null;for(var a in this._layers)i=this._layers[a],i._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){ar.prototype._update.call(this);var i=this._bounds,a=this._container,c=i.getSize(),f=ne.retina?2:1;Ke(a,i.min),a.width=f*c.x,a.height=f*c.y,a.style.width=c.x+"px",a.style.height=c.y+"px",ne.retina&&this._ctx.scale(2,2),this._ctx.translate(-i.min.x,-i.min.y),this.fire("update")}},_reset:function(){ar.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(i){this._updateDashArray(i),this._layers[d(i)]=i;var a=i._order={layer:i,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=a),this._drawLast=a,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(i){this._requestRedraw(i)},_removePath:function(i){var a=i._order,c=a.next,f=a.prev;c?c.prev=f:this._drawLast=f,f?f.next=c:this._drawFirst=c,delete i._order,delete this._layers[d(i)],this._requestRedraw(i)},_updatePath:function(i){this._extendRedrawBounds(i),i._project(),i._update(),this._requestRedraw(i)},_updateStyle:function(i){this._updateDashArray(i),this._requestRedraw(i)},_updateDashArray:function(i){if(typeof i.options.dashArray=="string"){var a=i.options.dashArray.split(/[, ]+/),c=[],f,v;for(v=0;v<a.length;v++){if(f=Number(a[v]),isNaN(f))return;c.push(f)}i.options._dashArray=c}else i.options._dashArray=i.options.dashArray},_requestRedraw:function(i){this._map&&(this._extendRedrawBounds(i),this._redrawRequest=this._redrawRequest||Y(this._redraw,this))},_extendRedrawBounds:function(i){if(i._pxBounds){var a=(i.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new J,this._redrawBounds.extend(i._pxBounds.min.subtract([a,a])),this._redrawBounds.extend(i._pxBounds.max.add([a,a]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var i=this._redrawBounds;if(i){var a=i.getSize();this._ctx.clearRect(i.min.x,i.min.y,a.x,a.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var i,a=this._redrawBounds;if(this._ctx.save(),a){var c=a.getSize();this._ctx.beginPath(),this._ctx.rect(a.min.x,a.min.y,c.x,c.y),this._ctx.clip()}this._drawing=!0;for(var f=this._drawFirst;f;f=f.next)i=f.layer,(!a||i._pxBounds&&i._pxBounds.intersects(a))&&i._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(i,a){if(this._drawing){var c,f,v,k,j=i._parts,A=j.length,M=this._ctx;if(A){for(M.beginPath(),c=0;c<A;c++){for(f=0,v=j[c].length;f<v;f++)k=j[c][f],M[f?"lineTo":"moveTo"](k.x,k.y);a&&M.closePath()}this._fillStroke(M,i)}}},_updateCircle:function(i){if(!(!this._drawing||i._empty())){var a=i._point,c=this._ctx,f=Math.max(Math.round(i._radius),1),v=(Math.max(Math.round(i._radiusY),1)||f)/f;v!==1&&(c.save(),c.scale(1,v)),c.beginPath(),c.arc(a.x,a.y/v,f,0,Math.PI*2,!1),v!==1&&c.restore(),this._fillStroke(c,i)}},_fillStroke:function(i,a){var c=a.options;c.fill&&(i.globalAlpha=c.fillOpacity,i.fillStyle=c.fillColor||c.color,i.fill(c.fillRule||"evenodd")),c.stroke&&c.weight!==0&&(i.setLineDash&&i.setLineDash(a.options&&a.options._dashArray||[]),i.globalAlpha=c.opacity,i.lineWidth=c.weight,i.strokeStyle=c.color,i.lineCap=c.lineCap,i.lineJoin=c.lineJoin,i.stroke())},_onClick:function(i){for(var a=this._map.mouseEventToLayerPoint(i),c,f,v=this._drawFirst;v;
229v=v.next)c=v.layer,c.options.interactive&&c._containsPoint(a)&&(!(i.type==="click"||i.type==="preclick")||!this._map._draggableMoved(c))&&(f=c);this._fireEvent(f?[f]:!1,i)},_onMouseMove:function(i){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var a=this._map.mouseEventToLayerPoint(i);this._handleMouseHover(i,a)}},_handleMouseOut:function(i){var a=this._hoveredLayer;a&&(He(this._container,"leaflet-interactive"),this._fireEvent([a],i,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(i,a){if(!this._mouseHoverThrottled){for(var c,f,v=this._drawFirst;v;v=v.next)c=v.layer,c.options.interactive&&c._containsPoint(a)&&(f=c);f!==this._hoveredLayer&&(this._handleMouseOut(i),f&&(ge(this._container,"leaflet-interactive"),this._fireEvent([f],i,"mouseover"),this._hoveredLayer=f)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,i),this._mouseHoverThrottled=!0,setTimeout(l(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(i,a,c){this._map._fireDOMEvent(a,c||a.type,i)},_bringToFront:function(i){var a=i._order;if(a){var c=a.next,f=a.prev;if(c)c.prev=f;else return;f?f.next=c:c&&(this._drawFirst=c),a.prev=this._drawLast,this._drawLast.next=a,a.next=null,this._drawLast=a,this._requestRedraw(i)}},_bringToBack:function(i){var a=i._order;if(a){var c=a.next,f=a.prev;if(f)f.next=c;else return;c?c.prev=f:f&&(this._drawLast=f),a.prev=null,a.next=this._drawFirst,this._drawFirst.prev=a,this._drawFirst=a,this._requestRedraw(i)}}});function Om(i){return ne.canvas?new jm(i):null}var Io=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(i){return document.createElement("<lvml:"+i+' class="lvml">')}}catch{}return function(i){return document.createElement("<"+i+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),iS={_initContainer:function(){this._container=be("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(ar.prototype._update.call(this),this.fire("update"))},_initPath:function(i){var a=i._container=Io("shape");ge(a,"leaflet-vml-shape "+(this.options.className||"")),a.coordsize="1 1",i._path=Io("path"),a.appendChild(i._path),this._updateStyle(i),this._layers[d(i)]=i},_addPath:function(i){var a=i._container;this._container.appendChild(a),i.options.interactive&&i.addInteractiveTarget(a)},_removePath:function(i){var a=i._container;Ie(a),i.removeInteractiveTarget(a),delete this._layers[d(i)]},_updateStyle:function(i){var a=i._stroke,c=i._fill,f=i.options,v=i._container;v.stroked=!!f.stroke,v.filled=!!f.fill,f.stroke?(a||(a=i._stroke=Io("stroke")),v.appendChild(a),a.weight=f.weight+"px",a.color=f.color,a.opacity=f.opacity,f.dashArray?a.dashStyle=b(f.dashArray)?f.dashArray.join(" "):f.dashArray.replace(/( *, *)/g," "):a.dashStyle="",a.endcap=f.lineCap.replace("butt","flat"),a.joinstyle=f.lineJoin):a&&(v.removeChild(a),i._stroke=null),f.fill?(c||(c=i._fill=Io("fill")),v.appendChild(c),c.color=f.fillColor||f.color,c.opacity=f.fillOpacity):c&&(v.removeChild(c),i._fill=null)},_updateCircle:function(i){var a=i._point.round(),c=Math.round(i._radius),f=Math.round(i._radiusY||c);this._setPath(i,i._empty()?"M0 0":"AL "+a.x+","+a.y+" "+c+","+f+" 0,"+65535*360)},_setPath:function(i,a){i._path.v=a},_bringToFront:function(i){rs(i._container)},_bringToBack:function(i){is(i._container)}},yl=ne.vml?Io:Xi,Mo=ar.extend({_initContainer:function(){this._container=yl("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=yl("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Ie(this._container),Te(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){ar.prototype._update.call(this);var i=this._bounds,a=i.getSize(),c=this._container;(!this._svgSize||!this._svgSize.equals(a))&&(this._svgSize=a,c.setAttribute("width",a.x),c.setAttribute("height",a.y)),Ke(c,i.min),c.setAttribute("viewBox",[i.min.x,i.min.y,a.x,a.y].join(" ")),this.fire("update")}},_initPath:function(i){var a=i._path=yl("path");i.options.className&&ge(a,i.options.className),i.options.interactive&&ge(a,"leaflet-interactive"),this._updateStyle(i),this._layers[d(i)]=i},_addPath:function(i){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(i._path),i.addInteractiveTarget(i._path)},_removePath:function(i){Ie(i._path),i.removeInteractiveTarget(i._path),delete this._layers[d(i)]},_updatePath:function(i){i._project(),i._update()},_updateStyle:function(i){var a=i._path,c=i.options;
229a&&(c.stroke?(a.setAttribute("stroke",c.color),a.setAttribute("stroke-opacity",c.opacity),a.setAttribute("stroke-width",c.weight),a.setAttribute("stroke-linecap",c.lineCap),a.setAttribute("stroke-linejoin",c.lineJoin),c.dashArray?a.setAttribute("stroke-dasharray",c.dashArray):a.removeAttribute("stroke-dasharray"),c.dashOffset?a.setAttribute("stroke-dashoffset",c.dashOffset):a.removeAttribute("stroke-dashoffset")):a.setAttribute("stroke","none"),c.fill?(a.setAttribute("fill",c.fillColor||c.color),a.setAttribute("fill-opacity",c.fillOpacity),a.setAttribute("fill-rule",c.fillRule||"evenodd")):a.setAttribute("fill","none"))},_updatePoly:function(i,a){this._setPath(i,hi(i._parts,a))},_updateCircle:function(i){var a=i._point,c=Math.max(Math.round(i._radius),1),f=Math.max(Math.round(i._radiusY),1)||c,v="a"+c+","+f+" 0 1,0 ",k=i._empty()?"M0 0":"M"+(a.x-c)+","+a.y+v+c*2+",0 "+v+-c*2+",0 ";this._setPath(i,k)},_setPath:function(i,a){i._path.setAttribute("d",a)},_bringToFront:function(i){rs(i._path)},_bringToBack:function(i){is(i._path)}});ne.vml&&Mo.include(iS);function Nm(i){return ne.svg||ne.vml?new Mo(i):null}we.include({getRenderer:function(i){var a=i.options.renderer||this._getPaneRenderer(i.options.pane)||this.options.renderer||this._renderer;return a||(a=this._renderer=this._createRenderer()),this.hasLayer(a)||this.addLayer(a),a},_getPaneRenderer:function(i){if(i==="overlayPane"||i===void 0)return!1;var a=this._paneRenderers[i];return a===void 0&&(a=this._createRenderer({pane:i}),this._paneRenderers[i]=a),a},_createRenderer:function(i){return this.options.preferCanvas&&Om(i)||Nm(i)}});var Am=as.extend({initialize:function(i,a){as.prototype.initialize.call(this,this._boundsToLatLngs(i),a)},setBounds:function(i){return this.setLatLngs(this._boundsToLatLngs(i))}
vendor: 10,135 bytes, line 229
229,_boundsToLatLngs:function(i){return i=te(i),[i.getSouthWest(),i.getNorthWest(),i.getNorthEast(),i.getSouthEast()]}});function sS(i,a){return new Am(i,a)}Mo.create=yl,Mo.pointsToPath=hi,or.geometryToLayer=dl,or.coordsToLatLng=rd,or.coordsToLatLngs=hl,or.latLngToCoords=id,or.latLngsToCoords=fl,or.getFeature=ls,or.asFeature=pl,we.mergeOptions({boxZoom:!0});var Lm=$n.extend({initialize:function(i){this._map=i,this._container=i._container,this._pane=i._panes.overlayPane,this._resetStateTimeout=0,i.on("unload",this._destroy,this)},addHooks:function(){fe(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Te(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Ie(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(i){if(!i.shiftKey||i.which!==1&&i.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),Co(),$c(),this._startPoint=this._map.mouseEventToContainerPoint(i),fe(document,{contextmenu:_i,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(i){this._moved||(this._moved=!0,this._box=be("div","leaflet-zoom-box",this._container),ge(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(i);var a=new J(this._point,this._startPoint),c=a.getSize();Ke(this._box,a.min),this._box.style.width=c.x+"px",this._box.style.height=c.y+"px"},_finish:function(){this._moved&&(Ie(this._box),He(this._container,"leaflet-crosshair")),To(),Fc(),Te(document,{contextmenu:_i,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(i){if(!(i.which!==1&&i.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(l(this._resetState,this),0);var a=new ie(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(a).fire("boxzoomend",{boxZoomBounds:a})}},_onKeyDown:function(i){i.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});we.addInitHook("addHandler","boxZoom",Lm),we.mergeOptions({doubleClickZoom:!0});var Rm=$n.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(i){var a=this._map,c=a.getZoom(),f=a.options.zoomDelta,v=i.originalEvent.shiftKey?c-f:c+f;a.options.doubleClickZoom==="center"?a.setZoom(v):a.setZoomAround(i.containerPoint,v)}});we.addInitHook("addHandler","doubleClickZoom",Rm),we.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Im=$n.extend({addHooks:function(){if(!this._draggable){var i=this._map;this._draggable=new Tr(i._mapPane,i._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),i.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),i.on("zoomend",this._onZoomEnd,this),i.whenReady(this._onZoomEnd,this))}ge(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){He(this._map._container,"leaflet-grab"),He(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var i=this._map;if(i._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var a=te(this._map.options.maxBounds);this._offsetLimit=G(this._map.latLngToContainerPoint(a.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(a.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;i.fire("movestart").fire("dragstart"),i.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(i){if(this._map.options.inertia){var a=this._lastTime=+new Date,c=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(c),this._times.push(a),this._prunePositions(a)}this._map.fire("move",i).fire("drag",i)},_prunePositions:function(i){for(;this._positions.length>1&&i-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var i=this._map.getSize().divideBy(2),a=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=a.subtract(i).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(i,a){return i-(i-a)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var i=this._draggable._newPos.subtract(this._draggable._startPos),a=this._offsetLimit;i.x<a.min.x&&(i.x=this._viscousLimit(i.x,a.min.x)),i.y<a.min.y&&(i.y=this._viscousLimit(i.y,a.min.y)),i.x>a.max.x&&(i.x=this._viscousLimit(i.x,a.max.x)),i.y>a.max.y&&(i.y=this._viscousLimit(i.y,a.max.y)),this._draggable._newPos=this._draggable._startPos.add(i)}},_onPreDragWrap:function(){var i=this._worldWidth,a=Math.round(i/2),c=this._initialWorldOffset,f=this._draggable._newPos.x,v=(f-a+c)%i+a-c,k=(f+a+c)%i-a-c,j=Math.abs(v+c)<Math.abs(k+c)?v:k;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=j},_onDragEnd:function(i){var a=this._map,c=a.options,f=!c.inertia||i.noInertia||this._times.length<2;if(a.fire("dragend",i),f)a.fire("moveend");else{this._prunePositions(+new Date);var v=this._lastPos.subtract(this._positions[0]),k=(this._lastTime-this._times[0])/1e3,j=c.easeLinearity,A=v.multiplyBy(j/k),M=A.distanceTo([0,0]),F=Math.min(c.inertiaMaxSpeed,M),K=A.multiplyBy(F/M),ae=F/(c.inertiaDeceleration*j),ye=K.multiplyBy(-ae/2).round();!ye.x&&!ye.y?a.fire("moveend"):(ye=a._limitOffset(ye,a.options.maxBounds),Y(function(){a.panBy(ye,{duration:ae,easeLinearity:j,noMoveStart:!0,animate:!0})}))}}});we.addInitHook("addHandler","dragging",Im),we.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Mm=$n.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(i){this._map=i,this._setPanDelta(i.options.keyboardPanDelta),this._setZoomDelta(i.options.zoomDelta)},addHooks:function(){var i=this._map._container;i.tabIndex<=0&&(i.tabIndex="0"),fe(i,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Te(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var i=document.body,a=document.documentElement,c=i.scrollTop||a.scrollTop,f=i.scrollLeft||a.scrollLeft;this._map._container.focus(),window.scrollTo(f,c)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(i){var a=this._panKeys={},c=this.keyCodes,f,v;for(f=0,v=c.left.length;f<v;f++)a[c.left[f]]=[-1*i,0];for(f=0,v=c.right.length;f<v;f++)a[c.right[f]]=[i,0];for(f=0,v=c.down.length;f<v;f++)a[c.down[f]]=[0,i];for(f=0,v=c.up.length;f<v;f++)a[c.up[f]]=[0,-1*i]},_setZoomDelta:function(i){var a=this._zoomKeys={},c=this.keyCodes,f,v;for(f=0,v=c.zoomIn.length;f<v;f++)a[c.zoomIn[f]]=i;for(f=0,v=c.zoomOut.length;f<v;f++)a[c.zoomOut[f]]=-i},_addHooks:function(){fe(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Te(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(i){if(!(i.altKey||i.ctrlKey||i.metaKey)){var a=i.keyCode,c=this._map,f;if(a in this._panKeys){if(!c._panAnim||!c._panAnim._inProgress)if(f=this._panKeys[a],i.shiftKey&&(f=z(f).multiplyBy(3)),c.options.maxBounds&&(f=c._limitOffset(z(f),c.options.maxBounds)),c.options.worldCopyJump){var v=c.wrapLatLng(c.unproject(c.project(c.getCenter()).add(f)));c.panTo(v)}else c.panBy(f)}else if(a in this._zoomKeys)c.setZoom(c.getZoom()+(i.shiftKey?3:1)*this._zoomKeys[a]);else if(a===27&&c._popup&&c._popup.options.closeOnEscapeKey)c.closePopup();else return;_i(i)}}});we.addInitHook("addHandler","keyboard",Mm),we.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Dm=$n.extend({addHooks:function(){fe(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Te(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(i){var a=am(i),c=this._map.options.wheelDebounceTime;this._delta+=a,this._lastMousePos=this._map.mouseEventToContainerPoint(i),this._startTime||(this._startTime=+new Date);var f=Math.max(c-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(l(this._performZoom,this),f),_i(i)},_performZoom:function(){var i=this._map,a=i.getZoom(),c=this._map.options.zoomSnap||0;i._stop();var f=this._delta/(this._map.options.wheelPxPerZoomLevel*4),v=4*Math.log(2/(1+Math.exp(-Math.abs(f))))/Math.LN2,k=c?Math.ceil(v/c)*c:v,j=i._limitZoom(a+(this._delta>0?k:-k))-a;this._delta=0,this._startTime=null,j&&(i.options.scrollWheelZoom==="center"?i.setZoom(a+j):i.setZoomAround(this._lastMousePos,a+j))}});we.addInitHook("addHandler","scrollWheelZoom",Dm);var oS=600;we.mergeOptions({tapHold:ne.touchNative&&ne.safari&&ne.mobile,tapTolerance:15});var zm=$n.extend({addHooks:function(){fe(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Te(this._map._container,"touchstart",this._onDown,this)},_onDown:function(i){if(clearTimeout(this._holdTimeout),i.touches.length===1){var a=i.touches[0];this._startPos=this._newPos=new R(a.clientX,a.clientY),this._holdTimeout=setTimeout(l(function(){this._cancel(),this._isTapValid()&&(fe(document,"touchend",st),fe(
229document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",a))},this),oS),fe(document,"touchend touchcancel contextmenu",this._cancel,this),fe(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function i(){Te(document,"touchend",st),Te(document,"touchend touchcancel",i)},_cancel:function(){clearTimeout(this._holdTimeout),Te(document,"touchend touchcancel contextmenu",this._cancel,this),Te(document,"touchmove",this._onMove,this)},_onMove:function(i){var a=i.touches[0];this._newPos=new R(a.clientX,a.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(i,a){var c=new MouseEvent(i,{bubbles:!0,cancelable:!0,view:window,screenX:a.screenX,screenY:a.screenY,clientX:a.clientX,clientY:a.clientY});c._simulated=!0,a.target.dispatchEvent(c)}});we.addInitHook("addHandler","tapHold",zm),we.mergeOptions({touchZoom:ne.touch,bounceAtZoomLimits:!0});var Bm=$n.extend({addHooks:function(){ge(this._map._container,"leaflet-touch-zoom"),fe(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){He(this._map._container,"leaflet-touch-zoom"),Te(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(i){var a=this._map;if(!(!i.touches||i.touches.length!==2||a._animatingZoom||this._zooming)){var c=a.mouseEventToContainerPoint(i.touches[0]),f=a.mouseEventToContainerPoint(i.touches[1]);this._centerPoint=a.getSize()._divideBy(2),this._startLatLng=a.containerPointToLatLng(this._centerPoint),a.options.touchZoom!=="center"&&(this._pinchStartLatLng=a.containerPointToLatLng(c.add(f)._divideBy(2))),this._startDist=c.distanceTo(f),this._startZoom=a.getZoom(),this._moved=!1,this._zooming=!0,a._stop(),fe(document,"touchmove",this._onTouchMove,this),fe(document,"touchend touchcancel",this._onTouchEnd,this),st(i)}},_onTouchMove:function(i){if(!(!i.touches||i.touches.length!==2||!this._zooming)){var a=this._map,c=a.mouseEventToContainerPoint(i.touches[0]),f=a.mouseEventToContainerPoint(i.touches[1]),v=c.distanceTo(f)/this._startDist;if(this._zoom=a.getScaleZoom(v,this._startZoom),!a.options.bounceAtZoomLimits&&(this._zoom<a.getMinZoom()&&v<1||this._zoom>a.getMaxZoom()&&v>1)&&(this._zoom=a._limitZoom(this._zoom)),a.options.touchZoom==="center"){if(this._center=this._startLatLng,v===1)return}else{var k=c._add(f)._divideBy(2)._subtract(this._centerPoint);if(v===1&&k.x===0&&k.y===0)return;this._center=a.unproject(a.project(this._pinchStartLatLng,this._zoom).subtract(k),this._zoom)}this._moved||(a._moveStart(!0,!1),this._moved=!0),V(this._animRequest);var j=l(a._move,a,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=Y(j,this,!0),st(i)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,V(this._animRequest),Te(document,"touchmove",this._onTouchMove,this),Te(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});we.addInitHook("addHandler","touchZoom",Bm),we.BoxZoom=Lm,we.DoubleClickZoom=Rm,we.Drag=Im,we.Keyboard=Mm,we.ScrollWheelZoom=Dm,we.TapHold=zm,we.TouchZoom=Bm,n.Bounds=J,n.Browser=ne,n.CRS=me,n.Canvas=jm,n.Circle=nd,n.CircleMarker=cl,n.Class=q,n.Control=hn,n.DivIcon=Pm,n.DivOverlay=Fn,n.DomEvent=k1,n.DomUtil=b1,n.Draggable=Tr,n.Evented=le,n.FeatureGroup=ir,n.GeoJSON=or,n.GridLayer=Ro,n.Handler=$n,n.Icon=os,n.ImageOverlay=ml,n.LatLng=oe,n.LatLngBounds=ie,n.Layer=fn,n.LayerGroup=ss,n.LineUtil=D1,n.Map=we,n.Marker=ul,n.Mixin=N1,n.Path=jr,n.Point=R,n.PolyUtil=A1,n.Polygon=as,n.Polyline=sr,n.Popup=gl,n.PosAnimation=lm,n.Projection=z1,n.Rectangle=Am,n.Renderer=ar,n.SVG=Mo,n.SVGOverlay=Em,n.TileLayer=us,n.Tooltip=vl,n.Transformation=Gt,n.Util=ce,n.VideoOverlay=km,n.bind=l,n.bounds=G,n.canvas=Om,n.circle=Z1,n.circleMarker=V1,n.control=No,n.divIcon=tS,n.extend=s,n.featureGroup=U1,n.geoJSON=Sm,n.geoJson=G1,n.gridLayer=nS,n.icon=H1,n.imageOverlay=J1,n.latLng=se,n.latLngBounds=te,n.layerGroup=F1,n.map=E1,n.marker=W1,n.point=z,n.pol
229ygon=K1,n.polyline=q1,n.popup=X1,n.rectangle=sS,n.setOptions=x,n.stamp=d,n.svg=Nm,n.svgOverlay=Y1,n.tileLayer=Cm,n.tooltip=eS,n.transformation=Jt,n.version=r,n.videoOverlay=Q1;var aS=window.L;n.noConflict=function(){return window.L=aS,this},window.L=n})})(lf,lf.exports);var d2=lf.exports;const la=bf(d2);delete la.Icon.Default.prototype._getIconUrl;la.Icon.Default.mergeOptions({iconRetinaUrl:"https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/images/marker-icon-2x.png",iconUrl:"https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/images/marker-icon.png",shadowUrl:"https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/images/marker-shadow.png"});const h2=({className:t=""})=>{const e=C.useRef(null),n=C.useRef(null);return C.useEffect(()=>{if(!e.current||n.current)return;const r=[59.34841,18.073983];return n.current=la.map(e.current).setView(r,16),la.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'}).addTo(n.current),la.marker(r).addTo(n.current).bindPopup(`
230      <div style="padding: 8px;">
231        <h3 style="font-weight: 600; font-size: 14px; margin-bottom: 4px;">Sing-Sing Building</h3>
232        <p style="font-size: 12px; color: #666; margin: 0;">
233          Lindstedtsvägen 30<br/>
234          KTH Royal Institute of Technology
235        </p>
236      </div>
237    `),()=>{n.current&&(n.current.remove(),n.current=null)}},[]),p.jsx("div",{className:`relative rounded-lg overflow-hidden h-64 ${t}`,children:p.jsx("div",{ref:e,className:"h-full w-full"})})},f2=()=>p.jsx("section",{id:"contact",className:"py-20 bg-background",children:p.jsxs("div",{className:"container mx-auto px-6",children:[p.jsxs("div",{className:"text-center mb-16",children:[p.jsx("h2",{className:"text-4xl md:text-5xl font-bold mb-6 text-academic-blue",children:"Contact Us"}),p.jsx("p",{className:"text-xl text-academic-gray-light max-w-3xl mx-auto",children:"Interested in collaboration, research opportunities, or have questions about our work? We'd love to hear from you."})]}),p.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8 lg:gap-12",children:[p.jsxs("div",{className:"space-y-8",children:[p.jsxs(We,{className:"p-6 bg-gradient-card border-0 shadow-card",children:[p.jsx("h3",{className:"text-2xl font-semibold mb-6 text-academic-blue",children:"Get in Touch"}),p.jsxs("div",{className:"space-y-6",children:[p.jsxs("div",{className:"flex items-start space-x-4",children:[p.jsx(JP,{className:"w-5 h-5 text-academic-blue mt-1"}),p.jsxs("div",{children:[p.jsx("p",{className:"font-medium text-academic-gray",children:"Location"}),p.jsxs("p",{className:"text-academic-gray-light",children:["KTH Royal Institute of Technology",p.jsx("br",{}),"School of Electrical Engineering and Computer Science",p.jsx("br",{}),"Lindstedtsvägen 30, 100 44 Stockholm, Sweden"]})]})]}),p.jsxs("div",{className:"flex items-start space-x-4",children:[p.jsx(yc,{className:"w-5 h-5 text-academic-blue mt-1"}),p.jsxs("div",{children:[p.jsx("p",{className:"font-medium text-academic-gray",children:"Email"}),p.jsx("a",{href:"mailto:[email protected]",className:"text-academic-blue hover:text-academic-blue-light transition-colors",children:"[email protected]"})]})]}),p.jsxs("div",{className:"flex items-start space-x-4",children:[p.jsx(KP,{className:"w-5 h-5 text-academic-blue mt-1"}),p.jsxs("div",{children:[p.jsx("p",{className:"font-medium text-academic-gray",children:"Connect"}),p.jsx("a",{href:"https://www.linkedin.com/in/paris-carbone-20752726",className:"text-academic-blue hover:text-academic-blue-light transition-colors",children:"https://www.linkedin.com/in/paris-carbone-20752726"})]})]})]})]}),p.jsxs(We,{className:"p-6 bg-gradient-card border-0 shadow-card",id:"research-opportunities",children:[p.jsx("h3",{className:"text-xl font-semibold mb-4 text-academic-blue",children:"Research Opportunities"}),p.jsx("p",{className:"text-academic-gray-light mb-6",children:"We welcome inquiries from prospective PhD students, postdocs, and visiting researchers interested in data systems research."}),p.jsxs("div",{className:"space-y-3",children:[p.jsx(Pt,{variant:"outline",className:"w-full border-academic-blue text-academic-blue",disabled:!0,children:"PhD Positions"}),p.jsx(Pt,{variant:"outline",className:"w-full border-academic-blue text-academic-blue",disabled:!0,children:"Postdoc Opportunities"}),p.jsx(Pt,{variant:"outline",className:"w-full border-academic-blue text-academic-blue hover:bg-academic-blue hover:text-primary-foreground",onClick:()=>
vendor: 5,563 bytes, lines 237-245
237window.open("https://www.digitalfutures.kth.se/call/scholar-in-residence-programme/","_blank"),children:"Scholar-in-Residence Programme"})]})]})]}),p.jsxs("div",{className:"space-y-8",children:[p.jsxs(We,{className:"p-6 bg-gradient-card border-0 shadow-card",children:[p.jsx("h3",{className:"text-xl font-semibold mb-4 text-academic-blue",children:"Office Hours"}),p.jsxs("div",{className:"space-y-4",children:[p.jsxs("div",{className:"flex justify-between items-center py-2 border-b border-academic-accent",children:[p.jsx("span",{className:"text-academic-gray",children:"Paris Carbone"}),p.jsx("span",{className:"text-academic-gray-light",children:"By appointment"})]}),p.jsxs("div",{className:"flex justify-between items-center py-2 border-b border-academic-accent",children:[p.jsx("span",{className:"text-academic-gray",children:"PhD Students"}),p.jsx("span",{className:"text-academic-gray-light",children:"Open door policy"})]})]}),p.jsx("p",{className:"text-sm text-academic-gray-light mt-4",children:"* Please email to schedule meetings with faculty and students."})]}),p.jsxs(We,{className:"p-6 bg-gradient-card border-0 shadow-card",children:[p.jsx("h3",{className:"text-xl font-semibold mb-4 text-academic-blue",children:"Campus Map"}),p.jsx(h2,{})]})]})]})]})}),p2=()=>{const t=e=>{const n=document.getElementById(e);n&&n.scrollIntoView({behavior:"smooth"})};return p.jsxs("div",{className:"min-h-screen",children:[p.jsx(TN,{}),p.jsx(LN,{}),p.jsx(UN,{}),p.jsx(u2,{}),p.jsx(e2,{}),p.jsx(c2,{}),p.jsx(f2,{}),p.jsx("footer",{className:"bg-footer text-footer-foreground py-12 border-t border-border/40",children:p.jsxs("div",{className:"container mx-auto px-6",children:[p.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:[p.jsxs("div",{children:[p.jsx("h3",{className:"text-xl font-semibold mb-3",children:"Data Systems Lab"}),p.jsx("p",{className:"opacity-90 leading-relaxed",children:"At the heart of Stockholm, our lab builds award-winning data systems that expand human capabilities with uncompromised performance, trust, and ease of use"})]}),p.jsxs("div",{children:[p.jsx("h4",{className:"text-lg font-semibold mb-4",children:"Quick Links"}),p.jsxs("ul",{className:"space-y-2 opacity-90",children:[p.jsx("li",{children:p.jsx("button",{onClick:()=>t("research"),className:"hover:text-academic-blue transition-colors text-left",children:"Research"})}),p.jsx("li",{children:p.jsx("button",{onClick:()=>t("teaching"),className:"hover:text-academic-blue transition-colors text-left",children:"Teaching"})}),p.jsx("li",{children:p.jsx("button",{onClick:()=>t("team"),className:"hover:text-academic-blue transition-colors text-left",children:"Team"})}),p.jsx("li",{children:p.jsx("button",{onClick:()=>t("publications"),className:"hover:text-academic-blue transition-colors text-left",children:"Publications"})}),p.jsx("li",{children:p.jsx("button",{onClick:()=>t("contact"),className:"hover:text-academic-blue transition-colors text-left",children:"Contact"})})]})]}),p.jsxs("div",{children:[p.jsx("h4",{className:"text-lg font-semibold mb-4",children:"Contact Info"}),p.jsxs("p",{className:"opacity-90",children:["KTH Royal Institute of Technology",p.jsx("br",{}),"Lindstedtsvägen 30, Stockholm",p.jsx("br",{}),"[email protected]"]})]})]}),p.jsx("div",{className:"border-t border-primary-foreground/20 mt-8 pt-8 text-center opacity-75",children:p.jsx("p",{children:"© 2025 Data Systems Lab. All rights reserved."})})]})})]})};var Ix={exports:{}},Mx={};/**
238 * @license React
239 * use-sync-external-store-shim.production.js
240 *
241 * Copyright (c) Meta Platforms, Inc. and affiliates.
242 *
243 * This source code is licensed under the MIT license found in the
244 * LICENSE file in the root directory of this source tree.
245 */var so=C;function m2(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var g2=typeof Object.is=="function"?Object.is:m2,v2=so.useState,y2=so.useEffect,_2=so.useLayoutEffect,w2=so.useDebugValue;function x2(t,e){var n=e(),r=v2({inst:{value:n,getSnapshot:e}}),s=r[0].inst,o=r[1];return _2(function(){s.value=n,s.getSnapshot=e,Wd(s)&&o({inst:s})},[t,n,e]),y2(function(){return Wd(s)&&o({inst:s}),t(function(){Wd(s)&&o({inst:s})})},[t]),w2(n),n}function Wd(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!g2(t,n)}catch{return!0}}function b2(t,e){return e()}var S2=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?b2:x2;Mx.useSyncExternalStore=so.useSyncExternalStore!==void 0?so.useSyncExternalStore:S2;Ix.exports=Mx;var k2=Ix.exports;function E2(){return k2.useSyncExternalStore(P2,()=>!0,()=>!1)}function P2(){return()=>{}}var Mp="Avatar",[C2,LR]=ho(Mp),[T2,Dx]=C2(Mp),zx=C.forwardRef((t,e)=>{const{__scopeAvatar:n,...r}=t,[s,o]=C.useState("idle");return p.jsx(T2,{scope:n,imageLoadingStatus:s,onImageLoadingStatusChange:o,children:p.jsx(qe.span,{...r,ref:e})})});zx.displayName=Mp;var Bx="AvatarImage",$x=C.forwardRef((t,e)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:s=()=>{},...o}=t,l=Dx(Bx,n),u=j2(r,o),d=br(h=>{s(h),l.onImageLoadingStatusChange(h)});return jn(()=>{u!=="idle"&&d(u)},[u,d]),u==="loaded"?p.jsx(qe.img,{...o,ref:e,src:r}):null});$x.displayName=Bx;var Fx="AvatarFallback",Ux=C.forwardRef((t,e)=>{const{__scopeAvatar:n,delayMs:r,...s}=t,o=Dx(Fx,n),[l,u]=C.useState(r===void 0);return C.useEffect(()=>{if(r!==void 0){const d=window.setTimeout(()=>u(!0),r);return()=>window.clearTimeout(d)}},[r]),l&&o.imageLoadingStatus!=="loaded"?p.jsx(qe.span,{...s,ref:e}):null});Ux.displayName=Fx;function Wv(t,e){return t?e?(t.src!==e&&(t.src=e),t.complete&&t.naturalWi
245dth>0?"loaded":"loading"):"error":"idle"}function j2(t,{referrerPolicy:e,crossOrigin:n}){const r=E2(),s=C.useRef(null),o=r?(s.current||(s.current=new window.Image),s.current):null,[l,u]=C.useState(()=>Wv(o,t));return jn(()=>{u(Wv(o,t))},[o,t]),jn(()=>{const d=g=>()=>{u(g)};if(!o)return;const h=d("loaded"),m=d("error");return o.addEventListener("load",h),o.addEventListener("error",m),e&&(o.referrerPolicy=e),typeof n=="string"&&(o.crossOrigin=n),()=>{o.removeEventListener("load",h),o.removeEventListener("error",m)}},[o,n,e]),l}var Hx=zx,Wx=$x,Vx=Ux;const Zx=C.forwardRef(({className:t,...e},n)=>p.jsx(Hx,{ref:n,className:$e("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",t),...e}));Zx.displayName=Hx.displayName;const qx=C.forwardRef(({className:t,...e},n)=>p.jsx(Wx,{ref:n,className:$e("aspect-square h-full w-full",t),...e}));qx.displayName=Wx.displayName;const Kx=C.forwardRef(({className:t,...e},n)=>p.jsx(Vx,{ref:n,className:$e("flex h-full w-full items-center justify-center rounded-full bg-muted",t),...e}));Kx.displayName=Vx.displayName;const O2=()=>{const t=[{title:"Teacher of the Year 2024",organization:"KTH Royal Institute of Technology",link:"https://www.kth.se/en/om/nyheter/centrala-nyheter/paris-carbone-is-teacher-of-the-year-1.1381604",year:"2024",featured:!0},{title:"ACM DEBS Best Paper Award",organization:"ACM DEBS Conference",project:"μWheel",year:"2024"},{title:"ACM SIGMOD Systems Award",organization:"ACM SIGMOD Conference",project:"Apache Flink",year:"2023"},{title:"VLDB Best PhD Paper Award",organization:"VLDB Conference",project:"Orb DB",year:"2023"},{title:"ACM DEEM@SIGMOD Best Paper Award",organization:"ACM DEEM@SIGMOD Workshop",project:"Crayfish",year:"2022"},{title:"ACM DEEM@SIGMOD Best Presentation Award",organization:"ACM DEEM@SIGMOD Workshop",project:"Crayfish",year:"2022"}],e=[{name:"LeoDOS",description:"The next bold step in data compute. Building the first open source distributed operating system for space data centers and low-earth-orbit satellites",url:"https://leodos.org/"},{name:"OmniPaxos",description:"World's most reliable data replication framework for the cloud",url:"http://omnipaxos.com/"},{name:"OrbDB",description:"First predictive graph database aware of the uncertainty of its answers",url:"http://orbdb.io/"},{name:"μWheel",description:"Fastest data aggregator for time windows",url:"https://uwheel.rs/"},{name:"Aqua",description:"The programming language of dataflow stream processing systems",url:"https://aqua-language.github.io/"},{name:"Portals",description:"Decentralized Serverless Programming using Dataflows",url:"https://www.portals-project.org/"},{name:"Crayfish",description:"The first complete benchmark for ML serving on dataflow systems",url:"https://github.com/soniahorchidan/crayfish23"},{name:"Apache Flink",description:"World's leading stream processing engine",url:"https://flink.apache.org/"}];return C.useEffect(()=>{window.scrollTo(0,0)},[]),p.jsxs("div",{className:"min-h-screen bg-background",children:[p.jsx("section",{className:"py-20 bg-gradient-hero",children:p.jsx("div",{className:"container mx-auto px-6",children:p.jsxs("div",{className:"flex flex-col lg:flex-row items-center gap-12",children:[p.jsx("div",{className:"flex-shrink-0",children:p.jsxs(Zx,{className:"w-48 h-48 border-4 border-white shadow-2xl",children:[p.jsx(qx,{src:Rx,alt:"Paris Carbone",className:"object-cover"}),p.jsx(Kx,{className:"text-4xl font-bold text-academic-blue",children:"PC"})]})}),p.jsxs("div",{className:"text-white text-center lg:text-left",children:[p.jsx("h1",{className:"text-5xl md:text-6xl font-bold mb-4",children:"Paris Carbone"}),p.jsx("p",{className:"text-2xl mb-4 opacity-90",children:"Associate Professor"}),p.jsx("p",{className:"text-xl mb-6 opacity-80",children:"Data Systems Lab, KTH Royal Institute of Technology & RISE"}),p.jsx("div",{className:"flex flex-wrap gap-4 justify-center lg:justify-start",children:p.jsxs(Ia,{className:"bg-white/20 text-white border-white/30 px-4 py-2 text-lg",children:[p.jsx(tC,{className:"w-4 h-4 mr-2"}),"Teacher of the Year 2024"]})}),p.jsxs("div",{className:"flex flex-wrap gap-4 mt-8 justify-center lg:justify-start",children:[p.jsxs("a",{href:"mailto:[email protected]",className:"flex items-center bg-white/20 hover:bg-white/30 px-6 py-3 rounded-lg transition-colors",children:[p.jsx(yc,{className:"w-5 h-5 mr-2"}),"Contact"]}),p.jsxs("a",{href:"https://www.kth.se/profile/parisc",target:"_blank",rel:"noopener noreferrer",className:"flex items-center bg-white/20 hover:bg-white/30 px-6 py-3 rounded-lg transition-colors",children:[p.jsx(vr,{className:"w-5 h-5 mr-2"}),"KTH Profile"]}),p.jsxs("a",{href:"https://github.com/senorcarbone",target:"_blank",rel:"noopener noreferrer",className:"flex items-center bg-white/20 hover:bg-white/30 px-6 py-3 rounded-lg transition-colors",children:[p.jsx(av,{className:"w-5 h-5 mr-2"}),"GitHub"]}),p.jsxs("a",{href:"https://twitter.com/SenorCarbone",target:"_blank",rel:"noopener noreferrer",className:"flex items-center bg-white/20 hover:bg-white/30 px-6 py-3 rounded-lg transition-colors",children:[p.jsx(nC,{className:"w-5 h-5 mr-2"}),"X"]}),p.jsxs("a",{href:"https://scholar.google.com/citations?user=qSJPU-UAAAAJ&hl=en",target:"_blank",rel:"noopener noreferrer",className:"flex items-center bg-white/20 hover:bg-white/30 px-6 py-3 rounded-lg transition-colors",children:[p.jsx(Ew,{className:"w-5 h-5 mr-2"}),"Scholar"]})]})]})]})})}),p.jsx("section",{className:"py-20",children:p.jsx("div",{className:"container mx-auto px-6",children:p.jsxs(We,{className:"p-8 shadow-card bg-gradient-card",children:[p.jsxs("h2",{className:"text-3xl font-bold mb-6 text-academic-blue flex items-center",children:[p.jsx(Cw,{className:"w-8 h-8 mr-3"}),"About"]}),p.jsx("p",{className:"text-lg leading-relaxed text-academic-gray-light",children:"I am a computer scientist and leader of the Data Systems Lab at KTH and RISE. My main passion is to craft pioneering scalable data processing systems and discover new paradigms that pivot our compute capabilities. Together with ambitious PhD students and collaborators we have created numerous influential, world-class systems with applications in serverless computing, distributed databases, generative computing (AI), data streaming, graph databases, and acceleration using emerging new hardware and methods."})]})})}),p.jsx("section",{className:"py-20 bg-muted/50",children:p.jsxs("div",{className:"container mx-auto px-6",children:[p.jsxs("h2",{className:"text-4xl font-bold mb-12 text-center text-academic-blue flex items-center justify-center",children:[p.jsx(WP,{className:"w-10 h-10 mr-4"}),"Awards & Recognition"]}),p.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:t.map((n,r)=>p.jsxs(We,{className:`p-6 shadow-card hover:shadow-hover transition-all duration-300 ${n.featured?"bg-gradient-accent border-2 border-academic-accent":"bg-gradient-card"}`,children:[p.jsxs("div",{className:"flex items-start justify-between mb-4",children:[p.jsxs("div",{className:"flex-1",children:[p.jsx("h3",{className:`text-xl font-semibold mb-2 ${n.featured?"text-white":"text-academic-blue"}`,children:n.title}),p.jsx("p",{className:`font-medium ${n.featured?"text-white/90":"text-academic-blue-light"}`,children:n.organization}),n.project&&p.jsxs("p",{className:`text-sm mt-1 ${n.featured?"text-white/80":"text-academic-gray-light"}`,children:["Project: ",n.project]})]}),p.jsx(Ia,{variant:n.featured?"secondary":"outline",className:"ml-4",children:n.year})]}),n.link&&p.jsxs("a",{href:n.link,target:"_blank",rel:"noopener noreferrer",className:`inline-flex items-center ${n.featured?"text-white hover:text-white/80":"text-academic-blue hover:text-academic-blue-light"} transition-colors`,children:[p.jsx(vr,{className:"w-4 h-4 mr-2"}),"Read more"]})]},r))})]})}),p.jsx("section",{className:"py-20",children:p.jsxs("div",{className:"container mx-auto px-6",children:[p.jsxs("h2",{className:"text-4xl font-bold mb-12 text-center text-academic-blue flex items-center justify-center",children:[p.jsx(av,{className:"w-10 h-10 mr-4"}),"Systems & Software"]}),p.jsx("div",{className:"mb-8",children:p.jsx(We,{className:"p-6 shadow-card bg-gradient-card",children:p.jsx("p",{className:"text-lg leading-relaxed text-academic-gray-light",children:"Early in my academic career I contributed to the state management and streaming runtime of Apache Flink, a stream processing engine having a significant number of users globally today, likely numbering in the thousands across various industries. At Data Systems Lab we continue this tradition striving for continuous open-source contributions accompanying most of our major research f
245indings. Certain libraries have already become fundamental within cloud infrastructure today."})})}),p.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:e.map((n,r)=>p.jsxs(We,{className:"p-6 shadow-card bg-gradient-card hover:shadow-hover transition-all duration-300",children:[p.jsx("h3",{className:"text-xl font-semibold mb-3 text-academic-blue",children:n.name}),p.jsx("p",{className:"text-academic-gray-light mb-4 leading-relaxed",children:n.description}),p.jsxs("a",{href:n.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center text-academic-blue hover:text-academic-blue-light transition-colors",children:[p.jsx(vr,{className:"w-4 h-4 mr-2"}),"Visit Project"]})]},r))})]})})]})},Zu=[{id:"space",number:"01",title:"From Cloud to Space Computing",tagline:"Rewrite the limits of planetary-scale consensus",description:"Our most capable data systems, even Google Spanner, still hit hard design limits in scalability and in meeting growing demands for AI inference and planetary-scale workloads. We investigate pioneering redesigns of algorithms, lift long-standing assumptions and explore new hardware: relaxed and hybrid consistency, algorithmic discovery for distributed protocols, and satellite and quantum communication substrates for new classes of protocols.",topics:["Exploring physical limitations of leader election algorithms","Scheduling and networking for orbital operating systems (leodos.org)","Self-synthesized and self-adaptive consensus protocols","Investigating clock synchronization methods for optical networks","Exploring new forms of error correction for fault-tolerant quantum computing","Benchmark studies and simulations"],expertise:"Distributed Systems, Operating Systems, Networking",link:{label:"leodos.org",url:"https://leodos.org/"}},{id:"healthcare",number:"02",title:"AI Systems for Healthcare",tagline:"Make clinical data speak one language",description:"Contribute to Mediverse, a platform for multi-modal clinical data harmonisation through unified graph-based representations, aiming to transform clinical decision-making and information retrieval: native harmonisation across modalities and clinics, multi-modal cross-site predictive studies, and inference tuned with uncertainty control to infuse trust.",topics:["Benchmarking retrieve and rerank methods for medical entity linking","Exploring GNNs for medical entity linking","Leveraging LLMs for multimodal information extraction","Multivariate entity linking"],expertise:"Data Science (data engineering, databases), Graph Systems, Machine Learning",languages:"Python",link:{label:"www.mediverse.se",url:"https://www.mediverse.se"}},{id:"languages",number:"03",title:"Programming Languages and Compilers for Data Streaming",tagline:"Design the language streaming has been missing",description:"Contribute to AquaLang, a new programming language developed in our lab that compiles to run on modern streaming dataflow systems such as Apache Flink. AquaLang bridges the gap between dataflow libraries and query languages, offering the best of both: flexibility, safety, conciseness and efficiency.",topics:["Type safety: automated verification of algebraic laws in AquaLang","Formal semantics: denotational semantics of AquaLang with a theorem prover (e.g. Lean) to generate formally verified stream processing code","Optimisation: reactively optimizing streaming queries via equality saturation"],expertise:"Distributed Systems, Programming Languages, Data Intensive Computing"},{id:"conflux",number:"04",title:"Convergent Streaming Graph Analytics in CONFLUX",tagline:"Analytics that converge without coordination",description:"Graph databases back applications from fraud detection to logistics, where latency and fault tolerance make replication essential. Maintaining analytics incrementally under weak consistency means every replica holds a different version of the answer. In CONFLUX you will map analytics onto merge, compensation and coordination cases, and quantify the cost of each.",topics:["Classify streaming graph algorithms by merge, compensation or coordination, and implement them in CONFLUX","Measure how often a replica retracts an answer under different workloads, replica counts and sync intervals","Implement and evaluate a stability check for the prefix of updates that can no longer be invalidated","Compare reloading a maintained result from persisted state versus rebuilding it when a replica joins"],expertise:"Distributed Systems, Operating Systems, Databases",languages:"Rust"},{id:"industry",number:"05",title:"Industry Internship in Data Systems",tagline:"Ship your thesis inside a production system",description:"Do your thesis at one of our industry collaborators such as SEB and Ericsson, among others, co-supervised by the lab.",topics:["Industry thesis / internship project"]},{id:"own",number:"06",title:"Your Own Idea",tagline:"Convince us it should exist",description:"If you think you have a ground-breaking idea for a new data system, bring it to us and get feedback and support.",topics:["My own idea (described below)"]}],N2="https://docs.google.com/document/d/14t34xbbrYMZgHpD5gvlXaf3U3Y4jBlpZ-nasxyx4BGk/edit",A2=Zu.reduce((t,e)=>t+e.topics.length,0),tn=C.forwardRef(({className:t,type:e,...n},r)=>p.jsx("input",{type:e,className:$e("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",t),ref:r,...n}));tn.displayName="Input";var L2="Label",Gx=C.forwardRef((t,e)=>p.jsx(qe.label,{...t,ref:e,onMouseDown:n=>{var s;n.target.closest("button, input, select, textarea")||((s=t.onMouseDown)==null||s.call(t,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Gx.displayName=L2;var Jx=Gx;const R2=vc("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),wt=C.forwardRef(({className:t,...e},n)=>p.jsx(Jx,{ref:n,className:$e(R2(),t),...e}));wt.displayName=Jx.displayName;const Qx=C.forwardRef(({className:t,...e},n)=>p.jsx("textarea",{className:$e("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
245ing-offset-background 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",t),ref:n,...e}));Qx.displayName="Textarea";function I2(t){const e=C.useRef({value:t,previous:t});return C.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}var Cc="Checkbox",[M2,RR]=ho(Cc),[D2,Dp]=M2(Cc);function z2(t){const{__scopeCheckbox:e,checked:n,children:r,defaultChecked:s,disabled:o,form:l,name:u,onCheckedChange:d,required:h,value:m="on",internal_do_not_use_render:g}=t,[_,y]=X0({prop:n,defaultProp:s??!1,onChange:d,caller:Cc}),[P,x]=C.useState(null),[E,S]=C.useState(null),w=C.useRef(!1),b=P?!!l||!!P.closest("form"):!0,T={checked:_,disabled:o,setChecked:y,control:P,setControl:x,name:u,form:l,value:m,hasConsumerStoppedPropagationRef:w,required:h,defaultChecked:ri(s)?!1:s,isFormControl:b,bubbleInput:E,setBubbleInput:S};return p.jsx(D2,{scope:e,...T,children:B2(g)?g(T):r})}var Yx="CheckboxTrigger",Xx=C.forwardRef(({__scopeCheckbox:t,onKeyDown:e,onClick:n,...r},s)=>{const{control:o,value:l,disabled:u,checked:d,required:h,setControl:m,setChecked:g,hasConsumerStoppedPropagationRef:_,isFormControl:y,bubbleInput:P}=Dp(Yx,t),x=Zt(s,m),E=C.useRef(d);return C.useEffect(()=>{const S=o==null?void 0:o.form;if(S){const w=()=>g(E.current);return S.addEventListener("reset",w),()=>S.removeEventListener("reset",w)}},[o,g]),p.jsx(qe.button,{type:"button",role:"checkbox","aria-checked":ri(d)?"mixed":d,"aria-required":h,"data-state":ib(d),"data-disabled":u?"":void 0,disabled:u,value:l,...r,ref:x,onKeyDown:Ze(e,S=>{S.key==="Enter"&&S.preventDefault()}),onClick:Ze(n,S=>{g(w=>ri(w)?!0:!w),P&&y&&(_.current=S.isPropagationStopped(),_.current||S.stopPropagation())})})});Xx.displayName=Yx;var zp=C.forwardRef((t,e)=>{const{__scopeCheckbox:n,name:r,checked:s,defaultChecked:o,required:l,disabled:u,value:d,onCheckedChange:h,form:m,...g}=t;return p.jsx(z2,{__scopeCheckbox:n,checked:s,defaultChecked:o,disabled:u,required:l,onCheckedChange:h,name:r,form:m,value:d,internal_do_not_use_render:({isFormControl:_})=>p.jsxs(p.Fragment,{children:[p.jsx(Xx,{...g,ref:e,__scopeCheckbox:n}),_&&p.jsx(rb,{__scopeCheckbox:n})]})})});zp.displayName=Cc;var eb="CheckboxIndicator",tb=C.forwardRef((t,e)=>{const{__scopeCheckbox:n,forceMount:r,...s}=t,o=Dp(eb,n);return p.jsx(pc,{present:r||ri(o.checked)||o.checked===!0,children:p.jsx(qe.span,{"data-state":ib(o.checked),"data-disabled":o.disabled?"":void 0,...s,ref:e,style:{pointerEvents:"none",...t.style}})})});tb.displayName=eb;var nb="CheckboxBubbleInput",rb=C.forwardRef(({__scopeCheckbox:t,...e},n)=>{const{control:r,hasConsumerStoppedPropagationRef:s,checked:o,defaultChecked:l,required:u,disabled:d,name:h,value:m,form:g,bubbleInput:_,setBubbleInput:y}=Dp(nb,t),P=Zt(n,y),x=I2(o),E=Qw(r);C.useEffect(()=>{const w=_;if(!w)return;const b=window.HTMLInputElement.prototype,O=Object.getOwnPropertyDescriptor(b,"checked").set,N=!s.current;if(x!==o&&O){const I=new Event("click",{bubbles:N});w.indeterminate=ri(o),O.call(w,ri(o)?!1:o),w.dispatchEvent(I)}},[_,x,o,s]);const S=C.useRef(ri(o)?!1:o);return p.jsx(qe.input,{type:"checkbox","aria-hidden":!0,defaultChecked:l??S.current,required:u,disabled:d,name:h,value:m,form:g,...e,tabIndex:-1,ref:P,style:{...e.style,...E,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});rb.displayName=nb;function B2(t){return typeof t=="function"}function ri(t){return t==="indeterminate"}function ib(t){return ri(t)?"indeterminate":t?"checked":"unchecked"}const sb=C.forwardRef(({className:t,...e},n)=>p.jsx(zp,{ref:n,className:$e("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",t),...e,children:p.jsx(tb,{className:$e("flex items-center justify-center text-current"),children:p.jsx(qP,{className:"h-4 w-4"})})}));sb.displayName=zp.displayName;const $2="https://jzyuxmpyugfmvqxgtuhu.supabase.co/functions/v1/submit-application",Hn="bg-white/5 border-white/15 text-white placeholder:text-white/40 focus-visible:ring-purple-400",F2=()=>{const[t,e]=C.useState(!1),[n,r]=C.useState(!1),[s,o]=C.useState(!1),l=async u=>
245{if(u.preventDefault(),!s){zu.error("Please confirm we may store your application.");return}const d=u.currentTarget,h=new FormData(d);e(!0);try{const m=await fetch($2,{method:"POST",headers:{apikey:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Imp6eXV4bXB5dWdmbXZxeGd0dWh1Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NjIwMzIxNDcsImV4cCI6MjA3NzYwODE0N30.9a4QDwd3ZFGkCFcpw0IFezvEJsKrgAlfwGotIUeWfWg"},body:h}),g=await m.json().catch(()=>({}));if(!m.ok)throw new Error(g.error||"Something went wrong. Please try again.");r(!0),d.reset()}catch(m){zu.error(m.message)}finally{e(!1)}};return n?p.jsxs("div",{className:"mx-auto max-w-2xl rounded-3xl border border-purple-400/30 bg-white/5 p-12 text-center backdrop-blur-md",children:[p.jsx(lv,{className:"mx-auto mb-6 h-12 w-12 text-purple-300"}),p.jsx("h3",{className:"mb-3 font-space-grotesk text-3xl font-bold text-white",children:"Your application is in orbit"}),p.jsx("p",{className:"text-white/70",children:"We read every single one. If there is a match, we will reach out to arrange a conversation."})]}):p.jsxs("form",{onSubmit:l,className:"mx-auto max-w-3xl space-y-8",children:[p.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off",className:"hidden","aria-hidden":!0}),p.jsxs("div",{className:"grid gap-6 md:grid-cols-2",children:[p.jsxs("div",{className:"space-y-2",children:[p.jsx(wt,{htmlFor:"fullName",className:"text-white/80",children:"Full name *"}),p.jsx(tn,{id:"fullName",name:"fullName",required:!0,className:Hn,placeholder:"Ada Lovelace"})]}),p.jsxs("div",{className:"space-y-2",children:[p.jsx(wt,{htmlFor:"email",className:"text-white/80",children:"Email *"}),p.jsx(tn,{id:"email",name:"email",type:"email",required:!0,className:Hn,placeholder:"[email protected]"})]}),p.jsxs("div",{className:"space-y-2",children:[p.jsx(wt,{htmlFor:"programme",className:"text-white/80",children:"Programme"}),p.jsx(tn,{id:"programme",name:"programme",className:Hn,placeholder:"MSc S
245oftware Engineering of Distributed Systems"})]}),p.jsxs("div",{className:"space-y-2",children:[p.jsx(wt,{htmlFor:"expectedStart",className:"text-white/80",children:"Expected start"}),p.jsx(tn,{id:"expectedStart",name:"expectedStart",className:Hn,placeholder:"January 2027"})]})]}),p.jsxs("div",{className:"space-y-2",children:[p.jsx(wt,{htmlFor:"topic",className:"text-white/80",children:"Topic you are aiming for *"}),p.jsxs("select",{id:"topic",name:"topic",required:!0,defaultValue:"",className:"flex h-10 w-full rounded-md border border-white/15 bg-white/5 px-3 py-2 text-sm text-white focus:outline-none focus:ring-2 focus:ring-purple-400",children:[p.jsx("option",{value:"",disabled:!0,className:"bg-[#0b1026]",children:"Choose a topic…"}),Zu.map(u=>p.jsx("optgroup",{label:`${u.number} · ${u.title}`,className:"bg-[#0b1026]",children:u.topics.map(d=>p.jsx("option",{value:`${u.title} — ${d}`,className:"bg-[#0b1026]",children:d},d))},u.id))]})]}),p.jsxs("div",{className:"space-y-2",children:[p.jsx(wt,{htmlFor:"motivation",className:"text-white/80",children:"What do you want to build, and why you? *"}),p.jsx(Qx,{id:"motivation",name:"motivation",required:!0,rows:7,className:Hn,placeholder:"Tell us what excites you about this topic, what you have built before, and what you would attempt first."})]}),p.jsxs("div",{className:"grid gap-6 md:grid-cols-2",children:[p.jsxs("div",{className:"space-y-2",children:[p.jsxs(wt,{htmlFor:"cv",className:"flex items-center gap-2 text-white/80",children:[p.jsx(uv,{className:"h-4 w-4"})," CV (PDF) *"]}),p.jsx(tn,{id:"cv",name:"cv",type:"file",accept:"application/pdf",required:!0,className:`${Hn} file:text-white/70`})]}),p.jsxs("div",{className:"space-y-2",children:[p.jsxs(wt,{htmlFor:"transcript",className:"flex items-center gap-2 text-white/80",children:[p.jsx(uv,{className:"h-4 w-4"})," Transcript / grades (PDF)"]}),p.jsx(tn,{id:"transcript",name:"transcript",type:"file",accept:"application/pdf",className:`${Hn} file:text-white/70`})]})]}),p.jsxs("div",{className:"grid gap-6 md:grid-cols-3",children:[p.jsxs("div",{className:"space-y-2",children:[p.jsx(wt,{htmlFor:"github",className:"text-white/80",children:"GitHub"}),p.jsx(tn,{id:"github",name:"github",className:Hn,placeholder:"github.com/…"})]}),p.jsxs("div",{className:"space-y-2",children:[p.jsx(wt,{htmlFor:"linkedin",className:"text-white/80",children:"LinkedIn"}),p.jsx(tn,{id:"linkedin",name:"linkedin",className:Hn,placeholder:"linkedin.com/in/…"})]}),p.jsxs("div",{className:"space-y-2",children:[p.jsx(wt,{htmlFor:"website",className:"text-white/80",children:"Website"}),p.jsx(tn,{id:"website",name:"website",className:Hn,placeholder:"yoursite.dev"})]})]}),p.jsxs("div",{className:"flex items-start gap-3",children:[p.jsx(sb,{id:"consent",checked:s,onCheckedChange:u=>o(u===!0),className:"mt-1 border-white/40 data-[state=checked]:bg-purple-500 data-[state=checked]:border-purple-500"}),p.jsx(wt,{htmlFor:"consent",className:"text-sm font-normal leading-relaxed text-white/70",children:"I agree that the Data Systems Lab may store my application and attachments for the purpose of evaluating my thesis or internship project."})]}),p.jsx(Pt,{type:"submit",size:"lg",disabled:t,className:"w-full bg-gradient-to-r from-purple-500 to-fuchsia-500 text-white shadow-magic-glow hover:from-purple-400 hover:to-fuchsia-400 md:w-auto md:px-12",children:t?p.jsxs(p.Fragment,{children:[p.jsx(GP,{className:"mr-2 h-4 w-4 animate-spin"})," Sending…"]}):p.jsxs(p.Fragment,{children:[p.jsx(lv,{className:"mr-2 h-4 w-4"})," Send my application"]})})]})},Vv=()=>{var t;return(t=document.getElementById("apply-form"))==null?void 0:t.scrollIntoView({behavior:"smooth",block:"start"})},U2=()=>{const[t,e]=C.useState(Zu[0].id);return C.useEffect(()=>{document.title="Thesis & Internship Projects | Data Systems Lab, KTH";const n="Apply for a master's thesis or internship at the Data Systems Lab, KTH: space computing, AI for healthcare, streaming languages and graph analytics.";let r=document.querySelector('meta[name="description"]');r||(r=document.createElement("meta"),r.setAttribute("name","description"),document.head.appendChild(r)),r.setAttribute("content",n)},[]),p.jsxs("div",{className:"min-h-screen bg-[#05060f] text-white",children:[p.jsxs("div",{className:"pointer-events-none fixed inset-0 overflow-hidden",children:[p.jsx("div",{className:"absolute -left-40 top-[-10rem] h-[36rem] w-[36rem] rounded-full bg-purple-600/20 blur-[140px]"}),p.jsx("div",{className:"absolute -right-32 top-1/3 h-[32rem] w-[32rem] rounded-full bg-indigo-600/20 blur-[140px]"}),p.jsx("div",{className:"absolute bottom-0 left-1/3 h-[28rem] w-[28rem] rounded-full bg-fuchsia-600/10 blur-[140px]"})]}),p.jsxs("div",{className:"relative z-10",children:[p.jsxs("header",{className:"container mx-auto flex items-center justify-between px-6 py-6",children:[p.jsxs(PN,{to:"/",className:"flex items-center gap-3 text-white/80 transition-colors hover:text-white",children:[p.jsx(HP,{className:"h-4 w-4"}),p.jsx("img",{src:"/lovable-uploads/33fa9fe8-7ecd-4efe-8b5b-4ca284703491.png",alt:"Data Systems Lab logo",className:"h-8 w-8"}),p.jsx("span",{className:"font-space-grotesk font-bold",children:"Data Systems Lab"})]}),p.jsx(Pt,{onClick:Vv,className:"bg-gradient-to-r from-purple-500 to-fuchsia-500 text-white hover:from-purple-400 hover:to-fuchsia-400",children:"Apply now"})]}),p.jsx("section",{className:"container mx-auto px-6 pb-20 pt-12 md:pt-24",children:p.jsxs("div",{className:"mx-auto max-w-4xl text-center",children:[p.jsxs("span",{className:"inline-flex items-center gap-2 rounded-full border border-purple-400/40 bg-purple-500/10 px-4 py-1.5 text-sm text-purple-200",children:[p.jsx(XP,{className:"h-4 w-4"}),A2," open MSc thesis topics for 2027"]}),p.jsxs("h1",{className:"mt-8 font-space-grotesk text-4xl font-bold leading-tight tracking-tight md:text-6xl",children:[p.jsx("span",{className:"magic-word magic-speed",children:"Master's thesis"})," projects for"," ",p.jsx("span",{className:"magic-word magic-trust",children:"KTH MSc students"})]}),p.jsx("p",{className:"mx-auto mt-8 max-w-2xl text-lg leading-relaxed text-white/70 md:text-xl",children:"Degree projects (30 ECTS) at the Data Systems Lab, KTH Royal Institute of Technology, for students enrolled in a KTH master's programme."}),p.jsxs("div",{className:"mt-10 flex flex-col items-center justify-center gap-4 sm:flex-row",children:[p.jsx(Pt,{size:"lg",onClick:Vv,className:"bg-gradient-to-r from-purple-500 to-fuchsia-500 px-10 text-base text-white shadow-magic-glow hover:from-purple-400 hover:to-fuchsia-400",children:"Apply now"}),p.jsxs("button",{type:"button",onClick:()=>{var n;return(n=document.getElementById("areas"))==null?void 0:n.scrollIntoView({behavior:"smooth",block:"start"})},className:"inline-flex items-center gap-2 text-white/70 transition-colors hover:text-white",children:["See the topics ",p.jsx(ov,{className:"h-4 w-4"})]})]})]})}),p.jsxs("section",{id:"areas",className:"container mx-auto px-6 py-16",children:[p.jsx("h2",{className:"mb-3 font-space-grotesk text-3xl font-bold md:text-4xl",children:"Pick your frontier"}),p.jsx("p",{className:"mb-10 max-w-2xl text-white/60",children:"Six areas of supervised KTH master's thesis projects. Open one to see what you would actually work on."}),p.jsx("div",{className:"space-y-4",children:Zu.map(n=>{const r=t===n.id;return p.jsxs("div",{className:"overflow-hidden rounded-2xl border border-white/10 bg-white/[0.03] backdrop-blur-sm transition-colors hover:border-purple-400/40",children:[p.jsxs("button",{type:"button",onClick:()=>e(r?null:n.id),className:"flex w-full items-center gap-5 px-6 py-5 text-left",children:[p.jsx("span",{className:"font-space-grotesk text-2xl font-bold text-purple-300/70",children:n.number}),p.jsxs("span",{className:"flex-1",children:[p.jsx("span",{className:"block font-space-grotesk text-xl font-bold md:text-2xl",children:n.title}),p.jsx("span",{className:"block text-sm text-white/50",children:n.tagline})]}),p.jsx(ov,{className:`h-5 w-5 shrink-0 text-white/50 transition-transform ${r?"rotate-180":""}`})]}),r&&p.jsxs("div",{className:"space-y-5 border-t border-white/10 px-6 py-6 md:px-20",children:[p.jsx("p",{className:"leading-relaxed text-white/70",children:n.description}),p.jsx("ul",{className:"space-y-2",children:n.topics.map(s=>p.jsxs("li",{className:"flex gap-3 text-white/80",children:[p.jsx("span",{className:"mt-2 h-1.5 w-1.5 shrink-0 rounded-full bg-fuchsia-400"}),p.jsx("span",{children:s})]},s))}),p.jsxs("div",{className:"flex flex-wrap gap-x-8 gap-y-2 text-sm text-white/50",children:[n.expertise&&p.jsxs("span",{children:["Expertise: ",n.expertise]}),n.languages&&p.jsxs("span",{children:["Languages: ",n.languages]}),n.link&&p.jsxs("a",{href:n.link.url,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-1 text-purple-300 hover:text-purple-200",children:[n.link.label," ",p.jsx(vr,{className:"h-3.5 w-3.5"})]})]})]})]},n.id)})}),p.jsxs("p",{className:"mt-8 text-sm text-white/50",children:["Want the full detail?"," ",p.jsx("a",{href:N2,target:"_blank",rel:"noreferrer",className:"text-purple-300 hover:text-purple-200",children:"Read the complete topics document"}),"."]})]}),p.jsxs("section",{id:"apply-form",className:"container mx-auto 
245scroll-mt-8 px-6 py-16 pb-28",children:[p.jsxs("div",{className:"mx-auto mb-12 max-w-2xl text-center",children:[p.jsx("h2",{className:"font-space-grotesk text-3xl font-bold md:text-5xl",children:"Apply for your KTH master's thesis"}),p.jsx("p",{className:"mt-4 text-white/60",children:"Open to students enrolled in a KTH MSc programme. Topics go fast, and the most ambitious students get first pick."})]}),p.jsx(F2,{})]}),p.jsxs("footer",{className:"border-t border-white/10 py-10 text-center text-sm text-white/50",children:[p.jsxs("p",{className:"mb-2",children:["Questions?"," ",p.jsxs("a",{href:"mailto:[email protected]",className:"inline-flex items-center gap-1 text-purple-300 hover:text-purple-200",children:[p.jsx(yc,{className:"h-3.5 w-3.5"})," [email protected]"]})]}),p.jsx("p",{children:"Data Systems Lab · KTH Royal Institute of Technology · Stockholm"})]})]})]})};var uf=function(t,e){return uf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&
vendor: 8,805 bytes, line 245
245(n[s]=r[s])},uf(t,e)};function ob(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");uf(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var qu=function(){return qu=Object.assign||function(e){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},qu.apply(this,arguments)};function vo(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(t);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(t,r[s])&&(n[r[s]]=t[r[s]]);return n}function ab(t,e,n,r){var s=arguments.length,o=s<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var u=t.length-1;u>=0;u--)(l=t[u])&&(o=(s<3?l(o):s>3?l(e,n,o):l(e,n))||o);return s>3&&o&&Object.defineProperty(e,n,o),o}function lb(t,e){return function(n,r){e(n,r,t)}}function ub(t,e,n,r,s,o){function l(S){if(S!==void 0&&typeof S!="function")throw new TypeError("Function expected");return S}for(var u=r.kind,d=u==="getter"?"get":u==="setter"?"set":"value",h=!e&&t?r.static?t:t.prototype:null,m=e||(h?Object.getOwnPropertyDescriptor(h,r.name):{}),g,_=!1,y=n.length-1;y>=0;y--){var P={};for(var x in r)P[x]=x==="access"?{}:r[x];for(var x in r.access)P.access[x]=r.access[x];P.addInitializer=function(S){if(_)throw new TypeError("Cannot add initializers after decoration has completed");o.push(l(S||null))};var E=(0,n[y])(u==="accessor"?{get:m.get,set:m.set}:m[d],P);if(u==="accessor"){if(E===void 0)continue;if(E===null||typeof E!="object")throw new TypeError("Object expected");(g=l(E.get))&&(m.get=g),(g=l(E.set))&&(m.set=g),(g=l(E.init))&&s.unshift(g)}else(g=l(E))&&(u==="field"?s.unshift(g):m[d]=g)}h&&Object.defineProperty(h,r.name,m),_=!0}function cb(t,e,n){for(var r=arguments.length>2,s=0;s<e.length;s++)n=r?e[s].call(t,n):e[s].call(t);return r?n:void 0}function db(t){return typeof t=="symbol"?t:"".concat(t)}function hb(t,e,n){return typeof e=="symbol"&&(e=e.description?"[".concat(e.description,"]"):""),Object.defineProperty(t,"name",{configurable:!0,value:n?"".concat(n," ",e):e})}function fb(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function X(t,e,n,r){function s(o){return o instanceof n?o:new n(function(l){l(o)})}return new(n||(n=Promise))(function(o,l){function u(m){try{h(r.next(m))}catch(g){l(g)}}function d(m){try{h(r.throw(m))}catch(g){l(g)}}function h(m){m.done?o(m.value):s(m.value).then(u,d)}h((r=r.apply(t,e||[])).next())})}function pb(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,s,o,l=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return l.next=u(0),l.throw=u(1),l.return=u(2),typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function u(h){return function(m){return d([h,m])}}function d(h){if(r)throw new TypeError("Generator is already executing.");for(;l&&(l=0,h[0]&&(n=0)),n;)try{if(r=1,s&&(o=h[0]&2?s.return:h[0]?s.throw||((o=s.return)&&o.call(s),0):s.next)&&!(o=o.call(s,h[1])).done)return o;switch(s=0,o&&(h=[h[0]&2,o.value]),h[0]){case 0:case 1:o=h;break;case 4:return n.label++,{value:h[1],done:!1};case 5:n.label++,s=h[1],h=[0];continue;case 7:h=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]<o[3])){n.label=h[1];break}if(h[0]===6&&n.label<o[1]){n.label=o[1],o=h;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(h);break}o[2]&&n.ops.pop(),n.trys.pop();continue}h=e.call(t,n)}catch(m){h=[6,m],s=0}finally{r=o=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}}var Tc=Object.create?function(t,e,n,r){r===void 0&&(r=n);var s=Object.getOwnPropertyDescriptor(e,n);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,s)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]};function mb(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Tc(e,t,n)}function Ku(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Bp(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),s,o=[],l;try{for(;(e===void 0||e-- >0)&&!(s=r.next()).done;)o.push(s.value)}catch(u){l={error:u}}finally{try{s&&!s.done&&(n=r.return)&&n.call(r)}finally{if(l)throw l.error}}return o}function gb(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(Bp(arguments[e]));return t}function vb(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;for(var r=Array(t),s=0,e=0;e<n;e++)for(var o=arguments[e],l=0,u=o.length;l<u;l++,s++)r[s]=o[l];return r}function yb(t,e,n){if(n||arguments.length===2)for(var r=0,s=e.length,o;r<s;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}function oo(t){return this instanceof oo?(this.v=t,this):new oo(t)}function _b(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),s,o=[];return s=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),u("next"),u("throw"),u("return",l),s[Symbol.asyncIterator]=function(){return this},s;function l(y){return function(P){return Promise.resolve(P).then(y,g)}}function u(y,P){r[y]&&(s[y]=function(x){return new Promise(function(E,S){o.push([y,x,E,S])>1||d(y,x)})},P&&(s[y]=P(s[y])))}function d(y,P){try{h(r[y](P))}catch(x){_(o[0][3],x)}}function h(y){y.value instanceof oo?Promise.resolve(y.value.v).then(m,g):_(o[0][2],y)}function m(y){d("next",y)}function g(y){d("throw",y)}function _(y,P){y(P),o.shift(),o.length&&d(o[0][0],o[0][1])}}function wb(t){var e,n;return e={},r("next"),r("throw",function(s){throw s}),r("return"),e[Symbol.iterator]=function(){return this},e;function r(s,o){e[s]=t[s]?function(l){return(n=!n)?{value:oo(t[s](l)),done:!1}:o?o(l):l}:o}}function xb(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof Ku=="function"?Ku(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=t[o]&&function(l){return new Promise(function(u,d){l=t[o](l),s(u,d,l.done,l.value)})}}function s(o,l,u,d){Promise.resolve(d).then(function(h){o({value:h,done:u})},l)}}function bb(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var H2=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e},cf=function(t){return cf=Object.getOwnPropertyNames||function(e){var n=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[n.length]=r);return n},cf(t)};function Sb(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n=cf(t),r=0;r<n.length;r++)n[r]!=="default"&&Tc(e,t,n[r]);return H2(e,t),e}function kb(t){return t&&t.__esModule?t:{default:t}}function Eb(t,e,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(t):r?r.value:e.get(t)}function Pb(t,e,n,r,s){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?s.call(t,n):s?s.value=n:e.set(t,n),n}function Cb(t,e){if(e===null||typeof e!="object"&&typeof e!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof t=="function"?e===t:t.has(e)}function Tb(t,e,n){if(e!=null){if(typeof e!="object"&&typeof e!="function")throw new TypeError("Object expected.");var r,s;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=e[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=e[Symbol.dispose],n&&(s=r)}if(typeof r!="function")throw new TypeError("Object not disposable.");
vendor: 1,394 bytes, line 245
245s&&(r=function(){try{s.call(this)}catch(o){return Promise.reject(o)}}),t.stack.push({value:e,dispose:r,async:n})}else n&&t.stack.push({async:!0});return e}var W2=typeof SuppressedError=="function"?SuppressedError:function(t,e,n){var r=new Error(n);return r.name="SuppressedError",r.error=t,r.suppressed=e,r};function jb(t){function e(o){t.error=t.hasError?new W2(o,t.error,"An error was suppressed during disposal."):o,t.hasError=!0}var n,r=0;function s(){for(;n=t.stack.pop();)try{if(!n.async&&r===1)return r=0,t.stack.push(n),Promise.resolve().then(s);if(n.dispose){var o=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(o).then(s,function(l){return e(l),s()})}else r|=1}catch(l){e(l)}if(r===1)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}return s()}function Ob(t,e){return typeof t=="string"&&/^\.\.?\//.test(t)?t.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(n,r,s,o,l){return r?e?".jsx":".js":s&&(!o||!l)?n:s+o+"."+l.toLowerCase()+"js"}):t}const V2={__extends:ob,__assign:qu,__rest:vo,__decorate:ab,__param:lb,__esDecorate:ub,__runInitializers:cb,__propKey:db,__setFunctionName:hb,__metadata:fb,__awaiter:X,__generator:pb,__createBinding:Tc,__exportStar:mb,__values:Ku,__read:Bp,__spread:gb,__spreadArrays:vb,__spreadArray:yb,__await:oo,__asyncGenerator:_b,__asyncDelegator:wb,__asyncValues:xb,__makeTemplateOb
245ject:bb,__importStar:Sb,__importDefault:kb,__classPrivateFieldGet:Eb,__classPrivateFieldSet:Pb,__classPrivateFieldIn:Cb,__addDisposableResource:Tb,__disposeResources:jb,__rewriteRelativeImportExtension:Ob},Z2=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:Tb,get __assign(){return qu},__asyncDelegator:wb,__asyncGenerator:_b,__asyncValues:xb,__await:oo,__awaiter:X,__classPrivateFieldGet:Eb,__classPrivateFieldIn:Cb,__classPrivateFieldSet:Pb,__createBinding:Tc,__decorate:ab,__disposeResources:jb,__esDecorate:ub,__exportStar:mb,__extends:ob,__generator:pb,__importDefault:kb,__importStar:Sb,__makeTemplateObject:bb,__metadata:fb,__param:lb,__propKey:db,__read:Bp,__rest:vo,__rewriteRelativeImportExtension:Ob,__runInitializers:cb,__setFunctionName:hb,__spread:gb,__spreadArray:yb,__spreadArrays:vb,__values:Ku,default:V2},Symbol.toStringTag,{value:"Module"})),q2="modulepreload",K2=function(t){return"/"+t},Zv={},yo=function(e,n,r){let s=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),u=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));s=Promise.allSettled(n.map(d=>{if(d=K2(d),d in Zv)return;Zv[d]=!0;const h=d.endsWith(".css"),m=h?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${m}`))return;const g=document.createElement("link");if(g.rel=h?"stylesheet":q2,h||(g.as="script"),g.crossOrigin="",g.href=d,u&&g.setAttribute("nonce",u),document.head.appendChild(g),h)return new Promise((_,y)=>{g.addEventListener("load",_),g.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${d}`)))})}))}function o(l){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=l,window.dispatchEvent(u),!u.defaultPrevented)throw l}return s.then(l=>{for(const u of l||[])u.status==="rejected"&&o(u.reason);return e().catch(o)})},G2=t=>{let e;return t?e=t:typeof fetch>"u"?e=(...n)=>yo(async()=>{const{default:r}=await Promise.resolve().then(()=>Qi);return{default:r}},void 0).then(({default:r})=>r(...n)):e=fetch,(...n)=>e(...n)};
245class $p extends Error{constructor(e,n="FunctionsError",r){super(e),this.name=n,this.context=r}}class qv extends $p{constructor(e){super("Failed to send a request to the Edge Function","FunctionsFetchError",e)}}class Kv extends $p{constructor(e){super("Relay Error invoking the Edge Function","FunctionsRelayError",e)}}class Gv extends $p{constructor(e){super("Edge Function returned a non-2xx status code","FunctionsHttpError",e)}}var df;(function(t){t.Any="any",t.ApNortheast1="ap-northeast-1",t.ApNortheast2="ap-northeast-2",t.ApSouth1="ap-south-1",t.ApSoutheast1="ap-southeast-1",t.ApSoutheast2="ap-southeast-2",t.CaCentral1="ca-central-1",t.EuCentral1="eu-central-1",t.EuWest1="eu-west-1",t.EuWest2="eu-west-2",t.EuWest3="eu-west-3",t.SaEast1="sa-east-1",t.UsEast1="us-east-1",t.UsWest1="us-west-1",t.UsWest2="us-west-2"})(df||(df={}));class J2{constructor(e,{headers:n={},customFetch:r,region:s=df.Any}={}){this.url=e,this.headers=n,this.region=s,this.fetch=G2(r)}setAuth(e){this.headers.Authorization=`Bearer ${e}`}invoke(e){return X(this,arguments,void 0,function*(n,r={}){var s;try{const{headers:o,method:l,body:u,signal:d}=r;let h={},{region:m}=r;m||(m=this.region);const g=new URL(`${this.url}/${n}`);m&&m!=="any"&&(h["x-region"]=m,g.searchParams.set("forceFunctionRegion",m));let _;u&&(o&&!Object.prototype.hasOwnProperty.call(o,"Content-Type")||!o)?typeof Blob<"u"&&u instanceof Blob||u instanceof ArrayBuffer?(h["Content-Type"]="application/octet-stream",_=u):typeof u=="string"?(h["Content-Type"]="text/plain",_=u):typeof FormData<"u"&&u instanceof FormData?_=u:(h["Content-Type"]="application/json",_=JSON.stringify(u)):_=u;const y=yield this.fetch(g.toString(),{method:l||"POST",headers:Object.assign(Object.assign(Object.assign({},h),this.headers),o),body:_,signal:d}).catch(S=>{throw S.name==="AbortError"?S:new qv(S)}),P=y.headers.get("x-relay-error");if(P&&P==="true")throw new Kv(y);if(!y.ok)throw new Gv(y);let x=((s=y.headers.get("Content-Type"))!==null&&s!==void 0?s:"text/plain").split(";")[0].trim(),E;return x==="application/json"?E=yield y.json():x==="application/octet-stream"||x==="application/pdf"?E=yield y.blob():x==="text/event-stream"?E=y:x==="multipart/form-data"?E=yield y.formData():E=yield y.text(),{data:E,error:null,response:y}}catch(o){return o instanceof Error&&o.name==="AbortError"?{data:null,error:new qv(o)}:{data:null,error:o,response:o instanceof Gv||o instanceof Kv?o.context:void 0}}})}}var kt={};const _o=Oy(Z2);var Hl={},Wl={},Vl={},Zl={},ql={},Q2=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")},ao=Q2();const Y2=ao.fetch,Nb=ao.fetch.bind(ao),Ab=ao.Headers,X2=ao.Request,eA=ao.Response,Qi=Object.freeze(Object.defineProperty({__proto__:null,Headers:Ab,Request:X2,Response:eA,default:Nb,fetch:Y2},Symbol.toStringTag,{value:"Module"})),tA=Oy(Qi);var Kl={},Jv;function Lb(){if(Jv)return Kl;Jv=1,Object.defineProperty(Kl,"__esModule",{value:!0});class t extends Error{constructor(n){super(n.message),this.name="PostgrestError",this.details=n.details,this.hint=n.hint,this.co
245de=n.code}}return Kl.default=t,Kl}var Qv;function Rb(){if(Qv)return ql;Qv=1,Object.defineProperty(ql,"__esModule",{value:!0});const t=_o,e=t.__importDefault(tA),n=t.__importDefault(Lb());class r{constructor(o){var l,u;this.shouldThrowOnError=!1,this.method=o.method,this.url=o.url,this.headers=new Headers(o.headers),this.schema=o.schema,this.body=o.body,this.shouldThrowOnError=(l=o.shouldThrowOnError)!==null&&l!==void 0?l:!1,this.signal=o.signal,this.isMaybeSingle=(u=o.isMaybeSingle)!==null&&u!==void 0?u:!1,o.fetch?this.fetch=o.fetch:typeof fetch>"u"?this.fetch=e.default:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(o,l){return this.headers=new Headers(this.headers),this.headers.set(o,l),this}then(o,l){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 u=this.fetch;let d=u(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async h=>{var m,g,_,y;let P=null,x=null,E=null,S=h.status,w=h.statusText;if(h.ok){if(this.method!=="HEAD"){const N=await h.text();N===""||(this.headers.get("Accept")==="text/csv"||this.headers.get("Accept")&&(!((m=this.headers.get("Accept"))===null||m===void 0)&&m.includes("application/vnd.pgrst.plan+text"))?x=N:x=JSON.parse(N))}const T=(g=this.headers.get("Prefer"))===null||g===void 0?void 0:g.match(/count=(exact|planned|estimated)/),O=(_=h.headers.get("content-range"))===null||_===void 0?void 0:_.split("/");T&&O&&O.length>1&&(E=parseInt(O[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(x)&&(x.length>1?(P={code:"PGRST116",details:`Results contain ${x.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},x=null,E=null,S=406,w="Not Acceptable"):x.length===1?x=x[0]:x=null)}else{const T=await h.text();try{P=JSON.parse(T),Array.isArray(P)&&h.status===404&&(x=[],P=null,S=200,w="OK")}catch{h.status===404&&T===""?(S=204,w="No Content"):P={message:T}}if(P&&this.isMaybeSingle&&(!((y=P==null?void 0:P.details)===null||y===void 0)&&y.includes("0 rows"))&&(P=null,S=200,w="OK"),P&&this.shouldThrowOnError)throw new n.default(P)}return{error:P,data:x,count:E,status:S,statusText:w}});return this.shouldThrowOnError||(d=d.catch(h=>{var m,g,_;return{error:{message:`${(m=h==null?void 0:h.name)!==null&&m!==void 0?m:"FetchError"}: ${h==null?void 0:h.message}`,details:`${(g=h==null?void 0:h.stack)!==null&&g!==void 0?g:""}`,hint:"",code:`${(_=h==null?void 0:h.code)!==null&&_!==void 0?_:""}`},data:null,count:null,status:0,statusText:""}})),d.then(o,l)}returns(){return this}overrideTypes(){return this}}return ql.default=r,ql}var Yv;function Ib(){if(Yv)return Zl;Yv=1,Object.defineProperty(Zl,"__esModule",{value:!0});const e=_o.__importDefault(Rb());class n extends e.default{select(s){let o=!1;const l=(s??"*").split("").map(u=>/\s/.test(u)&&!o?"":(u==='"'&&(o=!o),u)).join("");return this.url.searchParams.set("select",l),this.headers.append("Prefer","return=representation"),this}order(s,{ascending:o=!0,nullsFirst:l,foreignTable:u,referencedTable:d=u}={}){const h=d?`${d}.order`:"order",m=this.url.searchParams.get(h);return this.url.searchParams.set(h,`${m?`${m},`:""}${s}.${o?"asc":"desc"}${l===void 0?"":l?".nullsfirst":".nullslast"}`),this}limit(s,{foreignTable:o,referencedTable:l=o}={}){const u=typeof l>"u"?"limit":`${l}.limit`;return this.url.searchParams.set(u,`${s}`),this}range(s,o,{foreignTable:l,referencedTable:u=l}={}){const d=typeof u>"u"?"offset":`${u}.offset`,h=typeof u>"u"?"limit":`${u}.limit`;return this.url.searchParams.set(d,`${s}`),this.url.searchParams.set(h,`${o-s+1}`),this}abortSignal(s){return this.signal=s,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}
245explain({analyze:s=!1,verbose:o=!1,settings:l=!1,buffers:u=!1,wal:d=!1,format:h="text"}={}){var m;const g=[s?"analyze":null,o?"verbose":null,l?"settings":null,u?"buffers":null,d?"wal":null].filter(Boolean).join("|"),_=(m=this.headers.get("Accept"))!==null&&m!==void 0?m:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${h}; for="${_}"; options=${g};`),h==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(s){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${s}`),this}}return Zl.default=n,Zl}var Xv;function Fp(){if(Xv)return Vl;Xv=1,Object.defineProperty(Vl,"__esModule",{value:!0});const e=_o.__importDefault(Ib()),n=new RegExp("[,()]");class r extends e.default{eq(o,l){return this.url.searchParams.append(o,`eq.${l}`),this}neq(o,l){return this.url.searchParams.append(o,`neq.${l}`),this}gt(o,l){return this.url.searchParams.append(o,`gt.${l}`),this}gte(o,l){return this.url.searchParams.append(o,`gte.${l}`),this}lt(o,l){return this.url.searchParams.append(o,`lt.${l}`),this}lte(o,l){return this.url.searchParams.append(o,`lte.${l}`),this}like(o,l){return this.url.searchParams.append(o,`like.${l}`),this}likeAllOf(o,l){return this.url.searchParams.append(o,`like(all).{${l.join(",")}}`),this}likeAnyOf(o,l){return this.url.searchParams.append(o,`like(any).{${l.join(",")}}`),this}ilike(o,l){return this.url.searchParams.append(o,`ilike.${l}`),this}ilikeAllOf(o,l){return this.url.searchParams.append(o,`ilike(all).{${l.join(",")}}`),this}ilikeAnyOf(o,l){return this.url.searchParams.append(o,`ilike(any).{${l.join(",")}}`),this}is(o,l){return this.url.searchParams.append(o,`is.${l}`),this}in(o,l){const u=Array.from(new Set(l)).map(d=>typeof d=="string"&&n.test(d)?`"${d}"`:`${d}`).join(",");return this.url.searchParams.append(o,`in.(${u})`),this}contains(o,l){return typeof l=="string"?this.url.searchParams.append(o,`cs.${l}`):Array.isArray(l)?this.url.searchParams.append(o,`cs.{${l.join(",")}}`):this.url.searchParams.append(o,`cs.${JSON.stringify(l)}`),this}containedBy(o,l){return typeof l=="string"?this.url.searchParams.append(o,`cd.${l}`):Array.isArray(l)?this.url.searchParams.append(o,`cd.{${l.join(",")}}`):this.url.searchParams.append(o,`cd.${JSON.stringify(l)}`),this}rangeGt(o,l){return this.url.searchParams.append(o,`sr.${l}`),this}rangeGte(o,l){return this.url.searchParams.append(o,`nxl.${l}`),this}rangeLt(o,l){return this.url.searchParams.append(o,`sl.${l}`),this}rangeLte(o,l){return this.url.searchParams.append(o,`nxr.${l}`),this}rangeAdjacent(o,l){return this.url.searchParams.append(o,`adj.${l}`),this}overlaps(o,l){return typeof l=="string"?this.url.searchParams.append(o,`ov.${l}`):this.url.searchParams.append(o,`ov.{${l.join(",")}}`),this}textSearch(o,l,{config:u,type:d}={}){let h="";
245d==="plain"?h="pl":d==="phrase"?h="ph":d==="websearch"&&(h="w");const m=u===void 0?"":`(${u})`;return this.url.searchParams.append(o,`${h}fts${m}.${l}`),this}match(o){return Object.entries(o).forEach(([l,u])=>{this.url.searchParams.append(l,`eq.${u}`)}),this}not(o,l,u){return this.url.searchParams.append(o,`not.${l}.${u}`),this}or(o,{foreignTable:l,referencedTable:u=l}={}){const d=u?`${u}.or`:"or";return this.url.searchParams.append(d,`(${o})`),this}filter(o,l,u){return this.url.searchParams.append(o,`${l}.${u}`),this}}return Vl.default=r,Vl}var ey;function Mb(){if(ey)return Wl;ey=1,Object.defineProperty(Wl,"__esModule",{value:!0});const e=_o.__importDefault(Fp());class n{constructor(s,{headers:o={},schema:l,fetch:u}){this.url=s,this.headers=new Headers(o),this.schema=l,this.fetch=u}select(s,o){const{head:l=!1,count:u}=o??{},d=l?"HEAD":"GET";let h=!1;const m=(s??"*").split("").map(g=>/\s/.test(g)&&!h?"":(g==='"'&&(h=!h),g)).join("");return this.url.searchParams.set("select",m),u&&this.headers.append("Prefer",`count=${u}`),new e.default({method:d,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch})}insert(s,{count:o,defaultToNull:l=!0}={}){var u;const d="POST";if(o&&this.headers.append("Prefer",`count=${o}`),l||this.headers.append("Prefer","missing=default"),Array.isArray(s)){const h=s.reduce((m,g)=>m.concat(Object.keys(g)),[]);if(h.length>0){const m=[...new Set(h)].map(g=>`"${g}"`);this.url.searchParams.set("columns",m.join(","))}}return new e.default({method:d,url:this.url,headers:this.headers,schema:this.schema,body:s,fetch:(u=this.fetch)!==null&&u!==void 0?u:fetch})}upsert(s,{onConflict:o,ignoreDuplicates:l=!1,count:u,defaultToNull:d=!0}={}){var h;const m="POST";if(this.headers.append("Prefer",`resolution=${l?"ignore":"merge"}-duplicates`),o!==void 0&&this.url.searchParams.set("on_conflict",o),u&&this.headers.append("Prefer",`count=${u}`),d||this.headers.append("Prefer","missing=default"),Array.isArray(s)){const g=s.reduce((_,y)=>_.concat(Object.keys(y)),[]);if(g.length>0){const _=[...new Set(g)].map(y=>`"${y}"`);this.url.searchParams.set("columns",_.join(","))}}return new e.default({method:m,url:this.url,headers:this.headers,schema:this.schema,body:s,fetch:(h=this.fetch)!==null&&h!==void 0?h:fetch})}update(s,{count:o}={}){var l;const u="PATCH";return o&&this.headers.append("Prefer",`count=${o}`),new e.default({method:u,url:this.url,headers:this.headers,schema:this.schema,body:s,fetch:(l=this.fetch)!==null&&l!==void 0?l:fetch})}delete({count:s}={}){var o;const l="DELETE";return s&&this.headers.append("Prefer",`count=${s}`),new e.default({method:l,url:this.url,headers:this.headers,schema:this.schema,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch})}}return Wl.default=n,Wl}var ty;function nA(){if(ty)return Hl;ty=1,Object.defineProperty(Hl,"__esModule",{value:!0});const t=_o,e=t.__importDefault(Mb()),n=t.__importDefault(Fp());class r{constructor(o,{headers:l={},schema:u,fetch:d}={}){this.url=o,this.headers=new Headers(l),this.schemaName=u,this.fetch=d}from(o){const l=new URL(`${this.url}/${o}`);return new e.default(l,{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch})}schema(o){return new r(this.url,{headers:this.headers,schema:o,fetch:this.fetch})}rpc(o,l={},{head:u=!1,get:d=!1,count:h}={}){var m;let g;const _=new URL(`${this.url}/rpc/${o}`);let y;u||d?(g=u?"HEAD":"GET",Object.entries(l).filter(([x,E])=>E!==void 0).map(([x,E])=>[x,Array.isArray(E)?`{${E.join(",")}}`:`${E}`]).forEach(([x,E])=>{_.searchParams.append(x,E)})):(g="POST",y=l);const P=new Headers(this.headers);return h&&P.set("Prefer",`count=${h}`),new n.default({method:g,url:_,headers:P,schema:this.schemaName,body:y,fetch:(m=this.fetch)!==null&&m!==void 0?m:fetch})}}return Hl.default=r,Hl}Object.defineProperty(kt,"__esModule",{value:!0});var Db=kt.PostgrestError=qb=kt.PostgrestBuilder=Vb=kt.PostgrestTransformBuilder=Hb=kt.PostgrestFilterBuilder=Fb=kt.PostgrestQueryBuilder=Bb=kt.PostgrestClient=void 0;const wo=_o,zb=wo.__importDefault(nA());var Bb=kt.PostgrestClient=zb.default;const $b=wo.__importDefault(Mb());var Fb=kt.PostgrestQueryBuilder=$b.default;const Ub=wo.__importDefault(Fp());var Hb=kt.PostgrestFilterBuilder=Ub.default;const Wb=wo.__importDefault(Ib());var Vb=kt.PostgrestTransformBuilder=Wb.default;const Zb=wo.__importDefault(Rb());var qb=kt.PostgrestBuilder=Zb.default;const Kb=wo.__importDefault(Lb());Db=kt.PostgrestError=Kb.default;var Gb=kt.default={PostgrestClient:zb.default,PostgrestQueryBuilder:$b.default,PostgrestFilterBuilder:Ub.default,PostgrestTransformBuilder:Wb.default,PostgrestBuilder:Zb.default,PostgrestError:Kb.default};const rA=jy({__proto__:null,get PostgrestBuilder(){return qb},get PostgrestClient(){return Bb},get PostgrestError(){return Db},get PostgrestFilterBuilder(){return Hb},get PostgrestQueryBuilder(){return Fb},get PostgrestTransformBuilder(){return Vb},default:Gb},[kt]),{PostgrestClient:iA,PostgrestQueryBuilder:IR,PostgrestFilterBuilder:MR,PostgrestTransformBuilder:DR,PostgrestBuilder:zR,PostgrestError:BR}=Gb||rA;class sA{static detectEnvironment(){var e;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"&&(!((e=navigator.userAgent)===null||e===void 0)&&e.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,s=parseInt(r.replace(/^v/,"").split(".")[0]);return s>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${s} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${s} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option:
246import ws from "ws"
247new 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 e=this.detectEnvironment();if(e.constructor)return e.constructor;let n=e.error||"WebSocket not supported in this environment.";throw e.workaround&&(n+=`
248
249Suggested solution: ${e.workaround}`),new Error(n)}static createWebSocket(e,n){const r=this.getWebSocketConstructor();return new r(e,n)}static isWebSocketSupported(){try{const e=this.detectEnvironment();return e.type==="native"||e.type==="ws"}catch{return!1}}}const oA="2.78.0",aA=`realtime-js/${oA}`,lA="1.0.0",hf=1e4,uA=1e3,cA=100;var ua;(function(t){t[t.connecting=0]="connecting",t[t.open=1]="open",t[t.closing=2]="closing",t[t.closed=3]="closed"})(ua||(ua={}));var Xe;(function(t){t.closed="closed",t.errored="errored",t.joined="joined",t.joining="joining",t.leaving="leaving"})(Xe||(Xe={}));var kn;(function(t){t.close="phx_close",t.error="phx_error",t.join="phx_join",t.reply="phx_reply",t.leave="phx_leave",t.access_token="access_token"})(kn||(kn={}));var ff;(function(t){t.websocket="websocket"})(ff||(ff={}));var Pi;(function(t){t.Connecting="connecting",t.Open="open",t.Closing="closing",t.Closed="closed"})(Pi||(Pi={}));class dA{constructor(){this.HEADER_LENGTH=1}decode(e,n){return e.constructor===ArrayBuffer?n(this._binaryDecode(e)):n(typeof e=="string"?JSON.parse(e):{})}_binaryDecode(e){const n=new DataView(e),r=new TextDecoder;return this._decodeBroadcast(e,n,r)}_decodeBroadcast(e,n,r){const s=n.getUint8(1),o=n.getUint8(2);let l=this.HEADER_LENGTH+2;const u=r.decode(e.slice(l,l+s));l=l+s;
249const d=r.decode(e.slice(l,l+o));l=l+o;const h=JSON.parse(r.decode(e.slice(l,e.byteLength)));return{ref:null,topic:u,event:d,payload:h}}}class Jb{constructor(e,n){this.callback=e,this.timerCalc=n,this.timer=void 0,this.tries=0,this.callback=e,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 je;(function(t){t.abstime="abstime",t.bool="bool",t.date="date",t.daterange="daterange",t.float4="float4",t.float8="float8",t.int2="int2",t.int4="int4",t.int4range="int4range",t.int8="int8",t.int8range="int8range",t.json="json",t.jsonb="jsonb",t.money="money",t.numeric="numeric",t.oid="oid",t.reltime="reltime",t.text="text",t.time="time",t.timestamp="timestamp",t.timestamptz="timestamptz",t.timetz="timetz",t.tsrange="tsrange",t.tstzrange="tstzrange"})(je||(je={}));const ny=(t,e,n={})=>{var r;const s=(r=n.skipTypes)!==null&&r!==void 0?r:[];return e?Object.keys(e).reduce((o,l)=>(o[l]=hA(l,t,e,s),o),{}):{}},hA=(t,e,n,r)=>{const s=e.find(u=>u.name===t),o=s==null?void 0:s.type,l=n[t];return o&&!r.includes(o)?Qb(o,l):pf(l)},Qb=(t,e)=>{if(t.charAt(0)==="_"){const n=t.slice(1,t.length);return gA(e,n)}switch(t){case je.bool:return fA(e);case je.float4:case je.float8:case je.int2:case je.int4:case je.int8:case je.numeric:case je.oid:return pA(e);case je.json:case je.jsonb:return mA(e);case je.timestamp:return vA(e);case je.abstime:case je.date:case je.daterange:case je.int4range:case je.int8range:case je.money:case je.reltime:case je.text:case je.time:case je.timestamptz:case je.timetz:case je.tsrange:case je.tstzrange:return pf(e);default:return pf(e)}},pf=t=>t,fA=t=>{switch(t){case"t":return!0;case"f":return!1;default:return t}},pA=t=>{if(typeof t=="string"){const e=parseFloat(t);if(!Number.isNaN(e))return e}return t},mA=t=>{if(typeof t=="string")try{return JSON.parse(t)}catch(e){return console.log(`JSON parse error: ${e}`),t}return t},gA=(t,e)=>{if(typeof t!="string")return t;const n=t.length-1,r=t[n];if(t[0]==="{"&&r==="}"){let o;const l=t.slice(1,n);try{o=JSON.parse("["+l+"]")}catch{o=l?l.split(","):[]}return o.map(u=>Qb(e,u))}return t},vA=t=>typeof t=="string"?t.replace(" ","T"):t,Yb=t=>{const e=new URL(t);return e.protocol=e.protocol.replace(/^ws/i,"http"),e.pathname=e.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),e.pathname===""||e.pathname==="/"?e.pathname="/api/broadcast":e.pathname=e.pathname+"/api/broadcast",e.href};class Vd{constructor(e,n,r={},s=hf){this.channel=e,this.event=n,this.payload=r,this.timeout=s,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(e){this.timeout=e,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(e){this.payload=Object.assign(Object.assign({},this.payload),e)}receive(e,n){var r;return this._hasReceived(e)&&n((r=this.receivedResp)===null||r===void 0?void 0:r.response),this.recHooks.push({status:e,callback:n}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const e=n=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=n,this._matchReceive(n)};this.channel._on(this.refEvent,{},e),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(e,n){this.refEvent&&this.channel._trigger(this.refEvent,{status:e,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:e,response:n}){this.recHooks.filter(r=>r.status===e).forEach(r=>r.callback(n))}_hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}}var ry;(function(t){t.SYNC="sync",t.JOIN="join",t.LEAVE="leave"})(ry||(ry={}));class ca{constructor(e,n){this.channel=e,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,{},s=>{const{onJoin:o,onLeave:l,onSync:u}=this.caller;this.joinRef=this.channel._joinRef(),this.state=ca.syncState(this.state,s,o,l),this.pendingDiffs.forEac
249h(d=>{this.state=ca.syncDiff(this.state,d,o,l)}),this.pendingDiffs=[],u()}),this.channel._on(r.diff,{},s=>{const{onJoin:o,onLeave:l,onSync:u}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(s):(this.state=ca.syncDiff(this.state,s,o,l),u())}),this.onJoin((s,o,l)=>{this.channel._trigger("presence",{event:"join",key:s,currentPresences:o,newPresences:l})}),this.onLeave((s,o,l)=>{this.channel._trigger("presence",{event:"leave",key:s,currentPresences:o,leftPresences:l})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(e,n,r,s){const o=this.cloneDeep(e),l=this.transformState(n),u={},d={};return this.map(o,(h,m)=>{l[h]||(d[h]=m)}),this.map(l,(h,m)=>{const g=o[h];if(g){const _=m.map(E=>E.presence_ref),y=g.map(E=>E.presence_ref),P=m.filter(E=>y.indexOf(E.presence_ref)<0),x=g.filter(E=>_.indexOf(E.presence_ref)<0);P.length>0&&(u[h]=P),x.length>0&&(d[h]=x)}else u[h]=m}),this.syncDiff(o,{joins:u,leaves:d},r,s)}static syncDiff(e,n,r,s){const{joins:o,leaves:l}={joins:this.transformState(n.joins),leaves:this.transformState(n.leaves)};return r||(r=()=>{}),s||(s=()=>{}),this.map(o,(u,d)=>{var h;const m=(h=e[u])!==null&&h!==void 0?h:[];if(e[u]=this.cloneDeep(d),m.length>0){const g=e[u].map(y=>y.presence_ref),_=m.filter(y=>g.indexOf(y.presence_ref)<0);e[u].unshift(..._)}r(u,m,d)}),this.map(l,(u,d)=>{let h=e[u];if(!h)return;const m=d.map(g=>g.presence_ref);h=h.filter(g=>m.indexOf(g.presence_ref)<0),e[u]=h,s(u,h,d),h.length===0&&delete e[u]}),e}static map(e,n){return Object.getOwnPropertyNames(e).map(r=>n(r,e[r]))}static transformState(e){return e=this.cloneDeep(e),Object.getOwnPropertyNames(e).reduce((n,r)=>{const s=e[r];return"metas"in s?n[r]=s.metas.map(o=>(o.presence_ref=o.phx_ref,delete o.phx_ref,delete o.phx_ref_prev,o)):n[r]=s,n},{})}static cloneDeep(e){return JSON.parse(JSON.stringify(e))}onJoin(e){this.caller.onJoin=e}onLeave(e){this.caller.onLeave=e}onSync(e){this.caller.onSync=e}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var iy;(function(t){t.ALL="*",t.INSERT="INSERT",t.UPDATE="UPDATE",t.DELETE="DELETE"})(iy||(iy={}));var da;(function(t){t.BROADCAST="broadcast",t.PRESENCE="presence",t.POSTGRES_CHANGES="postgres_changes",t.SYSTEM="system"})(da||(da={}));var dr;(function(t){t.SUBSCRIBED="SUBSCRIBED",t.TIMED_OUT="TIMED_OUT",t.CLOSED="CLOSED",t.CHANNEL_ERROR="CHANNEL_ERROR"})(dr||(dr={}));class Up{constructor(e,n={config:{}},r){var s,o;if(this.topic=e,this.params=n,this.socket=r,this.bindings={},this.state=Xe.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=e.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 Vd(this,kn.join,this.params,this.timeout),this.rejoinTimer=new Jb(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=Xe.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(l=>l.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=Xe.closed,this.socket._remove(this)}),this._onError(l=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,l),this.state=Xe.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=Xe.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",l=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,l),this.state=Xe.errored,this.rejoinTimer.scheduleTimeout())}),this._on(kn.reply,{},(l,u)=>{this._trigger(this._replyEventName(u),l)}),this.presence=new ca(this),this.broadcastEndpointURL=Yb(this.socket.endPoint),this.private=this.params.config.private||!1,!this.private&&(!((o=(s=this.params.config)===null||s===void 0?void 0:s.broadcast)===null||o===void 0)&&o.replay))throw`tried to use replay on public channel '${this.topic}'. It must be a private channel.`}subscribe(e,n=this.timeout){var r,s,o;if(this.socket.isConnected()||this.socket.connect(),this.state==Xe.closed){const{config:{broadcast:l,presence:u,private:d}}=this.params,h=(s=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(y=>y.filter))!==null&&s!==void 0?s:[],m=!!this.bindings[da.PRESENCE]&&this.bindings[da.PRESENCE].length>0||((o=this.params.config.presence)===null||o===void 0?void 0:o.enabled)===!0,g={},_={broadcast:l,presence:Object.assign(Object.assign({},u),{enabled:m}),postgres_changes:h,private:d};this.socket.accessTokenValue&&(g.access_token=this.socket.accessTokenValue),this._onError(y=>e==null?void 0:e(dr.CHANNEL_ERROR,y)),this._onClose(()=>e==null?void 0:e(dr.CLOSED)),this.updateJoinPayload(Object.assign({config:_},g)),this.joinedOnce=!0,this._rejoin(n),this.joinPush.receive("ok",async({postgres_changes:y})=>{var P;if(this.socket.setAuth(),y===void 0){e==null||e(dr.SUBSCRIBED);return}else{const x=this.bindings.postgres_changes,E=(P=x==null?void 0:x.length)!==null&&P!==void 0?P:0,S=[];for(let w=0;w<E;w++){const b=x[w],{filter:{event:T,schema:O,table:N,filter:I}}=b,B=y&&y[w];if(B&&B.event===T&&B.schema===O&&B.table===N&&B.filter===I)S.push(Object.assign(Object.assign({},b),{id:B.id}));else{this.unsubscribe(),this.state=Xe.errored,e==null||e(dr.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=S,e&&e(dr.SUBSCRIBED);return}}).receive("error",y=>{this.state=Xe.errored,e==null||e(dr.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(y).join(", ")||"error")))}).receive("timeout",()=>{e==null||e(dr.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(e,n={}){return await this.send({type:"presence",event:"track",payload:e},n.timeout||this.timeout)}async untrack(e={}){return await this.send({type:"presence",event:"untrack"},e)}on(e,n,r){return this.state===Xe.joined&&e===da.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(()=>this.subscribe())),this._on(e,n,r)}async httpSend(e,n,r={}){var s;const o=this.socket.accessTokenValue?`Bearer ${this.socket.accessTokenValue}`:"";if(n==null)return Promise.reject("Payload is required for httpSend()");const l={method:"POST",headers:{Authorization:o,apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:e,payload:n,private:this.private}]})},u=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(s=r.timeout)!==null&&s!==void 0?s:this.timeout);if(u.status===202)return{success:!0};let d=u.statusText;
249try{const h=await u.json();d=h.error||h.message||d}catch{}return Promise.reject(new Error(d))}async send(e,n={}){var r,s;if(!this._canPush()&&e.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:o,payload:l}=e,d={method:"POST",headers:{Authorization:this.socket.accessTokenValue?`Bearer ${this.socket.accessTokenValue}`:"",apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:o,payload:l,private:this.private}]})};try{const h=await this._fetchWithTimeout(this.broadcastEndpointURL,d,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((s=h.body)===null||s===void 0?void 0:s.cancel()),h.ok?"ok":"error"}catch(h){return h.name==="AbortError"?"timed out":"error"}}else return new Promise(o=>{var l,u,d;const h=this._push(e.type,e,n.timeout||this.timeout);e.type==="broadcast"&&!(!((d=(u=(l=this.params)===null||l===void 0?void 0:l.config)===null||u===void 0?void 0:u.broadcast)===null||d===void 0)&&d.ack)&&o("ok"),h.receive("ok",()=>o("ok")),h.receive("error",()=>o("error")),h.receive("timeout",()=>o("timed out"))})}updateJoinPayload(e){this.joinPush.updatePayload(e)}unsubscribe(e=this.timeout){this.state=Xe.leaving;const n=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(kn.close,"leave",this._joinRef())};this.joinPush.destroy();let r=null;return new Promise(s=>{r=new Vd(this,kn.leave,{},e),r.receive("ok",()=>{n(),s("ok")}).receive("timeout",()=>{n(),s("timed out")}).receive("error",()=>{s("error")}),r.send(),this._canPush()||r.trigger("ok",{})}).finally(()=>{r==null||r.destroy()})}teardown(){this.pushBuffer.forEach(e=>e.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=Xe.closed,this.bindings={}}async _fetchWithTimeout(e,n,r){const s=new AbortController,o=setTimeout(()=>s.abort(),r),l=await this.socket.fetch(e,Object.assign(Object.assign({},n),{signal:s.signal}));return clearTimeout(o),l}_push(e,n,r=this.timeout){if(!this.joinedOnce)throw`tried to push '${e}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let s=new Vd(this,e,n,r);return this._canPush()?s.send():this._addToPushBuffer(s),s}_addToPushBuffer(e){if(e.startTimeout(),this.pushBuffer.push(e),this.pushBuffer.length>cA){const n=this.pushBuffer.shift();n&&(n.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${n.event}`,n.payload))}}_onMessage(e,n,r){return n}_isMember(e){return this.topic===e}_joinRef(){return this.joinPush.ref}_trigger(e,n,r){var s,o;const l=e.toLocaleLowerCase(),{close:u,error:d,leave:h,join:m}=kn;if(r&&[u,d,h,m].indexOf(l)>=0&&r!==this._joinRef())return;let _=this._onMessage(l,n,r);if(n&&!_)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(l)?(s=this.bindings.postgres_changes)===null||s===void 0||s.filter(y=>{var P,x,E;return((P=y.filter)===null||P===void 0?void 0:P.event)==="*"||((E=(x=y.filter)===null||x===void 0?void 0:x.event)===null||E===void 0?void 0:E.toLocaleLowerCase())===l}).map(y=>y.callback(_,r)):(o=this.bindings[l])===null||o===void 0||o.filter(y=>{var P,x,E,S,w,b;if(["broadcast","presence","postgres_changes"].includes(l))if("id"in y){const T=y.id,O=(P=y.filter)===null||P===void 0?void 0:P.event;return T&&((x=n.ids)===null||x===void 0?void 0:x.includes(T))&&(O==="*"||(O==null?void 0:O.toLocaleLowerCase())===((E=n.data)===null||E===void 0?void 0:E.type.toLocaleLowerCase()))}else{const T=(w=(S=y==null?void 0:y.filter)===null||S===void 0?void 0:S.event)===null||w===void 0?void 0:w.toLocaleLowerCase();return T==="*"||T===((b=n==null?void 0:n.event)===null||b===void 0?void 0:b.toLocaleLowerCase())}else return y.type.toLocaleLowerCase()===l}).map(y=>{if(typeof _=="object"&&"ids"in _){const P=_.data,{schema:x,table:E,commit_timestamp:S,type:w,errors:b}=P;_=Object.assign(Object.assign({},{schema:x,table:E,commit_timestamp:S,eventType:w,new:{},old:{},errors:b}),this._getPayloadRecords(P))}y.callback(_,r)})}_isClosed(){return this.state===Xe.closed}_isJoined(){return this.state===Xe.joined}_isJoining(){return this.state===Xe.joining}_isLeaving(){return this.state===Xe.leaving}_replyEventName(e){return`chan_reply_${e}`}_on(e,n,r){const s=e.toLocaleLowerCase(),o={type:s,filter:n,callback:r};return this.bindings[s]?this.bindings[s].push(o):this.bindings[s]=[o],this}_off(e,n){const r=e.toLocaleLowerCase();return this.bindings[r]&&(this.bindings[r]=this.bindings[r].filter(s=>{var o;return!(((o=s.type)===null||o===void 0?void 0:o.toLocaleLowerCase())===r&&Up.isEqual(s.filter,n))})),this}static isEqual(e,n){if(Object.keys(e).length!==Object.keys(n).length)return!1;for(const r in e)if(e[r]!==n[r])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(e){this._on(kn.close,{},e)}_onError(e){this._on(kn.error,{},n=>e(n))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(e=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=Xe.joining,this.joinPush.resend(e))}_getPayloadRecords(e){const n={new:{},old:{}};return(e.type==="INSERT"||e.type==="UPDATE")&&(n.new=ny(e.columns,e.record)),(e.type==="UPDATE"||e.type==="DELETE")&&(n.old=ny(e.columns,e.old_record)),n}}const Zd=()=>{},Gl={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},yA=[1e3,2e3,5e3,1e4],_A=1e4,wA=`
250  addEventListener("message", (e) => {
251    if (e.data.event === "start") {
252      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
253    }
254  });`;class xA{constructor(e,n){var r;if(this.accessTokenValue=null,this.apiKey=null,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=hf,this.transport=null,this.heartbeatIntervalMs=Gl.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=Zd,this.ref=0,this.reconnectTimer=null,this.logger=Zd,this.conn=null,this.sendBuffer=[],this.serializer
254=new dA,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._resolveFetch=s=>{let o;return s?o=s:typeof fetch>"u"?o=(...l)=>yo(async()=>{const{default:u}=await Promise.resolve().then(()=>Qi);return{default:u}},void 0).then(({default:u})=>u(...l)).catch(u=>{throw new Error(`Failed to load @supabase/node-fetch: ${u.message}. This is required for HTTP requests in Node.js environments without native fetch.`)}):o=fetch,(...l)=>o(...l)},!(!((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=`${e}/${ff.websocket}`,this.httpEndpoint=Yb(e),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._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=sA.createWebSocket(this.endpointURL())}catch(e){this._setConnectionState("disconnected");const n=e.message;throw n.includes("Node.js")?new Error(`${n}
255
256To use Realtime in Node.js, you need to provide a WebSocket implementation:
257
258Option 1: Use Node.js 22+ which has native WebSocket support
259Option 2: Install and provide the "ws" package:
260
261  npm install ws
262
263  import ws from "ws"
264  const client = new RealtimeClient(url, {
265    ...options,
266    transport: ws
267  })`):new Error(`WebSocket not available: ${n}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:lA}))}disconnect(e,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")},e?this.conn.close(e,n??""):this.conn.close(),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(e){const n=await e.unsubscribe();return this.channels.length===0&&this.disconnect(),n}async removeAllChannels(){const e=await Promise.all(this.channels.map(n=>n.unsubscribe()));return this.channels=[],this.disconnect(),e}log(e,n,r){this.logger(e,n,r)}connectionState(){switch(this.conn&&this.conn.readyState){case ua.connecting:return Pi.Connecting;case ua.open:return Pi.Open;case ua.closing:return Pi.Closing;default:return Pi.Closed}}isConnected(){return this.connectionState()===Pi.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(e,n={config:{}}){const r=`realtime:${e}`,s=this.getChannels().find(o=>o.topic===r);if(s)return s;{const o=new Up(`realtime:${e}`,n,this);return this.channels.push(o),o}}push(e){const{topic:n,event:r,payload:s,ref:o}=e,l=()=>{this.encode(e,u=>{var d;(d=this.conn)===null||d===void 0||d.send(u)})};this.log("push",`${n} ${r} (${o})`,s),this.isConnected()?l():this.sendBuffer.push(l)}async setAuth(e=null){this._authPromise=this._performAuth(e);try{await this._authPromise}finally{this._authPromise=null}}async sendHeartbeat(){var e;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,(e=this.conn)===null||e===void 0||e.close(uA,"heartbeat timeout"),setTimeout(()=>{var n;this.isConnected()||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout()},Gl.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(e){this.heartbeatCallback=e}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>
2670&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}_makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}_leaveOpenTopic(e){let n=this.channels.find(r=>r.topic===e&&(r._isJoined()||r._isJoining()));n&&(this.log("transport",`leaving duplicate topic "${e}"`),n.unsubscribe())}_remove(e){this.channels=this.channels.filter(n=>n.topic!==e.topic)}_onConnMessage(e){this.decode(e.data,n=>{if(n.topic==="phoenix"&&n.event==="phx_reply")try{this.heartbeatCallback(n.payload.status==="ok"?"ok":"error")}catch(h){this.log("error","error in heartbeat callback",h)}n.ref&&n.ref===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null);const{topic:r,event:s,payload:o,ref:l}=n,u=l?`(${l})`:"",d=o.status||"";this.log("receive",`${d} ${r} ${s} ${u}`.trim(),o),this.channels.filter(h=>h._isMember(r)).forEach(h=>h._trigger(s,o,l)),this._triggerStateCallbacks("message",n)})}_clearTimer(e){var n;e==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):e==="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=e=>this._onConnError(e),this.conn.onmessage=e=>this._onConnMessage(e),this.conn.onclose=e=>this._onConnClose(e))}_teardownConnection(){this.conn&&(this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null),this._clearAllTimers(),this.channels.forEach(e=>e.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),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 e=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(e),this.workerRef.onerror=n=>{this.log("worker","worker error",n.message),this.workerRef.terminate()},this.workerRef.onmessage=n=>{n.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_onConnClose(e){var n;this._setConnectionState("disconnected"),this.log("transport","close",e),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout(),this._triggerStateCallbacks("close",e)}_onConnError(e){this._setConnectionState("disconnected"),this.log("transport",`${e}`),this._triggerChanError(),this._triggerStateCallbacks("error",e)}_triggerChanError(){this.channels.forEach(e=>e._trigger(kn.error))}_appendParams(e,n){if(Object.keys(n).length===0)return e;const r=e.match(/\?/)?"&":"?",s=new URLSearchParams(n);return`${e}${r}${s}`}_workerObjectUrl(e){let n;if(e)n=e;else{const r=new Blob([wA],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}_setConnectionState(e,n=!1){this._connectionState=e,e==="connecting"?this._wasManualDisconnect=!1:e==="disconnecting"&&(this._wasManualDisconnect=n)}async _performAuth(e=null){let n;e?n=e:this.accessToken?n=await this.accessToken():n=this.accessTokenValue,this.accessTokenValue!=n&&(this.accessTokenValue=n,this.channels.forEach(r=>{const s={access_token:n,version:aA};n&&r.updateJoinPayload(s),r.joinedOnce&&r._isJoined()&&r._push(kn.access_token,{access_token:n})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(e="general"){this.setAuth().catch(n=>{this.log("error",`error setting auth in ${e}`,n)})}_triggerStateCallbacks(e,n){try{this.stateChangeCallbacks[e].forEach(r=>{try{r(n)}catch(s){this.log("error",`error in ${e} callback`,s)}})}catch(r){this.log("error",`error triggering ${e} callbacks`,r)}}_setupReconnectionTimer(){this.reconnectTimer=new Jb(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},Gl.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(e){var n,r,s,o,l,u,d,h,m;if(this.transport=(n=e==null?void 0:e.transport)!==null&&n!==void 0?n:null,this.timeout=(r=e==null?void 0:e.timeout)!==null&&r!==void 0?r:hf,this.heartbeatIntervalMs=(s=e==null?void 0:e.heartbeatIntervalMs)!==null&&s!==void 0?s:Gl.HEARTBEAT_INTERVAL,this.worker=(o=e==null?void 0:e.worker)!==null&&o!==void 0?o:!1,this.accessToken=(l=e==null?void 0:e.accessToken)!==null&&l!==void 0?l:null,this.heartbeatCallback=(u=e==null?void 0:e.heartbeatCallback)!==null&&u!==void 0?u:Zd,e!=null&&e.params&&(this.params=e.params),e!=null&&e.logger&&(this.logger=e.logger),(e!=null&&e.logLevel||e!=null&&e.log_level)&&(this.logLevel=e.logLevel||e.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),this.reconnectAfterMs=(d=e==null?void 0:e.reconnectAfterMs)!==null&&d!==void 0?d:g=>yA[g-1]||_A,this.encode=(h=e==null?void 0:e.encode)!==null&&h!==void 0?h:(g,_)=>_(JSON.stringify(g)),this.decode=(m=e==null?void 0:e.decode)!==null&&m!==void 0?m:this.serializer.decode.bind(this.serializer),this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=e==null?void 0:e.workerUrl}}}
267class Hp extends Error{constructor(e){super(e),this.__isStorageError=!0,this.name="StorageError"}}function Me(t){return typeof t=="object"&&t!==null&&"__isStorageError"in t}class bA extends Hp{constructor(e,n,r){super(e),this.name="StorageApiError",this.status=n,this.statusCode=r}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}}class mf extends Hp{constructor(e,n){super(e),this.name="StorageUnknownError",this.originalError=n}}const Wp=t=>{let e;return t?e=t:typeof fetch>"u"?e=(...n)=>yo(async()=>{const{default:r}=await Promise.resolve().then(()=>Qi);return{default:r}},void 0).then(({default:r})=>r(...n)):e=fetch,(...n)=>e(...n)},SA=()=>X(void 0,void 0,void 0,function*(){return typeof Response>"u"?(yield yo(()=>Promise.resolve().then(()=>Qi),void 0)).Response:Response}),gf=t=>{if(Array.isArray(t))return t.map(n=>gf(n));if(typeof t=="function"||t!==Object(t))return t;const e={};return Object.entries(t).forEach(([n,r])=>{const s=n.replace(/([-_][a-z])/gi,o=>o.toUpperCase().replace(/[-_]/g,""));e[s]=gf(r)}),e},kA=t=>{if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},qd=t=>{var e;return t.msg||t.message||t.error_description||(typeof t.error=="string"?t.error:(e=t.error)===null||e===void 0?void 0:e.message)||JSON.stringify(t)},EA=(t,e,n)=>X(void 0,void 0,void 0,function*(){const r=yield SA();t instanceof r&&!(n!=null&&n.noResolveJson)?t.json().then(s=>{const o=t.status||500,l=(s==null?void 0:s.statusCode)||o+"";e(new bA(qd(s),o,l))}).catch(s=>{e(new mf(qd(s),s))}):e(new mf(qd(t),t))}),PA=(t,e,n,r)=>{const s={method:t,headers:(e==null?void 0:e.headers)||{}};return t==="GET"||!r?s:(kA(r)?(s.headers=Object.assign({"Content-Type":"application/json"},e==null?void 0:e.headers),s.body=JSON.stringify(r)):s.body=r,e!=null&&e.duplex&&(s.duplex=e.duplex),Object.assign(Object.assign({},s),n))};function Ja(t,e,n,r,s,o){return X(this,void 0,void 0,function*(){return new Promise((l,u)=>{t(n,PA(e,r,s,o)).then(d=>{if(!d.ok)throw d;return r!=null&&r.noResolveJson?d:d.json()}).then(d=>l(d)).catch(d=>EA(d,u,r))})})}function Ma(t,e,n,r){return X(this,void 0,void 0,function*(){return Ja(t,"GET",e,n,r)})}function wn(t,e,n,r,s){return X(this,void 0,void 0,function*(){return Ja(t,"POST",e,r,s,n)})}function vf(t,e,n,r,s){return X(this,void 0,void 0,function*(){return Ja(t,"PUT",e,r,s,n)})}function CA(t,e,n,r){return X(this,void 0,void 0,function*(){return Ja(t,"HEAD",e,Object.assign(Object.assign({},n),{noResolveJson:!0}),r)})}function Vp(t,e,n,r,s){return X(this,void 0,void 0,function*(){return Ja(t,"DELETE",e,r,s,n)})}class TA{constructor(e,n){this.downloadFn=e,this.shouldThrowOnError=n}then(e,n){return this.execute().then(e,n)}execute(){return X(this,void 0,void 0,function*(){try{return{data:(yield this.downloadFn()).body,error:null}}catch(e){if(this.shouldThrowOnError)throw e;if(Me(e))return{data:null,error:e};throw e}})}}var Xb;class jA{constructor(e,n){this.downloadFn=e,this.shouldThrowOnError=n,this[Xb]="BlobDownloadBuilder",this.promise=null}asStream(){return new TA(this.downloadFn,this.shouldThrowOnError)}then(e,n){return this.getPromise().then(e,n)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}execute(){return X(this,void 0,void 0,function*(){try{return{data:yield(yield this.downloadFn()).blob(),error:null}}catch(e){if(this.shouldThrowOnError)throw e;if(Me(e))return{data:null,error:e};throw e}})}}Xb=Symbol.toStringTag;const OA={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},sy={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class NA{constructor(e,n={},r,s){this.shouldThrowOnError=!1,this.url=e,this.headers=n,this.bucketId=r,this.fetch=Wp(s)}throwOnError(){return this.shouldThrowOnError=!0,this}uploadOrUpdate(e,n,r,s){return X(this,void 0,void 0,function*(){try{let o;const l=Object.assign(Object.assign({},sy),s);let u=Object.assign(Object.assign({},this.headers),e==="POST"&&{"x-upsert":String(l.upsert)});const d=l.metadata;typeof Blob<"u"&&r instanceof Blob?(o=new FormData,o.append("cacheControl",l.cacheControl),d&&o.append("metadata",this.encodeMetadata(d)),o.append("",r)):typeof FormData<"u"&&r instanceof FormData?(o=r,o.append("cacheControl",l.cacheControl),d&&o.append("metadata",this.encodeMetadata(d))):(o=r,u["cache-control"]=`max-age=${l.cacheControl}`,u["content-type"]=l.contentType,d&&(u["x-metadata"]=this.toBase64(this.encodeMetadata(d)))),s!=null&&s.headers&&(u=Object.assign(Object.assign({},u),s.headers));const h=this._removeEmptyFolders(n),m=this._getFinalPath(h),g=yield(e=="PUT"?vf:wn)(this.fetch,`${this.url}/object/${m}`,o,Object.assign({headers:u},l!=null&&l.duplex?{duplex:l.duplex}:{}));return{data:{path:h,id:g.Id,fullPath:g.Key},error:null}}catch(o){if(this.shouldThrowOnError)throw o;if(Me(o))return{data:null,error:o};throw o}})}upload(e,n,r){return X(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",e,n,r)})}uploadToSignedUrl(e,n,r,s){return X(this,void 0,void 0,function*(){const o=this._removeEmptyFolders(e),l=this._getFinalPath(o),u=new URL(this.url+`/object/upload/sign/${l}`);u.searchParams.set("token",n);try{let d;const h=Object.assign({upsert:sy.upsert},s),m=Object.assign(Object.assign({},this.headers),{"x-upsert":String(h.upsert)});typeof Blob<"u"&&r instanceof Blob?(d=new FormData,d.append("cacheControl",h.cacheControl),d.append("",r)):typeof FormData<"u"&&r instanceof FormData?(d=r,d.append("cacheControl",h.cacheControl)):(d=r,m["cache-control"]=`max-age=${h.cacheControl}`,m["content-type"]=h.contentType);const g=yield vf(this.fetch,u.toString(),d,{headers:m});return{data:{path:o,fullPath:g.Key},error:null}}catch(d){if(this.shouldThrowOnError)throw d;if(Me(d))return{data:null,error:d};throw d}})}createSignedUploadUrl(e,n){return X(this,void 0,void 0,function*(){try{let r=this._getFinalPath(e);const s=Object.assign({},this.headers);n!=null&&n.upsert&&(s["x-upsert"]="true");const o=yield wn(this.fetch,`${this.url}/object/upload/sign/${r}`,{},{headers:s}),l=new URL(this.url+o.url),u=l.searchParams.get("token");if(!u)throw new Hp("No token returned by API");return{data:{signedUrl:l.toString(),path:e,token:u},error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Me(r))return{data:null,error:r};throw r}})}update(e,n,r){return X(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",e,n,r)})}move(e,n,r){return X(this,void 0,void 0,function*(){try{return{data:yield wn(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:e,destinationKey:n,destinationBucket:r==null?void 0:r.destinationBucket},{headers:this.headers}),error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(Me(s))return{data:null,error:s};throw s}})}copy(e,n,r){return X(this,void 0,void 0,function*(){try{return{data:{path:(yield wn(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:e,destinationKey:n,destinationBucket:r==null?void 0:r.destinationBucket},{headers:this.headers})).Key},error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(Me(s))return{data:null,error:s};throw s}})}createSignedUrl(e,n,r){return X(this,void 0,void 0,function*(){try{let s=this._getFinalPath(e),o=yield wn(this.fetch,`${this.url}/object/sign/${s}
267`,Object.assign({expiresIn:n},r!=null&&r.transform?{transform:r.transform}:{}),{headers:this.headers});const l=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return o={signedUrl:encodeURI(`${this.url}${o.signedURL}${l}`)},{data:o,error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(Me(s))return{data:null,error:s};throw s}})}createSignedUrls(e,n,r){return X(this,void 0,void 0,function*(){try{const s=yield wn(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:n,paths:e},{headers:this.headers}),o=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return{data:s.map(l=>Object.assign(Object.assign({},l),{signedUrl:l.signedURL?encodeURI(`${this.url}${l.signedURL}${o}`):null})),error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(Me(s))return{data:null,error:s};throw s}})}download(e,n){const s=typeof(n==null?void 0:n.transform)<"u"?"render/image/authenticated":"object",o=this.transformOptsToQueryString((n==null?void 0:n.transform)||{}),l=o?`?${o}`:"",u=this._getFinalPath(e),d=()=>Ma(this.fetch,`${this.url}/${s}/${u}${l}`,{headers:this.headers,noResolveJson:!0});return new jA(d,this.shouldThrowOnError)}info(e){return X(this,void 0,void 0,function*(){const n=this._getFinalPath(e);try{const r=yield Ma(this.fetch,`${this.url}/object/info/${n}`,{headers:this.headers});return{data:gf(r),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Me(r))return{data:null,error:r};throw r}})}exists(e){return X(this,void 0,void 0,function*(){const n=this._getFinalPath(e);try{return yield CA(this.fetch,`${this.url}/object/${n}`,{headers:this.headers}),{data:!0,error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Me(r)&&r instanceof mf){const s=r.originalError;if([400,404].includes(s==null?void 0:s.status))return{data:!1,error:r}}throw r}})}getPublicUrl(e,n){const r=this._getFinalPath(e),s=[],o=n!=null&&n.download?`download=${n.download===!0?"":n.download}`:"";o!==""&&s.push(o);const u=typeof(n==null?void 0:n.transform)<"u"?"render/image":"object",d=this.transformOptsToQueryString((n==null?void 0:n.transform)||{});d!==""&&s.push(d);let h=s.join("&");return h!==""&&(h=`?${h}`),{data:{publicUrl:encodeURI(`${this.url}/${u}/public/${r}${h}`)}}}remove(e){return X(this,void 0,void 0,function*(){try{return{data:yield Vp(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:e},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Me(n))return{data:null,error:n};throw n}})}list(e,n,r){return X(this,void 0,void 0,function*(){try{const s=Object.assign(Object.assign(Object.assign({},OA),n),{prefix:e||""});return{data:yield wn(this.fetch,`${this.url}/object/list/${this.bucketId}`,s,{headers:this.headers},r),error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(Me(s))return{data:null,error:s};throw s}})}listV2(e,n){return X(this,void 0,void 0,function*(){try{const r=Object.assign({},e);return{data:yield wn(this.fetch,`${this.url}/object/list-v2/${this.bucketId}`,r,{headers:this.headers},n),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Me(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 n=[];return e.width&&n.push(`width=${e.width}`),e.height&&n.push(`height=${e.height}`),e.resize&&n.push(`resize=${e.resize}`),e.format&&n.push(`format=${e.format}`),e.quality&&n.push(`quality=${e.quality}`),n.join("&")}}const e1="2.78.0",t1={"X-Client-Info":`storage-js/${e1}`};class AA{constructor(e,n={},r,s){this.shouldThrowOnError=!1;const o=new URL(e);s!=null&&s.useNewHostname&&/supabase\.(co|in|red)$/.test(o.hostname)&&!o.hostname.includes("storage.supabase.")&&(o.hostname=o.hostname.replace("supabase.","storage.supabase.")),this.url=o.href.replace(/\/$/,""),this.headers=Object.assign(Object.assign({},t1),n),this.fetch=Wp(r)}throwOnError(){return this.shouldThrowOnError=!0,this}listBuckets(e){return X(this,void 0,void 0,function*(){try{const n=this.listBucketOptionsToQueryString(e);return{data:yield Ma(this.fetch,`${this.url}/bucket${n}`,{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Me(n))return{data:null,error:n};throw n}})}getBucket(e){return X(this,void 0,void 0,function*(){try{return{data:yield Ma(this.fetch,`${this.url}/bucket/${e}`,{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Me(n))return{data:null,error:n};throw n}})}createBucket(e){return X(this,arguments,void 0,function*(n,r={public:!1}){try{return{data:yield wn(this.fetch,`${this.url}/bucket`,{id:n,name:n,type:r.type,public:r.public,file_size_limit:r.fileSizeLimit,allowed_mime_types:r.allowedMimeTypes},{headers:this.headers}),error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(Me(s))return{data:null,error:s};throw s}})}updateBucket(e,n){return X(this,void 0,void 0,function*(){try{return{data:yield vf(this.fetch,`${this.url}/bucket/${e}`,{id:e,name:e,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Me(r))return{data:null,error:r};throw r}})}emptyBucket(e){return X(this,void 0,void 0,function*(){try{return{data:yield wn(this.fetch,`${this.url}/bucket/${e}/empty`,{},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Me(n))return{data:null,error:n};throw n}})}deleteBucket(e){return X(this,void 0,void 0,function*(){try{return{data:yield Vp(this.fetch,`${this.url}/bucket/${e}`,{},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Me(n))return{data:null,error:n};throw n}})}listBucketOptionsToQueryString(e){const n={};return e&&("limit"in e&&(n.limit=String(e.limit)),"offset"in e&&(n.offset=String(e.offset)),e.search&&(n.search=e.search),e.sortColumn&&(n.sortColumn=e.sortColumn),e.sortOrder&&(n.sortOrder=e.sortOrder)),Object.keys(n).length>0?"?"+new URLSearchParams(n).toString():""}}class LA{constructor(e,n={},r){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=Object.assign(Object.assign({},t1),n),this.fetch=Wp(r)}throwOnError(){return this.shouldThrowOnError=!0,this}createBucket(e){return X(this,void 0,void 0,function*(){try{return{data:yield wn(this.fetch,`${this.url}/bucket`,{name:e},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Me(n))return{data:null,error:n};throw n}})}listBuckets(e){return X(this,void 0,void 0,function*(){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(),s=r?`${this.url}/bucket?${r}`:`${this.url}/bucket`;return{data:yield Ma(this.fetch,s,{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Me(n))return{data:null,error:n};throw n}})}deleteBucket(e){return X(this,void 0,void 0,function*(){try{return{data:yield Vp(this.fetch,`${this.url}/bucket/${e}`,{},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Me(n))return{data:null,error:n};throw n}})}}const Zp={"X-Client-Info":`storage-js/${e1}`,"Content-Type":"application/json"};
267class n1 extends Error{constructor(e){super(e),this.__isStorageVectorsError=!0,this.name="StorageVectorsError"}}function $t(t){return typeof t=="object"&&t!==null&&"__isStorageVectorsError"in t}class Kd extends n1{constructor(e,n,r){super(e),this.name="StorageVectorsApiError",this.status=n,this.statusCode=r}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}}class RA extends n1{constructor(e,n){super(e),this.name="StorageVectorsUnknownError",this.originalError=n}}var oy;(function(t){t.InternalError="InternalError",t.S3VectorConflictException="S3VectorConflictException",t.S3VectorNotFoundException="S3VectorNotFoundException",t.S3VectorBucketNotEmpty="S3VectorBucketNotEmpty",t.S3VectorMaxBucketsExceeded="S3VectorMaxBucketsExceeded",t.S3VectorMaxIndexesExceeded="S3VectorMaxIndexesExceeded"})(oy||(oy={}));const qp=t=>{let e;return t?e=t:typeof fetch>"u"?e=(...n)=>yo(async()=>{const{default:r}=await Promise.resolve().then(()=>Qi);return{default:r}},void 0).then(({default:r})=>r(...n)):e=fetch,(...n)=>e(...n)},IA=t=>{if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},ay=t=>t.msg||t.message||t.error_description||t.error||JSON.stringify(t),MA=(t,e,n)=>X(void 0,void 0,void 0,function*(){if(t&&typeof t=="object"&&"status"in t&&"ok"in t&&typeof t.status=="number"&&!(n!=null&&n.noResolveJson)){const s=t.status||500,o=t;if(typeof o.json=="function")o.json().then(l=>{const u=(l==null?void 0:l.statusCode)||(l==null?void 0:l.code)||s+"";e(new Kd(ay(l),s,u))}).catch(()=>{const l=s+"",u=o.statusText||`HTTP ${s} error`;e(new Kd(u,s,l))});else{const l=s+"",u=o.statusText||`HTTP ${s} error`;e(new Kd(u,s,l))}}else e(new RA(ay(t),t))}),DA=(t,e,n,r)=>{const s={method:t,headers:(e==null?void 0:e.headers)||{}};return r?(IA(r)?(s.headers=Object.assign({"Content-Type":"application/json"},e==null?void 0:e.headers),s.body=JSON.stringify(r)):s.body=r,Object.assign(Object.assign({},s),n)):s};function zA(t,e,n,r,s,o){return X(this,void 0,void 0,function*(){return new Promise((l,u)=>{t(n,DA(e,r,s,o)).then(d=>{if(!d.ok)throw d;if(r!=null&&r.noResolveJson)return d;const h=d.headers.get("content-type");return!h||!h.includes("application/json")?{}:d.json()}).then(d=>l(d)).catch(d=>MA(d,u,r))})})}function Ft(t,e,n,r,s){return X(this,void 0,void 0,function*(){return zA(t,"POST",e,r,s,n)})}class BA{constructor(e,n={},r){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=Object.assign(Object.assign({},Zp),n),this.fetch=qp(r)}throwOnError(){return this.shouldThrowOnError=!0,this}createIndex(e){return X(this,void 0,void 0,function*(){try{return{data:(yield Ft(this.fetch,`${this.url}/CreateIndex`,e,{headers:this.headers}))||{},error:null}}catch(n){if(this.shouldThrowOnError)throw n;if($t(n))return{data:null,error:n};throw n}})}getIndex(e,n){return X(this,void 0,void 0,function*(){try{return{data:yield Ft(this.fetch,`${this.url}/GetIndex`,{vectorBucketName:e,indexName:n},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if($t(r))return{data:null,error:r};throw r}})}listIndexes(e){return X(this,void 0,void 0,function*(){try{return{data:yield Ft(this.fetch,`${this.url}/ListIndexes`,e,{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if($t(n))return{data:null,error:n};throw n}})}deleteIndex(e,n){return X(this,void 0,void 0,function*(){try{return{data:(yield Ft(this.fetch,`${this.url}/DeleteIndex`,{vectorBucketName:e,indexName:n},{headers:this.headers}))||{},error:null}}catch(r){if(this.shouldThrowOnError)throw r;if($t(r))return{data:null,error:r};throw r}})}}class $A{constructor(e,n={},r){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=Object.assign(Object.assign({},Zp),n),this.fetch=qp(r)}throwOnError(){return this.shouldThrowOnError=!0,this}putVectors(e){return X(this,void 0,void 0,function*(){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:(yield Ft(this.fetch,`${this.url}/PutVectors`,e,{headers:this.headers}))||{},error:null}}catch(n){if(this.shouldThrowOnError)throw n;if($t(n))return{data:null,error:n};throw n}})}getVectors(e){return X(this,void 0,void 0,function*(){try{return{data:yield Ft(this.fetch,`${this.url}/GetVectors`,e,{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if($t(n))return{data:null,error:n};throw n}})}listVectors(e){return X(this,void 0,void 0,function*(){try{if(e.segmentCount!==void 0){if(e.segmentCount<1||e.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");
267if(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:yield Ft(this.fetch,`${this.url}/ListVectors`,e,{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if($t(n))return{data:null,error:n};throw n}})}queryVectors(e){return X(this,void 0,void 0,function*(){try{return{data:yield Ft(this.fetch,`${this.url}/QueryVectors`,e,{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if($t(n))return{data:null,error:n};throw n}})}deleteVectors(e){return X(this,void 0,void 0,function*(){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:(yield Ft(this.fetch,`${this.url}/DeleteVectors`,e,{headers:this.headers}))||{},error:null}}catch(n){if(this.shouldThrowOnError)throw n;if($t(n))return{data:null,error:n};throw n}})}}class FA{constructor(e,n={},r){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=Object.assign(Object.assign({},Zp),n),this.fetch=qp(r)}throwOnError(){return this.shouldThrowOnError=!0,this}createBucket(e){return X(this,void 0,void 0,function*(){try{return{data:(yield Ft(this.fetch,`${this.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:this.headers}))||{},error:null}}catch(n){if(this.shouldThrowOnError)throw n;if($t(n))return{data:null,error:n};throw n}})}getBucket(e){return X(this,void 0,void 0,function*(){try{return{data:yield Ft(this.fetch,`${this.url}/GetVectorBucket`,{vectorBucketName:e},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if($t(n))return{data:null,error:n};throw n}})}listBuckets(){return X(this,arguments,void 0,function*(e={}){try{return{data:yield Ft(this.fetch,`${this.url}/ListVectorBuckets`,e,{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if($t(n))return{data:null,error:n};throw n}})}deleteBucket(e){return X(this,void 0,void 0,function*(){try{return{data:(yield Ft(this.fetch,`${this.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:this.headers}))||{},error:null}}catch(n){if(this.shouldThrowOnError)throw n;if($t(n))return{data:null,error:n};throw n}})}}class UA extends FA{constructor(e,n={}){super(e,n.headers||{},n.fetch)}from(e){return new HA(this.url,this.headers,e,this.fetch)}}class HA extends BA{constructor(e,n,r,s){super(e,n,s),this.vectorBucketName=r}createIndex(e){const n=Object.create(null,{createIndex:{get:()=>super.createIndex}});return X(this,void 0,void 0,function*(){return n.createIndex.call(this,Object.assign(Object.assign({},e),{vectorBucketName:this.vectorBucketName}))})}listIndexes(){const e=Object.create(null,{listIndexes:{get:()=>super.listIndexes}});return X(this,arguments,void 0,function*(n={}){return e.listIndexes.call(this,Object.assign(Object.assign({},n),{vectorBucketName:this.vectorBucketName}))})}getIndex(e){const n=Object.create(null,{getIndex:{get:()=>super.getIndex}});return X(this,void 0,void 0,function*(){return n.getIndex.call(this,this.vectorBucketName,e)})}deleteIndex(e){const n=Object.create(null,{deleteIndex:{get:()=>super.deleteIndex}});return X(this,void 0,void 0,function*(){return n.deleteIndex.call(this,this.vectorBucketName,e)})}index(e){return new WA(this.url,this.headers,this.vectorBucketName,e,this.fetch)}}class WA extends $A{constructor(e,n,r,s,o){super(e,n,o),this.vectorBucketName=r,this.indexName=s}putVectors(e){const n=Object.create(null,{putVectors:{get:()=>super.putVectors}});return X(this,void 0,void 0,function*(){return n.putVectors.call(this,Object.assign(Object.assign({},e),{vectorBucketName:this.vectorBucketName,indexName:this.indexName}))})}getVectors(e){const n=Object.create(null,{getVectors:{get:()=>super.getVectors}});return X(this,void 0,void 0,function*(){return n.getVectors.call(this,Object.assign(Object.assign({},e),{vectorBucketName:this.vectorBucketName,indexName:this.indexName}))})}listVectors(){const e=Object.create(null,{listVectors:{get:()=>super.listVectors}});return X(this,arguments,void 0,function*(n={}){return e.listVectors.call(this,Object.assign(Object.assign({},n),{vectorBucketName:this.vectorBucketName,indexName:this.indexName}))})}queryVectors(e){const n=Object.create(null,{queryVectors:{get:()=>super.queryVectors}});return X(this,void 0,void 0,function*(){return n.queryVectors.call(this,Object.assign(Object.assign({},e),{vectorBucketName:this.vectorBucketName,indexName:this.indexName}))})}deleteVectors(e){const n=Object.create(null,{deleteVectors:{get:()=>super.deleteVectors}});return X(this,void 0,void 0,function*(){return n.deleteVectors.call(this,Object.assign(Object.assign({},e),{vectorBucketName:this.vectorBucketName,indexName:this.indexName}))})}}class VA extends AA{constructor(e,n={},r,s){super(e,n,r,s)}from(e){return new NA(this.url,this.headers,e,this.fetch)}get vectors(){return new UA(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new LA(this.url+"/iceberg",this.headers,this.fetch)}}const ZA="2.78.0";let Qo="";typeof Deno<"u"?Qo="deno":typeof document<"u"?Qo="web":typeof navigator<"u"&&navigator.product==="ReactNative"?Qo="react-native":Qo="node";const qA={"X-Client-Info":`supabase-js-${Qo}/${ZA}`},KA={headers:qA},GA={schema:"public"},JA={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},QA={},YA=t=>{let e;return t?e=t:typeof fetch>"u"?e=Nb:e=fetch,(...n)=>e(...n)},XA=()=>typeof Headers>"u"?Ab:Headers,eL=(t,e,n)=>{const r=YA(n),s=XA();return async(o,l)=>{var u;
267const d=(u=await e())!==null&&u!==void 0?u:t;let h=new s(l==null?void 0:l.headers);return h.has("apikey")||h.set("apikey",t),h.has("Authorization")||h.set("Authorization",`Bearer ${d}`),r(o,Object.assign(Object.assign({},l),{headers:h}))}};function tL(t){return t.endsWith("/")?t:t+"/"}function nL(t,e){var n,r;const{db:s,auth:o,realtime:l,global:u}=t,{db:d,auth:h,realtime:m,global:g}=e,_={db:Object.assign(Object.assign({},d),s),auth:Object.assign(Object.assign({},h),o),realtime:Object.assign(Object.assign({},m),l),storage:{},global:Object.assign(Object.assign(Object.assign({},g),u),{headers:Object.assign(Object.assign({},(n=g==null?void 0:g.headers)!==null&&n!==void 0?n:{}),(r=u==null?void 0:u.headers)!==null&&r!==void 0?r:{})}),accessToken:async()=>""};return t.accessToken?_.accessToken=t.accessToken:delete _.accessToken,_}function rL(t){const e=t==null?void 0:t.trim();if(!e)throw new Error("supabaseUrl is required.");if(!e.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(tL(e))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}const r1="2.78.0",ys=30*1e3,yf=3,Gd=yf*ys,iL="http://localhost:9999",sL="supabase.auth.token",oL={"X-Client-Info":`gotrue-js/${r1}`},_f="X-Supabase-Api-Version",i1={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},aL=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,lL=10*60*1e3;class Da extends Error{constructor(e,n,r){super(e),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}}function re(t){return typeof t=="object"&&t!==null&&"__isAuthError"in t}class uL extends Da{constructor(e,n,r){super(e,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function cL(t){return re(t)&&t.name==="AuthApiError"}class Ci extends Da{constructor(e,n){super(e),this.name="AuthUnknownError",this.originalError=n}}class di extends Da{constructor(e,n,r,s){super(e,r,s),this.name=n,this.status=r}}class gn extends di{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function dL(t){return re(t)&&t.name==="AuthSessionMissingError"}class hs extends di{constructor(){super("Auth session or user missing","AuthInvalidToken
267ResponseError",500,void 0)}}class Jl extends di{constructor(e){super(e,"AuthInvalidCredentialsError",400,void 0)}}class Ql extends di{constructor(e,n=null){super(e,"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 hL(t){return re(t)&&t.name==="AuthImplicitGrantRedirectError"}class ly extends di{constructor(e,n=null){super(e,"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 wf extends di{constructor(e,n){super(e,"AuthRetryableFetchError",n,void 0)}}function Jd(t){return re(t)&&t.name==="AuthRetryableFetchError"}class uy extends di{constructor(e,n,r){super(e,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}class xf extends di{constructor(e){super(e,"AuthInvalidJwtError",400,"invalid_jwt")}}const Gu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),cy=` 	
268\r=`.split(""),fL=(()=>{const t=new Array(128);for(let e=0;e<t.length;e+=1)t[e]=-1;for(let e=0;e<cy.length;e+=1)t[cy[e].charCodeAt(0)]=-2;for(let e=0;e<Gu.length;e+=1)t[Gu[e].charCodeAt(0)]=e;return t})();function dy(t,e,n){if(t!==null)for(e.queue=e.queue<<8|t,e.queuedBits+=8;e.queuedBits>=6;){const r=e.queue>>e.queuedBits-6&63;n(Gu[r]),e.queuedBits-=6}else if(e.queuedBits>0)for(e.queue=e.queue<<6-e.queuedBits,e.queuedBits=6;e.queuedBits>=6;){const r=e.queue>>e.queuedBits-6&63;n(Gu[r]),e.queuedBits-=6}}function s1(t,e,n){const r=fL[t];if(r>-1)for(e.queue=e.queue<<6|r,e.queuedBits+=6;e.queuedBits>=8;)n(e.queue>>e.queuedBits-8&255),e.queuedBits-=8;else{if(r===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(t)}"`)}}function hy(t){const e=[],n=l=>{e.push(String.fromCodePoint(l))},r={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},o=l=>{gL(l,r,n)};for(let l=0;l<t.length;l+=1)s1(t.charCodeAt(l),s,o);return e.join("")}function pL(t,e){if(t<=127){e(t);return}else if(t<=2047){e(192|t>>6),e(128|t&63);return}else if(t<=65535){e(224|t>>12),e(128|t>>6&63),e(128|t&63);return}else if(t<=1114111){e(240|t>>18),e(128|t>>12&63),e(128|t>>6&63),e(128|t&63);return}throw new Error(`Unrecognized Unicode codepoint: ${t.toString(16)}`)}function mL(t,e){for(let n=0;n<t.length;n+=1){let r=t.charCodeAt(n);if(r>55295&&r<=56319){const s=(r-55296)*1024&65535;r=(t.charCodeAt(n+1)-56320&65535|s)+65536,n+=1}pL(r,e)}}function gL(t,e,n){if(e.utf8seq===0){if(t<=127){n(t);return}for(let r=1;r<6;r+=1)if(!(t>>7-r&1)){e.utf8seq=r;break}if(e.utf8seq===2)e.codepoint=t&31;else if(e.utf8seq===3)e.codepoint=t&15;else if(e.utf8seq===4)e.codepoint=t&7;else throw new Error("Invalid UTF-8 sequence");e.utf8seq-=1}else if(e.utf8seq>0){if(t<=127)throw new Error("Invalid UTF-8 sequence");e.codepoint=e.codepoint<<6|t&63,e.utf8seq-=1,e.utf8seq===0&&n(e.codepoint)}}function Fs(t){const e=[],n={queue:0,queuedBits:0},r=s=>{e.push(s)};for(let s=0;s<t.length;s+=1)s1(t.charCodeAt(s),n,r);return new Uint8Array(e)}function vL(t){const e=[];return mL(t,n=>e.push(n)),new Uint8Array(e)}function Ni(t){const e=[],n={queue:0,queuedBits:0},r=s=>{e.push(s)};return t.forEach(s=>dy(s,n,r)),dy(null,n,r),e.join("")}function yL(t){return Math.round(Date.now()/1e3)+t}function _L(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){const e=Math.random()*16|0;return(t=="x"?e:e&3|8).toString(16)})}const _t=()=>typeof window<"u"&&typeof document<"u",xi={tested:!1,writable:!1},o1=()=>{if(!_t())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(xi.tested)return xi.writable;const t=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(t,t),globalThis.localStorage.removeItem(t),xi.tested=!0,xi.writable=!0}catch{xi.tested=!0,xi.writable=!1}return xi.writable};function wL(t){const e={},n=new URL(t);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((s,o)=>{e[o]=s})}catch{}return n.searchParams.forEach((r,s)=>{e[s]=r}),e}const a1=t=>{let e;return t?e=t:typeof fetch>"u"?e=(...n)=>yo(async()=>{const{default:r}=await Promise.resolve().then(()=>Qi);return{default:r}},void 0).then(({default:r})=>r(...n)):e=fetch,(...n)=>e(...n)},xL=t=>typeof t=="object"&&t!==null&&"status"in t&&"ok"in t&&"json"in t&&typeof t.json=="function",_s=async(t,e,n)=>{await t.setItem(e,JSON.stringify(n))},bi=async(t,e)=>{const n=await t.getItem(e);if(!n)return null;try{return JSON.parse(n)}catch{return n}},Lr=async(t,e)=>{await t.removeItem(e)};
268class jc{constructor(){this.promise=new jc.promiseConstructor((e,n)=>{this.resolve=e,this.reject=n})}}jc.promiseConstructor=Promise;function Qd(t){const e=t.split(".");if(e.length!==3)throw new xf("Invalid JWT structure");for(let r=0;r<e.length;r++)if(!aL.test(e[r]))throw new xf("JWT not in base64url format");return{header:JSON.parse(hy(e[0])),payload:JSON.parse(hy(e[1])),signature:Fs(e[2]),raw:{header:e[0],payload:e[1]}}}async function bL(t){return await new Promise(e=>{setTimeout(()=>e(null),t)})}function SL(t,e){return new Promise((r,s)=>{(async()=>{for(let o=0;o<1/0;o++)try{const l=await t(o);if(!e(o,null,l)){r(l);return}}catch(l){if(!e(o,l)){s(l);return}}})()})}function kL(t){return("0"+t.toString(16)).substr(-2)}function EL(){const e=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let s="";for(let o=0;o<56;o++)s+=n.charAt(Math.floor(Math.random()*r));return s}return crypto.getRandomValues(e),Array.from(e,kL).join("")}async function PL(t){const n=new TextEncoder().encode(t),r=await crypto.subtle.digest("SHA-256",n),s=new Uint8Array(r);return Array.from(s).map(o=>String.fromCharCode(o)).join("")}async function CL(t){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."),t;const n=await PL(t);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function fs(t,e,n=!1){const r=EL();let s=r;n&&(s+="/PASSWORD_RECOVERY"),await _s(t,`${e}-code-verifier`,s);const o=await CL(r);return[o,r===o?"plain":"s256"]}const TL=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function jL(t){const e=t.headers.get(_f);if(!e||!e.match(TL))return null;try{return new Date(`${e}T00:00:00.0Z`)}catch{return null}}function OL(t){if(!t)throw new Error("Missing exp claim");const e=Math.floor(Date.now()/1e3);if(t<=e)throw new Error("JWT has expired")}function NL(t){switch(t){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 AL=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function ps(t){if(!AL.test(t))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function Yd(){const t={};return new Proxy(t,{get:(e,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:(e,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:(e,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 LL(t,e){return new Proxy(t,{get:(n,r,s)=>{if(r==="__isInsecureUserWarningProxy")return!0;if(typeof r=="symbol"){const o=r.toString();if(o==="Symbol(Symbol.toPrimitive)"||o==="Symbol(Symbol.toStringTag)"||o==="Symbol(util.inspect.custom)"||o==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(n,r,s)}return!e.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."),e.value=!0),Reflect.get(n,r,s)}})}function fy(t){return JSON.parse(JSON.stringify(t))}const Ei=t=>t.msg||t.message||t.error_description||t.error||JSON.stringify(t),RL=[502,503,504];async function py(t){var e;if(!xL(t))throw new wf(Ei(t),0);if(RL.includes(t.status))throw new wf(Ei(t),t.status);let n;try{n=await t.json()}catch(o){throw new Ci(Ei(o),o)}let r;const s=jL(t);if(s&&s.getTime()>=i1["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 uy(Ei(n),t.status,((e=n.weak_password)===null||e===void 0?void 0:e.reasons)||[]);if(r==="session_not_found")throw new gn}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((o,l)=>o&&typeof l=="string",!0))throw new uy(Ei(n),t.status,n.weak_password.reasons);throw new uL(Ei(n),t.status||500,r)}const IL=(t,e,n,r)=>{const s={method:t,headers:(e==null?void 0:e.headers)||{}};return t==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},e==null?void 0:e.headers),s.body=JSON.stringify(r),Object.assign(Object.assign({},s),n))};async function ue(t,e,n,r){var s;const o=Object.assign({},r==null?void 0:r.headers);o[_f]||(o[_f]=i1["2024-01-01"].name),r!=null&&r.jwt&&(o.Authorization=`Bearer ${r.jwt}`);const l=(s=r==null?void 0:r.query)!==null&&s!==void 0?s:{};r!=null&&r.redirectTo&&(l.redirect_to=r.redirectTo);const u=Object.keys(l).length?"?"+new URLSearchParams(l).toString():"",d=await ML(t,e,n+u,{headers:o,noResolveJson:r==null?void 0:r.noResolveJson},{},r==null?void 0:r.body);return r!=null&&r.xform?r==null?void 0:r.xform(d):{data:Object.assign({},d),error:null}}async function ML(t,e,n,r,s,o){const l=IL(e,r,s,o);let u;
268try{u=await t(n,Object.assign({},l))}catch(d){throw console.error(d),new wf(Ei(d),0)}if(u.ok||await py(u),r!=null&&r.noResolveJson)return u;try{return await u.json()}catch(d){await py(d)}}function vn(t){var e;let n=null;BL(t)&&(n=Object.assign({},t),t.expires_at||(n.expires_at=yL(t.expires_in)));const r=(e=t.user)!==null&&e!==void 0?e:t;return{data:{session:n,user:r},error:null}}function my(t){const e=vn(t);return!e.error&&t.weak_password&&typeof t.weak_password=="object"&&Array.isArray(t.weak_password.reasons)&&t.weak_password.reasons.length&&t.weak_password.message&&typeof t.weak_password.message=="string"&&t.weak_password.reasons.reduce((n,r)=>n&&typeof r=="string",!0)&&(e.data.weak_password=t.weak_password),e}function Br(t){var e;return{data:{user:(e=t.user)!==null&&e!==void 0?e:t},error:null}}function DL(t){return{data:t,error:null}}function zL(t){const{action_link:e,email_otp:n,hashed_token:r,redirect_to:s,verification_type:o}=t,l=vo(t,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),u={action_link:e,email_otp:n,hashed_token:r,redirect_to:s,verification_type:o},d=Object.assign({},l);return{data:{properties:u,user:d},error:null}}function gy(t){return t}function BL(t){return t.access_token&&t.refresh_token&&t.expires_in}const Xd=["global","local","others"];class $L{constructor({url:e="",headers:n={},fetch:r}){this.url=e,this.headers=n,this.fetch=a1(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(e,n=Xd[0]){if(Xd.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Xd.join(", ")}`);try{return await ue(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:e,noResolveJson:!0}),{data:null,error:null}}catch(r){if(re(r))return{data:null,error:r};throw r}}async inviteUserByEmail(e,n={}){try{return await ue(this.fetch,"POST",`${this.url}/invite`,{body:{email:e,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:Br})}catch(r){if(re(r))return{data:{user:null},error:r};throw r}}async generateLink(e){try{const{options:n}=e,r=vo(e,["options"]),s=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(s.new_email=r==null?void 0:r.newEmail,delete s.newEmail),await ue(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:s,headers:this.headers,xform:zL,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(re(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(e){try{return await ue(this.fetch,"POST",`${this.url}/admin/users`,{body:e,headers:this.headers,xform:Br})}catch(n){if(re(n))return{data:{user:null},error:n};throw n}}async listUsers(e){var n,r,s,o,l,u,d;try{const h={nextPage:null,lastPage:0,total:0},m=await ue(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=e==null?void 0:e.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(o=(s=e==null?void 0:e.perPage)===null||s===void 0?void 0:s.toString())!==null&&o!==void 0?o:""},xform:gy});if(m.error)throw m.error;const g=await m.json(),_=(l=m.headers.get("x-total-count"))!==null&&l!==void 0?l:0,y=(d=(u=m.headers.get("link"))===null||u===void 0?void 0:u.split(","))!==null&&d!==void 0?d:[];return y.length>0&&(y.forEach(P=>{const x=parseInt(P.split(";")[0].split("=")[1].substring(0,1)),E=JSON.parse(P.split(";")[1].split("=")[1]);h[`${E}Page`]=x}),h.total=parseInt(_)),{data:Object.assign(Object.assign({},g),h),error:null}}catch(h){if(re(h))return{data:{users:[]},error:h};throw h}}async getUserById(e){ps(e);try{return await ue(this.fetch,"GET",`${this.url}/admin/users/${e}`,{headers:this.headers,xform:Br})}catch(n){if(re(n))return{data:{user:null},error:n};throw n}}async updateUserById(e,n){ps(e);try{return await ue(this.fetch,"PUT",`${this.url}/admin/users/${e}`,{body:n,headers:this.headers,xform:Br})}catch(r){if(re(r))return{data:{user:null},error:r};throw r}}async deleteUser(e,n=!1){ps(e);
268try{return await ue(this.fetch,"DELETE",`${this.url}/admin/users/${e}`,{headers:this.headers,body:{should_soft_delete:n},xform:Br})}catch(r){if(re(r))return{data:{user:null},error:r};throw r}}async _listFactors(e){ps(e.userId);try{const{data:n,error:r}=await ue(this.fetch,"GET",`${this.url}/admin/users/${e.userId}/factors`,{headers:this.headers,xform:s=>({data:{factors:s},error:null})});return{data:n,error:r}}catch(n){if(re(n))return{data:null,error:n};throw n}}async _deleteFactor(e){ps(e.userId),ps(e.id);try{return{data:await ue(this.fetch,"DELETE",`${this.url}/admin/users/${e.userId}/factors/${e.id}`,{headers:this.headers}),error:null}}catch(n){if(re(n))return{data:null,error:n};throw n}}async _listOAuthClients(e){var n,r,s,o,l,u,d;try{const h={nextPage:null,lastPage:0,total:0},m=await ue(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=e==null?void 0:e.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(o=(s=e==null?void 0:e.perPage)===null||s===void 0?void 0:s.toString())!==null&&o!==void 0?o:""},xform:gy});if(m.error)throw m.error;const g=await m.json(),_=(l=m.headers.get("x-total-count"))!==null&&l!==void 0?l:0,y=(d=(u=m.headers.get("link"))===null||u===void 0?void 0:u.split(","))!==null&&d!==void 0?d:[];return y.length>0&&(y.forEach(P=>{const x=parseInt(P.split(";")[0].split("=")[1].substring(0,1)),E=JSON.parse(P.split(";")[1].split("=")[1]);h[`${E}Page`]=x}),h.total=parseInt(_)),{data:Object.assign(Object.assign({},g),h),error:null}}catch(h){if(re(h))return{data:{clients:[]},error:h};throw h}}async _createOAuthClient(e){try{return await ue(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:e,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(re(n))return{data:null,error:n};throw n}}async _getOAuthClient(e){try{return await ue(this.fetch,"GET",`${this.url}/admin/oauth/clients/${e}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(re(n))return{data:null,error:n};throw n}}async _updateOAuthClient(e,n){try{return await ue(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${e}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(re(r))return{data:null,error:r};throw r}}async _deleteOAuthClient(e){try{return await ue(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${e}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(re(n))return{data:null,error:n};throw n}}async _regenerateOAuthClientSecret(e){try{return await ue(this.fetch,"POST",`${this.url}/admin/oauth/clients/${e}/regenerate_secret`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(re(n))return{data:null,error:n};throw n}}}function vy(t={}){return{getItem:e=>t[e]||null,setItem:(e,n)=>{t[e]=n},removeItem:e=>{delete t[e]}}}const ms={debug:!!(globalThis&&o1()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class l1 extends Error{constructor(e){super(e),this.isAcquireTimeout=!0}}class FL extends l1{}async function UL(t,e,n){ms.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",t,e);const r=new globalThis.AbortController;return e>0&&setTimeout(()=>{r.abort(),ms.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",t)},e),await Promise.resolve().then(()=>globalThis.navigator.locks.request(t,e===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async s=>{if(s){ms.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",t,s.name);try{return await n()}finally{ms.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",t,s.name)}}else{if(e===0)throw ms.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",t),new FL(`Acquiring an exclusive Navigator LockManager lock "${t}" immediately failed`);if(ms.debug)try{const o=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(o,null,"  "))}catch(o){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",o)}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 HL(){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 u1(t){if(!/^0x[a-fA-F0-9]{40}$/.test(t))throw new Error(`@supabase/auth-js: Address "${t}
268" is invalid.`);return t.toLowerCase()}function WL(t){return parseInt(t,16)}function VL(t){const e=new TextEncoder().encode(t);return"0x"+Array.from(e,r=>r.toString(16).padStart(2,"0")).join("")}function ZL(t){var e;const{chainId:n,domain:r,expirationTime:s,issuedAt:o=new Date,nonce:l,notBefore:u,requestId:d,resources:h,scheme:m,uri:g,version:_}=t;{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(l&&l.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${l}`);if(!g)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(_!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${_}`);if(!((e=t.statement)===null||e===void 0)&&e.includes(`
269`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${t.statement}`)}const y=u1(t.address),P=m?`${m}://${r}`:r,x=t.statement?`${t.statement}
270`:"",E=`${P} wants you to sign in with your Ethereum account:
271${y}
272
273${x}`;let S=`URI: ${g}
274Version: ${_}
275Chain ID: ${n}${l?`
276Nonce: ${l}`:""}
277Issued At: ${o.toISOString()}`;if(s&&(S+=`
278Expiration Time: ${s.toISOString()}`),u&&(S+=`
279Not Before: ${u.toISOString()}`),d&&(S+=`
280Request ID: ${d}`),h){let w=`
281Resources:`;for(const b of h){if(!b||typeof b!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${b}`);w+=`
282- ${b}`}S+=w}return`${E}
283${S}`}class Je extends Error{constructor({message:e,code:n,cause:r,name:s}){var o;super(e,{cause:r}),this.__isWebAuthnError=!0,this.name=(o=s??(r instanceof Error?r.name:void 0))!==null&&o!==void 0?o:"Unknown Error",this.code=n}}class Ju extends Je{constructor(e,n){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:n,message:e}),this.name="WebAuthnUnknownError",this.originalError=n}}function qL({error:t,options:e}){var n,r,s;const{publicKey:o}=e;if(!o)throw Error("options was missing required publicKey property");if(t.name==="AbortError"){if(e.signal instanceof AbortSignal)return new Je({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else if(t.name==="ConstraintError"){if(((n=o.authenticatorSelection)===null||n===void 0?void 0:n.requireResidentKey)===!0)return new Je({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:t});if(e.mediation==="conditional"&&((r=o.authenticatorSelection)===null||r===void 0?void 0:r.userVerification)==="required")return new Je({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:t});if(((s=o.authenticatorSelection)===null||s===void 0?void 0:s.userVerification)==="required")return new Je({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:t})}else{if(t.name==="InvalidStateError")return new Je({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:t});if(t.name==="NotAllowedError")return new Je({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if(t.name==="NotSupportedError")return o.pubKeyCredParams.filter(u=>u.type==="public-key").length===0?new Je({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:t}):new Je({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:t});if(t.name==="SecurityError"){const l=window.location.hostname;if(c1(l)){if(o.rp.id!==l)return new Je({message:`The RP ID "${o.rp.id}
283" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new Je({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t})}else if(t.name==="TypeError"){if(o.user.id.byteLength<1||o.user.id.byteLength>64)return new Je({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:t})}else if(t.name==="UnknownError")return new Je({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}return new Je({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t})}function KL({error:t,options:e}){const{publicKey:n}=e;if(!n)throw Error("options was missing required publicKey property");if(t.name==="AbortError"){if(e.signal instanceof AbortSignal)return new Je({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else{if(t.name==="NotAllowedError")return new Je({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if(t.name==="SecurityError"){const r=window.location.hostname;if(c1(r)){if(n.rpId!==r)return new Je({message:`The RP ID "${n.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new Je({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t})}else if(t.name==="UnknownError")return new Je({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}return new Je({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t})}class GL{createNewAbortSignal(){if(this.controller){const n=new Error("Cancelling existing WebAuthn API call for new one");n.name="AbortError",this.controller.abort(n)}const e=new AbortController;return this.controller=e,e.signal}cancelCeremony(){if(this.controller){const e=new Error("Manually cancelling existing WebAuthn API call");e.name="AbortError",this.controller.abort(e),this.controller=void 0}}}const JL=new GL;function QL(t){if(!t)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(t);const{challenge:e,user:n,excludeCredentials:r}=t,s=vo(t,["challenge","user","excludeCredentials"]),o=Fs(e).buffer,l=Object.assign(Object.assign({},n),{id:Fs(n.id).buffer}),u=Object.assign(Object.assign({},s),{challenge:o,user:l});if(r&&r.length>0){u.excludeCredentials=new Array(r.length);for(let d=0;d<r.length;d++){const h=r[d];u.excludeCredentials[d]=Object.assign(Object.assign({},h),{id:Fs(h.id).buffer,type:h.type||"public-key",transports:h.transports})}}return u}function YL(t){if(!t)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(t);const{challenge:e,allowCredentials:n}=t,r=vo(t,["challenge","allowCredentials"]),s=Fs(e).buffer,o=Object.assign(Object.assign({},r),{challenge:s});if(n&&n.length>0){o.allowCredentials=new Array(n.length);for(let l=0;l<n.length;l++){const u=n[l];o.allowCredentials[l]=Object.assign(Object.assign({},u),{id:Fs(u.id).buffer,type:u.type||"public-key",transports:u.transports})}}return o}function XL(t){var e;if("toJSON"in t&&typeof t.toJSON=="function")return t.toJSON();const n=t;return{id:t.id,rawId:t.id,response:{attestationObject:Ni(new Uint8Array(t.response.attestationObject)),clientDataJSON:Ni(new Uint8Array(t.response.clientDataJSON))},type:"public-key",clientExtensionResults:t.getClientExtensionResults(),authenticatorAttachment:(e=n.authenticatorAttachment)!==null&&e!==void 0?e:void 0}}function eR(t){var e;if("toJSON"in t&&typeof t.toJSON=="function")return t.toJSON();const n=t,r=t.getClientExtensionResults(),s=t.response;return{id:t.id,rawId:t.id,response:{authenticatorData:Ni(new Uint8Array(s.authenticatorData)),clientDataJSON:Ni(new Uint8Array(s.clientDataJSON)),signature:Ni(new Uint8Array(s.signature)),userHandle:s.userHandle?Ni(new Uint8Array(s.userHandle)):void 0},type:"public-key",clientExtensionResults:r,authenticatorAttachment:(e=n.authenticatorAttachment)!==null&&e!==void 0?e:void 0}}function c1(t){return t==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(t)}function yy(){var t,e;return!!(_t()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((t=navigator==null?void 0:navigator.credentials)===null||t===void 0?void 0:t.create)=="function"&&typeof((e=navigator==null?void 0:navigator.credentials)===null||e===void 0?void 0:e.get)=="function")}async function tR(t){try{const e=await navigator.credentials.create(t);return e?e instanceof PublicKeyCredential?{data:e,error:null}:{data:null,error:new Ju("Browser returned unexpected credential type",e)}:{data:null,error:new Ju("Empty credential response",e)}}catch(e){return{data:null,error:qL({error:e,options:t})}}}async function nR(t){try{const e=await navigator.credentials.get(t);return e?e instanceof PublicKeyCredential?{data:e,error:null}:{data:null,error:new Ju("Browser returned unexpected credential type",e)}:{data:null,error:new Ju("Empty credential response",e)}}catch(e){return{data:null,error:KL({error:e,options:t})}}}const rR={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"none"},iR={userVerification:"preferred",hints:["security-key"]};function Qu(...t){const e=s=>s!==null&&typeof s=="object"&&!Array.isArray(s),n=s=>s instanceof ArrayBuffer||ArrayBuffer.isView(s),r={};for(const s of t)if(s)for(const o in s){const l=s[o];if(l!==void 0)if(Array.isArray(l))r[o]=l;else if(n(l))r[o]=l;else if(e(l)){const u=r[o];e(u)?r[o]=Qu(u,l):r[o]=Qu(l)}else r[o]=l}return r}function sR(t,e){return Qu(rR,t,e||{})}function oR(t,e){return Qu(iR,t,e||{})}class aR{constructor(e){this.client=e,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(e){return this.client.mfa.enroll(Object.assign(Object.assign({},e),{factorType:"webauthn"}))}async _challenge({factorId:e,webauthn:n,friendlyName:r,signal:s},o){try{const{data:l,error:u}=await this.client.mfa.challenge({factorId:e,webauthn:n});if(!l)return{data:null,error:u};const d=s??JL.createNewAbortSignal();if(l.webauthn.type==="create"){const{user:h}=l.webauthn.credential_options.publicKey;h.name||(h.name=`${h.id}:${r}`),h.displayName||(h.displayName=h.name)}switch(l.webauthn.type){case"create":{const h=sR(l.webauthn.credential_options.publicKey,o==null?void 0:o.create),{data:m,error:g}=await tR({publicKey:h,signal:d});return m?{data:{factorId:e,challengeId:l.id,webauthn:{type:l.webauthn.type,credential_response:m}},error:null}:{data:null,error:g}}case"request":{const h=oR(l.webauthn.credential_options.publicKey,o==null?void 0:o.request),{data:m,error:g}=await nR(Object.assign(Object.assign({},l.webauthn.credential_options),{publicKey:h,signal:d}));return m?{data:{factorId:e,challengeId:l.id,webauthn:{type:l.webauthn.type,credential_response:m}},error:null}:{data:null,error:g}}}}catch(l){return re(l)?{data:null,error:l}:{data:null,error:new Ci("Unexpected error in challenge",l)}}}async _verify({challengeId:e,factorId:n,webauthn:r}){return this.client.mfa.verify({factorId:n,challengeId:e,webauthn:r})}async _authenticate({factorId:e,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:s}},o){if(!n)return{data:null,error:new Da("rpId is required for WebAuthn authentication")};try{if(!yy())return{data:null,error:new Ci("Browser does not support WebAuthn",null)};const{data:l,error:u}=await this.challenge({factorId:e,webauthn:{rpId:n,rpOrigins:r},signal:s},{request:o});if(!l)return{data:null,error:u};const{webauthn:d}=l;return this._verify({factorId:e,challengeId:l.challengeId,webauthn:{type:d.type,rpId:n,rpOrigins:r,credential_response:d.credential_response}})}catch(l){return re(l)?{data:null,error:l}:{data:null,error:new Ci("Unexpected error in authenticate",l)}
283}}async _register({friendlyName:e,rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:s},o){if(!n)return{data:null,error:new Da("rpId is required for WebAuthn registration")};try{if(!yy())return{data:null,error:new Ci("Browser does not support WebAuthn",null)};const{data:l,error:u}=await this._enroll({friendlyName:e});if(!l)return await this.client.mfa.listFactors().then(m=>{var g;return(g=m.data)===null||g===void 0?void 0:g.all.find(_=>_.factor_type==="webauthn"&&_.friendly_name===e&&_.status!=="unverified")}).then(m=>m?this.client.mfa.unenroll({factorId:m==null?void 0:m.id}):void 0),{data:null,error:u};const{data:d,error:h}=await this._challenge({factorId:l.id,friendlyName:l.friendly_name,webauthn:{rpId:n,rpOrigins:r},signal:s},{create:o});return d?this._verify({factorId:l.id,challengeId:d.challengeId,webauthn:{rpId:n,rpOrigins:r,type:d.webauthn.type,credential_response:d.webauthn.credential_response}}):{data:null,error:h}}catch(l){return re(l)?{data:null,error:l}:{data:null,error:new Ci("Unexpected error in register",l)}}}}HL();const lR={url:iL,storageKey:sL,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:oL,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1};async function _y(t,e,n){return await n()}const gs={};class za{get jwks(){var e,n;return(n=(e=gs[this.storageKey])===null||e===void 0?void 0:e.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(e){gs[this.storageKey]=Object.assign(Object.assign({},gs[this.storageKey]),{jwks:e})}get jwks_cached_at(){var e,n;return(n=(e=gs[this.storageKey])===null||e===void 0?void 0:e.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(e){gs[this.storageKey]=Object.assign(Object.assign({},gs[this.storageKey]),{cachedAt:e})}constructor(e){var n,r;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,this.instanceID=za.nextInstanceID,za.nextInstanceID+=1,this.instanceID>0&&_t()&&console.warn("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.");const s=Object.assign(Object.assign({},lR),e);if(this.logDebugMessages=!!s.debug,typeof s.debug=="function"&&(this.logger=s.debug),this.persistSession=s.persistSession,this.storageKey=s.storageKey,this.autoRefreshToken=s.autoRefreshToken,this.admin=new $L({url:s.url,headers:s.headers,fetch:s.fetch}),this.url=s.url,this.headers=s.headers,this.fetch=a1(s.fetch),this.lock=s.lock||_y,this.detectSessionInUrl=s.detectSessionInUrl,this.flowType=s.flowType,this.hasCustomAuthorizationHeader=s.hasCustomAuthorizationHeader,s.lock?this.lock=s.lock:_t()&&(!((n=globalThis==null?void 0:globalThis.navigator)===null||n===void 0)&&n.locks)?this.lock=UL:this.lock=_y,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 aR(this)},this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this)},this.persistSession?(s.storage?this.storage=s.storage:o1()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=vy(this.memoryStorage)),s.userStorage&&(this.userStorage=s.userStorage)):(this.memoryStorage={},this.storage=vy(this.memoryStorage)),_t()&&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)}(r=this.broadcastChannel)===null||r===void 0||r.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()}_debug(...e){return this.logDebugMessages&&this.logger(`GoTrueClient@${this.instanceID} (${r1}) ${new Date().toISOString()}`,...e),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 e;try{const n=wL(window.location.href);let r="none";if(this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce"),_t()&&this.detectSessionInUrl&&r!=="none"){const{data:s,error:o}=await this._getSessionFromURL(n,r);if(o){if(this._debug("#_initialize()","error detecting session from URL",o),hL(o)){const d=(e=o.details)===null||e===void 0?void 0:e.code;
283if(d==="identity_already_exists"||d==="identity_not_found"||d==="single_identity_not_deletable")return{error:o}}return await this._removeSession(),{error:o}}const{session:l,redirectType:u}=s;return this._debug("#_initialize()","detected session in URL",l,"redirect type",u),await this._saveSession(l),setTimeout(async()=>{u==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",l):await this._notifyAllSubscribers("SIGNED_IN",l)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return re(n)?{error:n}:{error:new Ci("Unexpected error during initialization",n)}}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(e){var n,r,s;try{const o=await ue(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(n=e==null?void 0:e.options)===null||n===void 0?void 0:n.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(s=e==null?void 0:e.options)===null||s===void 0?void 0:s.captchaToken}},xform:vn}),{data:l,error:u}=o;if(u||!l)return{data:{user:null,session:null},error:u};const d=l.session,h=l.user;return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",d)),{data:{user:h,session:d},error:null}}catch(o){if(re(o))return{data:{user:null,session:null},error:o};throw o}}async signUp(e){var n,r,s;try{let o;if("email"in e){const{email:m,password:g,options:_}=e;let y=null,P=null;this.flowType==="pkce"&&([y,P]=await fs(this.storage,this.storageKey)),o=await ue(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:_==null?void 0:_.emailRedirectTo,body:{email:m,password:g,data:(n=_==null?void 0:_.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:_==null?void 0:_.captchaToken},code_challenge:y,code_challenge_method:P},xform:vn})}else if("phone"in e){const{phone:m,password:g,options:_}=e;o=await ue(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:m,password:g,data:(r=_==null?void 0:_.data)!==null&&r!==void 0?r:{},channel:(s=_==null?void 0:_.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:_==null?void 0:_.captchaToken}},xform:vn})}else throw new Jl("You must provide either an email or phone number and a password");const{data:l,error:u}=o;if(u||!l)return{data:{user:null,session:null},error:u};const d=l.session,h=l.user;return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",d)),{data:{user:h,session:d},error:null}}catch(o){if(re(o))return{data:{user:null,session:null},error:o};throw o}}async signInWithPassword(e){try{let n;if("email"in e){const{email:o,password:l,options:u}=e;n=await ue(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:o,password:l,gotrue_meta_security:{captcha_token:u==null?void 0:u.captchaToken}},xform:my})}else if("phone"in e){const{phone:o,password:l,options:u}=e;n=await ue(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:o,password:l,gotrue_meta_security:{captcha_token:u==null?void 0:u.captchaToken}},xform:my})}else throw new Jl("You must provide either an email or phone number and a password");const{data:r,error:s}=n;return s?{data:{user:null,session:null},error:s}:!r||!r.session||!r.user?{data:{user:null,session:null},error:new hs}:(r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),{data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:s})}catch(n){if(re(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOAuth(e){var n,r,s,o;return await this._handleProviderSignIn(e.provider,{redirectTo:(n=e.options)===null||n===void 0?void 0:n.redirectTo,scopes:(r=e.options)===null||r===void 0?void 0:r.scopes,queryParams:(s=e.options)===null||s===void 0?void 0:s.queryParams,skipBrowserRedirect:(o=e.options)===null||o===void 0?void 0:o.skipBrowserRedirect})}async exchangeCodeForSession(e){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(e))}async signInWithWeb3(e){const{chain:n}=e;switch(n){case"ethereum":return await this.signInWithEthereum(e);case"solana":return await this.signInWithSolana(e);default:throw new Error(`@supabase/auth-js: Unsupported chain "${n}"`)}}async signInWithEthereum(e){var n,r,s,o,l,u,d,h,m,g,_;let y,P;if("message"in e)y=e.message,P=e.signature;else{const{chain:x,wallet:E,statement:S,options:w}=e;let b;if(_t())if(typeof E=="object")b=E;else{const H=window;if("ethereum"in H&&typeof H.ethereum=="object"&&"request"in H.ethereum&&typeof H.ethereum.request=="function")b=H.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 E!="object"||!(w!=null&&w.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");b=E}const T=new URL((n=w==null?void 0:w.url)!==null&&n!==void 0?n:window.location.href),O=await b.request({method:"eth_requestAccounts"}).then(H=>H).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!O||O.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const N=u1(O[0]);let I=(r=w==null?void 0:w.signInWithEthereum)===null||r===void 0?void 0:r.chainId;if(!I){const H=await b.request({method:"eth_chainId"});I=WL(H)}const B={domain:T.host,address:N,statement:S,uri:T.href,version:"1",chainId:I,nonce:(s=w==null?void 0:w.signInWithEthereum)===null||s===void 0?void 0:s.nonce,issuedAt:(l=(o=w==null?void 0:w.signInWithEthereum)===null||o===void 0?void 0:o.issuedAt)!==null&&l!==void 0?l:new Date,expirationTime:(u=w==null?void 0:w.signInWithEthereum)===null||u===void 0?void 0:u.expirationTime,notBefore:(d=w==null?void 0:w.signInWithEthereum)===null||d===void 0?void 0:d.notBefore,requestId:(h=w==null?void 0:w.signInWithEthereum)===null||h===void 0?void 0:h.requestId,resources:(m=w==null?void 0:w.signInWithEthereum)===null||m===void 0?void 0:m.resources};y=ZL(B),P=await b.request({method:"personal_sign",params:[VL(y),N]})}try{const{data:x,error:E}=await ue(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:y,signature:P},!((g=e.options)===null||g===void 0)&&g.captchaToken?{gotrue_meta_security:{captcha_token:(_=e.options)===null||_===void 0?void 0:_.captchaToken}}:null),xform:vn});if(E)throw E;return!x||!x.session||!x.user?{data:{user:null,session:null},error:new hs}:(x.session&&(await this._saveSession(x.session),await this._notifyAllSubscribers("SIGNED_IN",x.session)),{data:Object.assign({},x),error:E})}
283catch(x){if(re(x))return{data:{user:null,session:null},error:x};throw x}}async signInWithSolana(e){var n,r,s,o,l,u,d,h,m,g,_,y;let P,x;if("message"in e)P=e.message,x=e.signature;else{const{chain:E,wallet:S,statement:w,options:b}=e;let T;if(_t())if(typeof S=="object")T=S;else{const N=window;if("solana"in N&&typeof N.solana=="object"&&("signIn"in N.solana&&typeof N.solana.signIn=="function"||"signMessage"in N.solana&&typeof N.solana.signMessage=="function"))T=N.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 S!="object"||!(b!=null&&b.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");T=S}const O=new URL((n=b==null?void 0:b.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in T&&T.signIn){const N=await T.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},b==null?void 0:b.signInWithSolana),{version:"1",domain:O.host,uri:O.href}),w?{statement:w}:null));let I;if(Array.isArray(N)&&N[0]&&typeof N[0]=="object")I=N[0];else if(N&&typeof N=="object"&&"signedMessage"in N&&"signature"in N)I=N;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in I&&"signature"in I&&(typeof I.signedMessage=="string"||I.signedMessage instanceof Uint8Array)&&I.signature instanceof Uint8Array)P=typeof I.signedMessage=="string"?I.signedMessage:new TextDecoder().decode(I.signedMessage),x=I.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in T)||typeof T.signMessage!="function"||!("publicKey"in T)||typeof T!="object"||!T.publicKey||!("toBase58"in T.publicKey)||typeof T.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");P=[`${O.host} wants you to sign in with your Solana account:`,T.publicKey.toBase58(),...w?["",w,""]:[""],"Version: 1",`URI: ${O.href}`,`Issued At: ${(s=(r=b==null?void 0:b.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&s!==void 0?s:new Date().toISOString()}`,...!((o=b==null?void 0:b.signInWithSolana)===null||o===void 0)&&o.notBefore?[`Not Before: ${b.signInWithSolana.notBefore}`]:[],...!((l=b==null?void 0:b.signInWithSolana)===null||l===void 0)&&l.expirationTime?[`Expiration Time: ${b.signInWithSolana.expirationTime}`]:[],...!((u=b==null?void 0:b.signInWithSolana)===null||u===void 0)&&u.chainId?[`Chain ID: ${b.signInWithSolana.chainId}`]:[],...!((d=b==null?void 0:b.signInWithSolana)===null||d===void 0)&&d.nonce?[`Nonce: ${b.signInWithSolana.nonce}`]:[],...!((h=b==null?void 0:b.signInWithSolana)===null||h===void 0)&&h.requestId?[`Request ID: ${b.signInWithSolana.requestId}`]:[],...!((g=(m=b==null?void 0:b.signInWithSolana)===null||m===void 0?void 0:m.resources)===null||g===void 0)&&g.length?["Resources",...b.signInWithSolana.resources.map(I=>`- ${I}`)]:[]].join(`
284`);const N=await T.signMessage(new TextEncoder().encode(P),"utf8");if(!N||!(N instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");x=N}}try{const{data:E,error:S}=await ue(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:P,signature:Ni(x)},!((_=e.options)===null||_===void 0)&&_.captchaToken?{gotrue_meta_security:{captcha_token:(y=e.options)===null||y===void 0?void 0:y.captchaToken}}:null),xform:vn});if(S)throw S;return!E||!E.session||!E.user?{data:{user:null,session:null},error:new hs}:(E.session&&(await this._saveSession(E.session),await this._notifyAllSubscribers("SIGNED_IN",E.session)),{data:Object.assign({},E),error:S})}catch(E){if(re(E))return{data:{user:null,session:null},error:E};throw E}}async _exchangeCodeForSession(e){const n=await bi(this.storage,`${this.storageKey}-code-verifier`),[r,s]=(n??"").split("/");try{const{data:o,error:l}=await ue(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:e,code_verifier:r},xform:vn});if(await Lr(this.storage,`${this.storageKey}-code-verifier`),l)throw l;return!o||!o.session||!o.user?{data:{user:null,session:null,redirectType:null},error:new hs}:(o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",o.session)),{data:Object.assign(Object.assign({},o),{redirectType:s??null}),error:l})}catch(o){if(re(o))return{data:{user:null,session:null,redirectType:null},error:o};throw o}}async signInWithIdToken(e){try{const{options:n,provider:r,token:s,access_token:o,nonce:l}=e,u=await ue(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:s,access_token:o,nonce:l,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:vn}),{data:d,error:h}=u;return h?{data:{user:null,session:null},error:h}:!d||!d.session||!d.user?{data:{user:null,session:null},error:new hs}:(d.session&&(await this._saveSession(d.session),await this._notifyAllSubscribers("SIGNED_IN",d.session)),{data:d,error:h})}catch(n){if(re(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOtp(e){var n,r,s,o,l;try{if("email"in e){const{email:u,options:d}=e;let h=null,m=null;this.flowType==="pkce"&&([h,m]=await fs(this.storage,this.storageKey));const{error:g}=await ue(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:u,data:(n=d==null?void 0:d.data)!==null&&n!==void 0?n:{},create_user:(r=d==null?void 0:d.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:d==null?void 0:d.captchaToken},code_challenge:h,code_challenge_method:m},redirectTo:d==null?void 0:d.emailRedirectTo});return{data:{user:null,session:null},error:g}}if("phone"in e){const{phone:u,options:d}=e,{data:h,error:m}=await ue(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:u,data:(s=d==null?void 0:d.data)!==null&&s!==void 0?s:{},create_user:(o=d==null?void 0:d.shouldCreateUser)!==null&&o!==void 0?o:!0,gotrue_meta_security:{captcha_token:d==null?void 0:d.captchaToken},channel:(l=d==null?void 0:d.channel)!==null&&l!==void 0?l:"sms"}});return{data:{user:null,session:null,messageId:h==null?void 0:h.message_id},error:m}}throw new Jl("You must provide either an email or phone number.")}catch(u){if(re(u))return{data:{user:null,session:null},error:u};throw u}}async verifyOtp(e){var n,r;try{let s,o;"options"in e&&(s=(n=e.options)===null||n===void 0?void 0:n.redirectTo,o=(r=e.options)===null||r===void 0?void 0:r.captchaToken);const{data:l,error:u}=await ue(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},e),{gotrue_meta_security:{captcha_token:o}}),redirectTo:s,xform:vn});if(u)throw u;if(!l)throw new Error("An error occurred on token verification.");const d=l.session,h=l.user;return d!=null&&d.access_token&&(await this._saveSession(d),await this._notifyAllSubscribers(e.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",d)),{data:{user:h,session:d},error:null}}catch(s){if(re(s))return{data:{user:null,session:null},error:s};throw s}}async signInWithSSO(e){var n,r,s;try{let o=null,l=null;return this.flowType==="pkce"&&([o,l]=await fs(this.storage,this.storageKey)),await ue(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in e?{provider_id:e.providerId}:null),"domain"in e?{domain:e.domain}:null),{redirect_to:(r=(n=e.options)===null||n===void 0?void 0:n.redirectTo)!==null&&r!==void 0?r:void 0}),!((s=e==null?void 0:e.options)===null||s===void 0)&&s.captchaToken?{gotrue_meta_security:{captcha_token:e.options.captchaToken}}
284:null),{skip_http_redirect:!0,code_challenge:o,code_challenge_method:l}),headers:this.headers,xform:DL})}catch(o){if(re(o))return{data:null,error:o};throw o}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async e=>{const{data:{session:n},error:r}=e;if(r)throw r;if(!n)throw new gn;const{error:s}=await ue(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return{data:{user:null,session:null},error:s}})}catch(e){if(re(e))return{data:{user:null,session:null},error:e};throw e}}async resend(e){try{const n=`${this.url}/resend`;if("email"in e){const{email:r,type:s,options:o}=e,{error:l}=await ue(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:s,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},redirectTo:o==null?void 0:o.emailRedirectTo});return{data:{user:null,session:null},error:l}}else if("phone"in e){const{phone:r,type:s,options:o}=e,{data:l,error:u}=await ue(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:s,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}}});return{data:{user:null,session:null,messageId:l==null?void 0:l.message_id},error:u}}throw new Jl("You must provide either an email or phone number and a type")}catch(n){if(re(n))return{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(e,n){this._debug("#_acquireLock","begin",e);try{if(this.lockAcquired){const r=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),s=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await s}catch{}})()),s}return await this.lock(`lock:${this.storageKey}`,e,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 s=[...this.pendingInLock];await Promise.all(s),this.pendingInLock.splice(0,s.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(e){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await e(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 e=null;const n=await bi(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?e=n:(this._debug("#getSession()","session from storage is not valid"),await this._removeSession())),!e)return{data:{session:null},error:null};const r=e.expires_at?e.expires_at*1e3-Date.now()<Gd:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",e.expires_at),!r){if(this.userStorage){const l=await bi(this.userStorage,this.storageKey+"-user");l!=null&&l.user?e.user=l.user:e.user=Yd()}if(this.storage.isServer&&e.user&&!e.user.__isUserNotAvailableProxy){const l={value:this.suppressGetSessionWarning};e.user=LL(e.user,l),l.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:e},error:null}}const{data:s,error:o}=await this._callRefreshToken(e.refresh_token);return o?{data:{session:null},error:o}:{data:{session:s},error:null}}finally{this._debug("#__loadSession()","end")}}async getUser(e){return e?await this._getUser(e):(await this.initializePromise,await this._acquireLock(-1,async()=>await this._getUser()))}async _getUser(e){try{return e?await ue(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:e,xform:Br}):await this._useSession(async n=>{var r,s,o;const{data:l,error:u}=n;if(u)throw u;return!(!((r=l.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new gn}:await ue(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(o=(s=l.session)===null||s===void 0?void 0:s.access_token)!==null&&o!==void 0?o:void 0,xform:Br})})}catch(n){if(re(n))return dL(n)&&(await this._removeSession(),await Lr(this.storage,`${this.storageKey}-code-verifier`)),{data:{user:null},error:n};throw n}}async updateUser(e,n={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(e,n))}async _updateUser(e,n={}){try{return await this._useSession(async r=>{const{data:s,error:o}=r;if(o)throw o;if(!s.session)throw new gn;const l=s.session;let u=null,d=null;this.flowType==="pkce"&&e.email!=null&&([u,d]=await fs(this.storage,this.storageKey));const{data:h,error:m}=await ue(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n==null?void 0:n.emailRedirectTo,body:Object.assign(Object.assign({},e),{code_challenge:u,code_challenge_method:d}),jwt:l.access_token,xform:Br});if(m)throw m;return l.user=h.user,await this._saveSession(l),await this._notifyAllSubscribers("USER_UPDATED",l),{data:{user:l.user},error:null}})}catch(r){if(re(r))return{data:{user:null},error:r};throw r}}async setSession(e){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(e))}async _setSession(e){try{if(!e.access_token||!e.refresh_token)throw new gn;const n=Date.now()/1e3;let r=n,s=!0,o=null;const{payload:l}=Qd(e.access_token);if(l.exp&&(r=l.exp,s=r<=n),s){const{data:u,error:d}=await this._callRefreshToken(e.refresh_token);if(d)return{data:{user:null,session:null},error:d};if(!u)return{data:{user:null,session:null},error:null};o=u}else{const{data:u,error:d}=await this._getUser(e.access_token);if(d)throw d;o={access_token:e.access_token,refresh_token:e.refresh_token,user:u.user,token_type:"bearer",expires_in:r-n,expires_at:r},await this._saveSession(o),await this._notifyAllSubscribers("SIGNED_IN",o)}return{data:{user:o.user,session:o},error:null}}catch(n){if(re(n))return{data:{session:null,user:null},error:n};throw n}}async refreshSession(e){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(e))}async _refreshSession(e){try{return await this._useSession(async n=>{var r;if(!e){const{data:l,error:u}=n;if(u)throw u;e=(r=l.session)!==null&&r!==void 0?r:void 0}if(!(e!=null&&e.refresh_token))throw new gn;const{data:s,error:o}=await this._callRefreshToken(e.refresh_token);return o?{data:{user:null,session:null},error:o}:s?{data:{user:s.user,session:s},error:null}:{data:{user:null,session:null},error:null}})}catch(n){if(re(n))return{data:{user:null,session:null},error:n};throw n}}async _getSessionFromURL(e,n){try{if(!_t())throw new Ql("No browser detected.");
284if(e.error||e.error_description||e.error_code)throw new Ql(e.error_description||"Error in URL with unspecified error_description",{error:e.error||"unspecified_error",code:e.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new ly("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Ql("Not a valid implicit grant flow url.");break;default:}if(n==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!e.code)throw new ly("No code detected.");const{data:w,error:b}=await this._exchangeCodeForSession(e.code);if(b)throw b;const T=new URL(window.location.href);return T.searchParams.delete("code"),window.history.replaceState(window.history.state,"",T.toString()),{data:{session:w.session,redirectType:null},error:null}}const{provider_token:r,provider_refresh_token:s,access_token:o,refresh_token:l,expires_in:u,expires_at:d,token_type:h}=e;if(!o||!u||!l||!h)throw new Ql("No session defined in URL");const m=Math.round(Date.now()/1e3),g=parseInt(u);let _=m+g;d&&(_=parseInt(d));const y=_-m;y*1e3<=ys&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${y}s, should have been closer to ${g}s`);const P=_-g;m-P>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",P,_,m):m-P<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",P,_,m);const{data:x,error:E}=await this._getUser(o);if(E)throw E;const S={provider_token:r,provider_refresh_token:s,access_token:o,expires_in:g,expires_at:_,refresh_token:l,token_type:h,user:x.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),{data:{session:S,redirectType:e.type},error:null}}catch(r){if(re(r))return{data:{session:null,redirectType:null},error:r};throw r}}_isImplicitGrantCallback(e){return!!(e.access_token||e.error_description)}async _isPKCECallback(e){const n=await bi(this.storage,`${this.storageKey}-code-verifier`);return!!(e.code&&n)}async signOut(e={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(e))}async _signOut({scope:e}={scope:"global"}){return await this._useSession(async n=>{var r;const{data:s,error:o}=n;if(o)return{error:o};const l=(r=s.session)===null||r===void 0?void 0:r.access_token;if(l){const{error:u}=await this.admin.signOut(l,e);if(u&&!(cL(u)&&(u.status===404||u.status===401||u.status===403)))return{error:u}}return e!=="others"&&(await this._removeSession(),await Lr(this.storage,`${this.storageKey}-code-verifier`)),{error:null}})}onAuthStateChange(e){const n=_L(),r={id:n,callback:e,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(e){return await this._useSession(async n=>{var r,s;try{const{data:{session:o},error:l}=n;if(l)throw l;await((r=this.stateChangeEmitters.get(e))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",o)),this._debug("INITIAL_SESSION","callback id",e,"session",o)}catch(o){await((s=this.stateChangeEmitters.get(e))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",e,"error",o),console.error(o)}})}async resetPasswordForEmail(e,n={}){let r=null,s=null;this.flowType==="pkce"&&([r,s]=await fs(this.storage,this.storageKey,!0));try{return await ue(this.fetch,"POST",`${this.url}/recover`,{body:{email:e,code_challenge:r,code_challenge_method:s,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(o){if(re(o))return{data:null,error:o};throw o}}async getUserIdentities(){var e;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return{data:{identities:(e=n.user.identities)!==null&&e!==void 0?e:[]},error:null}}catch(n){if(re(n))return{data:null,error:n};throw n}}async linkIdentity(e){return"token"in e?this.linkIdentityIdToken(e):this.linkIdentityOAuth(e)}async linkIdentityOAuth(e){var n;try{const{data:r,error:s}=await this._useSession(async o=>{var l,u,d,h,m;const{data:g,error:_}=o;if(_)throw _;const y=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,e.provider,{redirectTo:(l=e.options)===null||l===void 0?void 0:l.redirectTo,scopes:(u=e.options)===null||u===void 0?void 0:u.scopes,queryParams:(d=e.options)===null||d===void 0?void 0:d.queryParams,skipBrowserRedirect:!0});return await ue(this.fetch,"GET",y,{headers:this.headers,jwt:(m=(h=g.session)===null||h===void 0?void 0:h.access_token)!==null&&m!==void 0?m:void 0})});if(s)throw s;return _t()&&!(!((n=e.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r==null?void 0:r.url),{data:{provider:e.provider,url:r==null?void 0:r.url},error:null}}catch(r){if(re(r))return{data:{provider:e.provider,url:null},error:r};throw r}}async linkIdentityIdToken(e){return await this._useSession(async n=>{var r;try{const{error:s,data:{session:o}}=n;if(s)throw s;const{options:l,provider:u,token:d,access_token:h,nonce:m}=e,g=await ue(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(r=o==null?void 0:o.access_token)!==null&&r!==void 0?r:void 0,body:{provider:u,id_token:d,access_token:h,nonce:m,link_identity:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken}},xform:vn}),{data:_,error:y}=g;return y?{data:{user:null,session:null},error:y}:!_||!_.session||!_.user?{data:{user:null,session:null},error:new hs}:(_.session&&(await this._saveSession(_.session),await this._notifyAllSubscribers("USER_UPDATED",_.
284session)),{data:_,error:y})}catch(s){if(re(s))return{data:{user:null,session:null},error:s};throw s}})}async unlinkIdentity(e){try{return await this._useSession(async n=>{var r,s;const{data:o,error:l}=n;if(l)throw l;return await ue(this.fetch,"DELETE",`${this.url}/user/identities/${e.identity_id}`,{headers:this.headers,jwt:(s=(r=o.session)===null||r===void 0?void 0:r.access_token)!==null&&s!==void 0?s:void 0})})}catch(n){if(re(n))return{data:null,error:n};throw n}}async _refreshAccessToken(e){const n=`#_refreshAccessToken(${e.substring(0,5)}...)`;this._debug(n,"begin");try{const r=Date.now();return await SL(async s=>(s>0&&await bL(200*Math.pow(2,s-1)),this._debug(n,"refreshing attempt",s),await ue(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:e},headers:this.headers,xform:vn})),(s,o)=>{const l=200*Math.pow(2,s);return o&&Jd(o)&&Date.now()+l-r<ys})}catch(r){if(this._debug(n,"error",r),re(r))return{data:{session:null,user:null},error:r};throw r}finally{this._debug(n,"end")}}_isValidSession(e){return typeof e=="object"&&e!==null&&"access_token"in e&&"refresh_token"in e&&"expires_at"in e}async _handleProviderSignIn(e,n){const r=await this._getUrlForProvider(`${this.url}/authorize`,e,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",e,"options",n,"url",r),_t()&&!n.skipBrowserRedirect&&window.location.assign(r),{data:{provider:e,url:r},error:null}}async _recoverAndRefresh(){var e,n;const r="#_recoverAndRefresh()";this._debug(r,"begin");try{const s=await bi(this.storage,this.storageKey);if(s&&this.userStorage){let l=await bi(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!l&&(l={user:s.user},await _s(this.userStorage,this.storageKey+"-user",l)),s.user=(e=l==null?void 0:l.user)!==null&&e!==void 0?e:Yd()}else if(s&&!s.user&&!s.user){const l=await bi(this.storage,this.storageKey+"-user");l&&(l!=null&&l.user)?(s.user=l.user,await Lr(this.storage,this.storageKey+"-user"),await _s(this.storage,this.storageKey,s)):s.user=Yd()}if(this._debug(r,"session from storage",s),!this._isValidSession(s)){this._debug(r,"session is not valid"),s!==null&&await this._removeSession();return}const o=((n=s.expires_at)!==null&&n!==void 0?n:1/0)*1e3-Date.now()<Gd;if(this._debug(r,`session has${o?"":" not"} expired with margin of ${Gd}s`),o){if(this.autoRefreshToken&&s.refresh_token){const{error:l}=await this._callRefreshToken(s.refresh_token);l&&(console.error(l),Jd(l)||(this._debug(r,"refresh failed with a non-retryable error, removing the session",l),await this._removeSession()))}}else if(s.user&&s.user.__isUserNotAvailableProxy===!0)try{const{data:l,error:u}=await this._getUser(s.access_token);!u&&(l!=null&&l.user)?(s.user=l.user,await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)):this._debug(r,"could not get user data, skipping SIGNED_IN notification")}catch(l){console.error("Error getting user data:",l),this._debug(r,"error getting user data, skipping SIGNED_IN notification",l)}else await this._notifyAllSubscribers("SIGNED_IN",s)}catch(s){this._debug(r,"error",s),console.error(s);return}finally{this._debug(r,"end")}}async _callRefreshToken(e){var n,r;if(!e)throw new gn;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const s=`#_callRefreshToken(${e.substring(0,5)}...)`;this._debug(s,"begin");try{this.refreshingDeferred=new jc;const{data:o,error:l}=await this._refreshAccessToken(e);if(l)throw l;if(!o.session)throw new gn;await this._saveSession(o.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",o.session);const u={data:o.session,error:null};return this.refreshingDeferred.resolve(u),u}catch(o){if(this._debug(s,"error",o),re(o)){const l={data:null,error:o};return Jd(o)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(l),l}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(o),o}finally{this.refreshingDeferred=null,this._debug(s,"end")}}async _notifyAllSubscribers(e,n,r=!0){const s=`#_notifyAllSubscribers(${e})`;this._debug(s,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:e,session:n});const o=[],l=Array.from(this.stateChangeEmitters.values()).map(async u=>{try{await u.callback(e,n)}catch(d){o.push(d)}});if(await Promise.all(l),o.length>0){for(let u=0;u<o.length;u+=1)console.error(o[u]);throw o[0]}}finally{this._debug(s,"end")}}async _saveSession(e){this._debug("#_saveSession()",e),this.suppressGetSessionWarning=!0;const n=Object.assign({},e),r=n.user&&n.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!r&&n.user&&await _s(this.userStorage,this.storageKey+"-user",{user:n.user});const s=Object.assign({},n);delete s.user;const o=fy(s);await _s(this.storage,this.storageKey,o)}else{const s=fy(n);await _s(this.storage,this.storageKey,s)}}async _removeSession(){this._debug("#_removeSession()"),await Lr(this.storage,this.storageKey),await Lr(this.storage,this.storageKey+"-code-verifier"),await Lr(this.storage,this.storageKey+"-user"),this.userStorage&&await Lr(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const e=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{e&&_t()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",e)}
284catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const e=setInterval(()=>this._autoRefreshTokenTick(),ys);this.autoRefreshTicker=e,e&&typeof e=="object"&&typeof e.unref=="function"?e.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(e),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const e=this.autoRefreshTicker;this.autoRefreshTicker=null,e&&clearInterval(e)}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 e=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 s=Math.floor((r.expires_at*1e3-e)/ys);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${ys}ms, refresh threshold is ${yf} ticks`),s<=yf&&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(e){if(e.isAcquireTimeout||e instanceof l1)this._debug("auto refresh token tick lock not available");else throw e}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!_t()||!(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(e){console.error("_handleVisibilityChange",e)}}async _onVisibilityChanged(e){const n=`#_onVisibilityChanged(${e})`;this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),e||(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(e,n,r){const s=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&s.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&s.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[o,l]=await fs(this.storage,this.storageKey),u=new URLSearchParams({code_challenge:`${encodeURIComponent(o)}`,code_challenge_method:`${encodeURIComponent(l)}`});s.push(u.toString())}if(r!=null&&r.queryParams){const o=new URLSearchParams(r.queryParams);s.push(o.toString())}return r!=null&&r.skipBrowserRedirect&&s.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${e}?${s.join("&")}`}async _unenroll(e){try{return await this._useSession(async n=>{var r;const{data:s,error:o}=n;return o?{data:null,error:o}:await ue(this.fetch,"DELETE",`${this.url}/factors/${e.factorId}`,{headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(re(n))return{data:null,error:n};throw n}}async _enroll(e){try{return await this._useSession(async n=>{var r,s;const{data:o,error:l}=n;if(l)return{data:null,error:l};const u=Object.assign({friendly_name:e.friendlyName,factor_type:e.factorType},e.factorType==="phone"?{phone:e.phone}:e.factorType==="totp"?{issuer:e.issuer}:{}),{data:d,error:h}=await ue(this.fetch,"POST",`${this.url}/factors`,{body:u,headers:this.headers,jwt:(r=o==null?void 0:o.session)===null||r===void 0?void 0:r.access_token});return h?{data:null,error:h}:(e.factorType==="totp"&&d.type==="totp"&&(!((s=d==null?void 0:d.totp)===null||s===void 0)&&s.qr_code)&&(d.totp.qr_code=`data:image/svg+xml;utf-8,${d.totp.qr_code}`),{data:d,error:null})})}catch(n){if(re(n))return{data:null,error:n};throw n}}async _verify(e){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:o}=n;
284if(o)return{data:null,error:o};const l=Object.assign({challenge_id:e.challengeId},"webauthn"in e?{webauthn:Object.assign(Object.assign({},e.webauthn),{credential_response:e.webauthn.type==="create"?XL(e.webauthn.credential_response):eR(e.webauthn.credential_response)})}:{code:e.code}),{data:u,error:d}=await ue(this.fetch,"POST",`${this.url}/factors/${e.factorId}/verify`,{body:l,headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});return d?{data:null,error:d}:(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+u.expires_in},u)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",u),{data:u,error:d})})}catch(n){if(re(n))return{data:null,error:n};throw n}})}async _challenge(e){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:o}=n;if(o)return{data:null,error:o};const l=await ue(this.fetch,"POST",`${this.url}/factors/${e.factorId}/challenge`,{body:e,headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});if(l.error)return l;const{data:u}=l;if(u.type!=="webauthn")return{data:u,error:null};switch(u.webauthn.type){case"create":return{data:Object.assign(Object.assign({},u),{webauthn:Object.assign(Object.assign({},u.webauthn),{credential_options:Object.assign(Object.assign({},u.webauthn.credential_options),{publicKey:QL(u.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},u),{webauthn:Object.assign(Object.assign({},u.webauthn),{credential_options:Object.assign(Object.assign({},u.webauthn.credential_options),{publicKey:YL(u.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(n){if(re(n))return{data:null,error:n};throw n}})}async _challengeAndVerify(e){const{data:n,error:r}=await this._challenge({factorId:e.factorId});return r?{data:null,error:r}:await this._verify({factorId:e.factorId,challengeId:n.id,code:e.code})}async _listFactors(){var e;const{data:{user:n},error:r}=await this.getUser();if(r)return{data:null,error:r};const s={all:[],phone:[],totp:[],webauthn:[]};for(const o of(e=n==null?void 0:n.factors)!==null&&e!==void 0?e:[])s.all.push(o),o.status==="verified"&&s[o.factor_type].push(o);return{data:s,error:null}}async _getAuthenticatorAssuranceLevel(){var e,n;const{data:{session:r},error:s}
284=await this.getSession();if(s)return{data:null,error:s};if(!r)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:o}=Qd(r.access_token);let l=null;o.aal&&(l=o.aal);let u=l;((n=(e=r.user.factors)===null||e===void 0?void 0:e.filter(m=>m.status==="verified"))!==null&&n!==void 0?n:[]).length>0&&(u="aal2");const h=o.amr||[];return{data:{currentLevel:l,nextLevel:u,currentAuthenticationMethods:h},error:null}}async _getAuthorizationDetails(e){try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;return s?{data:null,error:s}:r?await ue(this.fetch,"GET",`${this.url}/oauth/authorizations/${e}`,{headers:this.headers,jwt:r.access_token,xform:o=>({data:o,error:null})}):{data:null,error:new gn}})}catch(n){if(re(n))return{data:null,error:n};throw n}}async _approveAuthorization(e,n){try{return await this._useSession(async r=>{const{data:{session:s},error:o}=r;if(o)return{data:null,error:o};if(!s)return{data:null,error:new gn};const l=await ue(this.fetch,"POST",`${this.url}/oauth/authorizations/${e}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"approve"},xform:u=>({data:u,error:null})});return l.data&&l.data.redirect_url&&_t()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(l.data.redirect_url),l})}catch(r){if(re(r))return{data:null,error:r};throw r}}async _denyAuthorization(e,n){try{return await this._useSession(async r=>{const{data:{session:s},error:o}=r;if(o)return{data:null,error:o};if(!s)return{data:null,error:new gn};const l=await ue(this.fetch,"POST",`${this.url}/oauth/authorizations/${e}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"deny"},xform:u=>({data:u,error:null})});return l.data&&l.data.redirect_url&&_t()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(l.data.redirect_url),l})}catch(r){if(re(r))return{data:null,error:r};throw r}}async fetchJwk(e,n={keys:[]}){let r=n.keys.find(u=>u.kid===e);if(r)return r;const s=Date.now();if(r=this.jwks.keys.find(u=>u.kid===e),r&&this.jwks_cached_at+lL>s)return r;const{data:o,error:l}=await ue(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(l)throw l;return!o.keys||o.keys.length===0||(this.jwks=o,this.jwks_cached_at=s,r=o.keys.find(u=>u.kid===e),!r)?null:r}async getClaims(e,n={}){try{let r=e;if(!r){const{data:y,error:P}
284=await this.getSession();if(P||!y.session)return{data:null,error:P};r=y.session.access_token}const{header:s,payload:o,signature:l,raw:{header:u,payload:d}}=Qd(r);n!=null&&n.allowExpired||OL(o.exp);const h=!s.alg||s.alg.startsWith("HS")||!s.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(s.kid,n!=null&&n.keys?{keys:n.keys}:n==null?void 0:n.jwks);if(!h){const{error:y}=await this.getUser(r);if(y)throw y;return{data:{claims:o,header:s,signature:l},error:null}}const m=NL(s.alg),g=await crypto.subtle.importKey("jwk",h,m,!0,["verify"]);if(!await crypto.subtle.verify(m,g,l,vL(`${u}.${d}`)))throw new xf("Invalid JWT signature");return{data:{claims:o,header:s,signature:l},error:null}}catch(r){if(re(r))return{data:null,error:r};throw r}}}za.nextInstanceID=0;const uR=za;class cR extends uR{constructor(e){super(e)}}class dR{constructor(e,n,r){var s,o,l;this.supabaseUrl=e,this.supabaseKey=n;const u=rL(e);if(!n)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",u),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",u),this.storageUrl=new URL("storage/v1",u),this.functionsUrl=new URL("functions/v1",u);const d=`sb-${u.hostname.split(".")[0]}-auth-token`,h={db:GA,realtime:QA,auth:Object.assign(Object.assign({},JA),{storageKey:d}),global:KA},m=nL(r??{},h);this.storageKey=(s=m.auth.storageKey)!==null&&s!==void 0?s:"",this.headers=(o=m.global.headers)!==null&&o!==void 0?o:{},m.accessToken?(this.accessToken=m.accessToken,this.auth=new Proxy({},{get:(g,_)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(_)} is not possible`)}})):this.auth=this._initSupabaseAuthClient((l=m.auth)!==null&&l!==void 0?l:{},this.headers,m.global.fetch),this.fetch=eL(n,this._getAccessToken.bind(this),m.global.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers,accessToken:this._getAccessToken.bind(this)},m.realtime)),this.rest=new iA(new URL("rest/v1",u).href,{headers:this.headers,schema:m.db.schema,fetch:this.fetch}),this.storage=new VA(this.storageUrl.href,this.headers,this.fetch,r==null?void 0:r.storage),m.accessToken||this._listenForAuthEvents()}get functions(){return new J2(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,n={},r={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,n,r)}channel(e,n={config:{}}){return this.realtime.channel(e,n)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var e,n;if(this.accessToken)return await this.accessToken();const{data:r}=await this.auth.getSession();return(n=(e=r.session)===null||e===void 0?void 0:e.access_token)!==null&&n!==void 0?n:this.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:n,detectSessionInUrl:r,storage:s,userStorage:o,storageKey:l,flowType:u,lock:d,debug:h},m,g){const _={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new cR({url:this.authUrl.href,headers:Object.assign(Object.assign({},_),m),storageKey:l,autoRefreshToken:e,persistSession:n,detectSessionInUrl:r,storage:s,userStorage:o,flowType:u,lock:d,debug:h,fetch:g,hasCustomAuthorizationHeader:Object.keys(this.headers).some(y=>y.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new xA(this.realtimeUrl.href,Object.assign(Object.assign({},e),{params:Object.assign({apikey:this.supabaseKey},e==null?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((n,r)=>{this._handleTokenChanged(n,"CLIENT",r==null?void 0:r.access_token)})}_handleTokenChanged(e,n,r){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==r?(this.changedAccessToken=r,this.realtime.setAuth(r)):e==="SIGNED_OUT"&&(this.realtime.setAuth(),n=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}}const hR=(t,e,n)=>new dR(t,e,n);function fR(){if(typeof window<"u"||typeof process>"u")return!1;const t=process.version;if(t==null)return!1;const e=t.match(/^v(\d+)\./);return e?parseInt(e[1],10)<=18:!1}fR()&&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 N
284ode.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");function pR(){var E,S;if(typeof window>"u")return;const t=location.hostname,n=["lovableproject.com","lovableproject-dev.com","lovable.app","gpt-eng.com","gptengineer.run"].some(w=>t===w||t.endsWith("."+w)),r="[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",s=n?((E=t.match(new RegExp("^(?:id-preview(?:-[a-z0-9]+)?|project)--("+r+")(?:-dev)?(?=\\.|$)","i")))==null?void 0:E[1])??((S=t.match(new RegExp("^("+r+")(?=[.-])","i")))==null?void 0:S[1]):void 0,o=window.parent&&window.parent!==window;if(!s||!o)return localStorage;const l=t.endsWith(".lovableproject-dev.com")||t.endsWith(".gpt-eng.com"),u=l?/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$|^http:\/\/localhost:3000$/:/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$/,d=location.ancestorOrigins&&location.ancestorOrigins[0]||(document.referrer?new URL(document.referrer).origin:""),h=d&&u.test(d)?[d]:l?["https://lovable.dev","http://localhost:3000"]:["https://lovable.dev"],m="lovable-preview-auth:result",g=2e3,_=()=>Math.random().toString(36).slice(2)+Date.now().toString(36),y=(w,b,T)=>new Promise(O=>{const N=_();let I=!1,B;const H=V=>{I||(I=!0,clearTimeout(B),window.removeEventListener("message",W),O(V))},W=V=>{if(h.indexOf(V.origin)<0)return;const ce=V.data;ce&&ce.type===m&&ce.requestId===N&&H(ce)};window.addEventListener("message",W);const Y={type:w,requestId:N,projectId:s,key:b};T!==void 0&&(Y.value=T);for(const V of h)window.parent.postMessage(Y,V);B=setTimeout(()=>H(null),g)});let P=!0;const x=250;return{getItem:async w=>{let b=await y("lovable-preview-auth:get",w);return!b&&P&&(await new Promise(T=>setTimeout(T,x)),b=await y("lovable-preview-auth:get",w)),P=!1,b&&b.ok&&typeof b.value=="string"?b.value===""?(localStorage.removeItem(w),null):b.value:localStorage.getItem(w)},setItem:(w,b)=>(localStorage.setItem(w,b),y("lovable-preview-auth:set",w,b).then(T=>{T&&T.ok&&typeof T.value=="string"&&localStorage.getItem(w)===b&&(T.value===""?localStorage.removeItem(w):localStorage.setItem(w,T.value))})),removeItem:w=>(localStorage.removeItem(w),y("lovable-preview-auth:remove",w).then(()=>{}))}}const mR="https://jzyuxmpyugfmvqxgtuhu.supabase.co",gR="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Imp6eXV4bXB5dWdmbXZxeGd0dWh1Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NjIwMzIxNDcsImV4cCI6MjA3NzYwODE0N30.9a4QDwd3ZFGkCFcpw0IFezvEJsKrgAlfwGotIUeWfWg",As=hR(mR,gR,{auth:{storage:pR(),persistSession:!0,autoRefreshToken:!0}}),vR={likely_human:"Likely human",known_bot:"Known bot",likely_automated:"Likely automated",unknown:"Unclassified"};function yR(t){return t==="likely_human"?"bg-emerald-500/15 text-emerald-600 dark:text-emerald-400":t==="known_bot"?"bg-amber-500/15 text-amber-600 dark:text-amber-400":"bg-rose-500/15 text-rose-600 dar
284k:text-rose-400"}const _R=()=>{const[t,e]=C.useState(""),[n,r]=C.useState(""),[s,o]=C.useState(!1),[l,u]=C.useState("in"),d=async h=>{h.preventDefault(),o(!0);try{if(l==="in"){const{error:m}=await As.auth.signInWithPassword({email:t,password:n});if(m)throw m}else{const{error:m}=await As.auth.signUp({email:t,password:n,options:{emailRedirectTo:`${window.location.origin}/#/visits`}});if(m)throw m;zu.success("Account created. Check your inbox to confirm, then sign in.")}}catch(m){zu.error(m instanceof Error?m.message:"Sign-in failed")}finally{o(!1)}};return p.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background px-4",children:p.jsxs(We,{className:"w-full max-w-sm p-6 space-y-4",children:[p.jsxs("div",{children:[p.jsx("h1",{className:"text-xl font-semibold",children:"Visit statistics"}),p.jsx("p",{className:"text-sm text-muted-foreground",children:"Private area — sign in to continue."})]}),p.jsxs("form",{onSubmit:d,className:"space-y-3",children:[p.jsxs("div",{className:"space-y-1",children:[p.jsx(wt,{htmlFor:"email",children:"Email"}),p.jsx(tn,{id:"email",type:"email",value:t,required:!0,onChange:h=>e(h.target.value)})]}),p.jsxs("div",{className:"space-y-1",children:[p.jsx(wt,{htmlFor:"password",children:"Password"}),p.jsx(tn,{id:"password",type:"password",value:n,required:!0,minLength:8,onChange:h=>r(h.target.value)})]}),p.jsx(Pt,{type:"submit",className:"w-full",disabled:s,children:s?"Please wait…":l==="in"?"Sign in":"Create account"})]}),p.jsx("button",{type:"button",className:"text-xs text-muted-foreground underline",onClick:()=>u(l==="in"?"up":"in"),children:l==="in"?"First time? Create the owner account":"Already have an account? Sign in"})]})})},wR=()=>{const[t,e]=C.useState(null),[n,r]=C.useState(!1),[s,o]=C.useState(null),[l,u]=C.useState(!1),[d,h]=C.useState(30);C.useEffect(()=>{document.title="Visit statistics — Data Systems Lab";const{data:g}=As.auth.onAuthStateChange((_,y)=>{e(y),r(!0)});return As.auth.getSession().then(({data:_})=>{e(_.session),r(!0)}),()=>g.subscription.unsubscribe()},[]),C.useEffect(()=>{if(!t)return;let g=!1;const _=new Date(Date.now()-d*864e5).toISOString();return As.from("page_visits").select("id,created_at,path,referrer,country,user_agent,bot_name,visit_class,reason,language,ip").gte("created_at",_).order("created_at",{ascending:!1}).limit(5e3).then(({data:y,error:P})=>{if(!g){if(P){u(!0);return}o(y??[])}}),()=>{g=!0}},[t,d]);const m=C.useMemo(()=>{const g=s??[],_={},y={},P={},x={};for(const S of g){_[S.visit_class]=(_[S.visit_class]??0)+1,S.bot_name&&(y[S.bot_name]=(y[S.bot_name]??0)+1);const w=S.created_at.slice(0,10);if(x[w]??(x[w]={human:0,bot:0,auto:0}),S.visit_class==="likely_human"){x[w].human++;const b=S.country??"Unknown";P[b]=(P[b]??0)+1}else S.visit_class==="known_bot"?x[w].bot++:x[w].auto++}const E=S=>Object.entries(S).sort((w,b)=>b[1]-w[1]);return{total:g.length,byClass:_,bots:E(y),countries:E(P),days:Object.entries(x).sort((S,w)=>S[0]<w[0]?1:-1)}},[s]);return n?t?p.jsx("div",{className:"min-h-screen bg-background px-4 py-10",children:p.jsxs("div",{className:"max-w-5xl mx-auto space-y-8",children:[p.jsxs("header",{className:"flex flex-wrap items-center justify-between gap-3",children:[p.jsxs("div",{children:[p.jsx("h1",{className:"text-2xl font-bold",children:"Visit statistics"}),p.jsxs("p",{className:"text-sm text-muted-foreground",children:["Who and what actually opened datasystems.nu — last ",d," days."]})]}),p.jsxs("div",{className:"flex items-center gap-2",children:[[7,30,90].map(g=>p.jsxs(Pt,{size:"sm",variant:g===d?"default":"outline",onClick:()=>h(g),children:[g,"d"]},g)),p.jsx(Pt,{size:"sm",variant:"ghost",onClick:()=>As.auth.signOut(),children:"Sign out"})]})]}),l&&p.jsx(We,{className:"p-6",children:p.jsx("p",{className:"text-sm",children:"This account is not the owner account, so it cannot see the statistics."})}),!l&&s&&p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"grid gap-4 sm:grid-cols-4",children:[["Total visits",m.total],["Likely human",m.byClass.likely_human??0],["Known bots",m.byClass.known_bot??0],["Likely automated",m.byClass.likely_automated??0]].map(([g,_])=>p.jsxs(We,{className:"p-4",children:[p.jsx("div",{className:"text-xs uppercase tracking-wide text-muted-foreground",children:g}),p.jsx("div",{className:"text-3xl font-bold",children:_})]},g))}),m.total===0&&p.jsx(We,{className:"p-6 text-sm text-muted-foreground",children:"No visits recorded yet. Recording starts once the updated site is published — it cannot look back at earlier traffic."}),p.jsxs("div",{className:"grid gap-6 md:grid-cols-2",children:[p.jsxs(We,{className:"p-5",children:[p.jsx("h2",{className:"font-semibold mb-3",children:"Per day"}),p.jsx("div",{className:"space-y-1 text-sm",children:m.days.map(([g,_])=>p.jsxs("div",{className:"flex justify-between gap-2",children:[p.jsx("span",{className:"text-muted-foreground",children:g}),p.jsxs("span",{children:[p.jsxs("span",{className:"text-emerald-600 dark:text-emerald-400",children:[_.human," human"]}
284)," · ",p.jsxs("span",{className:"text-amber-600 dark:text-amber-400",children:[_.bot," bot"]})," · ",p.jsxs("span",{className:"text-rose-600 dark:text-rose-400",children:[_.auto," auto"]})]})]},g))})]}),p.jsxs(We,{className:"p-5",children:[p.jsx("h2",{className:"font-semibold mb-3",children:"Top bots"}),p.jsxs("div",{className:"space-y-1 text-sm",children:[m.bots.length===0&&p.jsx("p",{className:"text-muted-foreground",children:"None yet."}),m.bots.map(([g,_])=>p.jsxs("div",{className:"flex justify-between",children:[p.jsx("span",{children:g}),p.jsx("span",{className:"text-muted-foreground",children:_})]},g))]})]}),p.jsxs(We,{className:"p-5 md:col-span-2",children:[p.jsx("h2",{className:"font-semibold mb-3",children:"Human visits by country"}),p.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-2 text-sm",children:[m.countries.length===0&&p.jsx("p",{className:"text-muted-foreground",children:"None yet."}),m.countries.map(([g,_])=>p.jsxs("div",{className:"flex justify-between border-b border-border/50 py-1",children:[p.jsx("span",{children:g}),p.jsx("span",{className:"text-muted-foreground",children:_})]},g))]})]})]}),p.jsxs(We,{className:"p-5",children:[p.jsx("h2",{className:"font-semibold mb-3",children:"Recent visits"}),p.jsx("div",{className:"overflow-x-auto",children:p.jsxs("table",{className:"w-full text-xs",children:[p.jsx("thead",{className:"text-muted-foreground text-left",children:p.jsxs("tr",{children:[p.jsx("th",{className:"py-1 pr-3",children:"Time"}),p.jsx("th",{className:"py-1 pr-3",children:"Verdict"}),p.jsx("th",{className:"py-1 pr-3",children:"Country"}),p.jsx("th",{className:"py-1 pr-3",children:"IP"}),p.jsx("th",{className:"py-1 pr-3",children:"Page"}),p.jsx("th",{className:"py-1 pr-3",children:"From"}),p.jsx("th",{className:"py-1",children:"Browser / agent"})]})}),p.jsx("tbody",{children:(s??[]).slice(0,200).map(g=>p.jsxs("tr",{className:"border-t border-border/50 align-top",children:[p.jsx("td",{className:"py-1 pr-3 whitespace-nowrap",children:new Date(g.created_at).toLocaleString("sv-SE")}),p.jsx("td",{className:"py-1 pr-3 whitespace-nowrap",children:p.jsx(Ia,{variant:"secondary",className:yR(g.visit_class),children:g.bot_name??vR[g.visit_class]??g.visit_class})}),p.jsx("td",{className:"py-1 pr-3",children:g.country??"—"}),p.jsx("td",{className:"py-1 pr-3 whitespace-nowrap font-mono",children:g.ip??"—"}),p.jsx("td",{className:"py-1 pr-3",children:g.path}),p.jsx("td",{className:"py-1 pr-3 max-w-[160px] truncate",children:g.referrer??"Direct"}),p.jsx("td",{className:"py-1 max-w-[280px] truncate",title:g.user_agent??"",children:g.user_agent??"—"})]},g.id))})]})})]})]})]})}):p.jsx(_R,{}):null},xR=()=>{const t=go();return C.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",t.pathname)},[t.pathname]),p.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background",children:p.jsxs("div",{className:"text-center",children:[p.jsx("h1",{className:"text-4xl font-bold mb-4",children:"404"}),p.jsx("p",{className:"text-xl text-muted-foreground mb-4",children:"Oops! Page not found"}),p.jsx("a",{href:"/",className:"text-blue-500 hover:text-blue-700 underline",children:"Return to Home"})]})})},bR="https://jzyuxmpyugfmvqxgtuhu.supabase.co/functions/v1/track-visit",wy="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Imp6eXV4bXB5dWdmbXZxeGd0dWh1Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NjIwMzIxNDcsImV4cCI6MjA3NzYwODE0N30.9a4QDwd3ZFGkCFcpw0IFezvEJsKrgAlfwGotIUeWfWg";function SR(){const t=go();C.useEffect(()=>{var n,r;if(t.pathname.startsWith("/visits"))return;const e={path:t.pathname||"/",referrer:document.referrer||null,language:navigator.language||null,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone||null,screenW:((n=window.screen)==null?void 0:n.width)??null,screenH:((r=window.screen)==null?void 0:r.height)??null};fetch(bR,{method:"POST",headers:{"Content-Type":"application/json",apikey:wy,Authorization:`Bearer ${wy}`},body:JSON.stringify(e),keepalive:!0}).catch(()=>{})},[t.pathname])}const kR=new kO,ER=()=>(SR(),p.jsxs(gN,{children:[p.jsx(vs,{path:"/",element:p.jsx(p2,{})}),p.jsx(vs,{path:"/profile",element:p.jsx(O2,{})}),p.jsx(vs,{path:"/apply",element:p.jsx(U2,{})}),p.jsx(vs,{path:"/visits",element:p.jsx(wR,{})}),p.jsx(vs,{path:"*",element:p.jsx(xR,{})})]})),PR=()=>p.jsx(PO,{client:kR,children:p.jsxs(eO,{children:[p.jsx(zC,{}),p.jsx(gT,{}),p.jsx(SN,{children:p.jsx(ER,{})})]})});V0(document.getElementById("root")).render(p.jsx(PR,{}));

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.