PageSourceSearch

https://tripeakstourism.com/assets/index-CozvP46n.js

js tripeakstourism.com collected 2026-10-09 05:11:17 UTC 1,029,195 bytes, 292 lines download raw bytes

vendor: 5,071 bytes, lines 1-10
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/CountyPage-DEV26u1f.js","assets/arrow-left-DSvzBBLV.js","assets/landmark-Cp4vwycs.js","assets/utensils-B6BoPLLv.js","assets/clock-hUe3iKhM.js","assets/VibePage-Bgx349Ne.js","assets/vibes-DyDq8qVI.js","assets/vibe-trails-Btruf5m_.js","assets/vibe-eats-C5wMEP66.js","assets/StateParkPage-2Koe_rKO.js","assets/stateParks-Dv4IVbSi.js","assets/mountain-C51ZwIO8.js","assets/GuidebookPage-BbmLKMld.js","assets/mail-87uUCSE_.js","assets/WaterfallsPage-D1QMhn4h.js","assets/ItinerariesPage-Ci2E84nV.js","assets/OffTheEatenPathPage-Bjs31DmE.js","assets/NotFound-DYGGPX0k.js"])))=>i.map(i=>d[i]);
2var $A=Object.defineProperty;var V0=t=>{throw TypeError(t)};var UA=(t,e,n)=>e in t?$A(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Hr=(t,e,n)=>UA(t,typeof e!="symbol"?e+"":e,n),Nf=(t,e,n)=>e.has(t)||V0("Cannot "+n);var F=(t,e,n)=>(Nf(t,e,"read from private field"),n?n.call(t):e.get(t)),Me=(t,e,n)=>e.has(t)?V0("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),we=(t,e,n,r)=>(Nf(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),Et=(t,e,n)=>(Nf(t,e,"access private method"),n);var pc=(t,e,n,r)=>({set _(i){we(t,e,i,n)},get _(){return F(t,e,r)}});function VA(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in t)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(t,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}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 i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();var HA=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ea(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var mk={exports:{}},wh={},gk={exports:{}},Ee={};/**
3 * @license React
4 * react.production.min.js
5 *
6 * Copyright (c) Facebook, Inc. and its affiliates.
7 *
8 * This source code is licensed under the MIT license found in the
9 * LICENSE file in the root directory of this source tree.
10 */var Ou=Symbol.for("react.element"),WA=Symbol.for("react.portal"),qA=Symbol.for("react.fragment"),GA=Symbol.for("react.strict_mode"),ZA=Symbol.for("react.profiler"),KA=Symbol.for("react.provider"),JA=Symbol.for("react.context"),YA=Symbol.for("react.forward_ref"),XA=Symbol.for("react.suspense"),QA=Symbol.for("react.memo"),eR=Symbol.for("react.lazy"),H0=Symbol.iterator;function tR(t){return t===null||typeof t!="object"?null:(t=H0&&t[H0]||t["@@iterator"],typeof t=="function"?t:null)}var yk={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},vk=Object.assign,wk={};function Aa(t,e,n){this.props=t,this.context=e,this.refs=wk,this.updater=n||yk}Aa.prototype.isReactComponent={};Aa.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")};Aa.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function _k(){}_k.prototype=Aa.prototype;function Jg(t,e,n){this.props=t,this.context=e,this.refs=wk,this.updater=n||yk}var Yg=Jg.prototype=new _k;Yg.constructor=Jg;vk(Yg,Aa.prototype);Yg.isPureReactComponent=!0;var W0=Array.isArray,bk=Object.prototype.hasOwnProperty,Xg={current:null},xk={key:!0,ref:!0,__self:!0,__source:!0};function kk(t,e,n){var r,i={},s=null,a=null;if(e!=null)for(r in e.ref!==void 0&&(a=e.ref),e.key!==void 0&&(s=""+e.key),e)bk.call(e,r)&&!xk.hasOwnProperty(r)&&(i[r]=e[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var c=Array(l),d=0;d<l;d++)c[d]=arguments[d+2];i.children=c}if(t&&t.defaultProps)for(r in l=t.defaultProps,l)i[r]===void 0&&(i[r]=l[r]);return{$$typeof:Ou,type:t,key:s,ref:a,props:i,_owner:Xg.current}}function nR(t,e){return{$$typeof:Ou,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function Qg(t){return typeof t=="object"&&t!==null&&t.$$typeof===Ou}function rR(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var q0=/\/+/g;function jf(t,e){return typeof t=="object"&&t!==null&&t.key!=null?rR(""+t.key):e.toString(36)}
vendor: 4,786 bytes, lines 10-18
10function Jc(t,e,n,r,i){var s=typeof t;(s==="undefined"||s==="boolean")&&(t=null);var a=!1;if(t===null)a=!0;else switch(s){case"string":case"number":a=!0;break;case"object":switch(t.$$typeof){case Ou:case WA:a=!0}}if(a)return a=t,i=i(a),t=r===""?"."+jf(a,0):r,W0(i)?(n="",t!=null&&(n=t.replace(q0,"$&/")+"/"),Jc(i,e,n,"",function(d){return d})):i!=null&&(Qg(i)&&(i=nR(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(q0,"$&/")+"/")+t)),e.push(i)),1;if(a=0,r=r===""?".":r+":",W0(t))for(var l=0;l<t.length;l++){s=t[l];var c=r+jf(s,l);a+=Jc(s,e,n,c,i)}else if(c=tR(t),typeof c=="function")for(t=c.call(t),l=0;!(s=t.next()).done;)s=s.value,c=r+jf(s,l++),a+=Jc(s,e,n,c,i);else if(s==="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 a}function mc(t,e,n){if(t==null)return t;var r=[],i=0;return Jc(t,r,"","",function(s){return e.call(n,s,i++)}),r}function iR(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 Wt={current:null},Yc={transition:null},sR={ReactCurrentDispatcher:Wt,ReactCurrentBatchConfig:Yc,ReactCurrentOwner:Xg};function Sk(){throw Error("act(...) is not supported in production builds of React.")}Ee.Children={map:mc,forEach:function(t,e,n){mc(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return mc(t,function(){e++}),e},toArray:function(t){return mc(t,function(e){return e})||[]},only:function(t){if(!Qg(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};Ee.Component=Aa;Ee.Fragment=qA;Ee.Profiler=ZA;Ee.PureComponent=Jg;Ee.StrictMode=GA;Ee.Suspense=XA;Ee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sR;Ee.act=Sk;Ee.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=vk({},t.props),i=t.key,s=t.ref,a=t._owner;if(e!=null){if(e.ref!==void 0&&(s=e.ref,a=Xg.current),e.key!==void 0&&(i=""+e.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(c in e)bk.call(e,c)&&!xk.hasOwnProperty(c)&&(r[c]=e[c]===void 0&&l!==void 0?l[c]:e[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){l=Array(c);for(var d=0;d<c;d++)l[d]=arguments[d+2];r.children=l}return{$$typeof:Ou,type:t.type,key:i,ref:s,props:r,_owner:a}};Ee.createContext=function(t){return t={$$typeof:JA,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:KA,_context:t},t.Consumer=t};Ee.createElement=kk;Ee.createFactory=function(t){var e=kk.bind(null,t);return e.type=t,e};Ee.createRef=function(){return{current:null}};Ee.forwardRef=function(t){return{$$typeof:YA,render:t}};Ee.isValidElement=Qg;Ee.lazy=function(t){return{$$typeof:eR,_payload:{_status:-1,_result:t},_init:iR}};Ee.memo=function(t,e){return{$$typeof:QA,type:t,compare:e===void 0?null:e}};Ee.startTransition=function(t){var e=Yc.transition;Yc.transition={};try{t()}finally{Yc.transition=e}};Ee.unstable_act=Sk;Ee.useCallback=function(t,e){return Wt.current.useCallback(t,e)};Ee.useContext=function(t){return Wt.current.useContext(t)};Ee.useDebugValue=function(){};Ee.useDeferredValue=function(t){return Wt.current.useDeferredValue(t)};Ee.useEffect=function(t,e){return Wt.current.useEffect(t,e)};Ee.useId=function(){return Wt.current.useId()};Ee.useImperativeHandle=function(t,e,n){return Wt.current.useImperativeHandle(t,e,n)};Ee.useInsertionEffect=function(t,e){return Wt.current.useInsertionEffect(t,e)};Ee.useLayoutEffect=function(t,e){return Wt.current.useLayoutEffect(t,e)};Ee.useMemo=function(t,e){return Wt.current.useMemo(t,e)};Ee.useReducer=function(t,e,n){return Wt.current.useReducer(t,e,n)};Ee.useRef=function(t){return Wt.current.useRef(t)};Ee.useState=function(t){return Wt.current.useState(t)};Ee.useSyncExternalStore=function(t,e,n){return Wt.current.useSyncExternalStore(t,e,n)};Ee.useTransition=function(){return Wt.current.useTransition()};Ee.version="18.3.1";gk.exports=Ee;var C=gk.exports;const U=Ea(C),Tk=VA({__proto__:null,default:U},[C]);/**
11 * @license React
12 * react-jsx-runtime.production.min.js
13 *
14 * Copyright (c) Facebook, Inc. and its affiliates.
15 *
16 * This source code is licensed under the MIT license found in the
17 * LICENSE file in the root directory of this source tree.
18 */var oR=C,aR=Symbol.for("react.element"),lR=Symbol.for("react.fragment"),uR=Object.prototype.hasOwnProperty,cR=oR.__SECRET_INT
vendor: 8,874 bytes, lines 18-34
18ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,dR={key:!0,ref:!0,__self:!0,__source:!0};function Pk(t,e,n){var r,i={},s=null,a=null;n!==void 0&&(s=""+n),e.key!==void 0&&(s=""+e.key),e.ref!==void 0&&(a=e.ref);for(r in e)uR.call(e,r)&&!dR.hasOwnProperty(r)&&(i[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps,e)i[r]===void 0&&(i[r]=e[r]);return{$$typeof:aR,type:t,key:s,ref:a,props:i,_owner:cR.current}}wh.Fragment=lR;wh.jsx=Pk;wh.jsxs=Pk;mk.exports=wh;var v=mk.exports,Ck={exports:{}},pn={},Ek={exports:{}},Ak={};/**
19 * @license React
20 * scheduler.production.min.js
21 *
22 * Copyright (c) Facebook, Inc. and its affiliates.
23 *
24 * This source code is licensed under the MIT license found in the
25 * LICENSE file in the root directory of this source tree.
26 */(function(t){function e(N,$){var z=N.length;N.push($);e:for(;0<z;){var Q=z-1>>>1,ee=N[Q];if(0<i(ee,$))N[Q]=$,N[z]=ee,z=Q;else break e}}function n(N){return N.length===0?null:N[0]}function r(N){if(N.length===0)return null;var $=N[0],z=N.pop();if(z!==$){N[0]=z;e:for(var Q=0,ee=N.length,ce=ee>>>1;Q<ce;){var le=2*(Q+1)-1,fe=N[le],de=le+1,ke=N[de];if(0>i(fe,z))de<ee&&0>i(ke,fe)?(N[Q]=ke,N[de]=z,Q=de):(N[Q]=fe,N[le]=z,Q=le);else if(de<ee&&0>i(ke,z))N[Q]=ke,N[de]=z,Q=de;else break e}}return $}function i(N,$){var z=N.sortIndex-$.sortIndex;return z!==0?z:N.id-$.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var a=Date,l=a.now();t.unstable_now=function(){return a.now()-l}}var c=[],d=[],f=1,p=null,g=3,y=!1,b=!1,_=!1,T=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function k(N){for(var $=n(d);$!==null;){if($.callback===null)r(d);else if($.startTime<=N)r(d),$.sortIndex=$.expirationTime,e(c,$);else break;$=n(d)}}function E(N){if(_=!1,k(N),!b)if(n(c)!==null)b=!0,oe(A);else{var $=n(d);$!==null&&te(E,$.startTime-N)}}function A(N,$){b=!1,_&&(_=!1,x(I),I=-1),y=!0;var z=g;try{for(k($),p=n(c);p!==null&&(!(p.expirationTime>$)||N&&!J());){var Q=p.callback;if(typeof Q=="function"){p.callback=null,g=p.priorityLevel;var ee=Q(p.expirationTime<=$);$=t.unstable_now(),typeof ee=="function"?p.callback=ee:p===n(c)&&r(c),k($)}else r(c);p=n(c)}if(p!==null)var ce=!0;else{var le=n(d);le!==null&&te(E,le.startTime-$),ce=!1}return ce}finally{p=null,g=z,y=!1}}var O=!1,M=null,I=-1,B=5,H=-1;function J(){return!(t.unstable_now()-H<B)}function Z(){if(M!==null){var N=t.unstable_now();H=N;var $=!0;try{$=M(!0,N)}finally{$?ge():(O=!1,M=null)}}else O=!1}var ge;if(typeof S=="function")ge=function(){S(Z)};else if(typeof MessageChannel<"u"){var G=new MessageChannel,be=G.port2;G.port1.onmessage=Z,ge=function(){be.postMessage(null)}}else ge=function(){T(Z,0)};function oe(N){M=N,O||(O=!0,ge())}function te(N,$){I=T(function(){N(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(N){N.callback=null},t.unstable_continueExecution=function(){b||y||(b=!0,oe(A))},t.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):B=0<N?Math.floor(1e3/N):5},t.unstable_getCurrentPriorityLevel=function(){return g},t.unstable_getFirstCallbackNode=function(){return n(c)},t.unstable_next=function(N){switch(g){case 1:case 2:case 3:var $=3;break;default:$=g}var z=g;g=$;try{return N()}finally{g=z}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(N,$){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var z=g;g=N;try{return $()}finally{g=z}},t.unstable_scheduleCallback=function(N,$,z){var Q=t.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?Q+z:Q):z=Q,N){case 1:var ee=-1;break;case 2:ee=250;break;case 5:ee=1073741823;break;case 4:ee=1e4;break;default:ee=5e3}return ee=z+ee,N={id:f++,callback:$,priorityLevel:N,startTime:z,expirationTime:ee,sortIndex:-1},z>Q?(N.sortIndex=z,e(d,N),n(c)===null&&N===n(d)&&(_?(x(I),I=-1):_=!0,te(E,z-Q))):(N.sortIndex=ee,e(c,N),b||y||(b=!0,oe(A))),N},t.unstable_shouldYield=J,t.unstable_wrapCallback=function(N){var $=g;return function(){var z=g;g=$;try{return N.apply(this,arguments)}finally{g=z}}}})(Ak);Ek.exports=Ak;var hR=Ek.exports;/**
27 * @license React
28 * react-dom.production.min.js
29 *
30 * Copyright (c) Facebook, Inc. and its affiliates.
31 *
32 * This source code is licensed under the MIT license found in the
33 * LICENSE file in the root directory of this source tree.
34 */var fR=C,hn=hR;function W(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 Rk=new Set,ql={};function eo(t,e){fa(t,e),fa(t+"Capture",e)}function fa(t,e){for(ql[t]=e,t=0;t<e.length;t++)Rk.add(e[t])}var ri=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Zp=Object.prototype.hasOwnProperty,pR=/^[: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]*$/,G0={},Z0={};function mR(t){return Zp.call(Z0,t)?!0:Zp.call(G0,t)?!1:pR.test(t)?Z0[t]=!0:(G0[t]=!0,!1)}function gR(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 yR(t,e,n,r){if(e===null||typeof e>"u"||gR(t,e,n,r))return!0;if(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 qt(t,e,n,r,i,s,a){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=s,this.removeEmptyString=a}var Pt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){Pt[t]=new qt(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];Pt[e]=new qt(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){Pt[t]=new qt(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Pt[t]=new qt(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){Pt[t]=new qt(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){Pt[t]=new qt(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){Pt[t]=new qt(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){Pt[t]=new qt(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){Pt[t]=new qt(t,5,!1,t.toLowerCase(),null,!1,!1)});var ey=/[\-:]([a-z])/g;function ty(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
34-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(ey,ty);Pt[e]=new qt(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(ey,ty);Pt[e]=new qt(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(ey,ty);Pt[e]=new qt(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){Pt[t]=new qt(t,1,!1,t.toLowerCase(),null,!1,!1)});Pt.xlinkHref=new qt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){Pt[t]=new qt(t,1,!1,t.toLowerCase(),null,!0,!0)});function ny(t,e,n,r){var i=Pt.hasOwnProperty(e)?Pt[e]:null;(i!==null?i.type!==0:r||!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(yR(e,n,i,r)&&(n=null),r||i===null?mR(e)&&(n===null?t.removeAttribute(e):t.setAttribute(e,""+n)):i.mustUseProperty?t[i.propertyName]=n===null?i.type===3?!1:"":n:(e=i.attributeName,r=i.attributeNamespace,n===null?t.removeAttribute(e):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}var di=fR.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,gc=Symbol.for("react.element"),Ao=Symbol.for("react.portal"),Ro=Symbol.for("react.fragment"),ry=Symbol.for("react.strict_mode"),Kp=Symbol.for("react.profiler"),Lk=Symbol.for("react.provider"),Ok=Symbol.for("react.context"),iy=Symbol.for("react.forward_ref"),Jp=Symbol.for("react.suspense"),Yp=Symbol.for("react.suspense_list"),sy=Symbol.for("react.memo"),Si=Symbol.for("react.lazy"),Mk=Symbol.for("react.offscreen"),K0=Symbol.iterator;function sl(t){return t===null||typeof t!="object"?null:(t=K0&&t[K0]||t["@@iterator"],typeof t=="function"?t:null)}var et=Object.assign,If;function _l(t){if(If===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);If=e&&e[1]||""}return`
35`+If+t}var Df=!1;function Bf(t,e){if(!t||Df)return"";Df=!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(d){var r=d}Reflect.construct(t,[],e)}else{try{e.call()}catch(d){r=d}t.call(e.prototype)}else{try{throw Error()}catch(d){r=d}t()}}catch(d){if(d&&r&&typeof d.stack=="string"){for(var i=d.stack.split(`
36`),s=r.stack.split(`
37`),a=i.length-1,l=s.length-1;1<=a&&0<=l&&i[a]!==s[l];)l--;for(;1<=a&&0<=l;a--,l--)if(i[a]!==s[l]){if(a!==1||l!==1)do if(a--,l--,0>l||i[a]!==s[l]){var c=`
38`+i[a].replace(" at new "," at ");return t.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",t.displayName)),c}while(1<=a&&0<=l);break}}}finally{Df=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?_l(t):""}function vR(t){switch(t.tag){case 5:return _l(t.type);case 16:return _l("Lazy");case 13:return _l("Suspense");case 19:return _l("SuspenseList");case 0:case 2:case 15:return t=Bf(t.type,!1),t;case 11:return t=Bf(t.type.render,!1),t;case 1:return t=Bf(t.type,!0),t;default:return""}}function Xp(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 Ro:return"Fragment";case Ao:return"Portal";case Kp:return"Profiler";case ry:return"StrictMode";case Jp:return"Suspense";case Yp:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case Ok:return(t.displayName||"Context")+".Consumer";case Lk:return(t._context.displayName||"Context")+".Provider";case iy:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case sy:return e=t.displayName||null,e!==null?e:Xp(t.type)||"Memo";case Si:e=t._payload,t=t._init;try{return Xp(t(e))}catch{}}return null}function wR(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 Xp(e);case 8:return e===ry?"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 Yi(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Nk(t){var e=t.type;
vendor: 6,045 bytes, line 38
38return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function _R(t){var e=Nk(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 i=n.get,s=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,s.call(this,a)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function yc(t){t._valueTracker||(t._valueTracker=_R(t))}function jk(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=Nk(t)?t.checked?"true":"false":t.value),t=r,t!==n?(e.setValue(t),!0):!1}function bd(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 Qp(t,e){var n=e.checked;return et({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function J0(t,e){var n=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;n=Yi(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 Ik(t,e){e=e.checked,e!=null&&ny(t,"checked",e,!1)}function em(t,e){Ik(t,e);var n=Yi(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")?tm(t,e.type,n):e.hasOwnProperty("defaultValue")&&tm(t,e.type,Yi(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function Y0(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 tm(t,e,n){(e!=="number"||bd(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var bl=Array.isArray;function Go(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i<n.length;i++)e["$"+n[i]]=!0;for(n=0;n<t.length;n++)i=e.hasOwnProperty("$"+t[n].value),t[n].selected!==i&&(t[n].selected=i),i&&r&&(t[n].defaultSelected=!0)}else{for(n=""+Yi(n),e=null,i=0;i<t.length;i++){if(t[i].value===n){t[i].selected=!0,r&&(t[i].defaultSelected=!0);return}e!==null||t[i].disabled||(e=t[i])}e!==null&&(e.selected=!0)}}function nm(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(W(91));return et({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function X0(t,e){var n=e.value;if(n==null){if(n=e.children,e=e.defaultValue,n!=null){if(e!=null)throw Error(W(92));if(bl(n)){if(1<n.length)throw Error(W(93));n=n[0]}e=n}e==null&&(e=""),n=e}t._wrapperState={initialValue:Yi(n)}}function Dk(t,e){var n=Yi(e.value),r=Yi(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 Q0(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}function Bk(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 rm(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?Bk(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var vc,zk=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,n,r,i){MSApp.execUnsafeLocalFunction(function(){return t(e,n,r,i)})}:t}(function(t,e){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=e;else{for(vc=vc||document.createElement("div"),vc.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=vc.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Gl(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Al={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},bR=["Webkit","ms","Moz","O"];Object.keys(Al).forEach(function(t){bR.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Al[e]=Al[t]})});function Fk(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||Al.hasOwnProperty(t)&&Al[t]?(""+e).trim():e+"px"}function $k(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Fk(n,e[n],r);n==="float"&&(n="cssFloat"),r?t.setProperty(n,i):t[n]=i}}var xR=et({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 im(t,e){if(e){if(xR[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(W(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(W(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(W(61))}if(e.style!=null&&typeof e.style!="object")throw Error(W(62))}}function sm(t,e){if(t.indexOf("-")===-1)return typeof e.is=="str
38ing";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 om=null;function oy(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var am=null,Zo=null,Ko=null;function ew(t){if(t=ju(t)){if(typeof am!="function")throw Error(W(280));var e=t.stateNode;e&&(e=Sh(e),am(t.stateNode,t.type,e))}}function Uk(t){Zo?Ko?Ko.push(t):Ko=[t]:Zo=t}function Vk(){if(Zo){var t=Zo,e=Ko;if(Ko=Zo=null,ew(t),e)for(t=0;t<e.length;t++)ew(e[t])}}function Hk(t,e){return t(e)}function Wk(){}var zf=!1;function qk(t,e,n){if(zf)return t(e,n);zf=!0;try{return Hk(t,e,n)}finally{zf=!1,(Zo!==null||Ko!==null)&&(Wk(),Vk())}}function Zl(t,e){var n=t.stateNode;if(n===null)return null;var r=Sh(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(W(231,e,typeof n));return n}var lm=!1;if(ri)try{var ol={};Object.defineProperty(ol,"passive",{get:function(){lm=!0}}),window.addEventListener("test",ol,ol),window.removeEventListener("test",ol,ol)}catch{lm=!1}function kR(t,e,n,r,i,s,a,l,c){var d=Array.prototype.slice.call(arguments,3);try{e.apply(n,d)}catch(f){this.onError(f)}}var Rl=!1,xd=null,kd=!1,um=null,SR={onError:function(t){Rl=!0,xd=t}};function TR(t,e,n,r,i,s,a,l,c){Rl=!1,xd=null,kR.apply(SR,arguments)}function PR(t,e,n,r,i,s,a,l,c){if(TR.apply(this,arguments),Rl){if(Rl){var d=xd;Rl=!1,xd=null}else throw Error(W(198));kd||(kd=!0,um=d)}}function to(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 Gk(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 tw(t){if(to(t)!==t)throw Error(W(188))}function CR(t){var e=t.alternate;if(!e){if(e=to(t),e===null)throw Error(W(188));return e!==t?null:t}for(var n=t,r=e;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return tw(i),t;if(s===r)return tw(i),e;s=s.sibling}throw Error(W(188))}if(n.return!==r.return)n=i,r=s;else{for(var a=!1,l=i.child;l;){if(l===n){a=!0,n=i,r=s;break}if(l===r){a=!0,r=i,n=s;break}l=l.sibling}if(!a){for(l=s.child;l;){if(l===n){a=!0,n=s,r=i;break}if(l===r){a=!0,r=s,n=i;break}l=l.sibling}if(!a)throw Error(W(189))}}if(n.alternate!==r)throw Error(W(190))}if(n.tag!==3)throw Error(W(188));return n.stateNode.current===n?t:e}function Zk(t){return t=CR(t),t!==null?Kk(t):null}function Kk(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var e=Kk(t);if(e!==null)return e;t=t.sibling}return null}var Jk=hn.unstable_scheduleCallback,nw=hn.unstable_cancelCallback,ER=hn.unstable_shouldYield,AR=hn.unstable_requestPaint,at=hn.unstable_now,RR=hn.unstable_getCurrentPriorityLevel,ay=hn.unstable_ImmediatePriority,Yk=hn.unstable_UserBlockingPriority,Sd=hn.unstable_NormalPriority,LR=hn.unstable_LowPriority,Xk=hn.unstable_IdlePriority,_h=null,Cr=null;function OR(t){if(Cr&&typeof Cr.onCommitFiberRoot=="function")try{Cr.onCommitFiberRoot(_h,t,void 0,(t.current.flags&128)===128)}catch{}}var Qn=Math.clz32?Math.clz32:jR,MR=Math.log,NR=Math.LN2;function jR(t){return t>>>=0,t===0?32:31-(MR(t)/NR|0)|0}var wc=64,_c=4194304;function xl(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 Td(t,e){var n=t.pendingLanes;if(n===0)return 0;var r=0,i=t.suspendedLanes,s=t.pingedLanes,a=n&268435455;if(a!==0){var l=a&~i;l!==0?r=xl(l):(s&=a,s!==0&&(r=xl(s)))}else a=n&~i,a!==0?r=xl(a):s!==0&&(r=xl(s));if(r===0)return 0;if(e!==0&&e!==r&&!(e&i)&&(i=r&-r,s=e&-e,i>=s||i===16&&(s&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-Qn(e),i=1<<n,r|=t[n],e&=~i;return r}function IR(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 DR(t,e){for(var n=t.suspendedLanes,r=t.pingedLanes,i=t.expirationTimes,s=t.pendingLanes;0<s;){var a=31-Qn(s),l=1<<a,c=i[a];c===-1?(!(l&n)||l&r)&&(i[a]=IR(l,e)):c<=e&&(t.expiredLanes|=l),s&=~l}}function cm(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function Qk(){var t=wc;return wc<<=1,!(wc&4194240)&&(wc=64),t}function Ff(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Mu(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Qn(e),t[e]=n}function BR(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 i=31-Qn(n),s=1<<i;e[i]=0,r[i]=-1,t[i]=-1,n&=~s}}function ly(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var r=31-Qn(n),i=1<<r;i&e|t[r]&e&&(t[r]|=e),n&=~i}}var Ie=0;function e1(t){return t&=-t,1<t?4<t?t&268435455?16:536870912:4:1}var t1,uy,n1,r1,i1,dm=!1,bc=[],$i=null,Ui=null,Vi=null,Kl=new Map,Jl=new Map,Ci=[],zR="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 rw(t,e){switch(t){case"focusin":case"focusout":$i=null;break;case"dragenter":case"dragleave":Ui=null;break;case"mouseover":case"mouseout":Vi=null;break;case"pointerover":case"pointerout":Kl.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Jl.delete(e.pointerId)}}function al(t,e,n,r,i,s){return t===null||t.nativeEvent!==s?(t={blockedOn:e,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},e!==null&&(e=ju(e),e!==null&&uy(e)),t):(t.eventSystemFlags|=r,e=t.targetContainers,i!==null&&e.indexOf(i)===-1&&e.push(i),t)}function FR(t,e,n,r,i){switch(e){case"focusin":return $i=al($i,t,e,n,r,i),!0;case"dragenter":return Ui=al(Ui,t,e,n,r,i),!0;case"mouseover":return Vi=al(Vi,t,e,n,r,i),!0;case"pointerover":var s=i.pointerId;return Kl.set(s,al(Kl.get(s)||null,t,e,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,Jl.set(s,al(Jl.get(s)||null,t,e,n,r,i)),!0}return!1}function s1(t){var e=Ls(t.target);if(e!==null){var n=to(e);if(n!==null){if(e=n.tag,e===13){if(e=Gk(n),e!==null){t.blockedOn=e,i1(t.priority,function(){n1(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 Xc(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=hm(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n===null){n=t.nativeEvent;var r=new n.constructor(n.type,n);om=r,n.target.dispatchEvent(r),om=null}else return e=ju(n),e!==null&&uy(e),t.blockedOn=n,!1;e.shift()}return!0}function iw(t,e,n){Xc(t)&&n.delete(e)}function $R(){dm=!1,$i!==null&&Xc($i)&&($i=null),Ui!==null&&Xc(Ui)&&(Ui=null),Vi!==null&&Xc(Vi)&&(Vi=null),Kl.forEach(iw),Jl.forEach(iw)}function ll(t,e){t.blockedOn===e&&(t.blockedOn=null,dm||(dm=!0,hn.unstable_scheduleCallback(hn.unstable_NormalPriority,$R)))}function Yl(t){function e(i){return ll(i,t)}if(0<bc.length){ll(bc[0],t);for(var n=1;n<bc.length;n++){var r=bc[n];r.blockedOn===t&&(r.blockedOn=null)}}for($i!==null&&ll($i,t),Ui!==null&&ll(Ui,t),Vi!==null&&ll(Vi,t),Kl.forEach(e),Jl.forEach(e),n=0;n<Ci.length;n++)r=Ci[n],r.blockedOn===t&&(r.blockedOn=null);for(;0<Ci.length&&(n=Ci[0],n.blockedOn===null);)s1(n),n.blockedOn===null&&Ci.shift()}var Jo=di.ReactCurrentBatchConfig,Pd=!0;function UR(t,e,n,r){var i=Ie,s=Jo.transition;Jo.transition=null;try{Ie=1,cy(t,e,n,r)}finally{Ie=i,Jo.transition=s}}function VR(t,e,n,r){var i=Ie,s=Jo.transition;Jo.transition=null;try{Ie=4,cy(t,e,n,r)}finally{Ie=i,Jo.transition=s}}function cy(t,e,n,r){if(Pd){var i=hm(t,e,n,r);if(i===null)Jf(t,e,r,Cd,n),rw(t,r);else if(FR(i,t,e,n,r))r.stopPropagation();else if(rw(t,r),e&4&&-1<zR.indexOf(t)){for(;i!==null;){var s=ju(i);if(s!==null&&t1(s),s=hm(t,e,n,r),s===null&&Jf(t,e,r,Cd,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else Jf(t,e,r,null,n)}}var Cd=null;function hm(t,e,n,r){if(Cd=null,t=oy(r),t=Ls(t),t!==null)if(e=to(t),e===null)t=null;else if(n=e.tag,n===13){if(t=Gk(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 Cd=t,null}
vendor: 10,401 bytes, line 38
38function o1(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(RR()){case ay:return 1;case Yk:return 4;case Sd:case LR:return 16;case Xk:return 536870912;default:return 16}default:return 16}}var Ii=null,dy=null,Qc=null;function a1(){if(Qc)return Qc;var t,e=dy,n=e.length,r,i="value"in Ii?Ii.value:Ii.textContent,s=i.length;for(t=0;t<n&&e[t]===i[t];t++);var a=n-t;for(r=1;r<=a&&e[n-r]===i[s-r];r++);return Qc=i.slice(t,1<r?1-r:void 0)}function ed(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 xc(){return!0}function sw(){return!1}function mn(t){function e(n,r,i,s,a){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=s,this.target=a,this.currentTarget=null;for(var l in t)t.hasOwnProperty(l)&&(n=t[l],this[l]=n?n(s):s[l]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?xc:sw,this.isPropagationStopped=sw,this}return et(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=xc)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=xc)},persist:function(){},isPersistent:xc}),e}var Ra={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hy=mn(Ra),Nu=et({},Ra,{view:0,detail:0}),HR=mn(Nu),$f,Uf,ul,bh=et({},Nu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:fy,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!==ul&&(ul&&t.type==="mousemove"?($f=t.screenX-ul.screenX,Uf=t.screenY-ul.screenY):Uf=$f=0,ul=t),$f)},movementY:function(t){return"movementY"in t?t.movementY:Uf}}),ow=mn(bh),WR=et({},bh,{dataTransfer:0}),qR=mn(WR),GR=et({},Nu,{relatedTarget:0}),Vf=mn(GR),ZR=et({},Ra,{animationName:0,elapsedTime:0,pseudoElement:0}),KR=mn(ZR),JR=et({},Ra,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),YR=mn(JR),XR=et({},Ra,{data:0}),aw=mn(XR),QR={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},e2={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"},t2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function n2(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=t2[t])?!!e[t]:!1}function fy(){return n2}var r2=et({},Nu,{key:function(t){if(t.key){var e=QR[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=ed(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?e2[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:fy,charCode:function(t){return t.type==="keypress"?ed(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?ed(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),i2=mn(r2),s2=et({},bh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),lw=mn(s2),o2=et({},Nu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:fy}),a2=mn(o2),l2=et({},Ra,{propertyName:0,elapsedTime:0,pseudoElement:0}),u2=mn(l2),c2=et({},bh,{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}),d2=mn(c2),h2=[9,13,27,32],py=ri&&"CompositionEvent"in window,Ll=null;ri&&"documentMode"in document&&(Ll=document.documentMode);var f2=ri&&"TextEvent"in window&&!Ll,l1=ri&&(!py||Ll&&8<Ll&&11>=Ll),uw=" ",cw=!1;function u1(t,e){switch(t){case"keyup":return h2.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function c1(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Lo=!1;function p2(t,e){switch(t){case"compositionend":return c1(e);case"keypress":return e.which!==32?null:(cw=!0,uw);case"textInput":return t=e.data,t===uw&&cw?null:t;default:return null}}function m2(t,e){if(Lo)return t==="compositionend"||!py&&u1(t,e)?(t=a1(),Qc=dy=Ii=null,Lo=!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 l1&&e.locale!=="ko"?null:e.data;default:return null}}var g2={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 dw(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!g2[t.type]:e==="textarea"}function d1(t,e,n,r){Uk(r),e=Ed(e,"onChange"),0<e.length&&(n=new hy("onChange","change",null,n,r),t.push({event:n,listeners:e}))}var Ol=null,Xl=null;function y2(t){x1(t,0)}function xh(t){var e=No(t);if(jk(e))return t}function v2(t,e){if(t==="change")return e}var h1=!1;if(ri){var Hf;if(ri){var Wf="oninput"in document;if(!Wf){var hw=document.createElement("div");hw.setAttribute("oninput","return;"),Wf=typeof hw.oninput=="function"}Hf=Wf}else Hf=!1;h1=Hf&&(!document.documentMode||9<document.documentMode)}function fw(){Ol&&(Ol.detachEvent("onpropertychange",f1),Xl=Ol=null)}function f1(t){if(t.propertyName==="value"&&xh(Xl)){var e=[];d1(e,Xl,t,oy(t)),qk(y2,e)}}function w2(t,e,n){t==="focusin"?(fw(),Ol=e,Xl=n,Ol.attachEvent("onpropertychange",f1)):t==="focusout"&&fw()}function _2(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return xh(Xl)}function b2(t,e){if(t==="click")return xh(e)}function x2(t,e){if(t==="input"||t==="change")return xh(e)}function k2(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var tr=typeof Object.is=="function"?Object.is:k2;function Ql(t,e){if(tr(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 i=n[r];if(!Zp.call(e,i)||!tr(t[i],e[i]))return!1}return!0}function pw(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function mw(t,e){var n=pw(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=pw(n)}}function p1(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?p1(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function m1(){for(var t=window,e=bd();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=bd(t.document)}return e}function my(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 S2(t){var e=m1(),n=t.focusedElem,r=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&p1(n.ownerDocument.documentElement,n)){if(r!==null&&my(n)){if(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 i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!t.extend&&s>r&&(i=r,r=s,s=i),i=mw(n,s);var a=mw(n,r);i&&a&&(t.rangeCount!==1||t.anchorNode!==i.node||t.anchorOffset!==i.offset||t.focusNode!==a.node||t.focusOffset!==a.offset)&&(e=e.createRange(),e.setStart(i.node,i.offset),t.removeAllRanges(),s>r?(t.addRange(e),t.extend(a.node,a.offset)):(e.setEnd(a.node,a.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 T2=ri&&"documentMode"in document&&11>=document.documentMode,Oo=null,fm=null,Ml=null,pm=!1;function gw(t,e,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;pm||Oo==null||Oo!==bd(r)||(r=Oo,"selectionStart"in r&&my(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 4,501 bytes, line 38
38sNode:r.focusNode,focusOffset:r.focusOffset}),Ml&&Ql(Ml,r)||(Ml=r,r=Ed(fm,"onSelect"),0<r.length&&(e=new hy("onSelect","select",null,e,n),t.push({event:e,listeners:r}),e.target=Oo)))}function kc(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Mo={animationend:kc("Animation","AnimationEnd"),animationiteration:kc("Animation","AnimationIteration"),animationstart:kc("Animation","AnimationStart"),transitionend:kc("Transition","TransitionEnd")},qf={},g1={};ri&&(g1=document.createElement("div").style,"AnimationEvent"in window||(delete Mo.animationend.animation,delete Mo.animationiteration.animation,delete Mo.animationstart.animation),"TransitionEvent"in window||delete Mo.transitionend.transition);function kh(t){if(qf[t])return qf[t];if(!Mo[t])return t;var e=Mo[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in g1)return qf[t]=e[n];return t}var y1=kh("animationend"),v1=kh("animationiteration"),w1=kh("animationstart"),_1=kh("transitionend"),b1=new Map,yw="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 as(t,e){b1.set(t,e),eo(e,[t])}for(var Gf=0;Gf<yw.length;Gf++){var Zf=yw[Gf],P2=Zf.toLowerCase(),C2=Zf[0].toUpperCase()+Zf.slice(1);as(P2,"on"+C2)}as(y1,"onAnimationEnd");as(v1,"onAnimationIteration");as(w1,"onAnimationStart");as("dblclick","onDoubleClick");as("focusin","onFocus");as("focusout","onBlur");as(_1,"onTransitionEnd");fa("onMouseEnter",["mouseout","mouseover"]);fa("onMouseLeave",["mouseout","mouseover"]);fa("onPointerEnter",["pointerout","pointerover"]);fa("onPointerLeave",["pointerout","pointerover"]);eo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));eo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));eo("onBeforeInput",["compositionend","keypress","textInput","paste"]);eo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));eo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));eo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var kl="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(" "),E2=new Set("cancel close invalid load scroll toggle".split(" ").concat(kl));function vw(t,e,n){var r=t.type||"unknown-event";t.currentTarget=n,PR(r,e,void 0,t),t.currentTarget=null}function x1(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var r=t[n],i=r.event;r=r.listeners;e:{var s=void 0;if(e)for(var a=r.length-1;0<=a;a--){var l=r[a],c=l.instance,d=l.currentTarget;if(l=l.listener,c!==s&&i.isPropagationStopped())break e;vw(i,l,d),s=c}else for(a=0;a<r.length;a++){if(l=r[a],c=l.instance,d=l.currentTarget,l=l.listener,c!==s&&i.isPropagationStopped())break e;vw(i,l,d),s=c}}}if(kd)throw t=um,kd=!1,um=null,t}function He(t,e){var n=e[wm];n===void 0&&(n=e[wm]=new Set);var r=t+"__bubble";n.has(r)||(k1(e,t,2,!1),n.add(r))}function Kf(t,e,n){var r=0;e&&(r|=4),k1(n,t,r,e)}var Sc="_reactListening"+Math.random().toString(36).slice(2);function eu(t){if(!t[Sc]){t[Sc]=!0,Rk.forEach(function(n){n!=="selectionchange"&&(E2.has(n)||Kf(n,!1,t),Kf(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Sc]||(e[Sc]=!0,Kf("selectionchange",!1,e))}}function k1(t,e,n,r){switch(o1(e)){case 1:var i=UR;break;case 4:i=VR;break;default:i=cy}n=i.bind(null,e,n,t),i=void 0,!lm||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(i=!0),r?i!==void 0?t.addEventListener(e,n,{capture:!0,passive:i}):t.addEventListener(e,n,!0):i!==void 0?t.addEventListener(e,n,{passive:i}):t.addEventListener(e,n,!1)}function Jf(t,e,n,r,i){var s=r;if(!(e&1)&&!(e&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var l=r.stateNode.containerInfo;
vendor: 5,316 bytes, lines 38-39
38if(l===i||l.nodeType===8&&l.parentNode===i)break;if(a===4)for(a=r.return;a!==null;){var c=a.tag;if((c===3||c===4)&&(c=a.stateNode.containerInfo,c===i||c.nodeType===8&&c.parentNode===i))return;a=a.return}for(;l!==null;){if(a=Ls(l),a===null)return;if(c=a.tag,c===5||c===6){r=s=a;continue e}l=l.parentNode}}r=r.return}qk(function(){var d=s,f=oy(n),p=[];e:{var g=b1.get(t);if(g!==void 0){var y=hy,b=t;switch(t){case"keypress":if(ed(n)===0)break e;case"keydown":case"keyup":y=i2;break;case"focusin":b="focus",y=Vf;break;case"focusout":b="blur",y=Vf;break;case"beforeblur":case"afterblur":y=Vf;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=ow;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=qR;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=a2;break;case y1:case v1:case w1:y=KR;break;case _1:y=u2;break;case"scroll":y=HR;break;case"wheel":y=d2;break;case"copy":case"cut":case"paste":y=YR;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=lw}var _=(e&4)!==0,T=!_&&t==="scroll",x=_?g!==null?g+"Capture":null:g;_=[];for(var S=d,k;S!==null;){k=S;var E=k.stateNode;if(k.tag===5&&E!==null&&(k=E,x!==null&&(E=Zl(S,x),E!=null&&_.push(tu(S,E,k)))),T)break;S=S.return}0<_.length&&(g=new y(g,b,null,n,f),p.push({event:g,listeners:_}))}}if(!(e&7)){e:{if(g=t==="mouseover"||t==="pointerover",y=t==="mouseout"||t==="pointerout",g&&n!==om&&(b=n.relatedTarget||n.fromElement)&&(Ls(b)||b[ii]))break e;if((y||g)&&(g=f.window===f?f:(g=f.ownerDocument)?g.defaultView||g.parentWindow:window,y?(b=n.relatedTarget||n.toElement,y=d,b=b?Ls(b):null,b!==null&&(T=to(b),b!==T||b.tag!==5&&b.tag!==6)&&(b=null)):(y=null,b=d),y!==b)){if(_=ow,E="onMouseLeave",x="onMouseEnter",S="mouse",(t==="pointerout"||t==="pointerover")&&(_=lw,E="onPointerLeave",x="onPointerEnter",S="pointer"),T=y==null?g:No(y),k=b==null?g:No(b),g=new _(E,S+"leave",y,n,f),g.target=T,g.relatedTarget=k,E=null,Ls(f)===d&&(_=new _(x,S+"enter",b,n,f),_.target=k,_.relatedTarget=T,E=_),T=E,y&&b)t:{for(_=y,x=b,S=0,k=_;k;k=yo(k))S++;for(k=0,E=x;E;E=yo(E))k++;for(;0<S-k;)_=yo(_),S--;for(;0<k-S;)x=yo(x),k--;for(;S--;){if(_===x||x!==null&&_===x.alternate)break t;_=yo(_),x=yo(x)}_=null}else _=null;y!==null&&ww(p,g,y,_,!1),b!==null&&T!==null&&ww(p,T,b,_,!0)}}e:{if(g=d?No(d):window,y=g.nodeName&&g.nodeName.toLowerCase(),y==="select"||y==="input"&&g.type==="file")var A=v2;else if(dw(g))if(h1)A=x2;else{A=_2;var O=w2}else(y=g.nodeName)&&y.toLowerCase()==="input"&&(g.type==="checkbox"||g.type==="radio")&&(A=b2);if(A&&(A=A(t,d))){d1(p,A,n,f);break e}O&&O(t,g,d),t==="focusout"&&(O=g._wrapperState)&&O.controlled&&g.type==="number"&&tm(g,"number",g.value)}switch(O=d?No(d):window,t){case"focusin":(dw(O)||O.contentEditable==="true")&&(Oo=O,fm=d,Ml=null);break;case"focusout":Ml=fm=Oo=null;break;case"mousedown":pm=!0;break;case"contextmenu":case"mouseup":case"dragend":pm=!1,gw(p,n,f);break;case"selectionchange":if(T2)break;case"keydown":case"keyup":gw(p,n,f)}var M;if(py)e:{switch(t){case"compositionstart":var I="onCompositionStart";break e;case"compositionend":I="onCompositionEnd";break e;case"compositionupdate":I="onCompositionUpdate";break e}I=void 0}else Lo?u1(t,n)&&(I="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(I="onCompositionStart");I&&(l1&&n.locale!=="ko"&&(Lo||I!=="onCompositionStart"?I==="onCompositionEnd"&&Lo&&(M=a1()):(Ii=f,dy="value"in Ii?Ii.value:Ii.textContent,Lo=!0)),O=Ed(d,I),0<O.length&&(I=new aw(I,t,null,n,f),p.push({event:I,listeners:O}),M?I.data=M:(M=c1(n),M!==null&&(I.data=M)))),(M=f2?p2(t,n):m2(t,n))&&(d=Ed(d,"onBeforeInput"),0<d.length&&(f=new aw("onBeforeInput","beforeinput",null,n,f),p.push({event:f,listeners:d}),f.data=M))}x1(p,e)})}function tu(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Ed(t,e){for(var n=e+"Capture",r=[];t!==null;){var i=t,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=Zl(t,n),s!=null&&r.unshift(tu(t,s,i)),s=Zl(t,e),s!=null&&r.push(tu(t,s,i))),t=t.return}return r}function yo(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function ww(t,e,n,r,i){for(var s=e._reactName,a=[];n!==null&&n!==r;){var l=n,c=l.alternate,d=l.stateNode;if(c!==null&&c===r)break;l.tag===5&&d!==null&&(l=d,i?(c=Zl(n,s),c!=null&&a.unshift(tu(n,c,l))):i||(c=Zl(n,s),c!=null&&a.push(tu(n,c,l)))),n=n.return}a.length!==0&&t.push({event:e,listeners:a})}var A2=/\r\n?/g,R2=/\u0000|\uFFFD/g;function _w(t){return(typeof t=="string"?t:""+t).replace(A2,`
39`).replace(R2,"")}function Tc(t,e,n){if(e=_w(e),_w(t)!==e&&n)throw Error(W(425))}function Ad(){}var mm=null,gm=null;function ym(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 vm=typeof setTimeout=="function"?setTimeout:void 0,L2=typeof clearTimeout=="function"?clearTimeout:void 0,bw=typeof Promise=="function"?Promise:void 0,O2=typeof queueMicrotask=="function"?queueMicrotask:typeof bw<"u"?function(t){return bw.resolve(null).then(t).cat
vendor: 4,824 bytes, line 39
39ch(M2)}:vm;function M2(t){setTimeout(function(){throw t})}function Yf(t,e){var n=e,r=0;do{var i=n.nextSibling;if(t.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){t.removeChild(i),Yl(e);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Yl(e)}function Hi(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 xw(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 La=Math.random().toString(36).slice(2),Tr="__reactFiber$"+La,nu="__reactProps$"+La,ii="__reactContainer$"+La,wm="__reactEvents$"+La,N2="__reactListeners$"+La,j2="__reactHandles$"+La;function Ls(t){var e=t[Tr];if(e)return e;for(var n=t.parentNode;n;){if(e=n[ii]||n[Tr]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=xw(t);t!==null;){if(n=t[Tr])return n;t=xw(t)}return e}t=n,n=t.parentNode}return null}function ju(t){return t=t[Tr]||t[ii],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function No(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(W(33))}function Sh(t){return t[nu]||null}var _m=[],jo=-1;function ls(t){return{current:t}}function qe(t){0>jo||(t.current=_m[jo],_m[jo]=null,jo--)}function Fe(t,e){jo++,_m[jo]=t.current,t.current=e}var Xi={},jt=ls(Xi),Qt=ls(!1),Gs=Xi;function pa(t,e){var n=t.type.contextTypes;if(!n)return Xi;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=e[s];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=i),i}function en(t){return t=t.childContextTypes,t!=null}function Rd(){qe(Qt),qe(jt)}function kw(t,e,n){if(jt.current!==Xi)throw Error(W(168));Fe(jt,e),Fe(Qt,n)}function S1(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in e))throw Error(W(108,wR(t)||"Unknown",i));return et({},n,r)}function Ld(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Xi,Gs=jt.current,Fe(jt,t),Fe(Qt,Qt.current),!0}function Sw(t,e,n){var r=t.stateNode;if(!r)throw Error(W(169));n?(t=S1(t,e,Gs),r.__reactInternalMemoizedMergedChildContext=t,qe(Qt),qe(jt),Fe(jt,t)):qe(Qt),Fe(Qt,n)}var Xr=null,Th=!1,Xf=!1;function T1(t){Xr===null?Xr=[t]:Xr.push(t)}function I2(t){Th=!0,T1(t)}function us(){if(!Xf&&Xr!==null){Xf=!0;var t=0,e=Ie;try{var n=Xr;for(Ie=1;t<n.length;t++){var r=n[t];do r=r(!0);while(r!==null)}Xr=null,Th=!1}catch(i){throw Xr!==null&&(Xr=Xr.slice(t+1)),Jk(ay,us),i}finally{Ie=e,Xf=!1}}return null}var Io=[],Do=0,Od=null,Md=0,Tn=[],Pn=0,Zs=null,ei=1,ti="";function Cs(t,e){Io[Do++]=Md,Io[Do++]=Od,Od=t,Md=e}function P1(t,e,n){Tn[Pn++]=ei,Tn[Pn++]=ti,Tn[Pn++]=Zs,Zs=t;var r=ei;t=ti;var i=32-Qn(r)-1;r&=~(1<<i),n+=1;var s=32-Qn(e)+i;if(30<s){var a=i-i%5;s=(r&(1<<a)-1).toString(32),r>>=a,i-=a,ei=1<<32-Qn(e)+i|n<<i|r,ti=s+t}else ei=1<<s|n<<i|r,ti=t}function gy(t){t.return!==null&&(Cs(t,1),P1(t,1,0))}function yy(t){for(;t===Od;)Od=Io[--Do],Io[Do]=null,Md=Io[--Do],Io[Do]=null;for(;t===Zs;)Zs=Tn[--Pn],Tn[Pn]=null,ti=Tn[--Pn],Tn[Pn]=null,ei=Tn[--Pn],Tn[Pn]=null}var cn=null,un=null,Ge=!1,Jn=null;function C1(t,e){var n=Cn(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 Tw(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,cn=t,un=Hi(e.firstChild),!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,cn=t,un=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(n=Zs!==null?{id:ei,overflow:ti}:null,t.memoizedState={dehydrated:e,treeContext:n,retryLane:1073741824},n=Cn(18,null,null,0),n.stateNode=e,n.return=t,t.child=n,cn=t,un=null,!0):!1;default:return!1}}function bm(t){return(t.mode&1)!==0&&(t.flags&128)===0}function xm(t){if(Ge){var e=un;if(e){var n=e;if(!Tw(t,e)){if(bm(t))throw Error(W(418));e=Hi(n.nextSibling);var r=cn;e&&Tw(t,e)?C1(r,n):(t.flags=t.flags&-4097|2,Ge=!1,cn=t)}}else{if(bm(t))throw Error(W(418));t.flags=t.flags&-4097|2,Ge=!1,cn=t}}}function Pw(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;cn=t}function Pc(t){if(t!==cn)return!1;if(!Ge)return Pw(t),Ge=!0,!1;var e;if((e=t.tag!==3)&&!(e=t.tag!==5)&&(e=t.type,e=e!=="head"&&e!=="body"&&!ym(t.type,t.memoizedProps)),e&&(e=un)){if(bm(t))throw E1(),Error(W(418));for(;e;)C1(t,e),e=Hi(e.nextSibling)}if(Pw(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(W(317));e:{for(t=t.nextSibling,e=0;t;
vendor: 24,450 bytes, lines 39-41
39){if(t.nodeType===8){var n=t.data;if(n==="/$"){if(e===0){un=Hi(t.nextSibling);break e}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++}t=t.nextSibling}un=null}}else un=cn?Hi(t.stateNode.nextSibling):null;return!0}function E1(){for(var t=un;t;)t=Hi(t.nextSibling)}function ma(){un=cn=null,Ge=!1}function vy(t){Jn===null?Jn=[t]:Jn.push(t)}var D2=di.ReactCurrentBatchConfig;function cl(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(W(309));var r=n.stateNode}if(!r)throw Error(W(147,t));var i=r,s=""+t;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===s?e.ref:(e=function(a){var l=i.refs;a===null?delete l[s]:l[s]=a},e._stringRef=s,e)}if(typeof t!="string")throw Error(W(284));if(!n._owner)throw Error(W(290,t))}return t}function Cc(t,e){throw t=Object.prototype.toString.call(e),Error(W(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function Cw(t){var e=t._init;return e(t._payload)}function A1(t){function e(x,S){if(t){var k=x.deletions;k===null?(x.deletions=[S],x.flags|=16):k.push(S)}}function n(x,S){if(!t)return null;for(;S!==null;)e(x,S),S=S.sibling;return null}function r(x,S){for(x=new Map;S!==null;)S.key!==null?x.set(S.key,S):x.set(S.index,S),S=S.sibling;return x}function i(x,S){return x=Zi(x,S),x.index=0,x.sibling=null,x}function s(x,S,k){return x.index=k,t?(k=x.alternate,k!==null?(k=k.index,k<S?(x.flags|=2,S):k):(x.flags|=2,S)):(x.flags|=1048576,S)}function a(x){return t&&x.alternate===null&&(x.flags|=2),x}function l(x,S,k,E){return S===null||S.tag!==6?(S=sp(k,x.mode,E),S.return=x,S):(S=i(S,k),S.return=x,S)}function c(x,S,k,E){var A=k.type;return A===Ro?f(x,S,k.props.children,E,k.key):S!==null&&(S.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===Si&&Cw(A)===S.type)?(E=i(S,k.props),E.ref=cl(x,S,k),E.return=x,E):(E=ad(k.type,k.key,k.props,null,x.mode,E),E.ref=cl(x,S,k),E.return=x,E)}function d(x,S,k,E){return S===null||S.tag!==4||S.stateNode.containerInfo!==k.containerInfo||S.stateNode.implementation!==k.implementation?(S=op(k,x.mode,E),S.return=x,S):(S=i(S,k.children||[]),S.return=x,S)}function f(x,S,k,E,A){return S===null||S.tag!==7?(S=Ws(k,x.mode,E,A),S.return=x,S):(S=i(S,k),S.return=x,S)}function p(x,S,k){if(typeof S=="string"&&S!==""||typeof S=="number")return S=sp(""+S,x.mode,k),S.return=x,S;if(typeof S=="object"&&S!==null){switch(S.$$typeof){case gc:return k=ad(S.type,S.key,S.props,null,x.mode,k),k.ref=cl(x,null,S),k.return=x,k;case Ao:return S=op(S,x.mode,k),S.return=x,S;case Si:var E=S._init;return p(x,E(S._payload),k)}if(bl(S)||sl(S))return S=Ws(S,x.mode,k,null),S.return=x,S;Cc(x,S)}return null}function g(x,S,k,E){var A=S!==null?S.key:null;if(typeof k=="string"&&k!==""||typeof k=="number")return A!==null?null:l(x,S,""+k,E);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case gc:return k.key===A?c(x,S,k,E):null;case Ao:return k.key===A?d(x,S,k,E):null;case Si:return A=k._init,g(x,S,A(k._payload),E)}if(bl(k)||sl(k))return A!==null?null:f(x,S,k,E,null);Cc(x,k)}return null}function y(x,S,k,E,A){if(typeof E=="string"&&E!==""||typeof E=="number")return x=x.get(k)||null,l(S,x,""+E,A);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case gc:return x=x.get(E.key===null?k:E.key)||null,c(S,x,E,A);case Ao:return x=x.get(E.key===null?k:E.key)||null,d(S,x,E,A);case Si:var O=E._init;return y(x,S,k,O(E._payload),A)}if(bl(E)||sl(E))return x=x.get(k)||null,f(S,x,E,A,null);Cc(S,E)}return null}function b(x,S,k,E){for(var A=null,O=null,M=S,I=S=0,B=null;M!==null&&I<k.length;I++){M.index>I?(B=M,M=null):B=M.sibling;var H=g(x,M,k[I],E);if(H===null){M===null&&(M=B);break}t&&M&&H.alternate===null&&e(x,M),S=s(H,S,I),O===null?A=H:O.sibling=H,O=H,M=B}if(I===k.length)return n(x,M),Ge&&Cs(x,I),A;if(M===null){for(;I<k.length;I++)M=p(x,k[I],E),M!==null&&(S=s(M,S,I),O===null?A=M:O.sibling=M,O=M);return Ge&&Cs(x,I),A}for(M=r(x,M);I<k.length;I++)B=y(M,x,I,k[I],E),B!==null&&(t&&B.alternate!==null&&M.delete(B.key===null?I:B.key),S=s(B,S,I),O===null?A=B:O.sibling=B,O=B);return t&&M.forEach(function(J){return e(x,J)}),Ge&&Cs(x,I),A}function _(x,S,k,E){var A=sl(k);if(typeof A!="function")throw Error(W(150));if(k=A.call(k),k==null)throw Error(W(151));for(var O=A=null,M=S,I=S=0,B=null,H=k.next();M!==null&&!H.done;I++,H=k.next()){M.index>I?(B=M,M=null):B=M.sibling;var J=g(x,M,H.value,E);if(J===null){M===null&&(M=B);break}t&&M&&J.alternate===null&&e(x,M),S=s(J,S,I),O===null?A=J:O.sibling=J,O=J,M=B}if(H.done)return n(x,M),Ge&&Cs(x,I),A;if(M===null){for(;!H.done;I++,H=k.next())H=p(x,H.value,E),H!==null&&(S=s(H,S,I),O===null?A=H:O.sibling=H,O=H);return Ge&&Cs(x,I),A}for(M=r(x,M);!H.done;I++,H=k.next())H=y(M,x,I,H.value,E),H!==null&&(t&&H.alternate!==null&&M.delete(H.key===null?I:H.key),S=s(H,S,I),O===null?A=H:O.sibling=H,O=H);return t&&M.forEach(function(Z){return e(x,Z)}),Ge&&Cs(x,I),A}function T(x,S,k,E){if(typeof k=="object"&&k!==null&&k.type===Ro&&k.key===null&&(k=k.props.children),typeof k=="object"&&k!==null){switch(k.$$typeof){case gc:e:{for(var A=k.key,O=S;O!==null;){if(O.key===A){if(A=k.type,A===Ro){if(O.tag===7){n(x,O.sibling),S=i(O,k.props.children),S.return=x,x=S;break e}}else if(O.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===Si&&Cw(A)===O.type){n(x,O.sibling),S=i(O,k.props),S.ref=cl(x,O,k),S.return=x,x=S;break e}n(x,O);break}else e(x,O);O=O.sibling}k.type===Ro?(S=Ws(k.props.children,x.mode,E,k.key),S.return=x,x=S):(E=ad(k.type,k.key,k.props,null,x.mode,E),E.ref=cl(x,S,k),E.return=x,x=E)}return a(x);case Ao:e:{for(O=k.key;S!==null;){if(S.key===O)if(S.tag===4&&S.stateNode.containerInfo===k.containerInfo&&S.stateNode.implementation===k.implementation){n(x,S.sibling),S=i(S,k.children||[]),S.return=x,x=S;break e}else{n(x,S);break}else e(x,S);S=S.sibling}S=op(k,x.mode,E),S.return=x,x=S}return a(x);case Si:return O=k._init,T(x,S,O(k._payload),E)}if(bl(k))return b(x,S,k,E);if(sl(k))return _(x,S,k,E);Cc(x,k)}return typeof k=="string"&&k!==""||typeof k=="number"?(k=""+k,S!==null&&S.tag===6?(n(x,S.sibling),S=i(S,k),S.return=x,x=S):(n(x,S),S=sp(k,x.mode,E),S.return=x,x=S),a(x)):n(x,S)}return T}var ga=A1(!0),R1=A1(!1),Nd=ls(null),jd=null,Bo=null,wy=null;function _y(){wy=Bo=jd=null}function by(t){var e=Nd.current;qe(Nd),t._currentValue=e}function km(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 Yo(t,e){jd=t,wy=Bo=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(Xt=!0),t.firstContext=null)}function On(t){var e=t._currentValue;if(wy!==t)if(t={context:t,memoizedValue:e,next:null},Bo===null){if(jd===null)throw Error(W(308));Bo=t,jd.dependencies={lanes:0,firstContext:t}}else Bo=Bo.next=t;return e}var Os=null;function xy(t){Os===null?Os=[t]:Os.push(t)}function L1(t,e,n,r){var i=e.interleaved;return i===null?(n.next=n,xy(e)):(n.next=i.next,i.next=n),e.interleaved=n,si(t,r)}function si(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 Ti=!1;function ky(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function O1(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 ni(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function Wi(t,e,n){var r=t.updateQueue;if(r===null)return null;if(r=r.shared,Re&2){var i=r.pending;return i===null?e.next=e:(e.next=i.next,i.next=e),r.pending=e,si(t,n)}return i=r.interleaved,i===null?(e.next=e,xy(r)):(e.next=i.next,i.next=e),r.interleaved=e,si(t,n)}function td(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,ly(t,n)}}function Ew(t,e){var n=t.updateQueue,r=t.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=a:s=s.next=a,n=n.next}while(n!==null);s===null?i=s=e:s=s.next=e}else i=s=e;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,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 Id(t,e,n,r){var i=t.updateQueue;Ti=!1;var s=i.firstBaseUpdate,a=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var c=l,d=c.next;c.next=null,a===null?s=d:a.next=d,a=c;var f=t.alternate;f!==null&&(f=f.updateQueue,l=f.lastBaseUpdate,l!==a&&(l===null?f.firstBaseUpdate=d:l.next=d,f.lastBaseUpdate=c))}if(s!==null){var p=i.baseState;a=0,f=d=c=null,l=s;do{var g=l.lane,y=l.eventTime;if((r&g)===g){f!==null&&(f=f.next={eventTime:y,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var b=t,_=l;switch(g=e,y=n,_.tag){case 1:if(b=_.payload,typeof b=="function"){p=b.call(y,p,g);break e}p=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=_.payload,g=typeof b=="function"?b.call(y,p,g):b,g==null)break e;p=et({},p,g);break e;case 2:Ti=!0}}l.callback!==null&&l.lane!==0&&(t.flags|=64,g=i.effects,g===null?i.effects=[l]:g.push(l))}else y={eventTime:y,lane:g,tag:l.tag,payload:l.payload,callback:l.callback,next:null},f===null?(d=f=y,c=p):f=f.next=y,a|=g;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;g=l,l=g.next,g.next=null,i.lastBaseUpdate=g,i.shared.pending=null}}while(!0);if(f===null&&(c=p),i.baseState=c,i.firstBaseUpdate=d,i.lastBaseUpdate=f,e=i.shared.interleaved,e!==null){i=e;do a|=i.lane,i=i.next;while(i!==e)}else s===null&&(i.shared.lanes=0);Js|=a,t.lanes=a,t.memoizedState=p}}function Aw(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;e<t.length;e++){var r=t[e],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(W(191,i));i.call(r)}}}var Iu={},Er=ls(Iu),ru=ls(Iu),iu=ls(Iu);function Ms(t){if(t===Iu)throw Error(W(174));return t}function Sy(t,e){switch(Fe(iu,e),Fe(ru,t),Fe(Er,Iu),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:rm(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=rm(e,t)}qe(Er),Fe(Er,e)}function ya(){qe(Er),qe(ru),qe(iu)}function M1(t){Ms(iu.current);var e=Ms(Er.current),n=rm(e,t.type);e!==n&&(Fe(ru,t),Fe(Er,n))}function Ty(t){ru.current===t&&(qe(Er),qe(ru))}var Ye=ls(0);function Dd(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 Qf=[];function Py(){for(var t=0;t<Qf.length;t++)Qf[t]._workInProgressVersionPrimary=null;Qf.length=0}var nd=di.ReactCurrentDispatcher,ep=di.ReactCurrentBatchConfig,Ks=0,Qe=null,mt=null,_t=null,Bd=!1,Nl=!1,su=0,B2=0;function At(){throw Error(W(321))}function Cy(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!tr(t[n],e[n]))return!1;return!0}function Ey(t,e,n,r,i,s){if(Ks=s,Qe=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,nd.current=t===null||t.memoizedState===null?U2:V2,t=n(r,i),Nl){s=0;do{if(Nl=!1,su=0,25<=s)throw Error(W(301));s+=1,_t=mt=null,e.updateQueue=null,nd.current=H2,t=n(r,i)}while(Nl)}if(nd.current=zd,e=mt!==null&&mt.next!==null,Ks=0,_t=mt=Qe=null,Bd=!1,e)throw Error(W(300));return t}function Ay(){var t=su!==0;return su=0,t}function vr(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return _t===null?Qe.memoizedState=_t=t:_t=_t.next=t,_t}function Mn(){if(mt===null){var t=Qe.alternate;t=t!==null?t.memoizedState:null}else t=mt.next;var e=_t===null?Qe.memoizedState:_t.next;if(e!==null)_t=e,mt=t;else{if(t===null)throw Error(W(310));mt=t,t={memoizedState:mt.memoizedState,baseState:mt.baseState,baseQueue:mt.baseQueue,queue:mt.queue,next:null},_t===null?Qe.memoizedState=_t=t:_t=_t.next=t}return _t}function ou(t,e){return typeof e=="function"?e(t):e}function tp(t){var e=Mn(),n=e.queue;if(n===null)throw Error(W(311));n.lastRenderedReducer=t;var r=mt,i=r.baseQueue,s=n.pending;if(s!==null){if(i!==null){var a=i.next;i.next=s.next,s.next=a}r.baseQueue=i=s,n.pending=null}if(i!==null){s=i.next,r=r.baseState;var l=a=null,c=null,d=s;do{var f=d.lane;if((Ks&f)===f)c!==null&&(c=c.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),r=d.hasEagerState?d.eagerState:t(r,d.action);else{var p={lane:f,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};c===null?(l=c=p,a=r):c=c.next=p,Qe.lanes|=f,Js|=f}d=d.next}while(d!==null&&d!==s);c===null?a=r:c.next=l,tr(r,e.memoizedState)||(Xt=!0),e.memoizedState=r,e.baseState=a,e.baseQueue=c,n.lastRenderedState=r}if(t=n.interleaved,t!==null){i=t;do s=i.lane,Qe.lanes|=s,Js|=s,i=i.next;while(i!==t)}else i===null&&(n.lanes=0);return[e.memoizedState,n.dispatch]}function np(t){var e=Mn(),n=e.queue;if(n===null)throw Error(W(311));n.lastRenderedReducer=t;var r=n.dispatch,i=n.pending,s=e.memoizedState;if(i!==null){n.pending=null;var a=i=i.next;do s=t(s,a.action),a=a.next;while(a!==i);tr(s,e.memoizedState)||(Xt=!0),e.memoizedState=s,e.baseQueue===null&&(e.baseState=s),n.lastRenderedState=s}return[s,r]}function N1(){}function j1(t,e){var n=Qe,r=Mn(),i=e(),s=!tr(r.memoizedState,i);if(s&&(r.memoizedState=i,Xt=!0),r=r.queue,Ry(B1.bind(null,n,r,t),[t]),r.getSnapshot!==e||s||_t!==null&&_t.memoizedState.tag&1){if(n.flags|=2048,au(9,D1.bind(null,n,r,i,e),void 0,null),bt===null)throw Error(W(349));Ks&30||I1(n,e,i)}return i}function I1(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=Qe.updateQueue,e===null?(e={lastEffect:null,stores:null},Qe.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function D1(t,e,n,r){e.value=n,e.getSnapshot=r,z1(e)&&F1(t)}function B1(t,e,n){return n(function(){z1(e)&&F1(t)})}function z1(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!tr(t,n)}catch{return!0}}function F1(t){var e=si(t,1);e!==null&&er(e,t,1,-1)}function Rw(t){var e=vr();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ou,lastRenderedState:t},e.queue=t,t=t.dispatch=$2.bind(null,Qe,t),[e.memoizedState,t]}function au(t,e,n,r){return t={tag:t,create:e,destroy:n,deps:r,next:null},e=Qe.updateQueue,e===null?(e={lastEffect:null,stores:null},Qe.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 $1(){return Mn().memoizedState}function rd(t,e,n,r){var i=vr();Qe.flags|=t,i.memoizedState=au(1|e,n,void 0,r===void 0?null:r)}function Ph(t,e,n,r){var i=Mn();r=r===void 0?null:r;var s=void 0;if(mt!==null){var a=mt.memoizedState;if(s=a.destroy,r!==null&&Cy(r,a.deps)){i.memoizedState=au(e,n,s,r);return}}Qe.flags|=t,i.memoizedState=au(1|e,n,s,r)}function Lw(t,e){return rd(8390656,8,t,e)}function Ry(t,e){return Ph(2048,8,t,e)}function U1(t,e){return Ph(4,2,t,e)}function V1(t,e){return Ph(4,4,t,e)}function H1(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 W1(t,e,n){return n=n!=null?n.concat([t]):null,Ph(4,4,H1.bind(null,e,t),n)}function Ly(){}function q1(t,e){var n=Mn();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&Cy(e,r[1])?r[0]:(n.memoizedState=[t,e],t)}function G1(t,e){var n=Mn();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&Cy(e,r[1])?r[0]:(t=t(),n.memoizedState=[t,e],t)}function Z1(t,e,n){return Ks&21?(tr(n,e)||(n=Qk(),Qe.lanes|=n,Js|=n,t.baseState=!0),e):(t.baseState&&(t.baseState=!1,Xt=!0),t.memoizedState=n)}function z2(t,e){var n=Ie;Ie=n!==0&&4>n?n:4,t(!0);var r=ep.transition;ep.transition={};try{t(!1),e()}finally{Ie=n,ep.transition=r}}function K1(){return Mn().memoizedState}function F2(t,e,n){var r=Gi(t);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},J1(t))Y1(e,n);else if(n=L1(t,e,n,r),n!==null){var i=Ht();er(n,t,r,i),X1(n,e,r)}}function $2(t,e,n){var r=Gi(t),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(J1(t))Y1(e,i);else{var s=t.alternate;if(t.lanes===0&&(s===null||s.lanes===0)&&(s=e.lastRenderedReducer,s!==null))try{var a=e.lastRenderedState,l=s(a,n);if(i.hasEagerState=!0,i.eagerState=l,tr(l,a)){var c=e.interleaved;c===null?(i.next=i,xy(e)):(i.next=c.next,c.next=i),e.interleaved=i;return}}catch{}finally{}n=L1(t,e,i,r),n!==null&&(i=Ht(),er(n,t,r,i),X1(n,e,r))}}function J1(t){var e=t.alternate;return t===Qe||e!==null&&e===Qe}function Y1(t,e){Nl=Bd=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function X1(t,e,n){if(n&4194240){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,ly(t,n)}}var zd={readContext:On,useCallback:At,useContext:At,useEffect:At,useImperativeHandle:At,useInsertionEffect:At,useLayoutEffect:At,useMemo:At,useReducer:At,useRef:At,useState:At,useDebugValue:At,useDeferredValue:At,useTransition:At,useMutableSource:At,useSyncExternalStore:At,useId:At,unstable_isNewReconciler:!1},U2={readContext:On,useCallback:function(t,e){return vr().memoizedState=[t,e===void 0?null:e],t},useContext:On,useEffect:Lw,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,rd(4194308,4,H1.bind(null,e,t),n)},useLayoutEffect:function(t,e){return rd(4194308,4,t,e)},useInsertionEffect:function(t,e){return rd(4,2,t,e)},useMemo:function(t,e){var n=vr();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=vr();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=F2.bind(null,Qe,t),[r.memoizedState,t]},useRef:function(t){var e=vr();return t={current:t},e.memoizedState=t},useState:Rw,useDebugValue:Ly,useDeferredValue:function(t){return vr().memoizedState=t},useTransition:function(){var t=Rw(!1),e=t[0];return t=z2.bind(null,t[1]),vr().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var r=Qe,i=vr();if(Ge){if(n===void 0)throw Error(W(407));n=n()}else{if(n=e(),bt===null)throw Error(W(349));Ks&30||I1(r,e,n)}i.memoizedState=n;var s={value:n,getSnapshot:e};return i.queue=s,Lw(B1.bind(null,r,s,t),[t]),r.flags|=2048,au(9,D1.bind(null,r,s,n,e),void 0,null),n},useId:function(){var t=vr(),e=bt.identifierPrefix;if(Ge){var n=ti,r=ei;n=(r&~(1<<32-Qn(r)-1)).toString(32)+n,e=":"+e+"R"+n,n=su++,0<n&&(e+="H"+n.toString(32)),e+=":"}else n=B2++,e=":"+e+"r"+n.toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},V2={readContext:On,useCallback:q1,useContext:On,useEffect:Ry,useImperativeHandle:W1,useInsertionEffect:U1,useLayoutEffect:V1,useMemo:G1,useReducer:tp,useRef:$1,useState:function(){return tp(ou)},useDebugValue:Ly,useDeferredValue:function(t){var e=Mn();return Z1(e,mt.memoizedState,t)},useTransition:function(){var t=tp(ou)[0],e=Mn().memoizedState;return[t,e]},useMutableSource:N1,useSyncExternalStore:j1,useId:K1,unstable_isNewReconciler:!1},H2={readContext:On,useCallback:q1,useContext:On,useEffect:Ry,useImperativeHandle:W1,useInsertionEffect:U1,useLayoutEffect:V1,useMemo:G1,useReducer:np,useRef:$1,useState:function(){return np(ou)},useDebugValue:Ly,useDeferredValue:function(t){var e=Mn();return mt===null?e.memoizedState=t:Z1(e,mt.memoizedState,t)},useTransition:function(){var t=np(ou)[0],e=Mn().memoizedState;return[t,e]},useMutableSource:N1,useSyncExternalStore:j1,useId:K1,unstable_isNewReconciler:!1};function Hn(t,e){if(t&&t.defaultProps){e=et({},e),t=t.defaultProps;for(var n in t)e[n]===void 0&&(e[n]=t[n]);return e}return e}function Sm(t,e,n,r){e=t.memoizedState,n=n(r,e),n=n==null?e:et({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Ch={isMounted:function(t){return(t=t._reactInternals)?to(t)===t:!1},enqueueSetState:function(t,e,n){t=t._reactInternals;var r=Ht(),i=Gi(t),s=ni(r,i);s.payload=e,n!=null&&(s.callback=n),e=Wi(t,s,i),e!==null&&(er(e,t,i,r),td(e,t,i))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var r=Ht(),i=Gi(t),s=ni(r,i);s.tag=1,s.payload=e,n!=null&&(s.callback=n),e=Wi(t,s,i),e!==null&&(er(e,t,i,r),td(e,t,i))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Ht(),r=Gi(t),i=ni(n,r);i.tag=2,e!=null&&(i.callback=e),e=Wi(t,i,r),e!==null&&(er(e,t,r,n),td(e,t,r))}};function Ow(t,e,n,r,i,s,a){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(r,s,a):e.prototype&&e.prototype.isPureReactComponent?!Ql(n,r)||!Ql(i,s):!0}function Q1(t,e,n){var r=!1,i=Xi,s=e.contextType;return typeof s=="object"&&s!==null?s=On(s):(i=en(e)?Gs:jt.current,r=e.contextTypes,s=(r=r!=null)?pa(t,i):Xi),e=new e(n,s),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=Ch,t.stateNode=e,e._reactInternals=t,r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=i,t.__reactInternalMemoizedMaskedChildContext=s),e}function Mw(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&&Ch.enqueueReplaceState(e,e.state,null)}function Tm(t,e,n,r){var i=t.stateNode;i.props=n,i.state=t.memoizedState,i.refs={},ky(t);var s=e.contextType;typeof s=="object"&&s!==null?i.context=On(s):(s=en(e)?Gs:jt.current,i.context=pa(t,s)),i.state=t.memoizedState,s=e.getDerivedStateFromProps,typeof s=="function"&&(Sm(t,e,s,n),i.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(e=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),e!==i.state&&Ch.enqueueReplaceState(i,i.state,null),Id(t,n,i,r),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308)}function va(t,e){try{var n="",r=e;do n+=vR(r),r=r.return;while(r);var i=n}catch(s){i=`
40Error generating stack: `+s.message+`
41`+s.stack}return{value:t,source:e,stack:i,digest:null}}function rp(t,e,n){return{value:t,source:null,stack:n??null,digest:e??null}}function Pm(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var W2=typeof WeakMap=="function"?WeakMap:Map;function eS(t,e,n){n=ni(-1,n),n.tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){$d||($d=!0,Im=r),Pm(t,e)},n}function tS(t,e,n){n=ni(-1,n),n.tag=3;var r=t.type.getDerivedStateFromError;if(typeof r=="function"){var i=e.value;n.payload=function(){return r(i)},n.callback=function(){Pm(t,e)}}var s=t.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){Pm(t,e),typeof r!="function"&&(qi===null?qi=new Set([this]):qi.add(this));var a=e.stack;this.componentDidCatch(e.value,{componentStack:a!==null?a:""})}),n}function Nw(t,e,n){var r=t.pingCache;if(r===null){r=t.pingCache=new W2;var i=new Set;r.set(e,i)}else i=r.get(e),i===void 0&&(i=new Set,r.set(e,i));i.has(n)||(i.add(n),t=sL.bind(null,t,e,n),e.then(t,t))}function jw(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 Iw(t,e,n,r,i){return t.mode&1?(t.flags|=65536,t.lanes=i,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=ni(-1,1),e.tag=2,Wi(n,e,1))),n.lanes|=1),t)}var q2=di.ReactCurrentOwner,Xt=!1;function Ft(t,e,n,r){e.child=t===null?R1(e,null,n,r):ga(e,t.child,n,r)}function Dw(t,e,n,r,i){n=n.render;var s=e.ref;return Yo(e,i),r=Ey(t,e,n,r,s,i),n=Ay(),t!==null&&!Xt?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,oi(t,e,i)):(Ge&&n&&gy(e),e.flags|=1,Ft(t,e,r,i),e.child)}function Bw(t,e,n,r,i){if(t===null){var s=n.type;return typeof s=="function"&&!zy(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=s,nS(t,e,s,r,i)):(t=ad(n.t
vendor: 9,167 bytes, line 41
41ype,null,r,e,e.mode,i),t.ref=e.ref,t.return=e,e.child=t)}if(s=t.child,!(t.lanes&i)){var a=s.memoizedProps;if(n=n.compare,n=n!==null?n:Ql,n(a,r)&&t.ref===e.ref)return oi(t,e,i)}return e.flags|=1,t=Zi(s,r),t.ref=e.ref,t.return=e,e.child=t}function nS(t,e,n,r,i){if(t!==null){var s=t.memoizedProps;if(Ql(s,r)&&t.ref===e.ref)if(Xt=!1,e.pendingProps=r=s,(t.lanes&i)!==0)t.flags&131072&&(Xt=!0);else return e.lanes=t.lanes,oi(t,e,i)}return Cm(t,e,n,r,i)}function rS(t,e,n){var r=e.pendingProps,i=r.children,s=t!==null?t.memoizedState:null;if(r.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},Fe(Fo,on),on|=n;else{if(!(n&1073741824))return t=s!==null?s.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,Fe(Fo,on),on|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,Fe(Fo,on),on|=r}else s!==null?(r=s.baseLanes|n,e.memoizedState=null):r=n,Fe(Fo,on),on|=r;return Ft(t,e,i,n),e.child}function iS(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=512,e.flags|=2097152)}function Cm(t,e,n,r,i){var s=en(n)?Gs:jt.current;return s=pa(e,s),Yo(e,i),n=Ey(t,e,n,r,s,i),r=Ay(),t!==null&&!Xt?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,oi(t,e,i)):(Ge&&r&&gy(e),e.flags|=1,Ft(t,e,n,i),e.child)}function zw(t,e,n,r,i){if(en(n)){var s=!0;Ld(e)}else s=!1;if(Yo(e,i),e.stateNode===null)id(t,e),Q1(e,n,r),Tm(e,n,r,i),r=!0;else if(t===null){var a=e.stateNode,l=e.memoizedProps;a.props=l;var c=a.context,d=n.contextType;typeof d=="object"&&d!==null?d=On(d):(d=en(n)?Gs:jt.current,d=pa(e,d));var f=n.getDerivedStateFromProps,p=typeof f=="function"||typeof a.getSnapshotBeforeUpdate=="function";p||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==r||c!==d)&&Mw(e,a,r,d),Ti=!1;var g=e.memoizedState;a.state=g,Id(e,r,a,i),c=e.memoizedState,l!==r||g!==c||Qt.current||Ti?(typeof f=="function"&&(Sm(e,n,f,r),c=e.memoizedState),(l=Ti||Ow(e,n,l,r,g,c,d))?(p||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(e.flags|=4194308)):(typeof a.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=r,e.memoizedState=c),a.props=r,a.state=c,a.context=d,r=l):(typeof a.componentDidMount=="function"&&(e.flags|=4194308),r=!1)}else{a=e.stateNode,O1(t,e),l=e.memoizedProps,d=e.type===e.elementType?l:Hn(e.type,l),a.props=d,p=e.pendingProps,g=a.context,c=n.contextType,typeof c=="object"&&c!==null?c=On(c):(c=en(n)?Gs:jt.current,c=pa(e,c));var y=n.getDerivedStateFromProps;(f=typeof y=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==p||g!==c)&&Mw(e,a,r,c),Ti=!1,g=e.memoizedState,a.state=g,Id(e,r,a,i);var b=e.memoizedState;l!==p||g!==b||Qt.current||Ti?(typeof y=="function"&&(Sm(e,n,y,r),b=e.memoizedState),(d=Ti||Ow(e,n,d,r,g,b,c)||!1)?(f||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,b,c),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,b,c)),typeof a.componentDidUpdate=="function"&&(e.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof a.componentDidUpdate!="function"||l===t.memoizedProps&&g===t.memoizedState||(e.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===t.memoizedProps&&g===t.memoizedState||(e.flags|=1024),e.memoizedProps=r,e.memoizedState=b),a.props=r,a.state=b,a.context=c,r=d):(typeof a.componentDidUpdate!="function"||l===t.memoizedProps&&g===t.memoizedState||(e.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===t.memoizedProps&&g===t.memoizedState||(e.flags|=1024),r=!1)}return Em(t,e,n,r,s,i)}function Em(t,e,n,r,i,s){iS(t,e);var a=(e.flags&128)!==0;if(!r&&!a)return i&&Sw(e,n,!1),oi(t,e,s);r=e.stateNode,q2.current=e;var l=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return e.flags|=1,t!==null&&a?(e.child=ga(e,t.child,null,s),e.child=ga(e,null,l,s)):Ft(t,e,l,s),e.memoizedState=r.state,i&&Sw(e,n,!0),e.child}function sS(t){var e=t.stateNode;e.pendingContext?kw(t,e.pendingContext,e.pendingContext!==e.context):e.context&&kw(t,e.context,!1),Sy(t,e.containerInfo)}function Fw(t,e,n,r,i){return ma(),vy(i),e.flags|=256,Ft(t,e,n,r),e.child}var Am={dehydrated:null,treeContext:null,retryLane:0};function Rm(t){return{baseLanes:t,cachePool:null,transitions:null}}function oS(t,e,n){var r=e.pendingProps,i=Ye.current,s=!1,a=(e.flags&128)!==0,l;if((l=a)||(l=t!==null&&t.memoizedState===null?!1:(i&2)!==0),l?(s=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(i|=1),Fe(Ye,i&1),t===null)return xm(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):(a=r.children,t=r.fallback,s?(r=e.mode,s=e.child,a={mode:"hidden",children:a},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=a):s=Rh(a,r,0,null),t=Ws(t,r,n,null),s.return=e,t.return=e,s.sibling=t,e.child=s,e.child.memoizedState=Rm(n),e.memoizedState=Am,t):Oy(e,a));if(i=t.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return G2(t,e,a,r,l,i,n);if(s){s=r.fallback,a=e.mode,i=t.child,l=i.sibling;var c={mode:"hidden",children:r.children};return!(a&1)&&e.child!==i?(r=e.child,r.childLanes=0,r.pendingProps=c,e.deletions=null):(r=Zi(i,c),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?s=Zi(l,s):(s=Ws(s,a,n,null),s.flags|=2),s.return=e,r.return=e,r.sibling=s,e.child=r,r=s,s=e.child,a=t.child.memoizedState,a=a===null?Rm(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},s.memoizedState=a,s.childLanes=t.childLanes&~n,e.memoizedState=Am,r}return s=t.child,t=s.sibling,r=Zi(s,{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 Oy(t,e){return e=Rh({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function Ec(t,e,n,r){return r!==null&&vy(r),ga(e,t.child,null,n),t=Oy(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function G2(t,e,n,r,i,s,a){if(n)return e.flags&256?(e.flags&=-257,r=rp(Error(W(422))),Ec(t,e,a,r)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(s=r.fallback,i=e.mode,r=Rh({mode:"visible",children:r.children},i,0,null),s=Ws(s,i,a,null),s.flags|=2,r.return=e,s.return=e,r.sibling=s,e.child=r,e.mode&1&&ga(e,t.child,null,a),e.child.memoizedState=Rm(a),e.memoizedState=Am,s);if(!(e.mode&1))return Ec(t,e,a,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,s=Error(W(419)),r=rp(s,r,void 0),Ec(t,e,a,r)}if(l=(a&t.childLanes)!==0,Xt||l){if(r=bt,r!==null){switch(a&-a){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|a)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,si(t,i),er(r,t,i,-1))}return By(),r=rp(Error(W(421))),Ec(t,e,a,r)}return i.data==="$?"?(e.flags|=128,e.child=t.child,e=oL.bind(null,t),i._reactRetry=e,null):(t=s.treeContext,un=Hi(i.nextSibling),cn=e,Ge=!0,Jn=null,t!==null&&(Tn[Pn++]=ei,Tn[Pn++]=ti,Tn[Pn++]=Zs,ei=t.id,ti=t.overflow,Zs=e),e=Oy(e,r.children),e.flags|=4096,e)}function $w(t,e,n){t.lanes|=e;var r=t.alternate;r!==null&&(r.lanes|=e),km(t.return,e,n)}function ip(t,e,n,r,i){var s=t.memoizedState;s===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=e,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function aS(t,e,n){var r=e.pendingProps,i=r.revealOrder,s=r.tail;if(Ft(t,e,r.children,n),r=Ye.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&&$w(t,n,e);else if(t.tag===19)$w(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(Fe(Ye,r),!(e.mode&1))e.memoizedState=null;else switch(i){case"forwards":for(n=e.child,i=null;n!==null;)t=n.alternate,t!==null&&Dd(t)===null&&(i=n),n=n.sibling;n=i,n===null?(i=e.child,e.child=null):(i=n.sibling,n.sibling=null),ip(e,!1,i,n,s);break;case"backwards":for(n=null,i=e.child,e.child=null;i!==null;){if(t=i.alternate,t!==null&&Dd(t)===null){e.child=i;break}t=i.sibling,i.sibling=n,n=i,i=t}ip(e,!0,n,null,s);break;case"together":ip(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function id(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}
vendor: 5,608 bytes, line 41
41function oi(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Js|=e.lanes,!(n&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(W(153));if(e.child!==null){for(t=e.child,n=Zi(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Zi(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Z2(t,e,n){switch(e.tag){case 3:sS(e),ma();break;case 5:M1(e);break;case 1:en(e.type)&&Ld(e);break;case 4:Sy(e,e.stateNode.containerInfo);break;case 10:var r=e.type._context,i=e.memoizedProps.value;Fe(Nd,r._currentValue),r._currentValue=i;break;case 13:if(r=e.memoizedState,r!==null)return r.dehydrated!==null?(Fe(Ye,Ye.current&1),e.flags|=128,null):n&e.child.childLanes?oS(t,e,n):(Fe(Ye,Ye.current&1),t=oi(t,e,n),t!==null?t.sibling:null);Fe(Ye,Ye.current&1);break;case 19:if(r=(n&e.childLanes)!==0,t.flags&128){if(r)return aS(t,e,n);e.flags|=128}if(i=e.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Fe(Ye,Ye.current),r)break;return null;case 22:case 23:return e.lanes=0,rS(t,e,n)}return oi(t,e,n)}var lS,Lm,uS,cS;lS=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}};Lm=function(){};uS=function(t,e,n,r){var i=t.memoizedProps;if(i!==r){t=e.stateNode,Ms(Er.current);var s=null;switch(n){case"input":i=Qp(t,i),r=Qp(t,r),s=[];break;case"select":i=et({},i,{value:void 0}),r=et({},r,{value:void 0}),s=[];break;case"textarea":i=nm(t,i),r=nm(t,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(t.onclick=Ad)}im(n,r);var a;n=null;for(d in i)if(!r.hasOwnProperty(d)&&i.hasOwnProperty(d)&&i[d]!=null)if(d==="style"){var l=i[d];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(ql.hasOwnProperty(d)?s||(s=[]):(s=s||[]).push(d,null));for(d in r){var c=r[d];if(l=i!=null?i[d]:void 0,r.hasOwnProperty(d)&&c!==l&&(c!=null||l!=null))if(d==="style")if(l){for(a in l)!l.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&l[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(s||(s=[]),s.push(d,n)),n=c;else d==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,l=l?l.__html:void 0,c!=null&&l!==c&&(s=s||[]).push(d,c)):d==="children"?typeof c!="string"&&typeof c!="number"||(s=s||[]).push(d,""+c):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(ql.hasOwnProperty(d)?(c!=null&&d==="onScroll"&&He("scroll",t),s||l===c||(s=[])):(s=s||[]).push(d,c))}n&&(s=s||[]).push("style",n);var d=s;(e.updateQueue=d)&&(e.flags|=4)}};cS=function(t,e,n,r){n!==r&&(e.flags|=4)};function dl(t,e){if(!Ge)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 Rt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,r=0;if(e)for(var i=t.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=t,i=i.sibling;else for(i=t.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=t,i=i.sibling;return t.subtreeFlags|=r,t.childLanes=n,e}function K2(t,e,n){var r=e.pendingProps;switch(yy(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Rt(e),null;case 1:return en(e.type)&&Rd(),Rt(e),null;case 3:return r=e.stateNode,ya(),qe(Qt),qe(jt),Py(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(t===null||t.child===null)&&(Pc(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,Jn!==null&&(zm(Jn),Jn=null))),Lm(t,e),Rt(e),null;case 5:Ty(e);var i=Ms(iu.current);if(n=e.type,t!==null&&e.stateNode!=null)uS(t,e,n,r,i),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!r){if(e.stateNode===null)throw Error(W(166));return Rt(e),null}if(t=Ms(Er.current),Pc(e)){r=e.stateNode,n=e.type;var s=e.memoizedProps;switch(r[Tr]=e,r[nu]=s,t=(e.mode&1)!==0,n){case"dialog":He("cancel",r),He("close",r);break;case"iframe":case"object":case"embed":He("load",r);break;case"video":case"audio":for(i=0;i<kl.length;i++)He(kl[i],r);break;case"source":He("error",r);break;case"img":case"image":case"link":He("error",r),He("load",r);break;case"details":He("toggle",r);break;case"input":J0(r,s),He("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},He("invalid",r);break;case"textarea":X0(r,s),He("invalid",r)}im(n,s),i=null;for(var a in s)if(s.hasOwnProperty(a)){var l=s[a];a==="children"?typeof l=="string"?r.textContent!==l&&(s.suppressHydrationWarning!==!0&&Tc(r.textContent,l,t),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(s.suppressHydrationWarning!==!0&&Tc(r.textContent,l,t),i=["children",""+l]):ql.hasOwnProperty(a)&&l!=null&&a==="onScroll"&&He("scroll",r)}switch(n){case"input":yc(r),Y0(r,s,!0);break;case"textarea":yc(r),Q0(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=Ad)}r=i,e.updateQueue=r,r!==null&&(e.flags|=4)}else{a=i.nodeType===9?i:i.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=Bk(n)),t==="http://www.w3.org/1999/xhtml"?n==="script"?(t=a.createElement("div"),t.innerHTML="<script><\/script>
41",t=t.removeChild(t.firstChild)):typeof r.is=="string"?t=a.createElement(n,{is:r.is}):(t=a.createElement(n),n==="select"&&(a=t,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):t=a.createElementNS(t,n),t[Tr]=e,t[nu]=r,lS(t,e,!1,!1),e.stateNode=t;e:{switch(a=sm(n,r),n){case"dialog":He("cancel",t),He("close",t),i=r;break;case"iframe":case"object":case"embed":He("load",t),i=r;break;case"video":case"audio":for(i=0;i<kl.length;i++)He(kl[i],t);i=r;break;case"source":He("error",t),i=r;break;case"img":case"image":case"link":He("error",t),He("load",t),i=r;break;case"details":He("toggle",t),i=r;break;case"input":J0(t,r),i=Qp(t,r),He("invalid",t);break;case"option":i=r;break;case"select":t._wrapperState={wasMultiple:!!r.multiple},i=et({},r,{value:void 0}),He("invalid",t);break;case"textarea":X0(t,r),i=nm(t,r),He("invalid",t);break;default:i=r}im(n,i),l=i;for(s in l)if(l.hasOwnProperty(s)){var c=l[s];s==="style"?$k(t,c):s==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&zk(t,c)):s==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&Gl(t,c):typeof c=="number"&&Gl(t,""+c):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(ql.hasOwnProperty(s)?c!=null&&s==="onScroll"&&He("scroll",t):c!=null&&ny(t,s,c,a))}switch(n){case"input":yc(t),Y0(t,r,!1);break;case"textarea":yc(t),Q0(t);break;case"option":r.value!=null&&t.setAttribute("value",""+Yi(r.value));break;case"select":t.multiple=!!r.multiple,s=r.value,s!=null?Go(t,!!r.multiple,s,!1):r.defaultValue!=null&&Go(t,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(t.onclick=Ad)}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 Rt(e),null;case 6:if(t&&e.stateNode!=null)cS(t,e,t.memoizedProps,r);else{if(typeof r!="string"&&e.stateNode===null)throw Error(W(166));if(n=Ms(iu.current),Ms(Er.current),Pc(e)){if(r=e.stateNode,n=e.memoizedProps,r[Tr]=e,(s=r.nodeValue!==n)&&(t=cn,t!==null))switch(t.tag){case 3:Tc(r.nodeValue,n,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&Tc(r.nodeValue,n,(t.mode&1)!==0)}s&&(e.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Tr]=e,e.stateNode=r}return Rt(e),null;case 13:if(qe(Ye),r=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(Ge&&un!==null&&e.mode&1&&!(e.flags&128))E1(),ma(),e.flags|=98560,s=!1;else if(s=Pc(e),r!==null&&r.dehydrated!==null){if(t===null){if(!s)throw Error(W(318));if(s=e.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(W(317));s[Tr]=e}else ma(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;Rt(e),s=!1}else Jn!==null&&(zm(Jn),Jn=null),s=!0;if(!s)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||Ye.current&1?yt===0&&(yt=3):By())),e.updateQueue!==null&&(e.flags|=4),Rt(e),null);case 4:return ya(),Lm(t,e),t===null&&eu(e.stateNode.containerInfo),Rt(e),null;case 10:return by(e.type._context),Rt(e),null;case 17:return en(e.type)&&Rd(),Rt(e),null;case 19:if(qe(Ye),s=e.memoizedState,s===null)return Rt(e),null;if(r=(e.flags&128)!==0,a=s.rendering,a===null)if(r)dl(s,!1);else{if(yt!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(a=Dd(t),a!==null){for(e.flags|=128,dl(s,!1),r=a.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),e.subtreeFlags=0,r=n,n=e.child;n!==null;)s=n,t=r,s.flags&=14680066,a=s.alternate,a===null?(s.childLanes=0,s.lanes=t,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=a.childLanes,s.lanes=a.lanes,s.child=a.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=a.memoizedProps,s.memoizedState=a.memoizedState,s.updateQueue=a.updateQueue,s.type=a.type,t=a.dependencies,s.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),n=n.sibling;return Fe(Ye,Ye.current&1|2),e.child}t=t.sibling}s.tail!==null&&at()>wa&&(e.flags|=128,r=!0,dl(s,!1),e.lanes=4194304)}else{if(!r)if(t=Dd(a),t!==null){if(e.flags|=128,r=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),dl(s,!0),s.tail===null&&s.tailMode==="hidden"&&!a.alternate&&!Ge)return Rt(e),null}else 2*at()-s.renderingStartTime>wa&&n!==1073741824&&(e.flags|=128,r=!0,dl(s,!1),e.lanes=4194304);s.isBackwards?(a.sibling=e.child,e.child=a):(n=s.last,n!==null?n.sibling=a:e.child=a,s.last=a)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=at(),e.sibling=null,n=Ye.current,Fe(Ye,r?n&1|2:n&1),e):(Rt(e),null);case 22:case 23:return Dy(),r=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?on&1073741824&&(Rt(e),e.subtreeFlags&6&&(e.flags|=8192)):Rt(e),null;case 24:return null;case 25:return null}throw Error(W(156,e.tag))}function J2(t,e){switch(yy(e),e.tag){case 1:return en(e.type)&&Rd(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;
vendor: 25,593 bytes, line 41
41case 3:return ya(),qe(Qt),qe(jt),Py(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return Ty(e),null;case 13:if(qe(Ye),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(W(340));ma()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return qe(Ye),null;case 4:return ya(),null;case 10:return by(e.type._context),null;case 22:case 23:return Dy(),null;case 24:return null;default:return null}}var Ac=!1,Mt=!1,Y2=typeof WeakSet=="function"?WeakSet:Set,ne=null;function zo(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){it(t,e,r)}else n.current=null}function Om(t,e,n){try{n()}catch(r){it(t,e,r)}}var Uw=!1;function X2(t,e){if(mm=Pd,t=m1(),my(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 i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var a=0,l=-1,c=-1,d=0,f=0,p=t,g=null;t:for(;;){for(var y;p!==n||i!==0&&p.nodeType!==3||(l=a+i),p!==s||r!==0&&p.nodeType!==3||(c=a+r),p.nodeType===3&&(a+=p.nodeValue.length),(y=p.firstChild)!==null;)g=p,p=y;for(;;){if(p===t)break t;if(g===n&&++d===i&&(l=a),g===s&&++f===r&&(c=a),(y=p.nextSibling)!==null)break;p=g,g=p.parentNode}p=y}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(gm={focusedElem:t,selectionRange:n},Pd=!1,ne=e;ne!==null;)if(e=ne,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,ne=t;else for(;ne!==null;){e=ne;try{var b=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var _=b.memoizedProps,T=b.memoizedState,x=e.stateNode,S=x.getSnapshotBeforeUpdate(e.elementType===e.type?_:Hn(e.type,_),T);x.__reactInternalSnapshotBeforeUpdate=S}break;case 3:var k=e.stateNode.containerInfo;k.nodeType===1?k.textContent="":k.nodeType===9&&k.documentElement&&k.removeChild(k.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(W(163))}}catch(E){it(e,e.return,E)}if(t=e.sibling,t!==null){t.return=e.return,ne=t;break}ne=e.return}return b=Uw,Uw=!1,b}function jl(t,e,n){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&t)===t){var s=i.destroy;i.destroy=void 0,s!==void 0&&Om(e,n,s)}i=i.next}while(i!==r)}}function Eh(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 Mm(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 dS(t){var e=t.alternate;e!==null&&(t.alternate=null,dS(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[Tr],delete e[nu],delete e[wm],delete e[N2],delete e[j2])),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 hS(t){return t.tag===5||t.tag===3||t.tag===4}function Vw(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||hS(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 Nm(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=Ad));else if(r!==4&&(t=t.child,t!==null))for(Nm(t,e,n),t=t.sibling;t!==null;)Nm(t,e,n),t=t.sibling}function jm(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(jm(t,e,n),t=t.sibling;t!==null;)jm(t,e,n),t=t.sibling}var kt=null,Kn=!1;function yi(t,e,n){for(n=n.child;n!==null;)fS(t,e,n),n=n.sibling}function fS(t,e,n){if(Cr&&typeof Cr.onCommitFiberUnmount=="function")try{Cr.onCommitFiberUnmount(_h,n)}catch{}switch(n.tag){case 5:Mt||zo(n,e);case 6:var r=kt,i=Kn;kt=null,yi(t,e,n),kt=r,Kn=i,kt!==null&&(Kn?(t=kt,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):kt.removeChild(n.stateNode));break;case 18:kt!==null&&(Kn?(t=kt,n=n.stateNode,t.nodeType===8?Yf(t.parentNode,n):t.nodeType===1&&Yf(t,n),Yl(t)):Yf(kt,n.stateNode));break;case 4:r=kt,i=Kn,kt=n.stateNode.containerInfo,Kn=!0,yi(t,e,n),kt=r,Kn=i;break;case 0:case 11:case 14:case 15:if(!Mt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,a=s.destroy;s=s.tag,a!==void 0&&(s&2||s&4)&&Om(n,e,a),i=i.next}while(i!==r)}yi(t,e,n);break;case 1:if(!Mt&&(zo(n,e),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){it(n,e,l)}yi(t,e,n);break;case 21:yi(t,e,n);break;case 22:n.mode&1?(Mt=(r=Mt)||n.memoizedState!==null,yi(t,e,n),Mt=r):yi(t,e,n);break;default:yi(t,e,n)}}function Hw(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new Y2),e.forEach(function(r){var i=aL.bind(null,t,r);n.has(r)||(n.add(r),r.then(i,i))})}}function zn(t,e){var n=e.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var s=t,a=e,l=a;e:for(;l!==null;){switch(l.tag){case 5:kt=l.stateNode,Kn=!1;break e;case 3:kt=l.stateNode.containerInfo,Kn=!0;break e;case 4:kt=l.stateNode.containerInfo,Kn=!0;break e}l=l.return}if(kt===null)throw Error(W(160));fS(s,a,i),kt=null,Kn=!1;var c=i.alternate;c!==null&&(c.return=null),i.return=null}catch(d){it(i,e,d)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)pS(e,t),e=e.sibling}function pS(t,e){var n=t.alternate,r=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(zn(e,t),yr(t),r&4){try{jl(3,t,t.return),Eh(3,t)}catch(_){it(t,t.return,_)}try{jl(5,t,t.return)}catch(_){it(t,t.return,_)}}break;case 1:zn(e,t),yr(t),r&512&&n!==null&&zo(n,n.return);break;case 5:if(zn(e,t),yr(t),r&512&&n!==null&&zo(n,n.return),t.flags&32){var i=t.stateNode;try{Gl(i,"")}catch(_){it(t,t.return,_)}}if(r&4&&(i=t.stateNode,i!=null)){var s=t.memoizedProps,a=n!==null?n.memoizedProps:s,l=t.type,c=t.updateQueue;if(t.updateQueue=null,c!==null)try{l==="input"&&s.type==="radio"&&s.name!=null&&Ik(i,s),sm(l,a);var d=sm(l,s);for(a=0;a<c.length;a+=2){var f=c[a],p=c[a+1];f==="style"?$k(i,p):f==="dangerouslySetInnerHTML"?zk(i,p):f==="children"?Gl(i,p):ny(i,f,p,d)}switch(l){case"input":em(i,s);break;case"textarea":Dk(i,s);break;case"select":var g=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var y=s.value;y!=null?Go(i,!!s.multiple,y,!1):g!==!!s.multiple&&(s.defaultValue!=null?Go(i,!!s.multiple,s.defaultValue,!0):Go(i,!!s.multiple,s.multiple?[]:"",!1))}i[nu]=s}catch(_){it(t,t.return,_)}}break;case 6:if(zn(e,t),yr(t),r&4){if(t.stateNode===null)throw Error(W(162));i=t.stateNode,s=t.memoizedProps;try{i.nodeValue=s}catch(_){it(t,t.return,_)}}break;case 3:if(zn(e,t),yr(t),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Yl(e.containerInfo)}catch(_){it(t,t.return,_)}break;case 4:zn(e,t),yr(t);break;case 13:zn(e,t),yr(t),i=t.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(jy=at())),r&4&&Hw(t);break;case 22:if(f=n!==null&&n.memoizedState!==null,t.mode&1?(Mt=(d=Mt)||f,zn(e,t),Mt=d):zn(e,t),yr(t),r&8192){if(d=t.memoizedState!==null,(t.stateNode.isHidden=d)&&!f&&t.mode&1)for(ne=t,f=t.child;f!==null;){for(p=ne=f;ne!==null;){switch(g=ne,y=g.child,g.tag){case 0:case 11:case 14:case 15:jl(4,g,g.return);break;case 1:zo(g,g.return);var b=g.stateNode;if(typeof b.componentWillUnmount=="function"){r=g,n=g.return;try{e=r,b.props=e.memoizedProps,b.state=e.memoizedState,b.componentWillUnmount()}catch(_){it(r,n,_)}}break;case 5:zo(g,g.return);break;case 22:if(g.memoizedState!==null){qw(p);continue}}y!==null?(y.return=g,ne=y):qw(p)}f=f.sibling}e:for(f=null,p=t;;){if(p.tag===5){if(f===null){f=p;try{i=p.stateNode,d?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(l=p.stateNode,c=p.memoizedProps.style,a=c!=null&&c.hasOwnProperty("display")?c.display:null,l.style.display=Fk("display",a))}catch(_){it(t,t.return,_)}}}else if(p.tag===6){if(f===null)try{p.stateNode.nodeValue=d?"":p.memoizedProps}catch(_){it(t,t.return,_)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===t)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===t)break e;for(;p.sibling===null;){if(p.return===null||p.return===t)break e;f===p&&(f=null),p=p.return}f===p&&(f=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:zn(e,t),yr(t),r&4&&Hw(t);break;case 21:break;default:zn(e,t),yr(t)}}function yr(t){var e=t.flags;if(e&2){try{e:{for(var n=t.return;n!==null;){if(hS(n)){var r=n;break e}n=n.return}throw Error(W(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Gl(i,""),r.flags&=-33);var s=Vw(t);jm(t,s,i);break;case 3:case 4:var a=r.stateNode.containerInfo,l=Vw(t);Nm(t,l,a);break;default:throw Error(W(161))}}catch(c){it(t,t.return,c)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Q2(t,e,n){ne=t,mS(t)}function mS(t,e,n){for(var r=(t.mode&1)!==0;ne!==null;){var i=ne,s=i.child;if(i.tag===22&&r){var a=i.memoizedState!==null||Ac;if(!a){var l=i.alternate,c=l!==null&&l.memoizedState!==null||Mt;l=Ac;var d=Mt;if(Ac=a,(Mt=c)&&!d)for(ne=i;ne!==null;)a=ne,c=a.child,a.tag===22&&a.memoizedState!==null?Gw(i):c!==null?(c.return=a,ne=c):Gw(i);for(;s!==null;)ne=s,mS(s),s=s.sibling;ne=i,Ac=l,Mt=d}Ww(t)}else i.subtreeFlags&8772&&s!==null?(s.return=i,ne=s):Ww(t)}}function Ww(t){for(;ne!==null;){var e=ne;if(e.flags&8772){var n=e.alternate;try{if(e.flags&8772)switch(e.tag){case 0:case 11:case 15:Mt||Eh(5,e);break;case 1:var r=e.stateNode;if(e.flags&4&&!Mt)if(n===null)r.componentDidMount();else{var i=e.elementType===e.type?n.memoizedProps:Hn(e.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=e.updateQueue;s!==null&&Aw(e,s,r);break;case 3:var a=e.updateQueue;if(a!==null){if(n=null,e.child!==null)switch(e.child.tag){case 5:n=e.child.stateNode;break;case 1:n=e.child.stateNode}Aw(e,a,n)}break;case 5:var l=e.stateNode;if(n===null&&e.flags&4){n=l;var c=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(e.memoizedState===null){var d=e.alternate;if(d!==null){var f=d.memoizedState;if(f!==null){var p=f.dehydrated;p!==null&&Yl(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(W(163))}Mt||e.flags&512&&Mm(e)}catch(g){it(e,e.return,g)}}if(e===t){ne=null;break}if(n=e.sibling,n!==null){n.return=e.return,ne=n;break}ne=e.return}}function qw(t){for(;ne!==null;){var e=ne;if(e===t){ne=null;break}var n=e.sibling;if(n!==null){n.return=e.return,ne=n;break}ne=e.return}}function Gw(t){for(;ne!==null;){var e=ne;try{switch(e.tag){case 0:case 11:case 15:var n=e.return;try{Eh(4,e)}catch(c){it(e,n,c)}break;case 1:var r=e.stateNode;if(typeof r.componentDidMount=="function"){var i=e.return;try{r.componentDidMount()}catch(c){it(e,i,c)}}var s=e.return;try{Mm(e)}catch(c){it(e,s,c)}break;case 5:var a=e.return;try{Mm(e)}catch(c){it(e,a,c)}}}catch(c){it(e,e.return,c)}if(e===t){ne=null;break}var l=e.sibling;if(l!==null){l.return=e.return,ne=l;break}ne=e.return}}var eL=Math.ceil,Fd=di.ReactCurrentDispatcher,My=di.ReactCurrentOwner,An=di.ReactCurrentBatchConfig,Re=0,bt=null,ft=null,Tt=0,on=0,Fo=ls(0),yt=0,lu=null,Js=0,Ah=0,Ny=0,Il=null,Yt=null,jy=0,wa=1/0,Kr=null,$d=!1,Im=null,qi=null,Rc=!1,Di=null,Ud=0,Dl=0,Dm=null,sd=-1,od=0;function Ht(){return Re&6?at():sd!==-1?sd:sd=at()}function Gi(t){return t.mode&1?Re&2&&Tt!==0?Tt&-Tt:D2.transition!==null?(od===0&&(od=Qk()),od):(t=Ie,t!==0||(t=window.event,t=t===void 0?16:o1(t.type)),t):1}function er(t,e,n,r){if(50<Dl)throw Dl=0,Dm=null,Error(W(185));Mu(t,n,r),(!(Re&2)||t!==bt)&&(t===bt&&(!(Re&2)&&(Ah|=n),yt===4&&Ei(t,Tt)),tn(t,r),n===1&&Re===0&&!(e.mode&1)&&(wa=at()+500,Th&&us()))}function tn(t,e){var n=t.callbackNode;DR(t,e);var r=Td(t,t===bt?Tt:0);if(r===0)n!==null&&nw(n),t.callbackNode=null,t.callbackPriority=0;else if(e=r&-r,t.callbackPriority!==e){if(n!=null&&nw(n),e===1)t.tag===0?I2(Zw.bind(null,t)):T1(Zw.bind(null,t)),O2(function(){!(Re&6)&&us()}),n=null;else{switch(e1(r)){case 1:n=ay;break;case 4:n=Yk;break;case 16:n=Sd;break;case 536870912:n=Xk;break;default:n=Sd}n=kS(n,gS.bind(null,t))}t.callbackPriority=e,t.callbackNode=n}}function gS(t,e){if(sd=-1,od=0,Re&6)throw Error(W(327));var n=t.callbackNode;if(Xo()&&t.callbackNode!==n)return null;var r=Td(t,t===bt?Tt:0);if(r===0)return null;if(r&30||r&t.expiredLanes||e)e=Vd(t,r);else{e=r;var i=Re;Re|=2;var s=vS();(bt!==t||Tt!==e)&&(Kr=null,wa=at()+500,Hs(t,e));do try{rL();break}catch(l){yS(t,l)}while(!0);_y(),Fd.current=s,Re=i,ft!==null?e=0:(bt=null,Tt=0,e=yt)}if(e!==0){if(e===2&&(i=cm(t),i!==0&&(r=i,e=Bm(t,i))),e===1)throw n=lu,Hs(t,0),Ei(t,r),tn(t,at()),n;if(e===6)Ei(t,r);else{if(i=t.current.alternate,!(r&30)&&!tL(i)&&(e=Vd(t,r),e===2&&(s=cm(t),s!==0&&(r=s,e=Bm(t,s))),e===1))throw n=lu,Hs(t,0),Ei(t,r),tn(t,at()),n;switch(t.finishedWork=i,t.finishedLanes=r,e){case 0:case 1:throw Error(W(345));case 2:Es(t,Yt,Kr);break;case 3:if(Ei(t,r),(r&130023424)===r&&(e=jy+500-at(),10<e)){if(Td(t,0)!==0)break;if(i=t.suspendedLanes,(i&r)!==r){Ht(),t.pingedLanes|=t.suspendedLanes&i;break}t.timeoutHandle=vm(Es.bind(null,t,Yt,Kr),e);break}Es(t,Yt,Kr);break;case 4:if(Ei(t,r),(r&4194240)===r)break;for(e=t.eventTimes,i=-1;0<r;){var a=31-Qn(r);s=1<<a,a=e[a],a>i&&(i=a),r&=~s}if(r=i,r=at()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*eL(r/1960))-r,10<r){t.timeoutHandle=vm(Es.bind(null,t,Yt,Kr),r);break}Es(t,Yt,Kr);break;case 5:Es(t,Yt,Kr);break;default:throw Error(W(329))}}}return tn(t,at()),t.callbackNode===n?gS.bind(null,t):null}function Bm(t,e){var n=Il;return t.current.memoizedState.isDehydrated&&(Hs(t,e).flags|=256),t=Vd(t,e),t!==2&&(e=Yt,Yt=n,e!==null&&zm(e)),t}function zm(t){Yt===null?Yt=t:Yt.push.apply(Yt,t)}function tL(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 i=n[r],s=i.getSnapshot;i=i.value;try{if(!tr(s(),i))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 Ei(t,e){for(e&=~Ny,e&=~Ah,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-Qn(e),r=1<<n;t[n]=-1,e&=~r}}function Zw(t){if(Re&6)throw Error(W(327));Xo();var e=Td(t,0);if(!(e&1))return tn(t,at()),null;var n=Vd(t,e);if(t.tag!==0&&n===2){var r=cm(t);r!==0&&(e=r,n=Bm(t,r))}if(n===1)throw n=lu,Hs(t,0),Ei(t,e),tn(t,at()),n;if(n===6)throw Error(W(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,Es(t,Yt,Kr),tn(t,at()),null}function Iy(t,e){var n=Re;Re|=1;try{return t(e)}finally{Re=n,Re===0&&(wa=at()+500,Th&&us())}}function Ys(t){Di!==null&&Di.tag===0&&!(Re&6)&&Xo();var e=Re;Re|=1;var n=An.transition,r=Ie;try{if(An.transition=null,Ie=1,t)return t()}finally{Ie=r,An.transition=n,Re=e,!(Re&6)&&us()}}function Dy(){on=Fo.current,qe(Fo)}function Hs(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(n!==-1&&(t.timeoutHandle=-1,L2(n)),ft!==null)for(n=ft.return;n!==null;){var r=n;switch(yy(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Rd();break;case 3:ya(),qe(Qt),qe(jt),Py();break;case 5:Ty(r);break;case 4:ya();break;case 13:qe(Ye);break;case 19:qe(Ye);break;case 10:by(r.type._context);break;case 22:case 23:Dy()}n=n.return}if(bt=t,ft=t=Zi(t.current,null),Tt=on=e,yt=0,lu=null,Ny=Ah=Js=0,Yt=Il=null,Os!==null){for(e=0;e<Os.length;e++)if(n=Os[e],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,s=n.pending;if(s!==null){var a=s.next;s.next=i,r.next=a}n.pending=r}Os=null}return t}function yS(t,e){do{var n=ft;try{if(_y(),nd.current=zd,Bd){for(var r=Qe.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Bd=!1}if(Ks=0,_t=mt=Qe=null,Nl=!1,su=0,My.current=null,n===null||n.return===null){yt=1,lu=e,ft=null;break}e:{var s=t,a=n.return,l=n,c=e;if(e=Tt,l.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var d=c,f=l,p=f.tag;if(!(f.mode&1)&&(p===0||p===11||p===15)){var g=f.alternate;g?(f.updateQueue=g.updateQueue,f.memoizedState=g.memoizedState,f.lanes=g.lanes):(f.updateQueue=null,f.memoizedState=null)}var y=jw(a);if(y!==null){y.flags&=-257,Iw(y,a,l,s,e),y.mode&1&&Nw(s,d,e),e=y,c=d;var b=e.updateQueue;if(b===null){var _=new Set;_.add(c),e.updateQueue=_}else b.add(c);break e}else{if(!(e&1)){Nw(s,d,e),By();break e}c=Error(W(426))}}else if(Ge&&l.mode&1){var T=jw(a);if(T!==null){!(T.flags&65536)&&(T.flags|=256),Iw(T,a,l,s,e),vy(va(c,l));break e}}s=c=va(c,l),yt!==4&&(yt=2),Il===null?Il=[s]:Il.push(s),s=a;do{switch(s.tag){case 3:s.flags|=65536,e&=-e,s.lanes|=e;var x=eS(s,c,e);Ew(s,x);break e;case 1:l=c;var S=s.type,k=s.stateNode;if(!(s.flags&128)&&(typeof S.getDerivedStateFromError=="function"||k!==null&&typeof k.componentDidCatch=="function"&&(qi===null||!qi.has(k)))){s.flags|=65536,e&=-e,s.lanes|=e;var E=tS(s,l,e);Ew(s,E);break e}}s=s.return}while(s!==null)}_S(n)}catch(A){e=A,ft===n&&n!==null&&(ft=n=n.return);continue}break}while(!0)}function vS(){var t=Fd.current;return Fd.current=zd,t===null?zd:t}function By(){(yt===0||yt===3||yt===2)&&(yt=4),bt===null||!(Js&268435455)&&!(Ah&268435455)||Ei(bt,Tt)}function Vd(t,e){var n=Re;Re|=2;var r=vS();(bt!==t||Tt!==e)&&(Kr=null,Hs(t,e));do try{nL();break}catch(i){yS(t,i)}while(!0);if(_y(),Re=n,Fd.current=r,ft!==null)throw Error(W(261));return bt=null,Tt=0,yt}function nL(){for(;ft!==null;)wS(ft)}function rL(){for(;ft!==null&&!ER();)wS(ft)}function wS(t){var e=xS(t.alternate,t,on);t.memoizedProps=t.pendingProps,e===null?_S(t):ft=e,My.current=null}function _S(t){var e=t;do{var n=e.alternate;if(t=e.return,e.flags&32768){if(n=J2(n,e),n!==null){n.flags&=32767,ft=n;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{yt=6,ft=null;return}}else if(n=K2(n,e,on),n!==null){ft=n;return}if(e=e.sibling,e!==null){ft=e;return}ft=e=t}while(e!==null);yt===0&&(yt=5)}function Es(t,e,n){var r=Ie,i=An.transition;try{An.transition=null,Ie=1,iL(t,e,n,r)}finally{An.transition=i,Ie=r}return null}function iL(t,e,n,r){do Xo();while(Di!==null);if(Re&6)throw Error(W(327));n=t.finishedWork;var i=t.finishedLanes;if(n===null)return null;if(t.finishedWork=null,t.finishedLanes=0,n===t.current)throw Error(W(177));t.callbackNode=null,t.callbackPriority=0;var s=n.lanes|n.childLanes;if(BR(t,s),t===bt&&(ft=bt=null,Tt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Rc||(Rc=!0,kS(Sd,function(){return Xo(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=An.transition,An.transition=null;var a=Ie;Ie=1;var l=Re;Re|=4,My.current=null,X2(t,n),pS(n,t),S2(gm),Pd=!!mm,gm=mm=null,t.current=n,Q2(n),AR(),Re=l,Ie=a,An.transition=s}else t.current=n;if(Rc&&(Rc=!1,Di=t,Ud=i),s=t.pendingLanes,s===0&&(qi=null),OR(n.stateNode),tn(t,at()),e!==null)for(r=t.onRecoverableError,n=0;n<e.length;n++)i=e[n],r(i.value,{componentStack:i.stack,digest:i.digest});if($d)throw $d=!1,t=Im,Im=null,t;return Ud&1&&t.tag!==0&&Xo(),s=t.pendingLanes,s&1?t===Dm?Dl++:(Dl=0,Dm=t):Dl=0,us(),null}function Xo(){if(Di!==null){var t=e1(Ud),e=An.transition,n=Ie;try{if(An.transition=null,Ie=16>t?16:t,Di===null)var r=!1;else{if(t=Di,Di=null,Ud=0,Re&6)throw Error(W(331));var i=Re;for(Re|=4,ne=t.current;ne!==null;){var s=ne,a=s.child;if(ne.flags&16){var l=s.deletions;if(l!==null){for(var c=0;c<l.length;c++){var d=l[c];for(ne=d;ne!==null;){var f=ne;switch(f.tag){case 0:case 11:case 15:jl(8,f,s)}var p=f.child;if(p!==null)p.return=f,ne=p;else for(;ne!==null;){f=ne;var g=f.sibling,y=f.return;if(dS(f),f===d){ne=null;break}if(g!==null){g.return=y,ne=g;break}ne=y}}}var b=s.alternate;if(b!==null){var _=b.child;if(_!==null){b.child=null;do{var T=_.sibling;_.sibling=null,_=T}while(_!==null)}}ne=s}}if(s.subtreeFlags&2064&&a!==null)a.return=s,ne=a;else e:for(;ne!==null;){if(s=ne,s.flags&2048)switch(s.tag){case 0:case 11:case 15:jl(9,s,s.return)}var x=s.sibling;if(x!==null){x.return=s.return,ne=x;break e}ne=s.return}}var S=t.current;for(ne=S;ne!==null;){a=ne;var k=a.child;if(a.subtreeFlags&2064&&k!==null)k.return=a,ne=k;else e:for(a=S;ne!==null;){if(l=ne,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Eh(9,l)}}catch(A){it(l,l.return,A)}if(l===a){ne=null;break e}var E=l.sibling;if(E!==null){E.return=l.return,ne=E;break e}ne=l.return}}if(Re=i,us(),Cr&&typeof Cr.onPostCommitFiberRoot=="function")try{Cr.onPostCommitFiberRoot(_h,t)}catch{}r=!0}return r}finally{Ie=n,An.transition=e}}return!1}function Kw(t,e,n){e=va(n,e),e=eS(t,e,1),t=Wi(t,e,1),e=Ht(),t!==null&&(Mu(t,1,e),tn(t,e))}function it(t,e,n){if(t.tag===3)Kw(t,t,n);else for(;e!==null;){if(e.tag===3){Kw(e,t,n);break}else if(e.tag===1){var r=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(qi===null||!qi.has(r))){t=va(n,t),t=tS(e,t,1),e=Wi(e,t,1),t=Ht(),e!==null&&(Mu(e,1,t),tn(e,t));break}}e=e.return}}function sL(t,e,n){var r=t.pingCache;r!==null&&r.delete(e),e=Ht(),t.pingedLanes|=t.suspendedLanes&n,bt===t&&(Tt&n)===n&&(yt===4||yt===3&&(Tt&130023424)===Tt&&500>at()-jy?Hs(t,0):Ny|=n),tn(t,e)}function bS(t,e){e===0&&(t.mode&1?(e=_c,_c<<=1,!(_c&130023424)&&(_c=4194304)):e=1);var n=Ht();t=si(t,e),t!==null&&(Mu(t,e,n),tn(t,n))}function oL(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),bS(t,n)}function aL(t,e){var n=0;switch(t.tag){case 13:var r=t.stateNode,i=t.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=t.stateNode;break;default:throw Error(W(314))}r!==null&&r.delete(e),bS(t,n)}var xS;xS=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||Qt.current)Xt=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return Xt=!1,Z2(t,e,n);Xt=!!(t.flags&131072)}else Xt=!1,Ge&&e.flags&1048576&&P1(e,Md,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;id(t,e),t=e.pendingProps;var i=pa(e,jt.current);Yo(e,n),i=Ey(null,e,r,t,i,n);var s=Ay();return e.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,en(r)?(s=!0,Ld(e)):s=!1,e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,ky(e),i.updater=Ch,e.stateNode=i,i._reactInternals=e,Tm(e,r,t,n),e=Em(null,e,r,!0,s,n)):(e.tag=0,Ge&&s&&gy(e),Ft(null,e,i,n),e=e.child),e;case 16:r=e.elementType;e:{switch(id(t,e),t=e.pendingProps,i=r._init,r=i(r._payload),e.type=r,i=e.tag=uL(r),t=Hn(r,t),i){case 0:e=Cm(null,e,r,t,n);break e;case 1:e=zw(null,e,r,t,n);break e;case 11:e=Dw(null,e,r,t,n);break e;case 14:e=Bw(null,e,r,Hn(r.type,t),n);break e}throw Error(W(306,r,""))}return e;case 0:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Hn(r,i),Cm(t,e,r,i,n);case 1:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Hn(r,i),zw(t,e,r,i,n);case 3:e:{if(sS(e),t===null)throw Error(W(387));r=e.pendingProps,s=e.memoizedState,i=s.element,O1(t,e),Id(e,r,null,n);var a=e.memoizedState;if(r=a.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},e.updateQueue.baseState=s,e.memoizedState=s,e.flags&256){i=va(Error(W(423)),e),e=Fw(t,e,r,n,i);break e}else if(r!==i){i=va(Error(W(424)),e),e=Fw(t,e,r,n,i);break e}else for(un=Hi(e.stateNode.containerInfo.firstChild),cn=e,Ge=!0,Jn=null,n=R1(e,null,r,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ma(),r===i){e=oi(t,e,n);break e}Ft(t,e,r,n)}e=e.child}return e;case 5:return M1(e),t===null&&xm(e),r=e.type,i=e.pendingProps,s=t!==null?t.memoizedProps:null,a=i.children,ym(r,i)?a=null:s!==null&&ym(r,s)&&(e.flags|=32),iS(t,e),Ft(t,e,a,n),e.child;case 6:return t===null&&xm(e),null;case 13:return oS(t,e,n);case 4:return Sy(e,e.stateNode.containerInfo),r=e.pendingProps,t===null?e.child=ga(e,null,r,n):Ft(t,e,r,n),e.child;case 11:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Hn(r,i),Dw(t,e,r,i,n);case 7:return Ft(t,e,e.pendingProps,n),e.child;case 8:return Ft(t,e,e.pendingProps.children,n),e.child;case 12:return Ft(t,e,e.pendingProps.children,n),e.child;case 10:e:{if(r=e.type._context,i=e.pendingProps,s=e.memoizedProps,a=i.value,Fe(Nd,r._currentValue),r._currentValue=a,s!==null)if(tr(s.value,a)){if(s.children===i.children&&!Qt.current){e=oi(t,e,n);break e}}else for(s=e.child,s!==null&&(s.return=e);s!==null;){var l=s.dependencies;if(l!==null){a=s.child;for(var c=l.firstContext;c!==null;){if(c.context===r){if(s.tag===1){c=ni(-1,n&-n),c.tag=2;var d=s.updateQueue;if(d!==null){d=d.shared;var f=d.pending;f===null?c.next=c:(c.next=f.next,f.next=c),d.pending=c}}s.lanes|=n,c=s.alternate,c!==null&&(c.lanes|=n),km(s.return,n,e),l.lanes|=n;break}c=c.next}}else if(s.tag===10)a=s.type===e.type?null:s.child;else if(s.tag===18){if(a=s.return,a===null)throw Error(W(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),km(a,n,e),a=s.sibling}else a=s.child;if(a!==null)a.return=s;else for(a=s;a!==null;){if(a===e){a=null;break}if(s=a.sibling,s!==null){s.return=a.return,a=s;break}a=a.return}s=a}Ft(t,e,i.children,n),e=e.child}return e;case 9:return i=e.type,r=e.pendingProps.children,Yo(e,n),i=On(i),r=r(i),e.flags|=1,Ft(t,e,r,n),e.child;case 14:return r=e.type,i=Hn(r,e.pendingProps),i=Hn(r.type,i),Bw(t,e,r,i,n);
vendor: 6,055 bytes, line 41
41case 15:return nS(t,e,e.type,e.pendingProps,n);case 17:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Hn(r,i),id(t,e),e.tag=1,en(r)?(t=!0,Ld(e)):t=!1,Yo(e,n),Q1(e,r,i),Tm(e,r,i,n),Em(null,e,r,!0,t,n);case 19:return aS(t,e,n);case 22:return rS(t,e,n)}throw Error(W(156,e.tag))};function kS(t,e){return Jk(t,e)}function lL(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 Cn(t,e,n,r){return new lL(t,e,n,r)}function zy(t){return t=t.prototype,!(!t||!t.isReactComponent)}function uL(t){if(typeof t=="function")return zy(t)?1:0;if(t!=null){if(t=t.$$typeof,t===iy)return 11;if(t===sy)return 14}return 2}function Zi(t,e){var n=t.alternate;return n===null?(n=Cn(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 ad(t,e,n,r,i,s){var a=2;if(r=t,typeof t=="function")zy(t)&&(a=1);else if(typeof t=="string")a=5;else e:switch(t){case Ro:return Ws(n.children,i,s,e);case ry:a=8,i|=8;break;case Kp:return t=Cn(12,n,e,i|2),t.elementType=Kp,t.lanes=s,t;case Jp:return t=Cn(13,n,e,i),t.elementType=Jp,t.lanes=s,t;case Yp:return t=Cn(19,n,e,i),t.elementType=Yp,t.lanes=s,t;case Mk:return Rh(n,i,s,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Lk:a=10;break e;case Ok:a=9;break e;case iy:a=11;break e;case sy:a=14;break e;case Si:a=16,r=null;break e}throw Error(W(130,t==null?t:typeof t,""))}return e=Cn(a,n,e,i),e.elementType=t,e.type=r,e.lanes=s,e}function Ws(t,e,n,r){return t=Cn(7,t,r,e),t.lanes=n,t}function Rh(t,e,n,r){return t=Cn(22,t,r,e),t.elementType=Mk,t.lanes=n,t.stateNode={isHidden:!1},t}function sp(t,e,n){return t=Cn(6,t,null,e),t.lanes=n,t}function op(t,e,n){return e=Cn(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function cL(t,e,n,r,i){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=Ff(0),this.expirationTimes=Ff(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ff(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Fy(t,e,n,r,i,s,a,l,c){return t=new cL(t,e,n,l,c),e===1?(e=1,s===!0&&(e|=8)):e=0,s=Cn(3,null,null,e),t.current=s,s.stateNode=t,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ky(s),t}function dL(t,e,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ao,key:r==null?null:""+r,children:t,containerInfo:e,implementation:n}}function SS(t){if(!t)return Xi;t=t._reactInternals;e:{if(to(t)!==t||t.tag!==1)throw Error(W(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(en(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(W(171))}if(t.tag===1){var n=t.type;if(en(n))return S1(t,n,e)}return e}function TS(t,e,n,r,i,s,a,l,c){return t=Fy(n,r,!0,t,i,s,a,l,c),t.context=SS(null),n=t.current,r=Ht(),i=Gi(n),s=ni(r,i),s.callback=e??null,Wi(n,s,i),t.current.lanes=i,Mu(t,i,r),tn(t,r),t}function Lh(t,e,n,r){var i=e.current,s=Ht(),a=Gi(i);return n=SS(n),e.context===null?e.context=n:e.pendingContext=n,e=ni(s,a),e.payload={element:t},r=r===void 0?null:r,r!==null&&(e.callback=r),t=Wi(i,e,a),t!==null&&(er(t,i,a,s),td(t,i,a)),a}function Hd(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 Jw(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function $y(t,e){Jw(t,e),(t=t.alternate)&&Jw(t,e)}function hL(){return null}var PS=typeof reportError=="function"?reportError:function(t){console.error(t)};function Uy(t){this._internalRoot=t}Oh.prototype.render=Uy.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(W(409));Lh(t,e,null,null)};Oh.prototype.unmount=Uy.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Ys(function(){Lh(null,t,null,null)}),e[ii]=null}};function Oh(t){this._internalRoot=t}Oh.prototype.unstable_scheduleHydration=function(t){if(t){var e=r1();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Ci.length&&e!==0&&e<Ci[n].priority;n++);Ci.splice(n,0,t),n===0&&s1(t)}};function Vy(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function Mh(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function Yw(){}function fL(t,e,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var d=Hd(a);s.call(d)}}var a=TS(e,r,t,0,null,!1,!1,"",Yw);return t._reactRootContainer=a,t[ii]=a.current,eu(t.nodeType===8?t.parentNode:t),Ys(),a}for(;i=t.lastChild;)t.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var d=Hd(c);l.call(d)}}var c=Fy(t,0,!1,null,null,!1,!1,"",Yw);return t._reactRootContainer=c,t[ii]=c.current,eu(t.nodeType===8?t.parentNode:t),Ys(function(){Lh(e,c,n,r)}),c}function Nh(t,e,n,r,i){var s=n._reactRootContainer;if(s){var a=s;if(typeof i=="function"){var l=i;
vendor: 4,508 bytes, line 41
41i=function(){var c=Hd(a);l.call(c)}}Lh(e,a,t,i)}else a=fL(n,e,t,i,r);return Hd(a)}t1=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var n=xl(e.pendingLanes);n!==0&&(ly(e,n|1),tn(e,at()),!(Re&6)&&(wa=at()+500,us()))}break;case 13:Ys(function(){var r=si(t,1);if(r!==null){var i=Ht();er(r,t,1,i)}}),$y(t,1)}};uy=function(t){if(t.tag===13){var e=si(t,134217728);if(e!==null){var n=Ht();er(e,t,134217728,n)}$y(t,134217728)}};n1=function(t){if(t.tag===13){var e=Gi(t),n=si(t,e);if(n!==null){var r=Ht();er(n,t,e,r)}$y(t,e)}};r1=function(){return Ie};i1=function(t,e){var n=Ie;try{return Ie=t,e()}finally{Ie=n}};am=function(t,e,n){switch(e){case"input":if(em(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 i=Sh(r);if(!i)throw Error(W(90));jk(r),em(r,i)}}}break;case"textarea":Dk(t,n);break;case"select":e=n.value,e!=null&&Go(t,!!n.multiple,e,!1)}};Hk=Iy;Wk=Ys;var pL={usingClientEntryPoint:!1,Events:[ju,No,Sh,Uk,Vk,Iy]},hl={findFiberByHostInstance:Ls,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},mL={bundleType:hl.bundleType,version:hl.version,rendererPackageName:hl.rendererPackageName,rendererConfig:hl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:di.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=Zk(t),t===null?null:t.stateNode},findFiberByHostInstance:hl.findFiberByHostInstance||hL,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Lc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Lc.isDisabled&&Lc.supportsFiber)try{_h=Lc.inject(mL),Cr=Lc}catch{}}pn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=pL;pn.createPortal=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Vy(e))throw Error(W(200));return dL(t,e,null,n)};pn.createRoot=function(t,e){if(!Vy(t))throw Error(W(299));var n=!1,r="",i=PS;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(r=e.identifierPrefix),e.onRecoverableError!==void 0&&(i=e.onRecoverableError)),e=Fy(t,1,!1,null,null,n,!1,r,i),t[ii]=e.current,eu(t.nodeType===8?t.parentNode:t),new Uy(e)};pn.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(W(188)):(t=Object.keys(t).join(","),Error(W(268,t)));return t=Zk(e),t=t===null?null:t.stateNode,t};pn.flushSync=function(t){return Ys(t)};pn.hydrate=function(t,e,n){if(!Mh(e))throw Error(W(200));return Nh(null,t,e,!0,n)};pn.hydrateRoot=function(t,e,n){if(!Vy(t))throw Error(W(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",a=PS;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),e=TS(e,null,t,1,n??null,i,!1,s,a),t[ii]=e.current,eu(t),r)for(t=0;t<r.length;t++)n=r[t],i=n._getVersion,i=i(n._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[n,i]:e.mutableSourceEagerHydrationData.push(n,i);return new Oh(e)};pn.render=function(t,e,n){if(!Mh(e))throw Error(W(200));return Nh(null,t,e,!1,n)};pn.unmountComponentAtNode=function(t){if(!Mh(t))throw Error(W(40));return t._reactRootContainer?(Ys(function(){Nh(null,null,t,!1,function(){t._reactRootContainer=null,t[ii]=null})}),!0):!1};pn.unstable_batchedUpdates=Iy;pn.unstable_renderSubtreeIntoContainer=function(t,e,n,r){if(!Mh(n))throw Error(W(200));if(t==null||t._reactInternals===void 0)throw Error(W(38));return Nh(t,e,n,!1,r)};pn.version="18.3.1-next-f1338f8080-20240426";function CS(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(CS)}catch(t){console.error(t)}}CS(),Ck.exports=pn;var Du=Ck.exports;const ES=Ea(Du);var AS,Xw=Du;AS=Xw.createRoot,Xw.hydrateRoot;var gL=typeof Element<"u",yL=typeof Map=="function",vL=typeof Set=="function",wL=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function ld(t,e){if(t===e)return!0;
41if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var n,r,i;if(Array.isArray(t)){if(n=t.length,n!=e.length)return!1;for(r=n;r--!==0;)if(!ld(t[r],e[r]))return!1;return!0}var s;if(yL&&t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(s=t.entries();!(r=s.next()).done;)if(!e.has(r.value[0]))return!1;for(s=t.entries();!(r=s.next()).done;)if(!ld(r.value[1],e.get(r.value[0])))return!1;return!0}if(vL&&t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(s=t.entries();!(r=s.next()).done;)if(!e.has(r.value[0]))return!1;return!0}if(wL&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){if(n=t.length,n!=e.length)return!1;for(r=n;r--!==0;)if(t[r]!==e[r])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf&&typeof t.valueOf=="function"&&typeof e.valueOf=="function")return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString&&typeof t.toString=="function"&&typeof e.toString=="function")return t.toString()===e.toString();if(i=Object.keys(t),n=i.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(e,i[r]))return!1;if(gL&&t instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&t.$$typeof)&&!ld(t[i[r]],e[i[r]]))return!1;return!0}return t!==t&&e!==e}var _L=function(e,n){try{return ld(e,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const bL=Ea(_L);var xL=function(t,e,n,r,i,s,a,l){if(!t){var c;if(e===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var d=[n,r,i,s,a,l],f=0;c=new Error(e.replace(/%s/g,function(){return d[f++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}},kL=xL;const Qw=Ea(kL);var SL=function(e,n,r,i){var s=r?r.call(i,e,n):void 0;if(s!==void 0)return!!s;if(e===n)return!0;if(typeof e!="object"||!e||typeof n!="object"||!n)return!1;var a=Object.keys(e),l=Object.keys(n);if(a.length!==l.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(n),d=0;d<a.length;d++){var f=a[d];if(!c(f))return!1;var p=e[f],g=n[f];if(s=r?r.call(i,p,g,f):void 0,s===!1||s===void 0&&p!==g)return!1}return!0};const TL=Ea(SL);var RS=(t=>(t.BASE="base",t.BODY="body",t.HEAD="head",t.HTML="html",t.LINK="link",t.META="meta",t.NOSCRIPT="noscript",t.SCRIPT="script",t.STYLE="style",t.TITLE="title",t.FRAGMENT="Symbol(react.fragment)",t))(RS||{}),ap={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},e_=Object.values(RS),jh={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},LS=Object.entries(jh).reduce((t,[e,n])=>(t[n]=e,t),{}),Xn="data-rh",Qo={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},ea=(t,e)=>{for(let n=t.length-1;n>=0;n-=1){const r=t[n];if(Object.prototype.hasOwnProperty.call(r,e))return r[e]}return null},PL=t=>{let e=ea(t,"title");const n=ea(t,Qo.TITLE_TEMPLATE);if(Array.isArray(e)&&(e=e.join("")),n&&e)return n.replace(/%s/g,()=>e);const r=ea(t,Qo.DEFAULT_TITLE);return e||r||void 0},CL=t=>ea(t,Qo.ON_CHANGE_CLIENT_STATE)||(()=>{}),lp=(t,e)=>e.filter(n=>typeof n[t]<"u").map(n=>n[t]).reduce((n,r)=>({...n,...r}),{}),EL=(t,e)=>e.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const i=Object.keys(r);for(let s=0;s<i.length;s+=1){const l=i[s].toLowerCase();if(t.indexOf(l)!==-1&&r[l])return n.concat(r)}}return n},[]),AL=t=>console&&typeof console.warn=="function"&&console.warn(t),fl=(t,e,n)=>{const r={};return n.filter(i=>Array.isArray(i[t])?!0:(typeof i[t]<"u"&&AL(`Helmet: ${t} should be of type "Array". Instead found type "${typeof i[t]}"`),!1)).map(i=>i[t]).reverse().reduce((i,s)=>{const a={};s.filter(c=>{let d;const f=Object.keys(c);for(let g=0;g<f.length;g+=1){const y=f[g],b=y.toLowerCase();e.indexOf(b)!==-1&&!(d==="rel"&&c[d].toLowerCase()==="canonical")&&!(b==="rel"&&c[b].toLowerCase()==="stylesheet")&&(d=b),e.indexOf(y)!==-1&&(y==="innerHTML"||y==="cssText"||y==="itemprop")&&(d=y)}if(!d||!c[d])return!1;const p=c[d].toLowerCase();return r[d]||(r[d]={}),a[d]||(a[d]={}),r[d][p]?!1:(a[d][p]=!0,!0)}
41).reverse().forEach(c=>i.push(c));const l=Object.keys(a);for(let c=0;c<l.length;c+=1){const d=l[c],f={...r[d],...a[d]};r[d]=f}return i},[]).reverse()},RL=(t,e)=>{if(Array.isArray(t)&&t.length){for(let n=0;n<t.length;n+=1)if(t[n][e])return!0}return!1},LL=t=>({baseTag:EL(["href"],t),bodyAttributes:lp("bodyAttributes",t),defer:ea(t,Qo.DEFER),encode:ea(t,Qo.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:lp("htmlAttributes",t),linkTags:fl("link",["rel","href"],t),metaTags:fl("meta",["name","charset","http-equiv","property","itemprop"],t),noscriptTags:fl("noscript",["innerHTML"],t),onChangeClientState:CL(t),scriptTags:fl("script",["src","innerHTML"],t),styleTags:fl("style",["cssText"],t),title:PL(t),titleAttributes:lp("titleAttributes",t),prioritizeSeoTags:RL(t,Qo.PRIORITIZE_SEO_TAGS)}),OS=t=>Array.isArray(t)?t.join(""):t,OL=(t,e)=>{const n=Object.keys(t);for(let r=0;r<n.length;r+=1)if(e[n[r]]&&e[n[r]].includes(t[n[r]]))return!0;return!1},up=(t,e)=>Array.isArray(t)?t.reduce((n,r)=>(OL(r,e)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:t,priority:[]},t_=(t,e)=>({...t,[e]:void 0}),ML=["noscript","script","style"],Fm=(t,e=!0)=>e===!1?String(t):String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"),MS=t=>Object.keys(t).reduce((e,n)=>{const r=typeof t[n]<"u"?`${n}="${t[n]}"`:`${n}`;return e?`${e} ${r}`:r},""),NL=(t,e,n,r)=>{const i=MS(n),s=OS(e);return i?`<${t} ${Xn}="true" ${i}>${Fm(s,r)}</${t}>`:`<${t} ${Xn}="true">${Fm(s,r)}</${t}>`},jL=(t,e,n=!0)=>e.reduce((r,i)=>{const s=i,a=Object.keys(s).filter(d=>!(d==="innerHTML"||d==="cssText")).reduce((d,f)=>{const p=typeof s[f]>"u"?f:`${f}="${Fm(s[f],n)}"`;return d?`${d} ${p}`:p},""),l=s.innerHTML||s.cssText||"",c=ML.indexOf(t)===-1;return`${r}<${t} ${Xn}="true" ${a}${c?"/>":`>${l}</${t}>`}`},""),NS=(t,e={})=>Object.keys(t).reduce((n,r)=>{const i=jh[r];return n[i||r]=t[r],n},e),IL=(t,e,n)=>{const r={key:e,[Xn]:!0},i=NS(n,r);return[U.createElement("title",i,e)]},ud=(t,e)=>e.map((n,r)=>{const i={key:r,[Xn]:!0};return Object.keys(n).forEach(s=>{const l=jh[s]||s;if(l==="innerHTML"||l==="cssText"){const c=n.innerHTML||n.cssText;i.dangerouslySetInnerHTML={__html:c}}else i[l]=n[s]}),U.createElement(t,i)}),kn=(t,e,n=!0)=>{switch(t){case"title":return{toComponent:()=>IL(t,e.title,e.titleAttributes),toString:()=>NL(t,e.title,e.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>NS(e),toString:()=>MS(e)};default:return{toComponent:()=>ud(t,e),toString:()=>jL(t,e,n)}}},DL=({metaTags:t,linkTags:e,scriptTags:n,encode:r})=>{const i=up(t,ap.meta),s=up(e,ap.link),a=up(n,ap.script);return{priorityMethods:{toComponent:()=>[...ud("meta",i.priority),...ud("link",s.priority),...ud("script",a.priority)],toString:()=>`${kn("meta",i.priority,r)} ${kn("link",s.priority,r)} ${kn("script",a.priority,r)}`},metaTags:i.default,linkTags:s.default,scriptTags:a.default}},BL=t=>{const{baseTag:e,bodyAttributes:n,encode:r=!0,htmlAttributes:i,noscriptTags:s,styleTags:a,title:l="",titleAttributes:c,prioritizeSeoTags:d}=t;let{linkTags:f,metaTags:p,scriptTags:g}=t,y={toComponent:()=>[],toString:()=>""};return d&&({priorityMethods:y,linkTags:f,metaTags:p,scriptTags:g}=DL(t)),{priority:y,base:kn("base",e,r),bodyAttributes:kn("bodyAttributes",n,r),htmlAttributes:kn("htmlAttributes",i,r),link:kn("link",f,r),meta:kn("meta",p,r),noscript:kn("noscript",s,r),script:kn("script",g,r),style:kn("style",a,r),title:kn("title",{title:l,titleAttributes:c},r)}},$m=BL,Oc=[],Hy=!!(typeof window<"u"&&window.document&&window.document.createElement),Um=class{constructor(t,e){Hr(this,"instances",[]);Hr(this,"canUseDOM",Hy);Hr(this,"context");Hr(this,"value",{setHelmet:t=>{this.context.helmet=t},helmetInstances:{get:()=>this.canUseDOM?Oc:this.instances,add:t=>{(this.canUseDOM?Oc:this.instances).push(t)},remove:t=>{const e=(this.canUseDOM?Oc:this.instances).indexOf(t);(this.canUseDOM?Oc:this.instances).splice(e,1)}}});this.context=t,this.canUseDOM=e||!1,e||(t.helmet=$m({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},zL=parseInt(U.version.split(".")[0],10),Vm=zL>=19,FL={}
41,jS=U.createContext(FL),Ds,IS=(Ds=class extends C.Component{constructor(n){super(n);Hr(this,"helmetData");Vm?this.helmetData=null:this.helmetData=new Um(this.props.context||{},Ds.canUseDOM)}render(){return Vm?U.createElement(U.Fragment,null,this.props.children):U.createElement(jS.Provider,{value:this.helmetData.value},this.props.children)}},Hr(Ds,"canUseDOM",Hy),Ds),vo=(t,e)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${t}[${Xn}]`),i=[].slice.call(r),s=[];let a;return e&&e.length&&e.forEach(l=>{const c=document.createElement(t);for(const d in l)if(Object.prototype.hasOwnProperty.call(l,d))if(d==="innerHTML")c.innerHTML=l.innerHTML;else if(d==="cssText"){const f=l.cssText;c.appendChild(document.createTextNode(f))}else{const f=d,p=typeof l[f]>"u"?"":l[f];c.setAttribute(d,p)}c.setAttribute(Xn,"true"),i.some((d,f)=>(a=f,c.isEqualNode(d)))?i.splice(a,1):s.push(c)}),i.forEach(l=>{var c;return(c=l.parentNode)==null?void 0:c.removeChild(l)}),s.forEach(l=>n.appendChild(l)),{oldTags:i,newTags:s}},Hm=(t,e)=>{const n=document.getElementsByTagName(t)[0];if(!n)return;const r=n.getAttribute(Xn),i=r?r.split(","):[],s=[...i],a=Object.keys(e);for(const l of a){const c=e[l]||"";n.getAttribute(l)!==c&&n.setAttribute(l,c),i.indexOf(l)===-1&&i.push(l);const d=s.indexOf(l);d!==-1&&s.splice(d,1)}for(let l=s.length-1;l>=0;l-=1)n.removeAttribute(s[l]);i.length===s.length?n.removeAttribute(Xn):n.getAttribute(Xn)!==a.join(",")&&n.setAttribute(Xn,a.join(","))},$L=(t,e)=>{typeof t<"u"&&document.title!==t&&(document.title=OS(t)),Hm("title",e)},n_=(t,e)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:i,linkTags:s,metaTags:a,noscriptTags:l,onChangeClientState:c,scriptTags:d,styleTags:f,title:p,titleAttributes:g}=t;Hm("body",r),Hm("html",i),$L(p,g);const y={baseTag:vo("base",n),linkTags:vo("link",s),metaTags:vo("meta",a),noscriptTags:vo("noscript",l),scriptTags:vo("script",d),styleTags:vo("style",f)},b={},_={};Object.keys(y).forEach(T=>{const{newTags:x,oldTags:S}=y[T];x.length&&(b[T]=x),S.length&&(_[T]=y[T].oldTags)}),e&&e(),c(t,b,_)},pl=null,UL=t=>{pl&&cancelAnimationFrame(pl),t.defer?pl=requestAnimationFrame(()=>{n_(t,()=>{pl=null})}):(n_(t),pl=null)},VL=UL,r_=class extends C.Component{constructor(){super(...arguments);Hr(this,"rendered",!1)}shouldComponentUpdate(e){return!TL(e,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:e}=this.props.context;e.remove(this),this.emitChange()}emitChange(){const{helmetInstances:e,setHelmet:n}=this.props.context;let r=null;const i=LL(e.get().map(s=>{const{context:a,...l}=s.props;return l}));IS.canUseDOM?VL(i):$m&&(r=$m(i)),n(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:e}=this.props.context;e.add(this),this.emitChange()}render(){return this.init(),null}},cd=[],i_=t=>{const e={};for(const n of Object.keys(t))e[LS[n]||n]=t[n];return e},xs=t=>{const e={};for(const n of Object.keys(t)){const r=jh[n];e[r||n]=t[n]}return e},s_=(t,e)=>{if(!Hy)return;const n=document.getElementsByTagName(t)[0];if(!n)return;const r="data-rh-managed",i=n.getAttribute(r),s=i?i.split(","):[],a=Object.keys(e);for(const l of s)a.includes(l)||n.removeAttribute(l);for(const l of a){const c=e[l];c==null||c===!1?n.removeAttribute(l):c===!0?n.setAttribute(l,""):n.setAttribute(l,String(c))}a.length>0?n.setAttribute(r,a.join(",")):n.removeAttribute(r)},cp=()=>{const t={},e={};for(const n of cd){const{htmlAttributes:r,bodyAttributes:i}=n.props;r&&Object.assign(t,i_(r)),i&&Object.assign(e,i_(i))}s_("html",t),s_("body",e)},HL=class extends C.Component{componentDidMount(){cd.push(this),cp()}componentDidUpdate(){cp()}componentWillUnmount(){const t=cd.indexOf(this);t!==-1&&cd.splice(t,1),cp()}resolveTitle(){const{title:t,titleTemplate:e,defaultTitle:n}=this.props;return t&&e?e.replace(/%s/g,()=>Array.isArray(t)?t.join(""):t):t||n||void 0}renderTitle(){const t=this.resolveTitle();if(t===void 0)return null;const e=this.props.titleAttributes||{};return U.createElement("title",xs(e),t)}renderBase(){const{base:t}=this.props;return t?U.createElement("base",xs(t)):null}renderMeta(){const{meta:t}=this.props;return!t||!Array.isArray(t)?null:t.map((e,n)=>U.createElement("meta",{key:n,...xs(e)}))}renderLink(){const{link:t}=this.props;return!t||!Array.isArray(t)?null:t.map((e,n)=>U.createElement("link",{key:n,...xs(e)}))}renderScript(){const{script:t}=this.props;return!t||!Array.isArray(t)?null:t.map((e,n)=>{const{innerHTML:r,...i}=e,s=xs(i);return r&&(s.dangerouslySetInnerHTML={__html:r}),U.createElement("script",{key:n,...s})})}renderStyle(){const{style:t}=this.props;return!t||!Array.isArray(t)?null:t.map((e,n)=>{const{cssText:r,...i}=e,s=xs(i);return r&&(s.dangerouslySetInnerHTML={__html:r}),U.createElement("style",{key:n,...s})})}renderNoscript(){const{noscript:t}=this.props;return!t||!Array.isArray(t)?null:t.map((e,n)=>{const{innerHTML:r,...i}=e,s=xs(i);return r&&(s.dangerouslySetInnerHTML={__html:r}),U.createElement("noscript",{key:n,...s})})}render(){return U.createElement(U.Fragment,null,this.renderTitle(),this.renderBase(),this.renderMeta(),this.renderLink(),this.renderScript(),this.renderStyle(),this.renderNoscript())}},Gp,WL=(Gp=class extends C.Component{shouldComponentUpdate(t){return!bL(t_(this.props,"helmetData"),t_(t,"helmetData"))}mapNestedChildrenToProps(t,e){if(!e)return null;switch(t.type){case"script":case"noscript":return{innerHTML:e};case"style":return{cssText:e};default:throw new Error(`<${t.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(t,e,n,r){return{...e,[t.type]:[...e[t.type]||[],{...n,...this.mapNestedChildrenToProps(t,r)}]}}mapObjectTypeChildren(t,e,n,r){switch(t.type){case"title":return{...e,[t.type]:r,titleAttributes:{...n}};case"body":return{...e,bodyAttributes:{...n}};case"html":return{...e,htmlAttributes:{...n}};default:return{...e,[t.type]:{...n}}}}mapArrayTypeChildrenToProps(t,e){let n={...e};return Object.keys(t).forEach(r=>{n={...n,[r]:t[r]}}),n}
41warnOnInvalidChildren(t,e){return Qw(e_.some(n=>t.type===n),typeof t.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${e_.join(", ")} are allowed. Helmet does not support rendering <${t.type}> elements. Refer to our API for more information.`),Qw(!e||typeof e=="string"||Array.isArray(e)&&!e.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${t.type}>. Did you forget to wrap your children in braces? ( <${t.type}>{\`\`}</${t.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(t,e){let n={};return U.Children.forEach(t,r=>{if(!r||!r.props)return;const{children:i,...s}=r.props,a=Object.keys(s).reduce((c,d)=>(c[LS[d]||d]=s[d],c),{});let{type:l}=r;switch(typeof l=="symbol"?l=l.toString():this.warnOnInvalidChildren(r,i),l){case"Symbol(react.fragment)":e=this.mapChildrenToProps(i,e);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,a,i);break;default:e=this.mapObjectTypeChildren(r,e,a,i);break}}),this.mapArrayTypeChildrenToProps(n,e)}render(){const{children:t,...e}=this.props;let n={...e},{helmetData:r}=e;if(t&&(n=this.mapChildrenToProps(t,n)),r&&!(r instanceof Um)){const i=r;r=new Um(i.context,!0),delete n.helmetData}return Vm?U.createElement(HL,{...n}):r?U.createElement(r_,{...n,context:r.value}):U.createElement(jS.Consumer,null,i=>U.createElement(r_,{...n,context:i}))}},Hr(Gp,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),Gp);const qL="modulepreload",GL=function(t){return"/"+t},o_={},sr=function(e,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));i=Promise.allSettled(n.map(c=>{if(c=GL(c),c in o_)return;o_[c]=!0;const d=c.endsWith(".css"),f=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${f}`))return;const p=document.createElement("link");if(p.rel=d?"stylesheet":qL,d||(p.as="script"),p.crossOrigin="",p.href=c,l&&p.setAttribute("nonce",l),document.head.appendChild(p),d)return new Promise((g,y)=>{p.addEventListener("load",g),p.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${c}`)))})}))}function s(a){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=a,window.dispatchEvent(l),!l.defaultPrevented)throw a}return i.then(a=>{for(const l of a||[])l.status==="rejected"&&s(l.reason);return e().catch(s)})},ZL=1,KL=1e6;let dp=0;function JL(){return dp=(dp+1)%Number.MAX_SAFE_INTEGER,dp.toString()}const hp=new Map,a_=t=>{if(hp.has(t))return;const e=setTimeout(()=>{hp.delete(t),Bl({type:"REMOVE_TOAST",toastId:t})},KL);hp.set(t,e)},YL=(t,e)=>{switch(e.type){case"ADD_TOAST":return{...t,toasts:[e.toast,...t.toasts].slice(0,ZL)};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?a_(n):t.toasts.forEach(r=>{a_(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)}}},dd=[];let hd={toasts:[]};function Bl(t){hd=YL(hd,t),dd.forEach(e=>{e(hd)})}function XL({...t}){const e=JL(),n=i=>Bl({type:"UPDATE_TOAST",toast:{...i,id:e}}),r=()=>Bl({type:"DISMISS_TOAST",toastId:e});return Bl({type:"ADD_TOAST",toast:{...t,id:e,open:!0,onOpenChange:i=>{i||r()}}}),{id:e,dismiss:r,update:n}}function QL(){const[t,e]=C.useState(hd);return C.useEffect(()=>(dd.push(e),()=>{const n=dd.indexOf(e);n>-1&&dd.splice(n,1)}),[t]),{...t,toast:XL,dismiss:n=>Bl({type:"DISMISS_TOAST",toastId:n})}}function gt(t,e,{checkForDefaultPrevented:n=!0}={}){return function(i){if(t==null||t(i),n===!1||!i.defaultPrevented)return e==null?void 0:e(i)}}function l_(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function DS(...t){return e=>{let n=!1;const r=t.map(i=>{const s=l_(i,e);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let i=0;i<r.length;i++){const s=r[i];typeof s=="function"?s():l_(t[i],null)}}}}function nr(...t){return C.useCallback(DS(...t),t)}function Ih(t,e=[]){let n=[];function r(s,a){const l=C.createContext(a),c=n.length;n=[...n,a];const d=p=>{var x;const{scope:g,children:y,...b}=p,_=((x=g==null?void 0:g[t])==null?void 0:x[c])||l,T=C.useMemo(()=>b,Object.values(b));return v.jsx(_.Provider,{value:T,children:y})};d.displayName=s+"Provider";function f(p,g){var _;const y=((_=g==null?void 0:g[t])==null?void 0:_[c])||l,b=C.useContext(y);if(b)return b;if(a!==void 0)return a;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[d,f]}const i=()=>{const s=n.map(a=>C.createContext(a));return function(l){const c=(l==null?void 0:l[t])||s;return C.useMemo(()=>({[`__scope${t}`]:{...l,[t]:c}}),[l,c])}};return i.scopeName=t,[r,eO(i,...e)]}function eO(...t){const e=t[0];if(t.length===1)return e;const n=()=>{const r=t.map(i=>({useScope:i(),scopeName:i.scopeName}));
vendor: 8,340 bytes, line 41
41return function(s){const a=r.reduce((l,{useScope:c,scopeName:d})=>{const p=c(s)[`__scope${d}`];return{...l,...p}},{});return C.useMemo(()=>({[`__scope${e.scopeName}`]:a}),[a])}};return n.scopeName=e.scopeName,n}function Wm(t){const e=tO(t),n=C.forwardRef((r,i)=>{const{children:s,...a}=r,l=C.Children.toArray(s),c=l.find(rO);if(c){const d=c.props.children,f=l.map(p=>p===c?C.Children.count(d)>1?C.Children.only(null):C.isValidElement(d)?d.props.children:null:p);return v.jsx(e,{...a,ref:i,children:C.isValidElement(d)?C.cloneElement(d,void 0,f):null})}return v.jsx(e,{...a,ref:i,children:s})});return n.displayName=`${t}.Slot`,n}function tO(t){const e=C.forwardRef((n,r)=>{const{children:i,...s}=n;if(C.isValidElement(i)){const a=sO(i),l=iO(s,i.props);return i.type!==C.Fragment&&(l.ref=r?DS(r,a):a),C.cloneElement(i,l)}return C.Children.count(i)>1?C.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var BS=Symbol("radix.slottable");function nO(t){const e=({children:n})=>v.jsx(v.Fragment,{children:n});return e.displayName=`${t}.Slottable`,e.__radixId=BS,e}function rO(t){return C.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===BS}function iO(t,e){const n={...e};for(const r in e){const i=t[r],s=e[r];/^on[A-Z]/.test(r)?i&&s?n[r]=(...l)=>{const c=s(...l);return i(...l),c}:i&&(n[r]=i):r==="style"?n[r]={...i,...s}:r==="className"&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...t,...n}}function sO(t){var r,i;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=(i=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:i.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}function oO(t){const e=t+"CollectionProvider",[n,r]=Ih(e),[i,s]=n(e,{collectionRef:{current:null},itemMap:new Map}),a=_=>{const{scope:T,children:x}=_,S=U.useRef(null),k=U.useRef(new Map).current;return v.jsx(i,{scope:T,itemMap:k,collectionRef:S,children:x})};a.displayName=e;const l=t+"CollectionSlot",c=Wm(l),d=U.forwardRef((_,T)=>{const{scope:x,children:S}=_,k=s(l,x),E=nr(T,k.collectionRef);return v.jsx(c,{ref:E,children:S})});d.displayName=l;const f=t+"CollectionItemSlot",p="data-radix-collection-item",g=Wm(f),y=U.forwardRef((_,T)=>{const{scope:x,children:S,...k}=_,E=U.useRef(null),A=nr(T,E),O=s(f,x);return U.useEffect(()=>(O.itemMap.set(E,{ref:E,...k}),()=>void O.itemMap.delete(E))),v.jsx(g,{[p]:"",ref:A,children:S})});y.displayName=f;function b(_){const T=s(t+"CollectionConsumer",_);return U.useCallback(()=>{const S=T.collectionRef.current;if(!S)return[];const k=Array.from(S.querySelectorAll(`[${p}]`));return Array.from(T.itemMap.values()).sort((O,M)=>k.indexOf(O.ref.current)-k.indexOf(M.ref.current))},[T.collectionRef,T.itemMap])}return[{Provider:a,Slot:d,ItemSlot:y},b,r]}var aO=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],nn=aO.reduce((t,e)=>{const n=Wm(`Primitive.${e}`),r=C.forwardRef((i,s)=>{const{asChild:a,...l}=i,c=a?n:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(c,{...l,ref:s})});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{});function zS(t,e){t&&Du.flushSync(()=>t.dispatchEvent(e))}function Qi(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 lO(t,e=globalThis==null?void 0:globalThis.document){const n=Qi(t);C.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return e.addEventListener("keydown",r,{capture:!0}),()=>e.removeEventListener("keydown",r,{capture:!0})},[n,e])}var uO="DismissableLayer",qm="dismissableLayer.update",cO="dismissableLayer.pointerDownOutside",dO="dismissableLayer.focusOutside",u_,FS=C.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Wy=C.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:a,onDismiss:l,...c}=t,d=C.useContext(FS),[f,p]=C.useState(null),g=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=C.useState({}),b=nr(e,M=>p(M)),_=Array.from(d.layers),[T]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=_.indexOf(T),S=f?_.indexOf(f):-1,k=d.layersWithOutsidePointerEventsDisabled.size>0,E=S>=x,A=fO(M=>{const I=M.target,B=[...d.branches].some(H=>H.contains(I));!E||B||(i==null||i(M),a==null||a(M),M.defaultPrevented||l==null||l())},g),O=pO(M=>{const I=M.target;[...d.branches].some(H=>H.contains(I))||(s==null||s(M),a==null||a(M),M.defaultPrevented||l==null||l())},g);return lO(M=>{S===d.layers.size-1&&(r==null||r(M),!M.defaultPrevented&&l&&(M.preventDefault(),l()))},g),C.useEffect(()=>{if(f)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(u_=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),c_(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=u_)}},[f,g,n,d]),C.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),c_())},[f,d]),C.useEffect(()=>{const M=()=>y({});return document.addEventListener(qm,M),()=>document.removeEventListener(qm,M)},[]),v.jsx(nn.div,{...c,ref:b,style:{pointerEvents:k?E?"auto":"none":void 0,...t.style},onFocusCapture:gt(t.onFocusCapture,O.onFocusCapture),onBlurCapture:gt(t.onBlurCapture,O.onBlurCapture),onPointerDownCapture:gt(t.onPointerDownCapture,A.onPointerDownCapture)})});Wy.displayName=uO;var hO="DismissableLayerBranch",$S=C.forwardRef((t,e)=>{const n=C.useContext(FS),r=C.useRef(null),i=nr(e,r);return C.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),v.jsx(nn.div,{...t,ref:i})});$S.displayName=hO;function fO(t,e=globalThis==null?void 0:globalThis.document){const n=Qi(t),r=C.useRef(!1),i=C.useRef(()=>{});return C.useEffect(()=>{const s=l=>{if(l.target&&!r.current){let c=function(){US(cO,n,d,{discrete:!0})};const d={originalEvent:l};l.pointerType==="touch"?(e.removeEventListener("click",i.current),i.current=c,e.addEventListener("click",i.current,{once:!0})):c()}else e.removeEventListener("click",i.current);r.current=!1},a=window.setTimeout(()=>{e.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),e.removeEventListener("pointerdown",s),e.removeEventListener("click",i.current)}},[e,n]),{onPointerDownCapture:()=>r.current=!0}}function pO(t,e=globalThis==null?void 0:globalThis.document){const n=Qi(t),r=C.useRef(!1);return C.useEffect(()=>{const i=s=>{s.target&&!r.current&&US(dO,n,{originalEvent:s},{discrete:!1})};return e.addEventListener("focusin",i),()=>e.removeEventListener("focusin",i)},[e,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function c_(){const t=new CustomEvent(qm);document.dispatchEvent(t)}function US(t,e,n,{discrete:r}){const i=n.originalEvent.target,s=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&i.addEventListener(t,e,{once:!0}),r?zS(i,s):i.dispatchEvent(s)}var mO=Wy,gO=$S,es=globalThis!=null&&globalThis.document?C.useLayoutEffect:()=>{},yO="Portal",VS=C.forwardRef((t,e)=>{var l;const{container:n,...r}=t,[i,s]=C.useState(!1);es(()=>s(!0),[]);const a=n||i&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return a?ES.createPortal(v.jsx(nn.div,{...r,ref:e}),a):null});VS.displayName=yO;function vO(t,e){return C.useReducer((n,r)=>e[n][r]??n,t)}var qy=t=>{const{present:e,children:n}=t,r=wO(e),i=typeof n=="function"?n({present:r.isPresent}):C.Children.only(n),s=nr(r.ref,_O(i));return typeof n=="function"||r.isPresent?C.cloneElement(i,{ref:s}):null};qy.displayName="Presence";function wO(t){const[e,n]=C.useState(),r=C.useRef(null),i=C.useRef(t),s=C.useRef("none"),a=t?"mounted":"unmounted",[l,c]=vO(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return C.useEffect(()=>{const d=Mc(r.current);s.current=l==="mounted"?d:"none"},[l]),es(()=>{const d=r.current,f=i.current;if(f!==t){const g=s.current,y=Mc(d);t?c("MOUNT"):y==="none"||(d==null?void 0:d.display)==="none"?c("UNMOUNT"):c(f&&g!==y?"ANIMATION_OUT":"UNMOUNT"),i.current=t}},[t,c]),es(()=>
41{if(e){let d;const f=e.ownerDocument.defaultView??window,p=y=>{const _=Mc(r.current).includes(y.animationName);if(y.target===e&&_&&(c("ANIMATION_END"),!i.current)){const T=e.style.animationFillMode;e.style.animationFillMode="forwards",d=f.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=T)})}},g=y=>{y.target===e&&(s.current=Mc(r.current))};return e.addEventListener("animationstart",g),e.addEventListener("animationcancel",p),e.addEventListener("animationend",p),()=>{f.clearTimeout(d),e.removeEventListener("animationstart",g),e.removeEventListener("animationcancel",p),e.removeEventListener("animationend",p)}}else c("ANIMATION_END")},[e,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:C.useCallback(d=>{r.current=d?getComputedStyle(d):null,n(d)},[])}}function Mc(t){return(t==null?void 0:t.animationName)||"none"}function _O(t){var r,i;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=(i=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:i.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var bO=Tk[" useInsertionEffect ".trim().toString()]||es;function xO({prop:t,defaultProp:e,onChange:n=()=>{},caller:r}){const[i,s,a]=kO({defaultProp:e,onChange:n}),l=t!==void 0,c=l?t:i;{const f=C.useRef(t!==void 0);C.useEffect(()=>{const p=f.current;p!==l&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${l?"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.`),f.current=l},[l,r])}const d=C.useCallback(f=>{var p;if(l){const g=SO(f)?f(t):f;g!==t&&((p=a.current)==null||p.call(a,g))}else s(f)},[l,t,s,a]);return[c,d]}function kO({defaultProp:t,onChange:e}){const[n,r]=C.useState(t),i=C.useRef(n),s=C.useRef(e);return bO(()=>{s.current=e},[e]),C.useEffect(()=>{var a;i.current!==n&&((a=s.current)==null||a.call(s,n),i.current=n)},[n,i]),[n,r,s]}function SO(t){return typeof t=="function"}var TO=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"}),PO="VisuallyHidden",Dh=C.forwardRef((t,e)=>v.jsx(nn.span,{...t,ref:e,style:{...TO,...t.style}}));Dh.displayName=PO;var CO=Dh,Gy="ToastProvider",[Zy,EO,AO]=oO("Toast"),[HS,z8]=Ih("Toast",[AO]),[RO,Bh]=HS(Gy),WS=t=>{const{__scopeToast:e,label:n="Notification",duration:r=5e3,swipeDirection:i="right",swipeThreshold:s=50,children:a}=t,[l,c]=C.useState(null),[d,f]=C.useState(0),p=C.useRef(!1),g=C.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Gy}\`. Expected non-empty \`string\`.`),v.jsx(Zy.Provider,{scope:e,children:v.jsx(RO,{scope:e,label:n,duration:r,swipeDirection:i,swipeThreshold:s,toastCount:d,viewport:l,onViewportChange:c,onToastAdd:C.useCallback(()=>f(y=>y+1),[]),onToastRemove:C.useCallback(()=>f(y=>y-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:g,children:a})})};WS.displayName=Gy;var qS="ToastViewport",LO=["F8"],Gm="toast.viewportPause",Zm="toast.viewportResume",GS=C.forwardRef((t,e)=>{const{__scopeToast:n,hotkey:r=LO,label:i="Notifications ({hotkey})",...s}=t,a=Bh(qS,n),l=EO(n),c=C.useRef(null),d=C.useRef(null),f=C.useRef(null),p=C.useRef(null),g=nr(e,p,a.onViewportChange),y=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),b=a.toastCount>0;C.useEffect(()=>{const T=x=>{var k;r.length!==0&&r.every(E=>x[E]||x.code===E)&&((k=p.current)==null||k.focus())};return document.addEventListener("keydown",T),()=>document.removeEventListener("keydown",T)},[r]),C.useEffect(()=>{const T=c.current,x=p.current;if(b&&T&&x){const S=()=>{if(!a.isClosePausedRef.current){const O=new CustomEvent(Gm);x.dispatchEvent(O),a.isClosePausedRef.current=!0}},k=()=>{if(a.isClosePausedRef.current){const O=new CustomEvent(Zm);x.dispatchEvent(O),a.isClosePausedRef.current=!1}},E=O=>{!T.contains(O.relatedTarget)&&k()},A=()=>{T.contains(document.activeElement)||k()};return T.addEventListener("focusin",S),T.addEventListener("focusout",E),T.addEventListener("pointermove",S),T.addEventListener("pointerleave",A),window.addEventListener("blur",S),window.addEventListener("focus",k),()=>{T.removeEventListener("focusin",S),T.removeEventListener("focusout",E),T.removeEventListener("pointermove",S),T.removeEventListener("pointerleave",A),window.removeEventListener("blur",S),window.removeEventListener("focus",k)}}},[b,a.isClosePausedRef]);const _=C.useCallback(({tabbingDirection:T})=>{const S=l().map(k=>{const E=k.ref.current,A=[E,...HO(E)];return T==="forwards"?A:A.reverse()});return(T==="forwards"?S.reverse():S).flat()},[l]);return C.useEffect(()=>{const T=p.current;if(T){const x=S=>{var A,O,M;const k=S.altKey||S.ctrlKey||S.metaKey;if(S.key==="Tab"&&!k){const I=document.activeElement,B=S.shiftKey;if(S.target===T&&B){(A=d.current)==null||A.focus();return}const Z=_({tabbingDirection:B?"backwards":"forwards"}),ge=Z.findIndex(G=>G===I);fp(Z.slice(ge+1))?S.preventDefault():B?(O=d.current)==null||O.focus():(M=f.current)==null||M.focus()}};return T.addEventListener("keydown",x),()=>T.removeEventListener("keydown",x)}},[l,_]),v.jsxs(gO,{ref:c,role:"region","aria-label":i.replace("{hotkey}",y),tabIndex:-1,style:{pointerEvents:b?void 0:"none"},children:[b&&v.jsx(Km,{ref:d,onFocusFromOutsideViewport:()=>{const T=_({tabbingDirection:"forwards"});fp(T)}}),v.jsx(Zy.Slot,{scope:n,children:v.jsx(nn.ol,{tabIndex:-1,...s,ref:g})}),b&&v.jsx(Km,{ref:f,onFocusFromOutsideViewport:()=>{const T=_({tabbingDirection:"backwards"});fp(T)}})]})});GS.displayName=qS;var ZS="ToastFocusProxy",Km=C.forwardRef((t,e)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...i}=t,s=Bh(ZS,n);return v.jsx(Dh,{"aria-hidden":!0,tabIndex:0,...i,ref:e,style:{position:"fixed"},onFocus:a=>{var d;const l=a.relatedTarget;!((d=s.viewport)!=null&&d.contains(l))&&r()}})});Km.displayName=ZS;var Bu="Toast",OO="toast.swipeStart",MO="toast.swipeMove",NO="toast.swipeCancel",jO="toast.swipeEnd",KS=C.forwardRef((t,e)=>{const{forceMount:n,open:r,defaultOpen:i,onOpenChange:s,...a}=t,[l,c]=xO({prop:r,defaultProp:i??!0,onChange:s,caller:Bu});return v.jsx(qy,{present:n||l,children:v.jsx(BO,{open:l,...a,ref:e,onClose:()=>c(!1),onPause:Qi(t.onPause),onResume:Qi(t.onResume),onSwipeStart:gt(t.onSwipeStart,d=>{d.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:gt(t.onSwipeMove,d=>{const{x:f,y:p}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","move"),d.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${f}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${p}px`)}),onSwipeCancel:gt(t.onSwipeCancel,d=>{d.currentTarget.setAttribute("data-swipe","cancel"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:gt(t.onSwipeEnd,d=>{const{x:f,y:p}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","end"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${f}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${p}px`),c(!1)})})})});KS.displayName=Bu;var[IO,DO]=HS(Bu,{onClose(){}}),BO=C.forwardRef((t,e)=>{const{__scopeToast:n,type:r="foreground",duration:i,open:s,onClose:a,onEscapeKeyDown:l,onPause:c,onResume:d,onSwipeStart:f,onSwipeMove:p,onSwipeCancel:g,onSwipeEnd:y,...b}
41=t,_=Bh(Bu,n),[T,x]=C.useState(null),S=nr(e,G=>x(G)),k=C.useRef(null),E=C.useRef(null),A=i||_.duration,O=C.useRef(0),M=C.useRef(A),I=C.useRef(0),{onToastAdd:B,onToastRemove:H}=_,J=Qi(()=>{var be;(T==null?void 0:T.contains(document.activeElement))&&((be=_.viewport)==null||be.focus()),a()}),Z=C.useCallback(G=>{!G||G===1/0||(window.clearTimeout(I.current),O.current=new Date().getTime(),I.current=window.setTimeout(J,G))},[J]);C.useEffect(()=>{const G=_.viewport;if(G){const be=()=>{Z(M.current),d==null||d()},oe=()=>{const te=new Date().getTime()-O.current;M.current=M.current-te,window.clearTimeout(I.current),c==null||c()};return G.addEventListener(Gm,oe),G.addEventListener(Zm,be),()=>{G.removeEventListener(Gm,oe),G.removeEventListener(Zm,be)}}},[_.viewport,A,c,d,Z]),C.useEffect(()=>{s&&!_.isClosePausedRef.current&&Z(A)},[s,A,_.isClosePausedRef,Z]),C.useEffect(()=>(B(),()=>H()),[B,H]);const ge=C.useMemo(()=>T?nT(T):null,[T]);return _.viewport?v.jsxs(v.Fragment,{children:[ge&&v.jsx(zO,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:ge}),v.jsx(IO,{scope:n,onClose:J,children:Du.createPortal(v.jsx(Zy.ItemSlot,{scope:n,children:v.jsx(mO,{asChild:!0,onEscapeKeyDown:gt(l,()=>{_.isFocusedToastEscapeKeyDownRef.current||J(),_.isFocusedToastEscapeKeyDownRef.current=!1}),children:v.jsx(nn.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":_.swipeDirection,...b,ref:S,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:gt(t.onKeyDown,G=>{G.key==="Escape"&&(l==null||l(G.nativeEvent),G.nativeEvent.defaultPrevented||(_.isFocusedToastEscapeKeyDownRef.current=!0,J()))}),onPointerDown:gt(t.onPointerDown,G=>{G.button===0&&(k.current={x:G.clientX,y:G.clientY})}),onPointerMove:gt(t.onPointerMove,G=>{if(!k.current)return;const be=G.clientX-k.current.x,oe=G.clientY-k.current.y,te=!!E.current,N=["left","right"].includes(_.swipeDirection),$=["left","up"].includes(_.swipeDirection)?Math.min:Math.max,z=N?$(0,be):0,Q=N?0:$(0,oe),ee=G.pointerType==="touch"?10:2,ce={x:z,y:Q},le={originalEvent:G,delta:ce};te?(E.current=ce,Nc(MO,p,le,{discrete:!1})):d_(ce,_.swipeDirection,ee)?(E.current=ce,Nc(OO,f,le,{discrete:!1}),G.target.setPointerCapture(G.pointerId)):(Math.abs(be)>ee||Math.abs(oe)>ee)&&(k.current=null)}),onPointerUp:gt(t.onPointerUp,G=>{const be=E.current,oe=G.target;if(oe.hasPointerCapture(G.pointerId)&&oe.releasePointerCapture(G.pointerId),E.current=null,k.current=null,be){const te=G.currentTarget,N={originalEvent:G,delta:be};d_(be,_.swipeDirection,_.swipeThreshold)?Nc(jO,y,N,{discrete:!0}):Nc(NO,g,N,{discrete:!0}),te.addEventListener("click",$=>$.preventDefault(),{once:!0})}})})})}),_.viewport)})]}):null}),zO=t=>{const{__scopeToast:e,children:n,...r}=t,i=Bh(Bu,e),[s,a]=C.useState(!1),[l,c]=C.useState(!1);return UO(()=>a(!0)),C.useEffect(()=>{const d=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(d)},[]),l?null:v.jsx(VS,{asChild:!0,children:v.jsx(Dh,{...r,children:s&&v.jsxs(v.Fragment,{children:[i.label," ",n]})})})},FO="ToastTitle",JS=C.forwardRef((t,e)=>{const{__scopeToast:n,...r}=t;return v.jsx(nn.div,{...r,ref:e})});JS.displayName=FO;var $O="ToastDescription",YS=C.forwardRef((t,e)=>{const{__scopeToast:n,...r}=t;return v.jsx(nn.div,{...r,ref:e})});YS.displayName=$O;var XS="ToastAction",QS=C.forwardRef((t,e)=>{const{altText:n,...r}=t;return n.trim()?v.jsx(tT,{altText:n,asChild:!0,children:v.jsx(Ky,{...r,ref:e})}):(console.error(`Invalid prop \`altText\` supplied to \`${XS}\`. Expected non-empty \`string\`.`),null)});QS.displayName=XS;var eT="ToastClose",Ky=C.forwardRef((t,e)=>{const{__scopeToast:n,...r}=t,i=DO(eT,n);return v.jsx(tT,{asChild:!0,children:v.jsx(nn.button,{type:"button",...r,ref:e,onClick:gt(t.onClick,i.onClose)})})});Ky.displayName=eT;var tT=C.forwardRef((t,e)=>{const{__scopeToast:n,altText:r,...i}=t;return v.jsx(nn.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...i,ref:e})});function nT(t){const e=[];return Array.from(t.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&e.push(r.textContent),VO(r)){const i=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!i)if(s){const a=r.dataset.radixToastAnnounceAlt;a&&e.push(a)}else e.push(...nT(r))}}),e}function Nc(t,e,n,{discrete:r}){const i=n.originalEvent.currentTarget,s=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:n});e&&i.addEventListener(t,e,{once:!0}),r?zS(i,s):i.dispatchEvent(s)}var d_=(t,e,n=0)=>{const r=Math.abs(t.x),i=Math.abs(t.y),s=r>i;return e==="left"||e==="right"?s&&r>n:!s&&i>n};function UO(t=()=>{}){const e=Qi(t);es(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(e)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[e])}function VO(t){return t.nodeType===t.ELEMENT_NODE}function HO(t){const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e}function fp(t){const e=document.activeElement;return t.some(n=>n===e?!0:(n.focus(),document.activeElement!==e))}var WO=WS,rT=GS,iT=KS,sT=JS,oT=YS,aT=QS,lT=Ky;function uT(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=uT(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function cT(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=uT(t))&&(r&&(r+=" "),r+=e);return r}const h_=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,f_=cT,qO=(t,e)=>n=>{var r;if((e==null?void 0:e.variants)==null)return f_(t,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:s}=e,a=Object.keys(i).map(d=>{const f=n==null?void 0:n[d],p=s==null?void 0:s[d];if(f===null)return null;const g=h_(f)||h_(p);return i[d][g]}),l=n&&Object.entries(n).reduce((d,f)=>{let[p,g]=f;return g===void 0||(d[p]=g),d},{}),c=e==null||(r=e.compoundVariants)===null||r===void 0?void 0:r.reduce((d,f)=>{let{class:p,className:g,...y}=f;return Object.entries(y).every(b=>{let[_,T]=b;return Array.isArray(T)?T.includes({...s,...l}[_]):{...s,...l}[_]===T})?[...d,p,g]:d},[]);return f_(t,a,c,n==null?void 0:n.class,n==null?void 0:n.className)};/**
42 * @license lucide-react v0.462.0 - ISC
43 *
44 * This source code is licensed under the ISC license.
45 * See the LICENSE file in the root directory of this source tree.
46 */const GO=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),dT=(...t)=>t.filter((e,n,r)=>!!e&&e.trim()!==""&&r.indexOf(e)===n).join(" ").trim();/**
47 * @license lucide-react v0.462.0 - ISC
48 *
49 * This source code is licensed under the ISC license.
50 * See the LICENSE file in the root directory of this source tree.
51 */var ZO={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"};/**
52 * @license lucide-react v0.462.0 - ISC
53 *
54 * This source code is licensed under the ISC license.
55 * See the LICENSE file in the root directory of this source tree.
56 */const KO=C.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:s,iconNode:a,...l},c)=>C.createElement("svg",{ref:c,...ZO,width:e,height:e,stroke:t,strokeWidth:r?Number(n)*24/Number(e):n,className:dT("lucide",i),...l},[...a.map(([d,f])=>C.createElement(d,f)),...Array.isArray(s)?s:[s]]));/**
57 * @license lucide-react v0.462.0 - ISC
58 *
59 * This source code is licensed under the ISC license.
60 * See the LICENSE file in the root directory of this source tree.
61 */const Ue=(t,e)=>{const n=C.forwardRef(({className:r,...i},s)=>C.createElement(KO,{ref:s,iconNode:e,className:dT(`lucide-${GO(t)}`,r),...i}));return n.displayName=`${t}`,n};/**
62 * @license lucide-react v0.462.0 - ISC
63 *
64 * This source code is licensed under the ISC license.
65 * See the LICENSE file in the root directory of this source tree.
66 */const p_=Ue("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
67 * @license lucide-react v0.462.0 - ISC
68 *
69 * This source code is licensed under the ISC license.
70 * See the LICENSE file in the root directory of this source tree.
71 */const hT=Ue("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);/**
72 * @license lucide-react v0.462.0 - ISC
73 *
74 * This source code is licensed under the ISC license.
75 * See the LICENSE file in the root directory of this source tree.
76 */const JO=Ue("BedDouble",[["path",{d:"M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8",key:"1k78r4"}],["path",{d:"M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4",key:"fb3tl2"}],["path",{d:"M12 4v6",key:"1dcgq2"}],["path",{d:"M2 18h20",key:"ajqnye"}]]);/**
77 * @license lucide-react v0.462.0 - ISC
78 *
79 * This source code is licensed under the ISC license.
80 * See the LICENSE file in the root directory of this source tree.
81 */const Oa=Ue("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"}]]);/**
82 * @license lucide-react v0.462.0 - ISC
83 *
84 * This source code is licensed under the ISC license.
85 * See the LICENSE file in the root directory of this source tree.
86 */const YO=Ue("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"}]]);/**
87 * @license lucide-react v0.462.0 - ISC
88 *
89 * This source code is licensed under the ISC license.
90 * See the LICENSE file in the root directory of this source tree.
91 */const Jy=Ue("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
92 * @license lucide-react v0.462.0 - ISC
93 *
94 * This source code is licensed under the ISC license.
95 * See the LICENSE file in the root directory of this source tree.
96 */const XO=Ue("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
97 * @license lucide-react v0.462.0 - ISC
98 *
99 * This source code is licensed under the ISC license.
100 * See the LICENSE file in the root directory of this source tree.
101 */const QO=Ue("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
102 * @license lucide-react v0.462.0 - ISC
103 *
104 * This source code is licensed under the ISC license.
105 * See the LICENSE file in the root directory of this source tree.
106 */const eM=Ue("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
107 * @license lucide-react v0.462.0 - ISC
108 *
109 * This source code is licensed under the ISC license.
110 * See the LICENSE file in the root directory of this source tree.
111 */const tM=Ue("Droplets",[["path",{d:"M7 16.3c2.2 0 4-1.83 4-4.05 0-1.16-.57-2.26-1.71-3.19S7.29 6.75 7 5.3c-.29 1.45-1.14 2.84-2.29 3.76S3 11.1 3 12.25c0 2.22 1.8 4.05 4 4.05z",ke
111y:"1ptgy4"}],["path",{d:"M12.56 6.6A10.97 10.97 0 0 0 14 3.02c.5 2.5 2 4.9 4 6.5s3 3.5 3 5.5a6.98 6.98 0 0 1-11.91 4.97",key:"1sl1rz"}]]);/**
112 * @license lucide-react v0.462.0 - ISC
113 *
114 * This source code is licensed under the ISC license.
115 * See the LICENSE file in the root directory of this source tree.
116 */const fT=Ue("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"}]]);/**
117 * @license lucide-react v0.462.0 - ISC
118 *
119 * This source code is licensed under the ISC license.
120 * See the LICENSE file in the root directory of this source tree.
121 */const Jm=Ue("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);/**
122 * @license lucide-react v0.462.0 - ISC
123 *
124 * This source code is licensed under the ISC license.
125 * See the LICENSE file in the root directory of this source tree.
126 */const nM=Ue("Fish",[["path",{d:"M6.5 12c.94-3.46 4.94-6 8.5-6 3.56 0 6.06 2.54 7 6-.94 3.47-3.44 6-7 6s-7.56-2.53-8.5-6Z",key:"15baut"}],["path",{d:"M18 12v.5",key:"18hhni"}],["path",{d:"M16 17.93a9.77 9.77 0 0 1 0-11.86",key:"16dt7o"}],["path",{d:"M7 10.67C7 8 5.58 5.97 2.73 5.5c-1 1.5-1 5 .23 6.5-1.24 1.5-1.24 5-.23 6.5C5.58 18.03 7 16 7 13.33",key:"l9di03"}],["path",{d:"M10.46 7.26C10.2 5.88 9.17 4.24 8 3h5.8a2 2 0 0 1 1.98 1.67l.23 1.4",key:"1kjonw"}],["path",{d:"m16.01 17.93-.23 1.4A2 2 0 0 1 13.8 21H9.5a5.96 5.96 0 0 0 1.49-3.98",key:"1zlm23"}]]);/**
127 * @license lucide-react v0.462.0 - ISC
128 *
129 * This source code is licensed under the ISC license.
130 * See the LICENSE file in the root directory of this source tree.
131 */const rM=Ue("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"}]]);/**
132 * @license lucide-react v0.462.0 - ISC
133 *
134 * This source code is licensed under the ISC license.
135 * See the LICENSE file in the root directory of this source tree.
136 */const iM=Ue("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"}]]);/**
137 * @license lucide-react v0.462.0 - ISC
138 *
139 * This source code is licensed under the ISC license.
140 * See the LICENSE file in the root directory of this source tree.
141 */const Ym=Ue("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]);/**
142 * @license lucide-react v0.462.0 - ISC
143 *
144 * This source code is licensed under the ISC license.
145 * See the LICENSE file in the root directory of this source tree.
146 */const Xm=Ue("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"}]]);/**
147 * @license lucide-react v0.462.0 - ISC
148 *
149 * This source code is licensed under the ISC license.
150 * See the LICENSE file in the root directory of this source tree.
151 */const pT=Ue("Map",[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]]);/**
152 * @license lucide-react v0.462.0 - ISC
153 *
154 * This source code is licensed under the ISC license.
155 * See the LICENSE file in the root directory of this source tree.
156 */const sM=Ue("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"}]]);/**
157 * @license lucide-react v0.462.0 - ISC
158 *
159 * This source code is licensed under the ISC license.
160 * See the LICENSE file in the root directory of this source tree.
161 */const oM=Ue("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);/**
162 * @license lucide-react v0.462.0 - ISC
163 *
164 * This source code is licensed under the ISC license.
165 * See the LICENSE file in the root directory of this source tree.
166 */const aM=Ue("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/**
167 * @license lucide-react v0.462.0 - ISC
168 *
169 * This source code is licensed under the ISC license.
170 * See the LICENSE file in the root directory of this source tree.
171 */const mT=Ue("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
172 * @license lucide-react v0.462.0 - ISC
173 *
174 * This source code is licensed under the ISC license.
175 * See the LICENSE file in the root directory of this source tree.
176 */const lM=Ue("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/**
177 * @license lucide-react v0.462.0 - ISC
178 *
179 * This source code is licensed under the ISC license.
180 * See the LICENSE file in the root directory of this source tree.
181 */const uM=Ue("Trees",[["path",{d:"M10 10v.2A3 3 0 0 1 8.9 16H5a3 3 0 0 1-1-5.8V10a3 3 0 0 1 6 0Z",key:"1l6gj6"}],["path",{d:"M7 16v6",key:"1a82de"}],["path",{d:"M13 19v3",key:"13sx9i"}],["path",{d:"M12 19h8.3a1 1 0 0 0 .7-1.7L18 14h.3a1 1 0 0 0 .7-1.7L16 9h.2a1 1 0 0 0 .8-1.7L13 3l-1.4 1.5",key:"1sj9kv"}]]);/**
182 * @license lucide-react v0.462.0 - ISC
183 *
184 * This source code is licensed under the ISC license.
185 * See the LICENSE file in the root directory of this source tree.
186 */const cM=Ue("UtensilsCrossed",[["path",{d:"m16 2-2.3 2.3a3 3 0 0 0 0 4.2l1.8 1.8a3 3 0 0 0 4.2 0L22 8",key:"n7qcjb"}],["path",{d:"M15 15 3.3 3.3a4.2 4.2 0 0 0 0 6l7.3 7.3c.7.7 2 .7 2.8 0L15 15Zm0 0 7 7",key:"d0u48b"}],["path",{d:"m2.1 21.8 6.4-6.3",key:"yn04lh"}],["path",{d:"m19 5-7 7",key:"194lzd"}]]);/**
187 * @license lucide-react v0.462.0 - ISC
188 *
189 * This source code is licensed under the ISC license.
190 * See the LICENSE file in the root directory of this source tree.
191 */const Yy=Ue("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 5,917 bytes, line 191
191],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Xy="-",dM=t=>{const e=fM(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:a=>{const l=a.split(Xy);return l[0]===""&&l.length!==1&&l.shift(),gT(l,e)||hM(a)},getConflictingClassGroupIds:(a,l)=>{const c=n[a]||[];return l&&r[a]?[...c,...r[a]]:c}}},gT=(t,e)=>{var a;if(t.length===0)return e.classGroupId;const n=t[0],r=e.nextPart.get(n),i=r?gT(t.slice(1),r):void 0;if(i)return i;if(e.validators.length===0)return;const s=t.join(Xy);return(a=e.validators.find(({validator:l})=>l(s)))==null?void 0:a.classGroupId},m_=/^\[(.+)\]$/,hM=t=>{if(m_.test(t)){const e=m_.exec(t)[1],n=e==null?void 0:e.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}},fM=t=>{const{theme:e,prefix:n}=t,r={nextPart:new Map,validators:[]};return mM(Object.entries(t.classGroups),n).forEach(([s,a])=>{Qm(a,r,s,e)}),r},Qm=(t,e,n,r)=>{t.forEach(i=>{if(typeof i=="string"){const s=i===""?e:g_(e,i);s.classGroupId=n;return}if(typeof i=="function"){if(pM(i)){Qm(i(r),e,n,r);return}e.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([s,a])=>{Qm(a,g_(e,s),n,r)})})},g_=(t,e)=>{let n=t;return e.split(Xy).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},pM=t=>t.isThemeGetter,mM=(t,e)=>e?t.map(([n,r])=>{const i=r.map(s=>typeof s=="string"?e+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([a,l])=>[e+a,l])):s);return[n,i]}):t,gM=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=new Map,r=new Map;const i=(s,a)=>{n.set(s,a),e++,e>t&&(e=0,r=n,n=new Map)};return{get(s){let a=n.get(s);if(a!==void 0)return a;if((a=r.get(s))!==void 0)return i(s,a),a},set(s,a){n.has(s)?n.set(s,a):i(s,a)}}},yT="!",yM=t=>{const{separator:e,experimentalParseClassName:n}=t,r=e.length===1,i=e[0],s=e.length,a=l=>{const c=[];let d=0,f=0,p;for(let T=0;T<l.length;T++){let x=l[T];if(d===0){if(x===i&&(r||l.slice(T,T+s)===e)){c.push(l.slice(f,T)),f=T+s;continue}if(x==="/"){p=T;continue}}x==="["?d++:x==="]"&&d--}const g=c.length===0?l:l.substring(f),y=g.startsWith(yT),b=y?g.substring(1):g,_=p&&p>f?p-f:void 0;return{modifiers:c,hasImportantModifier:y,baseClassName:b,maybePostfixModifierPosition:_}};return n?l=>n({className:l,parseClassName:a}):a},vM=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},wM=t=>({cache:gM(t.cacheSize),parseClassName:yM(t),...dM(t)}),_M=/\s+/,bM=(t,e)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=e,s=[],a=t.trim().split(_M);let l="";for(let c=a.length-1;c>=0;c-=1){const d=a[c],{modifiers:f,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:y}=n(d);let b=!!y,_=r(b?g.substring(0,y):g);if(!_){if(!b){l=d+(l.length>0?" "+l:l);continue}if(_=r(g),!_){l=d+(l.length>0?" "+l:l);continue}b=!1}const T=vM(f).join(":"),x=p?T+yT:T,S=x+_;if(s.includes(S))continue;s.push(S);const k=i(_,b);for(let E=0;E<k.length;++E){const A=k[E];s.push(x+A)}l=d+(l.length>0?" "+l:l)}return l};function xM(){let t=0,e,n,r="";for(;t<arguments.length;)(e=arguments[t++])&&(n=vT(e))&&(r&&(r+=" "),r+=n);return r}const vT=t=>{if(typeof t=="string")return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=vT(t[r]))&&(n&&(n+=" "),n+=e);return n};function kM(t,...e){let n,r,i,s=a;function a(c){const d=e.reduce((f,p)=>p(f),t());return n=wM(d),r=n.cache.get,i=n.cache.set,s=l,l(c)}function l(c){const d=r(c);if(d)return d;const f=bM(c,n);return i(c,f),f}return function(){return s(xM.apply(null,arguments))}}const Ve=t=>{const e=n=>n[t]||[];return e.isThemeGetter=!0,e},wT=/^\[(?:([a-z-]+):)?(.+)\]$/i,SM=/^\d+\/\d+$/,TM=new Set(["px","full","screen"]),PM=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,CM=/\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$/,EM=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,AM=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,RM=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Wr=t=>ta(t)||TM.has(t)||SM.test(t),vi=t=>Ma(t,"length",BM),ta=t=>!!t&&!Number.isNaN(Number(t)),pp=t=>Ma(t,"number",ta),ml=t=>!!t&&Number.isInteger(Number(t)),LM=t=>t.endsWith("%")&&ta(t.slice(0,-1)),xe=t=>wT.test(t),wi=t=>PM.test(t),OM=new Set(["length","size","percentage"]),MM=t=>Ma(t,OM,_T),NM=t=>Ma(t,"position",_T),jM=new Set(["image","url"]),IM=t=>Ma(t,jM,FM),DM=t=>Ma(t,"",zM),gl=()=>!0,Ma=(t,e,n)=>{const r=wT.exec(t);return r?r[1]?typeof e=="string"?r[1]===e:e.has(r[1]):n(r[2]):!1},BM=t=>CM.test(t)&&!EM.test(t),_T=()=>!1,zM=t=>AM.test(t),FM=t=>RM.test(t),$M=()=>{const t=Ve("colors"),e=Ve("spacing"),n=Ve("blur"),r=Ve("brightness"),i=Ve("borderColor"),s=Ve("borderRadius"),a=Ve("borderSpacing"),l=Ve("borderWidth"),c=Ve("contrast"),d=Ve("grayscale"),f=Ve("hueRotate"),p=Ve("invert"),g=Ve("gap"),y=Ve("gradientColorStops"),b=Ve("gradientColorStopPositions"),_=Ve("inset"),T=Ve("margin"),x=Ve("opacity"),S=Ve("padding"),k=Ve("saturate"),E=Ve("scale"),A=Ve("sepia"),O=Ve("skew"),M=Ve("space"),I=Ve("translate"),B=()=>["auto","contain","none"],H=()=>["auto","hidden","clip","visible","scroll"],J=()=>["auto",xe,e],Z=()=>[xe,e],ge=()=>["",Wr,vi],G=()=>["auto",ta,xe],be=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],oe=()=>["solid","dashed","dotted","double","none"],te=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],N=()=>["start","end","center","between","around","evenly","stretch"],$=()=>["","0",xe],z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Q=()=>[ta,xe];return{cacheSize:500,separator:":",theme:{colors:[gl],spacing:[Wr,vi],blur:["none","",wi,xe],brightness:Q(),borderColor:[t],borderRadius:["n
191one","","full",wi,xe],borderSpacing:Z(),borderWidth:ge(),contrast:Q(),grayscale:$(),hueRotate:Q(),invert:$(),gap:Z(),gradientColorStops:[t],gradientColorStopPositions:[LM,vi],inset:J(),margin:J(),opacity:Q(),padding:Z(),saturate:Q(),scale:Q(),sepia:$(),skew:Q(),space:Z(),translate:Z()},classGroups:{aspect:[{aspect:["auto","square","video",xe]}],container:["container"],columns:[{columns:[wi]}],"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:[...be(),xe]}],overflow:[{overflow:H()}],"overflow-x":[{"overflow-x":H()}],"overflow-y":[{"overflow-y":H()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[_]}],"inset-x":[{"inset-x":[_]}],"inset-y":[{"inset-y":[_]}],start:[{start:[_]}],end:[{end:[_]}],top:[{top:[_]}],right:[{right:[_]}],bottom:[{bottom:[_]}],left:[{left:[_]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ml,xe]}],basis:[{basis:J()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",xe]}],grow:[{grow:$()}],shrink:[{shrink:$()}],order:[{order:["first","last","none",ml,xe]}],"grid-cols":[{"grid-cols":[gl]}],"col-start-end":[{col:["auto",{span:["full",ml,xe]},xe]}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":[gl]}],"row-start-end":[{row:["auto",{span:[ml,xe]},xe]}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",xe]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",xe]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...N()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...N(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...N(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[S]}],px:[{px:[S]}],py:[{py:[S]}],ps:[{ps:[S]}],pe:[{pe:[S]}],pt:[{pt:[S]}],pr:[{pr:[S]}],pb:[{pb:[S]}],pl:[{pl:[S]}],m:[{m:[T]}],mx:[{mx:[T]}],my:[{my:[T]}],ms:[{ms:[T]}],me:[{me:[T]}],mt:[{mt:[T]}],mr:[{mr:[T]}],mb:[{mb:[T]}],ml:[{ml:[T]}],"space-x":[{"space-x":[M]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[M]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",xe,e]}],"min-w":[{"min-w":[xe,e,"min","max","fit"]}],"max-w":[{"max-w":[xe,e,"none","full","min","max","fit","prose",{screen:[wi]},wi]}],h:[{h:[xe,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[xe,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[xe,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[xe,e,"auto","min","max","fit"]}],"font-size":[{text:["base",wi,vi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",pp]}],"font-family":[{font:[gl]}],"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",xe]}],"line-clamp":[{"line-clamp":["none",ta,pp]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Wr,xe]}],"list-image":[{"list-image":["none",xe]}],"list-style-type":[{list:["none","disc","decimal",xe]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...oe(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Wr,vi]}],"underline-offset":[{"underline-offset":["auto",Wr,xe]}],"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:Z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",xe]}],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",xe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...be(),NM]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",MM]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},IM]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[b]}
vendor: 5,186 bytes, line 191
191],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[y]}],"gradient-via":[{via:[y]}],"gradient-to":[{to:[y]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...oe(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:oe()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...oe()]}],"outline-offset":[{"outline-offset":[Wr,xe]}],"outline-w":[{outline:[Wr,vi]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:ge()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[Wr,vi]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",wi,DM]}],"shadow-color":[{shadow:[gl]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...te(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":te()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",wi,xe]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[p]}],saturate:[{saturate:[k]}],sepia:[{sepia:[A]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[k]}],"backdrop-sepia":[{"backdrop-sepia":[A]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",xe]}],duration:[{duration:Q()}],ease:[{ease:["linear","in","out","in-out",xe]}],delay:[{delay:Q()}],animate:[{animate:["none","spin","ping","pulse","bounce",xe]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[ml,xe]}],"translate-x":[{"translate-x":[I]}],"translate-y":[{"translate-y":[I]}],"skew-x":[{"skew-x":[O]}],"skew-y":[{"skew-y":[O]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",xe]}],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",xe]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":Z()}],"scroll-mx":[{"scroll-mx":Z()}],"scroll-my":[{"scroll-my":Z()}],"scroll-ms":[{"scroll-ms":Z()}],"scroll-me":[{"scroll-me":Z()}],"scroll-mt":[{"scroll-mt":Z()}],"scroll-mr":[{"scroll-mr":Z()}],"scroll-mb":[{"scroll-mb":Z()}],"scroll-ml":[{"scroll-ml":Z()}],"scroll-p":[{"scroll-p":Z()}],"scroll-px":[{"scroll-px":Z()}],"scroll-py":[{"scroll-py":Z()}],"scroll-ps":[{"scroll-ps":Z()}],"scroll-pe":[{"scroll-pe":Z()}],"scroll-pt":[{"scroll-pt":Z()}],"scroll-pr":[{"scroll-pr":Z()}],"scroll-pb":[{"scroll-pb":Z()}],"scroll-pl":[{"scroll-pl":Z()}],"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"]}
191],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",xe]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[Wr,vi,pp]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},UM=kM($M);function no(...t){return UM(cT(t))}function y_(t){return t.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,"")}const VM={utm_source:"tripeakstourism.com",utm_medium:"referral",utm_campaign:"tri_peaks_guidebook"},HM=["tripeakstourism.com","tripeaks.lovable.app","tripeaks.squatchsites.com"];function Ar(t,e){if(!t)return t??void 0;if(!/^https?:\/\//i.test(t))return t;try{const n=new URL(t),r=n.hostname.toLowerCase().replace(/^www\./,"");if(HM.some(s=>r===s||r.endsWith(`.${s}`))||r==="maps.google.com"||r.startsWith("maps.google.")||/(^|\.)google\.[a-z.]+$/.test(r)&&n.pathname.startsWith("/maps")||r==="maps.apple.com"||r==="goo.gl"||["facebook.com","fb.com","instagram.com","twitter.com","x.com","tiktok.com","youtube.com","youtu.be","linkedin.com","pinterest.com","threads.net","snapchat.com"].some(s=>r===s||r.endsWith(`.${s}`)))return t;if(!n.searchParams.has("utm_source"))for(const[s,a]of Object.entries(VM))n.searchParams.set(s,a);return n.toString()}catch{return t}}const WM=WO,bT=C.forwardRef(({className:t,...e},n)=>v.jsx(rT,{ref:n,className:no("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}));bT.displayName=rT.displayName;const qM=qO("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"}}),xT=C.forwardRef(({className:t,variant:e,...n},r)=>v.jsx(iT,{ref:r,className:no(qM({variant:e}),t),...n}));xT.displayName=iT.displayName;const GM=C.forwardRef(({className:t,...e},n)=>v.jsx(aT,{ref:n,className:no("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",t),...e}));GM.displayName=aT.displayName;
191const kT=C.forwardRef(({className:t,...e},n)=>v.jsx(lT,{ref:n,className:no("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",t),"toast-close":"",...e,children:v.jsx(Yy,{className:"h-4 w-4"})}));kT.displayName=lT.displayName;const ST=C.forwardRef(({className:t,...e},n)=>v.jsx(sT,{ref:n,className:no("text-sm font-semibold",t),...e}));ST.displayName=sT.displayName;const TT=C.forwardRef(({className:t,...e},n)=>v.jsx(oT,{ref:n,className:no("text-sm opacity-90",t),...e}));TT.displayName=oT.displayName;function ZM(){const{toasts:t}=QL();return v.jsxs(WM,{children:[t.map(function({id:e,title:n,description:r,action:i,...s}){return v.jsxs(xT,{...s,children:[v.jsxs("div",{className:"grid gap-1",children:[n&&v.jsx(ST,{children:n}),r&&v.jsx(TT,{children:r})]}),i,v.jsx(kT,{})]},e)}),v.jsx(bT,{})]})}var v_=["light","dark"],KM="(prefers-color-scheme: dark)",JM=C.createContext(void 0),YM={setTheme:t=>{},themes:[]},XM=()=>{var t;return(t=C.useContext(JM))!=null?t:YM};C.memo(({forcedTheme:t,storageKey:e,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:s,value:a,attrs:l,nonce:c})=>{let d=s==="system",f=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${l.map(b=>`'${b}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,p=i?v_.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",g=(b,_=!1,T=!0)=>{let x=a?a[b]:b,S=_?b+"|| ''":`'${x}'`,k="";return i&&T&&!_&&v_.includes(b)&&(k+=`d.style.colorScheme = '${b}';`),n==="class"?_||x?k+=`c.add(${S})`:k+="null":x&&(k+=`d[s](n,${S})`),k},y=t?`!function(){${f}${g(t)}}()`:r?`!function(){try{${f}var e=localStorage.getItem('${e}');if('system'===e||(!e&&${d})){var t='${KM}',m=window.matchMedia(t);if(m.media!==t||m.matches){${g("dark")}}else{${g("light")}}}else if(e){${a?`var x=${JSON.stringify(a)};`:""}${g(a?"x[e]":"e",!0)}}${d?"":"else{"+g(s,!1,!1)+"}"}${p}}catch(e){}}()`:`!function(){try{${f}var e=localStorage.getItem('${e}');if(e){${a?`var x=${JSON.stringify(a)};`:""}${g(a?"x[e]":"e",!0)}}else{${g(s,!1,!1)};}${p}}catch(t){}}();`;return C.createElement("script",{nonce:c,dangerouslySetInnerHTML:{__html:y}})});var QM=t=>{switch(t){case"success":return nN;case"info":return iN;case"warning":return rN;case"error":return sN;default:return null}},eN=Array(12).fill(0),tN=({visible:t,className:e})=>U.createElement("div",{className:["sonner-loading-wrapper",e].filter(Boolean).join(" "),"data-visible":t},U.createElement("div",{className:"sonner-spinner"},eN.map((n,r)=>U.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),nN=U.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},U.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"})),rN=U.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},U.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"})),iN=U.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},U.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"}
191)),sN=U.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},U.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"})),oN=U.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"},U.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),U.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),aN=()=>{let[t,e]=U.useState(document.hidden);return U.useEffect(()=>{let n=()=>{e(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),t},eg=1,lN=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,i=typeof(t==null?void 0:t.id)=="number"||((e=t.id)==null?void 0:e.length)>0?t.id:eg++,s=this.toasts.find(l=>l.id===i),a=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),s?this.toasts=this.toasts.map(l=>l.id===i?(this.publish({...l,...t,id:i,title:n}),{...l,...t,id:i,dismissible:a,title:n}):l):this.addToast({title:n,...r,dismissible:a,id:i}),i},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(),i=n!==void 0,s,a=r.then(async c=>{if(s=["resolve",c],U.isValidElement(c))i=!1,this.create({id:n,type:"default",message:c});else if(cN(c)&&!c.ok){i=!1;let d=typeof e.error=="function"?await e.error(`HTTP error! status: ${c.status}`):e.error,f=typeof e.description=="function"?await e.description(`HTTP error! status: ${c.status}`):e.description;this.create({id:n,type:"error",message:d,description:f})}else if(e.success!==void 0){i=!1;let d=typeof e.success=="function"?await e.success(c):e.success,f=typeof e.description=="function"?await e.description(c):e.description;this.create({id:n,type:"success",message:d,description:f})}}).catch(async c=>{if(s=["reject",c],e.error!==void 0){i=!1;let d=typeof e.error=="function"?await e.error(c):e.error,f=typeof e.description=="function"?await e.description(c):e.description;this.create({id:n,type:"error",message:d,description:f})}}).finally(()=>{var c;i&&(this.dismiss(n),n=void 0),(c=e.finally)==null||c.call(e)}),l=()=>new Promise((c,d)=>a.then(()=>s[0]==="reject"?d(s[1]):c(s[1])).catch(d));return typeof n!="string"&&typeof n!="number"?{unwrap:l}:Object.assign(n,{unwrap:l})},this.custom=(t,e)=>{let n=(e==null?void 0:e.id)||eg++;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}},Jt=new lN,uN=(t,e)=>{let n=(e==null?void 0:e.id)||eg++;return Jt.addToast({title:t,...e,id:n}),n},cN=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",dN=uN,hN=()=>Jt.toasts,fN=()=>Jt.getActiveToasts();Object.assign(dN,{success:Jt.success,info:Jt.info,warning:Jt.warning,error:Jt.error,custom:Jt.custom,message:Jt.message,promise:Jt.promise,dismiss:Jt.dismiss,loading:Jt.loading},{getHistory:hN,getToasts:fN});function pN(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))}pN(`: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;
191left: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}
191: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%);
191--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%)}
192`);function jc(t){return t.label!==void 0}var mN=3,gN="32px",yN="16px",w_=4e3,vN=356,wN=14,_N=20,bN=200;function Fn(...t){return t.filter(Boolean).join(" ")}function xN(t){let[e,n]=t.split("-"),r=[];return e&&r.push(e),n&&r.push(n),r}var kN=t=>{var e,n,r,i,s,a,l,c,d,f,p;let{invert:g,toast:y,unstyled:b,interacting:_,setHeights:T,visibleToasts:x,heights:S,index:k,toasts:E,expanded:A,removeToast:O,defaultRichColors:M,closeButton:I,style:B,cancelButtonStyle:H,actionButtonStyle:J,className:Z="",descriptionClassName:ge="",duration:G,position:be,gap:oe,loadingIcon:te,expandByDefault:N,classNames:$,icons:z,closeButtonAriaLabel:Q="Close toast",pauseWhenPageIsHidden:ee}=t,[ce,le]=U.useState(null),[fe,de]=U.useState(null),[ke,It]=U.useState(!1),[jn,In]=U.useState(!1),[gn,yn]=U.useState(!1),[vn,ro]=U.useState(!1),[io,fs]=U.useState(!1),[ps,ar]=U.useState(0),[fi,V
192a]=U.useState(0),Dr=U.useRef(y.duration||G||w_),Ha=U.useRef(null),lr=U.useRef(null),nf=k===0,rf=k+1<=x,Ct=y.type,Br=y.dismissible!==!1,Wu=y.className||"",sf=y.descriptionClassName||"",ms=U.useMemo(()=>S.findIndex(me=>me.toastId===y.id)||0,[S,y.id]),qu=U.useMemo(()=>{var me;return(me=y.closeButton)!=null?me:I},[y.closeButton,I]),Gu=U.useMemo(()=>y.duration||G||w_,[y.duration,G]),so=U.useRef(0),ur=U.useRef(0),Wa=U.useRef(0),pi=U.useRef(null),[gs,of]=be.split("-"),Zu=U.useMemo(()=>S.reduce((me,je,De)=>De>=ms?me:me+je.height,0),[S,ms]),qa=aN(),Ku=y.invert||g,oo=Ct==="loading";ur.current=U.useMemo(()=>ms*oe+Zu,[ms,Zu]),U.useEffect(()=>{Dr.current=Gu},[Gu]),U.useEffect(()=>{It(!0)},[]),U.useEffect(()=>{let me=lr.current;if(me){let je=me.getBoundingClientRect().height;return Va(je),T(De=>[{toastId:y.id,height:je,position:y.position},...De]),()=>T(De=>De.filter(rn=>rn.toastId!==y.id))}},[T,y.id]),U.useLayoutEffect(()=>{if(!ke)return;let me=lr.current,je=me.style.height;me.style.height="auto";let De=me.getBoundingClientRect().height;me.style.height=je,Va(De),T(rn=>rn.find(Dt=>Dt.toastId===y.id)?rn.map(Dt=>Dt.toastId===y.id?{...Dt,height:De}:Dt):[{toastId:y.id,height:De,position:y.position},...rn])},[ke,y.title,y.description,T,y.id]);let cr=U.useCallback(()=>{In(!0),ar(ur.current),T(me=>me.filter(je=>je.toastId!==y.id)),setTimeout(()=>{O(y)},bN)},[y,O,T,ur]);U.useEffect(()=>{if(y.promise&&Ct==="loading"||y.duration===1/0||y.type==="loading")return;let me;return A||_||ee&&qa?(()=>{if(Wa.current<so.current){let je=new Date().getTime()-so.current;Dr.current=Dr.current-je}Wa.current=new Date().getTime()})():Dr.current!==1/0&&(so.current=new Date().getTime(),me=setTimeout(()=>{var je;(je=y.onAutoClose)==null||je.call(y,y),cr()},Dr.current)),()=>clearTimeout(me)},[A,_,y,Ct,ee,qa,cr]),U.useEffect(()=>{y.delete&&cr()},[cr,y.delete]);function af(){var me,je,De;return z!=null&&z.loading?U.createElement("div",{className:Fn($==null?void 0:$.loader,(me=y==null?void 0:y.classNames)==null?void 0:me.loader,"sonner-loader"),"data-visible":Ct==="loading"},z.loading):te?U.createElement("div",{className:Fn($==null?void 0:$.loader,(je=y==null?void 0:y.classNames)==null?void 0:je.loader,"sonner-loader"),"data-visible":Ct==="loading"},te):U.createElement(tN,{className:Fn($==null?void 0:$.loader,(De=y==null?void 0:y.classNames)==null?void 0:De.loader),visible:Ct==="loading"})}return U.createElement("li",{tabIndex:0,ref:lr,className:Fn(Z,Wu,$==null?void 0:$.toast,(e=y==null?void 0:y.classNames)==null?void 0:e.toast,$==null?void 0:$.default,$==null?void 0:$[Ct],(n=y==null?void 0:y.classNames)==null?void 0:n[Ct]),"data-sonner-toast":"","data-rich-colors":(r=y.richColors)!=null?r:M,"data-styled":!(y.jsx||y.unstyled||b),"data-mounted":ke,"data-promise":!!y.promise,"data-swiped":io,"data-removed":jn,"data-visible":rf,"data-y-position":gs,"data-x-position":of,"data-index":k,"data-front":nf,"data-swiping":gn,"data-dismissible":Br,"data-type":Ct,"data-invert":Ku,"data-swipe-out":vn,"data-swipe-direction":fe,"data-expanded":!!(A||N&&ke),style:{"--index":k,"--toasts-before":k,"--z-index":E.length-k,"--offset":`${jn?ps:ur.current}px`,"--initial-height":N?"auto":`${fi}px`,...B,...y.style},onDragEnd:()=>{yn(!1),le(null),pi.current=null},onPointerDown:me=>{oo||!Br||(Ha.current=new Date,ar(ur.current),me.target.setPointerCapture(me.pointerId),me.target.tagName!=="BUTTON"&&(yn(!0),pi.current={x:me.clientX,y:me.clientY}))},onPointerUp:()=>{var me,je,De,rn;if(vn||!Br)return;pi.current=null;let Dt=Number(((me=lr.current)==null?void 0:me.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),dr=Number(((je=lr.current)==null?void 0:je.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),zr=new Date().getTime()-((De=Ha.current)==null?void 0:De.getTime()),sn=ce==="x"?Dt:dr,hr=Math.abs(sn)/zr;if(Math.abs(sn)>=_N||hr>.11){ar(ur.current),(rn=y.onDismiss)==null||rn.call(y,y),de(ce==="x"?Dt>0?"right":"left":dr>0?"down":"up"),cr(),ro(!0),fs(!1);return}yn(!1),le(null)},onPointerMove:me=>{var je,De,rn,Dt;if(!pi.current||!Br||((je=window.getSelection())==null?void 0:je.toString().length)>0)return;let dr=me.clientY-pi.current.y,zr=me.clientX-pi.current.x,sn=(De=t.swipeDirections)!=null?De:xN(be);!ce&&(Math.abs(zr)>1||Math.abs(dr)>1)&&le(Math.abs(zr)>
192Math.abs(dr)?"x":"y");let hr={x:0,y:0};ce==="y"?(sn.includes("top")||sn.includes("bottom"))&&(sn.includes("top")&&dr<0||sn.includes("bottom")&&dr>0)&&(hr.y=dr):ce==="x"&&(sn.includes("left")||sn.includes("right"))&&(sn.includes("left")&&zr<0||sn.includes("right")&&zr>0)&&(hr.x=zr),(Math.abs(hr.x)>0||Math.abs(hr.y)>0)&&fs(!0),(rn=lr.current)==null||rn.style.setProperty("--swipe-amount-x",`${hr.x}px`),(Dt=lr.current)==null||Dt.style.setProperty("--swipe-amount-y",`${hr.y}px`)}},qu&&!y.jsx?U.createElement("button",{"aria-label":Q,"data-disabled":oo,"data-close-button":!0,onClick:oo||!Br?()=>{}:()=>{var me;cr(),(me=y.onDismiss)==null||me.call(y,y)},className:Fn($==null?void 0:$.closeButton,(i=y==null?void 0:y.classNames)==null?void 0:i.closeButton)},(s=z==null?void 0:z.close)!=null?s:oN):null,y.jsx||C.isValidElement(y.title)?y.jsx?y.jsx:typeof y.title=="function"?y.title():y.title:U.createElement(U.Fragment,null,Ct||y.icon||y.promise?U.createElement("div",{"data-icon":"",className:Fn($==null?void 0:$.icon,(a=y==null?void 0:y.classNames)==null?void 0:a.icon)},y.promise||y.type==="loading"&&!y.icon?y.icon||af():null,y.type!=="loading"?y.icon||(z==null?void 0:z[Ct])||QM(Ct):null):null,U.createElement("div",{"data-content":"",className:Fn($==null?void 0:$.content,(l=y==null?void 0:y.classNames)==null?void 0:l.content)},U.createElement("div",{"data-title":"",className:Fn($==null?void 0:$.title,(c=y==null?void 0:y.classNames)==null?void 0:c.title)},typeof y.title=="function"?y.title():y.title),y.description?U.createElement("div",{"data-description":"",className:Fn(ge,sf,$==null?void 0:$.description,(d=y==null?void 0:y.classNames)==null?void 0:d.description)},typeof y.description=="function"?y.description():y.description):null),C.isValidElement(y.cancel)?y.cancel:y.cancel&&jc(y.cancel)?U.createElement("button",{"data-button":!0,"data-cancel":!0,style:y.cancelButtonStyle||H,onClick:me=>{var je,De;jc(y.cancel)&&Br&&((De=(je=y.cancel).onClick)==null||De.call(je,me),cr())},className:Fn($==null?void 0:$.cancelButton,(f=y==null?void 0:y.classNames)==null?void 0:f.cancelButton)},y.cancel.label):null,C.isValidElement(y.action)?y.action:y.action&&jc(y.action)?U.createElement("button",{"data-button":!0,"data-action":!0,style:y.actionButtonStyle||J,onClick:me=>{var je,De;jc(y.action)&&((De=(je=y.action).onClick)==null||De.call(je,me),!me.defaultPrevented&&cr())},className:Fn($==null?void 0:$.actionButton,(p=y==null?void 0:y.classNames)==null?void 0:p.actionButton)},y.action.label):null))};function __(){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 SN(t,e){let n={};return[t,e].forEach((r,i)=>{let s=i===1,a=s?"--mobile-offset":"--offset",l=s?yN:gN;function c(d){["top","right","bottom","left"].forEach(f=>{n[`${a}-${f}`]=typeof d=="number"?`${d}px`:d})}typeof r=="number"||typeof r=="string"?c(r):typeof r=="object"?["top","right","bottom","left"].forEach(d=>{r[d]===void 0?n[`${a}-${d}`]=l:n[`${a}-${d}`]=typeof r[d]=="number"?`${r[d]}px`:r[d]}):c(l)}),n}var TN=C.forwardRef(function(t,e){let{invert:n,position:r="bottom-right",hotkey:i=["altKey","KeyT"],expand:s,closeButton:a,className:l,offset:c,mobileOffset:d,theme:f="light",richColors:p,duration:g,style:y,visibleToasts:b=mN,toastOptions:_,dir:T=__(),gap:x=wN,loadingIcon:S,icons:k,containerAriaLabel:E="Notifications",pauseWhenPageIsHidden:A}=t,[O,M]=U.useState([]),I=U.useMemo(()=>Array.from(new Set([r].concat(O.filter(ee=>ee.position).map(ee=>ee.position)))),[O,r]),[B,H]=U.useState([]),[J,Z]=U.useState(!1),[ge,G]=U.useState(!1),[be,oe]=U.useState(f!=="system"?f:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),te=U.useRef(null),N=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),$=U.useRef(null),z=U.useRef(!1),Q=U.useCallback(ee=>{M(ce=>{var le;return(le=ce.find(fe=>fe.id===ee.id))!=null&&le.delete||Jt.dismiss(ee.id),ce.filter(({id:fe})=>fe!==ee.id)})},[]);return U.useEffect(()=>Jt.subscribe(ee=>{if(ee.dismiss){M(ce=>ce.map(le=>
vendor: 5,680 bytes, line 192
192le.id===ee.id?{...le,delete:!0}:le));return}setTimeout(()=>{ES.flushSync(()=>{M(ce=>{let le=ce.findIndex(fe=>fe.id===ee.id);return le!==-1?[...ce.slice(0,le),{...ce[le],...ee},...ce.slice(le+1)]:[ee,...ce]})})})}),[]),U.useEffect(()=>{if(f!=="system"){oe(f);return}if(f==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?oe("dark"):oe("light")),typeof window>"u")return;let ee=window.matchMedia("(prefers-color-scheme: dark)");try{ee.addEventListener("change",({matches:ce})=>{oe(ce?"dark":"light")})}catch{ee.addListener(({matches:le})=>{try{oe(le?"dark":"light")}catch(fe){console.error(fe)}})}},[f]),U.useEffect(()=>{O.length<=1&&Z(!1)},[O]),U.useEffect(()=>{let ee=ce=>{var le,fe;i.every(de=>ce[de]||ce.code===de)&&(Z(!0),(le=te.current)==null||le.focus()),ce.code==="Escape"&&(document.activeElement===te.current||(fe=te.current)!=null&&fe.contains(document.activeElement))&&Z(!1)};return document.addEventListener("keydown",ee),()=>document.removeEventListener("keydown",ee)},[i]),U.useEffect(()=>{if(te.current)return()=>{$.current&&($.current.focus({preventScroll:!0}),$.current=null,z.current=!1)}},[te.current]),U.createElement("section",{ref:e,"aria-label":`${E} ${N}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},I.map((ee,ce)=>{var le;let[fe,de]=ee.split("-");return O.length?U.createElement("ol",{key:ee,dir:T==="auto"?__():T,tabIndex:-1,ref:te,className:l,"data-sonner-toaster":!0,"data-theme":be,"data-y-position":fe,"data-lifted":J&&O.length>1&&!s,"data-x-position":de,style:{"--front-toast-height":`${((le=B[0])==null?void 0:le.height)||0}px`,"--width":`${vN}px`,"--gap":`${x}px`,...y,...SN(c,d)},onBlur:ke=>{z.current&&!ke.currentTarget.contains(ke.relatedTarget)&&(z.current=!1,$.current&&($.current.focus({preventScroll:!0}),$.current=null))},onFocus:ke=>{ke.target instanceof HTMLElement&&ke.target.dataset.dismissible==="false"||z.current||(z.current=!0,$.current=ke.relatedTarget)},onMouseEnter:()=>Z(!0),onMouseMove:()=>Z(!0),onMouseLeave:()=>{ge||Z(!1)},onDragEnd:()=>Z(!1),onPointerDown:ke=>{ke.target instanceof HTMLElement&&ke.target.dataset.dismissible==="false"||G(!0)},onPointerUp:()=>G(!1)},O.filter(ke=>!ke.position&&ce===0||ke.position===ee).map((ke,It)=>{var jn,In;return U.createElement(kN,{key:ke.id,icons:k,index:It,toast:ke,defaultRichColors:p,duration:(jn=_==null?void 0:_.duration)!=null?jn:g,className:_==null?void 0:_.className,descriptionClassName:_==null?void 0:_.descriptionClassName,invert:n,visibleToasts:b,closeButton:(In=_==null?void 0:_.closeButton)!=null?In:a,interacting:ge,position:ee,style:_==null?void 0:_.style,unstyled:_==null?void 0:_.unstyled,classNames:_==null?void 0:_.classNames,cancelButtonStyle:_==null?void 0:_.cancelButtonStyle,actionButtonStyle:_==null?void 0:_.actionButtonStyle,removeToast:Q,toasts:O.filter(gn=>gn.position==ke.position),heights:B.filter(gn=>gn.position==ke.position),setHeights:H,expandByDefault:s,gap:x,loadingIcon:S,expanded:J,pauseWhenPageIsHidden:A,swipeDirections:t.swipeDirections})})):null}))});const PN=({...t})=>{const{theme:e="system"}=XM();return v.jsx(TN,{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})},CN=["top","right","bottom","left"],ts=Math.min,an=Math.max,Wd=Math.round,Ic=Math.floor,Rr=t=>({x:t,y:t}),EN={left:"right",right:"left",bottom:"top",top:"bottom"},AN={start:"end",end:"start"};function tg(t,e,n){return an(t,ts(e,n))}function ai(t,e){return typeof t=="function"?t(e):t}function li(t){return t.split("-")[0]}function Na(t){return t.split("-")[1]}function Qy(t){return t==="x"?"y":"x"}function ev(t){return t==="y"?"height":"width"}const RN=new Set(["top","bottom"]);function Pr(t){return RN.has(li(t))?"y":"x"}function tv(t){return Qy(Pr(t))}function LN(t,e,n){n===void 0&&(n=!1);const r=Na(t),i=tv(t),s=ev(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(a=qd(a)),[a,qd(a)]}function ON(t){const e=qd(t);return[ng(t),e,ng(e)]}function ng(t){return t.replace(/start|end/g,e=>AN[e])}const b_=["left","right"],x_=["right","left"],MN=["top","bottom"],NN=["bottom","top"];function jN(t,e,n){switch(t){case"top":case"bottom":return n?e?x_:b_:e?b_:x_;case"left":case"right":return e?MN:NN;default:return[]}}function IN(t,e,n,r){const i=Na(t);let s=jN(li(t),n==="start",r);return i&&(s=s.map(a=>a+"-"+i),e&&(s=s.concat(s.map(ng)))),s}function qd(t){return t.replace(/left|right|bottom|top/g,e=>EN[e])}function DN(t){return{top:0,right:0,bottom:0,left:0,...t}}function PT(t){return typeof t!="number"?DN(t):{top:t,right:t,bottom:t,left:t}}function Gd(t){const{x:e,y:n,width:r,height:i}=t;return{width:r,height:i,top:n,left:e,right:e+r,bottom:n+i,x:e,y:n}}function k_(t,e,n){let{reference:r,floating:i}=t;const s=Pr(e),a=tv(e),l=ev(a),c=li(e),d=s==="y",f=r.x+r.width/2-i.width/2,p=r.y+r.height/2-i.height/2,g=r[l]/2-i[l]/2;let y;switch(c){case"top":y={x:f,y:r.y-i.height};break;case"bottom":y={x:f,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:p};break;case"left":y={x:r.x-i.width,y:p};break;default:y={x:r.x,y:r.y}}switch(Na(e)){case"start":y[a]-=g*(n&&d?-1:1);break;case"end":y[a]+=g*(n&&d?-1:1);break}return y}const BN=async(t,e,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:a}
vendor: 9,965 bytes, line 192
192=n,l=s.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(e));let d=await a.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:p}=k_(d,r,c),g=r,y={},b=0;for(let _=0;_<l.length;_++){const{name:T,fn:x}=l[_],{x:S,y:k,data:E,reset:A}=await x({x:f,y:p,initialPlacement:r,placement:g,strategy:i,middlewareData:y,rects:d,platform:a,elements:{reference:t,floating:e}});f=S??f,p=k??p,y={...y,[T]:{...y[T],...E}},A&&b<=50&&(b++,typeof A=="object"&&(A.placement&&(g=A.placement),A.rects&&(d=A.rects===!0?await a.getElementRects({reference:t,floating:e,strategy:i}):A.rects),{x:f,y:p}=k_(d,g,c)),_=-1)}return{x:f,y:p,placement:g,strategy:i,middlewareData:y}};async function uu(t,e){var n;e===void 0&&(e={});const{x:r,y:i,platform:s,rects:a,elements:l,strategy:c}=t,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:g=!1,padding:y=0}=ai(e,t),b=PT(y),T=l[g?p==="floating"?"reference":"floating":p],x=Gd(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(T)))==null||n?T:T.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:d,rootBoundary:f,strategy:c})),S=p==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,k=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),E=await(s.isElement==null?void 0:s.isElement(k))?await(s.getScale==null?void 0:s.getScale(k))||{x:1,y:1}:{x:1,y:1},A=Gd(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:S,offsetParent:k,strategy:c}):S);return{top:(x.top-A.top+b.top)/E.y,bottom:(A.bottom-x.bottom+b.bottom)/E.y,left:(x.left-A.left+b.left)/E.x,right:(A.right-x.right+b.right)/E.x}}const zN=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:i,rects:s,platform:a,elements:l,middlewareData:c}=e,{element:d,padding:f=0}=ai(t,e)||{};if(d==null)return{};const p=PT(f),g={x:n,y:r},y=tv(i),b=ev(y),_=await a.getDimensions(d),T=y==="y",x=T?"top":"left",S=T?"bottom":"right",k=T?"clientHeight":"clientWidth",E=s.reference[b]+s.reference[y]-g[y]-s.floating[b],A=g[y]-s.reference[y],O=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let M=O?O[k]:0;(!M||!await(a.isElement==null?void 0:a.isElement(O)))&&(M=l.floating[k]||s.floating[b]);const I=E/2-A/2,B=M/2-_[b]/2-1,H=ts(p[x],B),J=ts(p[S],B),Z=H,ge=M-_[b]-J,G=M/2-_[b]/2+I,be=tg(Z,G,ge),oe=!c.arrow&&Na(i)!=null&&G!==be&&s.reference[b]/2-(G<Z?H:J)-_[b]/2<0,te=oe?G<Z?G-Z:G-ge:0;return{[y]:g[y]+te,data:{[y]:be,centerOffset:G-be-te,...oe&&{alignmentOffset:te}},reset:oe}}}),FN=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:i,middlewareData:s,rects:a,initialPlacement:l,platform:c,elements:d}=e,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:g,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:_=!0,...T}=ai(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const x=li(i),S=Pr(l),k=li(l)===l,E=await(c.isRTL==null?void 0:c.isRTL(d.floating)),A=g||(k||!_?[qd(l)]:ON(l)),O=b!=="none";!g&&O&&A.push(...IN(l,_,b,E));const M=[l,...A],I=await uu(e,T),B=[];let H=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&B.push(I[x]),p){const G=LN(i,a,E);B.push(I[G[0]],I[G[1]])}if(H=[...H,{placement:i,overflows:B}],!B.every(G=>G<=0)){var J,Z;const G=(((J=s.flip)==null?void 0:J.index)||0)+1,be=M[G];if(be&&(!(p==="alignment"?S!==Pr(be):!1)||H.every(N=>N.overflows[0]>0&&Pr(N.placement)===S)))return{data:{index:G,overflows:H},reset:{placement:be}};let oe=(Z=H.filter(te=>te.overflows[0]<=0).sort((te,N)=>te.overflows[1]-N.overflows[1])[0])==null?void 0:Z.placement;if(!oe)switch(y){case"bestFit":{var ge;const te=(ge=H.filter(N=>{if(O){const $=Pr(N.placement);return $===S||$==="y"}return!0}).map(N=>[N.placement,N.overflows.filter($=>$>0).reduce(($,z)=>$+z,0)]).sort((N,$)=>N[1]-$[1])[0])==null?void 0:ge[0];te&&(oe=te);break}case"initialPlacement":oe=l;break}if(i!==oe)return{reset:{placement:oe}}}return{}}}};function S_(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function T_(t){return CN.some(e=>t[e]>=0)}const $N=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:r="referenceHidden",...i}=ai(t,e);switch(r){case"referenceHidden":{const s=await uu(e,{...i,elementContext:"reference"}),a=S_(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:T_(a)}}}case"escaped":{const s=await uu(e,{...i,altBoundary:!0}),a=S_(s,n.floating);return{data:{escapedOffsets:a,escaped:T_(a)}}}default:return{}}}}},CT=new Set(["left","top"]);async function UN(t,e){const{placement:n,platform:r,elements:i}=t,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=li(n),l=Na(n),c=Pr(n)==="y",d=CT.has(a)?-1:1,f=s&&c?-1:1,p=ai(e,t);let{mainAxis:g,crossAxis:y,alignmentAxis:b}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return l&&typeof b=="number"&&(y=l==="end"?b*-1:b),c?{x:y*f,y:g*d}:{x:g*d,y:y*f}}const VN=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:i,y:s,placement:a,middlewareData:l}=e,c=await UN(e,t);return a===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:i+c.x,y:s+c.y,data:{...c,placement:a}}}}},HN=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:i}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:T=>{let{x,y:S}=T;return{x,y:S}}},...c}=ai(t,e),d={x:n,y:r},f=await uu(e,c),p=Pr(li(i)),g=Qy(p);let y=d[g],b=d[p];if(s){const T=g==="y"?"top":"left",x=g==="y"?"bottom":"right",S=y+f[T],k=y-f[x];y=tg(S,y,k)}if(a){const T=p==="y"?"top":"left",x=p==="y"?"bottom":"right",S=b+f[T],k=b-f[x];b=tg(S,b,k)}const _=l.fn({...e,[g]:y,[p]:b});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[g]:s,[p]:a}}}}}},WN=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:r,placement:i,rects:s,middlewareData:a}=e,{offset:l=0,mainAxis:c=!0,crossAxis:d=!0}=ai(t,e),f={x:n,y:r},p=Pr(i),g=Qy(p);let y=f[g],b=f[p];const _=ai(l,e),T=typeof _=="number"?{mainAxis:_,crossAxis:0}:{mainAxis:0,crossAxis:0,..._};if(c){const k=g==="y"?"height":"width",E=s.reference[g]-s.floating[k]+T.mainAxis,A=s.reference[g]+s.reference[k]-T.mainAxis;y<E?y=E:y>A&&(y=A)}if(d){var x,S;const k=g==="y"?"width":"height",E=CT.has(li(i)),A=s.reference[p]-s.floating[k]+(E&&((x=a.offset)==null?void 0:x[p])||0)+(E?0:T.crossAxis),O=s.reference[p]+s.reference[k]+(E?0:((S=a.offset)==null?void 0:S[p])||0)-(E?T.crossAxis:0);b<A?b=A:b>O&&(b=O)}return{[g]:y,[p]:b}}}},qN=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,r;const{placement:i,rects:s,platform:a,elements:l}=e,{apply:c=()=>{},...d}=ai(t,e),f=await uu(e,d),p=li(i),g=Na(i),y=Pr(i)==="y",{width:b,height:_}=s.floating;let T,x;p==="top"||p==="bottom"?(T=p,x=g===(await(a.isRTL==null?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(x=p,T=g==="end"?"top":"bottom");const S=_-f.top-f.bottom,k=b-f.left-f.right,E=ts(_-f[T],S),A=ts(b-f[x],k),O=!e.middlewareData.shift;let M=E,I=A;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(I=k),(r=e.middlewareData.shift)!=null&&r.enabled.y&&(M=S),O&&!g){const H=an(f.left,0),J=an(f.right,0),Z=an(f.top,0),ge=an(f.bottom,0);y?I=b-2*(H!==0||J!==0?H+J:an(f.left,f.right)):M=_-2*(Z!==0||ge!==0?Z+ge:an(f.top,f.bottom))}await c({...e,availableWidth:I,availableHeight:M});const B=await a.getDimensions(l.floating);return b!==B.width||_!==B.height?{reset:{rects:!0}}:{}}}};function zh(){return typeof window<"u"}function ja(t){return ET(t)?(t.nodeName||"").toLowerCase():"#document"}function dn(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function jr(t){var e;return(e=(ET(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function ET(t){return zh()?t instanceof Node||t instanceof dn(t).Node:!1}function rr(t){return zh()?t instanceof Element||t instanceof dn(t).Element:!1}function Mr(t){return zh()?t instanceof HTMLElement||t instanceof dn(t).HTMLElement:!1}function P_(t){return!zh()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof dn(t).ShadowRoot}const GN=new Set(["inline","contents"]);function zu(t){const{overflow:e,overflowX:n,overflowY:r,display:i}=ir(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!GN.has(i)}const ZN=new Set(["table","td","th"]);function KN(t){return ZN.has(ja(t))}const JN=[":popover-open",":modal"];function Fh(t){return JN.some(e=>{try{return t.matches(e)}catch{return!1}})}const YN=["transform","translate","scale","rotate","perspective"],XN=["transform","translate","scale","rotate","perspective","filter"],QN=["paint","layout","strict","content"];function nv(t){const e=rv(),n=rr(t)?ir(t):t;return YN.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)||XN.some(r=>(n.willChange||"").includes(r))||QN.some(r=>(n.contain||"").includes(r))}function ej(t){let e=ns(t);for(;Mr(e)&&!_a(e);){if(nv(e))return e;if(Fh(e))return null;e=ns(e)}return null}function rv(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const tj=new Set(["html","body","#document"]);function _a(t){return tj.has(ja(t))}function ir(t){return dn(t).getComputedStyle(t)}function $h(t){return rr(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function ns(t){if(ja(t)==="html")return t;const e=t.assignedSlot||t.parentNode||P_(t)&&t.host||jr(t);return P_(e)?e.host:e}function AT(t){const e=ns(t);return _a(e)?t.ownerDocument?t.ownerDocument.body:t.body:Mr(e)&&zu(e)?e:AT(e)}function cu(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=AT(t),s=i===((r=t.ownerDocument)==null?void 0:r.body),a=dn(i);if(s){const l=rg(a);
vendor: 5,412 bytes, line 192
192return e.concat(a,a.visualViewport||[],zu(i)?i:[],l&&n?cu(l):[])}return e.concat(i,cu(i,[],n))}function rg(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function RT(t){const e=ir(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const i=Mr(t),s=i?t.offsetWidth:n,a=i?t.offsetHeight:r,l=Wd(n)!==s||Wd(r)!==a;return l&&(n=s,r=a),{width:n,height:r,$:l}}function iv(t){return rr(t)?t:t.contextElement}function na(t){const e=iv(t);if(!Mr(e))return Rr(1);const n=e.getBoundingClientRect(),{width:r,height:i,$:s}=RT(e);let a=(s?Wd(n.width):n.width)/r,l=(s?Wd(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const nj=Rr(0);function LT(t){const e=dn(t);return!rv()||!e.visualViewport?nj:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function rj(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==dn(t)?!1:e}function Xs(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),s=iv(t);let a=Rr(1);e&&(r?rr(r)&&(a=na(r)):a=na(t));const l=rj(s,n,r)?LT(s):Rr(0);let c=(i.left+l.x)/a.x,d=(i.top+l.y)/a.y,f=i.width/a.x,p=i.height/a.y;if(s){const g=dn(s),y=r&&rr(r)?dn(r):r;let b=g,_=rg(b);for(;_&&r&&y!==b;){const T=na(_),x=_.getBoundingClientRect(),S=ir(_),k=x.left+(_.clientLeft+parseFloat(S.paddingLeft))*T.x,E=x.top+(_.clientTop+parseFloat(S.paddingTop))*T.y;c*=T.x,d*=T.y,f*=T.x,p*=T.y,c+=k,d+=E,b=dn(_),_=rg(b)}}return Gd({width:f,height:p,x:c,y:d})}function sv(t,e){const n=$h(t).scrollLeft;return e?e.left+n:Xs(jr(t)).left+n}function OT(t,e,n){n===void 0&&(n=!1);const r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-(n?0:sv(t,r)),s=r.top+e.scrollTop;return{x:i,y:s}}function ij(t){let{elements:e,rect:n,offsetParent:r,strategy:i}=t;const s=i==="fixed",a=jr(r),l=e?Fh(e.floating):!1;if(r===a||l&&s)return n;let c={scrollLeft:0,scrollTop:0},d=Rr(1);const f=Rr(0),p=Mr(r);if((p||!p&&!s)&&((ja(r)!=="body"||zu(a))&&(c=$h(r)),Mr(r))){const y=Xs(r);d=na(r),f.x=y.x+r.clientLeft,f.y=y.y+r.clientTop}const g=a&&!p&&!s?OT(a,c,!0):Rr(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+f.x+g.x,y:n.y*d.y-c.scrollTop*d.y+f.y+g.y}}function sj(t){return Array.from(t.getClientRects())}function oj(t){const e=jr(t),n=$h(t),r=t.ownerDocument.body,i=an(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),s=an(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+sv(t);const l=-n.scrollTop;return ir(r).direction==="rtl"&&(a+=an(e.clientWidth,r.clientWidth)-i),{width:i,height:s,x:a,y:l}}function aj(t,e){const n=dn(t),r=jr(t),i=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,l=0,c=0;if(i){s=i.width,a=i.height;const d=rv();(!d||d&&e==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:s,height:a,x:l,y:c}}const lj=new Set(["absolute","fixed"]);function uj(t,e){const n=Xs(t,!0,e==="fixed"),r=n.top+t.clientTop,i=n.left+t.clientLeft,s=Mr(t)?na(t):Rr(1),a=t.clientWidth*s.x,l=t.clientHeight*s.y,c=i*s.x,d=r*s.y;return{width:a,height:l,x:c,y:d}}function C_(t,e,n){let r;if(e==="viewport")r=aj(t,n);else if(e==="document")r=oj(jr(t));else if(rr(e))r=uj(e,n);else{const i=LT(t);r={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return Gd(r)}function MT(t,e){const n=ns(t);return n===e||!rr(n)||_a(n)?!1:ir(n).position==="fixed"||MT(n,e)}function cj(t,e){const n=e.get(t);if(n)return n;let r=cu(t,[],!1).filter(l=>rr(l)&&ja(l)!=="body"),i=null;const s=ir(t).position==="fixed";let a=s?ns(t):t;for(;rr(a)&&!_a(a);){const l=ir(a),c=nv(a);!c&&l.position==="fixed"&&(i=null),(s?!c&&!i:!c&&l.position==="static"&&!!i&&lj.has(i.position)||zu(a)&&!c&&MT(t,a))?r=r.filter(f=>f!==a):i=l,a=ns(a)}return e.set(t,r),r}function dj(t){let{element:e,boundary:n,rootBoundary:r,strategy:i}=t;const a=[...n==="clippingAncestors"?Fh(e)?[]:cj(e,this._c):[].concat(n),r],l=a[0],c=a.reduce((d,f)=>{const p=C_(e,f,i);return d.top=an(p.top,d.top),d.right=ts(p.right,d.right),d.bottom=ts(p.bottom,d.bottom),d.left=an(p.left,d.left),d},C_(e,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function hj(t){const{width:e,height:n}=RT(t);return{width:e,height:n}}function fj(t,e,n){const r=Mr(e),i=jr(e),s=n==="fixed",a=Xs(t,!0,s,e);let l={scrollLeft:0,scrollTop:0};const c=Rr(0);function d(){c.x=sv(i)}if(r||!r&&!s)if((ja(e)!=="body"||zu(i))&&(l=$h(e)),r){const y=Xs(e,!0,s,e);c.x=y.x+e.clientLeft,c.y=y.y+e.clientTop}else i&&d();s&&!r&&i&&d();const f=i&&!r&&!s?OT(i,l):Rr(0),p=a.left+l.scrollLeft-c.x-f.x,g=a.top+l.scrollTop-c.y-f.y;return{x:p,y:g,width:a.width,height:a.height}}function mp(t){return ir(t).position==="static"}function E_(t,e){if(!Mr(t)||ir(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return jr(t)===n&&(n=n.ownerDocument.body),n}function NT(t,e){const n=dn(t);if(Fh(t))return n;if(!Mr(t)){let i=ns(t);for(;i&&!_a(i);){if(rr(i)&&!mp(i))return i;i=ns(i)}return n}let r=E_(t,e);for(;r&&KN(r)&&mp(r);)r=E_(r,e);return r&&_a(r)&&mp(r)&&!nv(r)?n:r||ej(t)||n}const pj=async function(t){const e=this.getOffsetParent||NT,n=this.getDimensions,r=await n(t.floating);return{reference:fj(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function mj(t){return ir(t).direction==="rtl"}const gj={convertOffsetParentRelativeRectToViewportRelativeRect:ij,getDocumentElement:jr,getClippingRect:dj,getOffsetParent:NT,getElementRects:pj,getClientRects:sj,getDimensions:hj,get
vendor: 10,324 bytes, line 192
192Scale:na,isElement:rr,isRTL:mj};function jT(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function yj(t,e){let n=null,r;const i=jr(t);function s(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function a(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),s();const d=t.getBoundingClientRect(),{left:f,top:p,width:g,height:y}=d;if(l||e(),!g||!y)return;const b=Ic(p),_=Ic(i.clientWidth-(f+g)),T=Ic(i.clientHeight-(p+y)),x=Ic(f),k={rootMargin:-b+"px "+-_+"px "+-T+"px "+-x+"px",threshold:an(0,ts(1,c))||1};let E=!0;function A(O){const M=O[0].intersectionRatio;if(M!==c){if(!E)return a();M?a(!1,M):r=setTimeout(()=>{a(!1,1e-7)},1e3)}M===1&&!jT(d,t.getBoundingClientRect())&&a(),E=!1}try{n=new IntersectionObserver(A,{...k,root:i.ownerDocument})}catch{n=new IntersectionObserver(A,k)}n.observe(t)}return a(!0),s}function vj(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,d=iv(t),f=i||s?[...d?cu(d):[],...cu(e)]:[];f.forEach(x=>{i&&x.addEventListener("scroll",n,{passive:!0}),s&&x.addEventListener("resize",n)});const p=d&&l?yj(d,n):null;let g=-1,y=null;a&&(y=new ResizeObserver(x=>{let[S]=x;S&&S.target===d&&y&&(y.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var k;(k=y)==null||k.observe(e)})),n()}),d&&!c&&y.observe(d),y.observe(e));let b,_=c?Xs(t):null;c&&T();function T(){const x=Xs(t);_&&!jT(_,x)&&n(),_=x,b=requestAnimationFrame(T)}return n(),()=>{var x;f.forEach(S=>{i&&S.removeEventListener("scroll",n),s&&S.removeEventListener("resize",n)}),p==null||p(),(x=y)==null||x.disconnect(),y=null,c&&cancelAnimationFrame(b)}}const wj=VN,_j=HN,bj=FN,xj=qN,kj=$N,A_=zN,Sj=WN,Tj=(t,e,n)=>{const r=new Map,i={platform:gj,...n},s={...i.platform,_c:r};return BN(t,e,{...i,platform:s})};var Pj=typeof document<"u",Cj=function(){},fd=Pj?C.useLayoutEffect:Cj;function Zd(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,i;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(!Zd(t[r],e[r]))return!1;return!0}if(i=Object.keys(t),n=i.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(e,i[r]))return!1;for(r=n;r--!==0;){const s=i[r];if(!(s==="_owner"&&t.$$typeof)&&!Zd(t[s],e[s]))return!1}return!0}return t!==t&&e!==e}function IT(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function R_(t,e){const n=IT(t);return Math.round(e*n)/n}function gp(t){const e=C.useRef(t);return fd(()=>{e.current=t}),e}function Ej(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:s,floating:a}={},transform:l=!0,whileElementsMounted:c,open:d}=t,[f,p]=C.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[g,y]=C.useState(r);Zd(g,r)||y(r);const[b,_]=C.useState(null),[T,x]=C.useState(null),S=C.useCallback(N=>{N!==O.current&&(O.current=N,_(N))},[]),k=C.useCallback(N=>{N!==M.current&&(M.current=N,x(N))},[]),E=s||b,A=a||T,O=C.useRef(null),M=C.useRef(null),I=C.useRef(f),B=c!=null,H=gp(c),J=gp(i),Z=gp(d),ge=C.useCallback(()=>{if(!O.current||!M.current)return;const N={placement:e,strategy:n,middleware:g};J.current&&(N.platform=J.current),Tj(O.current,M.current,N).then($=>{const z={...$,isPositioned:Z.current!==!1};G.current&&!Zd(I.current,z)&&(I.current=z,Du.flushSync(()=>{p(z)}))})},[g,e,n,J,Z]);fd(()=>{d===!1&&I.current.isPositioned&&(I.current.isPositioned=!1,p(N=>({...N,isPositioned:!1})))},[d]);const G=C.useRef(!1);fd(()=>(G.current=!0,()=>{G.current=!1}),[]),fd(()=>{if(E&&(O.current=E),A&&(M.current=A),E&&A){if(H.current)return H.current(E,A,ge);ge()}},[E,A,ge,H,B]);const be=C.useMemo(()=>({reference:O,floating:M,setReference:S,setFloating:k}),[S,k]),oe=C.useMemo(()=>({reference:E,floating:A}),[E,A]),te=C.useMemo(()=>{const N={position:n,left:0,top:0};if(!oe.floating)return N;const $=R_(oe.floating,f.x),z=R_(oe.floating,f.y);return l?{...N,transform:"translate("+$+"px, "+z+"px)",...IT(oe.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:$,top:z}},[n,l,oe.floating,f.x,f.y]);return C.useMemo(()=>({...f,update:ge,refs:be,elements:oe,floatingStyles:te}),[f,ge,be,oe,te])}const Aj=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:r,padding:i}=typeof t=="function"?t(n):t;return r&&e(r)?r.current!=null?A_({element:r.current,padding:i}).fn(n):{}:r?A_({element:r,padding:i}).fn(n):{}}}},Rj=(t,e)=>({...wj(t),options:[t,e]}),Lj=(t,e)=>({..._j(t),options:[t,e]}),Oj=(t,e)=>({...Sj(t),options:[t,e]}),Mj=(t,e)=>({...bj(t),options:[t,e]}),Nj=(t,e)=>({...xj(t),options:[t,e]}),jj=(t,e)=>({...kj(t),options:[t,e]}),Ij=(t,e)=>({...Aj(t),options:[t,e]});var Dj="Arrow",DT=C.forwardRef((t,e)=>{const{children:n,width:r=10,height:i=5,...s}=t;return v.jsx(nn.svg,{...s,ref:e,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:v.jsx("polygon",{points:"0,0 30,0 15,10"})})});DT.displayName=Dj;var Bj=DT;function zj(t){const[e,n]=C.useState(void 0);return es(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const s=i[0];let a,l;if("borderBoxSize"in s){const c=s.borderBoxSize,d=Array.isArray(c)?c[0]:c;a=d.inlineSize,l=d.blockSize}else a=t.offsetWidth,l=t.offsetHeight;n({width:a,height:l})});return r.observe(t,{box:"border-box"}),()=>r.unobserve(t)}else n(void 0)},[t]),e}var BT="Popper",[zT,FT]=Ih(BT),[F8,$T]=zT(BT),UT="PopperAnchor",VT=C.forwardRef((t,e)=>{const{__scopePopper:n,virtualRef:r,...i}=t,s=$T(UT,n),a=C.useRef(null),l=nr(e,a);return C.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:v.jsx(nn.div,{...i,ref:l})});VT.displayName=UT;var ov="PopperContent",[Fj,$j]=zT(ov),HT=C.forwardRef((t,e)=>{var ke,It,jn,In,gn,yn;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:s="center",alignOffset:a=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:g=!1,updatePositionStrategy:y="optimized",onPlaced:b,..._}=t,T=$T(ov,n),[x,S]=C.useState(null),k=nr(e,vn=>S(vn)),[E,A]=C.useState(null),O=zj(E),M=(O==null?void 0:O.width)??0,I=(O==null?void 0:O.height)??0,B=r+(s!=="center"?"-"+s:""),H=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},J=Array.isArray(d)?d:[d],Z=J.length>0,ge={padding:H,boundary:J.filter(Vj),altBoundary:Z},{refs:G,floatingStyles:be,placement:oe,isPositioned:te,middlewareData:N}=Ej({strategy:"fixed",placement:B,whileElementsMounted:(...vn)=>vj(...vn,{animationFrame:y==="always"}),elements:{reference:T.anchor},middleware:[Rj({mainAxis:i+I,alignmentAxis:a}),c&&Lj({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Oj():void 0,...ge}),c&&Mj({...ge}),Nj({...ge,apply:({elements:vn,rects:ro,availableWidth:io,availableHeight:fs})=>{const{width:ps,height:ar}=ro.reference,fi=vn.floating.style;fi.setProperty("--radix-popper-available-width",`${io}px`),fi.setProperty("--radix-popper-available-height",`${fs}px`),fi.setProperty("--radix-popper-anchor-width",`${ps}px`),fi.setProperty("--radix-popper-anchor-height",`${ar}px`)}}),E&&Ij({element:E,padding:l}),Hj({arrowWidth:M,arrowHeight:I}),g&&jj({strategy:"referenceHidden",...ge})]}),[$,z]=GT(oe),Q=Qi(b);es(()=>{te&&(Q==null||Q())},[te,Q]);const ee=(ke=N.arrow)==null?void 0:ke.x,ce=(It=N.arrow)==null?void 0:It.y,le=((jn=N.arrow)==null?void 0:jn.centerOffset)!==0,[fe,de]=C.useState();return es(()=>{x&&de(window.getComputedStyle(x).zIndex)},[x]),v.jsx("div",{ref:G.setFloating,"data-radix-popper-content-wrapper":"",style:{...be,transform:te?be.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:fe,"--radix-popper-transform-origin":[(In=N.transformOrigin)==null?void 0:In.x,(gn=N.transformOrigin)==null?void 0:gn.y].join(" "),...((yn=N.hide)==null?void 0:yn.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:v.jsx(Fj,{scope:n,placedSide:$,onArrowChange:A,arrowX:ee,arrowY:ce,shouldHideArrow:le,children:v.jsx(nn.div,{"data-side":$,"data-align":z,..._,ref:k,style:{..._.style,animation:te?void 0:"none"}})})})});HT.displayName=ov;var WT="PopperArrow",Uj={top:"bottom",right:"left",bottom:"top",left:"right"},qT=C.forwardRef(function(e,n){const{__scopePopper:r,...i}=e,s=$j(WT,r),a=Uj[s.placedSide];return v.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:v.jsx(Bj,{...i,ref:n,style:{...i.style,display:"block"}})})});qT.displayName=WT;function Vj(t){return t!==null}var Hj=t=>({name:"transformOrigin",options:t,fn(e){var T,x,S;const{placement:n,rects:r,middlewareData:i}=e,a=((T=i.arrow)==null?void 0:T.centerOffset)!==0,l=a?0:t.arrowWidth,c=a?0:t.arrowHeight,[d,f]=GT(n),p={start:"0%",center:"50%",end:"100%"}[f],g=(((x=i.arrow)==null?void 0:x.x)??0)+l/2,y=(((S=i.arrow)==null?void 0:S.y)??0)+c/2;let b="",_="";return d==="bottom"?(b=a?p:`${g}px`,_=`${-c}px`):d==="top"?(b=a?p:`${g}px`,_=`${r.floating.height+c}px`):d==="right"?(b=`${-c}px`,_=a?p:`${y}px`):d==="left"&&(b=`${r.floating.width+c}px`,_=a?p:`${y}px`),{data:{x:b,y:_}}}});function GT(t){const[e,n="center"]=t.split("-");return[e,n]}var Wj=VT,qj=HT,Gj=qT,[Uh,$8]=Ih("Tooltip",[FT]),av=FT(),ZT="TooltipProvider",Zj=700,L_="tooltip.open",[Kj,KT]=Uh(ZT),JT=t=>{const{__scopeTooltip:e,delayDuration:n=Zj,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:s}=t,a=C.useRef(!0),l=C.useRef(!1),c=C.useRef(0);return C.useEffect(()=>{const d=c.current;return()=>window.clearTimeout(d)},[]),v.jsx(Kj,{scope:e,isOpenDelayedRef:a,delayDuration:n,onOpen:C.useCallback(()=>{window.clearTimeout(c.current),a.current=!1},[]),onClose:C.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:C.useCallback(d=>{l.current=d}
vendor: 2,031 bytes, line 192
192,[]),disableHoverableContent:i,children:s})};JT.displayName=ZT;var YT="Tooltip",[U8,Vh]=Uh(YT),ig="TooltipTrigger",Jj=C.forwardRef((t,e)=>{const{__scopeTooltip:n,...r}=t,i=Vh(ig,n),s=KT(ig,n),a=av(n),l=C.useRef(null),c=nr(e,l,i.onTriggerChange),d=C.useRef(!1),f=C.useRef(!1),p=C.useCallback(()=>d.current=!1,[]);return C.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),v.jsx(Wj,{asChild:!0,...a,children:v.jsx(nn.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:c,onPointerMove:gt(t.onPointerMove,g=>{g.pointerType!=="touch"&&!f.current&&!s.isPointerInTransitRef.current&&(i.onTriggerEnter(),f.current=!0)}),onPointerLeave:gt(t.onPointerLeave,()=>{i.onTriggerLeave(),f.current=!1}),onPointerDown:gt(t.onPointerDown,()=>{i.open&&i.onClose(),d.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:gt(t.onFocus,()=>{d.current||i.onOpen()}),onBlur:gt(t.onBlur,i.onClose),onClick:gt(t.onClick,i.onClose)})})});Jj.displayName=ig;var Yj="TooltipPortal",[V8,Xj]=Uh(Yj,{forceMount:void 0}),ba="TooltipContent",XT=C.forwardRef((t,e)=>{const n=Xj(ba,t.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...s}=t,a=Vh(ba,t.__scopeTooltip);return v.jsx(qy,{present:r||a.open,children:a.disableHoverableContent?v.jsx(QT,{side:i,...s,ref:e}):v.jsx(Qj,{side:i,...s,ref:e})})}),Qj=C.forwardRef((t,e)=>{const n=Vh(ba,t.__scopeTooltip),r=KT(ba,t.__scopeTooltip),i=C.useRef(null),s=nr(e,i),[a,l]=C.useState(null),{trigger:c,onClose:d}=n,f=i.current,{onPointerInTransitChange:p}=r,g=C.useCallback(()=>{l(null),p(!1)},[p]),y=C.useCallback((b,_)=>{const T=b.currentTarget,x={x:b.clientX,y:b.clientY},S=i3(x,T.getBoundingClientRect()),k=s3(x,S),E=o3(_.getBoundingClientRect()),A=l3([...k,...E]);l(A),p(!0)},[p]);return C.useEffect(()=>()=>g(),[g]),C.useEffect(()=>{if(c&&f){const b=T=>y(T,f),_=T=>y(T,c);return c.addEventListener("pointerleave",b),f.addEventListener("pointerleave",_),()=>{c.removeEventListener("pointerleave",b),f.removeEventListener("pointerleave",_)}
192}},[c,f,y,g]),C.useEffect(()=>{if(a){const b=_=>{const T=_.target,x={x:_.clientX,y:_.clientY},S=(c==null?void 0:c.contains(T))||(f==null?void 0:f.contains(T)),k=!a3(x,a);S?g():k&&(g(),d())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[c,f,a,d,g]),v.jsx(QT,{...t,ref:s})}),[e3,t3]=Uh(YT,{isInside:!1}),n3=nO("TooltipContent"),QT=C.forwardRef((t,e)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:s,onPointerDownOutside:a,...l}=t,c=Vh(ba,n),d=av(n),{onClose:f}=c;return C.useEffect(()=>(document.addEventListener(L_,f),()=>document.removeEventListener(L_,f)),[f]),C.useEffect(()=>{if(c.trigger){const p=g=>{const y=g.target;y!=null&&y.contains(c.trigger)&&f()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[c.trigger,f]),v.jsx(Wy,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:p=>p.preventDefault(),onDismiss:f,children:v.jsxs(qj,{"data-state":c.stateAttribute,...d,...l,ref:e,style:{...l.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:[v.jsx(n3,{children:r}),v.jsx(e3,{scope:n,isInside:!0,children:v.jsx(CO,{id:c.contentId,role:"tooltip",children:i||r})})]})})});XT.displayName=ba;var eP="TooltipArrow",r3=C.forwardRef((t,e)=>{const{__scopeTooltip:n,...r}=t,i=av(n);return t3(eP,n).isInside?null:v.jsx(Gj,{...i,...r,ref:e})});r3.displayName=eP;function i3(t,e){const n=Math.abs(e.top-t.y),r=Math.abs(e.bottom-t.y),i=Math.abs(e.right-t.x),s=Math.abs(e.left-t.x);switch(Math.min(n,r,i,s)){case s:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function s3(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 o3(t){const{top:e,right:n,bottom:r,left:i}=t;return[{x:i,y:e},{x:n,y:e},{x:n,y:r},{x:i,y:r}]}function a3(t,e){const{x:n,y:r}=t;let i=!1;for(let s=0,a=e.length-1;s<e.length;a=s++){const l=e[s],c=e[a],d=l.x,f=l.y,p=c.x,g=c.y;f>r!=g>r&&n<(p-d)*(r-f)/(g-f)+d&&(i=!i)}return i}function l3(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),u3(e)}function u3(t){if(t.length<=1)return t.slice();const e=[];for(let r=0;r<t.length;r++){const i=t[r];for(;e.length>=2;){const s=e[e.length-1],a=e[e.length-2];if((s.x-a.x)*(i.y-a.y)>=(s.y-a.y)*(i.x-a.x))e.pop();else break}e.push(i)}e.pop();const n=[];for(let r=t.length-1;r>=0;r--){const i=t[r];for(;n.length>=2;){const s=n[n.length-1],a=n[n.length-2];if((s.x-a.x)*(i.y-a.y)>=(s.y-a.y)*(i.x-a.x))n.pop();else break}n.push(i)}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 c3=JT,tP=XT;const d3=c3,h3=C.forwardRef(({className:t,sideOffset:e=4,...n},r)=>v.jsx(tP,{ref:r,sideOffset:e,className:no("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}));h3.displayName=tP.displayName;var Hh=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(){}},Wh=typeof window>"u"||"Deno"in globalThis;function Wn(){}function f3(t,e){return typeof t=="function"?t(e):t}function p3(t){return typeof t=="number"&&t>=0&&t!==1/0}function m3(t,e){return Math.max(t+(e||0)-Date.now(),0)}function sg(t,e){return typeof t=="function"?t(e):t}function g3(t,e){return typeof t=="function"?t(e):t}function O_(t,e){const{type:n="all",exact:r,fetchStatus:i,predicate:s,queryKey:a,stale:l}=t;if(a){if(r){if(e.queryHash!==lv(a,e.options))return!1}else if(!hu(e.queryKey,a))return!1}if(n!=="all"){const c=e.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof l=="boolean"&&e.isStale()!==l||i&&i!==e.state.fetchStatus||s&&!s(e))}function M_(t,e){const{exact:n,status:r,predicate:i,mutationKey:s}=t;if(s){if(!e.options.mutationKey)return!1;if(n){if(du(e.options.mutationKey)!==du(s))return!1}else if(!hu(e.options.mutationKey,s))return!1}return!(r&&e.state.status!==r||i&&!i(e))}function lv(t,e){return((e==null?void 0:e.queryKeyHashFn)||du)(t)}function du(t){return JSON.stringify(t,(e,n)=>og(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function hu(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(n=>hu(t[n],e[n])):!1}function nP(t,e){if(t===e)return t;const n=N_(t)&&N_(e);if(n||og(t)&&og(e)){const r=n?t:Object.keys(t),i=r.length,s=n?e:Object.keys(e),a=s.length,l=n?[]:{},c=new Set(r);let d=0;for(let f=0;f<a;f++){const p=n?f:s[f];(!n&&c.has(p)||n)&&t[p]===void 0&&e[p]===void 0?(l[p]=void 0,d++):(l[p]=nP(t[p],e[p]),l[p]===t[p]&&t[p]!==void 0&&d++)}return i===a&&d===i?t:l}return e}function N_(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function og(t){if(!j_(t))return!1;const e=t.constructor;if(e===void 0)return!0;const n=e.prototype;return!(!j_(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function j_(t){return Object.prototype.toString.call(t)==="[object Object]"}function y3(t){return new Promise(e=>{setTimeout(e,t)})}function v3(t,e,n){return typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?nP(t,e):e}function w3(t,e,n=0){const r=[...t,e];return n&&r.length>n?r.slice(1):r}function _3(t,e,n=0){const r=[e,...t];return n&&r.length>n?r.slice(0,-1):r}var uv=Symbol();function rP(t,e){return!t.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!t.queryFn||t.queryFn===uv?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}var Bs,Li,sa,ak,b3=(ak=class extends Hh{constructor(){super();Me(this,Bs);Me(this,Li);Me(this,sa);we(this,sa,e=>{if(!Wh&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){F(this,Li)||this.setEventListener(F(this,sa))}onUnsubscribe(){var e;this.hasListeners()||((e=F(this,Li))==null||e.call(this),we(this,Li,void 0))}setEventListener(e){var n;we(this,sa,e),(n=F(this,Li))==null||n.call(this),we(this,Li,e(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(e){F(this,Bs)!==e&&(we(this,Bs,e),this.onFocus())}onFocus(){const e=this.isFocused();
vendor: 4,924 bytes, line 192
192this.listeners.forEach(n=>{n(e)})}isFocused(){var e;return typeof F(this,Bs)=="boolean"?F(this,Bs):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},Bs=new WeakMap,Li=new WeakMap,sa=new WeakMap,ak),iP=new b3,oa,Oi,aa,lk,x3=(lk=class extends Hh{constructor(){super();Me(this,oa,!0);Me(this,Oi);Me(this,aa);we(this,aa,e=>{if(!Wh&&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(){F(this,Oi)||this.setEventListener(F(this,aa))}onUnsubscribe(){var e;this.hasListeners()||((e=F(this,Oi))==null||e.call(this),we(this,Oi,void 0))}setEventListener(e){var n;we(this,aa,e),(n=F(this,Oi))==null||n.call(this),we(this,Oi,e(this.setOnline.bind(this)))}setOnline(e){F(this,oa)!==e&&(we(this,oa,e),this.listeners.forEach(r=>{r(e)}))}isOnline(){return F(this,oa)}},oa=new WeakMap,Oi=new WeakMap,aa=new WeakMap,lk),Kd=new x3;function k3(){let t,e;const n=new Promise((i,s)=>{t=i,e=s});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),t(i)},n.reject=i=>{r({status:"rejected",reason:i}),e(i)},n}function S3(t){return Math.min(1e3*2**t,3e4)}function sP(t){return(t??"online")==="online"?Kd.isOnline():!0}var oP=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function yp(t){return t instanceof oP}function aP(t){let e=!1,n=0,r=!1,i;const s=k3(),a=_=>{var T;r||(g(new oP(_)),(T=t.abort)==null||T.call(t))},l=()=>{e=!0},c=()=>{e=!1},d=()=>iP.isFocused()&&(t.networkMode==="always"||Kd.isOnline())&&t.canRun(),f=()=>sP(t.networkMode)&&t.canRun(),p=_=>{var T;r||(r=!0,(T=t.onSuccess)==null||T.call(t,_),i==null||i(),s.resolve(_))},g=_=>{var T;r||(r=!0,(T=t.onError)==null||T.call(t,_),i==null||i(),s.reject(_))},y=()=>new Promise(_=>{var T;i=x=>{(r||d())&&_(x)},(T=t.onPause)==null||T.call(t)}).then(()=>{var _;i=void 0,r||(_=t.onContinue)==null||_.call(t)}),b=()=>{if(r)return;let _;const T=n===0?t.initialPromise:void 0;try{_=T??t.fn()}catch(x){_=Promise.reject(x)}Promise.resolve(_).then(p).catch(x=>{var O;if(r)return;const S=t.retry??(Wh?0:3),k=t.retryDelay??S3,E=typeof k=="function"?k(n,x):k,A=S===!0||typeof S=="number"&&n<S||typeof S=="function"&&S(n,x);if(e||!A){g(x);return}n++,(O=t.onFail)==null||O.call(t,n,x),y3(E).then(()=>d()?void 0:y()).then(()=>{e?g(x):b()})})};return{promise:s,cancel:a,continue:()=>(i==null||i(),s),cancelRetry:l,continueRetry:c,canStart:f,start:()=>(f()?b():y().then(b),s)}}var T3=t=>setTimeout(t,0);function P3(){let t=[],e=0,n=l=>{l()},r=l=>{l()},i=T3;const s=l=>{e?t.push(l):i(()=>{n(l)})},a=()=>{const l=t;t=[],l.length&&i(()=>{r(()=>{l.forEach(c=>{n(c)})})})};return{batch:l=>{let c;e++;try{c=l()}finally{e--,e||a()}return c},batchCalls:l=>(...c)=>{s(()=>{l(...c)})},schedule:s,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{i=l}}}var $t=P3(),zs,uk,lP=(uk=class{constructor(){Me(this,zs)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),p3(this.gcTime)&&we(this,zs,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(Wh?1/0:5*60*1e3))}clearGcTimeout(){F(this,zs)&&(clearTimeout(F(this,zs)),we(this,zs,void 0))}},zs=new WeakMap,uk),la,Fs,Sn,$s,Ot,Ru,Us,Gn,Zr,ck,C3=(ck=class extends lP{constructor(e){super();Me(this,Gn);Me(this,la);Me(this,Fs);Me(this,Sn);Me(this,$s);Me(this,Ot);Me(this,Ru);Me(this,Us);we(this,Us,!1),we(this,Ru,e.defaultOptions),this.setOptions(e.options),this.observers=[],we(this,$s,e.client),we(this,Sn,F(this,$s).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,we(this,la,A3(this.options)),this.state=e.state??F(this,la),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=F(this,Ot))==null?void 0:e.promise}setOptions(e){this.options={...F(this,Ru),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&F(this,Sn).remove(this)}setData(e,n){const r=v3(this.state.data,e,this.options);return Et(this,Gn,Zr).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(e,n){Et(this,Gn,Zr).call(this,{type:"setState",state:e,setStateOptions:n})}cancel(e){var r,i;const n=(r=F(this,Ot))==null?void 0:r.promise;return(i=F(this,Ot))==null||i.cancel(e),n?n.then(Wn).catch(Wn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(F(this,la))}isActive(){return this.observers.some(e=>g3(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===uv||this.state.dataUpdateCount+this.state.errorUpdate
192Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>sg(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:!m3(this.state.dataUpdatedAt,e)}onFocus(){var n;const e=this.observers.find(r=>r.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(n=F(this,Ot))==null||n.continue()}onOnline(){var n;const e=this.observers.find(r=>r.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(n=F(this,Ot))==null||n.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),F(this,Sn).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(n=>n!==e),this.observers.length||(F(this,Ot)&&(F(this,Us)?F(this,Ot).cancel({revert:!0}):F(this,Ot).cancelRetry()),this.scheduleGc()),F(this,Sn).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Et(this,Gn,Zr).call(this,{type:"invalidate"})}fetch(e,n){var d,f,p;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(F(this,Ot))return F(this,Ot).continueRetry(),F(this,Ot).promise}if(e&&this.setOptions(e),!this.options.queryFn){const g=this.observers.find(y=>y.options.queryFn);g&&this.setOptions(g.options)}const r=new AbortController,i=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(we(this,Us,!0),r.signal)})},s=()=>{const g=rP(this.options,n),b=(()=>{const _={client:F(this,$s),queryKey:this.queryKey,meta:this.meta};return i(_),_})();return we(this,Us,!1),this.options.persister?this.options.persister(g,b,this):g(b)},l=(()=>{const g={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:F(this,$s),state:this.state,fetchFn:s};return i(g),g})();(d=this.options.behavior)==null||d.onFetch(l,this),we(this,Fs,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=l.fetchOptions)==null?void 0:f.meta))&&Et(this,Gn,Zr).call(this,{type:"fetch",meta:(p=l.fetchOptions)==null?void 0:p.meta});const c=g=>{var y,b,_,T;yp(g)&&g.silent||Et(this,Gn,Zr).call(this,{type:"error",error:g}),yp(g)||((b=(y=F(this,Sn).config).onError)==null||b.call(y,g,this),(T=(_=F(this,Sn).config).onSettled)==null||T.call(_,this.state.data,g,this)),this.scheduleGc()};return we(this,Ot,aP({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,abort:r.abort.bind(r),onSuccess:g=>{var y,b,_,T;if(g===void 0){c(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(g)}catch(x){c(x);return}(b=(y=F(this,Sn).config).onSuccess)==null||b.call(y,g,this),(T=(_=F(this,Sn).config).onSettled)==null||T.call(_,g,this.state.error,this),this.scheduleGc()},onError:c,onFail:(g,y)=>{Et(this,Gn,Zr).call(this,{type:"failed",failureCount:g,error:y})},onPause:()=>{Et(this,Gn,Zr).call(this,{type:"pause"})},onContinue:()=>{Et(this,Gn,Zr).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0})),F(this,Ot).start()}},la=new WeakMap,Fs=new WeakMap,Sn=new WeakMap,$s=new WeakMap,Ot=new WeakMap,Ru=new WeakMap,Us=new WeakMap,Gn=new WeakSet,Zr=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,...E3(r.data,this.options),fetchMeta:e.meta??null};case"success":return we(this,Fs,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 i=e.error;return yp(i)&&i.revert&&F(this,Fs)?{...F(this,Fs),fetchStatus:"idle"}
vendor: 4,511 bytes, line 192
192:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=n(this.state),$t.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),F(this,Sn).notify({query:this,type:"updated",action:e})})},ck);function E3(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:sP(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function A3(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 br,dk,R3=(dk=class extends Hh{constructor(e={}){super();Me(this,br);this.config=e,we(this,br,new Map)}build(e,n,r){const i=n.queryKey,s=n.queryHash??lv(i,n);let a=this.get(s);return a||(a=new C3({client:e,queryKey:i,queryHash:s,options:e.defaultQueryOptions(n),state:r,defaultOptions:e.getQueryDefaults(i)}),this.add(a)),a}add(e){F(this,br).has(e.queryHash)||(F(this,br).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=F(this,br).get(e.queryHash);n&&(e.destroy(),n===e&&F(this,br).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){$t.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return F(this,br).get(e)}getAll(){return[...F(this,br).values()]}find(e){const n={exact:!0,...e};return this.getAll().find(r=>O_(n,r))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(r=>O_(e,r)):n}notify(e){$t.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){$t.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){$t.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},br=new WeakMap,dk),xr,zt,Vs,kr,_i,hk,L3=(hk=class extends lP{constructor(e){super();Me(this,kr);Me(this,xr);Me(this,zt);Me(this,Vs);this.mutationId=e.mutationId,we(this,zt,e.mutationCache),we(this,xr,[]),this.state=e.state||O3(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){F(this,xr).includes(e)||(F(this,xr).push(e),this.clearGcTimeout(),F(this,zt).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){we(this,xr,F(this,xr).filter(n=>n!==e)),this.scheduleGc(),F(this,zt).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){F(this,xr).length||(this.state.status==="pending"?this.scheduleGc():F(this,zt).remove(this))}continue(){var e;return((e=F(this,Vs))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var s,a,l,c,d,f,p,g,y,b,_,T,x,S,k,E,A,O,M,I;const n=()=>{Et(this,kr,_i).call(this,{type:"continue"})};we(this,Vs,aP({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(B,H)=>{Et(this,kr,_i).call(this,{type:"failed",failureCount:B,error:H})},onPause:()=>{Et(this,kr,_i).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>F(this,zt).canRun(this)}));const r=this.state.status==="pending",i=!F(this,Vs).canStart();try{if(r)n();else{Et(this,kr,_i).call(this,{type:"pending",variables:e,isPaused:i}),await((a=(s=F(this,zt).config).onMutate)==null?void 0:a.call(s,e,this));const H=await((c=(l=this.options).onMutate)==null?void 0:c.call(l,e));H!==this.state.context&&Et(this,kr,_i).call(this,{type:"pending",context:H,variables:e,isPaused:i})}const B=await F(this,Vs).start();return await((f=(d=F(this,zt).config).onSuccess)==null?void 0:f.call(d,B,e,this.state.context,this)),await((g=(p=this.options).onSuccess)==null?void 0:g.call(p,B,e,this.state.context)),await((b=(y=F(this,zt).config).onSettled)==null?void 0:b.call(y,B,null,this.state.variables,this.state.context,this)),await((T=(_=this.options).onSettled)==null?void 0:T.call(_,B,null,e,this.state.context)),Et(this,kr,_i).call(this,{type:"success",data:B}),B}catch(B){try{throw await((S=(x=F(this,zt).config).onError)==null?void 0:S.call(x,B,e,this.state.context,this)),await((E=(k=this.options).onError)==null?void 0:E.
192call(k,B,e,this.state.context)),await((O=(A=F(this,zt).config).onSettled)==null?void 0:O.call(A,void 0,B,this.state.variables,this.state.context,this)),await((I=(M=this.options).onSettled)==null?void 0:I.call(M,void 0,B,e,this.state.context)),B}finally{Et(this,kr,_i).call(this,{type:"error",error:B})}}finally{F(this,zt).runNext(this)}}},xr=new WeakMap,zt=new WeakMap,Vs=new WeakMap,kr=new WeakSet,_i=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),$t.batch(()=>{F(this,xr).forEach(r=>{r.onMutationUpdate(e)}),F(this,zt).notify({mutation:this,type:"updated",action:e})})},hk);function O3(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Qr,Zn,Lu,fk,M3=(fk=class extends Hh{constructor(e={}){super();Me(this,Qr);Me(this,Zn);Me(this,Lu);this.config=e,we(this,Qr,new Set),we(this,Zn,new Map),we(this,Lu,0)}build(e,n,r){const i=new L3({mutationCache:this,mutationId:++pc(this,Lu)._,options:e.defaultMutationOptions(n),state:r});return this.add(i),i}add(e){F(this,Qr).add(e);const n=Dc(e);if(typeof n=="string"){const r=F(this,Zn).get(n);r?r.push(e):F(this,Zn).set(n,[e])}this.notify({type:"added",mutation:e})}remove(e){if(F(this,Qr).delete(e)){const n=Dc(e);if(typeof n=="string"){const r=F(this,Zn).get(n);if(r)if(r.length>1){const i=r.indexOf(e);i!==-1&&r.splice(i,1)}else r[0]===e&&F(this,Zn).delete(n)}}this.notify({type:"removed",mutation:e})}canRun(e){const n=Dc(e);if(typeof n=="string"){const r=F(this,Zn).get(n),i=r==null?void 0:r.find(s=>s.state.status==="pending");return!i||i===e}else return!0}runNext(e){var r;const n=Dc(e);if(typeof n=="string"){const i=(r=F(this,Zn).get(n))==null?void 0:r.find(s=>s!==e&&s.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){$t.batch(()=>{F(this,Qr).forEach(e=>{this.notify({type:"removed",mutation:e})}),F(this,Qr).clear(),F(this,Zn).clear()})}getAll(){return Array.from(F(this,Qr))}find(e){const n={exact:!0,...e};return this.getAll().find(r=>M_(n,r))}findAll(e={}){return this.getAll().filter(n=>M_(e,n))}notify(e){$t.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return $t.batch(()=>Promise.all(e.map(n=>n.continue().catch(Wn))))}},Qr=new WeakMap,Zn=new WeakMap,Lu=new WeakMap,fk);function Dc(t){var e;return(e=t.options.scope)==null?void 0:e.id}function I_(t){return{onFetch:(e,n)=>{var f,p,g,y,b;const r=e.options,i=(g=(p=(f=e.fetchOptions)==null?void 0:f.meta)==null?void 0:p.fetchMore)==null?void 0:g.direction,s=((y=e.state.data)==null?void 0:y.pages)||[],a=((b=e.state.data)==null?void 0:b.pageParams)||[];let l={pages:[],pageParams:[]},c=0;const d=async()=>{let _=!1;const T=k=>{Object.defineProperty(k,"signal",{enumerable:!0,get:()=>(e.signal.aborted?_=!0:e.signal.addEventListener("abort",()=>{_=!0}),e.signal)})},x=rP(e.options,e.fetchOptions),S=async(k,E,A)=>{if(_)return Promise.reject();if(E==null&&k.pages.length)return Promise.resolve(k);const M=(()=>{const J={client:e.client,queryKey:e.queryKey,pageParam:E,direction:A?"backward":"forward",meta:e.options.meta};return T(J),J})(),I=await x(M),{maxPages:B}=e.options,H=A?_3:w3;return{pages:H(k.pages,I,B),pageParams:H(k.pageParams,E,B)}};if(i&&s.length){const k=i==="backward",E=k?N3:D_,A={pages:s,pageParams:a},O=E(r,A);l=await S(A,O,k)}else{const k=t??s.length;do{const E=c===0?a[0]??r.initialPageParam:D_(r,l);if(c>0&&E==null)break;l=await S(l,E),c++}while(c<k)}return l};e.options.persister?e.fetchFn=()=>{var _,T;
192return(T=(_=e.options).persister)==null?void 0:T.call(_,d,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n)}:e.fetchFn=d}}}function D_(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 N3(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 tt,Mi,Ni,ua,ca,ji,da,ha,pk,j3=(pk=class{constructor(t={}){Me(this,tt);Me(this,Mi);Me(this,Ni);Me(this,ua);Me(this,ca);Me(this,ji);Me(this,da);Me(this,ha);we(this,tt,t.queryCache||new R3),we(this,Mi,t.mutationCache||new M3),we(this,Ni,t.defaultOptions||{}),we(this,ua,new Map),we(this,ca,new Map),we(this,ji,0)}mount(){pc(this,ji)._++,F(this,ji)===1&&(we(this,da,iP.subscribe(async t=>{t&&(await this.resumePausedMutations(),F(this,tt).onFocus())})),we(this,ha,Kd.subscribe(async t=>{t&&(await this.resumePausedMutations(),F(this,tt).onOnline())})))}unmount(){var t,e;pc(this,ji)._--,F(this,ji)===0&&((t=F(this,da))==null||t.call(this),we(this,da,void 0),(e=F(this,ha))==null||e.call(this),we(this,ha,void 0))}isFetching(t){return F(this,tt).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return F(this,Mi).findAll({...t,status:"pending"}).length}getQueryData(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=F(this,tt).get(e.queryHash))==null?void 0:n.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),n=F(this,tt).build(this,e),r=n.state.data;return r===void 0?this.fetchQuery(t):(t.revalidateIfStale&&n.isStaleByTime(sg(e.staleTime,n))&&this.prefetchQuery(e),Promise.resolve(r))}getQueriesData(t){return F(this,tt).findAll(t).map(({queryKey:e,state:n})=>{const r=n.data;return[e,r]})}setQueryData(t,e,n){const r=this.defaultQueryOptions({queryKey:t}),i=F(this,tt).get(r.queryHash),s=i==null?void 0:i.state.data,a=f3(e,s);if(a!==void 0)return F(this,tt).build(this,r).setData(a,{...n,manual:!0})}setQueriesData(t,e,n){return $t.batch(()=>F(this,tt).findAll(t).map(({queryKey:r})=>[r,this.setQueryData(r,e,n)]))}getQueryState(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=F(this,tt).get(e.queryHash))==null?void 0:n.state}removeQueries(t){const e=F(this,tt);$t.batch(()=>{e.findAll(t).forEach(n=>{e.remove(n)})})}resetQueries(t,e){const n=F(this,tt);return $t.batch(()=>(n.findAll(t).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const n={revert:!0,...e},r=$t.batch(()=>F(this,tt).findAll(t).map(i=>i.cancel(n)));return Promise.all(r).then(Wn).catch(Wn)}invalidateQueries(t,e={}){return $t.batch(()=>(F(this,tt).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=$t.batch(()=>F(this,tt).findAll(t).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let s=i.fetch(void 0,n);return n.throwOnError||(s=s.catch(Wn)),i.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(Wn)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const n=F(this,tt).build(this,e);return n.isStaleByTime(sg(e.staleTime,n))?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Wn).catch(Wn)}fetchInfiniteQuery(t){return t.behavior=I_(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Wn).catch(Wn)}ensureInfiniteQueryData(t){return t.behavior=I_(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Kd.isOnline()?F(this,Mi).resumePausedMutations():Promise.resolve()}getQueryCache(){return F(this,tt)}getMutationCache(){return F(this,Mi)}getDefaultOptions(){return F(this,Ni)}setDefaultOptions(t){we(this,Ni,t)}setQueryDefaults(t,e){F(this,ua).set(du(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...F(this,ua).values()],n={};return e.forEach(r=>{hu(t,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(t,e){F(this,ca).set(du(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...F(this,ca).values()],n={};return e.forEach(r=>{hu(t,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(t){if(t._defaulted)return t;const e={...F(this,Ni).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=lv(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===uv&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...F(this,Ni).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){F(this,tt).clear(),F(this,Mi).clear()}},tt=new WeakMap,Mi=new WeakMap,Ni=new WeakMap,ua=new WeakMap,ca=new WeakMap,ji=new WeakMap,da=new WeakMap,ha=new WeakMap,pk),I3=C.createContext(void 0),D3=({client:t,children:e})=>(C.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),v.jsx(I3.Provider,{value:t,children:e}));/**
193 * @remix-run/router v1.23.0
194 *
195 * Copyright (c) Remix Software Inc.
196 *
197 * This source code is licensed under the MIT license found in the
198 * LICENSE.md file in the root directory of this source tree.
199 *
200 * @license MIT
201 */function fu(){return fu=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},fu.apply(this,arguments)}var Bi;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(Bi||(Bi={}));const B_="popstate";function B3(t){t===void 0&&(t={});function e(r,i){let{pathname:s,search:a,hash:l}=r.location;return ag("",{pathname:s,search:a,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:Jd(i)}return F3(e,n,null,t)}function lt(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function uP(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function z3(){return Math.random().toString(36).substr(2,8)}function z_(t,e){return{usr:t.state,key:t.key,idx:e}}function ag(t,e,n,r){return n===void 0&&(n=null),fu({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?Ia(e):e,{state:n,key:e&&e.key||r||z3()})}function Jd(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 Ia(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 F3(t,e,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:s=!1}=r,a=i.history,l=Bi.Pop,c=null,d=f();d==null&&(d=0,a.replaceState(fu({},a.state,{idx:d}),""));function f(){return(a.state||{idx:null}).idx}function p(){l=Bi.Pop;let T=f(),x=T==null?null:T-d;d=T,c&&c({action:l,location:_.location,delta:x})}function g(T,x){l=Bi.Push;let S=ag(_.location,T,x);d=f()+1;let k=z_(S,d),E=_.createHref(S);try{a.pushState(k,"",E)}catch(A){if(A instanceof DOMException&&A.name==="DataCloneError")throw A;i.location.assign(E)}s&&c&&c({action:l,location:_.location,delta:1})}function y(T,x){l=Bi.Replace;let S=ag(_.location,T,x);d=f();let k=z_(S,d),E=_.createHref(S);a.replaceState(k,"",E),s&&c&&c({action:l,location:_.location,delta:0})}function b(T){let x=i.location.origin!=="null"?i.location.origin:i.location.href,S=typeof T=="string"?T:Jd(T);return S=S.replace(/ $/,"%20"),lt(x,"No window.location.(origin|href) available to create URL for href: "+S),new URL(S,x)}let _={get action(){return l},get location(){return t(i,a)},listen(T){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(B_,p),c=T,()=>{i.removeEventListener(B_,p),c=null}},createHref(T){return e(i,T)},createURL:b,encodeLocation(T){let x=b(T);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:g,replace:y,go(T){return a.go(T)}};return _}var F_;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(F_||(F_={}));function $3(t,e,n){return n===void 0&&(n="/"),U3(t,e,n,!1)}function U3(t,e,n,r){let i=typeof e=="string"?Ia(e):e,s=cv(i.pathname||"/",n);if(s==null)return null;let a=cP(t);V3(a);let l=null;for(let c=0;l==null&&c<a.length;++c){let d=eI(s);l=X3(a[c],d,r)}return l}function cP(t,e,n,r){e===void 0&&(e=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(s,a,l)=>{let c={relativePath:l===void 0?s.path||"":l,caseSensitive:s.caseSensitive===!0,childrenIndex:a,route:s};c.relativePath.startsWith("/")&&(lt(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not val
201id. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let d=Ki([r,c.relativePath]),f=n.concat(c);s.children&&s.children.length>0&&(lt(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),cP(s.children,e,f,d)),!(s.path==null&&!s.index)&&e.push({path:d,score:J3(d,s.index),routesMeta:f})};return t.forEach((s,a)=>{var l;if(s.path===""||!((l=s.path)!=null&&l.includes("?")))i(s,a);else for(let c of dP(s.path))i(s,a,c)}),e}function dP(t){let e=t.split("/");if(e.length===0)return[];let[n,...r]=e,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let a=dP(r.join("/")),l=[];return l.push(...a.map(c=>c===""?s:[s,c].join("/"))),i&&l.push(...a),l.map(c=>t.startsWith("/")&&c===""?"/":c)}function V3(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:Y3(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const H3=/^:[\w-]+$/,W3=3,q3=2,G3=1,Z3=10,K3=-2,$_=t=>t==="*";function J3(t,e){let n=t.split("/"),r=n.length;return n.some($_)&&(r+=K3),e&&(r+=q3),n.filter(i=>!$_(i)).reduce((i,s)=>i+(H3.test(s)?W3:s===""?G3:Z3),r)}function Y3(t,e){return t.length===e.length&&t.slice(0,-1).every((r,i)=>r===e[i])?t[t.length-1]-e[e.length-1]:0}function X3(t,e,n){let{routesMeta:r}=t,i={},s="/",a=[];for(let l=0;l<r.length;++l){let c=r[l],d=l===r.length-1,f=s==="/"?e:e.slice(s.length)||"/",p=U_({path:c.relativePath,caseSensitive:c.caseSensitive,end:d},f),g=c.route;if(!p&&d&&n&&!r[r.length-1].route.index&&(p=U_({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},f)),!p)return null;
vendor: 9,263 bytes, lines 201-210
201Object.assign(i,p.params),a.push({params:i,pathname:Ki([s,p.pathname]),pathnameBase:iI(Ki([s,p.pathnameBase])),route:g}),p.pathnameBase!=="/"&&(s=Ki([s,p.pathnameBase]))}return a}function U_(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,r]=Q3(t.path,t.caseSensitive,t.end),i=e.match(n);if(!i)return null;let s=i[0],a=s.replace(/(.)\/+$/,"$1"),l=i.slice(1);return{params:r.reduce((d,f,p)=>{let{paramName:g,isOptional:y}=f;if(g==="*"){let _=l[p]||"";a=s.slice(0,s.length-_.length).replace(/(.)\/+$/,"$1")}const b=l[p];return y&&!b?d[g]=void 0:d[g]=(b||"").replace(/%2F/g,"/"),d},{}),pathname:s,pathnameBase:a,pattern:t}}function Q3(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),uP(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=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,c)=>(r.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(r.push({paramName:"*"}),i+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":t!==""&&t!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),r]}function eI(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return uP(!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 cv(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 tI(t,e){e===void 0&&(e="/");let{pathname:n,search:r="",hash:i=""}=typeof t=="string"?Ia(t):t;return{pathname:n?n.startsWith("/")?n:nI(n,e):e,search:sI(r),hash:oI(i)}}function nI(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function vp(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 rI(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function dv(t,e){let n=rI(t);return e?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function hv(t,e,n,r){r===void 0&&(r=!1);let i;typeof t=="string"?i=Ia(t):(i=fu({},t),lt(!i.pathname||!i.pathname.includes("?"),vp("?","pathname","search",i)),lt(!i.pathname||!i.pathname.includes("#"),vp("#","pathname","hash",i)),lt(!i.search||!i.search.includes("#"),vp("#","search","hash",i)));let s=t===""||i.pathname==="",a=s?"/":i.pathname,l;if(a==null)l=n;else{let p=e.length-1;if(!r&&a.startsWith("..")){let g=a.split("/");for(;g[0]==="..";)g.shift(),p-=1;i.pathname=g.join("/")}l=p>=0?e[p]:"/"}let c=tI(i,l),d=a&&a!=="/"&&a.endsWith("/"),f=(s||a===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(d||f)&&(c.pathname+="/"),c}const Ki=t=>t.join("/").replace(/\/\/+/g,"/"),iI=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),sI=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,oI=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function aI(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const hP=["post","put","patch","delete"];new Set(hP);const lI=["get",...hP];new Set(lI);/**
202 * React Router v6.30.1
203 *
204 * Copyright (c) Remix Software Inc.
205 *
206 * This source code is licensed under the MIT license found in the
207 * LICENSE.md file in the root directory of this source tree.
208 *
209 * @license MIT
210 */function pu(){return pu=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},pu.apply(this,arguments)}const fv=C.createContext(null),uI=C.createContext(null),cs=C.createContext(null),qh=C.createContext(null),hi=C.createContext({outlet:null,matches:[],isDataRoute:!1}),fP=C.createContext(null);function cI(t,e){let{relative:n}=e===void 0?{}:e;Da()||lt(!1);let{basename:r,navigator:i}=C.useContext(cs),{hash:s,pathname:a,search:l}=gP(t,{relative:n}),c=a;return r!=="/"&&(c=a==="/"?r:Ki([r,a])),i.createHref({pathname:c,search:l,hash:s})}function Da(){return C.useContext(qh)!=null}function ds(){return Da()||lt(!1),C.useContext(qh).location}function pP(t){C.useContext(cs).static||C.useLayoutEffect(t)}function mP(){let{isDataRoute:t}=C.useContext(hi);return t?kI():dI()}function dI(){Da()||lt(!1);let t=C.useContext(fv),{basename:e,future:n,navigator:r}=C.useContext(cs),{matches:i}=C.useContext(hi),{pathname:s}=ds(),a=JSON.stringify(dv(i,n.v7_relativeSplatPath)),l=C.useRef(!1);return pP(()=>{l.current=!0}),C.useCallback(function(d,f){if(f===void 0&&(f={}),!l.current)return;if(typeof d=="number"){r.go(d);return}let p=hv(d,JSON.parse(a),s,f.relative==="path");t==null&&e!=="/"&&(p.pathname=p.pathname==="/"?e:Ki([e,p.pathname])),(f.replace?r.replace:r.push)(p,f.state,f)},[e,r,a,s,t])}function H8(){let{matches:t}=C.useContext(hi),e=t[t.length-1];return e?e.params:{}}function gP(t,e){let{relative:n}=e===void 0?{}:e,{future:r}=C.useContext(cs),{matches:i}=C.useContext(hi),{pathname:s}=ds(),a=JSON.stringify(dv(i,r.v7_relativeSplatPath));return C.useMemo(()=>hv(t,JSON.parse(a),s,n==="path"),[t,a,s,n])}function hI(t,e){return fI(t,e)}function fI(t,e,n,r){Da()||lt(!1);let{navigator:i}=C.useContext(cs),{matches:s}=C.useContext(hi),a=s[s.length-1],l=a?a.params:{};a&&a.pathname;let c=a?a.pathnameBase:"/";a&&a.route;let d=ds(),f;if(e){var p;let T=typeof e=="string"?Ia(e):e;c==="/"||(p=T.pathname)!=null&&p.startsWith(c)||lt(!1),f=T}else f=d;let g=f.pathname||"/",y=g;if(c!=="/"){let T=c.replace(/^\//,"").split("/");y="/"+g.replace(/^\//,"").split("/").slice(T.length).join("/")}let b=$3(t,{pathname:y}),_=vI(b&&b.map(T=>Object.assign({},T,{params:Object.assign({},l,T.params),pathname:Ki([c,i.encodeLocation?i.encodeLocation(T.pathname).pathname:T.pathname]),pathnameBase:T.pathnameBase==="/"?c:Ki([c,i.encodeLocation?i.encodeLocation(T.pathnameBase).pathname:T.pathnameBase])})),s,n,r);return e&&_?C.createElement(qh.Provider,{value:{location:pu({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:Bi.Pop}},_):_}function pI(){let t=xI(),e=aI(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,i={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:i},n):null,null)}const mI=C.createElement(pI,null);class gI 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(hi.Provider,{value:this.props.routeContext},C.createElement(fP.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function yI(t){let{routeContext:e,match:n,children:r}=t,i=C.useContext(fv);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),C.createElement(hi.Provider,{value:e},r)}function vI(t,e,n,r){var i;if(e===void 0&&(e=[]),n===void 0&&(n=null),r===void 0&&(r=null),t==null){var s;if(!n)return null;if(n.errors)t=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let a=t,l=(i=n)==null?void 0:i.errors;if(l!=null){let f=a.findIndex(p=>p.route.id&&(l==null?void 0:l[p.route.id])!==void 0);f>=0||lt(!1),a=a.slice(0,Math.min(a.length,f+1))}let c=!1,d=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f<a.length;f++){let p=a[f];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(d=f),p.route.id){let{loaderData:g,errors:y}=n,b=p.route.loader&&g[p.route.id]===void 0&&(!y||y[p.route.id]===void 0);if(p.route.lazy||b){c=!0,d>=0?a=a.slice(0,d+1):a=[a[0]];break}}}return a.reduceRight((f,p,g)=>{let y,b=!1,_=null,T=null;n&&(y=l&&p.route.id?l[p.route.id]:void 0,_=p.route.errorElement||mI,c&&(d<0&&g===0?(b=!0,T=null):d===g&&(b=!0,T=p.route.hydrateFallbackElement||null)));let x=e.concat(a.slice(0,g+1)),S=()=>{let k;return y?k=_:b?k=T:p.route.Component?k=C.createElement(p.route.Component,null):p.route.element?k=p.route.element:k=f,C.createElement(yI,{match:p,routeC
210ontext:{outlet:f,matches:x,isDataRoute:n!=null},children:k})};return n&&(p.route.ErrorBoundary||p.route.errorElement||g===0)?C.createElement(gI,{location:n.location,revalidation:n.revalidation,component:_,error:y,children:S(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):S()},null)}var yP=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(yP||{}),Yd=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}(Yd||{});function wI(t){let e=C.useContext(fv);return e||lt(!1),e}function _I(t){let e=C.useContext(uI);return e||lt(!1),e}function bI(t){let e=C.useContext(hi);return e||lt(!1),e}function vP(t){let e=bI(),n=e.matches[e.matches.length-1];return n.route.id||lt(!1),n.route.id}function xI(){var t;let e=C.useContext(fP),n=_I(Yd.UseRouteError),r=vP(Yd.UseRouteError);return e!==void 0?e:(t=n.errors)==null?void 0:t[r]}function kI(){let{router:t}=wI(yP.UseNavigateStable),e=vP(Yd.UseNavigateStable),n=C.useRef(!1);return pP(()=>{n.current=!0}),C.useCallback(function(i,s){s===void 0&&(s={}),n.current&&(typeof i=="number"?t.navigate(i):t.navigate(i,pu({fromRouteId:e},s)))},[t,e])}function SI(t,e){t==null||t.v7_startTransition,t==null||t.v7_relativeSplatPath}function W8(t){let{to:e,replace:n,state:r,relative:i}=t;Da()||lt(!1);let{future:s,static:a}=C.useContext(cs),{matches:l}=C.useContext(hi),{pathname:c}=ds(),d=mP(),f=hv(e,dv(l,s.v7_relativeSplatPath),c,i==="path"),p=JSON.stringify(f);return C.useEffect(()=>d(JSON.parse(p),{replace:n,state:r,relative:i}),[d,p,i,n,r]),null}function Kt(t){lt(!1)}function TI(t){let{basename:e="/",children:n=null,location:r,navigationType:i=Bi.Pop,navigator:s,static:a=!1,future:l}=t;Da()&&lt(!1);let c=e.replace(/^\/*/,"/"),d=C.useMemo(()=>({basename:c,navigator:s,static:a,future:pu({v7_relativeSplatPath:!1},l)}),[c,l,s,a]);typeof r=="string"&&(r=Ia(r));let{pathname:f="/",search:p="",hash:g="",state:y=null,key:b="default"}=r,_=C.useMemo(()=>{let T=cv(f,c);return T==null?null:{location:{pathname:T,search:p,hash:g,state:y,key:b},navigationType:i}},[c,f,p,g,y,b,i]);return _==null?null:C.createElement(cs.Provider,{value:d},C.createElement(qh.Provider,{children:n,value:_}))}function PI(t){let{children:e,location:n}=t;return hI(lg(e),n)}new Promise(()=>{});function lg(t,e){e===void 0&&(e=[]);let n=[];return C.Children.forEach(t,(r,i)=>{if(!C.isValidElement(r))return;let s=[...e,i];if(r.type===C.Fragment){n.push.apply(n,lg(r.props.children,s));return}r.type!==Kt&&lt(!1),!r.props.index||!r.props.children||lt(!1);let a={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,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&&(a.children=lg(r.props.children,s)),n.push(a)}),n}/**
211 * React Router DOM v6.30.1
212 *
213 * Copyright (c) Remix Software Inc.
214 *
215 * This source code is licensed under the MIT license found in the
216 * LICENSE.md file in the root directory of this source tree.
217 *
218 * @license MIT
219 */function ug(){return ug=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},ug.apply(this,arguments)}function CI(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function EI(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function AI(t,e){return t.button===0&&(!e||e==="_self")&&!EI(t)}const RI=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],LI="6";try{window.__reactRouterVersion=LI}catch{}const OI="startTransition",V_=Tk[OI];function MI(t){let{basename:e,children:n,future:r,window:i}=t,s=C.useRef();s.current==null&&(s.current=B3({window:i,v5Compat:!0}));let a=s.current,[l,c]=C.useState({action:a.action,location:a.location}),{v7_startTransition:d}=r||{},f=C.useCallback(p=>{d&&V_?V_(()=>c(p)):c(p)},[c,d]);return C.useLayoutEffect(()=>a.listen(f),[a,f]),C.useEffect(()=>SI(r),[r]),C.createElement(TI,{basename:e,children:n,location:l.location,navigationType:l.action,navigator:a,future:r})}const NI=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",jI=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,We=C.forwardRef(function(e,n){let{onClick:r,relative:i,reloadDocument:s,replace:a,state:l,target:c,to:d,preventScrollReset:f,viewTransition:p}=e,g=CI(e,RI),{basename:y}=C.useContext(cs),b,_=!1;
219if(typeof d=="string"&&jI.test(d)&&(b=d,NI))try{let k=new URL(window.location.href),E=d.startsWith("//")?new URL(k.protocol+d):new URL(d),A=cv(E.pathname,y);E.origin===k.origin&&A!=null?d=A+E.search+E.hash:_=!0}catch{}let T=cI(d,{relative:i}),x=II(d,{replace:a,state:l,target:c,preventScrollReset:f,relative:i,viewTransition:p});function S(k){r&&r(k),k.defaultPrevented||x(k)}return C.createElement("a",ug({},g,{href:b||T,onClick:_||s?r:S,ref:n,target:c}))});var H_;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(H_||(H_={}));var W_;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(W_||(W_={}));function II(t,e){let{target:n,replace:r,state:i,preventScrollReset:s,relative:a,viewTransition:l}=e===void 0?{}:e,c=mP(),d=ds(),f=gP(t,{relative:a});return C.useCallback(p=>{if(AI(p,n)){p.preventDefault();let g=r!==void 0?r:Jd(d)===Jd(f);c(t,{replace:g,state:i,preventScrollReset:s,relative:a,viewTransition:l})}},[d,c,f,r,i,n,t,s,a,l])}const pv=C.createContext({});function mv(t){const e=C.useRef(null);return e.current===null&&(e.current=t()),e.current}const wP=typeof window<"u",_P=wP?C.useLayoutEffect:C.useEffect,Gh=C.createContext(null);function gv(t,e){t.indexOf(e)===-1&&t.push(e)}function Xd(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const Nr=(t,e,n)=>n>e?e:n<t?t:n;let Zh=()=>{},xa=()=>{};const ui={},bP=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function xP(t){return typeof t=="object"&&t!==null}const kP=t=>/^0[^.\s]+$/u.test(t);function yv(t){let e;return()=>(e===void 0&&(e=t()),e)}const Rn=t=>t,DI=(t,e)=>n=>e(t(n)),Fu=(...t)=>t.reduce(DI),mu=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r};class vv{constructor(){this.subscriptions=[]}add(e){return gv(this.subscriptions,e),()=>Xd(this.subscriptions,e)}notify(e,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,r);else for(let s=0;s<i;s++){const a=this.subscriptions[s];a&&a(e,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ln=t=>t*1e3,En=t=>t/1e3;function SP(t,e){return e?t*(1e3/e):0}const TP=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,BI=1e-7,zI=12;function FI(t,e,n,r,i){let s,a,l=0;do a=e+(n-e)/2,s=TP(a,r,i)-t,s>0?n=a:e=a;while(Math.abs(s)>BI&&++l<zI);return a}function $u(t,e,n,r){if(t===e&&n===r)return Rn;const i=s=>FI(s,0,1,t,n);return s=>s===0||s===1?s:TP(i(s),e,r)}const PP=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,CP=t=>e=>1-t(1-e),EP=$u(.33,1.53,.69,.99),wv=CP(EP),AP=PP(wv),RP=t=>(t*=2)<1?.5*wv(t):.5*(2-Math.pow(2,-10*(t-1))),_v=t=>1-Math.sin(Math.acos(t)),LP=CP(_v),OP=PP(_v),$I=$u(.42,0,1,1),UI=$u(0,0,.58,1),MP=$u(.42,0,.58,1),VI=t=>Array.isArray(t)&&typeof t[0]!="number",NP=t=>Array.isArray(t)&&typeof t[0]=="number",q_={linear:Rn,easeIn:$I,easeInOut:MP,easeOut:UI,circIn:_v,circInOut:OP,circOut:LP,backIn:wv,backInOut:AP,backOut:EP,anticipate:RP},HI=t=>typeof t=="string",G_=t=>{if(NP(t)){xa(t.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[e,n,r,i]=t;return $u(e,n,r,i)}else if(HI(t))return xa(q_[t]!==void 0,`Invalid easing type '${t}'`,"invalid-easing-type"),q_[t];return t},Bc=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],Z_={value:null,addProjectionMetrics:null};function WI(t,e){let n=new Set,r=new Set,i=!1,s=!1;const a=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1},c=0;function d(p){a.has(p)&&(f.schedule(p),t()),c++,p(l)}const f={schedule:(p,g=!1,y=!1)=>{const _=y&&i?n:r;return g&&a.add(p),_.has(p)||_.add(p),p},cancel:p=>{r.delete(p),a.delete(p)},process:p=>{if(l=p,i){s=!0;return}i=!0,[n,r]=[r,n],n.forEach(d),e&&Z_.value&&Z_.value.frameloop[e].push(c),c=0,n.clear(),i=!1,s&&(s=!1,f.process(p))}};return f}const qI=40;function jP(t,e){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,a=Bc.reduce((k,E)=>(k[E]=WI(s,e?E:void 0),k),{}),{setup:l,read:c,resolveKeyframes:d,preUpdate:f,update:p,preRender:g,render:y,postRender:b}=a,_=()=>{const k=ui.useManualTiming?i.timestamp:performance.now();n=!1,ui.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(k-i.timestamp,qI),1)),i.timestamp=k,i.isProcessing=!0,l.process(i),c.process(i),d.process(i),f.process(i),p.process(i),g.process(i),y.process(i),b.process(i),i.isProcessing=!1,n&&e&&(r=!1,t(_))},T=()=>{n=!0,r=!0,i.isProcessing||t(_)};return{schedule:Bc.reduce((k,E)=>{const A=a[E];return k[E]=(O,M=!1,I=!1)=>(n||T(),A.schedule(O,M,I)),k},{}),cancel:k=>{for(let E=0;E<Bc.length;E++)a[Bc[E]].cancel(k)},state:i,steps:a}}const{schedule:$e,cancel:rs,state:St,steps:wp}=jP(typeof requestAnimationFrame<"u"?requestAnimationFrame:Rn,!0);let pd;function GI(){pd=void 0}const Ut={now:()=>(pd===void 0&&Ut.set(St.isProcessing||ui.useManualTiming?St.timestamp:performance.now()),pd),set
vendor: 20,304 bytes, line 219
219:t=>{pd=t,queueMicrotask(GI)}},IP=t=>e=>typeof e=="string"&&e.startsWith(t),DP=IP("--"),ZI=IP("var(--"),bv=t=>ZI(t)?KI.test(t.split("/*")[0].trim()):!1,KI=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function K_(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const Ba={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},gu={...Ba,transform:t=>Nr(0,1,t)},zc={...Ba,default:1},zl=t=>Math.round(t*1e5)/1e5,xv=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function JI(t){return t==null}const YI=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,kv=(t,e)=>n=>!!(typeof n=="string"&&YI.test(n)&&n.startsWith(t)||e&&!JI(n)&&Object.prototype.hasOwnProperty.call(n,e)),BP=(t,e,n)=>r=>{if(typeof r!="string")return r;const[i,s,a,l]=r.match(xv);return{[t]:parseFloat(i),[e]:parseFloat(s),[n]:parseFloat(a),alpha:l!==void 0?parseFloat(l):1}},XI=t=>Nr(0,255,t),_p={...Ba,transform:t=>Math.round(XI(t))},Ns={test:kv("rgb","red"),parse:BP("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+_p.transform(t)+", "+_p.transform(e)+", "+_p.transform(n)+", "+zl(gu.transform(r))+")"};function QI(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const cg={test:kv("#"),parse:QI,transform:Ns.transform},Uu=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),bi=Uu("deg"),Lr=Uu("%"),re=Uu("px"),eD=Uu("vh"),tD=Uu("vw"),J_={...Lr,parse:t=>Lr.parse(t)/100,transform:t=>Lr.transform(t*100)},$o={test:kv("hsl","hue"),parse:BP("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+Lr.transform(zl(e))+", "+Lr.transform(zl(n))+", "+zl(gu.transform(r))+")"},ht={test:t=>Ns.test(t)||cg.test(t)||$o.test(t),parse:t=>Ns.test(t)?Ns.parse(t):$o.test(t)?$o.parse(t):cg.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?Ns.transform(t):$o.transform(t),getAnimatableNone:t=>{const e=ht.parse(t);return e.alpha=0,ht.transform(e)}},nD=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function rD(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(xv))==null?void 0:e.length)||0)+(((n=t.match(nD))==null?void 0:n.length)||0)>0}const zP="number",FP="color",iD="var",sD="var(",Y_="${}",oD=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function yu(t){const e=t.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const l=e.replace(oD,c=>(ht.test(c)?(r.color.push(s),i.push(FP),n.push(ht.parse(c))):c.startsWith(sD)?(r.var.push(s),i.push(iD),n.push(c)):(r.number.push(s),i.push(zP),n.push(parseFloat(c))),++s,Y_)).split(Y_);return{values:n,split:l,indexes:r,types:i}}function $P(t){return yu(t).values}function UP(t){const{split:e,types:n}=yu(t),r=e.length;return i=>{let s="";for(let a=0;a<r;a++)if(s+=e[a],i[a]!==void 0){const l=n[a];l===zP?s+=zl(i[a]):l===FP?s+=ht.transform(i[a]):s+=i[a]}return s}}const aD=t=>typeof t=="number"?0:ht.test(t)?ht.getAnimatableNone(t):t;function lD(t){const e=$P(t);return UP(t)(e.map(aD))}const is={test:rD,parse:$P,createTransformer:UP,getAnimatableNone:lD};function bp(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function uD({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let i=0,s=0,a=0;if(!e)i=s=a=n;else{const l=n<.5?n*(1+e):n+e-n*e,c=2*n-l;i=bp(c,l,t+1/3),s=bp(c,l,t),a=bp(c,l,t-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(a*255),alpha:r}}function Qd(t,e){return n=>n>0?e:t}const Xe=(t,e,n)=>t+(e-t)*n,xp=(t,e,n)=>{const r=t*t,i=n*(e*e-r)+r;return i<0?0:Math.sqrt(i)},cD=[cg,Ns,$o],dD=t=>cD.find(e=>e.test(t));function X_(t){const e=dD(t);if(Zh(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let n=e.parse(t);return e===$o&&(n=uD(n)),n}const Q_=(t,e)=>{const n=X_(t),r=X_(e);if(!n||!r)return Qd(t,e);const i={...n};return s=>(i.red=xp(n.red,r.red,s),i.green=xp(n.green,r.green,s),i.blue=xp(n.blue,r.blue,s),i.alpha=Xe(n.alpha,r.alpha,s),Ns.transform(i))},dg=new Set(["none","hidden"]);function hD(t,e){return dg.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function fD(t,e){return n=>Xe(t,e,n)}function Sv(t){return typeof t=="number"?fD:typeof t=="string"?bv(t)?Qd:ht.test(t)?Q_:gD:Array.isArray(t)?VP:typeof t=="object"?ht.test(t)?Q_:pD:Qd}function VP(t,e){const n=[...t],r=n.length,i=t.map((s,a)=>Sv(s)(s,e[a]));return s=>{for(let a=0;a<r;a++)n[a]=i[a](s);return n}}function pD(t,e){const n={...t,...e},r={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(r[i]=Sv(t[i])(t[i],e[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function mD(t,e){const n=[],r={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const s=e.types[i],a=t.indexes[s][r[s]],l=t.values[a]??0;n[i]=l,r[s]++}return n}const gD=(t,e)=>{const n=is.createTransformer(e),r=yu(t),i=yu(e);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?dg.has(t)&&!i.values.length||dg.has(e)&&!r.values.length?hD(t,e):Fu(VP(mD(r,i),i.values),n):(Zh(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Qd(t,e))};function HP(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?Xe(t,e,n):Sv(t)(t,e)}const yD=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>$e.update(e,n),stop:()=>rs(e),now:()=>St.isProcessing?St.timestamp:Ut.now()}},WP=(t,e,n=10)=>{let r="";const i=Math.max(Math.round(e/n),2);for(let s=0;s<i;s++)r+=Math.round(t(s/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},eh=2e4;function Tv(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e<eh;)e+=n,r=t.next(e);return e>=eh?1/0:e}function vD(t,e=100,n){const r=n({...t,keyframes:[0,e]}),i=Math.min(Tv(r),eh);return{type:"keyframes",ease:s=>r.next(i*s).value/e,duration:En(i)}}const wD=5;function qP(t,e,n){const r=Math.max(e-wD,0);return SP(n-t(r),e-r)}const Je={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},kp=.001;function _D({duration:t=Je.duration,bounce:e=Je.bounce,velocity:n=Je.velocity,mass:r=Je.mass}){let i,s;Zh(t<=Ln(Je.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-e;a=Nr(Je.minDamping,Je.maxDamping,a),t=Nr(Je.minDuration,Je.maxDuration,En(t)),a<1?(i=d=>{const f=d*a,p=f*t,g=f-n,y=hg(d,a),b=Math.exp(-p);return kp-g/y*b},s=d=>{const p=d*a*t,g=p*n+n,y=Math.pow(a,2)*Math.pow(d,2)*t,b=Math.exp(-p),_=hg(Math.pow(d,2),a);return(-i(d)+kp>0?-1:1)*((g-y)*b)/_}):(i=d=>{const f=Math.exp(-d*t),p=(d-n)*t+1;return-kp+f*p},s=d=>{const f=Math.exp(-d*t),p=(n-d)*(t*t);return f*p});const l=5/t,c=xD(i,s,l);if(t=Ln(t),isNaN(c))return{stiffness:Je.stiffness,damping:Je.damping,duration:t};{const d=Math.pow(c,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:t}}}const bD=12;function xD(t,e,n){let r=n;for(let i=1;i<bD;i++)r=r-t(r)/e(r);return r}function hg(t,e){return t*Math.sqrt(1-e*e)}const kD=["duration","bounce"],SD=["stiffness","damping","mass"];function eb(t,e){return e.some(n=>t[n]!==void 0)}function TD(t){let e={velocity:Je.velocity,stiffness:Je.stiffness,damping:Je.damping,mass:Je.mass,isResolvedFromDuration:!1,...t};if(!eb(t,SD)&&eb(t,kD))if(t.visualDuration){const n=t.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*Nr(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:Je.mass,stiffness:i,damping:s}}else{const n=_D(t);e={...e,...n,mass:Je.mass},e.isResolvedFromDuration=!0}return e}function th(t=Je.visualDuration,e=Je.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],l={done:!1,value:s},{stiffness:c,damping:d,mass:f,duration:p,velocity:g,isResolvedFromDuration:y}=TD({...n,velocity:-En(n.velocity||0)}),b=g||0,_=d/(2*Math.sqrt(c*f)),T=a-s,x=En(Math.sqrt(c/f)),S=Math.abs(T)<5;r||(r=S?Je.restSpeed.granular:Je.restSpeed.default),i||(i=S?Je.restDelta.granular:Je.restDelta.default);let k;if(_<1){const A=hg(x,_);k=O=>{const M=Math.exp(-_*x*O);return a-M*((b+_*x*T)/A*Math.sin(A*O)+T*Math.cos(A*O))}}else if(_===1)k=A=>a-Math.exp(-x*A)*(T+(b+x*T)*A);else{const A=x*Math.sqrt(_*_-1);k=O=>{const M=Math.exp(-_*x*O),I=Math.min(A*O,300);return a-M*((b+_*x*T)*Math.sinh(I)+A*T*Math.cosh(I))/A}}const E={calculatedDuration:y&&p||null,next:A=>{const O=k(A);if(y)l.done=A>=p;else{let M=A===0?b:0;_<1&&(M=A===0?Ln(b):qP(k,A,O));const I=Math.abs(M)<=r,B=Math.abs(a-O)<=i;l.done=I&&B}return l.value=l.done?a:O,l},toString:()=>{const A=Math.min(Tv(E),eh),O=WP(M=>E.next(A*M).value,A,30);return A+"ms "+O},toTransition:()=>{}};return E}th.applyToOptions=t=>{const e=vD(t,100,th);return t.ease=e.ease,t.duration=Ln(e.duration),t.type="keyframes",t};function fg({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:a,min:l,max:c,restDelta:d=.5,restSpeed:f}){const p=t[0],g={done:!1,value:p},y=I=>l!==void 0&&I<l||c!==void 0&&I>c,b=I=>l===void 0?c:c===void 0||Math.abs(l-I)<Math.abs(c-I)?l:c;let _=n*e;const T=p+_,x=a===void 0?T:a(T);x!==T&&(_=x-p);const S=I=>-_*Math.exp(-I/r),k=I=>x+S(I),E=I=>{const B=S(I),H=k(I);g.done=Math.abs(B)<=d,g.value=g.done?x:H};let A,O;const M=I=>{y(g.value)&&(A=I,O=th({keyframes:[g.value,b(g.value)],velocity:qP(k,I,g.value),damping:i,stiffness:s,restDelta:d,restSpeed:f}))};return M(0),{calculatedDuration:null,next:I=>{let B=!1;return!O&&A===void 0&&(B=!0,E(I),M(I)),A!==void 0&&I>=A?O.next(I-A):(!B&&E(I),g)}}}function PD(t,e,n){const r=[],i=n||ui.mix||HP,s=t.length-1;for(let a=0;a<s;a++){let l=i(t[a],t[a+1]);if(e){const c=Array.isArray(e)?e[a]||Rn:e;l=Fu(c,l)}r.push(l)}return r}function CD(t,e,{clamp:n=!0,ease:r,mixer:i}={}){const s=t.length;if(xa(s===e.length,"Both input and output ranges must be the same length","range-length"),s===1)return()=>e[0];if(s===2&&e[0]===e[1])return()=>e[1];const a=t[0]===t[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());const l=PD(e,r,i),c=l.length,d=f=>{if(a&&f<t[0])return e[0];let p=0;if(c>1)for(;p<t.length-2&&!(f<t[p+1]);p++);const g=mu(t[p],t[p+1],f);return l[p](g)};return n?f=>d(Nr(t[0],t[s-1],f)):d}function ED(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const i=mu(0,e,r);t.push(Xe(n,1,i))}}function AD(t){const e=[0];return ED(e,t.length-1),e}function RD(t,e){return t.map(n=>n*e)}function LD(t,e){return t.map(()=>e||MP).splice(0,t.length-1)}function Fl({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=VI(r)?r.map(G_):G_(r),s={done:!1,value:e[0]},a=RD(n&&n.length===e.length?n:AD(e),t),l=CD(a,e,{ease:Array.isArray(i)?i:LD(e,i)});return{calculatedDuration:t,next:c=>(s.value=l(c),s.done=c>=t,s)}}const OD=t=>t!==null;function Pv(t,{repeat:e,repeatType:n="loop"},r,i=1){const s=t.filter(OD),l=i<0||e&&n!=="loop"&&e%2===1?0:s.length-1;return!l||r===void 0?s[l]:r}const MD={decay:fg,inertia:fg,tween:Fl,keyframes:Fl,spring:th};function GP(t){typeof t.type=="string"&&(t.type=MD[t.type])}class Cv{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const ND=t=>t/100;class Ev extends Cv{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==Ut.now()&&this.tick(Ut.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;GP(e);const{type:n=Fl,repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:a=0}=e;let{keyframes:l}=e;const c=n||Fl;c!==Fl&&typeof l[0]!="number"&&(this.mixKeyframes=Fu(ND,HP(l[0],l[1])),l=[0,100]);const d=c({...e,keyframes:l});s==="mirror"&&(this.mirroredGenerator=c({...e,keyframes:[...l].reverse(),velocity:-a})),d.calculatedDuration===null&&(d.calculatedDuration=Tv(d));const{calculatedDuration:f}=d;this.calculatedDuration=f,this.resolvedDuration=f+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=d}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:r,totalDuration:i,mixKeyframes:s,mirroredGenerator:a,resolvedDuration:l,calculatedDuration:c}=this;if(this.startTime===null)return r.next(0);const{delay:d=0,keyframes:f,repeat:p,repeatType:g,repeatDelay:y,type:b,onUpdate:_,finalKeyframe:T}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const x=this.currentTime-d*(this.playbackSpeed>=0?1:-1),S=this.playbackSpeed>=0?x<0:x>i;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let k=this.currentTime,E=r;if(p){const I=Math.min(this.currentTime,i)/l;let B=Math.floor(I),H=I%1;!H&&I>=1&&(H=1),H===1&&B--,B=Math.min(B,p+1),!!(B%2)&&(g==="reverse"?(H=1-H,y&&(H-=y/l)):g==="mirror"&&(E=a)),k=Nr(0,1,H)*l}const A=S?{done:!1,value:f[0]}:E.next(k);s&&(A.value=s(A.value));let{done:O}=A;!S&&c!==null&&(O=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&O);return M&&b!==fg&&(A.value=Pv(f,this.options,T,this.speed)),_&&_(A.value),M&&this.finish(),A}then(e,n){return this.finished.then(e,n)}get duration(){return En(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+En(e)}get time(){return En(this.currentTime)}set time(e){var n;e=Ln(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(Ut.now());const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=En(this.currentTime))}play(){var i,s;if(this.isStopped)return;const{driver:e=yD,startTime:n}=this.options;this.driver||(this.driver=e(a=>this.tick(a))),(s=(i=this.options).onPlay)==null||s.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Ut.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var e,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(e=this.options).onComplete)==null||n.call(e)}cancel(){var e,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(e=this.options).onCancel)==null||n.call(e)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),e.observe(this)}}function jD(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const js=t=>t*180/Math.PI,pg=t=>{const e=js(Math.atan2(t[1],t[0]));return mg(e)},ID={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:pg,rotateZ:pg,skewX:t=>js(Math.atan(t[1])),skewY:t=>js(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},mg=t=>(t=t%360,t<0&&(t+=360),t),tb=pg,nb=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),rb=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),DD={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:nb,scaleY:rb,scale:t=>(nb(t)+rb(t))/2,rotateX:t=>mg(js(Math.atan2(t[6],t[5]))),rotateY:t=>mg(js(Math.atan2(-t[2],t[0]))),rotateZ:tb,rotate:tb,skewX:t=>js(Math.atan(t[4])),skewY:t=>js(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function gg(t){return t.includes("scale")?1:0}function yg(t,e){if(!t||t==="none")return gg(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=DD,i=n;else{const l=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=ID,i=l}if(!i)return gg(e);const s=r[e],a=i[1].split(",").map(zD);return typeof s=="function"?s(a):a[s]}const BD=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return yg(n,e)};function zD(t){return parseFloat(t.trim())}const za=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Fa=new Set(za),ib=t=>t===Ba||t===re,FD=new Set(["x","y","z"]),$D=za.filter(t=>!FD.has(t));function UD(t){const e=[];return $D.forEach(n=>{const r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e}const zi={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>yg(e,"x"),y:(t,{transform:e})=>yg(e,"y")};zi.translateX=zi.x;zi.translateY=zi.y;const qs=new Set;let vg=!1,wg=!1,_g=!1;function ZP(){if(wg){const t=Array.from(qs).filter(r=>r.needsMeasurement),e=new Set(t.map(r=>r.element)),n=new Map;e.forEach(r=>{const i=UD(r);i.length&&(n.set(r,i),r.render())}),t.forEach(r=>r.measureInitialState()),e.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,a])=>{var l;(l=r.getValue(s))==null||l.set(a)})}),t.forEach(r=>r.measureEndState()),t.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}wg=!1,vg=!1,qs.forEach(t=>t.complete(_g)),qs.clear()}function KP(){qs.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(wg=!0)})}function VD(){_g=!0,KP(),ZP(),_g=!1}class Av{constructor(e,n,r,i,s,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(qs.add(this),vg||(vg=!0,$e.read(KP),$e.resolveKeyframes(ZP))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:r,motionValue:i}=this;if(e[0]===null){const s=i==null?void 0:i.get(),a=e[e.length-1];if(s!==void 0)e[0]=s;else if(r&&n){const l=r.readValue(n,a);l!=null&&(e[0]=l)}e[0]===void 0&&(e[0]=a),i&&s===void 0&&i.set(e[0])}jD(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),qs.delete(this)}cancel(){this.state==="scheduled"&&(qs.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const HD=t=>t.startsWith("--");function WD(t,e,n){HD(e)?t.style.setProperty(e,n):t.style[e]=n}const qD=yv(()=>window.ScrollTimeline!==void 0),GD={};function ZD(t,e){const n=yv(t);return()=>GD[e]??n()}const JP=ZD(()=>{try{document.createElement("div").animate({opacity:0}
219,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Sl=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,sb={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Sl([0,.65,.55,1]),circOut:Sl([.55,0,1,.45]),backIn:Sl([.31,.01,.66,-.59]),backOut:Sl([.33,1.53,.69,.99])};function YP(t,e){if(t)return typeof t=="function"?JP()?WP(t,e):"ease-out":NP(t)?Sl(t):Array.isArray(t)?t.map(n=>YP(n,e)||sb.easeOut):sb[t]}function KD(t,e,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:a="loop",ease:l="easeOut",times:c}={},d=void 0){const f={[e]:n};c&&(f.offset=c);const p=YP(l,i);Array.isArray(p)&&(f.easing=p);const g={delay:r,duration:i,easing:Array.isArray(p)?"linear":p,fill:"both",iterations:s+1,direction:a==="reverse"?"alternate":"normal"};return d&&(g.pseudoElement=d),t.animate(f,g)}function XP(t){return typeof t=="function"&&"applyToOptions"in t}function JD({type:t,...e}){return XP(t)&&JP()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class QP extends Cv{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:n,name:r,keyframes:i,pseudoElement:s,allowFlatten:a=!1,finalKeyframe:l,onComplete:c}=e;this.isPseudoElement=!!s,this.allowFlatten=a,this.options=e,xa(typeof e.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const d=JD(e);this.animation=KD(n,r,i,d,s),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const f=Pv(i,this.options,l,this.speed);this.updateMotionValue?this.updateMotionValue(f):WD(n,r,f),this.animation.cancel()}c==null||c(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,n;(n=(e=this.animation).finish)==null||n.call(e)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,r,i;const e=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(e!=null&&e.isConnected)&&((i=(r=this.animation).commitStyles)==null||i.call(r))}get duration(){var n,r;const e=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return En(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+En(e)}get time(){return En(Number(this.animation.currentTime)||0)}set time(e){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Ln(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&qD()?(this.animation.timeline=e,Rn):n(this)}}const eC={anticipate:RP,backInOut:AP,circInOut:OP};function YD(t){return t in eC}function XD(t){typeof t.ease=="string"&&YD(t.ease)&&(t.ease=eC[t.ease])}const Sp=10;class QD extends QP{constructor(e){XD(e),GP(e),super(e),e.startTime!==void 0&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:r,onComplete:i,element:s,...a}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const l=new Ev({...a,autoplay:!1}),c=Math.max(Sp,Ut.now()-this.startTime),d=Nr(0,Sp,c-Sp);n.setWithVelocity(l.sample(Math.max(0,c-d)).value,l.sample(c).value,d),l.stop()}}const ob=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(is.test(t)||t==="0")&&!t.startsWith("url("));function e5(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function t5(t,e,n,r){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const s=t[t.length-1],a=ob(i,e),l=ob(s,e);return Zh(a===l,`You are trying to animate ${e} from "${i}" to "${s}". "${a?s:i}" is not an animatable value.`,"value-not-animatable"),!a||!l?!1:e5(t)||(n==="spring"||XP(n))&&r}function bg(t){t.duration=0,t.type="keyframes"}const n5=new Set(["opacity","clipPath","filter","transform"]),r5=yv(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function i5(t){var f;const{motionValue:e,name:n,repeatDelay:r,repeatType:i,damping:s,type:a}=t;if(!(((f=e==null?void 0:e.owner)==null?void 0:f.current)instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:d}=e.owner.getProps();return r5()&&n&&n5.has(n)&&(n!=="transform"||!d)&&!c&&!r&&i!=="mirror"&&s!==0&&a!=="inertia"}const s5=40;class o5 extends Cv{constructor({autoplay:e=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a="loop",keyframes:l,name:c,motionValue:d,element:f,...p}){var b;super(),this.stop=()=>{var _,T;this._animation&&(this._animation.stop(),(_=this.stopTimeline)==null||_.call(this)),(T=this.keyframeResolver)==null||T.cancel()},this.createdAt=Ut.now();
219const g={autoplay:e,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:a,name:c,motionValue:d,element:f,...p},y=(f==null?void 0:f.KeyframeResolver)||Av;this.keyframeResolver=new y(l,(_,T,x)=>this.onKeyframesResolved(_,T,g,!x),c,d,f),(b=this.keyframeResolver)==null||b.scheduleResolve()}onKeyframesResolved(e,n,r,i){var T,x;this.keyframeResolver=void 0;const{name:s,type:a,velocity:l,delay:c,isHandoff:d,onUpdate:f}=r;this.resolvedAt=Ut.now(),t5(e,s,a,l)||((ui.instantAnimations||!c)&&(f==null||f(Pv(e,r,n))),e[0]=e[e.length-1],bg(r),r.repeat=0);const g={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>s5?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:e},y=!d&&i5(g),b=(x=(T=g.motionValue)==null?void 0:T.owner)==null?void 0:x.current,_=y?new QD({...g,element:b}):new Ev(g);_.finished.then(()=>{this.notifyFinished()}).catch(Rn),this.pendingTimeline&&(this.stopTimeline=_.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=_}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){var e;return this._animation||((e=this.keyframeResolver)==null||e.resume(),VD()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var e;this._animation&&this.animation.cancel(),(e=this.keyframeResolver)==null||e.cancel()}}function tC(t,e,n,r=0,i=1){const s=Array.from(t).sort((d,f)=>d.sortNodePosition(f)).indexOf(e),a=t.size,l=(a-1)*r;return typeof n=="function"?n(s,a):i===1?s*r:l-s*r}const a5=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function l5(t){const e=a5.exec(t);if(!e)return[,];const[,n,r,i]=e;return[`--${n??r}`,i]}const u5=4;function nC(t,e,n=1){xa(n<=u5,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,i]=l5(t);if(!r)return;const s=window.getComputedStyle(e).getPropertyValue(r);if(s){const a=s.trim();return bP(a)?parseFloat(a):a}return bv(i)?nC(i,e,n+1):i}const c5={type:"spring",stiffness:500,damping:25,restSpeed:10},d5=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),h5={type:"keyframes",duration:.8},f5={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},p5=(t,{keyframes:e})=>e.length>2?h5:Fa.has(t)?t.startsWith("scale")?d5(e[1]):c5:f5,m5=t=>t!==null;function g5(t,{repeat:e,repeatType:n="loop"},r){const i=t.filter(m5),s=e&&n!=="loop"&&e%2===1?0:i.length-1;return!s||r===void 0?i[s]:r}function rC(t,e){if(t!=null&&t.inherit&&e){const{inherit:n,...r}=t;return{...e,...r}}return t}function Rv(t,e){const n=(t==null?void 0:t[e])??(t==null?void 0:t.default)??t;return n!==t?rC(n,t):n}function y5({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:a,repeatDelay:l,from:c,elapsed:d,...f}){return!!Object.keys(f).length}const Lv=(t,e,n,r={},i,s)=>a=>{const l=Rv(r,t)||{},c=l.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Ln(c);const f={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-d,onUpdate:g=>{e.set(g),l.onUpdate&&l.onUpdate(g)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:s?void 0:i};y5(l)||Object.assign(f,p5(t,f)),f.duration&&(f.duration=Ln(f.duration)),f.repeatDelay&&(f.repeatDelay=Ln(f.repeatDelay)),f.from!==void 0&&(f.keyframes[0]=f.from);let p=!1;if((f.type===!1||f.duration===0&&!f.repeatDelay)&&(bg(f),f.delay===0&&(p=!0)),(ui.instantAnimations||ui.skipAnimations||i!=null&&i.shouldSkipAnimations)&&(p=!0,bg(f),f.delay=0),f.allowFlatten=!l.type&&!l.ease,p&&!s&&e.get()!==void 0){const g=g5(f.keyframes,l);if(g!==void 0){$e.update(()=>{f.onUpdate(g),f.onComplete()});return}}return l.isSync?new Ev(f):new o5(f)};function ab(t){const e=[{},{}];
vendor: 7,823 bytes, line 219
219return t==null||t.values.forEach((n,r)=>{e[0][r]=n.get(),e[1][r]=n.getVelocity()}),e}function Ov(t,e,n,r){if(typeof e=="function"){const[i,s]=ab(r);e=e(n!==void 0?n:t.custom,i,s)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,s]=ab(r);e=e(n!==void 0?n:t.custom,i,s)}return e}function ra(t,e,n){const r=t.getProps();return Ov(r,e,n!==void 0?n:r.custom,t)}const iC=new Set(["width","height","top","left","right","bottom",...za]),lb=30,v5=t=>!isNaN(parseFloat(t));class w5{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var s;const i=Ut.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((s=this.events.change)==null||s.notify(this.current),this.dependents))for(const a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=Ut.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=v5(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new vv);const r=this.events[e].add(n);return e==="change"?()=>{r(),$e.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var e;(e=this.events.change)==null||e.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=Ut.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>lb)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,lb);return SP(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var e,n;(e=this.dependents)==null||e.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ka(t,e){return new w5(t,e)}const xg=t=>Array.isArray(t);function _5(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,ka(n))}function b5(t){return xg(t)?t[t.length-1]||0:t}function x5(t,e){const n=ra(t,e);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const a in s){const l=b5(s[a]);_5(t,a,l)}}const Nt=t=>!!(t&&t.getVelocity);function k5(t){return!!(Nt(t)&&t.add)}function kg(t,e){const n=t.getValue("willChange");if(k5(n))return n.add(e);if(!n&&ui.WillChange){const r=new ui.WillChange("auto");t.addValue("willChange",r),r.add(e)}}function Mv(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const S5="framerAppearId",sC="data-"+Mv(S5);function oC(t){return t.props[sC]}function T5({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function aC(t,e,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:s,transitionEnd:a,...l}=e;const c=t.getDefaultTransition();s=s?rC(s,c):c;const d=s==null?void 0:s.reduceMotion;r&&(s=r);const f=[],p=i&&t.animationState&&t.animationState.getState()[i];for(const g in l){const y=t.getValue(g,t.latestValues[g]??null),b=l[g];if(b===void 0||p&&T5(p,g))continue;const _={delay:n,...Rv(s||{},g)},T=y.get();if(T!==void 0&&!y.isAnimating&&!Array.isArray(b)&&b===T&&!_.velocity)continue;let x=!1;if(window.MotionHandoffAnimation){const E=oC(t);if(E){const A=window.MotionHandoffAnimation(E,g,$e);A!==null&&(_.startTime=A,x=!0)}}kg(t,g);const S=d??t.shouldReduceMotion;y.start(Lv(g,y,b,S&&iC.has(g)?{type:!1}:_,t,x));const k=y.animation;k&&f.push(k)}if(a){const g=()=>$e.update(()=>{a&&x5(t,a)});f.length?Promise.all(f).then(g):g()}return f}function Sg(t,e,n={}){var c;const r=ra(t,e,n.type==="exit"?(c=t.presenceContext)==null?void 0:c.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const s=r?()=>Promise.all(aC(t,r,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(d=0)=>{const{delayChildren:f=0,staggerChildren:p,staggerDirection:g}=i;return P5(t,e,d,f,p,g,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[d,f]=l==="beforeChildren"?[s,a]:[a,s];return d().then(()=>f())}else return Promise.all([s(),a(n.delay)])}function P5(t,e,n=0,r=0,i=0,s=1,a){const l=[];for(const c of t.variantChildren)c.notify("AnimationStart",e),l.push(Sg(c,e,{...a,delay:n+(typeof r=="function"?0:r)+tC(t.variantChildren,c,r,i,s)}).then(()=>c.notify("AnimationComplete",e)));return Promise.all(l)}function C5(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const i=e.map(s=>Sg(t,s,n));r=Promise.all(i)}else if(typeof e=="string")r=Sg(t,e,n);else{const i=typeof e=="function"?ra(t,e,n.custom):e;r=Promise.all(aC(t,i,n))}return r.then(()=>{t.notify("AnimationComplete",e)})}const E5={test:t=>t==="auto",parse:t=>t},lC=t=>e=>e.test(t),uC=[Ba,re,Lr,bi,tD,eD,E5],ub=t=>uC.find(lC(t));function A5(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||kP(t):!0}const R5=new Set(["brightness","contrast","saturate","opacity"]);function L5(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(xv)||[];if(!r)return t;const i=n.replace(r,"");let s=R5.has(e)?1:0;return r!==n&&(s*=100),e+"("+s+i+")"}const O5=/\b([a-z-]*)\(.*?\)/gu,Tg={...is,getAnimatableNone:t=>{const e=t.match(O5);return e?e.map(L5).join(" "):t}},cb={...Ba,transform:Math.round},M5={rotate:bi,rotateX:bi,rotateY:bi,rotateZ:bi,scale:zc,scaleX:zc,scaleY:zc,scaleZ:zc,skew:bi,skewX:bi,skewY:bi,distance:re,translateX:re,translateY:re,translateZ:re,x:re,y:re,z:re,perspective:re,transformPerspective:re,opacity:gu,originX:J_,originY:J_,originZ:re},Nv={borderWidth:re,borderTopWidth:re,borderRightWidth:re,borderBottomWidth:re,borderLeftWidth:re,borderRadius:re,borderTopLeftRadius:re,borderTopRightRadius:re,borderBottomRightRadius:re,borderBottomLeftRadius:re,width:re,maxWidth:re,height:re,maxHeight:re,top:re,right:re,bottom:re,left:re,inset:re,insetBlock:re,insetBlockStart:re,insetBlockEnd:re,insetInline:re,insetInlineStart:re,insetInlineEnd:re,padding:re,paddingTop:re,paddingRight:re,paddingBottom:re,paddingLeft:re,paddingBlock:re,paddingBlockStart:re,paddingBlockEnd:re,paddingInline:re,paddingInlineStart:re,paddingInlineEnd:re,margin:re,marginTop:re,marginRight:re,marginBottom:re,marginLeft:re,marginBlock:re,marginBlockStart:re,marginBlockEnd:re,marginInline:re,marginInlineStart:re,marginInlineEnd:re,fontSize:re,backgroundPositionX:re,backgroundPositionY:re,...M5,zIndex:cb,fillOpacity:gu,strokeOpacity:gu,numOctaves:cb},N5={...Nv,color:ht,backgroundColor:ht,outlineColor:ht,fill:ht,stroke:ht,borderColor:ht,borderTopColor:ht,borderRightColor:ht,borderBottomColor:ht,borderLeftColor:ht,filter:Tg,WebkitFilter:Tg},cC=t=>N5[t];function dC(t,e){let n=cC(t);return n!==Tg&&(n=is),n.getAnimatableNone?n.getAnimatableNone(e):void 0}
vendor: 1,717 bytes, line 219
219const j5=new Set(["auto","none","0"]);function I5(t,e,n){let r=0,i;for(;r<t.length&&!i;){const s=t[r];typeof s=="string"&&!j5.has(s)&&yu(s).values.length&&(i=t[r]),r++}if(i&&n)for(const s of e)t[s]=dC(n,i)}class D5 extends Av{constructor(e,n,r,i,s){super(e,n,r,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let f=0;f<e.length;f++){let p=e[f];if(typeof p=="string"&&(p=p.trim(),bv(p))){const g=nC(p,n.current);g!==void 0&&(e[f]=g),f===e.length-1&&(this.finalKeyframe=p)}}if(this.resolveNoneKeyframes(),!iC.has(r)||e.length!==2)return;const[i,s]=e,a=ub(i),l=ub(s),c=K_(i),d=K_(s);if(c!==d&&zi[r]){this.needsMeasurement=!0;return}if(a!==l)if(ib(a)&&ib(l))for(let f=0;f<e.length;f++){const p=e[f];typeof p=="string"&&(e[f]=parseFloat(p))}else zi[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,r=[];for(let i=0;i<e.length;i++)(e[i]===null||A5(e[i]))&&r.push(i);r.length&&I5(e,r,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:r}=this;if(!e||!e.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=zi[r](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(r,i).jump(i,!1)}measureEndState(){var l;const{element:e,name:n,unresolvedKeyframes:r}=this;if(!e||!e.current)return;const i=e.getValue(n);i&&i.jump(this.measuredOrigin,!1);const s=r.length-1,a=r[s];r[s]=zi[n](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),(l=this.removedTransforms)!=null&&l.length&&this.removedTransforms.forEac
vendor: 19,553 bytes, line 219
219h(([c,d])=>{e.getValue(c).set(d)}),this.resolveNoneKeyframes()}}const B5=new Set(["opacity","clipPath","filter","transform"]);function hC(t,e,n){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){const i=document.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t).filter(r=>r!=null)}const fC=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function Pg(t){return xP(t)&&"offsetHeight"in t}const{schedule:jv,cancel:q8}=jP(queueMicrotask,!1),Un={x:!1,y:!1};function pC(){return Un.x||Un.y}function z5(t){return t==="x"||t==="y"?Un[t]?null:(Un[t]=!0,()=>{Un[t]=!1}):Un.x||Un.y?null:(Un.x=Un.y=!0,()=>{Un.x=Un.y=!1})}function mC(t,e){const n=hC(t),r=new AbortController,i={passive:!0,...e,signal:r.signal};return[n,i,()=>r.abort()]}function F5(t){return!(t.pointerType==="touch"||pC())}function $5(t,e,n={}){const[r,i,s]=mC(t,n);return r.forEach(a=>{let l=!1,c=!1,d;const f=()=>{a.removeEventListener("pointerleave",b)},p=T=>{d&&(d(T),d=void 0),f()},g=T=>{l=!1,window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",g),c&&(c=!1,p(T))},y=()=>{l=!0,window.addEventListener("pointerup",g,i),window.addEventListener("pointercancel",g,i)},b=T=>{if(T.pointerType!=="touch"){if(l){c=!0;return}p(T)}},_=T=>{if(!F5(T))return;c=!1;const x=e(a,T);typeof x=="function"&&(d=x,a.addEventListener("pointerleave",b,i))};a.addEventListener("pointerenter",_,i),a.addEventListener("pointerdown",y,i)}),s}const gC=(t,e)=>e?t===e?!0:gC(t,e.parentElement):!1,Iv=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,U5=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function V5(t){return U5.has(t.tagName)||t.isContentEditable===!0}const H5=new Set(["INPUT","SELECT","TEXTAREA"]);function W5(t){return H5.has(t.tagName)||t.isContentEditable===!0}const md=new WeakSet;function db(t){return e=>{e.key==="Enter"&&t(e)}}function Tp(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const q5=(t,e)=>{const n=t.currentTarget;if(!n)return;const r=db(()=>{if(md.has(n))return;Tp(n,"down");const i=db(()=>{Tp(n,"up")}),s=()=>Tp(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",s,e)});n.addEventListener("keydown",r,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),e)};function hb(t){return Iv(t)&&!pC()}const fb=new WeakSet;function G5(t,e,n={}){const[r,i,s]=mC(t,n),a=l=>{const c=l.currentTarget;if(!hb(l)||fb.has(l))return;md.add(c),n.stopPropagation&&fb.add(l);const d=e(c,l),f=(y,b)=>{window.removeEventListener("pointerup",p),window.removeEventListener("pointercancel",g),md.has(c)&&md.delete(c),hb(y)&&typeof d=="function"&&d(y,{success:b})},p=y=>{f(y,c===window||c===document||n.useGlobalTarget||gC(c,y.target))},g=y=>{f(y,!1)};window.addEventListener("pointerup",p,i),window.addEventListener("pointercancel",g,i)};return r.forEach(l=>{(n.useGlobalTarget?window:l).addEventListener("pointerdown",a,i),Pg(l)&&(l.addEventListener("focus",d=>q5(d,i)),!V5(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),s}function Dv(t){return xP(t)&&"ownerSVGElement"in t}const gd=new WeakMap;let xi;const yC=(t,e,n)=>(r,i)=>i&&i[0]?i[0][t+"Size"]:Dv(r)&&"getBBox"in r?r.getBBox()[e]:r[n],Z5=yC("inline","width","offsetWidth"),K5=yC("block","height","offsetHeight");function J5({target:t,borderBoxSize:e}){var n;(n=gd.get(t))==null||n.forEach(r=>{r(t,{get width(){return Z5(t,e)},get height(){return K5(t,e)}})})}function Y5(t){t.forEach(J5)}function X5(){typeof ResizeObserver>"u"||(xi=new ResizeObserver(Y5))}function Q5(t,e){xi||X5();const n=hC(t);return n.forEach(r=>{let i=gd.get(r);i||(i=new Set,gd.set(r,i)),i.add(e),xi==null||xi.observe(r)}),()=>{n.forEach(r=>{const i=gd.get(r);i==null||i.delete(e),i!=null&&i.size||xi==null||xi.unobserve(r)})}}const yd=new Set;let Uo;function e4(){Uo=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};yd.forEach(e=>e(t))},window.addEventListener("resize",Uo)}function t4(t){return yd.add(t),Uo||e4(),()=>{yd.delete(t),!yd.size&&typeof Uo=="function"&&(window.removeEventListener("resize",Uo),Uo=void 0)}}function pb(t,e){return typeof t=="function"?t4(t):Q5(t,e)}function n4(t){return Dv(t)&&t.tagName==="svg"}const r4=[...uC,ht,is],i4=t=>r4.find(lC(t)),mb=()=>({translate:0,scale:1,origin:0,originPoint:0}),Vo=()=>({x:mb(),y:mb()}),gb=()=>({min:0,max:0}),pt=()=>({x:gb(),y:gb()}),s4=new WeakMap;function Kh(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function vu(t){return typeof t=="string"||Array.isArray(t)}const Bv=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],zv=["initial",...Bv];function Jh(t){return Kh(t.animate)||zv.some(e=>vu(t[e]))}function vC(t){return!!(Jh(t)||t.variants)}function o4(t,e,n){for(const r in e){const i=e[r],s=n[r];if(Nt(i))t.addValue(r,i);else if(Nt(s))t.addValue(r,ka(i,{owner:t}));else if(s!==i)if(t.hasValue(r)){const a=t.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=t.getStaticValue(r);t.addValue(r,ka(a!==void 0?a:i,{owner:t}))}}for(const r in n)e[r]===void 0&&t.removeValue(r);return e}const Cg={current:null},wC={current:!1},a4=typeof window<"u";function l4(){if(wC.current=!0,!!a4)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Cg.current=t.matches;t.addEventListener("change",e),e()}else Cg.current=!1}const yb=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let nh={};function _C(t){nh=t}function u4(){return nh}class c4{scrapeMotionValuesFromProps(e,n,r){return{}}constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:i,skipAnimations:s,blockInitialAnimation:a,visualState:l},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Av,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const y=Ut.now();this.renderScheduledAt<y&&(this.renderScheduledAt=y,$e.render(this.render,!1,!0))};const{latestValues:d,renderState:f}=l;this.latestValues=d,this.baseTarget={...d},this.initialValues=n.initial?{...d}:{},this.renderState=f,this.parent=e,this.props=n,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=s,this.options=c,this.blockInitialAnimation=!!a,this.isControllingVariants=Jh(n),this.isVariantNode=vC(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:p,...g}=this.scrapeMotionValuesFromProps(n,{},this);for(const y in g){const b=g[y];d[y]!==void 0&&Nt(b)&&b.set(d[y])}}mount(e){var n,r;if(this.hasBeenMounted)for(const i in this.initialValues)(n=this.values.get(i))==null||n.jump(this.initialValues[i]),this.latestValues[i]=this.initialValues[i];this.current=e,s4.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((i,s)=>this.bindToMotionValue(s,i)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(wC.current||l4(),this.shouldReduceMotion=Cg.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var e;this.projection&&this.projection.unmount(),rs(this.notifyUpdate),rs(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(e=this.parent)==null||e.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),n.accelerate&&B5.has(e)&&this.current instanceof HTMLElement){const{factory:a,keyframes:l,times:c,ease:d,duration:f}=n.accelerate,p=new QP({element:this.current,name:e,keyframes:l,times:c,ease:d,duration:Ln(f)}),g=a(p);this.valueSubscriptions.set(e,()=>{g(),p.cancel()});return}const r=Fa.has(e);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&$e.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;typeof window<"u"&&window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),s&&s(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in nh){const n=nh[e];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[e]&&i&&r(this.props)&&(this.features[e]=new i(this)),this.features[e]){const s=this.features[e];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):pt()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<yb.length;r++){const i=yb[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,a=e[s];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=o4(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const r=this.values.get(e);n!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return r===void 0&&n!==void 0&&(r=ka(n===null?void 0:n,{owner:this}),this.addValue(e,r)),r}readValue(e,n){let r=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return r!=null&&(typeof r=="string"&&(bP(r)||kP(r))?r=parseFloat(r):!i4(r)&&is.test(n)&&(r=dC(e,n)),this.setBaseTarget(e,Nt(r)?r.get():r)),Nt(r)?r.get():r}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var s;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const a=Ov(this.props,n,(s=this.presenceContext)==null?void 0:s.custom);a&&(r=a[e])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!Nt(i)?i:this.initialValues[e]!==void 0&&r===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new vv),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){jv.render(this.render)}}class bC extends c4{constructor(){super(...arguments),this.KeyframeResolver=D5}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){const r=e.style;return r?r[n]:void 0}removeValueFromRenderState(e,{vars:n,style:r}){delete n[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Nt(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class hs{constructor(e){this.isMounted=!1,this.node=e}update(){}}function xC({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function d4({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function h4(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Pp(t){return t===void 0||t===1}function Eg({scale:t,scaleX:e,scaleY:n}){return!Pp(t)||!Pp(e)||!Pp(n)}function As(t){return Eg(t)||kC(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function kC(t){return vb(t.x)||vb(t.y)}function vb(t){return t&&t!=="0%"}function rh(t,e,n){const r=t-n,i=e*r;return n+i}function wb(t,e,n,r,i){return i!==void 0&&(t=rh(t,i,r)),rh(t,n,r)+e}function Ag(t,e=0,n=1,r,i){t.min=wb(t.min,e,n,r,i),t.max=wb(t.max,e,n,r,i)}function SC(t,{x:e,y:n}){Ag(t.x,e.translate,e.scale,e.originPoint),Ag(t.y,n.translate,n.scale,n.originPoint)}const _b=.999999999999,bb=1.0000000000001;function f4(t,e,n,r=!1){const i=n.length;if(!i)return;e.x=e.y=1;let s,a;for(let l=0;l<i;l++){s=n[l],a=s.projectionDelta;const{visualElement:c}=s.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Wo(t,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),a&&(e.x*=a.x.scale,e.y*=a.y.scale,SC(t,a)),r&&As(s.latestValues)&&Wo(t,s.latestValues))}e.x<bb&&e.x>_b&&(e.x=1),e.y<bb&&e.y>_b&&(e.y=1)}function Ho(t,e){t.min=t.min+e,t.max=t.max+e}function xb(t,e,n,r,i=.5){const s=Xe(t.min,t.max,i);Ag(t,e,n,s,r)}function Wo(t,e){xb(t.x,e.x,e.scaleX,e.scale,e.originX),xb(t.y,e.y,e.scaleY,e.scale,e.originY)}function TC(t,e){return xC(h4(t.getBoundingClientRect(),e))}function p4(t,e,n){const r=TC(t,n),{scroll:i}=e;return i&&(Ho(r.x,i.offset.x),Ho(r.y,i.offset.y)),r}const m4={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},g4=za.length;function y4(t,e,n){let r="",i=!0;for(let s=0;s<g4;s++){const a=za[s],l=t[a];if(l===void 0)continue;let c=!0;if(typeof l=="number")c=l===(a.startsWith("scale")?1:0);else{const d=parseFloat(l);c=a.startsWith("scale")?d===1:d===0}if(!c||n){const d=fC(l,Nv[a]);if(!c){i=!1;const f=m4[a]||a;r+=`${f}(${d}) `}n&&(e[a]=d)}}return r=r.trim(),n?r=n(e,i?"":r):i&&(r="none"),r}function Fv(t,e,n){const{style:r,vars:i,transformOrigin:s}=t;let a=!1,l=!1;for(const c in e){const d=e[c];if(Fa.has(c)){a=!0;continue}else if(DP(c)){i[c]=d;continue}else{const f=fC(d,Nv[c]);c.startsWith("origin")?(l=!0,s[c]=f):r[c]=f}}if(e.transform||(a||n?r.transform=y4(e,t.transform,n):r.transform&&(r.transform="none")),l){const{originX:c="50%",originY:d="50%",originZ:f=0}=s;r.transformOrigin=`${c} ${d} ${f}`}}function PC(t,{style:e,vars:n},r,i){const s=t.style;let a;for(a in e)s[a]=e[a];i==null||i.applyProjectionStyles(s,r);for(a in n)s.setProperty(a,n[a])}function kb(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const yl={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(re.test(t))t=parseFloat(t);else return t;const n=kb(t,e.target.x),r=kb(t,e.target.y);return`${n}% ${r}%`}},v4={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,i=is.parse(t);if(i.length>5)return r;const s=is.createTransformer(t),a=typeof i[0]!="number"?1:0,l=n.x.scale*e.x,c=n.y.scale*e.y;i[0+a]/=l,i[1+a]/=c;const d=Xe(l,c,.5);return typeof i[2+a]=="number"&&(i[2+a]/=d),typeof i[3+a]=="number"&&(i[3+a]/=d),s(i)}},Rg={borderRadius:{...yl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:yl,borderTopRightRadius:yl,borderBottomLeftRadius:yl,borderBottomRightRadius:yl,boxShadow:v4};function CC(t,{layout:e,layoutId:n}){return Fa.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Rg[t]||t==="opacity")}function $v(t,e,n){var a;const r=t.style,i=e==null?void 0:e.style,s={};if(!r)return s;for(const l in r)(Nt(r[l])||i&&Nt(i[l])||CC(l,t)||((a=n==null?void 0:n.getValue(l))==null?void 0:a.liveStyle)!==void 0)&&(s[l]=r[l]);return s}function w4(t){return window.getComputedStyle(t)}class _4 extends bC{constructor(){super(...arguments),this.type="html",this.renderInstance=PC}readValueFromInstance(e,n){var r;if(Fa.has(n))return(r=this.projection)!=null&&r.isProjecting?gg(n):BD(e,n);{const i=w4(e),s=(DP(n)?i.getPropertyValue(n):i[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(e,{transformPagePoint:n}){return TC(e,n)}build(e,n,r){Fv(e,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,n,r){return $v(e,n,r)}}const b4={offset:"stroke-dashoffset",array:"stroke-dasharray"},x4={offset:"strokeDashoffset",array:"strokeDasharray"};function k4(t,e,n=1,r=0,i=!0){t.pathLength=1;const s=i?b4:x4;t[s.offset]=`${-r}`,t[s.array]=`${e} ${n}`}const S4=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function EC(t,{attrX:e,attrY:n,attrScale:r,pathLength:i,pathSpacing:s=1,pathOffset:a=0,...l},c,d,f){if(Fv(t,l,d),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:p,style:g}=t;p.transform&&(g.transform=p.transform,delete p.transform),(g.transform||p.transformOrigin)&&(g.transformOrigin=p.transformOrigin??"50% 50%",delete p.transformOrigin),g.transform&&(g.transformBox=(f==null?void 0:f.transformBox)??"fill-box",delete p.transformBox);for(const y of S4)p[y]!==void 0&&(g[y]=p[y],delete p[y]);e!==void 0&&(p.x=e),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),i!==void 0&&k4(p,i,s,a,!1)}const AC=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),RC=t=>typeof t=="string"&&t.toLowerCase()==="svg";function T4(t,e,n,r){PC(t,e,void 0,r);for(const i in e.attrs)t.setAttribute(AC.has(i)?i:Mv(i),e.attrs[i])}function LC(t,e,n){const r=$v(t,e,n);for(const i in t)if(Nt(t[i])||Nt(e[i])){const s=za.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=t[i]}return r}class P4 extends bC{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=pt}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Fa.has(n)){const r=cC(n);return r&&r.default||0}return n=AC.has(n)?n:Mv(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,r){return LC(e,n,r)}build(e,n,r){EC(e,n,this.isSVGTag,r.transformTemplate,r.style)}
vendor: 24,791 bytes, line 219
219renderInstance(e,n,r,i){T4(e,n,r,i)}mount(e){this.isSVGTag=RC(e.tagName),super.mount(e)}}const C4=zv.length;function OC(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?OC(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<C4;n++){const r=zv[n],i=t.props[r];(vu(i)||i===!1)&&(e[r]=i)}return e}function MC(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}const E4=[...Bv].reverse(),A4=Bv.length;function R4(t){return e=>Promise.all(e.map(({animation:n,options:r})=>C5(t,n,r)))}function L4(t){let e=R4(t),n=Sb(),r=!0;const i=c=>(d,f)=>{var g;const p=ra(t,f,c==="exit"?(g=t.presenceContext)==null?void 0:g.custom:void 0);if(p){const{transition:y,transitionEnd:b,..._}=p;d={...d,..._,...b}}return d};function s(c){e=c(t)}function a(c){const{props:d}=t,f=OC(t.parent)||{},p=[],g=new Set;let y={},b=1/0;for(let T=0;T<A4;T++){const x=E4[T],S=n[x],k=d[x]!==void 0?d[x]:f[x],E=vu(k),A=x===c?S.isActive:null;A===!1&&(b=T);let O=k===f[x]&&k!==d[x]&&E;if(O&&r&&t.manuallyAnimateOnMount&&(O=!1),S.protectedKeys={...y},!S.isActive&&A===null||!k&&!S.prevProp||Kh(k)||typeof k=="boolean")continue;if(x==="exit"&&S.isActive&&A!==!0){S.prevResolvedValues&&(y={...y,...S.prevResolvedValues});continue}const M=O4(S.prevProp,k);let I=M||x===c&&S.isActive&&!O&&E||T>b&&E,B=!1;const H=Array.isArray(k)?k:[k];let J=H.reduce(i(x),{});A===!1&&(J={});const{prevResolvedValues:Z={}}=S,ge={...Z,...J},G=te=>{I=!0,g.has(te)&&(B=!0,g.delete(te)),S.needsAnimating[te]=!0;const N=t.getValue(te);N&&(N.liveStyle=!1)};for(const te in ge){const N=J[te],$=Z[te];if(y.hasOwnProperty(te))continue;let z=!1;xg(N)&&xg($)?z=!MC(N,$):z=N!==$,z?N!=null?G(te):g.add(te):N!==void 0&&g.has(te)?G(te):S.protectedKeys[te]=!0}S.prevProp=k,S.prevResolvedValues=J,S.isActive&&(y={...y,...J}),r&&t.blockInitialAnimation&&(I=!1);const be=O&&M;I&&(!be||B)&&p.push(...H.map(te=>{const N={type:x};if(typeof te=="string"&&r&&!be&&t.manuallyAnimateOnMount&&t.parent){const{parent:$}=t,z=ra($,te);if($.enteringChildren&&z){const{delayChildren:Q}=z.transition||{};N.delay=tC($.enteringChildren,t,Q)}}return{animation:te,options:N}}))}if(g.size){const T={};if(typeof d.initial!="boolean"){const x=ra(t,Array.isArray(d.initial)?d.initial[0]:d.initial);x&&x.transition&&(T.transition=x.transition)}g.forEach(x=>{const S=t.getBaseTarget(x),k=t.getValue(x);k&&(k.liveStyle=!0),T[x]=S??null}),p.push({animation:T})}let _=!!p.length;return r&&(d.initial===!1||d.initial===d.animate)&&!t.manuallyAnimateOnMount&&(_=!1),r=!1,_?e(p):Promise.resolve()}function l(c,d){var p;if(n[c].isActive===d)return Promise.resolve();(p=t.variantChildren)==null||p.forEach(g=>{var y;return(y=g.animationState)==null?void 0:y.setActive(c,d)}),n[c].isActive=d;const f=a(c);for(const g in n)n[g].protectedKeys={};return f}return{animateChanges:a,setActive:l,setAnimateFunction:s,getState:()=>n,reset:()=>{n=Sb()}}}function O4(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!MC(e,t):!1}function ks(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Sb(){return{animate:ks(!0),whileInView:ks(),whileHover:ks(),whileTap:ks(),whileDrag:ks(),whileFocus:ks(),exit:ks()}}function Tb(t,e){t.min=e.min,t.max=e.max}function $n(t,e){Tb(t.x,e.x),Tb(t.y,e.y)}function Pb(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const NC=1e-4,M4=1-NC,N4=1+NC,jC=.01,j4=0-jC,I4=0+jC;function Vt(t){return t.max-t.min}function D4(t,e,n){return Math.abs(t-e)<=n}function Cb(t,e,n,r=.5){t.origin=r,t.originPoint=Xe(e.min,e.max,t.origin),t.scale=Vt(n)/Vt(e),t.translate=Xe(n.min,n.max,t.origin)-t.originPoint,(t.scale>=M4&&t.scale<=N4||isNaN(t.scale))&&(t.scale=1),(t.translate>=j4&&t.translate<=I4||isNaN(t.translate))&&(t.translate=0)}function $l(t,e,n,r){Cb(t.x,e.x,n.x,r?r.originX:void 0),Cb(t.y,e.y,n.y,r?r.originY:void 0)}function Eb(t,e,n){t.min=n.min+e.min,t.max=t.min+Vt(e)}function B4(t,e,n){Eb(t.x,e.x,n.x),Eb(t.y,e.y,n.y)}function Ab(t,e,n){t.min=e.min-n.min,t.max=t.min+Vt(e)}function ih(t,e,n){Ab(t.x,e.x,n.x),Ab(t.y,e.y,n.y)}function Rb(t,e,n,r,i){return t-=e,t=rh(t,1/n,r),i!==void 0&&(t=rh(t,1/i,r)),t}function z4(t,e=0,n=1,r=.5,i,s=t,a=t){if(Lr.test(e)&&(e=parseFloat(e),e=Xe(a.min,a.max,e/100)-a.min),typeof e!="number")return;let l=Xe(s.min,s.max,r);t===s&&(l-=e),t.min=Rb(t.min,e,n,l,i),t.max=Rb(t.max,e,n,l,i)}function Lb(t,e,[n,r,i],s,a){z4(t,e[n],e[r],e[i],e.scale,s,a)}const F4=["x","scaleX","originX"],$4=["y","scaleY","originY"];function Ob(t,e,n,r){Lb(t.x,e,F4,n?n.x:void 0,r?r.x:void 0),Lb(t.y,e,$4,n?n.y:void 0,r?r.y:void 0)}function Mb(t){return t.translate===0&&t.scale===1}function IC(t){return Mb(t.x)&&Mb(t.y)}function Nb(t,e){return t.min===e.min&&t.max===e.max}function U4(t,e){return Nb(t.x,e.x)&&Nb(t.y,e.y)}function jb(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function DC(t,e){return jb(t.x,e.x)&&jb(t.y,e.y)}function Ib(t){return Vt(t.x)/Vt(t.y)}function Db(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function wr(t){return[t("x"),t("y")]}function V4(t,e,n){let r="";const i=t.x.translate/e.x,s=t.y.translate/e.y,a=(n==null?void 0:n.z)||0;if((i||s||a)&&(r=`translate3d(${i}px, ${s}px, ${a}px) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:d,rotate:f,rotateX:p,rotateY:g,skewX:y,skewY:b}=n;d&&(r=`perspective(${d}px) ${r}`),f&&(r+=`rotate(${f}deg) `),p&&(r+=`rotateX(${p}deg) `),g&&(r+=`rotateY(${g}deg) `),y&&(r+=`skewX(${y}deg) `),b&&(r+=`skewY(${b}deg) `)}const l=t.x.scale*e.x,c=t.y.scale*e.y;return(l!==1||c!==1)&&(r+=`scale(${l}, ${c})`),r||"none"}const BC=["TopLeft","TopRight","BottomLeft","BottomRight"],H4=BC.length,Bb=t=>typeof t=="string"?parseFloat(t):t,zb=t=>typeof t=="number"||re.test(t);function W4(t,e,n,r,i,s){i?(t.opacity=Xe(0,n.opacity??1,q4(r)),t.opacityExit=Xe(e.opacity??1,0,G4(r))):s&&(t.opacity=Xe(e.opacity??1,n.opacity??1,r));for(let a=0;a<H4;a++){const l=`border${BC[a]}Radius`;let c=Fb(e,l),d=Fb(n,l);if(c===void 0&&d===void 0)continue;c||(c=0),d||(d=0),c===0||d===0||zb(c)===zb(d)?(t[l]=Math.max(Xe(Bb(c),Bb(d),r),0),(Lr.test(d)||Lr.test(c))&&(t[l]+="%")):t[l]=d}(e.rotate||n.rotate)&&(t.rotate=Xe(e.rotate||0,n.rotate||0,r))}function Fb(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const q4=zC(0,.5,LP),G4=zC(.5,.95,Rn);function zC(t,e,n){return r=>r<t?0:r>e?1:n(mu(t,e,r))}function Z4(t,e,n){const r=Nt(t)?t:ka(t);return r.start(Lv("",r,e,n)),r.animation}function wu(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}const K4=(t,e)=>t.depth-e.depth;class J4{constructor(){this.children=[],this.isDirty=!1}add(e){gv(this.children,e),this.isDirty=!0}remove(e){Xd(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(K4),this.isDirty=!1,this.children.forEach(e)}}function Y4(t,e){const n=Ut.now(),r=({timestamp:i})=>{const s=i-n;s>=e&&(rs(r),t(s-e))};return $e.setup(r,!0),()=>rs(r)}function vd(t){return Nt(t)?t.get():t}class X4{constructor(){this.members=[]}add(e){gv(this.members,e);for(let n=this.members.length-1;n>=0;n--){const r=this.members[n];if(r===e||r===this.lead||r===this.prevLead)continue;const i=r.instance;i&&i.isConnected===!1&&r.isPresent!==!1&&!r.snapshot&&Xd(this.members,r)}e.scheduleRender()}remove(e){if(Xd(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i],a=s.instance;if(s.isPresent!==!1&&(!a||a.isConnected!==!1)){r=s;break}}return r?(this.promote(r),!0):!1}promote(e,n){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender();const i=r.options.layoutDependency,s=e.options.layoutDependency;if(!(i!==void 0&&s!==void 0&&i===s)){const c=r.instance;c&&c.isConnected===!1&&!r.snapshot||(e.resumeFrom=r,n&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0))}const{crossfade:l}=e.options;l===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:r}=e;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const wd={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Cp=["","X","Y","Z"],Q4=1e3;let eB=0;function Ep(t,e,n,r){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),r&&(r[t]=0))}function FC(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=oC(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",$e,!(i||s))}const{parent:r}=t;r&&!r.hasCheckedOptimisedAppear&&FC(r)}function $C({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},l=e==null?void 0:e()){this.id=eB++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(rB),this.nodes.forEach(aB),this.nodes.forEach(lB),this.nodes.forEach(iB)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new J4)}addEventListener(a,l){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new vv),this.eventHandlers.get(a).add(l)}notifyListeners(a,...l){const c=this.eventHandlers.get(a);c&&c.notify(...l)}hasListeners(a){return this.eventHandlers.has(a)}mount(a){if(this.instance)return;this.isSVG=Dv(a)&&!n4(a),this.instance=a;const{layoutId:l,layout:c,visualElement:d}=this.options;if(d&&!d.current&&d.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||l)&&(this.isLayoutDirty=!0),t){let f,p=0;const g=()=>this.root.updateBlockedByResize=!1;$e.read(()=>{p=window.innerWidth}),t(a,()=>{const y=window.innerWidth;y!==p&&(p=y,this.root.updateBlockedByResize=!0,f&&f(),f=Y4(g,250),wd.hasAnimatedSinceResize&&(wd.hasAnimatedSinceResize=!1,this.nodes.forEach(Vb)))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||c)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p,hasRelativeLayoutChanged:g,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||d.getDefaultTransition()||fB,{onLayoutAnimationStart:_,onLayoutAnimationComplete:T}=d.getProps(),x=!this.targetLayout||!DC(this.targetLayout,y),S=!p&&g;if(this.options.layoutRoot||this.resumeFrom||S||p&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const k={...Rv(b,"layout"),onPlay:_,onComplete:T};(d.shouldReduceMotion||this.options.layoutRoot)&&(k.delay=0,k.type=!1),this.startAnimation(k),this.setAnimationOrigin(f,S)}else p||Vb(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),rs(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(uB),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&FC(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let f=0;f<this.path.length;f++){const p=this.path[f];p.shouldResetTransform=!0,p.updateScroll("snapshot"),p.options.layoutRoot&&p.willUpdate(!1)}const{layoutId:l,layout:c}=this.options;if(l===void 0&&!c)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach($b);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Ub);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(oB),this.nodes.forEach(tB),this.nodes.forEach(nB)):this.nodes.forEach(Ub),this.clearAllSnapshots();const l=Ut.now();St.delta=Nr(0,1e3/60,l-St.timestamp),St.timestamp=l,St.isProcessing=!0,wp.update.process(St),wp.preRender.process(St),wp.render.process(St),St.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,jv.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(sB),this.sharedNodes.forEach(cB)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,$e.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){$e.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Vt(this.snapshot.measuredBox.x)&&!Vt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=pt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(l=!1),l&&this.instance){const c=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!IC(this.projectionDelta),c=this.getTransformTemplate(),d=c?c(this.latestValues,""):void 0,f=d!==this.prevTransformTemplateValue;a&&this.instance&&(l||As(this.latestValues)||f)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return a&&(c=this.removeTransform(c)),pB(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var d;const{visualElement:a}=this.options;if(!a)return pt();const l=a.measureViewportBox();if(!(((d=this.scroll)==null?void 0:d.wasRoot)||this.path.some(mB))){const{scroll:f}=this.root;f&&(Ho(l.x,f.offset.x),Ho(l.y,f.offset.y))}return l}removeElementScroll(a){var c;const l=pt();if($n(l,a),(c=this.scroll)!=null&&c.wasRoot)return l;for(let d=0;d<this.path.length;d++){const f=this.path[d],{scroll:p,options:g}=f;f!==this.root&&p&&g.layoutScroll&&(p.wasRoot&&$n(l,a),Ho(l.x,p.offset.x),Ho(l.y,p.offset.y))}return l}applyTransform(a,l=!1){const c=pt();$n(c,a);for(let d=0;d<this.path.length;d++){const f=this.path[d];!l&&f.options.layoutScroll&&f.scroll&&f!==f.root&&Wo(c,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),As(f.latestValues)&&Wo(c,f.latestValues)}return As(this.latestValues)&&Wo(c,this.latestValues),c}removeTransform(a){const l=pt();$n(l,a);for(let c=0;c<this.path.length;c++){const d=this.path[c];if(!d.instance||!As(d.latestValues))continue;Eg(d.latestValues)&&d.updateSnapshot();const f=pt(),p=d.measurePageBox();$n(f,p),Ob(l,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,f)}return As(this.latestValues)&&Ob(l,this.latestValues),l}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==St.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var y;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(a||c&&this.isSharedProjectionDirty||this.isProjectionDirty||(y=this.parent)!=null&&y.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:f,layoutId:p}=this.options;if(!this.layout||!(f||p))return;this.resolvedRelativeTargetAt=St.timestamp;const g=this.getClosestProjectingParent();g&&this.linkedParentVersion!==g.layoutVersion&&!g.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(g&&g.layout?this.createRelativeTarget(g,this.layout.layoutBox,g.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=pt(),this.targetWithTransforms=pt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),B4(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):$n(this.target,this.layout.layoutBox),SC(this.target,this.targetDelta)):$n(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?this.createRelativeTarget(g,this.target,g.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Eg(this.parent.latestValues)||kC(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(a,l,c){this.relativeParent=a,this.linkedParentVersion=a.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=pt(),this.relativeTargetOrigin=pt(),ih(this.relativeTargetOrigin,l,c),$n(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var b;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let c=!0;if((this.isProjectionDirty||(b=this.parent)!=null&&b.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===St.timestamp&&(c=!1),c)return;const{layout:d,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||f))return;$n(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,g=this.treeScale.y;f4(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=pt());const{target:y}=a;if(!y){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Pb(this.prevProjectionDelta.x,this.projectionDelta.x),Pb(this.prevProjectionDelta.y,this.projectionDelta.y)),$l(this.projectionDelta,this.layoutCorrected,y,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==g||!Db(this.projectionDelta.x,this.prevProjectionDelta.x)||!Db(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",y))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var l;if((l=this.options.visualElement)==null||l.scheduleRender(),a){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Vo(),this.projectionDelta=Vo(),this.projectionDeltaWithTransform=Vo()}setAnimationOrigin(a,l=!1){const c=this.snapshot,d=c?c.latestValues:{},f={...this.latestValues},p=Vo();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const g=pt(),y=c?c.source:void 0,b=this.layout?this.layout.source:void 0,_=y!==b,T=this.getStack(),x=!T||T.members.length<=1,S=!!(_&&!x&&this.options.crossfade===!0&&!this.path.some(hB));this.animationProgress=0;let k;this.mixTargetDelta=E=>{const A=E/1e3;Hb(p.x,a.x,A),Hb(p.y,a.y,A),this.setTargetDelta(p),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ih(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox),dB(this.relativeTarget,this.relativeTargetOrigin,g,A),k&&U4(this.relativeTarget,k)&&(this.isProjectionDirty=!1),k||(k=pt()),$n(k,this.relativeTarget)),_&&(this.animationValues=f,W4(f,d,this.latestValues,A,S,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=A},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){var l,c,d;this.notifyListeners("animationStart"),(l=this.currentAnimation)==null||l.stop(),(d=(c=this.resumingFrom)==null?void 0:c.currentAnimation)==null||d.stop(),this.pendingAnimation&&(rs(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=$e.update(()=>{wd.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ka(0)),this.currentAnimation=Z4(this.motionValue,[0,1e3],{...a,velocity:0,isSync:!0,onUpdate:f=>{this.mixTargetDelta(f),a.onUpdate&&a.onUpdate(f)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Q4),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:l,target:c,layout:d,latestValues:f}=a;if(!(!l||!c||!d)){if(this!==a&&this.layout&&d&&UC(this.options.animationType,this.layout.layoutBox,d.layoutBox)){c=this.target||pt();const p=Vt(this.layout.layoutBox.x);
vendor: 4,670 bytes, line 219
219c.x.min=a.target.x.min,c.x.max=c.x.min+p;const g=Vt(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+g}$n(l,c),Wo(l,f),$l(this.projectionDeltaWithTransform,this.layoutCorrected,l,f)}}registerSharedNode(a,l){this.sharedNodes.has(a)||this.sharedNodes.set(a,new X4),this.sharedNodes.get(a).add(l);const d=l.options.initialPromotionConfig;l.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(l):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var l;const{layoutId:a}=this.options;return a?((l=this.getStack())==null?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:a}=this.options;return a?(l=this.getStack())==null?void 0:l.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:l,preserveFollowOpacity:c}={}){const d=this.getStack();d&&d.promote(this,c),a&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let l=!1;const{latestValues:c}=a;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const d={};c.z&&Ep("z",a,d,this.animationValues);for(let f=0;f<Cp.length;f++)Ep(`rotate${Cp[f]}`,a,d,this.animationValues),Ep(`skew${Cp[f]}`,a,d,this.animationValues);a.render();for(const f in d)a.setStaticValue(f,d[f]),this.animationValues&&(this.animationValues[f]=d[f]);a.scheduleRender()}applyProjectionStyles(a,l){if(!this.instance||this.isSVG)return;if(!this.isVisible){a.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,a.visibility="",a.opacity="",a.pointerEvents=vd(l==null?void 0:l.pointerEvents)||"",a.transform=c?c(this.latestValues,""):"none";return}const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){this.options.layoutId&&(a.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,a.pointerEvents=vd(l==null?void 0:l.pointerEvents)||""),this.hasProjected&&!As(this.latestValues)&&(a.transform=c?c({},""):"none",this.hasProjected=!1);return}a.visibility="";const f=d.animationValues||d.latestValues;this.applyTransformsToTarget();let p=V4(this.projectionDeltaWithTransform,this.treeScale,f);c&&(p=c(f,p)),a.transform=p;const{x:g,y}=this.projectionDelta;a.transformOrigin=`${g.origin*100}% ${y.origin*100}% 0`,d.animationValues?a.opacity=d===this?f.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:a.opacity=d===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const b in Rg){if(f[b]===void 0)continue;const{correct:_,applyTo:T,isCSSVariable:x}=Rg[b],S=p==="none"?f[b]:_(f[b],d);if(T){const k=T.length;for(let E=0;E<k;E++)a[T[E]]=S}else x?this.options.visualElement.renderState.vars[b]=S:a[b]=S}this.options.layoutId&&(a.pointerEvents=d===this?vd(l==null?void 0:l.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var l;return(l=a.currentAnimation)==null?void 0:l.stop()}),this.root.nodes.forEach($b),this.root.sharedNodes.clear()}}}function tB(t){t.updateLayout()}function nB(t){var n;const e=((n=t.resumeFrom)==null?void 0:n.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=t.layout,{animationType:s}=t.options,a=e.source!==t.layout.source;s==="size"?wr(p=>{const g=a?e.measuredBox[p]:e.layoutBox[p],y=Vt(g);g.min=r[p].min,g.max=g.min+y}):UC(s,e.layoutBox,r)&&wr(p=>{const g=a?e.measuredBox[p]:e.layoutBox[p],y=Vt(r[p]);g.max=g.min+y,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[p].max=t.relativeTarget[p].min+y)});const l=Vo();$l(l,r,e.layoutBox);const c=Vo();a?$l(c,t.applyTransform(i,!0),e.measuredBox):$l(c,r,e.layoutBox);const d=!IC(l);let f=!1;if(!t.resumeFrom){const p=t.getClosestProjectingParent();if(p&&!p.resumeFrom){const{snapshot:g,layout:y}=p;if(g&&y){const b=pt();ih(b,e.layoutBox,g.layoutBox);const _=pt();ih(_,r,y.layoutBox),DC(b,_)||(f=!0),p.options.layoutRoot&&(t.relativeTarget=_,t.relativeTargetOrigin=b,t.relativeParent=p)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:e,delta:c,layoutDelta:l,hasLayoutChanged:d,hasRelativeLayoutChanged:f})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function rB(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
vendor: 6,795 bytes, lines 219-227
219isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function iB(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function sB(t){t.clearSnapshot()}function $b(t){t.clearMeasurements()}function Ub(t){t.isLayoutDirty=!1}function oB(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Vb(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function aB(t){t.resolveTargetDelta()}function lB(t){t.calcProjection()}function uB(t){t.resetSkewAndRotation()}function cB(t){t.removeLeadSnapshot()}function Hb(t,e,n){t.translate=Xe(e.translate,0,n),t.scale=Xe(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Wb(t,e,n,r){t.min=Xe(e.min,n.min,r),t.max=Xe(e.max,n.max,r)}function dB(t,e,n,r){Wb(t.x,e.x,n.x,r),Wb(t.y,e.y,n.y,r)}function hB(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const fB={duration:.45,ease:[.4,0,.1,1]},qb=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Gb=qb("applewebkit/")&&!qb("chrome/")?Math.round:Rn;function Zb(t){t.min=Gb(t.min),t.max=Gb(t.max)}function pB(t){Zb(t.x),Zb(t.y)}function UC(t,e,n){return t==="position"||t==="preserve-aspect"&&!D4(Ib(e),Ib(n),.2)}function mB(t){var e;return t!==t.root&&((e=t.scroll)==null?void 0:e.wasRoot)}const gB=$C({attachResizeListener:(t,e)=>wu(t,"resize",e),measureScroll:()=>{var t,e;return{x:document.documentElement.scrollLeft||((t=document.body)==null?void 0:t.scrollLeft)||0,y:document.documentElement.scrollTop||((e=document.body)==null?void 0:e.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Ap={current:void 0},VC=$C({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Ap.current){const t=new gB({});t.mount(window),t.setOptions({layoutScroll:!0}),Ap.current=t}return Ap.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Uv=C.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function Kb(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function yB(...t){return e=>{let n=!1;const r=t.map(i=>{const s=Kb(i,e);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let i=0;i<r.length;i++){const s=r[i];typeof s=="function"?s():Kb(t[i],null)}}}}function vB(...t){return C.useCallback(yB(...t),t)}class wB extends C.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const r=n.offsetParent,i=Pg(r)&&r.offsetWidth||0,s=Pg(r)&&r.offsetHeight||0,a=this.props.sizeRef.current;a.height=n.offsetHeight||0,a.width=n.offsetWidth||0,a.top=n.offsetTop,a.left=n.offsetLeft,a.right=i-a.width-a.left,a.bottom=s-a.height-a.top}return null}componentDidUpdate(){}render(){return this.props.children}}function _B({children:t,isPresent:e,anchorX:n,anchorY:r,root:i,pop:s}){var g;const a=C.useId(),l=C.useRef(null),c=C.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:d}=C.useContext(Uv),f=((g=t.props)==null?void 0:g.ref)??(t==null?void 0:t.ref),p=vB(l,f);return C.useInsertionEffect(()=>{const{width:y,height:b,top:_,left:T,right:x,bottom:S}=c.current;if(e||s===!1||!l.current||!y||!b)return;const k=n==="left"?`left: ${T}`:`right: ${x}`,E=r==="bottom"?`bottom: ${S}`:`top: ${_}`;l.current.dataset.motionPopId=a;const A=document.createElement("style");d&&(A.nonce=d);const O=i??document.head;return O.appendChild(A),A.sheet&&A.sheet.insertRule(`
220          [data-motion-pop-id="${a}"] {
221            position: absolute !important;
222            width: ${y}px !important;
223            height: ${b}px !important;
224            ${k}px !important;
225            ${E}px !important;
226          }
227        `),()=>{O.contains(A)&&O.removeChild(A)}},[e]),v.jsx(wB,{isPresent:e,childRef:l,sizeRef:c,pop:s,children:s===!1?t:C.cloneElement(t,{ref:p})})}const bB=({children:t,initial:e,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:a,anchorX:l,anchorY:c,root:d})=>{const f=mv(xB),p=C.useId();let g=!0,y=C.useMemo(()=>(g=!1,{id:p,initial:e,isPresent:n,custom:i,onExitComplete:b=>{f.set(b,!0);for(const _ of f.values())if(!_)return;r&&r()},register:b=>(f.set(b,!1),()=>f.delete(b))}),[n,f,r]);return s&&g&&(y={...y}),C.useMemo(()=>{f.forEach((b,_)=>f.set(_,!1))},[n]),C.useEffect(()=>{!n&&!f.size&&r&&r()},[n]),t=v.jsx(_B,{pop:a==="popLayout",isPresent:n,anchorX:l,anchorY:c,root:d,children:t}),v.jsx(Gh.Provider,{value:y,children:t})};function xB(){return new Map}function HC(t=!0){const e=C.useContext(Gh);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=e,s=C.useId();C.useEffect(()=>{if(t)return i(s)},[t]);const a=C.useCallback(()=>t&&r&&r(s),[s,r,t]);return!n&&r?[!1,a]:[!0]}const Fc=t=>t.key||"";function Jb(t){const e=[];return C.Children.forEach(t,n=>{C.isValidElement(n)&&e.push(n)}),e}const $a=({children:t,custom:e,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:s="sync",propagate:a=!1,anchorX:l="left",anchorY:c="top",root:d})=>{const[f,p]=HC(a),g=C.useMemo(()=>Jb(t),[t]),y=a&&!f?[]:g.map(Fc),b=C.useRef(!0),_=C.useRef(g),T=mv(()=>new Map),x=C.useRef(new Set),[S,k]=C.useState(g),[E,A]=C.useState(g);_P(()=>{b.current=!1,_.current=g;for(let I=0;I<E.length;I++){const B=Fc(E[I]);y.includes(B)?(T.delete(B),x.current.delete(B)):T.get(B)!==!0&&T.set(B,!1)}},[E,y.length,y.join("-")]);const O=[];if(g!==S){let I=[...g];for(let B=0;B<E.length;B++){const H=E[B],J=Fc(H);y.includes(J)||(I.splice(B,0,H),O.push(H))}return s==="wait"&&O.length&&(I=O),A(Jb(I)),k(g),null}const{forceRender:M}=C.useContext(pv);return v.jsx(v.Fragment,{children:E.map(I=>{const B=Fc(I),H=a&&!f?!1:g===E||y.includes(B),J=()=>{if(x.current.has(B))return;if(x.current.add(B),T.has(B))T.set(B,!0);else return;let Z=!0;T.forEach(ge=>{ge||(Z=!1)}),Z&&(M==null||M(),A(_.current),a&&(p==null||p()),r&&r())};return v.jsx(bB,{isPresent:H,initial:!b.current||n?void 0:!1,custom:e,presenceAffectsLayout:i,mode:s,root:d,onExitComplete:H?void 0:J,anchorX:l,anchorY:c,children:I},B)})})},WC=C.createContext({strict:!1}),Yb={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let Xb=!1;function kB(){if(Xb)return;const t={};for(const e in Yb)t[e]={isEnabled:n=>Yb[e].some(r=>!!n[r])};_C(t),Xb=!0}
vendor: 24,795 bytes, line 227
227function qC(){return kB(),u4()}function SB(t){const e=qC();for(const n in t)e[n]={...e[n],...t[n]};_C(e)}const TB=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function sh(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||TB.has(t)}let GC=t=>!sh(t);function PB(t){typeof t=="function"&&(GC=e=>e.startsWith("on")?!sh(e):t(e))}try{PB(require("@emotion/is-prop-valid").default)}catch{}function CB(t,e,n){const r={};for(const i in t)i==="values"&&typeof t.values=="object"||(GC(i)||n===!0&&sh(i)||!e&&!sh(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}const Yh=C.createContext({});function EB(t,e){if(Jh(t)){const{initial:n,animate:r}=t;return{initial:n===!1||vu(n)?n:void 0,animate:vu(r)?r:void 0}}return t.inherit!==!1?e:{}}function AB(t){const{initial:e,animate:n}=EB(t,C.useContext(Yh));return C.useMemo(()=>({initial:e,animate:n}),[Qb(e),Qb(n)])}function Qb(t){return Array.isArray(t)?t.join(" "):t}const Vv=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ZC(t,e,n){for(const r in e)!Nt(e[r])&&!CC(r,n)&&(t[r]=e[r])}function RB({transformTemplate:t},e){return C.useMemo(()=>{const n=Vv();return Fv(n,e,t),Object.assign({},n.vars,n.style)},[e])}function LB(t,e){const n=t.style||{},r={};return ZC(r,n,t),Object.assign(r,RB(t,e)),r}function OB(t,e){const n={},r=LB(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=r,n}const KC=()=>({...Vv(),attrs:{}});function MB(t,e,n,r){const i=C.useMemo(()=>{const s=KC();return EC(s,e,RC(r),t.transformTemplate,t.style),{...s.attrs,style:{...s.style}}},[e]);if(t.style){const s={};ZC(s,t.style,t),i.style={...s,...i.style}}return i}const NB=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Hv(t){return typeof t!="string"||t.includes("-")?!1:!!(NB.indexOf(t)>-1||/[A-Z]/u.test(t))}function jB(t,e,n,{latestValues:r},i,s=!1,a){const c=(a??Hv(t)?MB:OB)(e,r,i,t),d=CB(e,typeof t=="string",s),f=t!==C.Fragment?{...d,...c,ref:n}:{},{children:p}=e,g=C.useMemo(()=>Nt(p)?p.get():p,[p]);return C.createElement(t,{...f,children:g})}function IB({scrapeMotionValuesFromProps:t,createRenderState:e},n,r,i){return{latestValues:DB(n,r,i,t),renderState:e()}}function DB(t,e,n,r){const i={},s=r(t,{});for(const g in s)i[g]=vd(s[g]);let{initial:a,animate:l}=t;const c=Jh(t),d=vC(t);e&&d&&!c&&t.inherit!==!1&&(a===void 0&&(a=e.initial),l===void 0&&(l=e.animate));let f=n?n.initial===!1:!1;f=f||a===!1;const p=f?l:a;if(p&&typeof p!="boolean"&&!Kh(p)){const g=Array.isArray(p)?p:[p];for(let y=0;y<g.length;y++){const b=Ov(t,g[y]);if(b){const{transitionEnd:_,transition:T,...x}=b;for(const S in x){let k=x[S];if(Array.isArray(k)){const E=f?k.length-1:0;k=k[E]}k!==null&&(i[S]=k)}for(const S in _)i[S]=_[S]}}}return i}const JC=t=>(e,n)=>{const r=C.useContext(Yh),i=C.useContext(Gh),s=()=>IB(t,e,r,i);return n?s():mv(s)},BB=JC({scrapeMotionValuesFromProps:$v,createRenderState:Vv}),zB=JC({scrapeMotionValuesFromProps:LC,createRenderState:KC}),FB=Symbol.for("motionComponentSymbol");function $B(t,e,n){const r=C.useRef(n);C.useInsertionEffect(()=>{r.current=n});const i=C.useRef(null);return C.useCallback(s=>{var l;s&&((l=t.onMount)==null||l.call(t,s)),e&&(s?e.mount(s):e.unmount());const a=r.current;if(typeof a=="function")if(s){const c=a(s);typeof c=="function"&&(i.current=c)}else i.current?(i.current(),i.current=null):a(s);else a&&(a.current=s)},[e])}const YC=C.createContext({});function So(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function UB(t,e,n,r,i,s){var k,E;const{visualElement:a}=C.useContext(Yh),l=C.useContext(WC),c=C.useContext(Gh),d=C.useContext(Uv),f=d.reducedMotion,p=d.skipAnimations,g=C.useRef(null),y=C.useRef(!1);r=r||l.renderer,!g.current&&r&&(g.current=r(t,{visualState:e,parent:a,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:f,skipAnimations:p,isSVG:s}),y.current&&g.current&&(g.current.manuallyAnimateOnMount=!0));const b=g.current,_=C.useContext(YC);b&&!b.projection&&i&&(b.type==="html"||b.type==="svg")&&VB(g.current,n,i,_);const T=C.useRef(!1);C.useInsertionEffect(()=>{b&&T.current&&b.update(n,c)});const x=n[sC],S=C.useRef(!!x&&!((k=window.MotionHandoffIsComplete)!=null&&k.call(window,x))&&((E=window.MotionHasOptimisedAnimation)==null?void 0:E.call(window,x)));return _P(()=>{y.current=!0,b&&(T.current=!0,window.MotionIsMounted=!0,b.updateFeatures(),b.scheduleRenderMicrotask(),S.current&&b.animationState&&b.animationState.animateChanges())}),C.useEffect(()=>{b&&(!S.current&&b.animationState&&b.animationState.animateChanges(),S.current&&(queueMicrotask(()=>{var A;(A=window.MotionHandoffMarkAsComplete)==null||A.call(window,x)}),S.current=!1),b.enteringChildren=void 0)}),b}function VB(t,e,n,r){const{layoutId:i,layout:s,drag:a,dragConstraints:l,layoutScroll:c,layoutRoot:d,layoutCrossfade:f}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:XC(t.parent)),t.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!a||l&&So(l),visualElement:t,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:f,layoutScroll:c,layoutRoot:d})}function XC(t){if(t)return t.options.allowProjection!==!1?t.projection:XC(t.parent)}function Rp(t,{forwardMotionProps:e=!1,type:n}={},r,i){r&&SB(r);const s=n?n==="svg":Hv(t),a=s?zB:BB;function l(d,f){let p;const g={...C.useContext(Uv),...d,layoutId:HB(d)},{isStatic:y}=g,b=AB(d),_=a(d,y);if(!y&&wP){WB();const T=qB(g);p=T.MeasureLayout,b.visualElement=UB(t,_,g,i,T.ProjectionNode,s)}return v.jsxs(Yh.Provider,{value:b,children:[p&&b.visualElement?v.jsx(p,{visualElement:b.visualElement,...g}):null,jB(t,d,$B(_,b.visualElement,f),_,y,e,s)]})}l.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const c=C.forwardRef(l);return c[FB]=t,c}function HB({layoutId:t}){const e=C.useContext(pv).id;return e&&t!==void 0?e+"-"+t:t}function WB(t,e){C.useContext(WC).strict}function qB(t){const e=qC(),{drag:n,layout:r}=e;if(!n&&!r)return{};const i={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(t)||r!=null&&r.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function GB(t,e){if(typeof Proxy>"u")return Rp;const n=new Map,r=(s,a)=>Rp(s,a,t,e),i=(s,a)=>r(s,a);return new Proxy(i,{get:(s,a)=>a==="create"?r:(n.has(a)||n.set(a,Rp(a,void 0,t,e)),n.get(a))})}const ZB=(t,e)=>e.isSVG??Hv(t)?new P4(e):new _4(e,{allowProjection:t!==C.Fragment});class KB extends hs{constructor(e){super(e),e.animationState||(e.animationState=L4(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Kh(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)==null||e.call(this)}}let JB=0;class YB extends hs{constructor(){super(...arguments),this.id=JB++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>{n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const XB={animation:{Feature:KB},exit:{Feature:YB}};function Vu(t){return{point:{x:t.pageX,y:t.pageY}}}const QB=t=>e=>Iv(e)&&t(e,Vu(e));function Ul(t,e,n,r){return wu(t,e,QB(n),r)}const QC=({current:t})=>t?t.ownerDocument.defaultView:null,ex=(t,e)=>Math.abs(t-e);function ez(t,e){const n=ex(t.x,e.x),r=ex(t.y,e.y);return Math.sqrt(n**2+r**2)}const tx=new Set(["auto","scroll"]);class eE{constructor(e,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:s=!1,distanceThreshold:a=3,element:l}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=y=>{this.handleScroll(y.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=Op(this.lastMoveEventInfo,this.history),b=this.startEvent!==null,_=ez(y.offset,{x:0,y:0})>=this.distanceThreshold;if(!b&&!_)return;const{point:T}=y,{timestamp:x}=St;this.history.push({...T,timestamp:x});const{onStart:S,onMove:k}=this.handlers;b||(S&&S(this.lastMoveEvent,y),this.startEvent=this.lastMoveEvent),k&&k(this.lastMoveEvent,y)},this.handlePointerMove=(y,b)=>{this.lastMoveEvent=y,this.lastMoveEventInfo=Lp(b,this.transformPagePoint),$e.update(this.updatePoint,!0)},this.handlePointerUp=(y,b)=>{this.end();const{onEnd:_,onSessionEnd:T,resumeAnimation:x}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=Op(y.type==="pointercancel"?this.lastMoveEventInfo:Lp(b,this.transformPagePoint),this.history);this.startEvent&&_&&_(y,S),T&&T(y,S)},!Iv(e))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=a,this.contextWindow=i||window;const c=Vu(e),d=Lp(c,this.transformPagePoint),{point:f}=d,{timestamp:p}=St;this.history=[{...f,timestamp:p}];const{onSessionStart:g}=n;g&&g(e,Op(d,this.history)),this.removeListeners=Fu(Ul(this.contextWindow,"pointermove",this.handlePointerMove),Ul(this.contextWindow,"pointerup",this.handlePointerUp),Ul(this.contextWindow,"pointercancel",this.handlePointerUp)),l&&this.startScrollTracking(l)}startScrollTracking(e){let n=e.parentElement;for(;n;){const r=getComputedStyle(n);(tx.has(r.overflowX)||tx.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){const n=this.scrollPositions.get(e);if(!n)return;const r=e===window,i=r?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},s={x:i.x-n.x,y:i.y-n.y};s.x===0&&s.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(e,i),$e.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),rs(this.updatePoint)}}function Lp(t,e){return e?{point:e(t.point)}:t}function nx(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Op({point:t},e){return{point:t,delta:nx(t,tE(e)),offset:nx(t,tz(e)),velocity:nz(e,.1)}}function tz(t){return t[0]}function tE(t){return t[t.length-1]}function nz(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const i=tE(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>Ln(e)));)n--;if(!r)return{x:0,y:0};r===t[0]&&t.length>2&&i.timestamp-r.timestamp>Ln(e)*2&&(r=t[1]);const s=En(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const a={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function rz(t,{min:e,max:n},r){return e!==void 0&&t<e?t=r?Xe(e,t,r.min):Math.max(t,e):n!==void 0&&t>n&&(t=r?Xe(n,t,r.max):Math.min(t,n)),t}function rx(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function iz(t,{top:e,left:n,bottom:r,right:i}){return{x:rx(t.x,n,i),y:rx(t.y,e,r)}}function ix(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}function sz(t,e){return{x:ix(t.x,e.x),y:ix(t.y,e.y)}}function oz(t,e){let n=.5;const r=Vt(t),i=Vt(e);return i>r?n=mu(e.min,e.max-r,t.min):r>i&&(n=mu(t.min,t.max-i,e.min)),Nr(0,1,n)}function az(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Lg=.35;function lz(t=Lg){return t===!1?t=0:t===!0&&(t=Lg),{x:sx(t,"left","right"),y:sx(t,"top","bottom")}}function sx(t,e,n){return{min:ox(t,e),max:ox(t,n)}}function ox(t,e){return typeof t=="number"?t:t[e]||0}const uz=new WeakMap;class cz{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=pt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const s=p=>{n&&this.snapToCursor(Vu(p).point),this.stopAnimation()},a=(p,g)=>{const{drag:y,dragPropagation:b,onDragStart:_}=this.getProps();if(y&&!b&&(this.openDragLock&&this.openDragLock(),this.openDragLock=z5(y),!this.openDragLock))return;this.latestPointerEvent=p,this.latestPanInfo=g,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),wr(x=>{let S=this.getAxisMotionValue(x).get()||0;if(Lr.test(S)){const{projection:k}=this.visualElement;if(k&&k.layout){const E=k.layout.layoutBox[x];E&&(S=Vt(E)*(parseFloat(S)/100))}}this.originPoint[x]=S}),_&&$e.update(()=>_(p,g),!1,!0),kg(this.visualElement,"transform");const{animationState:T}=this.visualElement;T&&T.setActive("whileDrag",!0)},l=(p,g)=>{this.latestPointerEvent=p,this.latestPanInfo=g;const{dragPropagation:y,dragDirectionLock:b,onDirectionLock:_,onDrag:T}=this.getProps();if(!y&&!this.openDragLock)return;const{offset:x}=g;if(b&&this.currentDirection===null){this.currentDirection=hz(x),this.currentDirection!==null&&_&&_(this.currentDirection);return}this.updateAxis("x",g.point,x),this.updateAxis("y",g.point,x),this.visualElement.render(),T&&$e.update(()=>T(p,g),!1,!0)},c=(p,g)=>{this.latestPointerEvent=p,this.latestPanInfo=g,this.stop(p,g),this.latestPointerEvent=null,this.latestPanInfo=null},d=()=>{const{dragSnapToOrigin:p}=this.getProps();(p||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:f}=this.getProps();this.panSession=new eE(e,{onSessionStart:s,onStart:a,onMove:l,onSessionEnd:c,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:f,distanceThreshold:r,contextWindow:QC(this.visualElement),element:this.visualElement.current})}stop(e,n){const r=e||this.latestPointerEvent,i=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!i||!r)return;const{velocity:a}=i;this.startAnimation(a);const{onDragEnd:l}=this.getProps();l&&$e.postRender(()=>l(r,i))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,n,r){const{drag:i}=this.getProps();if(!r||!$c(e,i,this.currentDirection))return;const s=this.getAxisMotionValue(e);let a=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(a=rz(a,this.constraints[e],this.elastic[e])),s.set(a)}resolveConstraints(){var s;const{dragConstraints:e,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(s=this.visualElement.projection)==null?void 0:s.layout,i=this.constraints;e&&So(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=iz(r.layoutBox,e):this.constraints=!1,this.elastic=lz(n),i!==this.constraints&&!So(e)&&r&&this.constraints&&!this.hasMutatedConstraints&&wr(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=az(r.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!So(e))return!1;const r=e.current;xa(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=p4(r,i.root,this.visualElement.getTransformPagePoint());let a=sz(i.layout.layoutBox,s);if(n){const l=n(d4(a));this.hasMutatedConstraints=!!l,l&&(a=xC(l))}return a}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:a,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},d=wr(f=>{if(!$c(f,n,this.currentDirection))return;let p=c&&c[f]||{};a&&(p={min:0,max:0});const g=i?200:1e6,y=i?40:1e7,b={type:"inertia",velocity:r?e[f]:0,bounceStiffness:g,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...s,...p};return this.startAxisValueAnimation(f,b)});return Promise.all(d).then(l)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return kg(this.visualElement,e),r.start(Lv(e,r,0,n,this.visualElement,!1))}stopAnimation(){wr(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){wr(n=>{const{drag:r}=this.getProps();if(!$c(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:l}=i.layout.layoutBox[n],c=s.get()||0;s.set(e[n]-Xe(a,l,.5)+c)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!So(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};wr(a=>{const l=this.getAxisMotionValue(a);if(l&&this.constraints!==!1){const c=l.get();i[a]=oz({min:c,max:c},this.constraints[a])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),wr(a=>{if(!$c(a,e,null))return;const l=this.getAxisMotionValue(a),{min:c,max:d}=this.constraints[a];l.set(Xe(c,d,i[a]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;uz.set(this.visualElement,this);const e=this.visualElement.current,n=Ul(e,"pointerdown",d=>{const{drag:f,dragListener:p=!0}=this.getProps(),g=d.target,y=g!==e&&W5(g);f&&p&&!y&&this.start(d)});let r;const i=()=>{const{dragConstraints:d}=this.getProps();So(d)&&d.current&&(this.constraints=this.resolveRefConstraints(),r||(r=dz(e,d.current,()=>this.scalePositionWithinConstraints())))},{projection:s}=this.visualElement,a=s.addEventListener("measure",i);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),$e.read(i);const l=wu(window,"resize",()=>this.scalePositionWithinConstraints()),c=s.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f})=>{this.isDragging&&f&&(wr(p=>{const g=this.getAxisMotionValue(p);g&&(this.originPoint[p]+=d[p].translate,g.set(g.get()+d[p].translate))}),this.visualElement.render())});return()=>{l(),n(),a(),c&&c(),r&&r()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:a=Lg,dragMomentum:l=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:a,dragMomentum:l}}}function ax(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function dz(t,e,n){const r=pb(t,ax(n)),i=pb(e,ax(n));return()=>{r(),i()}}function $c(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function hz(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class fz extends hs{constructor(e){super(e),this.removeGroupControls=Rn,this.removeListeners=Rn,this.controls=new cz(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Rn}update(){const{dragControls:e}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};e!==n&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Mp=t=>(e,n)=>{t&&$e.update(()=>t(e,n),!1,!0)};class pz extends hs{constructor(){super(...arguments),this.removePointerDownListener=Rn}onPointerDown(e){this.session=new eE(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:QC(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Mp(e),onStart:Mp(n),onMove:Mp(r),onEnd:(s,a)=>{delete this.session,i&&$e.postRender(()=>i(s,a))}}}mount(){this.removePointerDownListener=Ul(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Np=!1;class mz extends C.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=e;s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),Np&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),wd.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,{projection:a}=r;return a&&(a.isPresent=s,e.layoutDependency!==n&&a.setOptions({...a.options,layoutDependency:n}),Np=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==s?a.willUpdate():this.safeToRemove(),e.isPresent!==s&&(s?a.promote():a.relegate()||$e.postRender(()=>{const l=a.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),jv.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=e;Np=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function nE(t){const[e,n]=HC(),r=C.useContext(pv);return v.jsx(mz,{...t,layoutGroup:r,switchLayoutGroup:C.useContext(YC),isPresent:e,safeToRemove:n})}const gz={pan:{Feature:pz},drag:{Feature:fz,ProjectionNode:VC,MeasureLayout:nE}};function lx(t,e,n){const{props:r}=t;t.animationState&&r.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&$e.postRender(()=>s(e,Vu(e)))}class yz extends hs{mount(){const{current:e}=this.node;e&&(this.unmount=$5(e,(n,r)=>(lx(this.node,r,"Start"),i=>lx(this.node,i,"End"))))}unmount(){}}class vz extends hs{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Fu(wu(this.node.current,"focus",()=>this.onFocus()),wu(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function ux(t,e,n){const{props:r}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&r.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&$e.postRender(()=>s(e,Vu(e)))}class wz extends hs{mount(){const{current:e}=this.node;if(!e)return;
227const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=G5(e,(i,s)=>(ux(this.node,s,"Start"),(a,{success:l})=>ux(this.node,a,l?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const Og=new WeakMap,jp=new WeakMap,_z=t=>{const e=Og.get(t.target);e&&e(t)},bz=t=>{t.forEach(_z)};function xz({root:t,...e}){const n=t||document;jp.has(n)||jp.set(n,{});const r=jp.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver(bz,{root:t,...e})),r[i]}function kz(t,e,n){const r=xz(e);return Og.set(t,n),r.observe(t),()=>{Og.delete(t),r.unobserve(t)}}const Sz={some:0,all:1};class Tz extends hs{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=e,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Sz[i]},l=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,s&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:f,onViewportLeave:p}=this.node.getProps(),g=d?f:p;g&&g(c)};return kz(this.node.current,a,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Pz(e,n))&&this.startObserver()}unmount(){}}function Pz({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Cz={inView:{Feature:Tz},tap:{Feature:wz},focus:{Feature:vz},hover:{Feature:yz}},Ez={layout:{ProjectionNode:VC,MeasureLayout:nE}},Az={...XB,...Cz,...gz,...Ez},Pe=GB(Az,ZB),rE="/assets/tri-peaks-logo-DsY1Mxuw.webp",iE=[{label:"Logan County",href:"/county/logan"},{label:"Johnson County",href:"/county/johnson"},{label:"Pope County",href:"/county/pope"},{label:"Yell County",href:"/county/yell"},{label:"Conway County",href:"/county/conway"},{label:"Perry County",href:"/county/perry"}],sE=[{label:"Bicycling",href:"/vibe/bicycling"},{label:"Trails & Hiking",href:"/vibe/trails-hiking"},{label:"Lakes & Rivers",href:"/vibe/lakes-rivers"},{label:"Peak Fishing",href:"/vibe/peak-fishing"},{label:"Eats & Drinks",href:"/vibe/eats-drinks"},{label:"Festivals & Events",href:"/vibe/festivals-events"},{label:"Historic Sites",href:"/vibe/historic-sites"},{label:"Scenic Drives",href:"/vibe/scenic-drives"},{label:"SXS Riding",href:"/vibe/sxs-riding"}],oE=[{label:"Petit Jean",href:"/park/petit-jean"},{label:"Mount Magazine",href:"/park/mount-magazine"},{label:"Mount Nebo",href:"/park/mount-nebo"},{label:"Lake Dardanelle",href:"/park/lake-dardanelle"}],aE=[{label:"Waterfalls",href:"/waterfalls"},{label:"Itineraries",href:"/itineraries"},{label:"Off the Eaten Path",href:"/off-the-eaten-path"}],lE=[{label:"Map",href:"/#explore-region",isAnchor:!0},{label:"Events",href:"/#events",isAnchor:!0},{label:"Guidebook",href:"/guidebook"},{label:"About",href:"/about"}],Rz=()=>{const[t,e]=C.useState(!1),n=C.useRef(),r=()=>{clearTimeout(n.current),e(!0)},i=()=>{n.current=setTimeout(()=>e(!1),150)};return v.jsxs("div",{className:"relative",onMouseEnter:r,onMouseLeave:i,children:[v.jsxs("button",{className:"font-body text-sm font-medium text-muted-foreground hover:text-primary transition-colors inline-flex items-center gap-1",onClick:()=>e(!t),children:["Explore",v.jsx(Jy,{size:14,className:`transition-transform ${t?"rotate-180":""}`})]}),v.jsx($a,{children:t&&v.jsx(Pe.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},exit:{opacity:0,y:6},transition:{duration:.15},className:"absolute top-full left-1/2 -translate-x-1/2 mt-3 bg-background border border-border rounded-xl shadow-xl z-50 p-6",style:{width:"680px"},children:v.jsxs("div",{className:"grid grid-cols-4 gap-6",children:[v.jsxs("div",{children:[v.jsx("h4",{className:"font-heading text-xs font-semibold uppercase tracking-wider text-primary mb-3",children:"Counties"}),v.jsx("div",{className:"flex flex-col gap-1",children:iE.map(s=>v.jsx(We,{to:s.href,onClick:()=>e(!1),className:"font-body text-sm text-foreground hover:text-primary transition-colors py-1",children:s.label},s.href))})]}),v.jsxs("div",{children:[v.jsx("h4",{className:"font-heading text-xs font-semibold uppercase tracking-wider text-primary mb-3",children:"Things to Do"}),v.jsx("div",{className:"flex flex-col gap-1",children:sE.map(s=>v.jsx(We,{to:s.href,onClick:()=>e(!1),className:"font-body text-sm text-foreground hover:text-primary transition-colors py-1",children:s.label},s.href))})]}),v.jsxs("div",{children:[v.jsx("h4",{className:"font-heading text-xs font-semibold uppercase tracking-wider text-primary mb-3",children:"State Parks"}),v.jsx("div",{className:"flex flex-col gap-1",children:oE.map(s=>v.jsx(We,{to:s.href,onClick:()=>e(!1),className:"font-body text-sm text-foreground hover:text-primary transition-colors py-1",children:s.label},s.href))})]}),v.jsxs("div",{children:[v.jsx("h4",{className:"font-heading text-xs font-semibold uppercase tracking-wider text-primary mb-3",children:"Featured"}),v.jsx("div",{className:"flex flex-col gap-1",children:aE.map(s=>v.jsx(We,{to:s.href,onClick:()=>e(!1),className:"font-body text-sm text-foreground hover:text-primary transition-colors py-1",children:s.label},s.href))})]})]})})})]})},Lz=()=>{const[t,e]=C.useState(!1),n=C.useRef(),r=()=>{clearTimeout(n.current),e(!0)},i=()=>{n.current=setTimeout(()=>e(!1),150)};return v.jsxs("div",{className:"relative",onMouseEnter:r,onMouseLeave:i,children:[v.jsxs("button",{className:"font-body text-sm font-medium text-muted-foreground hover:text-primary transition-colors inline-flex items-center gap-1",onClick:()=>e(!t),children:["More",v.jsx(Jy,{size:14,className:`transition-transform ${t?"rotate-180":""}`})]}),v.jsx($a,{children:t&&v.jsx(Pe.div,{initial:{opacity:0,y:6}
227,animate:{opacity:1,y:0},exit:{opacity:0,y:6},transition:{duration:.15},className:"absolute top-full right-0 mt-2 w-44 bg-background border border-border rounded-lg shadow-lg py-2 z-50",children:lE.map(s=>s.isAnchor?v.jsx("a",{href:s.href,onClick:()=>e(!1),className:"block px-4 py-2 font-body text-sm text-foreground hover:bg-muted hover:text-primary transition-colors",children:s.label},s.href):v.jsx(We,{to:s.href,onClick:()=>e(!1),className:"block px-4 py-2 font-body text-sm text-foreground hover:bg-muted hover:text-primary transition-colors",children:s.label},s.href))})})]})},vl=({label:t,items:e,onClose:n})=>{const[r,i]=C.useState(!1);return v.jsxs("div",{children:[v.jsxs("button",{onClick:()=>i(!r),className:"w-full flex items-center justify-between font-body text-base text-foreground py-2",children:[t,v.jsx(Jy,{size:16,className:`transition-transform ${r?"rotate-180":""}`})]}),v.jsx($a,{children:r&&v.jsx(Pe.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},className:"overflow-hidden pl-4",children:e.map(s=>s.isAnchor?v.jsx("a",{href:s.href,onClick:n,className:"block font-body text-sm text-muted-foreground py-1.5 hover:text-primary transition-colors",children:s.label},s.href):v.jsx(We,{to:s.href,onClick:n,className:"block font-body text-sm text-muted-foreground py-1.5 hover:text-primary transition-colors",children:s.label},s.href))})})]})},Oz=()=>{const[t,e]=C.useState(!1),n=ds();return C.useEffect(()=>{e(!1)},[n.pathname]),v.jsxs("header",{className:"fixed top-0 left-0 right-0 z-[1000] bg-background/80 backdrop-blur-md border-b border-border/50",children:[v.jsxs("div",{className:"container mx-auto flex items-center justify-between py-4 px-4 lg:px-8",children:[v.jsx(We,{to:"/",onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),className:"flex items-center gap-2",children:v.jsx("img",{src:rE,alt:"Tri-Peaks Tourism",className:"h-12 w-auto"})}),v.jsxs("nav",{className:"hidden md:flex items-center gap-6 absolute left-1/2 -translate-x-1/2",children:[v.jsx(We,{to:"/",className:"font-body text-sm font-medium text-muted-foreground hover:text-primary transition-colors",children:"Home"}),v.jsx(Rz,{}),v.jsx(Lz,{})]}),v.jsx("a",{href:"#request-guide",className:"hidden md:inline-flex items-center justify-center rounded-md bg-primary px-5 py-2.5 text-sm font-semibold text-primary-foreground hover:bg-forest-light transition-colors font-body",children:"Get Your Guide"}),v.jsx("button",{onClick:()=>e(!t),className:"md:hidden text-foreground","aria-label":"Toggle navigation",children:t?v.jsx(Yy,{size:24}):v.jsx(sM,{size:24})})]}),v.jsx($a,{children:t&&v.jsx(Pe.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"md:hidden bg-background border-t border-border overflow-hidden",children:v.jsxs("nav",{className:"flex flex-col p-4 gap-1",children:[v.jsx(We,{to:"/",onClick:()=>e(!1),className:"font-body text-base text-foreground py-2",children:"Home"}),v.jsx(vl,{label:"Counties",items:iE,onClose:()=>e(!1)}),v.jsx(vl,{label:"Things to Do",items:sE,onClose:()=>e(!1)}),v.jsx(vl,{label:"State Parks",items:oE,onClose:()=>e(!1)}),v.jsx(vl,{label:"Featured",items:aE,onClose:()=>e(!1)}),v.jsx(vl,{label:"More",items:lE,onClose:()=>e(!1)}),v.jsx("a",{href:"#request-guide",onClick:()=>e(!1),className:"inline-flex items-center justify-center rounded-md bg-primary px-5 py-3 text-sm font-semibold text-primary-foreground font-body mt-3",children:"Get Your Guide"})]})})})]})},Mz="/assets/hero-flatside-pinnacle-sunset-ox_CP6kl.jpg",Nz="/assets/park-petit-jean-hero-B7IJWjLq.jpg",jz="/assets/park-mount-magazine-hero-Ce73jS6G.jpg",Iz="/assets/mount-nebo-park-ak7aJLMK.jpg",Dz="/assets/lake-dardanelle-park-C0PZTEtA.jpg",Ip=[{src:Mz,alt:"Sunset over Flatside Pinnacle Wilderness in the Ouachita National Forest"},{src:Nz,alt:"Cedar Falls at Petit Jean State Park"},{src:jz,alt:"Hiker at overlook on Mount Magazine, Arkansas' highest point"},{src:Iz,alt:"Valley view from Mount Nebo State Park"},{src:Dz,alt:"Lake Dardanelle State Park on the Arkansas River"}],Bz=()=>{const[t,e]=C.useState(0);return C.useEffect(()=>{const n=setInterval(()=>{e(r=>(r+1)%Ip.length)},18e3);return()=>clearInterval(n)},[]),v.jsxs("section",{className:"relative min-h-screen flex items-center justify-center overflow-hidden",children:[v.jsx($a,{children:v.jsx(Pe.
227img,{src:Ip[t].src,alt:Ip[t].alt,width:1920,height:1080,className:"absolute inset-0 w-full h-full object-cover",loading:t===0?"eager":"lazy",decoding:"async",fetchpriority:t===0?"high":"auto",initial:{opacity:t===0?1:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:t===0?0:3.5,ease:"easeInOut"}},t)}),v.jsx("div",{className:"absolute inset-0 hero-overlay"}),v.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(ellipse_at_center,hsla(200,18%,6%,0.1)_0%,hsla(200,18%,6%,0.4)_100%)]"}),v.jsxs("div",{className:"relative z-10 text-center px-4 max-w-4xl mx-auto",children:[v.jsx(Pe.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.2},className:"font-body text-sm md:text-base uppercase tracking-[0.2em] text-cream/80 mb-4",children:"Arkansas River Valley"}),v.jsx(Pe.h1,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.7,delay:.4},className:"font-display text-4xl sm:text-5xl md:text-7xl font-bold text-cream leading-tight mb-6 text-balance",children:"Four State Parks, Two National Forests, Endless Adventures"}),v.jsx(Pe.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.6},className:"font-body text-lg md:text-xl text-cream/90 mb-8 max-w-2xl mx-auto",children:"Explore six counties in the Arkansas River Valley — just west of Little Rock, nestled between the Ouachita and Ozark mountain ranges."}),v.jsxs(Pe.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.8},className:"flex flex-col sm:flex-row items-center justify-center gap-3",children:[v.jsx("a",{href:"#request-guide",className:"inline-flex items-center justify-center rounded-md bg-accent px-8 py-4 text-base font-bold text-accent-foreground hover:brightness-110 transition-all shadow-lg font-body",children:"Request Your Free Guide"}),v.jsxs(We,{to:"/guidebook",className:"inline-flex items-center gap-2 rounded-md border-2 border-cream/40 px-8 py-4 text-base font-bold text-cream hover:bg-cream/10 transition-all font-body",children:[v.jsx(Oa,{size:18}),"Read Online"]})]}),v.jsx(Pe.p,{initial:{opacity:0}
227,animate:{opacity:1},transition:{duration:.6,delay:1},className:"font-body text-sm text-cream/70 mt-3",children:"Get the full guide — parks, trails, events — mailed free to your door"})]}),v.jsx(Pe.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:1.5},className:"absolute bottom-8 left-1/2 -translate-x-1/2",children:v.jsx(Pe.div,{animate:{y:[0,8,0]},transition:{duration:2,repeat:1/0},className:"w-6 h-10 rounded-full border-2 border-cream/50 flex items-start justify-center p-1.5",children:v.jsx("div",{className:"w-1.5 h-2.5 rounded-full bg-cream/70"})})})]})},zz=()=>v.jsx("section",{className:"py-20 md:py-28 bg-background",children:v.jsxs("div",{className:"container mx-auto px-4 lg:px-8 max-w-4xl text-center",children:[v.jsx(Pe.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.6},className:"font-display text-3xl md:text-4xl font-bold text-foreground mb-6",children:"Adventures for Every Pace"}),v.jsxs(Pe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.6,delay:.15},className:"space-y-4 font-body text-lg text-muted-foreground leading-relaxed",children:[v.jsx("p",{children:"With four state parks, two national forests and some of The Natural State's most popular attractions, there's plenty to explore in this six-county area. Just west of Little Rock, the Arkansas River Valley Tri-Peaks area is nestled between the Ouachita and Ozark mountain ranges and is home to Mount Nebo, Petit Jean Mountain and Mount Magazine, the state's highest peak."}),v.jsx("p",{children:"You'll find unmatched trails for hiking and biking, sites for rock climbing, and waterways for canoeing, kayaking or boating. Lake Dardanelle, the region's largest lake, awaits anglers and recreational enthusiasts. When you're ready to take a break, check out events like Balloons Over Russellville and small-town festivals."})]}),v.jsx(Pe.p,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.6,delay:.3},className:"font-body text-base text-stone mt-6 italic",children:"Trails and parks for every pace — including accessible overlooks and fishing piers."}),v.jsx(Pe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.6,delay:.4},className:"mt-8",children:v.jsxs(We,{to:"/guidebook",className:"inline-flex items-center gap-2 rounded-md bg-primary px-6 py-3 text-sm font-bold text-primary-foreground hover:bg-primary/90 transition-all font-body",children:[v.jsx(Oa,{size:18}),"Browse the Guidebook"]})})]})}),Fz="/assets/petit-jean-park-jwoK-Bk6.jpg",$z="/assets/mount-magazine-park-BZUNFXkn.jpg",Uz="/assets/mount-nebo-park-ak7aJLMK.jpg",Vz="/assets/lake-dardanelle-park-C0PZTEtA.jpg",Hz=[{name:"Petit Jean State Park",slug:"petit-jean",image:Fz,description:"Arkansas' first state park. Scenic views, Cedar Falls (90-foot waterfall), CCC overlook, and Mather Lodge.",highlight:"USA Today No. 1 for camping and RV",alt:"Cedar Falls waterfall at Petit Jean State Park"},{name:"Mount Magazine State Park",slug:"mount-magazine",image:$z,description:"Arkansas' highest point at 2,753 ft. Lodge, rock climbing, hang gliding, mountain biking, and ATV trails.",highlight:"Signal Hill Trail & Cameron Bluff Overlook",alt:"Summit vista at Mount Magazine State Park at sunset"},{name:"Mount Nebo State Park",slug:"mount-nebo",image:Uz,description:"40+ miles of hiking and mountain biking, including the 25-mile Monument Trail system. Sunsets at Bench Overlook.",highlight:"World-class MTB on Monument Trails",alt:"Hikers silhouetted at sunset on Mount Nebo ridge"},{name:"Lake Dardanelle State Park",slug:"lake-dardanelle",image:Vz,description:"Premier bass fishing with ~50 tournaments/year, Visitor Center, aquariums, kayak & paddleboard rental.",highlight:"Audubon Important Bird Area",alt:"Calm lake at dawn at Lake Dardanelle State Park"}],Wz=()=>v.jsx("section",{id:"state-parks",className:"py-20 md:py-28 section-alt",children:v.jsxs("div",{className:"container mx-auto px-4 lg:px-8",children:[v.jsxs(Pe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.6},className:"text-center mb-14",children:[v.jsx("h2",{className:"font-display text-3xl md:text-4xl font-bold text-foreground mb-3",children:"Three Peaks, Four Parks"}),v.jsx("p",{className:"font-body text-lg text-muted-foreground max-w-xl mx-auto",children:"Each park has 
227its own personality. Pick your adventure — or visit them all."})]}),v.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 lg:gap-8",children:Hz.map((t,e)=>v.jsx(Pe.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-50px"},transition:{duration:.5,delay:e*.1},children:v.jsxs(We,{to:`/park/${t.slug}`,className:"group relative rounded-lg overflow-hidden bg-card shadow-md hover:shadow-xl transition-shadow block",children:[v.jsx("div",{className:"aspect-[4/3] overflow-hidden",children:v.jsx("img",{src:t.image,alt:t.alt,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-700",loading:"lazy"})}),v.jsxs("div",{className:"p-6",children:[v.jsx("span",{className:"inline-block font-body text-xs font-semibold uppercase tracking-wider text-accent mb-2",children:t.highlight}),v.jsx("h3",{className:"font-display text-xl font-bold text-foreground mb-2",children:t.name}),v.jsx("p",{className:"font-body text-muted-foreground text-sm leading-relaxed mb-3",children:t.description}),v.jsxs("span",{className:"inline-flex items-center gap-1 font-body text-sm font-semibold text-primary",children:["Explore Park ",v.jsx(XO,{size:16})]})]})]})},t.name))})]})});var Mg={exports:{}};/* @preserve
228 * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
229 * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
230 */(function(t,e){(function(n,r){r(e)})(HA,function(n){var r="1.9.4";function i(o){var u,h,m,w;for(h=1,m=arguments.length;h<m;h++){w=arguments[h];for(u in w)o[u]=w[u]}return o}var s=Object.create||function(){function o(){}return function(u){return o.prototype=u,new o}}();function a(o,u){var h=Array.prototype.slice;if(o.bind)return o.bind.apply(o,h.call(arguments,1));var m=h.call(arguments,2);return function(){return o.apply(u,m.length?m.concat(h.call(arguments)):arguments)}}var l=0;function c(o){return"_leaflet_id"in o||(o._leaflet_id=++l),o._leaflet_id}function d(o,u,h){var m,w,P,R;return R=function(){m=!1,w&&(P.apply(h,w),w=!1)},P=function(){m?w=arguments:(o.apply(h,arguments),setTimeout(R,u),m=!0)},P}function f(o,u,h){var m=u[1],w=u[0],P=m-w;return o===m&&h?o:((o-w)%P+P)%P+w}function p(){return!1}function g(o,u){if(u===!1)return o;var h=Math.pow(10,u===void 0?6:u);return Math.round(o*h)/h}function y(o){return o.trim?o.trim():o.replace(/^\s+|\s+$/g,"")}function b(o){return y(o).split(/\s+/)}function _(o,u){Object.prototype.hasOwnProperty.call(o,"options")||(o.options=o.options?s(o.options):{});for(var h in u)o.options[h]=u[h];return o.options}function T(o,u,h){var m=[];for(var w in o)m.push(encodeURIComponent(h?w.toUpperCase():w)+"="+encodeURIComponent(o[w]));return(!u||u.indexOf("?")===-1?"?":"&")+m.join("&")}var x=/\{ *([\w_ -]+) *\}/g;function S(o,u){return o.replace(x,function(h,m){var w=u[m];if(w===void 0)throw new Error("No value provided for variable "+h);return typeof w=="function"&&(w=w(u)),w})}var k=Array.isArray||function(o){return Object.prototype.toString.call(o)==="[object Array]"};function E(o,u){for(var h=0;h<o.length;h++)if(o[h]===u)return h;return-1}var A="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function O(o){return window["webkit"+o]||window["moz"+o]||window["ms"+o]}var M=0;function I(o){var u=+new Date,h=Math.max(0,16-(u-M));return M=u+h,window.setTimeout(o,h)}var B=window.requestAnimationFrame||O("RequestAnimationFrame")||I,H=window.cancelAnimationFrame||O("CancelAnimationFrame")||O("CancelRequestAnimationFrame")||function(o){window.clearTimeout(o)};function J(o,u,h){if(h&&B===I)o.call(u);else return B.call(window,a(o,u))}function Z(o){o&&H.call(window,o)}var ge={__proto__:null,extend:i,create:s,bind:a,get lastId(){return l},stamp:c,throttle:d,wrapNum:f,falseFn:p,formatNum:g,trim:y,splitWords:b,setOptions:_,getParamString:T,template:S,isArray:k,indexOf:E,emptyImageUrl:A,requestFn:B,cancelFn:H,requestAnimFrame:J,cancelAnimFrame:Z};function G(){}G.extend=function(o){var u=function(){_(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},h=u.__super__=this.prototype,m=s(h);m.constructor=u,u.prototype=m;for(var w in this)Object.prototype.hasOwnProperty.call(this,w)&&w!=="prototype"&&w!=="__super__"&&(u[w]=this[w]);return o.statics&&i(u,o.statics),o.includes&&(be(o.includes),i.apply(null,[m].concat(o.includes))),i(m,o),delete m.statics,delete m.includes,m.options&&(m.options=h.options?s(h.options):{},i(m.options,o.options)),m._initHooks=[],m.callInitHooks=function(){if(!this._initHooksCalled){h.callInitHooks&&h.callInitHooks.call(this),this._initHooksCalled=!0;for(var P=0,R=m._initHooks.length;P<R;P++)m._initHooks[P].call(this)}},u},G.include=function(o){var u=this.prototype.options;return i(this.prototype,o),o.options&&(this.prototype.options=u,this.mergeOptions(o.options)),this},G.mergeOptions=function(o){return i(this.prototype.options,o),this},G.addInitHook=function(o){var u=Array.prototype.slice.call(arguments,1
230),h=typeof o=="function"?o:function(){this[o].apply(this,u)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(h),this};function be(o){if(!(typeof L>"u"||!L||!L.Mixin)){o=k(o)?o:[o];for(var u=0;u<o.length;u++)o[u]===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 oe={on:function(o,u,h){if(typeof o=="object")for(var m in o)this._on(m,o[m],u);else{o=b(o);for(var w=0,P=o.length;w<P;w++)this._on(o[w],u,h)}return this},off:function(o,u,h){if(!arguments.length)delete this._events;else if(typeof o=="object")for(var m in o)this._off(m,o[m],u);else{o=b(o);for(var w=arguments.length===1,P=0,R=o.length;P<R;P++)w?this._off(o[P]):this._off(o[P],u,h)}return this},_on:function(o,u,h,m){if(typeof u!="function"){console.warn("wrong listener type: "+typeof u);return}if(this._listens(o,u,h)===!1){h===this&&(h=void 0);var w={fn:u,ctx:h};m&&(w.once=!0),this._events=this._events||{},this._events[o]=this._events[o]||[],this._events[o].push(w)}},_off:function(o,u,h){var m,w,P;if(this._events&&(m=this._events[o],!!m)){if(arguments.length===1){if(this._firingCount)for(w=0,P=m.length;w<P;w++)m[w].fn=p;delete this._events[o];return}if(typeof u!="function"){console.warn("wrong listener type: "+typeof u);return}var R=this._listens(o,u,h);if(R!==!1){var j=m[R];this._firingCount&&(j.fn=p,this._events[o]=m=m.slice()),m.splice(R,1)}}},fire:function(o,u,h){if(!this.listens(o,h))return this;var m=i({},u,{type:o,target:this,sourceTarget:u&&u.sourceTarget||this});if(this._events){var w=this._events[o];if(w){this._firingCount=this._firingCount+1||1;for(var P=0,R=w.length;P<R;P++){var j=w[P],D=j.fn;j.once&&this.off(o,D,j.ctx),D.call(j.ctx||this,m)}this._firingCount--}}return h&&this._propagateEvent(m),this},listens:function(o,u,h,m){typeof o!="string"&&console.warn('"string" type argument expected');var w=u;typeof u!="function"&&(m=!!u,w=void 0,h=void 0);var P=this._events&&this._events[o];if(P&&P.length&&this._listens(o,w,h)!==!1)return!0;if(m){for(var R in this._eventParents)if(this._eventParents[R].listens(o,u,h,m))return!0}return!1},_listens:function(o,u,h){if(!this._events)return!1;var m=this._events[o]||[];if(!u)return!!m.length;h===this&&(h=void 0);for(var w=0,P=m.length;w<P;w++)if(m[w].fn===u&&m[w].ctx===h)return w;return!1},once:function(o,u,h){if(typeof o=="object")for(var m in o)this._on(m,o[m],u,!0);else{o=b(o);for(var w=0,P=o.length;w<P;w++)this._on(o[w],u,h,!0)}return this},addEventParent:function(o){return this._eventParents=this._eventParents||{},this._eventParents[c(o)]=o,this},removeEventParent:function(o){return this._eventParents&&delete this._eventParents[c(o)],this},_propagateEvent:function(o){for(var u in this._eventParents)this._eventParents[u].fire(o.type,i({layer:o.target,propagatedFrom:o.target},o),!0)}};oe.addEventListener=oe.on,oe.removeEventListener=oe.clearAllEventListeners=oe.off,oe.addOneTimeEventListener=oe.once,oe.fireEvent=oe.fire,oe.hasEventListeners=oe.listens;var te=G.extend(oe);function N(o,u,h){this.x=h?Math.round(o):o,this.y=h?Math.round(u):u}var $=Math.trunc||function(o){return o>0?Math.floor(o):Math.ceil(o)};N.prototype={clone:function(){return new N(this.x,this.y)},add:function(o){return this.clone()._add(z(o))},_add:function(o){return this.x+=o.x,this.y+=o.y,this},subtract:function(o){return this.clone()._subtract(z(o))},_subtract:function(o){return this.x-=o.x,this.y-=o.y,this},divideBy:function(o){return this.clone()._divideBy(o)},_divideBy:function(o){return this.x/=o,this.y/=o,this},multiplyBy:function(o){return this.clone()._multiplyBy(o)},_multiplyBy:function(o){return this.x*=o,this.y*=o,this},scaleBy:function(o){return new N(this.x*o.x,this.y*o.y)},unscaleBy:function(o){return new N(this.x/o.x,this.y/o.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(o){o=z(o);var u=o.x-this.x,h=o.y-this.y;return Math.sqrt(u*u+h*h)},equals:function(o){return o=z(o),o.x===this.x&&o.y===this.y},contains:function(o){return o=z(o),Math.abs(o.x)<=Math.abs(this.x)&&Math.abs(o.y)<=Math.abs(this.y)},toString:function(){return"Point("+g(this.x)+", "+g(this.y)+")"}};function z(o,u,h){return o instanceof N?o:k(o)?new N(o[0],o[1]):o==null?o:typeof o=="object"&&"x"in o&&"y"in o?new N(o.x,o.y):new N(o,u,h)}function Q(o,u){if(o)for(var h=u?[o,u]:o,m=0,w=h.length;m<w;m++)this.extend(h[m])}Q.prototype={extend:function(o){var u,h;if(!o)return this;if(o instanceof N||typeof o[0]=="number"||"x"in o)u=h=z(o);else if(o=ee(o),u=o.min,h=o.max,!u||!h)return this;return!this.min&&!this.max?(this.min=u.clone(),this.max=h.clone()):(this.min.x=Math.min(u.x,this.min.x),this.max.x=Math.max(h.x,this.max.x),this.min.y=Math.min(u.y,this.min.y),this.max.y=Math.max(h.y,this.max.y)),this},getCenter:function(o){return z((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,o)},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(o){var u,h;return typeof o[0]=="number"||o instanceof N?o=z(o):o=ee(o),o instanceof Q?(u=o.min,h=o.max):u=h=o,u.x>=this.min.x&&h.x<=this.max.x&&u.y>=this.min.y&&h.y<=this.max.y},intersects:function(o){o=ee(o);var u=this.min,h=this.max,m=o.min,w=o.max,P=w.x>=u.x&&m.x<=h.x,R=w.y>=u.y&&m.y<=h.y;return P&&R},overlaps:function(o){o=ee(o);var u=this.min,h=this.max,m=o.min,w=o.max,P=w.x>u.x&&m.x<h.x,R=w.y>u.y&&m.y<h.y;return P&&R},isValid:function(){return!!(this.min&&this.max)},pad:function(o){var u=this.min,h=this.max,m=Math.abs(u.x-h.x)*o,w=Math.abs(u.y-h.y)*o;return ee(z(u.x-m,u.y-w),z(h.x+m,h.y+w))},equals:function(o){return o?(o=ee(o),this.min.equals(o.getTopLeft())&&this.max.equals(o.getBottomRight())):!1}};function ee(o,u){return!o||o instanceof Q?o:new Q(o,u)}function ce(o,u){if(o)for(var h=u?[o,u]:o,m=0,w=h.length;m<w;m++)this.extend(h[m])}ce.prototype={extend:function(o){var u=this._southWest,h=this._northEast,m,w;if(o instanceof fe)m=o,w=o;else if(o instanceof ce){if(m=o._southWest,w=o._northEast,!m||!w)return this}else return o?this.extend(de(o)||le(o)):this;return!u&&!h?(this._southWest=new fe(m.lat,m.lng),this._northEast=new fe(w.lat,w.lng)):(u.lat=Math.min(m.lat,u.lat),u.lng=Math.min(m.lng,u.lng),h.lat=Math.max(w.lat,h.lat),h.lng=Math.max(w.lng,h.lng)),this},pad:function(o){var u=this._southWest,h=this._northEast,m=Math.abs(u.lat-h.lat)*o,w=Math.abs(u.lng-h.lng)*o;return new ce(new fe(u.lat-m,u.lng-w),new fe(h.lat+m,h.lng+w))},getCenter:function(){return new fe((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 fe(this.getNorth(),this.getWest())},getSouthEast:function(){return new fe(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat}
230,getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(o){typeof o[0]=="number"||o instanceof fe||"lat"in o?o=de(o):o=le(o);var u=this._southWest,h=this._northEast,m,w;return o instanceof ce?(m=o.getSouthWest(),w=o.getNorthEast()):m=w=o,m.lat>=u.lat&&w.lat<=h.lat&&m.lng>=u.lng&&w.lng<=h.lng},intersects:function(o){o=le(o);var u=this._southWest,h=this._northEast,m=o.getSouthWest(),w=o.getNorthEast(),P=w.lat>=u.lat&&m.lat<=h.lat,R=w.lng>=u.lng&&m.lng<=h.lng;return P&&R},overlaps:function(o){o=le(o);var u=this._southWest,h=this._northEast,m=o.getSouthWest(),w=o.getNorthEast(),P=w.lat>u.lat&&m.lat<h.lat,R=w.lng>u.lng&&m.lng<h.lng;return P&&R},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(o,u){return o?(o=le(o),this._southWest.equals(o.getSouthWest(),u)&&this._northEast.equals(o.getNorthEast(),u)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function le(o,u){return o instanceof ce?o:new ce(o,u)}function fe(o,u,h){if(isNaN(o)||isNaN(u))throw new Error("Invalid LatLng object: ("+o+", "+u+")");this.lat=+o,this.lng=+u,h!==void 0&&(this.alt=+h)}fe.prototype={equals:function(o,u){if(!o)return!1;o=de(o);var h=Math.max(Math.abs(this.lat-o.lat),Math.abs(this.lng-o.lng));return h<=(u===void 0?1e-9:u)},toString:function(o){return"LatLng("+g(this.lat,o)+", "+g(this.lng,o)+")"},distanceTo:function(o){return It.distance(this,de(o))},wrap:function(){return It.wrapLatLng(this)},toBounds:function(o){var u=180*o/40075017,h=u/Math.cos(Math.PI/180*this.lat);return le([this.lat-u,this.lng-h],[this.lat+u,this.lng+h])},clone:function(){return new fe(this.lat,this.lng,this.alt)}};function de(o,u,h){return o instanceof fe?o:k(o)&&typeof o[0]!="object"?o.length===3?new fe(o[0],o[1],o[2]):o.length===2?new fe(o[0],o[1]):null:o==null?o:typeof o=="object"&&"lat"in o?new fe(o.lat,"lng"in o?o.lng:o.lon,o.alt):u===void 0?null:new fe(o,u,h)}var ke={latLngToPoint:function(o,u){var h=this.projection.project(o),m=this.scale(u);return this.transformation._transform(h,m)},pointToLatLng:function(o,u){var h=this.scale(u),m=this.transformation.untransform(o,h);return this.projection.unproject(m)},project:function(o){return this.projection.project(o)},unproject:function(o){return this.projection.unproject(o)},scale:function(o){return 256*Math.pow(2,o)},zoom:function(o){return Math.log(o/256)/Math.LN2},getProjectedBounds:function(o){if(this.infinite)return null;var u=this.projection.bounds,h=this.scale(o),m=this.transformation.transform(u.min,h),w=this.transformation.transform(u.max,h);return new Q(m,w)},infinite:!1,wrapLatLng:function(o){var u=this.wrapLng?f(o.lng,this.wrapLng,!0):o.lng,h=this.wrapLat?f(o.lat,this.wrapLat,!0):o.lat,m=o.alt;return new fe(h,u,m)},wrapLatLngBounds:function(o){var u=o.getCenter(),h=this.wrapLatLng(u),m=u.lat-h.lat,w=u.lng-h.lng;if(m===0&&w===0)return o;
230var P=o.getSouthWest(),R=o.getNorthEast(),j=new fe(P.lat-m,P.lng-w),D=new fe(R.lat-m,R.lng-w);return new ce(j,D)}},It=i({},ke,{wrapLng:[-180,180],R:6371e3,distance:function(o,u){var h=Math.PI/180,m=o.lat*h,w=u.lat*h,P=Math.sin((u.lat-o.lat)*h/2),R=Math.sin((u.lng-o.lng)*h/2),j=P*P+Math.cos(m)*Math.cos(w)*R*R,D=2*Math.atan2(Math.sqrt(j),Math.sqrt(1-j));return this.R*D}}),jn=6378137,In={R:jn,MAX_LATITUDE:85.0511287798,project:function(o){var u=Math.PI/180,h=this.MAX_LATITUDE,m=Math.max(Math.min(h,o.lat),-h),w=Math.sin(m*u);return new N(this.R*o.lng*u,this.R*Math.log((1+w)/(1-w))/2)},unproject:function(o){var u=180/Math.PI;return new fe((2*Math.atan(Math.exp(o.y/this.R))-Math.PI/2)*u,o.x*u/this.R)},bounds:function(){var o=jn*Math.PI;return new Q([-o,-o],[o,o])}()};function gn(o,u,h,m){if(k(o)){this._a=o[0],this._b=o[1],this._c=o[2],this._d=o[3];return}this._a=o,this._b=u,this._c=h,this._d=m}gn.prototype={transform:function(o,u){return this._transform(o.clone(),u)},_transform:function(o,u){return u=u||1,o.x=u*(this._a*o.x+this._b),o.y=u*(this._c*o.y+this._d),o},untransform:function(o,u){return u=u||1,new N((o.x/u-this._b)/this._a,(o.y/u-this._d)/this._c)}};function yn(o,u,h,m){return new gn(o,u,h,m)}var vn=i({},It,{code:"EPSG:3857",projection:In,transformation:function(){var o=.5/(Math.PI*In.R);return yn(o,.5,-o,.5)}()}),ro=i({},vn,{code:"EPSG:900913"});function io(o){return document.createElementNS("http://www.w3.org/2000/svg",o)}function fs(o,u){var h="",m,w,P,R,j,D;for(m=0,P=o.length;m<P;m++){for(j=o[m],w=0,R=j.length;w<R;w++)D=j[w],h+=(w?"L":"M")+D.x+" "+D.y;h+=u?ue.svg?"z":"x":""}return h||"M0 0"}var ps=document.documentElement.style,ar="ActiveXObject"in window,fi=ar&&!document.addEventListener,Va="msLaunchUri"in navigator&&!("documentMode"in document),Dr=fr("webkit"),Ha=fr("android"),lr=fr("android 2")||fr("android 3"),nf=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),rf=Ha&&fr("Google")&&nf<537&&!("AudioNode"in window),Ct=!!window.opera,Br=!Va&&fr("chrome"),Wu=fr("gecko")&&!Dr&&!Ct&&!ar,sf=!Br&&fr("safari"),ms=fr("phantom"),qu="OTransition"in ps,Gu=navigator.platform.indexOf("Win")===0,so=ar&&"transition"in ps,ur="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!lr,Wa="MozPerspective"in ps,pi=!window.L_DISABLE_3D&&(so||ur||Wa)&&!qu&&!ms,gs=typeof orientation<"u"||fr("mobile"),of=gs&&Dr,Zu=gs&&ur,qa=!window.PointerEvent&&window.MSPointerEvent,Ku=!!(window.PointerEvent||qa),oo="ontouchstart"in window||!!window.TouchEvent,cr=!window.L_NO_TOUCH&&(oo||Ku),af=gs&&Ct,me=gs&&Wu,je=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,De=function(){var o=!1;try{var u=Object.defineProperty({},"passive",{get:function(){o=!0}});window.addEventListener("testPassiveEventSupport",p,u),window.removeEventListener("testPassiveEventSupport",p,u)}catch{}return o}(),rn=function(){return!!document.createElement("canvas").getContext}(),Dt=!!(document.createElementNS&&io("svg").createSVGRect),dr=!!Dt&&function(){var o=document.createElement("div");return o.innerHTML="<svg/>",(o.firstChild&&o.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),zr=!Dt&&function(){try{var o=document.createElement("div");o.innerHTML='<v:shape adj="1"/>';var u=o.firstChild;return u.style.behavior="url(#default#VML)",u&&typeof u.adj=="object"}catch{return!1}}(),sn=navigator.platform.indexOf("Mac")===0,hr=navigator.platform.indexOf("Linux")===0;function fr(o){return navigator.userAgent.toLowerCase().indexOf(o)>=0}var ue={ie:ar,ielt9:fi,edge:Va,webkit:Dr,android:Ha,android23:lr,androidStock:rf,opera:Ct,chrome:Br,gecko:Wu,safari:sf,phantom:ms,opera12:qu,win:Gu,ie3d:so,webkit3d:ur,gecko3d:Wa,any3d:pi,mobile:gs,mobileWebkit:of,mobileWebkit3d:Zu,msPointer:qa,pointer:Ku,touch:cr,touchNative:oo,mobileOpera:af,mobileGecko:me,retina:je,passiveEvents:De,canvas:rn,svg:Dt,vml:zr,inlineSvg:dr,mac:sn,linux:hr},Zv=ue.msPointer?"MSPointerDown":"pointerdown",Kv=ue.msPointer?"MSPointerMove":"pointermove",Jv=ue.msPointer?"MSPointerUp":"pointerup",Yv=ue.msPointer?"MSPointerCancel":"pointercancel",lf={touchstart:Zv,touchmove:Kv,touchend:Jv,touchcancel:Yv},Xv={touchstart:$E,touchmove:Ju,touchend:Ju,touchcancel:Ju},ao={},Qv=!1;function IE(o,u,h){return u==="touchstart"&&FE(),Xv[u]?(h=Xv[u].bind(this,h),o.addEventListener(lf[u],h,!1),h):(console.warn("wrong event specified:",u),p)}function DE(o,u,h){if(!lf[u]){console.warn("wrong event specified:",u);return}o.removeEventListener(lf[u],h,!1)}function BE(o){ao[o.pointerId]=o}function zE(o){ao[o.pointerId]&&(ao[o.pointerId]=o)}function e0(o){delete ao[o.pointerId]}function FE(){Qv||(document.addEventListener(Zv,BE,!0),document.addEventListener(Kv,zE,!0),document.addEventListener(Jv,e0,!0),document.addEventListener(Yv,e0,!0),Qv=!0)}function Ju(o,u){if(u.pointerType!==(u.MSPOINTER_TYPE_MOUSE||"mouse")){u.touches=[];for(var h in ao)u.touches.push(ao[h]);u.changedTouches=[u],o(u)}}function $E(o,u){u.MSPOINTER_TYPE_TOUCH&&u.pointerType===u.MSPOINTER_TYPE_TOUCH&&xt(u),Ju(o,u)}function UE(o){var u={},h,m;for(m in o)h=o[m],u[m]=h&&h.bind?h.bind(o):h;return o=u,u.type="dblclick",u.detail=2,u.isTrusted=!1,u._simulated=!0,u}var VE=200;function HE(o,u){o.addEventListener("dblclick",u);var h=0,m;function w(P){if(P.detail!==1){m=P.detail;return}if(!(P.pointerType==="mouse"||P.sourceCapabilities&&!P.sourceCapabilities.firesTouchEvents)){var R=s0(P);if(!(R.some(function(D){return D instanceof HTMLLabelElement&&D.attributes.for})&&!R.some(function(D){return D instanceof HTMLInputElement||D instanceof HTMLSelectElement}))){var j=Date.now();j-h<=VE?(m++,m===2&&u(UE(P))):m=1,h=j}}}return o.addEventListener("click",w),{dblclick:u,simDblclick:w}}function WE(o,u){o.removeEventListener("dblclick",u.dblclick),o.removeEventListener("click",u.simDblclick)}var uf=Qu(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Ga=Qu(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),t0=Ga==="webkitTransition"||Ga==="OTransition"?Ga+"End":"transitionend";
230function n0(o){return typeof o=="string"?document.getElementById(o):o}function Za(o,u){var h=o.style[u]||o.currentStyle&&o.currentStyle[u];if((!h||h==="auto")&&document.defaultView){var m=document.defaultView.getComputedStyle(o,null);h=m?m[u]:null}return h==="auto"?null:h}function Oe(o,u,h){var m=document.createElement(o);return m.className=u||"",h&&h.appendChild(m),m}function Ze(o){var u=o.parentNode;u&&u.removeChild(o)}function Yu(o){for(;o.firstChild;)o.removeChild(o.firstChild)}function lo(o){var u=o.parentNode;u&&u.lastChild!==o&&u.appendChild(o)}function uo(o){var u=o.parentNode;u&&u.firstChild!==o&&u.insertBefore(o,u.firstChild)}function cf(o,u){if(o.classList!==void 0)return o.classList.contains(u);var h=Xu(o);return h.length>0&&new RegExp("(^|\\s)"+u+"(\\s|$)").test(h)}function Se(o,u){if(o.classList!==void 0)for(var h=b(u),m=0,w=h.length;m<w;m++)o.classList.add(h[m]);else if(!cf(o,u)){var P=Xu(o);df(o,(P?P+" ":"")+u)}}function st(o,u){o.classList!==void 0?o.classList.remove(u):df(o,y((" "+Xu(o)+" ").replace(" "+u+" "," ")))}function df(o,u){o.className.baseVal===void 0?o.className=u:o.className.baseVal=u}function Xu(o){return o.correspondingElement&&(o=o.correspondingElement),o.className.baseVal===void 0?o.className:o.className.baseVal}function wn(o,u){"opacity"in o.style?o.style.opacity=u:"filter"in o.style&&qE(o,u)}function qE(o,u){var h=!1,m="DXImageTransform.Microsoft.Alpha";try{h=o.filters.item(m)}catch{if(u===1)return}u=Math.round(u*100),h?(h.Enabled=u!==100,h.Opacity=u):o.style.filter+=" progid:"+m+"(opacity="+u+")"}function Qu(o){for(var u=document.documentElement.style,h=0;h<o.length;h++)if(o[h]in u)return o[h];return!1}function ys(o,u,h){var m=u||new N(0,0);o.style[uf]=(ue.ie3d?"translate("+m.x+"px,"+m.y+"px)":"translate3d("+m.x+"px,"+m.y+"px,0)")+(h?" scale("+h+")":"")}function ut(o,u){o._leaflet_pos=u,ue.any3d?ys(o,u):(o.style.left=u.x+"px",o.style.top=u.y+"px")}function vs(o){return o._leaflet_pos||new N(0,0)}var Ka,Ja,hf;if("onselectstart"in document)Ka=function(){_e(window,"selectstart",xt)},Ja=function(){Be(window,"selectstart",xt)};else{var Ya=Qu(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Ka=function(){if(Ya){var o=document.documentElement.style;hf=o[Ya],o[Ya]="none"}},Ja=function(){Ya&&(document.documentElement.style[Ya]=hf,hf=void 0)}}function ff(){_e(window,"dragstart",xt)}function pf(){Be(window,"dragstart",xt)}var ec,mf;function gf(o){for(;o.tabIndex===-1;)o=o.parentNode;o.style&&(tc(),ec=o,mf=o.style.outlineStyle,o.style.outlineStyle="none",_e(window,"keydown",tc))}function tc(){ec&&(ec.style.outlineStyle=mf,ec=void 0,mf=void 0,Be(window,"keydown",tc))}function r0(o){do o=o.parentNode;while((!o.offsetWidth||!o.offsetHeight)&&o!==document.body);return o}function yf(o){var u=o.getBoundingClientRect();return{x:u.width/o.offsetWidth||1,y:u.height/o.offsetHeight||1,boundingClientRect:u}}var GE={__proto__:null,TRANSFORM:uf,TRANSITION:Ga,TRANSITION_END:t0,get:n0,getStyle:Za,create:Oe,remove:Ze,empty:Yu,toFront:lo,toBack:uo,hasClass:cf,addClass:Se,removeClass:st,setClass:df,getClass:Xu,setOpacity:wn,testProp:Qu,setTransform:ys,setPosition:ut,getPosition:vs,get disableTextSelection(){return Ka},get enableTextSelection(){return Ja},disableImageDrag:ff,enableImageDrag:pf,preventOutline:gf,restoreOutline:tc,getSizedParentNode:r0,getScale:yf};function _e(o,u,h,m){if(u&&typeof u=="object")for(var w in u)wf(o,w,u[w],h);else{u=b(u);for(var P=0,R=u.length;P<R;P++)wf(o,u[P],h,m)}return this}var pr="_leaflet_events";function Be(o,u,h,m){if(arguments.length===1)i0(o),delete o[pr];else if(u&&typeof u=="object")for(var w in u)_f(o,w,u[w],h);else if(u=b(u),arguments.length===2)i0(o,function(j){return E(u,j)!==-1});else for(var P=0,R=u.length;P<R;P++)_f(o,u[P],h,m);return this}function i0(o,u){for(var h in o[pr]){var m=h.split(/\d/)[0];(!u||u(m))&&_f(o,m,null,null,h)}}
230var vf={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function wf(o,u,h,m){var w=u+c(h)+(m?"_"+c(m):"");if(o[pr]&&o[pr][w])return this;var P=function(j){return h.call(m||o,j||window.event)},R=P;!ue.touchNative&&ue.pointer&&u.indexOf("touch")===0?P=IE(o,u,P):ue.touch&&u==="dblclick"?P=HE(o,P):"addEventListener"in o?u==="touchstart"||u==="touchmove"||u==="wheel"||u==="mousewheel"?o.addEventListener(vf[u]||u,P,ue.passiveEvents?{passive:!1}:!1):u==="mouseenter"||u==="mouseleave"?(P=function(j){j=j||window.event,xf(o,j)&&R(j)},o.addEventListener(vf[u],P,!1)):o.addEventListener(u,R,!1):o.attachEvent("on"+u,P),o[pr]=o[pr]||{},o[pr][w]=P}function _f(o,u,h,m,w){w=w||u+c(h)+(m?"_"+c(m):"");var P=o[pr]&&o[pr][w];if(!P)return this;!ue.touchNative&&ue.pointer&&u.indexOf("touch")===0?DE(o,u,P):ue.touch&&u==="dblclick"?WE(o,P):"removeEventListener"in o?o.removeEventListener(vf[u]||u,P,!1):o.detachEvent("on"+u,P),o[pr][w]=null}function ws(o){return o.stopPropagation?o.stopPropagation():o.originalEvent?o.originalEvent._stopped=!0:o.cancelBubble=!0,this}function bf(o){return wf(o,"wheel",ws),this}function Xa(o){return _e(o,"mousedown touchstart dblclick contextmenu",ws),o._leaflet_disable_click=!0,this}function xt(o){return o.preventDefault?o.preventDefault():o.returnValue=!1,this}function _s(o){return xt(o),ws(o),this}function s0(o){if(o.composedPath)return o.composedPath();for(var u=[],h=o.target;h;)u.push(h),h=h.parentNode;return u}function o0(o,u){if(!u)return new N(o.clientX,o.clientY);var h=yf(u),m=h.boundingClientRect;return new N((o.clientX-m.left)/h.x-u.clientLeft,(o.clientY-m.top)/h.y-u.clientTop)}var ZE=ue.linux&&ue.chrome?window.devicePixelRatio:ue.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function a0(o){return ue.edge?o.wheelDeltaY/2:o.deltaY&&o.deltaMode===0?-o.deltaY/ZE:o.deltaY&&o.deltaMode===1?-o.deltaY*20:o.deltaY&&o.deltaMode===2?-o.deltaY*60:o.deltaX||o.deltaZ?0:o.wheelDelta?(o.wheelDeltaY||o.wheelDelta)/2:o.detail&&Math.abs(o.detail)<32765?-o.detail*20:o.detail?o.detail/-32765*60:0}function xf(o,u){var h=u.relatedTarget;if(!h)return!0;try{for(;h&&h!==o;)h=h.parentNode}catch{return!1}return h!==o}var KE={__proto__:null,on:_e,off:Be,stopPropagation:ws,disableScrollPropagation:bf,disableClickPropagation:Xa,preventDefault:xt,stop:_s,getPropagationPath:s0,getMousePosition:o0,getWheelDelta:a0,isExternalTarget:xf,addListener:_e,removeListener:Be},l0=te.extend({run:function(o,u,h,m){this.stop(),this._el=o,this._inProgress=!0,this._duration=h||.25,this._easeOutPower=1/Math.max(m||.5,.2),this._startPos=vs(o),this._offset=u.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=J(this._animate,this),this._step()},_step:function(o){var u=+new Date-this._startTime,h=this._duration*1e3;u<h?this._runFrame(this._easeOut(u/h),o):(this._runFrame(1),this._complete())},_runFrame:function(o,u){var h=this._startPos.add(this._offset.multiplyBy(o));u&&h._round(),ut(this._el,h),this.fire("step")},_complete:function(){Z(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(o){return 1-Math.pow(1-o,this._easeOutPower)}}),Ae=te.extend({options:{crs:vn,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(o,u){u=_(this,u),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(o),this._initLayout(),this._onResize=a(this._onResize,this),this._initEvents(),u.maxBounds&&this.setMaxBounds(u.maxBounds),u.zoom!==void 0&&(this._zoom=this._limitZoom(u.zoom)),u.center&&u.zoom!==void 0&&this.setView(de(u.center),u.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=Ga&&ue.any3d&&!ue.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),_e(this._proxy,t0,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)}
vendor: 1,354 bytes, line 230
230,setView:function(o,u,h){if(u=u===void 0?this._zoom:this._limitZoom(u),o=this._limitCenter(de(o),u,this.options.maxBounds),h=h||{},this._stop(),this._loaded&&!h.reset&&h!==!0){h.animate!==void 0&&(h.zoom=i({animate:h.animate},h.zoom),h.pan=i({animate:h.animate,duration:h.duration},h.pan));var m=this._zoom!==u?this._tryAnimatedZoom&&this._tryAnimatedZoom(o,u,h.zoom):this._tryAnimatedPan(o,h.pan);if(m)return clearTimeout(this._sizeTimer),this}return this._resetView(o,u,h.pan&&h.pan.noMoveStart),this},setZoom:function(o,u){return this._loaded?this.setView(this.getCenter(),o,{zoom:u}):(this._zoom=o,this)},zoomIn:function(o,u){return o=o||(ue.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+o,u)},zoomOut:function(o,u){return o=o||(ue.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-o,u)},setZoomAround:function(o,u,h){var m=this.getZoomScale(u),w=this.getSize().divideBy(2),P=o instanceof N?o:this.latLngToContainerPoint(o),R=P.subtract(w).multiplyBy(1-1/m),j=this.containerPointToLatLng(w.add(R));return this.setView(j,u,{zoom:h})},_getBoundsCenterZoom:function(o,u){u=u||{},o=o.getBounds?o.getBounds():le(o);var h=z(u.paddingTopLeft||u.padding||[0,0]),m=z(u.paddingBottomRight||u.padding||[0,0]),w=this.getBoundsZoom(o,!1,h.add(m));if(w=typeof u.maxZoom=="number"?Math.min(u.maxZoom,w):w,w===1/0)return{center:o.getCenter(),zoom:w};
230var P=m.subtract(h).divideBy(2),R=this.project(o.getSouthWest(),w),j=this.project(o.getNorthEast(),w),D=this.unproject(R.add(j).divideBy(2).add(P),w);return{center:D,zoom:w}},fitBounds:function(o,u){if(o=le(o),!o.isValid())throw new Error("Bounds are not valid.");var h=this._getBoundsCenterZoom(o,u);return this.setView(h.center,h.zoom,u)},fitWorld:function(o){return this.fitBounds([[-90,-180],[90,180]],o)},panTo:function(o,u){return this.setView(o,this._zoom,{pan:u})},panBy:function(o,u){if(o=z(o).round(),u=u||{},!o.x&&!o.y)return this.fire("moveend");if(u.animate!==!0&&!this.getSize().contains(o))return this._resetView(this.unproject(this.project(this.getCenter()).add(o)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new l0,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),u.noMoveStart||this.fire("movestart"),u.animate!==!1){Se(this._mapPane,"leaflet-pan-anim");var h=this._getMapPanePos().subtract(o).round();this._panAnim.run(this._mapPane,h,u.duration||.25,u.easeLinearity)}else this._rawPanBy(o),this.fire("move").fire("moveend");return this},flyTo:function(o,u,h){if(h=h||{},h.animate===!1||!ue.any3d)return this.setView(o,u,h);this._stop();var m=this.project(this.getCenter()),w=this.project(o),P=this.getSize(),R=this._zoom;o=de(o),u=u===void 0?R:u;var j=Math.max(P.x,P.y),D=j*this.getZoomScale(R,u),V=w.distanceTo(m)||1,Y=1.42,pe=Y*Y;function Te(ct){var fc=ct?-1:1,DA=ct?D:j,BA=D*D-j*j+fc*pe*pe*V*V,zA=2*DA*pe*V,Mf=BA/zA,U0=Math.sqrt(Mf*Mf+1)-Mf,FA=U0<1e-9?-18:Math.log(U0);return FA}function Bt(ct){return(Math.exp(ct)-Math.exp(-ct))/2}function vt(ct){return(Math.exp(ct)+Math.exp(-ct))/2}function bn(ct){return Bt(ct)/vt(ct)}var Gt=Te(0);function go(ct){return j*(vt(Gt)/vt(Gt+Y*ct))}function MA(ct){return j*(vt(Gt)*bn(Gt+Y*ct)-Bt(Gt))/pe}function NA(ct){return 1-Math.pow(1-ct,1.5)}var jA=Date.now(),F0=(Te(1)-Gt)/Y,IA=h.duration?1e3*h.duration:1e3*F0*.8;function $0(){var ct=(Date.now()-jA)/IA,fc=NA(ct)*F0;ct<=1?(this._flyToFrame=J($0,this),this._move(this.unproject(m.add(w.subtract(m).multiplyBy(MA(fc)/V)),R),this.get
vendor: 1,329 bytes, line 230
230ScaleZoom(j/go(fc),R),{flyTo:!0})):this._move(o,u)._moveEnd(!0)}return this._moveStart(!0,h.noMoveStart),$0.call(this),this},flyToBounds:function(o,u){var h=this._getBoundsCenterZoom(o,u);return this.flyTo(h.center,h.zoom,u)},setMaxBounds:function(o){return o=le(o),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),o.isValid()?(this.options.maxBounds=o,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(o){var u=this.options.minZoom;return this.options.minZoom=o,this._loaded&&u!==o&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(o):this},setMaxZoom:function(o){var u=this.options.maxZoom;return this.options.maxZoom=o,this._loaded&&u!==o&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(o):this},panInsideBounds:function(o,u){this._enforcingBounds=!0;var h=this.getCenter(),m=this._limitCenter(h,this._zoom,le(o));return h.equals(m)||this.panTo(m,u),this._enforcingBounds=!1,this},panInside:function(o,u){u=u||{};var h=z(u.paddingTopLeft||u.padding||[0,0]),m=z(u.paddingBottomRight||u.padding||[0,0]),w=this.project(this.getCenter()),P=this.project(o),R=this.getPixelBounds(),j=ee([R.min.add(h),R.max.subtract(m)]),D=j.get
vendor: 3,872 bytes, line 230
230Size();if(!j.contains(P)){this._enforcingBounds=!0;var V=P.subtract(j.getCenter()),Y=j.extend(P).getSize().subtract(D);w.x+=V.x<0?-Y.x:Y.x,w.y+=V.y<0?-Y.y:Y.y,this.panTo(this.unproject(w),u),this._enforcingBounds=!1}return this},invalidateSize:function(o){if(!this._loaded)return this;o=i({animate:!1,pan:!0},o===!0?{animate:!0}:o);var u=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var h=this.getSize(),m=u.divideBy(2).round(),w=h.divideBy(2).round(),P=m.subtract(w);return!P.x&&!P.y?this:(o.animate&&o.pan?this.panBy(P):(o.pan&&this._rawPanBy(P),this.fire("move"),o.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(a(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:u,newSize:h}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(o){if(o=this._locateOptions=i({timeout:1e4,watch:!1},o),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var u=a(this._handleGeolocationResponse,this),h=a(this._handleGeolocationError,this);return o.watch?this._locationWatchId=navigator.geolocation.watchPosition(u,h,o):navigator.geolocation.getCurrentPosition(u,h,o),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(o){if(this._container._leaflet_id){var u=o.code,h=o.message||(u===1?"permission denied":u===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:u,message:"Geolocation error: "+h+"."})}},_handleGeolocationResponse:function(o){if(this._container._leaflet_id){var u=o.coords.latitude,h=o.coords.longitude,m=new fe(u,h),w=m.toBounds(o.coords.accuracy*2),P=this._locateOptions;if(P.setView){var R=this.getBoundsZoom(w);this.setView(m,P.maxZoom?Math.min(R,P.maxZoom):R)}var j={latlng:m,bounds:w,timestamp:o.timestamp};for(var D in o.coords)typeof o.coords[D]=="number"&&(j[D]=o.coords[D]);this.fire("locationfound",j)}},addHandler:function(o,u){if(!u)return this;var h=this[o]=new u(this);return this._handlers.push(h),this.options[o]&&h.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(),Ze(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(Z(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var o;for(o in this._layers)this._layers[o].remove();for(o in this._panes)Ze(this._panes[o]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(o,u){var h="leaflet-pane"+(o?" leaflet-"+o.replace("Pane","")+"-pane":""),m=Oe("div",h,u||this._mapPane);return o&&(this._panes[o]=m),m},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var o=this.getPixelBounds(),u=this.unproject(o.getBottomLeft()),h=this.unproject(o.getTopRight());return new ce(u,h)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom}
230,getBoundsZoom:function(o,u,h){o=le(o),h=z(h||[0,0]);var m=this.getZoom()||0,w=this.getMinZoom(),P=this.getMaxZoom(),R=o.getNorthWest(),j=o.getSouthEast(),D=this.getSize().subtract(h),V=ee(this.project(j,m),this.project(R,m)).getSize(),Y=ue.any3d?this.options.zoomSnap:1,pe=D.x/V.x,Te=D.y/V.y,Bt=u?Math.max(pe,Te):Math.min(pe,Te);return m=this.getScaleZoom(Bt,m),Y&&(m=Math.round(m/(Y/100))*(Y/100),m=u?Math.ceil(m/Y)*Y:Math.floor(m/Y)*Y),Math.max(w,Math.min(P,m))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new N(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(o,u){var h=this._getTopLeftPoint(o,u);return new Q(h,h.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(o){return this.options.crs.getProjectedBounds(o===void 0?this.getZoom():o)},getPane:function(o){return typeof o=="string"?this._panes[o]:o},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(o,u){var h=this.options.crs;return u=u===void 0?this._zoom:u,h.scale(o)/h.scale(u)},getScaleZoom:function(o,u){var h=this.options.crs;u=u===void 0?this._zoom:u;var m=h.zoom(o*h.scale(u));return isNaN(m)?1/0:m},project:function(o,u){return u=u===void 0?this._zoom:u,this.options.crs.latLngToPoint(de(o),u)},unproject:function(o,u){return u=u===void 0?this._zoom:u,this.options.crs.pointToLatLng(z(o),u)},layerPointToLatLng:function(o){var u=z(o).add(this.getPixelOrigin());return this.unproject(u)},latLngToLayerPoint:function(o){var u=this.project(de(o))._round();return u._subtract(this.getPixelOrigin())},wrapLatLng:function(o){return this.options.crs.wrapLatLng(de(o))},wrapLatLngBounds:function(o){return this.options.crs.wrapLatLngBounds(le(o))},distance:function(o,u){return this.options.crs.distance(de(o),de(u))},containerPointToLayerPoint:function(o){return z(o).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(o){return z(o).add(this._getMapPanePos())},containerPointToLatLng:function(o){var u=this.containerPointToLayerPoint(z(o));return this.layerPointToLatLng(u)},latLngToContainerPoint:function(o){return this.layerPointToContainerPoint(this.latLngToLayerPoint(de(o)))},mouseEventToContainerPoint:function(o){return o0(o,this._container)},mouseEventToLayerPoint:function(o){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(o))},mouseEventToLatLng:function(o){return this.layerPointToLatLng(this.mouseEventToLayerPoint(o))},_initContainer:function(o){var u=this._container=n0(o);if(u){if(u._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");_e(u,"scroll",this._onScroll,this),this._containerId=c(u)},_initLayout:function(){var o=this._container;this._fadeAnimated=this.options.fadeAnimation&&ue.any3d,Se(o,"leaflet-container"+(ue.touch?" leaflet-touch":"")+(ue.retina?" leaflet-retina":"")+(ue.ielt9?" leaflet-oldie":"")+(ue.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var u=Za(o,"position");u!=="absolute"&&u!=="relative"&&u!=="fixed"&&u!=="sticky"&&(o.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var o=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),ut(this._mapPane,new N(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Se(o.markerPane,"leaflet-zoom-hide"),Se(o.shadowPane,"leaflet-zoom-hide"))},_resetView:function(o,u,h){ut(this._mapPane,new N(0,0));var m=!this._loaded;this._loaded=!0,u=this._limitZoom(u),this.fire("viewprereset");var w=this._zoom!==u;this._moveStart(w,h)._move(o,u)._moveEnd(w),this.fire("viewreset"),m&&this.fire("load")},_moveStart:function(o,u){return o&&this.fire("zoomstart"),u||this.fire("movestart"),this},_move:function(o,u,h,m){u===void 0&&(u=this._zoom);var w=this._zoom!==u;return this._zoom=u,this._lastCenter=o,this._pixelOrigin=this._getNewPixelOrigin(o),m?h&&h.pinch&&this.fire("zoom",h):((w||h&&h.pinch)&&this.fire("zoom",h),this.fire("move",h)),this},_moveEnd:function(o){return o&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return Z(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(o){ut(this._mapPane,this._getMapPanePos().subtract(o))},_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(o){this._targets={},this._targets[c(this._container)]=this;var u=o?Be:_e;u(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&u(window,"resize",this._onResize,this),ue.any3d&&this.options.transform3DLimit&&(o?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){Z(this._resizeRequest),this._resizeRequest=J(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var o=this._getMapPanePos();Math.max(Math.abs(o.x),Math.abs(o.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(o,u){for(var h=[],m,w=u==="mouseout"||u==="mouseover",P=o.target||o.srcElement,R=!1;P;){if(m=this._targets[c(P)],m&&(u==="click"||u==="preclick")&&this._draggableMoved(m)){R=!0;break}if(m&&m.listens(u,!0)&&(w&&!xf(P,o)||(h.push(m),w))||P===this._container)break;P=P.parentNode}return!h.length&&!R&&!w&&this.listens(u,!0)&&(h=[this]),h},_isClickDisabled:function(o){for(;o&&o!==this._container;){if(o._leaflet_disable_click)return!0;o=o.parentNode}},_handleDOMEvent:function(o){var u=o.target||o.srcElement;if(!(!this._loaded||u._leaflet_disable_events||o.type==="click"&&this._isCl
230ickDisabled(u))){var h=o.type;h==="mousedown"&&gf(u),this._fireDOMEvent(o,h)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(o,u,h){if(o.type==="click"){var m=i({},o);m.type="preclick",this._fireDOMEvent(m,m.type,h)}var w=this._findEventTargets(o,u);if(h){for(var P=[],R=0;R<h.length;R++)h[R].listens(u,!0)&&P.push(h[R]);w=P.concat(w)}if(w.length){u==="contextmenu"&&xt(o);var j=w[0],D={originalEvent:o};if(o.type!=="keypress"&&o.type!=="keydown"&&o.type!=="keyup"){var V=j.getLatLng&&(!j._radius||j._radius<=10);D.containerPoint=V?this.latLngToContainerPoint(j.getLatLng()):this.mouseEventToContainerPoint(o),D.layerPoint=this.containerPointToLayerPoint(D.containerPoint),D.latlng=V?j.getLatLng():this.layerPointToLatLng(D.layerPoint)}for(R=0;R<w.length;R++)if(w[R].fire(u,D,!0),D.originalEvent._stopped||w[R].options.bubblingMouseEvents===!1&&E(this._mouseEvents,u)!==-1)return}},_draggableMoved:function(o){return o=o.dragging&&o.dragging.enabled()?o:this,o.dragging&&o.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var o=0,u=this._handlers.length;o<u;o++)this._handlers[o].disable()},whenReady:function(o,u){return this._loaded?o.call(u||this,{target:this}):this.on("load",o,u),this},_getMapPanePos:function(){return vs(this._mapPane)||new N(0,0)},_moved:function(){var o=this._getMapPanePos();return o&&!o.equals([0,0])},_getTopLeftPoint:function(o,u){var h=o&&u!==void 0?this._getNewPixelOrigin(o,u):this.getPixelOrigin();return h.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(o,u){var h=this.getSize()._divideBy(2);return this.project(o,u)._subtract(h)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(o,u,h){var m=this._getNewPixelOrigin(h,u);return this.project(o,u)._subtract(m)},_latLngBoundsToNewLayerBounds:function(o,u,h){var m=this._getNewPixelOrigin(h,u);
vendor: 14,315 bytes, line 230
230return ee([this.project(o.getSouthWest(),u)._subtract(m),this.project(o.getNorthWest(),u)._subtract(m),this.project(o.getSouthEast(),u)._subtract(m),this.project(o.getNorthEast(),u)._subtract(m)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(o){return this.latLngToLayerPoint(o).subtract(this._getCenterLayerPoint())},_limitCenter:function(o,u,h){if(!h)return o;var m=this.project(o,u),w=this.getSize().divideBy(2),P=new Q(m.subtract(w),m.add(w)),R=this._getBoundsOffset(P,h,u);return Math.abs(R.x)<=1&&Math.abs(R.y)<=1?o:this.unproject(m.add(R),u)},_limitOffset:function(o,u){if(!u)return o;var h=this.getPixelBounds(),m=new Q(h.min.add(o),h.max.add(o));return o.add(this._getBoundsOffset(m,u))},_getBoundsOffset:function(o,u,h){var m=ee(this.project(u.getNorthEast(),h),this.project(u.getSouthWest(),h)),w=m.min.subtract(o.min),P=m.max.subtract(o.max),R=this._rebound(w.x,-P.x),j=this._rebound(w.y,-P.y);return new N(R,j)},_rebound:function(o,u){return o+u>0?Math.round(o-u)/2:Math.max(0,Math.ceil(o))-Math.max(0,Math.floor(u))},_limitZoom:function(o){var u=this.getMinZoom(),h=this.getMaxZoom(),m=ue.any3d?this.options.zoomSnap:1;return m&&(o=Math.round(o/m)*m),Math.max(u,Math.min(h,o))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){st(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(o,u){var h=this._getCenterOffset(o)._trunc();return(u&&u.animate)!==!0&&!this.getSize().contains(h)?!1:(this.panBy(h,u),!0)},_createAnimProxy:function(){var o=this._proxy=Oe("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(o),this.on("zoomanim",function(u){var h=uf,m=this._proxy.style[h];ys(this._proxy,this.project(u.center,u.zoom),this.getZoomScale(u.zoom,1)),m===this._proxy.style[h]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Ze(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var o=this.getCenter(),u=this.getZoom();ys(this._proxy,this.project(o,u),this.getZoomScale(u,1))},_catchTransitionEnd:function(o){this._animatingZoom&&o.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(o,u,h){if(this._animatingZoom)return!0;if(h=h||{},!this._zoomAnimated||h.animate===!1||this._nothingToAnimate()||Math.abs(u-this._zoom)>this.options.zoomAnimationThreshold)return!1;var m=this.getZoomScale(u),w=this._getCenterOffset(o)._divideBy(1-1/m);return h.animate!==!0&&!this.getSize().contains(w)?!1:(J(function(){this._moveStart(!0,h.noMoveStart||!1)._animateZoom(o,u,!0)},this),!0)},_animateZoom:function(o,u,h,m){this._mapPane&&(h&&(this._animatingZoom=!0,this._animateToCenter=o,this._animateToZoom=u,Se(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:o,zoom:u,noUpdate:m}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(a(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&st(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 JE(o,u){return new Ae(o,u)}var Dn=G.extend({options:{position:"topright"},initialize:function(o){_(this,o)},getPosition:function(){return this.options.position},setPosition:function(o){var u=this._map;return u&&u.removeControl(this),this.options.position=o,u&&u.addControl(this),this},getContainer:function(){return this._container},addTo:function(o){this.remove(),this._map=o;var u=this._container=this.onAdd(o),h=this.getPosition(),m=o._controlCorners[h];return Se(u,"leaflet-control"),h.indexOf("bottom")!==-1?m.insertBefore(u,m.firstChild):m.appendChild(u),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Ze(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(o){this._map&&o&&o.screenX>0&&o.screenY>0&&this._map.getContainer().focus()}}),Qa=function(o){return new Dn(o)};Ae.include({addControl:function(o){return o.addTo(this),this},removeControl:function(o){return o.remove(),this},_initControlPos:function(){var o=this._controlCorners={},u="leaflet-",h=this._controlContainer=Oe("div",u+"control-container",this._container);function m(w,P){var R=u+w+" "+u+P;o[w+P]=Oe("div",R,h)}m("top","left"),m("top","right"),m("bottom","left"),m("bottom","right")},_clearControlPos:function(){for(var o in this._controlCorners)Ze(this._controlCorners[o]);Ze(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var u0=Dn.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(o,u,h,m){return h<m?-1:m<h?1:0}},initialize:function(o,u,h){_(this,h),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var m in o)this._addLayer(o[m],m);for(m in u)this._addLayer(u[m],m,!0)},onAdd:function(o){this._initLayout(),this._update(),this._map=o,o.on("zoomend",this._checkDisabledLayers,this);for(var u=0;u<this._layers.length;u++)this._layers[u].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(o){return Dn.prototype.addTo.call(this,o),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var o=0;o<this._layers.length;o++)this._layers[o].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(o,u){return this._addLayer(o,u),this._map?this._update():this},addOverlay:function(o,u){return this._addLayer(o,u,!0),this._map?this._update():this},removeLayer:function(o){o.off("add remove",this._onLayerChange,this);var u=this._getLayer(c(o));return u&&this._layers.splice(this._layers.indexOf(u),1),this._map?this._update():this},expand:function(){Se(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var o=this._map.getSize().y-(this._container.offsetTop+50);return o<this._section.clientHeight?(Se(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=o+"px"):st(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return st(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var o="leaflet-control-layers",u=this._container=Oe("div",o),h=this.options.collapsed;u.setAttribute("aria-haspopup",!0),Xa(u),bf(u);var m=this._section=Oe("section",o+"-list");h&&(this._map.on("click",this.collapse,this),_e(u,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var w=this._layersLink=Oe("a",o+"-toggle",u);w.href="#",w.title="Layers",w.setAttribute("role","button"),_e(w,{keydown:function(P){P.keyCode===13&&this._expandSafely()},click:function(P){xt(P),this._expandSafely()}},this),h||this.expand(),this._baseLayersList=Oe("div",o+"-base",m),this._separator=Oe("div",o+"-separator",m),this._overlaysList=Oe("div",o+"-overlays",m),u.appendChild(m)},_getLayer:function(o){for(var u=0;u<this._layers.length;u++)if(this._layers[u]&&c(this._layers[u].layer)===o)return this._layers[u]},_addLayer:function(o,u,h){this._map&&o.on("add remove",this._onLayerChange,this),this._layers.push({layer:o,name:u,overlay:h}),this.options.sortLayers&&this._layers.sort(a(function(m,w){return this.options.sortFunction(m.layer,w.layer,m.name,w.name)},this)),this.options.autoZIndex&&o.setZIndex&&(this._lastZIndex++,o.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Yu(this._baseLayersList),Yu(this._overlaysList),this._layerControlInputs=[];var o,u,h,m,w=0;for(h=0;h<this._layers.length;h++)m=this._layers[h],this._addItem(m),u=u||m.overlay,o=o||!m.overlay,w+=m.overlay?0:1;return this.options.hideSingleBase&&(o=o&&w>1,this._baseLayersList.style.display=o?"":"none"),this._separator.style.display=u&&o?"":"none",this},_onLayerChange:function(o){this._handlingClick||this._update();var u=this._getLayer(c(o.target)),h=u.overlay?o.type==="add"?"overlayadd":"overlayremove":o.type==="add"?"baselayerchange":null;h&&this._map.fire(h,u)},_createRadioElement:function(o,u){var h='<input type="radio" class="leaflet-control-layers-selector" name="'+o+'"'+(u?' checked="checked"':"")+"/>",m=document.createElement("div");return m.innerHTML=h,m.firstChild},_addItem:function(o){var u=document.createElement("label"),h=this._map.hasLayer(o.layer),m;o.overlay?(m=document.createElement("input"),m.type="checkbox",m.className="leaflet-control-layers-selector",m.defaultChecked=h):m=this._createRadioElement("leaflet-base-layers_"+c(this),h),this._layerControlInputs.push(m),m.layerId=c(o.layer),_e(m,"click",this._onInputClick,this);var w=document.createElement("span");w.innerHTML=" "+o.name;var P=document.createElement("span");u.appendChild(P),P.appendChild(m),P.appendChild(w);var R=o.overlay?this._overlaysList:this._baseLayersList;return R.appendChild(u),this._checkDisabledLayers(),u},_onInputClick:function(){if(!this._preventClick){var o=this._layerControlInputs,u,h,m=[],w=[];this._handlingClick=!0;for(var P=o.length-1;P>=0;P--)u=o[P],h=this._getLayer(u.layerId).layer,u.checked?m.push(h):u.checked||w.push(h);for(P=0;P<w.length;P++)this._map.hasLayer(w[P])&&this._map.removeLayer(w[P]);for(P=0;P<m.length;P++)this._map.hasLayer(m[P])||this._map.addLayer(m[P]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var o=this._layerControlInputs,u,h,m=this._map.getZoom(),w=o.length-1;w>=0;w--)u=o[w],h=this._getLayer(u.layerId).layer,u.disabled=h.options.minZoom!==void 0&&m<h.options.minZoom||h.options.maxZoom!==void 0&&m>h.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var o=this._section;this._preventClick=!0,_e(o,"click",xt),this.expand();var u=this;setTimeout(function(){Be(o,"click",xt),u._preventClick=!1})}}),YE=function(o,u,h){return new u0(o,u,h)},kf=Dn.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(o){var u="leaflet-control-zoom",h=Oe("div",u+" leaflet-bar"),m=this.options;return this._zoomInButton=this._createButton(m.zoomInText,m.zoomInTitle,u+"-in",h,this._zoomIn),this._zoomOutButton=this._createButton(m.zoomOutText,m.zoomOutTitle,u+"-out",h,this._zoomOut),this._updateDisabled(),o.on("zoomend zoomlevelschange",this._updateDisabled,this),h},onRemove:function(o){o.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(o){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(o.shiftKey?3:1))},_zoomOut:function(o){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(o.shiftKey?3:1))},_createButton:function(o,u,h,m,w){var P=Oe("a",h,m);return P.innerHTML=o,P.href="#",P.title=u,P.setAttribute("role","button"),P.setAttribute("aria-label",u),Xa(P),_e(P,"click",_s),_e(P,"click",w,this),_e(P,"click",this._refocusOnMap,this),P},_updateDisabled:function(){var o=this._map,u="leaflet-disabled";st(this._zoomInButton,u),st(this._zoomOutButton,u),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||o._zoom===o.getMinZoom())&&(Se(this._zoomOutButton,u),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||o._zoom===o.getMaxZoom())&&(Se(this._zoomInButton,u),this._zoomInButton.setAttribute("aria-disabled","true"))}});Ae.mergeOptions({zoomControl:!0}),Ae.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new kf,this.addControl(this.zoomControl))});var XE=function(o){return new kf(o)},c0=Dn.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(o){var u="leaflet-control-scale",h=Oe("div",u),m=this.options;return this._addScales(m,u+"-line",h),o.on(m.updateWhenIdle?"moveend":"move",this._update,this),o.whenReady(this._update,this),h},onRemove:function(o){o.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(o,u,h){o.metric&&(this._mScale=Oe("div",u,h)),o.imperial&&(this._iScale=Oe("div",u,h))},_update:function(){var o=this._map,u=o.getSize().y/2,h=o.distance(o.containerPointToLatLng([0,u]),o.containerPointToLatLng([this.options.maxWidth,u]));this._updateScales(h)},_updateScales:function(o){this.options.metric&&o&&this._updateMetric(o),this.options.imperial&&o&&this._updateImperial(o)},_updateMetric:function(o){var u=this._getRoundNum(o),h=u<1e3?u+" m":u/1e3+" km";this._updateScale(this._mScale,h,u/o)},_updateImperial:function(o){var u=o*3.2808399,h,m,w;u>5280?(h=u/5280,m=this._getRoundNum(h),this._updateScale(this._iScale,m+" mi",m/h)):(w=this._getRoundNum(u),this._updateScale(this._iScale,w+" ft",w/u))},_updateScale:function(o,u,h){o.style.width=Math.round(this.options.maxWidth*h)+"px",o.innerHTML=u},_getRoundNum:function(o){var u=Math.pow(10,(Math.floor(o)+"").length-1),h=o/u;return h=h>=10?10:h>=5?5:h>=3?3:h>=2?2:1,u*h}}),QE=function(o){return new c0(o)},eA='<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>',Sf=Dn.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(ue.inlineSvg?eA+" ":"")+"Leaflet</a>"},initialize:function(o){_(this,o),this._attributions={}}
230,onAdd:function(o){o.attributionControl=this,this._container=Oe("div","leaflet-control-attribution"),Xa(this._container);for(var u in o._layers)o._layers[u].getAttribution&&this.addAttribution(o._layers[u].getAttribution());return this._update(),o.on("layeradd",this._addAttribution,this),this._container},onRemove:function(o){o.off("layeradd",this._addAttribution,this)},_addAttribution:function(o){o.layer.getAttribution&&(this.addAttribution(o.layer.getAttribution()),o.layer.once("remove",function(){this.removeAttribution(o.layer.getAttribution())},this))},setPrefix:function(o){return this.options.prefix=o,this._update(),this},addAttribution:function(o){return o?(this._attributions[o]||(this._attributions[o]=0),this._attributions[o]++,this._update(),this):this},removeAttribution:function(o){return o?(this._attributions[o]&&(this._attributions[o]--,this._update()),this):this},_update:function(){if(this._map){var o=[];for(var u in this._attributions)this._attributions[u]&&o.push(u);var h=[];this.options.prefix&&h.push(this.options.prefix),o.length&&h.push(o.join(", ")),this._container.innerHTML=h.join(' <span aria-hidden="true">|</span> ')}}});Ae.mergeOptions({attributionControl:!0}),Ae.addInitHook(function(){this.options.attributionControl&&new Sf().addTo(this)});var tA=function(o){return new Sf(o)};Dn.Layers=u0,Dn.Zoom=kf,Dn.Scale=c0,Dn.Attribution=Sf,Qa.layers=YE,Qa.zoom=XE,Qa.scale=QE,Qa.attribution=tA;var mr=G.extend({initialize:function(o){this._map=o},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}});mr.addTo=function(o,u){return o.addHandler(u,this),this};var nA={Events:oe},d0=ue.touch?"touchstart mousedown":"mousedown",mi=te.extend({options:{clickTolerance:3},initialize:function(o,u,h,m){_(this,m),this._element=o,this._dragStartTarget=u||o,this._preventOutline=h},enable:function(){this._enabled||(_e(this._dragStartTarget,d0,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(mi._dragging===this&&this.finishDrag(!0),Be(this._dragStartTarget,d0,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(o){if(this._enabled&&(this._moved=!1,!cf(this._element,"leaflet-zoom-anim"))){if(o.touches&&o.touches.length!==1){mi._dragging===this&&this.finishDrag();return}if(!(mi._dragging||o.shiftKey||o.which!==1&&o.button!==1&&!o.touches)&&(mi._dragging=this,this._preventOutline&&gf(this._element),ff(),Ka(),!this._moving)){this.fire("down");var u=o.touches?o.touches[0]:o,h=r0(this._element);this._startPoint=new N(u.clientX,u.clientY),this._startPos=vs(this._element),this._parentScale=yf(h);var m=o.type==="mousedown";_e(document,m?"mousemove":"touchmove",this._onMove,this),_e(document,m?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(o){if(this._enabled){if(o.touches&&o.touches.length>1){this._moved=!0;return}var u=o.touches&&o.touches.length===1?o.touches[0]:o,h=new N(u.clientX,u.clientY)._subtract(this._startPoint);!h.x&&!h.y||Math.abs(h.x)+Math.abs(h.y)<this.options.clickTolerance||(h.x/=this._parentScale.x,h.y/=this._parentScale.y,xt(o),this._moved||(this.fire("dragstart"),this._moved=!0,Se(document.body,"leaflet-dragging"),this._lastTarget=o.target||o.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),Se(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(h),this._moving=!0,this._lastEvent=o,this._updatePosition())}},_updatePosition:function(){var o={originalEvent:this._lastEvent};this.fire("predrag",o),ut(this._element,this._newPos),this.fire("drag",o)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(o){st(document.body,"leaflet-dragging"),this._lastTarget&&(st(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Be(d
230ocument,"mousemove touchmove",this._onMove,this),Be(document,"mouseup touchend touchcancel",this._onUp,this),pf(),Ja();var u=this._moved&&this._moving;this._moving=!1,mi._dragging=!1,u&&this.fire("dragend",{noInertia:o,distance:this._newPos.distanceTo(this._startPos)})}});function h0(o,u,h){var m,w=[1,4,2,8],P,R,j,D,V,Y,pe,Te;for(P=0,Y=o.length;P<Y;P++)o[P]._code=bs(o[P],u);for(j=0;j<4;j++){for(pe=w[j],m=[],P=0,Y=o.length,R=Y-1;P<Y;R=P++)D=o[P],V=o[R],D._code&pe?V._code&pe||(Te=nc(V,D,pe,u,h),Te._code=bs(Te,u),m.push(Te)):(V._code&pe&&(Te=nc(V,D,pe,u,h),Te._code=bs(Te,u),m.push(Te)),m.push(D));o=m}return o}function f0(o,u){var h,m,w,P,R,j,D,V,Y;if(!o||o.length===0)throw new Error("latlngs not passed");_n(o)||(console.warn("latlngs are not flat! Only the first ring will be used"),o=o[0]);var pe=de([0,0]),Te=le(o),Bt=Te.getNorthWest().distanceTo(Te.getSouthWest())*Te.getNorthEast().distanceTo(Te.getNorthWest());Bt<1700&&(pe=Tf(o));var vt=o.length,bn=[];for(h=0;h<vt;h++){var Gt=de(o[h]);bn.push(u.project(de([Gt.lat-pe.lat,Gt.lng-pe.lng])))}for(j=D=V=0,h=0,m=vt-1;h<vt;m=h++)w=bn[h],P=bn[m],R=w.y*P.x-P.y*w.x,D+=(w.x+P.x)*R,V+=(w.y+P.y)*R,j+=R*3;j===0?Y=bn[0]:Y=[D/j,V/j];var go=u.unproject(z(Y));return de([go.lat+pe.lat,go.lng+pe.lng])}function Tf(o){for(var u=0,h=0,m=0,w=0;w<o.length;w++){var P=de(o[w]);u+=P.lat,h+=P.lng,m++}return de([u/m,h/m])}var rA={__proto__:null,clipPolygon:h0,polygonCenter:f0,centroid:Tf};function p0(o,u){if(!u||!o.length)return o.slice();var h=u*u;return o=oA(o,h),o=sA(o,h),o}function m0(o,u,h){return Math.sqrt(el(o,u,h,!0))}function iA(o,u,h){return el(o,u,h)}function sA(o,u){var h=o.length,m=typeof Uint8Array<"u"?Uint8Array:Array,w=new m(h);w[0]=w[h-1]=1,Pf(o,w,u,0,h-1);var P,R=[];for(P=0;P<h;P++)w[P]&&R.push(o[P]);return R}function Pf(o,u,h,m,w){var P=0,R,j,D;for(j=m+1;j<=w-1;j++)D=el(o[j],o[m],o[w],!0),D>P&&(R=j,P=D);P>h&&(u[R]=1,Pf(o,u,h,m,R),Pf(o,u,h,R,w))}function oA(o,u){for(var h=[o[0]],m=1,w=0,P=o.length;m<P;m++)aA(o[m],o[w])>u&&(h.push(o[m]),w=m);return w<P-1&&h.push(o[P-1]),h}var g0;function y0(o,u,h,m,w){var P=m?g0:bs(o,h),R=bs(u,h),j,D,V;for(g0=R;;){if(!(P|R))return[o,u];if(P&R)return!1;j=P||R,D=nc(o,u,j,h,w),V=bs(D,h),j===P?(o=D,P=V):(u=D,R=V)}}function nc(o,u,h,m,w){var P=u.x-o.x,R=u.y-o.y,j=m.min,D=m.max,V,Y;return h&8?(V=o.x+P*(D.y-o.y)/R,Y=D.y):h&4?(V=o.x+P*(j.y-o.y)/R,Y=j.y):h&2?(V=D.x,Y=o.y+R*(D.x-o.x)/P):h&1&&(V=j.x,Y=o.y+R*(j.x-o.x)/P),new N(V,Y,w)}function bs(o,u){var h=0;return o.x<u.min.x?h|=1:o.x>u.max.x&&(h|=2),o.y<u.min.y?h|=4:o.y>u.max.y&&(h|=8),h}function aA(o,u){var h=u.x-o.x,m=u.y-o.y;return h*h+m*m}function el(o,u,h,m){var w=u.x,P=u.y,R=h.x-w,j=h.y-P,D=R*R+j*j,V;return D>0&&(V=((o.x-w)*R+(o.y-P)*j)/D,V>1?(w=h.x,P=h.y):V>0&&(w+=R*V,P+=j*V)),R=o.x-w,j=o.y-P,m?R*R+j*j:new N(w,P)}function _n(o){return!k(o[0])||typeof o[0][0]!="object"&&typeof o[0][0]<"u"}function v0(o){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),_n(o)}function w0(o,u){var h,m,w,P,R,j,D,V;if(!o||o.length===0)throw new Error("latlngs not passed");_n(o)||(console.warn("latlngs are not flat! Only the first ring will be used"),o=o[0]);var Y=de([0,0]),pe=le(o),Te=pe.getNorthWest().distanceTo(pe.getSouthWest
vendor: 4,217 bytes, line 230
230())*pe.getNorthEast().distanceTo(pe.getNorthWest());Te<1700&&(Y=Tf(o));var Bt=o.length,vt=[];for(h=0;h<Bt;h++){var bn=de(o[h]);vt.push(u.project(de([bn.lat-Y.lat,bn.lng-Y.lng])))}for(h=0,m=0;h<Bt-1;h++)m+=vt[h].distanceTo(vt[h+1])/2;if(m===0)V=vt[0];else for(h=0,P=0;h<Bt-1;h++)if(R=vt[h],j=vt[h+1],w=R.distanceTo(j),P+=w,P>m){D=(P-m)/w,V=[j.x-D*(j.x-R.x),j.y-D*(j.y-R.y)];break}var Gt=u.unproject(z(V));return de([Gt.lat+Y.lat,Gt.lng+Y.lng])}var lA={__proto__:null,simplify:p0,pointToSegmentDistance:m0,closestPointOnSegment:iA,clipSegment:y0,_getEdgeIntersection:nc,_getBitCode:bs,_sqClosestPointOnSegment:el,isFlat:_n,_flat:v0,polylineCenter:w0},Cf={project:function(o){return new N(o.lng,o.lat)},unproject:function(o){return new fe(o.y,o.x)},bounds:new Q([-180,-90],[180,90])},Ef={R:6378137,R_MINOR:6356752314245179e-9,bounds:new Q([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(o){var u=Math.PI/180,h=this.R,m=o.lat*u,w=this.R_MINOR/h,P=Math.sqrt(1-w*w),R=P*Math.sin(m),j=Math.tan(Math.PI/4-m/2)/Math.pow((1-R)/(1+R),P/2);return m=-h*Math.log(Math.max(j,1e-10)),new N(o.lng*u*h,m)},unproject:function(o){for(var u=180/Math.PI,h=this.R,m=this.R_MINOR/h,w=Math.sqrt(1-m*m),P=Math.exp(-o.y/h),R=Math.PI/2-2*Math.atan(P),j=0,D=.1,V;j<15&&Math.abs(D)>1e-7;j++)V=w*Math.sin(R),V=Math.pow((1-V)/(1+V),w/2),D=Math.PI/2-2*Math.atan(P*V)-R,R+=D;return new fe(R*u,o.x*u/h)}},uA={__proto__:null,LonLat:Cf,Mercator:Ef,SphericalMercator:In},cA=i({},It,{code:"EPSG:3395",projection:Ef,transformation:function(){var o=.5/(Math.PI*Ef.R);return yn(o,.5,-o,.5)}()}),_0=i({},It,{code:"EPSG:4326",projection:Cf,transformation:yn(1/180,1,-1/180,.5)}),dA=i({},ke,{projection:Cf,transformation:yn(1,0,-1,0),scale:function(o){return Math.pow(2,o)},zoom:function(o){return Math.log(o)/Math.LN2},distance:function(o,u){var h=u.lng-o.lng,m=u.lat-o.lat;return Math.sqrt(h*h+m*m)},infinite:!0});ke.Earth=It,ke.EPSG3395=cA,ke.EPSG3857=vn,ke.EPSG900913=ro,ke.EPSG4326=_0,ke.Simple=dA;var Bn=te.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(o){return o.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(o){return o&&o.removeLayer(this),this},getPane:function(o){return this._map.getPane(o?this.options[o]||o:this.options.pane)},addInteractiveTarget:function(o){return this._map._targets[c(o)]=this,this},removeInteractiveTarget:function(o){return delete this._map._targets[c(o)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(o){var u=o.target;if(u.hasLayer(this)){if(this._map=u,this._zoomAnimated=u._zoomAnimated,this.getEvents){var h=this.getEvents();u.on(h,this),this.once("remove",function(){u.off(h,this)},this)}this.onAdd(u),this.fire("add"),u.fire("layeradd",{layer:this})}}});Ae.include({addLayer:function(o){if(!o._layerAdd)throw new Error("The provided object is not a Layer.");var u=c(o);return this._layers[u]?this:(this._layers[u]=o,o._mapToAdd=this,o.beforeAdd&&o.beforeAdd(this),this.whenReady(o._layerAdd,o),this)},removeLayer:function(o){var u=c(o);return this._layers[u]?(this._loaded&&o.onRemove(this),delete this._layers[u],this._loaded&&(this.fire("layerremove",{layer:o}),o.fire("remove")),o._map=o._mapToAdd=null,this):this},hasLayer:function(o){return c(o)in this._layers},eachLayer:function(o,u){for(var h in this._layers)o.call(u,this._layers[h]);return this},_addLayers:function(o){o=o?k(o)?o:[o]:[];for(var u=0,h=o.length;u<h;u++)this.addLayer(o[u])},_addZoomLimit:function(o){(!isNaN(o.options.maxZoom)||!isNaN(o.options.minZoom))&&(this._zoomBoundLayers[c(o)]=o,this._updateZoomLevels())},_removeZoomLimit:function(o){var u=c(o);this._zoomBoundLayers[u]&&(delete this._zoomBoundLayers[u],this._updateZoomLevels())},_updateZoomLevels:function(){var o=1/0,u=-1/0,h=this._getZoomSpan();for(var m in this._zoomBoundLayers){var w=this._zoomBoundLayers[m].options;o=w.minZoom===void 0?o:Math.min(o,w.minZoom),u=w.maxZoom===void 0?u:Math.max(u,w.maxZoom)}this._layersMaxZoom=u===-1/0?void 0:u,this._layersMinZoom=o===1/0?void 0:o,h!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZo
230om&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var co=Bn.extend({initialize:function(o,u){_(this,u),this._layers={};var h,m;if(o)for(h=0,m=o.length;h<m;h++)this.addLayer(o[h])},addLayer:function(o){var u=this.getLayerId(o);return this._layers[u]=o,this._map&&this._map.addLayer(o),this},removeLayer:function(o){var u=o in this._layers?o:this.getLayerId(o);return this._map&&this._layers[u]&&this._map.removeLayer(this._layers[u]),delete this._layers[u],this},hasLayer:function(o){var u=typeof o=="number"?o:this.getLayerId(o);return u in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(o){var u=Array.prototype.slice.call(arguments,1),h,m;for(h in this._layers)m=this._layers[h],m[o]&&m[o].apply(m,u);return this},onAdd:function(o){this.eachLayer(o.addLayer,o)},onRemove:function(o){this.eachLayer(o.removeLayer,o)},eachLayer:function(o,u){for(var h in this._layers)o.call(u,this._layers[h]);return this},getLayer:function(o){return this._layers[o]},getLayers:function(){var o=[];return this.eachLayer(o.push,o),o},setZIndex:function(o){return this.invoke("setZIndex",o)},getLayerId:function(o){return c(o)}}),hA=function(o,u){return new co(o,u)},Fr=co.extend({addLayer:function(o){return this.hasLayer(o)?this:(o.addEventParent(this),co.prototype.addLayer.call(this,o),this.fire("layeradd",{layer:o}))},removeLayer:function(o){return this.hasLayer(o)?(o in this._layers&&(o=this._layers[o]),o.removeEventParent(this),co.prototype.removeLayer.call(this,o),this.fire("layerremove",{layer:o})):this},setStyle:function(o){return this.invoke("setStyle",o)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var o=new ce;for(var u in this._layers){var h=this._layers[u];o.extend(h.getBounds?h.getBounds():h.getLatLng())}return o}}),fA=function(o,u){return new Fr(o,u)},ho=G.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(o){_(this,o)},createIcon:function(o){return this._createIcon("icon",o)},createShadow:function(o){return this._createIcon("shadow",o)},_createIcon:function(o,u){var h=this._getIconUrl(o);if(!h){if(o==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var m=this._createImg(h,u&&u.tagName==="IMG"?u:null);return this._setIconStyles(m,o),(this.options.crossOrigin||this.options.crossOrigin==="")&&(m.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),m},_setIconStyles:function(o,u){var h=this.options,m=h[u+"Size"];typeof m=="number"&&(m=[m,m]);var w=z(m),P=z(u==="shadow"&&h.shadowAnchor||h.iconAnchor||w&&w.divideBy(2,!0));o.className="leaflet-marker-"+u+" "+(h.className||""),P&&(o.style.marginLeft=-P.x+"px",o.style.marginTop=-P.y+"px"),w&&(o.style.width=w.x+"px",o.style.height=w.y+"px")},_createImg:function(o,u){return u=u||document.createElement("img"),u.src=o,u},_getIconUrl:function(o){return ue.retina&&this.options[o+"RetinaUrl"]||this.options[o+"Url"]}});function pA(o){return new ho(o)}var tl=ho.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(o){return typeof tl.imagePath!="string"&&(tl.imagePath=this._detectIconPath()),(this.options.imagePath||tl.imagePath)+ho.prototype._getIconUrl.call(this,o)},_stripUrl:function(o){var u=function(h,m,w){var P=m.exec(h);return P&&P[w]};return o=u(o,/^url\((['"])?(.+)\1\)$/,2),o&&u(o,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var o=Oe("div","leaflet-default-icon-path",document.body),u=Za(o,"background-image")||Za(o,"backgroundImage");if(document.body.removeChild(o),u=this._stripUrl(u),u)return u;var h=document.querySelector('link[href$="leaflet.css"]');return h?h.href.substring(0,h.href.length-11-1):""}}
vendor: 4,224 bytes, line 230
230),b0=mr.extend({initialize:function(o){this._marker=o},addHooks:function(){var o=this._marker._icon;this._draggable||(this._draggable=new mi(o,o,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),Se(o,"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&&st(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(o){var u=this._marker,h=u._map,m=this._marker.options.autoPanSpeed,w=this._marker.options.autoPanPadding,P=vs(u._icon),R=h.getPixelBounds(),j=h.getPixelOrigin(),D=ee(R.min._subtract(j).add(w),R.max._subtract(j).subtract(w));if(!D.contains(P)){var V=z((Math.max(D.max.x,P.x)-D.max.x)/(R.max.x-D.max.x)-(Math.min(D.min.x,P.x)-D.min.x)/(R.min.x-D.min.x),(Math.max(D.max.y,P.y)-D.max.y)/(R.max.y-D.max.y)-(Math.min(D.min.y,P.y)-D.min.y)/(R.min.y-D.min.y)).multiplyBy(m);h.panBy(V,{animate:!1}),this._draggable._newPos._add(V),this._draggable._startPos._add(V),ut(u._icon,this._draggable._newPos),this._onDrag(o),this._panRequest=J(this._adjustPan.bind(this,o))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(o){this._marker.options.autoPan&&(Z(this._panRequest),this._panRequest=J(this._adjustPan.bind(this,o)))},_onDrag:function(o){var u=this._marker,h=u._shadow,m=vs(u._icon),w=u._map.layerPointToLatLng(m);h&&ut(h,m),u._latlng=w,o.latlng=w,o.oldLatLng=this._oldLatLng,u.fire("move",o).fire("drag",o)},_onDragEnd:function(o){Z(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",o)}}),rc=Bn.extend({options:{icon:new tl,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(o,u){_(this,u),this._latlng=de(o)},onAdd:function(o){this._zoomAnimated=this._zoomAnimated&&o.options.markerZoomAnimation,this._zoomAnimated&&o.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(o){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&o.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(o){var u=this._latlng;return this._latlng=de(o),this.update(),this.fire("move",{oldLatLng:u,latlng:this._latlng})},setZIndexOffset:function(o){return this.options.zIndexOffset=o,this.update()},getIcon:function(){return this.options.icon},setIcon:function(o){return this.options.icon=o,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 o=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(o)}return this},_initIcon:function(){var o=this.options,u="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),h=o.icon.createIcon(this._icon),m=!1;h!==this._icon&&(this._icon&&this._removeIcon(),m=!0,o.title&&(h.title=o.title),h.tagName==="IMG"&&(h.alt=o.alt||"")),Se(h,u),o.keyboard&&(h.tabIndex="0",h.setAttribute("role","button")),this._icon=h,o.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&_e(h,"focus",this._panOnFocus,this);var w=o.icon.createShadow(this._shadow),P=!1;w!==this._shadow&&(this._removeShadow(),P=!0),w&&(Se(w,u),w.alt=""),this._shadow=w,o.opacity<1&&this._updateOpacity(),m&&this.getPane().appendChild(this._icon),this._initInteraction(),w&&P&&this.getPane(o.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}
vendor: 5,480 bytes, line 230
230),this.options.autoPanOnFocus&&Be(this._icon,"focus",this._panOnFocus,this),Ze(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&Ze(this._shadow),this._shadow=null},_setPos:function(o){this._icon&&ut(this._icon,o),this._shadow&&ut(this._shadow,o),this._zIndex=o.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(o){this._icon&&(this._icon.style.zIndex=this._zIndex+o)},_animateZoom:function(o){var u=this._map._latLngToNewLayerPoint(this._latlng,o.zoom,o.center).round();this._setPos(u)},_initInteraction:function(){if(this.options.interactive&&(Se(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),b0)){var o=this.options.draggable;this.dragging&&(o=this.dragging.enabled(),this.dragging.disable()),this.dragging=new b0(this),o&&this.dragging.enable()}},setOpacity:function(o){return this.options.opacity=o,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var o=this.options.opacity;this._icon&&wn(this._icon,o),this._shadow&&wn(this._shadow,o)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var o=this._map;if(o){var u=this.options.icon.options,h=u.iconSize?z(u.iconSize):z(0,0),m=u.iconAnchor?z(u.iconAnchor):z(0,0);o.panInside(this._latlng,{paddingTopLeft:m,paddingBottomRight:h.subtract(m)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function mA(o,u){return new rc(o,u)}var gi=Bn.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(o){this._renderer=o.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(o){return _(this,o),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&o&&Object.prototype.hasOwnProperty.call(o,"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)}}),ic=gi.extend({options:{fill:!0,radius:10},initialize:function(o,u){_(this,u),this._latlng=de(o),this._radius=this.options.radius},setLatLng:function(o){var u=this._latlng;return this._latlng=de(o),this.redraw(),this.fire("move",{oldLatLng:u,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(o){return this.options.radius=this._radius=o,this.redraw()},getRadius:function(){return this._radius},setStyle:function(o){var u=o&&o.radius||this._radius;return gi.prototype.setStyle.call(this,o),this.setRadius(u),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var o=this._radius,u=this._radiusY||o,h=this._clickTolerance(),m=[o+h,u+h];this._pxBounds=new Q(this._point.subtract(m),this._point.add(m))},_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(o){return o.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function gA(o,u){return new ic(o,u)}var Af=ic.extend({initialize:function(o,u,h){if(typeof u=="number"&&(u=i({},h,{radius:u})),_(this,u),this._latlng=de(o),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(o){return this._mRadius=o,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var o=[this._radius,this._radiusY||this._radius];return new ce(this._map.layerPointToLatLng(this._point.subtract(o)),this._map.layerPointToLatLng(this._point.add(o)))},setStyle:gi.prototype.setStyle,_project:function(){var o=this._latlng.lng,u=this._latlng.lat,h=this._map,m=h.options.crs;if(m.distance===It.distance){var w=Math.PI/180,P=this._mRadius/It.R/w,R=h.project([u+P,o]),j=h.project([u-P,o]),D=R.add(j).divideBy(2),V=h.unproject(D).lat,Y=Math.acos((Math.cos(P*w)-Math.sin(u*w)*Math.sin(V*w))/(Math.cos(u*w)*Math.cos(V*w)))/w;(isNaN(Y)||Y===0)&&(Y=P/Math.cos(Math.PI/180*u)),this._point=D.subtract(h.getPixelOrigin()),this._radius=isNaN(Y)?0:D.x-h.project([V,o-Y]).x,this._radiusY=D.y-R.y}else{var pe=m.unproject(m.project(this._latlng).subtract([this._mRadius,0]));this._point=h.latLngToLayerPoint(this._latlng),this._radius=this._point.x-h.latLngToLayerPoint(pe).x}this._updateBounds()}});function yA(o,u,h){return new Af(o,u,h)}var $r=gi.extend({options:{smoothFactor:1,noClip:!1},initialize:function(o,u){_(this,u),this._setLatLngs(o)},getLatLngs:function(){return this._latlngs},setLatLngs:function(o){return this._setLatLngs(o),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(o){for(var u=1/0,h=null,m=el,w,P,R=0,j=this._parts.length;R<j;
230R++)for(var D=this._parts[R],V=1,Y=D.length;V<Y;V++){w=D[V-1],P=D[V];var pe=m(o,w,P,!0);pe<u&&(u=pe,h=m(o,w,P))}return h&&(h.distance=Math.sqrt(u)),h},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return w0(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(o,u){return u=u||this._defaultShape(),o=de(o),u.push(o),this._bounds.extend(o),this.redraw()},_setLatLngs:function(o){this._bounds=new ce,this._latlngs=this._convertLatLngs(o)},_defaultShape:function(){return _n(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(o){for(var u=[],h=_n(o),m=0,w=o.length;m<w;m++)h?(u[m]=de(o[m]),this._bounds.extend(u[m])):u[m]=this._convertLatLngs(o[m]);return u},_project:function(){var o=new Q;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,o),this._bounds.isValid()&&o.isValid()&&(this._rawPxBounds=o,this._updateBounds())},_updateBounds:function(){var o=this._clickTolerance(),u=new N(o,o);this._rawPxBounds&&(this._pxBounds=new Q([this._rawPxBounds.min.subtract(u),this._rawPxBounds.max.add(u)]))},_projectLatlngs:function(o,u,h){var m=o[0]instanceof fe,w=o.length,P,R;if(m){for(R=[],P=0;P<w;P++)R[P]=this._map.latLngToLayerPoint(o[P]),h.extend(R[P]);u.push(R)}else for(P=0;P<w;P++)this._projectLatlngs(o[P],u,h)},_clipPoints:function(){var o=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(o))){if(this.options.noClip){this._parts=this._rings;return}var u=this._parts,h,m,w,P,R,j,D;for(h=0,w=0,P=this._rings.length;h<P;h++)for(D=this._rings[h],m=0,R=D.length;m<R-1;m++)j=y0(D[m],D[m+1],o,m,!0),j&&(u[w]=u[w]||[],u[w].push(j[0]),(j[1]!==D[m+1]||m===R-2)&&(u[w].push(j[1]),w++))}},_simplifyPoints:function(){for(var o=this._parts,u=this.options.smoothFactor,h=0,m=o.length;h<m;h++)o[h]=p0(o[h],u)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(o,u){var h,m,w,P,R,j,D=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(o))return!1;for(h=0,P=this._parts.length;h<P;h++)for(j=this._parts[h],m=0,R=j.length,w=R-1;m<R;w=m++)if(!(!u&&m===0)&&m0(o,j[w],j[m])<=D)return!0;return!1}});function vA(o,u){return new $r(o,u)}$r._flat=v0;var fo=$r.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length}
230,getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return f0(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(o){var u=$r.prototype._convertLatLngs.call(this,o),h=u.length;return h>=2&&u[0]instanceof fe&&u[0].equals(u[h-1])&&u.pop(),u},_setLatLngs:function(o){$r.prototype._setLatLngs.call(this,o),_n(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return _n(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var o=this._renderer._bounds,u=this.options.weight,h=new N(u,u);if(o=new Q(o.min.subtract(h),o.max.add(h)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(o))){if(this.options.noClip){this._parts=this._rings;return}for(var m=0,w=this._rings.length,P;m<w;m++)P=h0(this._rings[m],o,!0),P.length&&this._parts.push(P)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(o){var u=!1,h,m,w,P,R,j,D,V;if(!this._pxBounds||!this._pxBounds.contains(o))return!1;for(P=0,D=this._parts.length;P<D;P++)for(h=this._parts[P],R=0,V=h.length,j=V-1;R<V;j=R++)m=h[R],w=h[j],m.y>o.y!=w.y>o.y&&o.x<(w.x-m.x)*(o.y-m.y)/(w.y-m.y)+m.x&&(u=!u);return u||$r.prototype._containsPoint.call(this,o,!0)}});function wA(o,u){return new fo(o,u)}var Ur=Fr.extend({initialize:function(o,u){_(this,u),this._layers={},o&&this.addData(o)},addData:function(o){var u=k(o)?o:o.features,h,m,w;if(u){for(h=0,m=u.length;h<m;h++)w=u[h],(w.geometries||w.geometry||w.features||w.coordinates)&&this.addData(w);return this}var P=this.options;if(P.filter&&!P.filter(o))return this;var R=sc(o,P);return R?(R.feature=lc(o),R.defaultOptions=R.options,this.resetStyle(R),P.onEachFeature&&P.onEachFeature(o,R),this.addLayer(R)):this},resetStyle:function(o){return o===void 0?this.eachLayer(this.resetStyle,this):(o.options=i({},o.defaultOptions),this._setLayerStyle(o,this.options.style),this)},setStyle:function(o){return this.eachLayer(function(u){this._setLayerStyle(u,o)},this)},_setLayerStyle:function(o,u){o.setStyle&&(typeof u=="function"&&(u=u(o.feature)),o.setStyle(u))}});function sc(o,u){var h=o.type==="Feature"?o.geometry:o,m=h?h.coordinates:null,w=[],P=u&&u.pointToLayer,R=u&&u.coordsToLatLng||Rf,j,D,V,Y;if(!m&&!h)return null;switch(h.type){case"Point":return j=R(m),x0(P,o,j,u);case"MultiPoint":for(V=0,Y=m.length;V<Y;V++)j=R(m[V]),w.push(x0(P,o,j,u));return new Fr(w);case"LineString":case"MultiLineString":return D=oc(m,h.type==="LineString"?0:1,R),new $r(D,u);case"Polygon":case"MultiPolygon":return D=oc(m,h.type==="Polygon"?1:2,R),new fo(D,u);case"GeometryCollection":for(V=0,Y=h.geometries.length;V<Y;V++){var pe=sc({geometry:h.geometries[V],type:"Feature",properties:o.properties},u);pe&&w.push(pe)}return new Fr(w);case"FeatureCollection":for(V=0,Y=h.features.length;V<Y;V++){var Te=sc(h.features[V],u);Te&&w.push(Te)}return new Fr(w);default:throw new Error("Invalid GeoJSON object.")}}function x0(o,u,h,m){return o?o(u,h):new rc(h,m&&m.markersInheritOptions&&m)}function Rf(o){return new fe(o[1],o[0],o[2])}function oc(o,u,h){for(var m=[],w=0,P=o.length,R;w<P;w++)R=u?oc(o[w],u-1,h):(h||Rf)(o[w]),m.push(R);return m}function Lf(o,u){return o=de(o),o.alt!==void 0?[g(o.lng,u),g(o.lat,u),g(o.alt,u)]:[g(o.lng,u),g(o.lat,u)]}function ac(o,u,h,m){for(var w=[],P=0,R=o.length;P<R;P++)w.push(u?ac(o[P],_n(o[P])?0:u-1,h,m):Lf(o[P],m));return!u&&h&&w.length>0&&w.push(w[0].slice()),w}function po(o,u){return o.feature?i({},o.feature,{geometry:u}):lc(u)}function lc(o){return o.type==="Feature"||o.type==="FeatureCollection"?o:{type:"Feature",properties:{},geometry:o}}var Of={toGeoJSON:function(o){return po(this,{type:"Point",coordinates:Lf(this.getLatLng(),o)})}};rc.include(Of),Af.include(Of),ic.include(Of),$r.include({toGeoJSON:function(o){var u=!_n(this._latlngs),h=ac(this._latlngs,u?1:0,!1,o);return po(this,{type:(u?"Multi":"")+"LineString",coordinates:h})}}),fo.include({toGeoJSON:function(o){var u=!_n(this._latlngs),h=u&&!_n(this._latlngs[0]),m=ac(this._latlngs,h?2:u?1:0,!0,o);return u||(m=[m]),po(this,{type:(h?"Multi":"")+"Polygon",coordinates:m})}}),co.include({toMultiPoint:function(o){var u=[];return this.eachLayer(function(h){u.push(h.toGeoJSON(o).geometry.coordinates)}),po(this,{type:"MultiPoint",coordinates:u})},toGeoJSON:function(o){var u=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(u==="MultiPoint")return this.toMultiPoint(o);var h=u==="GeometryCollection",m=[];return this.eachLayer(function(w){if(w.toGeoJSON){var P=w.toGeoJSON(o);
vendor: 8,718 bytes, line 230
230if(h)m.push(P.geometry);else{var R=lc(P);R.type==="FeatureCollection"?m.push.apply(m,R.features):m.push(R)}}}),h?po(this,{geometries:m,type:"GeometryCollection"}):{type:"FeatureCollection",features:m}}});function k0(o,u){return new Ur(o,u)}var _A=k0,uc=Bn.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(o,u,h){this._url=o,this._bounds=le(u),_(this,h)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(Se(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Ze(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(o){return this.options.opacity=o,this._image&&this._updateOpacity(),this},setStyle:function(o){return o.opacity&&this.setOpacity(o.opacity),this},bringToFront:function(){return this._map&&lo(this._image),this},bringToBack:function(){return this._map&&uo(this._image),this},setUrl:function(o){return this._url=o,this._image&&(this._image.src=o),this},setBounds:function(o){return this._bounds=le(o),this._map&&this._reset(),this},getEvents:function(){var o={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(o.zoomanim=this._animateZoom),o},setZIndex:function(o){return this.options.zIndex=o,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var o=this._url.tagName==="IMG",u=this._image=o?this._url:Oe("img");if(Se(u,"leaflet-image-layer"),this._zoomAnimated&&Se(u,"leaflet-zoom-animated"),this.options.className&&Se(u,this.options.className),u.onselectstart=p,u.onmousemove=p,u.onload=a(this.fire,this,"load"),u.onerror=a(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(u.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),o){this._url=u.src;return}u.src=this._url,u.alt=this.options.alt},_animateZoom:function(o){var u=this._map.getZoomScale(o.zoom),h=this._map._latLngBoundsToNewLayerBounds(this._bounds,o.zoom,o.center).min;ys(this._image,h,u)},_reset:function(){var o=this._image,u=new Q(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),h=u.getSize();ut(o,u.min),o.style.width=h.x+"px",o.style.height=h.y+"px"},_updateOpacity:function(){wn(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 o=this.options.errorOverlayUrl;o&&this._url!==o&&(this._url=o,this._image.src=o)},getCenter:function(){return this._bounds.getCenter()}}),bA=function(o,u,h){return new uc(o,u,h)},S0=uc.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var o=this._url.tagName==="VIDEO",u=this._image=o?this._url:Oe("video");if(Se(u,"leaflet-image-layer"),this._zoomAnimated&&Se(u,"leaflet-zoom-animated"),this.options.className&&Se(u,this.options.className),u.onselectstart=p,u.onmousemove=p,u.onloadeddata=a(this.fire,this,"load"),o){for(var h=u.getElementsByTagName("source"),m=[],w=0;w<h.length;w++)m.push(h[w].src);this._url=h.length>0?m:[u.src];return}k(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(u.style,"objectFit")&&(u.style.objectFit="fill"),u.autoplay=!!this.options.autoplay,u.loop=!!this.options.loop,u.muted=!!this.options.muted,u.playsInline=!!this.options.playsInline;for(var P=0;P<this._url.length;P++){var R=Oe("source");R.src=this._url[P],u.appendChild(R)}}});function xA(o,u,h){return new S0(o,u,h)}var T0=uc.extend({_initImage:function(){var o=this._image=this._url;Se(o,"leaflet-image-layer"),this._zoomAnimated&&Se(o,"leaflet-zoom-animated"),this.options.className&&Se(o,this.options.className),o.onselectstart=p,o.onmousemove=p}});function kA(o,u,h){return new T0(o,u,h)}var gr=Bn.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(o,u){o&&(o instanceof fe||k(o))?(this._latlng=de(o),_(this,u)):(_(this,o),this._source=u),this.options.content&&(this._content=this.options.content)},openOn:function(o){return o=arguments.length?o:this._source._map,o.hasLayer(this)||o.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(o){return this._map?this.close():(arguments.length?this._source=o:o=this._source,this._prepareOpen(),this.openOn(o._map)),this},onAdd:function(o){this._zoomAnimated=o._zoomAnimated,this._container||this._initLayout(),o._fadeAnimated&&wn(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),o._fadeAnimated&&wn(this._container,1),this.bringToFront(),this.options.interactive&&(Se(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(o){o._fadeAnimated?(wn(this._container,0),this._removeTimeout=setTimeout(a(Ze,void 0,this._container),200)):Ze(this._container),this.options.interactive&&(st(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(o){return this._latlng=de(o),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(o){return this._content=o,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 o={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(o.zoomanim=this._animateZoom),o},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&lo(this._container),this},bringToBack:function(){return this._map&&uo(this._container),this},_prepareOpen:function(o){var u=this._source;if(!u._map)return!1;if(u instanceof Fr){u=null;var h=this._source._layers;for(var m in h)if(h[m]._map){u=h[m];break}if(!u)return!1;this._source=u}if(!o)if(u.getCenter)o=u.getCenter();else if(u.getLatLng)o=u.getLatLng();else if(u.getBounds)o=u.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(o),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var o=this._contentNode,u=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof u=="string")o.innerHTML=u;else{for(;o.hasChildNodes();)o.removeChild(o.firstChild);o.appendChild(u)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var o=this._map.latLngToLayerPoint(this._latlng),u=z(this.options.offset),h=this._getAnchor();this._zoomAnimated?ut(this._container,o.add(h)):u=u.add(o).add(h);var m=this._containerBottom=-u.y,w=this._containerLeft=-Math.round(this._containerWidth/2)+u.x;this._container.style.bottom=m+"px",this._container.style.left=w+"px"}},_getAnchor:function(){return[0,0]}});Ae.include({_initOverlay:function(o,u,h,m){var w=u;return w instanceof o||(w=new o(m).setContent(u)),h&&w.setLatLng(h),w}}),Bn.include({_initOverlay:function(o,u,h,m){var w=h;return w instanceof o?(_(w,m),w._source=this):(w=u&&!m?u:new o(m,this),w.setContent(h)),w}});var cc=gr.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(o){return o=arguments.length?o:this._source._map,!o.hasLayer(this)&&o._popup&&o._popup.options.autoClose&&o.removeLayer(o._popup),o._popup=this,gr.prototype.openOn.call(this,o)},onAdd:function(o){gr.prototype.onAdd.call(this,o),o.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof gi||this._source.on("preclick",ws))},onRemove:function(o){gr.prototype.onRemove.call(this,o),o.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof gi||this._source.off("preclick",ws))},getEvents:function(){var o=gr.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(o.preclick=this.close),this.options.keepInView&&
230(o.moveend=this._adjustPan),o},_initLayout:function(){var o="leaflet-popup",u=this._container=Oe("div",o+" "+(this.options.className||"")+" leaflet-zoom-animated"),h=this._wrapper=Oe("div",o+"-content-wrapper",u);if(this._contentNode=Oe("div",o+"-content",h),Xa(u),bf(this._contentNode),_e(u,"contextmenu",ws),this._tipContainer=Oe("div",o+"-tip-container",u),this._tip=Oe("div",o+"-tip",this._tipContainer),this.options.closeButton){var m=this._closeButton=Oe("a",o+"-close-button",u);m.setAttribute("role","button"),m.setAttribute("aria-label","Close popup"),m.href="#close",m.innerHTML='<span aria-hidden="true">&#215;</span>',_e(m,"click",function(w){xt(w),this.close()},this)}},_updateLayout:function(){var o=this._contentNode,u=o.style;u.width="",u.whiteSpace="nowrap";var h=o.offsetWidth;h=Math.min(h,this.options.maxWidth),h=Math.max(h,this.options.minWidth),u.width=h+1+"px",u.whiteSpace="",u.height="";var m=o.offsetHeight,w=this.options.maxHeight,P="leaflet-popup-scrolled";w&&m>w?(u.height=w+"px",Se(o,P)):st(o,P),this._containerWidth=this._container.offsetWidth},_animateZoom:function(o){var u=this._map._latLngToNewLayerPoint(this._latlng,o.zoom,o.center),h=this._getAnchor();ut(this._container,u.add(h))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var o=this._map,u=parseInt(Za(this._container,"marginBottom"),10)||0,h=this._container.offsetHeight+u,m=this._containerWidth,w=new N(this._containerLeft,-h-this._containerBottom);w._add(vs(this._container));var P=o.layerPointToContainerPoint(w),R=z(this.options.autoPanPadding),j=z(this.options.autoPanPaddingTopLeft||R),D=z(this.options.autoPanPaddingBottomRight||R),V=o.getSize(),Y=0,pe=0;P.x+m+D.x>V.x&&(Y=P.x+m-V.x+D.x),P.x-Y-j.x<0&&(Y=P.x-j.x),P.y+h+D.y>V.y&&(pe=P.y+h-V.y+D.y),P.y-pe-j.y<0&&(pe=P.y-j.y),(Y||pe)&&(this.options.keepInView&&(this._autopanning=!0),o.fire("autopanstart").panBy([Y,pe]))}},_getAnchor:function(){return z(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),SA=function(o,u){return new cc(o,u)};Ae.mergeOptions({closePopupOnClick:!0}),Ae.include({openPopup:function(o,u,h){return this._initOverlay(cc,o,u,h).openOn(this),this},closePopup:function(o){return o=arguments.length?o:this._popup,o&&o.close(),this}}),Bn.include({bindPopup:function(o,u){return this._popup=this._initOverlay(cc,this._popup,o,u),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(o){return this._popup&&(this instanceof Fr||(this._popup._source=this),this._popup._prepareOpen(o||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(o){return this._popup&&this._popup.setContent(o),this},getPopup:function(){return this._popup},_openPopup:function(o){if(!(!this._popup||!this._map)){_s(o);var u=o.layer||o.target;if(this._popup._source===u&&!(u instanceof gi)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(o.latlng);return}this._popup._source=u,this.openPopup(o.latlng)}},_movePopup:function(o){this._popup.setLatLng(o.latlng)},_onKeyPress:function(o){o.originalEvent.keyCode===13&&this._openPopup(o)}});var dc=gr.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(o){gr.prototype.onAdd.call(this,o),this.setOpacity(this.options.opacity),o.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(o){gr.prototype.onRemove.call(this,o),o.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var o=gr.prototype.getEvents.call(this);return this.options.permanent||(o.preclick=this.close),o},_initLayout:function(){var o="leaflet-tooltip",u=o+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=Oe("div",u),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+c(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(o){var u,h,m=this._map,w=this._container,P=m.latLngToContainerPoint(m.getCenter()),R=m.layerPointToContainerPoint(o),j=this.options.direction,D=w.offsetWidth,V=w.offsetHeight,Y=z(this.options.offset),pe=this._getAnchor();j==="top"?(u=D/2,h=V):j==="bottom"?(u=D/2,h=0):j==="center"?(u=D/2,h=V/2):j==="right"?(u=0,h=V/2):j==="left"?
vendor: 7,254 bytes, line 230
230(u=D,h=V/2):R.x<P.x?(j="right",u=0,h=V/2):(j="left",u=D+(Y.x+pe.x)*2,h=V/2),o=o.subtract(z(u,h,!0)).add(Y).add(pe),st(w,"leaflet-tooltip-right"),st(w,"leaflet-tooltip-left"),st(w,"leaflet-tooltip-top"),st(w,"leaflet-tooltip-bottom"),Se(w,"leaflet-tooltip-"+j),ut(w,o)},_updatePosition:function(){var o=this._map.latLngToLayerPoint(this._latlng);this._setPosition(o)},setOpacity:function(o){this.options.opacity=o,this._container&&wn(this._container,o)},_animateZoom:function(o){var u=this._map._latLngToNewLayerPoint(this._latlng,o.zoom,o.center);this._setPosition(u)},_getAnchor:function(){return z(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),TA=function(o,u){return new dc(o,u)};Ae.include({openTooltip:function(o,u,h){return this._initOverlay(dc,o,u,h).openOn(this),this},closeTooltip:function(o){return o.close(),this}}),Bn.include({bindTooltip:function(o,u){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(dc,this._tooltip,o,u),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(o){if(!(!o&&this._tooltipHandlersAdded)){var u=o?"off":"on",h={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?h.add=this._openTooltip:(h.mouseover=this._openTooltip,h.mouseout=this.closeTooltip,h.click=this._openTooltip,this._map?this._addFocusListeners():h.add=this._addFocusListeners),this._tooltip.options.sticky&&(h.mousemove=this._moveTooltip),this[u](h),this._tooltipHandlersAdded=!o}},openTooltip:function(o){return this._tooltip&&(this instanceof Fr||(this._tooltip._source=this),this._tooltip._prepareOpen(o)&&(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(o){return this._tooltip&&this._tooltip.setContent(o),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(o){var u=typeof o.getElement=="function"&&o.getElement();u&&(_e(u,"focus",function(){this._tooltip._source=o,this.openTooltip()},this),_e(u,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(o){var u=typeof o.getElement=="function"&&o.getElement();u&&u.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(o){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var u=this;this._map.once("moveend",function(){u._openOnceFlag=!1,u._openTooltip(o)});return}this._tooltip._source=o.layer||o.target,this.openTooltip(this._tooltip.options.sticky?o.latlng:void 0)}},_moveTooltip:function(o){var u=o.latlng,h,m;this._tooltip.options.sticky&&o.originalEvent&&(h=this._map.mouseEventToContainerPoint(o.originalEvent),m=this._map.containerPointToLayerPoint(h),u=this._map.layerPointToLatLng(m)),this._tooltip.setLatLng(u)}});var P0=ho.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(o){var u=o&&o.tagName==="DIV"?o:document.createElement("div"),h=this.options;if(h.html instanceof Element?(Yu(u),u.appendChild(h.html)):u.innerHTML=h.html!==!1?h.html:"",h.bgPos){var m=z(h.bgPos);u.style.backgroundPosition=-m.x+"px "+-m.y+"px"}return this._setIconStyles(u,"icon"),u},createShadow:function(){return null}});function PA(o){return new P0(o)}ho.Default=tl;var nl=Bn.extend({options:{tileSize:256,opacity:1,updateWhenIdle:ue.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(o){_(this,o)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(o){o._addZoomLimit(this)},onRemove:function(o){this._removeAllTiles(),Ze(this._container),o._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(lo(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(uo(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(o){return this.options.opacity=o,this._updateOpacity(),this},setZIndex:function(o){return this.options.zIndex=o,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var o=this._clampZoom(this._map.getZoom());o!==this._tileZoom&&(this._tileZoom=o,this._updateLevels()),this._update()}return this},getEvents:function(){var o={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=d(this._onMoveEnd,this.options.updateInterval,this)),o.move=this._onMove),this._zoomAnimated&&(o.zoomanim=this._animateZoom),o},createTile:function(){return document.createElement("div")},getTileSize:function(){var o=this.options.tileSize;return o instanceof N?o:new N(o,o)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(o){for(var u=this.getPane().children,h=-o(-1/0,1/0),m=0,w=u.length,P;m<w;m++)P=u[m].style.zIndex,u[m]!==this._container&&P&&(h=o(h,+P));isFinite(h)&&(this.options.zIndex=h+o(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!ue.ielt9){wn(this._container,this.options.opacity);var o=+new Date,u=!1,h=!1;for(var m in this._tiles){var w=this._tiles[m];if(!(!w.current||!w.loaded)){var P=Math.min(1,(o-w.loaded)/200);wn(w.el,P),P<1?u=!0:(w.active?h=!0:this._onOpaqueTile(w),w.active=!0)}}h&&!this._noPrune&&this._pruneTiles(),u&&(Z(this._fadeFrame),this._fadeFrame=J(this._updateOpacity,this))}},_onOpaqueTile:p,_initContainer:function(){this._container||(this._container=Oe("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var o=this._tileZoom,u=this.options.maxZoom;if(o!==void 0){for(var h in this._levels)h=Number(h),this._levels[h].el.children.length||h===o?(this._levels[h].el.style.zIndex=u-Math.abs(o-h),this._onUpdateLevel(h)):(Ze(this._levels[h].el),this._removeTilesAtZoom(h),this._onRemoveLevel(h),delete this._levels[h]);var m=this._levels[o],w=this._map;return m||(m=this._levels[o]={},m.el=Oe("div","leaflet-tile-container leaflet-zoom-animated",this._container),m.el.style.zIndex=u,m.origin=w.project(w.unproject(w.getPixelOrigin()),o).roun
230d(),m.zoom=o,this._setZoomTransform(m,w.getCenter(),w.getZoom()),p(m.el.offsetWidth),this._onCreateLevel(m)),this._level=m,m}},_onUpdateLevel:p,_onRemoveLevel:p,_onCreateLevel:p,_pruneTiles:function(){if(this._map){var o,u,h=this._map.getZoom();if(h>this.options.maxZoom||h<this.options.minZoom){this._removeAllTiles();return}for(o in this._tiles)u=this._tiles[o],u.retain=u.current;for(o in this._tiles)if(u=this._tiles[o],u.current&&!u.active){var m=u.coords;this._retainParent(m.x,m.y,m.z,m.z-5)||this._retainChildren(m.x,m.y,m.z,m.z+2)}for(o in this._tiles)this._tiles[o].retain||this._removeTile(o)}},_removeTilesAtZoom:function(o){for(var u in this._tiles)this._tiles[u].coords.z===o&&this._removeTile(u)},_removeAllTiles:function(){for(var o in this._tiles)this._removeTile(o)},_invalidateAll:function(){for(var o in this._levels)Ze(this._levels[o].el),this._onRemoveLevel(Number(o)),delete this._levels[o];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(o,u,h,m){var w=Math.floor(o/2),P=Math.floor(u/2),R=h-1,j=new N(+w,+P);j.z=+R;var D=this._tileCoordsToKey(j),V=this._tiles[D];return V&&V.active?(V.retain=!0,!0):(V&&V.loaded&&(V.retain=!0),R>m?this._retainParent(w,P,R,m):!1)},_retainChildren:function(o,u,h,m){for(var w=2*o;w<2*o+2;w++)for(var P=2*u;P<2*u+2;P++){var R=new N(w,P);R.z=h+1;var j=this._tileCoordsToKey(R),D=this._tiles[j];if(D&&D.active){D.retain=!0;continue}else D&&D.loaded&&(D.retain=!0);h+1<m&&this._retainChildren(w,P,h+1,m)}},_resetView:function(o){var u=o&&(o.pinch||o.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),u,u)},_animateZoom:function(o){this._setView(o.center,o.zoom,!0,o.noUpdate)},_clampZoom:function(o){var u=this.options;return u.minNativeZoom!==void 0&&o<u.minNativeZoom?u.minNativeZoom:u.maxNativeZoom!==void 0&&u.maxNativeZoom<o?u.maxNativeZoom:o},_setView:function(o,u,h,m){var w=Math.round(u);this.options.maxZoom!==void 0&&w>this.options.maxZoom||this.options.minZoom!==void 0&&w<this.options.minZoom?w=void 0:w=this._clampZoom(w);var P=this.options.updateWhenZooming&&w!==this._tileZoom;(!m||P)&&(this._tileZoom=w,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),w!==void 0&&this._update(o),h||this._pruneTiles(),this._noPrune=!!h),this._setZoomTransforms(o,u)},_setZoomTransforms:function(o,u){for(var h in this._levels)this._setZoomTransform(this._levels[h],o,u)},_setZoomTransform:function(o,u,h){var m=this._map.getZoomScale(h,o.zoom),w=o.origin.multiplyBy(m).subtract(this._map._getNewPixelOrigin(u,h)).round();ue.any3d?ys(o.el,w,m):ut(o.el,w)},_resetGrid:function(){var o=this._map,u=o.options.crs,h=this._tileSize=this.getTileSize(),m=this._tileZoom,w=this._map.getPixelWorldBounds(this._tileZoom);w&&(this._globalTileRange=this._pxBoundsToTileRange(w)),this._wrapX=u.wrapLng&&!this.options.noWrap&&[Math.floor(o.project([0,u.wrapLng[0]],m).x/h.x),Math.ceil(o.project([0,u.wrapLng[1]],m).x/h.y)],this._wrapY=u.wrapLat&&!this.options.noWrap&&[Math.floor(o.project([u.wrapLat[0],0],m).y/h.x),Math.ceil(o.project([u.wrapLat[1],0],m).y/h.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(o){var u=this._map,h=u._animatingZoom?Math.max(u._animateToZoom,u.getZoom()):u.getZoom(),m=u.getZoomScale(h,this._tileZoom),w=u.project(o,this._tileZoom).floor(),P=u.getSize().divideBy(m*2);return new Q(w.subtract(P),w.add(P))},_update:function(o){var u=this._map;if(u){var h=this._clampZoom(u.getZoom());if(o===void 0&&(o=u.getCenter()),this._tileZoom!==void 0){var m=this._getTiledPixelBounds(o),w=this._pxBoundsToTileRange(m),P=w.getCenter(),R=[],j=this.options.keepBuffer,D=new Q(w.getBottomLeft().subtract([j,-j]),w.getTopRight().add([j,-j]));if(!(isFinite(w.min.x)&&isFinite(w.min.y)&&isFinite(w.max.x)&&isFinite(w.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var V in this._tiles){var Y=this._tiles[V].coords;(Y.z!==this._tileZoom||!D.contains(new N(Y.x,Y.y)))&&(this._tiles[V].current=!1)}if(Math.abs(h-this._tileZoom)>1){this._setView(o,h);return}for(var pe=w.min.y;pe<=w.max.y;pe++)for(var Te=w.min.x;Te<=w.max.x;Te++){var Bt=new N(Te,pe);if(Bt.z=this._tileZoom,!!this._isValidTile(Bt)){var vt=this._tiles[this._tileCoordsToKey(Bt)];vt?vt.current=!0:R.push(Bt)}}if(R.sort(function(Gt,go){return Gt.distanceTo(P)-go.distanceTo(P)}),R.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var bn=document.createDocumentFragment();for(Te=0;Te<R.length;Te++)this._addTile(R[Te],bn);this._level.el.appendChild(bn)}}}},_isValidTile:function(o){var u=this._map.options.crs;if(!u.infinite){var h=this._globalTileRange;if(!u.wrapLng&&(o.x<h.min.x||o.x>h.max.x)||!u.wrapLat&&(o.y<h.min.y||o.y>h.max.y))return!1}if(!this.options.bounds)return!0;var m=this._tileCoordsToBounds(o);return le(this.options.bounds).overlaps(m)},_keyToBounds:function(o){return this._tileCoordsToBounds(this._keyToTileCoords(o))},_tileCoordsToNwSe:function(o){var u=this._map,h=this.getTileSize(),m=o.scaleBy(h),w=m.add(h),P=u.unproject(m,o.z),R=u.unproject(w,o.z);return[P,R]},_tileCoordsToBounds:function(o){var u=this._tileCoordsToNwSe(o),h=new ce(u[0],u[1]);return this.options.noWrap||(h=this._map.wrapLatLngBounds(h)),h}
vendor: 6,881 bytes, line 230
230,_tileCoordsToKey:function(o){return o.x+":"+o.y+":"+o.z},_keyToTileCoords:function(o){var u=o.split(":"),h=new N(+u[0],+u[1]);return h.z=+u[2],h},_removeTile:function(o){var u=this._tiles[o];u&&(Ze(u.el),delete this._tiles[o],this.fire("tileunload",{tile:u.el,coords:this._keyToTileCoords(o)}))},_initTile:function(o){Se(o,"leaflet-tile");var u=this.getTileSize();o.style.width=u.x+"px",o.style.height=u.y+"px",o.onselectstart=p,o.onmousemove=p,ue.ielt9&&this.options.opacity<1&&wn(o,this.options.opacity)},_addTile:function(o,u){var h=this._getTilePos(o),m=this._tileCoordsToKey(o),w=this.createTile(this._wrapCoords(o),a(this._tileReady,this,o));this._initTile(w),this.createTile.length<2&&J(a(this._tileReady,this,o,null,w)),ut(w,h),this._tiles[m]={el:w,coords:o,current:!0},u.appendChild(w),this.fire("tileloadstart",{tile:w,coords:o})},_tileReady:function(o,u,h){u&&this.fire("tileerror",{error:u,tile:h,coords:o});var m=this._tileCoordsToKey(o);h=this._tiles[m],h&&(h.loaded=+new Date,this._map._fadeAnimated?(wn(h.el,0),Z(this._fadeFrame),this._fadeFrame=J(this._updateOpacity,this)):(h.active=!0,this._pruneTiles()),u||(Se(h.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:h.el,coords:o})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),ue.ielt9||!this._map._fadeAnimated?J(this._pruneTiles,this):setTimeout(a(this._pruneTiles,this),250)))},_getTilePos:function(o){return o.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(o){var u=new N(this._wrapX?f(o.x,this._wrapX):o.x,this._wrapY?f(o.y,this._wrapY):o.y);return u.z=o.z,u},_pxBoundsToTileRange:function(o){var u=this.getTileSize();return new Q(o.min.unscaleBy(u).floor(),o.max.unscaleBy(u).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var o in this._tiles)if(!this._tiles[o].loaded)return!1;return!0}});function CA(o){return new nl(o)}var mo=nl.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(o,u){this._url=o,u=_(this,u),u.detectRetina&&ue.retina&&u.maxZoom>0?(u.tileSize=Math.floor(u.tileSize/2),u.zoomReverse?(u.zoomOffset--,u.minZoom=Math.min(u.maxZoom,u.minZoom+1)):(u.zoomOffset++,u.maxZoom=Math.max(u.minZoom,u.maxZoom-1)),u.minZoom=Math.max(0,u.minZoom)):u.zoomReverse?u.minZoom=Math.min(u.maxZoom,u.minZoom):u.maxZoom=Math.max(u.minZoom,u.maxZoom),typeof u.subdomains=="string"&&(u.subdomains=u.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(o,u){return this._url===o&&u===void 0&&(u=!0),this._url=o,u||this.redraw(),this},createTile:function(o,u){var h=document.createElement("img");return _e(h,"load",a(this._tileOnLoad,this,u,h)),_e(h,"error",a(this._tileOnError,this,u,h)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(h.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(h.referrerPolicy=this.options.referrerPolicy),h.alt="",h.src=this.getTileUrl(o),h},getTileUrl:function(o){var u={r:ue.retina?"@2x":"",s:this._getSubdomain(o),x:o.x,y:o.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var h=this._globalTileRange.max.y-o.y;this.options.tms&&(u.y=h),u["-y"]=h}return S(this._url,i(u,this.options))},_tileOnLoad:function(o,u){ue.ielt9?setTimeout(a(o,this,null,u),0):o(null,u)},_tileOnError:function(o,u,h){var m=this.options.errorTileUrl;m&&u.getAttribute("src")!==m&&(u.src=m),o(h,u)},_onTileRemove:function(o){o.tile.onload=null},_getZoomForUrl:function(){var o=this._tileZoom,u=this.options.maxZoom,h=this.options.zoomReverse,m=this.options.zoomOffset;return h&&(o=u-o),o+m},_getSubdomain:function(o){var u=Math.abs(o.x+o.y)%this.options.subdomains.length;return this.options.subdomains[u]},_abortLoading:function(){var o,u;for(o in this._tiles)if(this._tiles[o].coords.z!==this._tileZoom&&(u=this._tiles[o].el,u.onload=p,u.onerror=p,!u.complete)){u.src=A;var h=this._tiles[o].coords;Ze(u),delete this._tiles[o],this.fire("tileabort",{tile:u,coords:h})}},_removeTile:function(o){var u=this._tiles[o];if(u)return u.el.setAttribute("src",A),nl.prototype._removeTile.call(this,o)},_tileReady:function(o,u,h){if(!(!this._map||h&&h.getAttribute("src")===A))return nl.prototype._tileReady.call(this,o,u,h)}});function C0(o,u){return new mo(o,u)}var E0=mo.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(o,u){this._url=o;var h=i({},this.defaultWmsParams);for(var m in u)m in this.options||(h[m]=u[m]);u=_(this,u);var w=u.detectRetina&&ue.retina?2:1,P=this.getTileSize();h.width=P.x*w,h.height=P.y*w,this.wmsParams=h},onAdd:function(o){this._crs=this.options.crs||o.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var u=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[u]=this._crs.code,mo.prototype.onAdd.call(this,o)},getTileUrl:function(o){var u=this._tileCoordsToNwSe(o),h=this._crs,m=ee(h.project(u[0]),h.project(u[1])),w=m.min,P=m.max,R=(this._wmsVersion>=1.3&&this._crs===_0?[w.y,w.x,P.y,P.x]:[w.x,w.y,P.x,P.y]).join(","),j=mo.prototype.getTileUrl.call(this,o);return j+T(this.wmsParams,j,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+R},setParams:function(o,u){return i(this.wmsParams,o),u||this.redraw(),this}});function EA(o,u){return new E0(o,u)}mo.WMS=E0,C0.wms=EA;var Vr=Bn.extend({options:{padding:.1},initialize:function(o){_(this,o),c(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),Se(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 o={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(o.zoomanim=this._onAnimZoom),o},_onAnimZoom:function(o){this._updateTransform(o.center,o.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(o,u){var h=this._map.getZoomScale(u,this._zoom),m=this._map.getSize().multiplyBy(.5+this.options.padding),w=this._map.project(this._center,u),P=m.multiplyBy(-h).add(w).subtract(this._map._getNewPixelOrigin(o,u));ue.any3d?ys(this._container,P,h):ut(this._container,P)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var o in this._layers)this._layers[o]._reset()},_onZoomEnd:function(){for(var o in this._layers)this._layers[o]._project()},_updatePaths:function(){for(var o in this._layers)this._layers[o]._update()},_update:function(){var o=this.options.padding,u=this._map.getSize(),h=this._map.containerPointToLayerPoint(u.multiplyBy(-o)).round();
vendor: 3,977 bytes, line 230
230this._bounds=new Q(h,h.add(u.multiplyBy(1+o*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),A0=Vr.extend({options:{tolerance:0},getEvents:function(){var o=Vr.prototype.getEvents.call(this);return o.viewprereset=this._onViewPreReset,o},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Vr.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var o=this._container=document.createElement("canvas");_e(o,"mousemove",this._onMouseMove,this),_e(o,"click dblclick mousedown mouseup contextmenu",this._onClick,this),_e(o,"mouseout",this._handleMouseOut,this),o._leaflet_disable_events=!0,this._ctx=o.getContext("2d")},_destroyContainer:function(){Z(this._redrawRequest),delete this._ctx,Ze(this._container),Be(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var o;this._redrawBounds=null;for(var u in this._layers)o=this._layers[u],o._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Vr.prototype._update.call(this);var o=this._bounds,u=this._container,h=o.getSize(),m=ue.retina?2:1;ut(u,o.min),u.width=m*h.x,u.height=m*h.y,u.style.width=h.x+"px",u.style.height=h.y+"px",ue.retina&&this._ctx.scale(2,2),this._ctx.translate(-o.min.x,-o.min.y),this.fire("update")}},_reset:function(){Vr.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(o){this._updateDashArray(o),this._layers[c(o)]=o;var u=o._order={layer:o,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=u),this._drawLast=u,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(o){this._requestRedraw(o)},_removePath:function(o){var u=o._order,h=u.next,m=u.prev;h?h.prev=m:this._drawLast=m,m?m.next=h:this._drawFirst=h,delete o._order,delete this._layers[c(o)],this._requestRedraw(o)},_updatePath:function(o){this._extendRedrawBounds(o),o._project(),o._update(),this._requestRedraw(o)},_updateStyle:function(o){this._updateDashArray(o),this._requestRedraw(o)},_updateDashArray:function(o){if(typeof o.options.dashArray=="string"){var u=o.options.dashArray.split(/[, ]+/),h=[],m,w;for(w=0;w<u.length;w++){if(m=Number(u[w]),isNaN(m))return;h.push(m)}o.options._dashArray=h}else o.options._dashArray=o.options.dashArray},_requestRedraw:function(o){this._map&&(this._extendRedrawBounds(o),this._redrawRequest=this._redrawRequest||J(this._redraw,this))},_extendRedrawBounds:function(o){if(o._pxBounds){var u=(o.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new Q,this._redrawBounds.extend(o._pxBounds.min.subtract([u,u])),this._redrawBounds.extend(o._pxBounds.max.add([u,u]))}},_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 o=this._redrawBounds;if(o){var u=o.getSize();this._ctx.clearRect(o.min.x,o.min.y,u.x,u.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 o,u=this._redrawBounds;if(this._ctx.save(),u){var h=u.getSize();this._ctx.beginPath(),this._ctx.rect(u.min.x,u.min.y,h.x,h.y),this._ctx.clip()}this._drawing=!0;for(var m=this._drawFirst;m;m=m.next)o=m.layer,(!u||o._pxBounds&&o._pxBounds.intersects(u))&&o._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(o,u){if(this._drawing){var h,m,w,P,R=o._parts,j=R.length,D=this._ctx;if(j){for(D.beginPath(),h=0;h<j;h++){for(m=0,w=R[h].length;m<w;m++)P=R[h][m],D[m?"lineTo":"moveTo"](P.x,P.y);u&&D.closePath()}this._fillStroke(D,o)}}},_updateCircle:function(o){if(!(!this._drawing||o._empty())){var u=o._point,h=this._ctx,m=Math.max(Math.round(o._radius),1),w=(Math.max(Math.round(o._radiusY),1)||m)/m;w!==1&&(h.save(),h.scale(1,w)),h.beginPath(),h.arc(u.x,u.y/w,m,0,Math.PI*2,!1),w!==1&&h.restore(
vendor: 6,422 bytes, line 230
230),this._fillStroke(h,o)}},_fillStroke:function(o,u){var h=u.options;h.fill&&(o.globalAlpha=h.fillOpacity,o.fillStyle=h.fillColor||h.color,o.fill(h.fillRule||"evenodd")),h.stroke&&h.weight!==0&&(o.setLineDash&&o.setLineDash(u.options&&u.options._dashArray||[]),o.globalAlpha=h.opacity,o.lineWidth=h.weight,o.strokeStyle=h.color,o.lineCap=h.lineCap,o.lineJoin=h.lineJoin,o.stroke())},_onClick:function(o){for(var u=this._map.mouseEventToLayerPoint(o),h,m,w=this._drawFirst;w;w=w.next)h=w.layer,h.options.interactive&&h._containsPoint(u)&&(!(o.type==="click"||o.type==="preclick")||!this._map._draggableMoved(h))&&(m=h);this._fireEvent(m?[m]:!1,o)},_onMouseMove:function(o){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var u=this._map.mouseEventToLayerPoint(o);this._handleMouseHover(o,u)}},_handleMouseOut:function(o){var u=this._hoveredLayer;u&&(st(this._container,"leaflet-interactive"),this._fireEvent([u],o,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(o,u){if(!this._mouseHoverThrottled){for(var h,m,w=this._drawFirst;w;w=w.next)h=w.layer,h.options.interactive&&h._containsPoint(u)&&(m=h);m!==this._hoveredLayer&&(this._handleMouseOut(o),m&&(Se(this._container,"leaflet-interactive"),this._fireEvent([m],o,"mouseover"),this._hoveredLayer=m)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,o),this._mouseHoverThrottled=!0,setTimeout(a(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(o,u,h){this._map._fireDOMEvent(u,h||u.type,o)},_bringToFront:function(o){var u=o._order;if(u){var h=u.next,m=u.prev;if(h)h.prev=m;else return;m?m.next=h:h&&(this._drawFirst=h),u.prev=this._drawLast,this._drawLast.next=u,u.next=null,this._drawLast=u,this._requestRedraw(o)}},_bringToBack:function(o){var u=o._order;if(u){var h=u.next,m=u.prev;if(m)m.next=h;else return;h?h.prev=m:m&&(this._drawLast=m),u.prev=null,u.next=this._drawFirst,this._drawFirst.prev=u,this._drawFirst=u,this._requestRedraw(o)}}});function R0(o){return ue.canvas?new A0(o):null}var rl=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(o){return document.createElement("<lvml:"+o+' class="lvml">')}}catch{}return function(o){return document.createElement("<"+o+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),AA={_initContainer:function(){this._container=Oe("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Vr.prototype._update.call(this),this.fire("update"))},_initPath:function(o){var u=o._container=rl("shape");Se(u,"leaflet-vml-shape "+(this.options.className||"")),u.coordsize="1 1",o._path=rl("path"),u.appendChild(o._path),this._updateStyle(o),this._layers[c(o)]=o},_addPath:function(o){var u=o._container;this._container.appendChild(u),o.options.interactive&&o.addInteractiveTarget(u)},_removePath:function(o){var u=o._container;Ze(u),o.removeInteractiveTarget(u),delete this._layers[c(o)]},_updateStyle:function(o){var u=o._stroke,h=o._fill,m=o.options,w=o._container;w.stroked=!!m.stroke,w.filled=!!m.fill,m.stroke?(u||(u=o._stroke=rl("stroke")),w.appendChild(u),u.weight=m.weight+"px",u.color=m.color,u.opacity=m.opacity,m.dashArray?u.dashStyle=k(m.dashArray)?m.dashArray.join(" "):m.dashArray.replace(/( *, *)/g," "):u.dashStyle="",u.endcap=m.lineCap.replace("butt","flat"),u.joinstyle=m.lineJoin):u&&(w.removeChild(u),o._stroke=null),m.fill?(h||(h=o._fill=rl("fill")),w.appendChild(h),h.color=m.fillColor||m.color,h.opacity=m.fillOpacity):h&&(w.removeChild(h),o._fill=null)},_updateCircle:function(o){var u=o._point.round(),h=Math.round(o._radius),m=Math.round(o._radiusY||h);this._setPath(o,o._empty()?"M0 0":"AL "+u.x+","+u.y+" "+h+","+m+" 0,"+65535*360)},_setPath:function(o,u){o._path.v=u},_bringToFront:function(o){lo(o._container)},_bringToBack:function(o){uo(o._container)}},hc=ue.vml?rl:io,il=Vr.extend({_initContainer:function(){this._container=hc("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=hc("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Ze(this._container),Be(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Vr.prototype._update.call(this);var o=this._bounds,u=o.getSize(),h=this._container;(!this._svgSize||!this._svgSize.equals(u))&&(this._svgSize=u,h.setAttribute("width",u.x),h.setAttribute("height",u.y)),ut(h,o.min),h.setAttribute("viewBox",[o.min.x,o.min.y,u.x,u.y].join(" ")),this.fire("update")}},_initPath:function(o){var u=o._path=hc("path");o.options.className&&Se(u,o.options.className),o.options.interactive&&Se(u,"leaflet-interactive"),this._updateStyle(o),this._layers[c(o)]=o},_addPath:function(o){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(o._path),o.addInteractiveTarget(o._path)},_removePath:function(o){Ze(o._path),o.removeInteractiveTarget(o._path),delete this._layers[c(o)]},_updatePath:function(o){o._project(),o._update()},_updateStyle:function(o){var u=o._path,h=o.options;u&&(h.stroke?(u.setAttribute("stroke",h.color),u.setAttribute("stroke-opacity",h.opacity),u.setAttribute("stroke-width",h.weight),u.setAttribute("stroke-linecap",h.lineCap),u.setAttribute("stroke-linejoin",h.lineJoin),h.dashArray?u.setAttribute("stroke-dasharray",h.dashArray):u.removeAttribute("stroke-dasharray"),h.dashOffset?u.setAttribute("stroke-dashoffset",h.dashOffset):u.removeAttribute("stroke-dashoffset")):u.setAttribute("stroke","none"),h.fill?(u.setAttribute("fill",h.fillColor||h.color),u.setAttribute("fill-opacity",h.fillOpacity),u.setAttribute("fill-rule",h.fillRule||"evenodd")):u.setAttribute("fill","none"))},_updatePoly:function(o,u){this._setPath(o,fs(o._parts,u))},_updateCircle:function(o){var u=o._point,h=Math.max(Math.round(o._radius),1),m=Math.max(Math.round(o._radiusY),1)||h,w="a"+h+","+m+" 0 1,0 ",P=o._empty()?"M0 0":"M"+(u.x-h)+","+u.y+w+h*2+",0 "+w+-h*2+",0 ";this._setPath(o,P)},_setPath:function(o,u){o._path.setAttribute("d",u)},_bringToFront:function(o){lo(o._path)},_bringToBack:function(o){uo(o._path)}});ue.vml&&il.include(AA);function L0(o){return ue.svg||ue.vml?new il(o):null}Ae.include({getRenderer:function(o){var u=o.options.renderer||this._getPaneRenderer(o.options.pane)||this.options.renderer||this._renderer;return u||(u=this._renderer=this._createRenderer()),this.hasLayer(u)||this.addLayer(u),u}
230,_getPaneRenderer:function(o){if(o==="overlayPane"||o===void 0)return!1;var u=this._paneRenderers[o];return u===void 0&&(u=this._createRenderer({pane:o}),this._paneRenderers[o]=u),u},_createRenderer:function(o){return this.options.preferCanvas&&R0(o)||L0(o)}});var O0=fo.extend({initialize:function(o,u){fo.prototype.initialize.call(this,this._boundsToLatLngs(o),u)},setBounds:function(o){return this.setLatLngs(this._boundsToLatLngs(o))},_boundsToLatLngs:function(o){return o=le(o),[o.getSouthWest(),o.getNorthWest(),o.getNorthEast(),o.getSouthEast()]}});function RA(o,u){return new O0(o,u)}il.create=hc,il.pointsToPath=fs,Ur.geometryToLayer=sc,Ur.coordsToLatLng=Rf,Ur.coordsToLatLngs=oc,Ur.latLngToCoords=Lf,Ur.latLngsToCoords=ac,Ur.getFeature=po,Ur.asFeature=lc,Ae.mergeOptions({boxZoom:!0});var M0=mr.extend({initialize:function(o){this._map=o,this._container=o._container,this._pane=o._panes.overlayPane,this._resetStateTimeout=0,o.on("unload",this._destroy,this)},addHooks:function(){_e(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Be(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Ze(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(o){if(!o.shiftKey||o.which!==1&&o.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),Ka(),ff(),this._startPoint=this._map.mouseEventToContainerPoint(o),_e(document,{contextmenu:_s,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(o){this._moved||(this._moved=!0,this._box=Oe("div","leaflet-zoom-box",this._container),Se(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(o);var u=new Q(this._point,this._startPoint),h=u.getSize();ut(this._box,u.min),this._box.style.width=h.x+"px",this._box.style.height=h.y+"px"},_finish:function(){this._moved&&(Ze(this._box),st(this._container,"leaflet-crosshair")),Ja(),pf(),Be(document,{contextmenu:_s,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(o){if(!(o.which!==1&&o.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(a(this._resetState,this),0);var u=new ce(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(u).fire("boxzoomend",{boxZoomBounds:u})}},_onKeyDown:function(o){o.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Ae.addInitHook("addHandler","boxZoom",M0),Ae.mergeOptions({doubleClickZoom:!0});var N0=mr.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(o){var u=this._map,h=u.getZoom(),m=u.options.zoomDelta,w=o.originalEvent.shiftKey?h-m:h+m;u.options.doubleClickZoom==="center"?u.setZoom(w):u.setZoomAround(o.containerPoint,w)}});Ae.addInitHook("addHandler","doubleClickZoom",N0),Ae.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var j0=mr.extend({addHooks:function(){if(!this._draggable){var o=this._map;this._draggable=new mi(o._mapPane,o._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),o.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),o.on("zoomend",this._onZoomEnd,this),o.whenReady(this._onZoomEnd,this))}Se(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){st(this._map._container,"leaflet-grab"),st(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved}
vendor: 4,212 bytes, line 230
230,moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var o=this._map;if(o._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var u=le(this._map.options.maxBounds);this._offsetLimit=ee(this._map.latLngToContainerPoint(u.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(u.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;o.fire("movestart").fire("dragstart"),o.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(o){if(this._map.options.inertia){var u=this._lastTime=+new Date,h=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(h),this._times.push(u),this._prunePositions(u)}this._map.fire("move",o).fire("drag",o)},_prunePositions:function(o){for(;this._positions.length>1&&o-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var o=this._map.getSize().divideBy(2),u=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=u.subtract(o).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(o,u){return o-(o-u)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var o=this._draggable._newPos.subtract(this._draggable._startPos),u=this._offsetLimit;o.x<u.min.x&&(o.x=this._viscousLimit(o.x,u.min.x)),o.y<u.min.y&&(o.y=this._viscousLimit(o.y,u.min.y)),o.x>u.max.x&&(o.x=this._viscousLimit(o.x,u.max.x)),o.y>u.max.y&&(o.y=this._viscousLimit(o.y,u.max.y)),this._draggable._newPos=this._draggable._startPos.add(o)}},_onPreDragWrap:function(){var o=this._worldWidth,u=Math.round(o/2),h=this._initialWorldOffset,m=this._draggable._newPos.x,w=(m-u+h)%o+u-h,P=(m+u+h)%o-u-h,R=Math.abs(w+h)<Math.abs(P+h)?w:P;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=R},_onDragEnd:function(o){var u=this._map,h=u.options,m=!h.inertia||o.noInertia||this._times.length<2;if(u.fire("dragend",o),m)u.fire("moveend");else{this._prunePositions(+new Date);var w=this._lastPos.subtract(this._positions[0]),P=(this._lastTime-this._times[0])/1e3,R=h.easeLinearity,j=w.multiplyBy(R/P),D=j.distanceTo([0,0]),V=Math.min(h.inertiaMaxSpeed,D),Y=j.multiplyBy(V/D),pe=V/(h.inertiaDeceleration*R),Te=Y.multiplyBy(-pe/2).round();!Te.x&&!Te.y?u.fire("moveend"):(Te=u._limitOffset(Te,u.options.maxBounds),J(function(){u.panBy(Te,{duration:pe,easeLinearity:R,noMoveStart:!0,animate:!0})}))}}});Ae.addInitHook("addHandler","dragging",j0),Ae.mergeOptions({keyboard:!0,keyboardPanDelta:80});var I0=mr.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(o){this._map=o,this._setPanDelta(o.options.keyboardPanDelta),this._setZoomDelta(o.options.zoomDelta)},addHooks:function(){var o=this._map._container;o.tabIndex<=0&&(o.tabIndex="0"),_e(o,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Be(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 o=document.body,u=document.documentElement,h=o.scrollTop||u.scrollTop,m=o.scrollLeft||u.scrollLeft;this._map._container.focus(),window.scrollTo(m,h)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(o){var u=this._panKeys={},h=this.keyCodes,m,w;for(m=0,w=h.left.length;m<w;m++)u[h.left[m]]=[-1*o,0];for(m=0,w=h.right.length;m<w;m++)u[h.right[m]]=[o,0];for(m=0,w=h.down.length;m<w;m++)u[h.down[m]]=[0,o];for(m=0,w=h.up.length;m<w;m++)u[h.up[m]]=[0,-1*o]},_setZoomDelta:function(o){var u=this._zoomKeys={},h=this.keyCodes,m,w;for(m=0,w=h.zoomIn.length;m<w;m++)u[h.zoomIn[m]]=o;for(m=0,w=h.zoomOut.length;m<w;m++)u[h.zoomOut[m]]=-o},_addHooks:function(){_e(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Be(document,"keydown",this._onKeyDown,this)}
230,_onKeyDown:function(o){if(!(o.altKey||o.ctrlKey||o.metaKey)){var u=o.keyCode,h=this._map,m;if(u in this._panKeys){if(!h._panAnim||!h._panAnim._inProgress)if(m=this._panKeys[u],o.shiftKey&&(m=z(m).multiplyBy(3)),h.options.maxBounds&&(m=h._limitOffset(z(m),h.options.maxBounds)),h.options.worldCopyJump){var w=h.wrapLatLng(h.unproject(h.project(h.getCenter()).add(m)));h.panTo(w)}else h.panBy(m)}else if(u in this._zoomKeys)h.setZoom(h.getZoom()+(o.shiftKey?3:1)*this._zoomKeys[u]);else if(u===27&&h._popup&&h._popup.options.closeOnEscapeKey)h.closePopup();else return;_s(o)}}});Ae.addInitHook("addHandler","keyboard",I0),Ae.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var D0=mr.extend({addHooks:function(){_e(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Be(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(o){var u=a0(o),h=this._map.options.wheelDebounceTime;this._delta+=u,this._lastMousePos=this._map.mouseEventToContainerPoint(o),this._startTime||(this._startTime=+new Date);var m=Math.max(h-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(a(this._performZoom,this),m),_s(o)},_performZoom:function(){var o=this._map,u=o.getZoom(),h=this._map.options.zoomSnap||0;o._stop();var m=this._delta/(this._map.options.wheelPxPerZoomLevel*4),w=4*Math.log(2/(1+Math.exp(-Math.abs(m))))/Math.LN2,P=h?Math.ceil(w/h)*h:w,R=o._limitZoom(u+(this._delta>0?P:-P))-u;this._delta=0,this._startTime=null,R&&(o.options.scrollWheelZoom==="center"?o.setZoom(u+R):o.setZoomAround(this._lastMousePos,u+R))}});Ae.addInitHook("addHandler","scrollWheelZoom",D0);var LA=600;Ae.mergeOptions({tapHold:ue.touchNative&&ue.safari&&ue.mobile,tapTolerance:15});var B0=mr.extend({addHooks:function(){_e(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Be(this._map._container,"touchstart",this._onDown,this)},_onDown:function(o){if(clearTimeout(this._holdTimeout),o.touches.length===1){var u=o.touches[0];this._startPos=this._newPos=new N(u.clientX,u.clientY),this._holdTimeout=setTimeout(a(function(){this._cancel(),this._isTapValid()&&(_e(document,"touchend",xt),_e(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",u))},this),LA),_e(document,"touchend touchcancel contextmenu",this._cancel,this),_e(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function o(){Be(document,"touchend",xt),Be(document,"touchend touchcancel",o)},_cancel:function(){clearTimeout(this._holdTimeout),Be(document,"touchend touchcancel contextmenu",this._cancel,this),Be(document,"touchmove",this._onMove,this)},_onMove:function(o){var u=o.touches[0];this._newPos=new N(u.clientX,u.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(o,u){var h=new MouseEvent(o,{bubbles:!0,cancelable:!0,view:window,screenX:u.screenX,screenY:u.screenY,clientX:u.clientX,clientY:u.clientY});h._simulated=!0,u.target.dispatchEvent(h)}});Ae.addInitHook("addHandler","tapHold",B0),Ae.mergeOptions({touchZoom:ue.touch,bounceAtZoomLimits:!0});var z0=mr.extend({addHooks:function(){Se(this._map._container,"leaflet-touch-zoom"),_e(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){st(this._map._container,"leaflet-touch-zoom"),Be(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(o){var u=this._map;if(!(!o.touches||o.touches.length!==2||u._animatingZoom||this._zooming)){var h=u.mouseEventToContainerPoint(o.touches[0]),m=u.mouseEventToContainerPoint(o.touches[1]);this._centerPoint=u.getSize()._divideBy(2),this._startLatLng=u.containerPointToLatLng(this._centerPoint),u.options.touchZoom!=="center"&&(this._pinchStartLatLng=u.containerPointToLatLng(h.add(m)._divideBy(2))),this._startDist=h.distanceTo(m),this._startZoom=u.getZoom(),this._moved=!1,this._zooming=!0,u._stop(),_e(document,"touchmove",this._onTouchMove,this),_e(document,"touchend touchcancel",this._onTouchEnd,this),xt(o)}}
230,_onTouchMove:function(o){if(!(!o.touches||o.touches.length!==2||!this._zooming)){var u=this._map,h=u.mouseEventToContainerPoint(o.touches[0]),m=u.mouseEventToContainerPoint(o.touches[1]),w=h.distanceTo(m)/this._startDist;if(this._zoom=u.getScaleZoom(w,this._startZoom),!u.options.bounceAtZoomLimits&&(this._zoom<u.getMinZoom()&&w<1||this._zoom>u.getMaxZoom()&&w>1)&&(this._zoom=u._limitZoom(this._zoom)),u.options.touchZoom==="center"){if(this._center=this._startLatLng,w===1)return}else{var P=h._add(m)._divideBy(2)._subtract(this._centerPoint);if(w===1&&P.x===0&&P.y===0)return;this._center=u.unproject(u.project(this._pinchStartLatLng,this._zoom).subtract(P),this._zoom)}this._moved||(u._moveStart(!0,!1),this._moved=!0),Z(this._animRequest);var R=a(u._move,u,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=J(R,this,!0),xt(o)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,Z(this._animRequest),Be(document,"touchmove",this._onTouchMove,this),Be(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))}});Ae.addInitHook("addHandler","touchZoom",z0),Ae.BoxZoom=M0,Ae.DoubleClickZoom=N0,Ae.Drag=j0,Ae.Keyboard=I0,Ae.ScrollWheelZoom=D0,Ae.TapHold=B0,Ae.TouchZoom=z0,n.Bounds=Q,n.Browser=ue,n.CRS=ke,n.Canvas=A0,n.Circle=Af,n.CircleMarker=ic,n.Class=G,n.Control=Dn,n.DivIcon=P0,n.DivOverlay=gr,n.DomEvent=KE,n.DomUtil=GE,n.Draggable=mi,n.Evented=te,n.FeatureGroup=Fr,n.GeoJSON=Ur,n.GridLayer=nl,n.Handler=mr,n.Icon=ho,n.ImageOverlay=uc,n.LatLng=fe,n.LatLngBounds=ce,n.Layer=Bn,n.LayerGroup=co,n.LineUtil=lA,n.Map=Ae,n.Marker=rc,n.Mixin=nA,n.Path=gi,n.Point=N,n.PolyUtil=rA,n.Polygon=fo,n.Polyline=$r,n.Popup=cc,n.PosAnimation=l0,n.Projection=uA,n.Rectangle=O0,n.Renderer=Vr,n.SVG=il,n.SVGOverlay=T0,n.TileLayer=mo,n.Tooltip=dc,n.Transformation=gn,n.Util=ge,n.VideoOverlay=S0,n.bind=a,n.bounds=ee,n.canvas=R0,n.circle=yA,n.circleMarker=gA,n.control=Qa,n.divIcon=PA,n.extend=i,n.featureGroup=fA,n.geoJSON=k0,n.geoJson=_A,n.gridLayer=CA,n.icon=pA,n.imageOverlay=bA,n.latLng=de,n.latLngBounds=le,n.layerGroup=hA,n.map=JE,n.marker=mA,n.point=z,n.polygon=wA,n.polyline=vA,n.popup=SA,n.rectangle=RA,n.setOptions=_,n.stamp=c,n.svg=L0,n.svgOverlay=kA,n.tileLayer=C0,n.tooltip=TA,n.transformation=yn,n.version=r,n.videoOverlay=xA;var OA=window.L;n.noConflict=function(){return window.L=OA,this},window.L=n})})(Mg,Mg.exports);var qz=Mg.exports;const Ke=Ea(qz),uE=[{slug:"logan",name:"Logan County",tagline:"The Highpoint of Arkansas",seat:"Paris",mapCenter:[35.23,-93.65],mapZoom:11,description:"Home to Mount Magazine — Arkansas' highest point — Logan County blends small-town charm with soaring vistas. The town square in Paris features coffeehouses, the iconic 25-foot Eiffel Tower replica, and a Love Lock Fence. Nearby Subiaco Abbey, the oldest Benedictine monastery in the U.S., offers spiritual retreats and historic tours.",chamber:{name:"Paris Area Chamber of Commerce",address:"301 West Walnut, Paris, AR",phone:"(479) 963-2244",website:"https://parisarkansas.com",facebookUrl:"https://www.facebook.com/ParisArkansasChamber"},highlights:["Mount Magazine State Park — Arkansas' highest peak at 2,753 ft","Paris Eiffel Tower replica & Love Lock Fence","Subiaco Abbey — oldest Benedictine monastery in the U.S.","Logan County Museum — Free, Wed–Sat 12–5 PM","Two coffeehouses on the Paris town square","True Grit Trail itineraries"],dining:[{name:"The Skycrest Restaurant",description:"Family restaurant inside The Lodge at Mount Magazine State Park showcasing Arkansas products. Full bar, appetizers, soups, salads, sandwiches, entrees and homemade desserts.",address:"577 Lodge Drive, Paris (Mount Magazine State Park)",phone:"479-963-5131",website:"https://arkansasstateparks.com",meals:"B, L, D",hours:"Open daily 7 a.m.–9 p.m.",mapUrl:"https://maps.google.com/?q=Lodge+at+Mount+Magazine+State+Park+AR",guidebookPage:"p. 38",lat:35.168,lng:-93.646},{name:"Cove Creek Store on Mt. Magazine",description:"True half-pound cheeseburgers made with local Arkansas-raised beef. Chicken tenders, salads, hot sandwiches and homemade desserts. Cabins, RV park and SxS rentals also onsite.",address:"11071 S. AR 309, Paris",phone:"479-963-2702",website:"https://cove-creek.com",meals:"B, L, D",mapUrl:"https://maps.google.com/?q=Cove+Creek+Store+Mount+Magazine+AR",guidebookPage:"p. 27, 38",lat:35.18,lng:-93.64}
230,{name:"Daddio's Pinball & Arcade",description:"Classic arcade fun meets affordable eats. Hot dogs, BBQ sammiches, nachos, chili cheese tots, pretzels and pulled pork tot-chos while you play unlimited pinball and arcade games.",address:"25 N. Elm St., Paris",phone:"479-847-4889",website:"https://daddiospinball.com",meals:"L, D",hours:"Tues–Thurs 11 a.m.–8 p.m., Fri–Sat 11 a.m.–10 p.m.",mapUrl:"https://maps.google.com/?q=Daddios+Pinball+Paris+AR",guidebookPage:"p. 38",lat:35.292,lng:-93.73},{name:"El Parian",description:"Crowd-pleasing Mexican classics — enchiladas, fajitas, burritos, chimichangas and sizzling house specialties. Generous portions and familiar flavors.",address:"2301 W. Walnut St., Paris",phone:"479-963-3710",meals:"L, D",hours:"Open daily 11 a.m.–9 p.m.",mapUrl:"https://maps.google.com/?q=El+Parian+Paris+AR",guidebookPage:"p. 38",lat:35.293,lng:-93.735},{name:"Tiger of Thailand",description:"Classic Thai cuisine — green and panang curries, cashew chicken, spicy noodles, fried rice, egg rolls and rich coconut soup.",address:"27 S. First St., Paris",phone:"479-438-3429",meals:"L, D",hours:"Sun–Fri 11 a.m.–9 p.m.",mapUrl:"https://maps.google.com/?q=Tiger+of+Thailand+Paris+AR",guidebookPage:"p. 38",lat:35.292,lng:-93.731},{name:"22 Brew",description:"Specialty coffee and ice cream shop in downtown Paris. Espresso, hand-dipped ice cream and a unique lunch menu with an Eiffel Tower view. Drive-thru and dine-in.",address:"22 W. Main St., Paris",meals:"B, L",hours:"Mon–Sat 6 a.m.–6 p.m., Sun 8 a.m.–noon",mapUrl:"https://maps.google.com/?q=22+Brew+Paris+AR",guidebookPage:"p. 38, IFC",lat:35.292,lng:-93.73},{name:"True Grit Grounds",description:"Cozy coffee shop on the square in Paris — seasonal treats, seasonal drinks and a variety of teas. 3-time winner of Best Coffee House of the River Valley (2023, 2024, 2025).",address:"12 E. Walnut St., Paris",phone:"479-213-7773",website:"https://truegritgrounds.com",meals:"B, L",mapUrl:"https://maps.google.com/?q=True+Grit+Grounds+Paris+AR",guidebookPage:"p. 39",lat:35.292,lng:-93.73}],attractions:[{name:"Mount Magazine State Park",description:"Arkansas' highest point at 2,753 feet. Technical rock climbing with 100+ routes, hang gliding, mountain biking, ATV trails, and the Huckleberry Mountain Horse Trail. Don't miss Cameron Bluff Overlook!",website:"https://www.arkansasstateparks.com",mapUrl:"https://maps.google.com/?q=Mount+Magazine+State+Park+AR",guidebookPage:"p. 9",lat:35.167,lng:-93.645},{name:"Subiaco Abbey",description:"Founded in 1878, this fully-operating Benedictine monastery preserves archival history. Onsite boarding school, woodworking shop, cooking ventures, and 35-room retreat center at Coury Guest House.",website:"https://countrymonks.org",mapUrl:"https://maps.google.com/?q=Subiaco+Abbey+AR",guidebookPage:"p. 2, 12",lat:35.3,lng:-93.64},{name:"Logan County Museum",description:"Free to the public. Historical artifacts and exhibits preserving Logan County heritage.",address:"202 N. Vine St., Paris",phone:"479-963-3936",hours:"Wed–Sat 12–5 PM",mapUrl:"https://maps.google.com/?q=Logan+County+Museum+Paris+AR",guidebookPage:"Inside Front Cover",lat:35.29,lng:-93.73},{name:"Paris Eiffel Tower & Love Lock Fence",description:"25-foot Eiffel Tower replica and Love Lock Fence on the town square — both inspired by Paris, France.",mapUrl:"https://maps.google.com/?q=Eiffel+Tower+Paris+AR",guidebookPage:"Inside Front Cover",lat:35.292,lng:-93.73},{name:"Cove Lake",description:"At the base of Mount Magazine. Ideal for families — catfish, bass and perch, plus boating and swimming.",mapUrl:"https://maps.google.com/?q=Cove+Lake+Paris+AR",guidebookPage:"p. 29",lat:35.23,lng:-93.63},{name:"Blue Mountain Lake",description:"Scenic lake near Mount Magazine with fishing and boating.",mapUrl:"https://maps.google.com/?q=Blue+Mountain+Lake+AR",guidebookPage:"p. 4, 16, 29",lat:35.1,lng:-93.68},{name:"Coal Miners Memorial & Museum",description:"Tribute to the miners who shaped Logan County's identity, with exhibits, photographs and artifacts honoring the region's coal-mining heritage.",address:"Paris, AR",mapUrl:"https://maps.google.com/?q=Coal+Miners+Memorial+Paris+AR",guidebookPage:"p. 13",lat:35.291,lng:-93.729}],lodging:[{name:"The Lodge at Mount Magazine",description:"Stunning views of the Petit Jean River Valley and Blue Mountain 
230Lake. 60 guest rooms, restaurant, conference center, heated indoor pool, fitness center and game room. Cabins and campsites also available.",website:"https://lodgesofarkansas.com",mapUrl:"https://maps.google.com/?q=Lodge+at+Mount+Magazine+State+Park+AR",lat:35.168,lng:-93.646},{name:"Subiaco Abbey — Coury Guest House",description:"35 rooms for individual or group retreats. Unplug and spend a few days at a different pace with actual monks.",website:"https://countrymonks.org",mapUrl:"https://maps.google.com/?q=Subiaco+Abbey+AR",guidebookPage:"p. 12",lat:35.3,lng:-93.64},{name:"Paris Bed & Bath",description:"Charming bed and bath accommodations in the heart of Paris, Arkansas — walking distance to the Eiffel Tower and town square coffeehouses.",address:"Paris, AR",guidebookPage:"p. 40",lat:35.292,lng:-93.729},{name:"God's Country Campground",description:"Spacious, all-electric campsites for both your RV and your SxS — great base for Mt. Magazine adventures.",guidebookPage:"p. 20, 40",lat:35.2,lng:-93.65}],events:[{name:"Spring Time in Paris Fest",date:"First Saturday of May",description:"Famous Duck Races in the Eiffel Tower fountain, live entertainment, pageants and amazing food and craft vendors."}],drinks:[{name:"22 Brew",description:"Bright, inviting setting with specialty coffees, hand-dipped ice cream, snacks, and an Eiffel Tower view. Open until 8 p.m. on weekends.",address:"102 West Walnut Street, Paris",phone:"(479) 847-2767",website:"https://22brew.org",mapUrl:"https://maps.google.com/?q=22+Brew+Paris+AR",guidebookPage:"Inside Front Cover, p. 38",lat:35.292,lng:-93.731},{name:"True Grit Grounds",description:"Cozy coffee and tea house with specialty espresso drinks, fresh teas, lunch items, breakfast pastries and soft serve.",address:"12 E. Walnut Street, Paris",phone:"479-213-7773",website:"https://truegritgrounds.com",mapUrl:"https://maps.google.com/?q=True+Grit+Grounds+Paris+AR",guidebookPage:"p. 38",lat:35.291,lng:-93.73},{name:"Stirling Roastery",description:"Roasts beans from around the world with 14 flavor offerings. Pick up a ground bag or try a brewed cup.",address:"Paris, AR",mapUrl:"https://maps.google.com/?q=Stirling+Roastery+Paris+AR",lat:35.293,lng:-93.729},{name:"Pridgin Family Brewery",description:"Character-rich brewery in Scranton with farmland views, mouthwatering ales and IPAs. Tables and tap handles made from repurposed family wood. Try the Homestead IPA or Bluff Ferry Porter.",address:"Scranton, AR",hours:"Open Thu–Sun",mapUrl:"https://maps.google.com/?q=Pridgin+Family+Brewery+Scranton+AR",lat:35.362,lng:-93.542},{name:"Prestonrose Farm and Brewery Co.",description:"Arkansas' only certified organic malt brewery, opened as a certified organic farm in Paris.",website:"https://prestonrosefarm.com",mapUrl:"https://maps.google.com/?q=Prestonrose+Farm+Brewery+Paris+AR",lat:35.29,lng:-93.728}],shopping:[]},{slug:"johnson",name:"Johnson County",tagline:"Where Adventure Lives",seat:"Clarksville",mapCenter:[35.5,-93.4],mapZoom:10,description:"Johnson County is the gateway to Ozark National Forest adventures. From the longest-running festival in Arkansas — the Peach Festival — to world-class mountain biking at Red Lick Mountain, Clarksville offers a perfect blend of outdoor thrills and small-town character.",chamber:{name:"Clarksville-Johnson County Chamber of Commerce",address:"Clarksville, AR",phone:"(479) 754-2340",website:"https://clarksvillejocochamber.com",tourismName:"Johnson County Tourism — Where Adventure Lives",tourismWebsite:"https://www.whereadventurelives.com/",facebookUrl:"https://www.facebook.com/ClarksvilleChamber/"},highlights:["Ozark National Forest access","Red Lick Mountain — progressive downhill biking","Johnson County Peach Festival — Arkansas' longest-running festival","Horsehead Lake Lodge & Glamping","Haw Creek Falls & Pedestal Rock Scenic Area","AR 123 — Gateway to Piney Creeks Country"],dining:[{name:"Kasper's — Clarksville",description:"Located on the University of the Ozarks campus in the historic Vorhees Building. Premium certified Angus beef, pasta and fresh seafood. Every visit is a special occasion.",address:"501 N. Johnson St., Clarksville",phone:"479-647-4332",website:"https://kaspersclarksville.com",meals:"L, D",hours:"Tues–Sat 11 a.m.–2 p.m. and 5 p.m. until business slows",mapUrl:"https://maps.google.com/?q=Kaspers+Clarksville+AR",guidebookPage:"p. 36",lat:35.471,lng:-93.466},{name:"Wrecked Canoe",description:"Local favorite for breakfast every day. Fresh, never-frozen burgers, Catfish Friday specials, catering and live music on Saturdays.",address:"1100 E. Main St., Clarksville",phone:"479-754-0092",meals:"B, L, D",hours:"Sun–Wed 6 a.m.–3 p.m., Thurs–Sat 6 a.m.–7 p.m.",mapUrl:"https://maps.google.com/?q=Wrecked+Canoe+Clarksville+AR",guidebookPage:"p. 36",lat:35.471,lng:-93.46},{name:"Oark General Store",description:"Oldest continuously operating store in Arkansas (since 1890) — famous for burgers and pies in a historic mountain setting.",address:"390 Ar-215, Oark",website:"https://oarkgeneralstore.com",meals:"B, L, D",mapUrl:"https://maps.google.com/?q=Oark+General+Store+AR",guidebookPage:"p. 40",lat:35.706,lng:-93.566},{name:"Hagarville Grocery",description:"Gateway to Piney Creeks Country. Sooper Famous Breakfast Burritos, subs and homemade sweet treats. Hunting/fishing licensing and non-ethanol gasoline.",address:"11925 Arkansas 123, Lamar",ph
230one:"479-885-6330",meals:"B, L",hours:"Wed–Fri 6 a.m.–6 p.m., Sat 8 a.m.–6 p.m., Sun 8 a.m.–3 p.m.",mapUrl:"https://maps.google.com/?q=Hagarville+Grocery+Lamar+AR",guidebookPage:"p. 11",lat:35.517,lng:-93.334}],attractions:[{name:"Red Lick Mountain",description:"Progressive downhill mountain biking routes of varying difficulty with five exciting trails showcasing beautiful woodland settings.",website:"https://clarksvillejocochamber.com",mapUrl:"https://maps.google.com/?q=Red+Lick+Mountain+Clarksville+AR",guidebookPage:"p. 25",lat:35.49,lng:-93.45},{name:"Haw Creek Falls",description:"Easy access to a short waterfall and pool at Haw Creek Falls Campground on Hwy 123 near Hagarville. A favorite roadside stop in the Piney Creeks country.",address:"Hwy 123, Hagarville, AR",mapUrl:"https://maps.google.com/?q=35.6779,-93.2553",guidebookPage:"p. 29",lat:35.6779,lng:-93.2553},{name:"Pedestal Rock Scenic Area",description:"Unique geological formations in the Ozark National Forest.",mapUrl:"https://maps.google.com/?q=Pedestal+Rock+Scenic+Area+AR",guidebookPage:"p. 10"},{name:"Horsehead Lake Recreation Area",description:"Operated with Arkansas Game and Fish Commission in the Ozark National Forest.",mapUrl:"https://maps.google.com/?q=Horsehead+Lake+Recreation+Area+AR",guidebookPage:"p. 1, 10, 20",lat:35.56,lng:-93.64},{name:"Pam's Grotto",description:"37-foot waterfall near Hagarville off Hwy 123. A moderate 1-mile hike along a rocky creek bed leads to a shaded grotto pool.",address:"Hwy 123, Hagarville, AR",mapUrl:"https://maps.google.com/?q=35.6838,-93.2556",guidebookPage:"p. 8",lat:35.6838,lng:-93.2556},{name:"Hobo Falls",description:"East and West falls with emerald green pool for swimming. 3-mile hike in Ozark National Forest.",mapUrl:"https://maps.google.com/?q=Hobo+Falls+AR",lat:35.65,lng:-93.45},{name:"Spring Lake Recreation Area",description:"Ozark National Forest recreation spot with fishing and camping.",mapUrl:"https://maps.google.com/?q=Spring+Lake+Recreation+Area+AR",guidebookPage:"p. 21",lat:35.6,lng:-93.4},{name:"Mulberry River",description:"Popular 55-mile floating destination with Class II & III whitewater. Twists, turns and ledge drops enlivened by spring rains.",mapUrl:"https://maps.google.com/?q=Mulberry+River+AR"},{name:"Little Piney Creek",description:"Smaller sibling of Big Piney Creek with Class I to II whitewater. Choose 5-, 7-, or 12-mile float options.",mapUrl:"https://maps.google.com/?q=Little+Piney+Creek+AR",lat:35.52,lng:-93.45},{name:"High Bank Twin Falls",description:"Easy half-mile hike to a charming twin-drop waterfall tucked in the woods near Pettigrew on Hwy 125.",address:"Hwy 125, Pettigrew, AR",mapUrl:"https://maps.google.com/?q=High+Bank+Twin+Falls+Pettigrew+AR",lat:35.8407,lng:-93.619},{name:"Glory Hole Falls",description:"A unique waterfall that pours through a hole in the rock ceiling of a sandstone bluff. 1.8-mile moderate round-trip hike off Hwy 16 near Fallsville.",address:"Hwy 16, Fallsville, AR",mapUrl:"https://maps.google.com/?q=Glory+Hole+Falls+Fallsville+AR",lat:35.8222,lng:-93.3537},{name:"Cabin Creek",description:"Quiet day-use spot about 13 miles from downtown Clarksville. Fishing, picnicking and a walking trail along the creek.",mapUrl:"https://maps.google.com/?q=Cabin+Creek+Clarksville+AR",lat:35.55,lng:-93.48},{name:"Bayou Bluff",description:"Scenic stretch of the White River drainage from the Upper Buffalo Wilderness. Swimming, camping, kayaking, rafting, canoeing, fishing and picnicking.",mapUrl:"https://maps.google.com/?q=Bayou+Bluff+Recreation+Area+AR",lat:35.61,lng:-93.2},{name:"Spadra Creek",description:"Easy-access fishing spot running through downtown Clarksville.",address:"Downtown Clarksville, AR",mapUrl:"https://maps.google.com/?q=Spadra+Creek+Clarksville+AR",lat:35.47,lng:-93.466}],lodging:[{name:"Horsehead Lake Lodge",description:"Six distinct cabins and a spacious lodge overlooking Horsehead Lake and the Ozark National Forest. Reserve a Jeep or electric mountain bike, or play pickleball.",website:"https://horseheadlakelodge.com",phone:"(479) 214-0218",mapUrl:"https://maps.google.com/?q=Horsehead+Lake+Lodge+Clarksville+AR",guidebookPage:"p. 1",lat:35.55,lng:-93.63},{name:"Hampton Inn — Clarksville",description:"Free hot breakfast, indoor pool, free Wi-Fi, fitness center.",address:"2630 W. Clark Rd., Clarksville, AR | I-40 Exit 55",phone:"479.754.4444",website:"https://hamptoninn.hilton.com/clarksville",guidebookPage:"p. 15",lat:35.46,lng:-93.49},{name:"Holiday Inn Express — Clarksville",description:"Free hot breakfast, outdoor pool, free Wi-Fi, fitness center.",address:"2502 W. Clark Rd., Clarksville, AR | I-40 Exit 55",phone:"479.705.7600",guidebookPage:"p. 15",lat:35.46,lng:-93.48},{name:"Ozark Ridge Campground",description:"Extra-large RV sites with full hook-ups, city water, sewer, 30/50 amp electric, Wi-Fi. Rent side-by-sides to explore trails.",phone:"(479) 774-4470",website:"https://ozarkridgerv.com",mapUrl:"https://maps.google.com/?q=Ozark+Ridge+Campground+Clarksville+AR",guidebookPage:"p. 23",lat:35.48,lng:-93.47},{name:"Piney Bay Campground",description:"Lakeside campground about 14 miles from downtown Clarksville on Lake Dardanelle. Swimming beach, playground and fire pits make it a family favorite.",mapUrl:"https://maps.google.com/?q=Piney+Bay+Campground+AR",lat:35.42,lng:-93.55}],events:[{name:"Johnson County Peach Festival",date:"July (3rd weekend)",description:"Arkansas' longest-running festival on the Courthouse Square. Peachy dishes, pageants, craft exhibitions, fishing derbies, obstacle courses, skateboard contests and greased pig chases.",guidebookPage:"p. 30"}],drinks:[{name:"Diamond Drip Coffee Co.",description:"Contemporary new building offering handcrafted lattes and pastries in Clarksville.",address:"Clarksville, AR",mapUrl:"https://maps.google.com/?q=Diamond+Drip+Coffee+Clarksville+AR",lat:35.472,lng:-93.467},{name:"Prestonrose Farm and Brewery Co. — Clarksville",description:"Full-service farm-to-table dinner restaurant with adjoining market and The Mountaineer Taproom for local brews.",mapUrl:"https://maps.google.com/?q=Prestonrose+Farm+Brewery+Clarksville+AR",lat:35.47,lng:-93.46}],shopping:[],motorcycleRoutes:[{name:"Wolf Pen Loop",distance:"72 miles",duration:"2 hrs",stops:["Horsehead Lake","Short Grotto Falls","Byrd's Adventure Center"]},{name:"Brews Cruise",distance:"66 miles",duration:"1.5 hrs",stops:["Eiffel Tower Park (Paris, AR)","Subiaco Academy (Subiaco, AR)","Wineries & breweries throughout the area"]},{name:"Tri-Peaks Tour",distance:"170 miles",duration:"3.5 hrs",stops:["Mt. Magazine","Petit Jean","Mt. Nebo"]},{name:"Brake Time",distance:"26 miles",duration:"35 mins",stops:["Horsehead Lake","Horsehead Event Center & Lodge"]}]},{slug:"pope",name:"Pope County",tagline:"Discover Russellville",seat:"Russellville",mapCenter:[35.27,-93.1],mapZoom:11,description:"A blend of yesteryear's charm and modern convenience, Russellville is a small city with a big heart. Antique markets, art galleries, and enticing eateries populate the historic downtown area as music from local talent fills the air. Home to Arkansas Tech University and Lake Dardanelle, Pope County sits at the crossroads of I-40 and scenic Highway 7 with interesting opportunities in every direction.",chamber:{name:"Russellville Tourism & Visitors Center",address:"Russellville, AR",phone:"479.967.1762",website:"https://discoverrussellville.org",facebookUrl:"https://www.facebook.com/RussellvilleTourism"},highlights:["Lake Dardanelle State Park — 34,300-acre reservoir","Arkansas Tech University","Historic Downtown Russellville & Depot Park","Balloons Over Russellville","Main Street Russellville cultural events","Legends Resort & Casino (coming soon)"],dining:[{name:"CJ's Butcher Boy Burgers",description:"When all you do is burgers, they have to be iconic! Fresh, in-house-ground chuck shoulder burgers, hand-cut fries and classic shakes and malts. Cooked to order.",address:"2803 N. Arkansas Ave., Russellville",phone:"479-968-2300",website:"https://butcherboyburger.com",meals:"L, D",hours:"Tues–Thurs 11 a.m.–8 p.m., Fri–Sat 11 a.m.–8:30 p.m.",mapUrl:"https://maps.google.com/?q=CJs+Butcher+Boy+Burgers+Russellville+AR",guidebookPage:"p. 39",lat:35.31,lng:-93.13},{name:"Downtown Taco Co.",description:"Authentic Mexican favorites in the heart of downtown Russellville — tacos, enchiladas, fajitas, quesadillas and house specialties. Locally owned with daily specials and happy hour.",address:"315 W. B St., Russellville",phone:"479-567-5549",meals:"L, D",hours:"Mon–Sat 11 a.m.–9 p.m.",mapUrl:"https://maps.google.com/?q=Downtown+Taco+Co+Russellville+AR",guidebookPage:"p. 39",lat:35.278,lng:-93.134},{name:"Handlebar",description:"A downtown spoke-easy with late-night energy. Live music and total dining freedom — they don't serve food but welcome delivery from any nearby restaurant.",address:"115 N. Commerce Ave., Russellville",phone:"479-747-1860",website:"https://handlebardowntown.com",hours:"Tues–Thurs 4 p.m.–12 a.m., Fri–Sat 4 p.m.–2:30 a.m., Sun 4 p.m.–12 a.m.",mapUrl:"https://maps.google.com/?q=Handlebar+Russellville+AR",guidebookPage:"p. 39",lat:35.279,lng:-93.132},{name:"Point Remove Brewing Company — Russellville",description:"Historic downtown ta
230proom convenient to Lake Dardanelle and Arkansas River adventures. Handmade pizzas, fresh salads and Petit Jean Meats charcuterie. Arkansas-made craft beer and wine on a dog-friendly patio.",address:"203 W. Second St., Russellville",phone:"479-219-9032",website:"https://pointremovebrewingcompany.com",meals:"L, D",hours:"Tues–Sat 10 a.m.–9 p.m., Sun 10 a.m.–8 p.m.",mapUrl:"https://maps.google.com/?q=Point+Remove+Brewing+Russellville+AR",guidebookPage:"p. 37, 39",lat:35.279,lng:-93.133},{name:"Fat Daddy's BBQ",description:"Hickory smoke greets you before the door even opens. Ribs, brisket and pulled pork headline the menu, with steaks, catfish and loaded potatoes keeping regulars coming back.",address:"104 N. Denver Ave., Russellville",meals:"L, D",mapUrl:"https://maps.google.com/?q=Fat+Daddys+BBQ+Russellville+AR",guidebookPage:"p. 34",lat:35.281,lng:-93.139},{name:"Mack's Pines Café",description:"Hearty homemade cooking on Scenic Highway 7 in Dover — generous breakfasts, fresh coffee and standout burgers.",address:"22816 Highway 7 N, Dover",phone:"479-331-3261",website:"https://macks-pines.com",meals:"B, L, D",hours:"Fri–Sat 7 a.m.–6 p.m., Sun 7 a.m.–4 p.m.",mapUrl:"https://maps.google.com/?q=Macks+Pines+Cafe+Dover+AR",guidebookPage:"p. 36, 40",lat:35.402,lng:-93.114},{name:"Stoby's",description:"Russellville institution famous for dining inside a real train car. Big menu, classic comfort food and a setting kids love — from cheese dip and burgers to homemade pies.",address:"405 W. Parkway Dr., Russellville",meals:"B, L, D",mapUrl:"https://maps.google.com/?q=Stobys+Russellville+AR",guidebookPage:"p. 11",lat:35.285,lng:-93.135},{name:"Old South",description:"Hearty portions, retro diner charm and generations of regulars — a Russellville breakfast institution since 1947.",address:"1330 E. Main St., Russellville",meals:"B, L, D",mapUrl:"https://maps.google.com/?q=Old+South+Restaurant+Russellville+AR",guidebookPage:"p. 11",lat:35.279,lng:-93.122}],attractions:[{name:"Lake Dardanelle State Park",description:"34,300-acre reservoir with premier bass fishing, ~50 tournaments per year. First Arkansas State Park designated as a Trail of Tears National Historic Trail Site. Kayak and paddleboard rentals, lake cruises, and five aquariums. Audubon Important Bird Area.",website:"https://www.arkansasstateparks.com",mapUrl:"https://maps.google.com/?q=Lake+Dardanelle+State+Park+Russellville+AR",guidebookPage:"p. 11",lat:35.258,lng:-93.164},{name:"The Center for the Arts",description:"Live music, dance and theater performances year-round with plays, musicals and local choral performances.",website:"https://russellvillecenter.net",mapUrl:"https://maps.google.com/?q=Center+for+the+Arts+Russellville+AR",lat:35.295,lng:-93.13},{name:"Holla Bend National Wildlife Refuge",description:"Songbirds and wildflowers in spring/summer; deer, migratory birds and bald eagles in fall/winter. Hunting and fishing available seasonally. 12- to 18-mile gravel cycling loop.",website:"https://fws.gov",mapUrl:"https://maps.google.com/?q=Holla+Bend+National+Wildlife+Refuge+AR",lat:35.14,lng:-93.07},{name:"Main Street Russellville / Depot Park",description:"Cultural center for Art Walks, Movies in the Park, Music Downtown @ Sundown, Holiday Glow and the annual Fall Festival.",address:"320 West C Street, Russellville",phone:"(479) 967-1437",website:"https://mainstreetRussellville.com",mapUrl:"https://maps.google.com/?q=Depot+Park+Russellville+AR",guidebookPage:"p. 14",lat:35.276,lng:-93.134},{name:"Old Post Park",description:"More than 7 miles of flowy mountain biking singletrack where Lake Dardanelle eases into the Arkansas River. Hand-cut and volunteer-maintained.",mapUrl:"https://maps.google.com/?q=Old+Post+Park+Russellville+AR",guidebookPage:"p. 25",lat:35.27,lng:-93.15},{name:"Hourglass Escape Room",description:"Themed escape rooms in Russellville — a fun group challenge for families, friends and team outings.",address:"Russellville, AR",guidebookPage:"p. 40",lat:35.279,lng:-93.135},{name:"Frontier Climbing Company",description:"Indoor climbing gym in Russellville — a great primer before tackling Mount Magazine's world-class outdoor routes.",address:"Russellville, AR",guidebookPage:"p. 40",lat:35.281,lng:-93.137},{name:"Legends Resort & Casino",description:"Committed to generating economic growth for Pope County with 7,000+ new jobs. Operated by Cherokee Nation Entertainment.",website:"https://legendsarkansas.com",lat:35.3,lng:-93.1},{name:"Long Pool Recreation Area",description:"Classic Ozark National Forest destination with swimming, camping, and scenic bluffs.",mapUrl:"https://maps.google.com/?q=Long+Pool+Recreation+Area+AR",guidebookPage:"p. 9",lat:35.55,lng:-93.16},{name:"Big Piney Creek",description:"Flows from Ozark National Forest to Lake Dardanelle through bluffs and hardwoods. Class I to III whitewater.",mapUrl:"https://maps.google.com/?q=Big+Piney+Creek+AR",guidebookPage:"p. 9, 11",lat:35.51,lng:-93.18},{name:"Lake Dardanelle",description:"34,300-acre reservoir and fisherman's paradise with ~50 tournaments per year. Audubon Important Bird Area.",mapUrl:"https://maps.google.com/?q=Lake+Dardanelle+AR",guidebookPage:"p. 17",lat:35.26,lng:-93.2},{name:"Lake Atkins",description:"Community lake between Atkins and Russellville for fishing and recreation.",mapUrl:"https://maps.google.com/?q=Lake+Atkins+AR",guidebookPage:"p. 4, 29",lat:35.23,lng:-92.93},{name:"Potts Inn Museum",description:"One of Arkansas' best-preserved stagecoach inns. Built in the 1850s along the Butterfield Overland Mail route, it offers a close look at early travel and frontier life through furnished rooms and local history exhibits.",address:"25 E. Ash St., Pottsville",mapUrl:"https://maps.google.com/?q=Potts+Inn+Museum+Pottsville+AR",guidebookPage:"p. 13",lat:35.249,lng:-93.046},{name:"Playland Skating & Bowling",description:"Classic family fun in Russellville — roller skating, bowling and arcade games. A perfect rainy-day stop and a long-time after-school favorite.",address:"Russellville, AR",mapUrl:"https://maps.google.com/?q=Playland+Skating+Russellville+AR",guidebookPage:"p. 11",lat:35.281,lng:-93.131},{name:"Dover Lights",description:"Mysterious natural phenomenon that glows on the horizon at night near Dover. Sparking local legends for generations, the lights remain unexplained — best viewed on a clear, dark evening.",address:"Dover, AR",mapUrl:"https://maps.google.com/?q=Dover+Lights+AR",guidebookPage:"p. 10",lat:35.402,lng:-93.114},{name:"Brewer Lake",description:"Quiet fishing lake near Plumerville known for white bass — a Jeff Reece favorite, just east of Russellville.",mapUrl:"https://maps.google.com/?q=Brewer+Lake+AR",guidebookPage:"p. 29",lat:35.215,lng:-92.654}],lodging:[{name:"Hampton Inn — Russellville",description:"Free hot breakfast, indoor pool, free Wi-Fi, fitness center.",address:"2304 N. Arkansas Ave., Russellville, AR | I-40 Exit 81",phone:"479.858.7199",website:"https://hamptoninn.hilton.com/russellville",guidebookPage:"p. 15",lat:35.3,lng:-93.13},{name:"Fairfield by Marriott Inn & Suites — Russellville",description:"Modern Marriott lodging in Russellville — convenient to I-40, Lake Dardanelle and Arkansas Tech.",address:"Russellville, AR",guidebookPage:"p. 40",lat:35.301,lng:-93.131},{name:"Hidden Hideaways",description:"Reserve, relax, revive — serene cabin getaways in the Arkansas River Valley.",guidebookPage:"p. 40",lat:35.3,lng:-93.1},{name:"The Turner Home",description:"Welcoming Russellville vacation home with plenty of room for families to spread out. Thoughtful amenities and a cozy vibe make it a great home base for exploring the city.",address:"Russellville, AR",mapUrl:"https://maps.google.com/?q=The+Turner+Home+Russellville+AR",guidebookPage:"p. 11",lat:35.279,lng:-93.131}],events:[{name:"Balloons Over Russellville",date:"May (annual)",description:"Hot air balloon festival filling the River Valley sky. A magical experience for all ages."},{name:"Downtown Fall Festival and Chili Cookoff",date:"Late October",description:"Live music, local crafts, all types of chili. Tour de Pumpkin bike race and kids' Halloween costume contest. Prizes for the best chili chefs.",guidebookPage:"p. 31"},{name:"Holiday Glow & Art Walk",date:"Various dates",description:"Holiday celebration and downtown art walk in historic Russellville — galleries, local art and seasonal festivities.",guidebookPage:"p. 31"},{name:"Music Downtown @ Sundown",date:"Summer",description:"Concert series at Depot Park in downtown Russellville.",guidebookPage:"p. 30"}],drinks:[{name:"Natural State Coffee Roasters",description:"Locally roasted coffee with a large menu of seasonal specials and pastries. Three locations in Russellville (one on Arkansas Tech campus), plus Atkins and a Dardanelle drive-through.",mapUrl:"https://maps.google.com/?q=Natural+State+Coffee+Roasters+Russellville+AR",lat:35.278,lng:-93.134},{name:"Retro Roasts at Dog Ear Books",description:"Cozy coffee shop inside a bookstore — a book lover's dream!",address:"Russellville, AR",mapUrl:"https://maps.google.com/?q=Dog+Ear+Books+Russellville+AR",lat:35.277,lng:-93.133}],shopping:[{name:"Feltner's Athlete's Corner",description:"Birkenstock, Hoka, Patagonia, Brooks, goodr and more.",address:"2320 W. Main St., Russellville",phone:"(479) 968-6464",website:"https://feltners.net",mapUrl:"https://maps.google.com/?q=Feltners+Athletes+Corner+Russellville+AR",lat:35.28,lng:-93.133},{name:"Funky Town Mall",description:"12,000+ sq ft of vendor space with vintage and antique finds.",address:"1610 S. Arkansas Ave., Russellville",phone:"479-968-3865",hours:"Mon–Sat 10am–6pm, Sun 12–5pm",mapUrl:"https://maps.google.com/?q=Funky+Town+Mall+Russellville+AR",lat:35.266,lng:-93.135},{name:"Beatnik Angel Vintage Market",description:"Vintage finds in Historic Downtown Russellville.",address:"318 West B Street, Russellville",hours:"Thu–Sat 12–7 PM",mapUrl:"https://maps.google.com/?q=318+West+B+Street+Russellville+AR",guidebookPage:"p. 31",lat:35.278,lng:-93.132},{name:"Caliber (inside Funky Town Mall)",description:"Collectible firearms including Browning, Winchester. Vintage outdoor gear, clothing, mantiques, and native turquoise and silver.",address:"1610 S. Arkansas Ave., Russellville",phone:"479-747-9598",guidebookPage:"p. 31",lat:35.266,lng:-93.136}]},{slug:"yell",name:"Yell County",tagline:"Where History & Hospital
230ity Reside",seat:"Dardanelle & Danville",mapCenter:[35.15,-93.25],mapZoom:11,description:"Yell County lies in the valley below Mount Nebo and includes some of the oldest cities in Arkansas. From Dardanelle's rich history and waterfront to Danville's small-town charm near three state parks, this county is your base for outdoor adventures and cultural experiences.",chamber:{name:"Dardanelle Area Chamber of Commerce",address:"212 Front Street, Dardanelle, AR 72834",phone:"(479) 699-5246",website:"https://dardanellechamber.com",facebookUrl:"https://www.facebook.com/DardanelleAreaChamber"},highlights:["Mount Nebo State Park — world-class Monument Trails","Dardanelle — one of Arkansas' oldest cities","Danville — gateway to three state parks","True Grit Trail itineraries","Holla Bend National Wildlife Refuge","Lake Dardanelle, Blue Mountain Lake, Lake Nimrod & Spring Lake","Hispanic Heritage Festival"],dining:[{name:"Kasper's — Dardanelle",description:"Service is at the heart of everything at Kasper's. Hand-cut steaks and house-made creme brulee in a revived industrial building on Front Street.",address:"224 S. Front St., Dardanelle",phone:"479-477-3074",website:"https://kaspersclarksville.com",meals:"L, D",hours:"Tues–Sat 11 a.m.–2 p.m. and 5 p.m. until business slows",mapUrl:"https://maps.google.com/?q=Kaspers+Dardanelle+AR",guidebookPage:"p. 36",lat:35.223,lng:-93.158},{name:"La Casa Del Sol",description:"Cozy, family-owned restaurant serving authentic Mexican dishes made from scratch — sizzling tacos, savory enchiladas and tradition in every bite.",address:"1967 Old Highway 7 S, Dardanelle",phone:"479-229-2532",meals:"L, D",hours:"Mon–Sat 10:30 a.m.–8 p.m. (closed Sunday)",mapUrl:"https://maps.google.com/?q=La+Casa+Del+Sol+Dardanelle+AR",guidebookPage:"p. 36",lat:35.222,lng:-93.16},{name:"Tarascos Mexican Restaurant",description:"Authentic Mexican cuisine on Front Street — seafood tostadas, street tacos, enchiladas, fajitas and house margaritas.",address:"217 N. Front St., Dardanelle",phone:"479-477-3108",website:"https://ordertarascos.com",meals:"B, L, D",hours:"Mon–Fri 11 a.m.–9 p.m., Sat–Sun 10 a.m.–9 p.m.",mapUrl:"https://maps.google.com/?q=Tarascos+Dardanelle+AR",guidebookPage:"p. 36",lat:35.223,lng:-93.157},{name:"Giri's Havana Country Store",description:"Small-town cafe and country store where Mary's meatloaf, homemade pies and banana pudding keep folks coming back. Daily specials range from fried pork chops with mashed potatoes to hamburger skillets piled with taters.",address:"100 W. Broadway Ave., Havana",meals:"B, L, D",mapUrl:"https://maps.google.com/?q=Havana+AR",guidebookPage:"p. 34",lat:35.11,lng:-93.527}],attractions:[{name:"Mount Nebo State Park",description:"Over 40 miles of hiking and mountain biking trails including the 25-mile Monument Trail system. Stone cabins built in the 1930s by the CCC. Don't miss the sunsets at Bench Overlook or Sunset Point.",website:"https://www.arkansasstateparks.com",mapUrl:"https://maps.google.com/?q=Mount+Nebo+State+Park+AR",guidebookPage:"p. 6, 17",lat:35.228,lng:-93.253},{name:"Lake Dardanelle State Park — Dardanelle Side",description:"Reservoir along the Arkansas River with boat ramps, fishing piers, picnic areas and waterfront views. The Dardanelle-side access offers quieter shoreline and easy entry to the lake.",website:"https://www.arkansasstateparks.com/parks/lake-dardanelle-state-park",mapUrl:"https://maps.google.com/?q=Lake+Dardanelle+State+Park+Dardanelle+AR",lat:35.218,lng:-93.176},{name:"Dardanelle Walking Trail",description:"Scenic in-town walking trail perfect for a stroll along the Arkansas River and through historic Dardanelle.",mapUrl:"https://maps.google.com/?q=Dardanelle+Walking+Trail+AR",lat:35.226,lng:-93.157},{name:"Dardanelle Rock",description:"Iconic riverside bluff overlooking the Arkansas River — a landmark steeped in local history and a favorite spot for sweeping water views.",mapUrl:"https://maps.google.com/?q=Dardanelle+Rock+AR",lat:35.228,lng:-93.163},{name:"Holla Bend National Wildlife Refuge",description:"7,000+ acre refuge on an old oxbow of the Arkansas River. Wintering waterfowl, bald eagles, white-tailed deer and an auto-tour route make this a top stop for birders and nature lovers.",website:"https://www.fws.gov/refuge/holla-bend",mapUrl:"https://maps.google.com/?q=Holla+Bend+National+Wildlife+Refuge+AR",lat:35.158,lng:-93.092}
230,{name:"Blue Mountain Lake",description:"Scenic Corps-managed lake on the southwest edge of the county — fishing, boating, swimming and quiet shoreline camping.",mapUrl:"https://maps.google.com/?q=Blue+Mountain+Lake+AR",guidebookPage:"p. 4, 16, 29",lat:35.1,lng:-93.68},{name:"Spring Lake",description:"A local comeback story: shut down last year due to budget cuts, the City of Belleville built a plan and — with help from volunteers — cleaned it up and reopened it under city management. Once again open for fishing, swimming and quiet getaways.",mapUrl:"https://maps.google.com/?q=Spring+Lake+Belleville+AR",lat:35.139,lng:-93.452},{name:"The Father's Field • Pumpkin Patch",description:"Family-friendly fall pumpkin patch in Plainview with seasonal photo ops, hayrides and pick-your-own pumpkins.",address:"13940 Chula Rd, Plainview, AR 72857",phone:"(479) 622-3050",mapUrl:"https://maps.google.com/?q=The+Fathers+Field+Pumpkin+Patch+Plainview+AR",lat:34.985,lng:-93.302},{name:"Cornwell House Museum",description:"Self-guided tour at Mount Nebo with exhibits detailing the park's history from the pioneering era to today.",mapUrl:"https://maps.google.com/?q=Mount+Nebo+State+Park+AR",guidebookPage:"p. 12",lat:35.229,lng:-93.254},{name:"Danville Aquatic Center",description:"Community pool and aquatic recreation in Danville.",mapUrl:"https://maps.google.com/?q=Danville+AR",guidebookPage:"p. 32",lat:35.053,lng:-93.393},{name:"Council Oaks Park",description:"Riverside park in Dardanelle where a 400-year-old white oak marks the site of the 1820 Treaty of Council Oaks. The river crossing later carried Butterfield stagecoaches and is now part of the Arkansas Heritage Trails System.",address:"Front St., Dardanelle",mapUrl:"https://maps.google.com/?q=Council+Oaks+Park+Dardanelle+AR",guidebookPage:"p. 12",lat:35.226,lng:-93.158},{name:"Iron Bowstring Bridge",description:"Historic 1891 wrought-iron bowstring truss bridge in Danville — a rare surviving example of the design and a favorite photo stop for travelers on the way to Mount Magazine.",address:"Danville, AR",mapUrl:"https://maps.google.com/?q=Iron+Bowstring+Bridge+Danville+AR",guidebookPage:"p. 11",lat:35.054,lng:-93.394},{name:"Danville City Mini Golf",description:"Free mini golf course right in Danville — an unexpected small-town treat the whole family can enjoy.",address:"Danville, AR",mapUrl:"https://maps.google.com/?q=Danville+AR+mini+golf",guidebookPage:"p. 11",lat:35.054,lng:-93.393}],lodging:[{name:"The Weekender Cabins & RV Retreat",description:"Cabins and RV retreat near Nimrod Lake in Plainview.",mapUrl:"https://maps.google.com/?q=Plainview+AR",lat:34.988,lng:-93.298},{name:"Bethel House",description:"Vacation rental near Mount Nebo offering a comfortable home base for exploring Yell County.",guidebookPage:"p. 33",lat:35.227,lng:-93.25},{name:"Cabin in the Woods",description:"Secluded vacation cabin near Mount Nebo — perfect for couples and families seeking a quiet escape.",guidebookPage:"p. 33",lat:35.225,lng:-93.252},{name:"Economy Inn, Dardanelle",description:"Affordable lodging in Dardanelle, convenient to Lake Dardanelle State Park and Mount Nebo.",address:"Dardanelle, AR",guidebookPage:"p. 33",lat:35.222,lng:-93.156},{name:"1950s Riverside Cottage",description:"Cozy retro-inspired cottage in Dardanelle where vintage decor meets modern comfort. Mid-century style and an unbeatable riverside location — a fun base for history-filled adventures.",address:"Dardanelle, AR",mapUrl:"https://maps.google.com/?q=Dardanelle+AR",guidebookPage:"p. 12",lat:35.223,lng:-93.158}],events:[{name:"Free State of Yell Fest",date:"May 9–11",description:"Community festival celebrating Yell County culture and heritage.",guidebookPage:"p. 33"},{name:"Chocolate Festival",date:"Mid-July",description:"Hosted by the Dardanelle Area Chamber of Commerce — a sweet community celebration of all things chocolate."},{name:"Mt. Nebo Chicken Fry",date:"August 29, 2026",description:"Annual community gathering atop Mount Nebo featuring classic Southern fried chicken and fellowship.",guidebookPage:"p. 4, 33"},{name:"Hispanic Heritage Festival",date:"September 21",description:"¡Bienvenidos, y'all! Food from Honduras, folk dances from El Salvador, and mariachi music celebrating the River Valley's diverse culture.",guidebookPage:"p. 31"},{name:"4th of July Bicycle Parade",date:"July 4",description:"Community bicycle parade through Danville.",guidebookPage:"p. 32"},{name:"Yell County Fair",date:"Fall",description:"Annual county fair held in Danville.",guidebookPage:"p. 31"}],drinks:[],shopping:[{name:"Stowe Creek Gallery",description:"Beautiful handcrafted pieces by Arkansas artists — acrylic, oil, watercolor art, stained glass, jewelry and hand-carved walking sticks.",address:"111 S. Front Street, Dardanelle",phone:"(479) 495-0882",website:"https://stowecreekgallery.com",mapUrl:"https://maps.google.com/?q=Stowe+Creek+Gallery+Dardanelle+AR",lat:35.22,lng:-93.16},{name:"Osborne's Art and Antiques",description:"Curated antiques, vintage finds and original artwork in downtown Dardanelle.",address:"Dardanelle, AR",mapUrl:"https://maps.google.com/?q=Osbornes+Art+and+Antiques+Dardanelle+AR",lat:35.223,lng:-93.158},{name:"Berry Boutique of Dardanelle",description:"Local boutique featuring women's apparel, accessories and gifts in the heart of Dardanelle.",address:"Dardanelle, AR",mapUrl:"https://maps.google.com/?q=Berry+Boutique+Dardanelle+AR",lat:35.223,lng:-93.158},{name:"Millyn's",description:"54 years in business — Arkansas' largest in-stock selection of gifts, imports and home accessories. Tabletop, kitchen accessories, men's gifts, bridal & baby registries, gourmet foods.",address:"Dardanelle, AR",phone:"479-229-4144",website:"https://millyns.com",mapUrl:"https://maps.google.com/?q=Millyns+Dardanelle+AR",lat:35.224,lng:-93.157},{name:"3H Tactical & Gunsmithing",description:"Firearms and gunsmithing services.",address:"23141 State Hwy. 154, Dardanelle",phone:"479-567-1992",website:"https://3h-tactical.com",hours:"Open Wed–Sun",mapUrl:"https://maps.google.com/?q=3H+Tactical+Dardanelle+AR",lat:35.224,lng:-93.155}]},{slug:"conway",name:"Conway County",tagline:"Explore Natural Arkansas",seat:"Morrilton",mapCenter:[35.13,-92.85],mapZoom:11,description:"Conway County is home to Petit Jean State Park — Arkansas' first state park and the No. 1 place in the U.S. for camping and RV travel according to USA Today. From Cedar Falls to the Museum of Automobiles, there's history and nature around every corner. Small city, no limits.",chamber:{name:"Morrilton Area Chamber of Commerce",address:"Morrilton, AR",phone:"",website:"https://morriltonchamber.com"},highlights:["Petit Jean State Park — Arkansas' first state park, USA Today #1","Cedar Falls — 90-foot waterfall","Museum of Automobiles — cars driven by Elvis and JFK","Point Remove Brewing Company","Lake Overcup — crappie hot spot","Munchin' on Main food truck festival","Rialto Theater & Davies Bridge"],dining:[{name:"Mather Lodge Restaurant",description:"Classic Southern cuisine in the rustic warmth of Mather Lodge's dining room. Large windows frame Cedar Creek Canyon — burgers, hot roast beef, grilled chicken, pork chops, possum pie and hot fudge brownies.",address:"1069 Petit Jean Mountain Road, Morrilton (Petit Jean State Park)",phone:"501-727-5431",website:"https://arkansasstateparks.com",meals:"B, L, D",hours:"Daily 7 a.m.–9 p.m. (Mar–Nov), 8 a.m.–8 p.m. (Dec–Feb)",mapUrl:"https://maps.google.com/?q=Mather+Lodge+Petit+Jean+State+Park+AR",guidebookPage:"p. 37",lat:35.121,lng:-92.93},{name:"Petit Jean Coffeehouse & Mercantile",description:"Cozy mountaintop gathering place pouring Airship coffee with scones, parfaits and brown-bag lunches. The mercantile offers Arkansas-made gifts and curated goods.",address:"1482 Petit Jean Mountain Road, Morrilton",phone:"501-306-5341",website:"https://petitjeancoffeehouse.com",meals:"B, L",hours:"Wed–Thurs 8 a.m.–2 p.m., Fri–Sun 8 a.m.–4 p.m.",mapUrl:"https://maps.google.com/?q=Petit+Jean+Coffeehouse+Morrilton+AR",guidebookPage:"p. 34, 37",lat:35.122,lng:-92.931},{name:"Point Remove Brewing Company — Morrilton",description:"Taproom off U.S. 64 minutes from Petit Jean State Park. Handmade pizzas, fresh salads and Petit Jean Meats charcuter
230ie. Arkansas-made craft beer and wine on a dog-friendly patio.",address:"102 S. Crestliner St., Morrilton",phone:"501-477-4080",website:"https://pointremovebrewingcompany.com",meals:"L, D",hours:"Thurs–Sat 11 a.m.–9 p.m., Sun 10 a.m.–8 p.m.",mapUrl:"https://maps.google.com/?q=Point+Remove+Brewing+Company+Morrilton+AR",guidebookPage:"p. 37, 39",lat:35.152,lng:-92.744},{name:"Big Cuppa",description:"Downtown Morrilton favorite for coffee, breakfast and brunch. Comfort food, fresh espresso drinks and a welcoming local vibe — a great mid-trip stop on Petit Jean Mountain getaways.",address:"Downtown Morrilton, AR",meals:"B, L",mapUrl:"https://maps.google.com/?q=Big+Cuppa+Morrilton+AR",guidebookPage:"p. 11",lat:35.151,lng:-92.744}],attractions:[{name:"Petit Jean State Park",description:"Arkansas' first state park. Sweeping views at Stout's Point, Cedar Falls (90-ft waterfall), Bear Cave Trail, Rock House Cave with Native American pictographs, and the famous 'Turtle Rocks.' 125 campsites, 34 cabins, yurts near Lake Bailey.",website:"https://www.arkansasstateparks.com",mapUrl:"https://maps.google.com/?q=Petit+Jean+State+Park+AR",guidebookPage:"p. 9",lat:35.12,lng:-92.932},{name:"Barnyard Friends & Stables",description:"Meet furry friends and go horseback riding on Petit Jean Mountain. A family-favorite stop that turns a state park day into a full mountaintop adventure.",address:"Petit Jean Mountain, Morrilton",mapUrl:"https://maps.google.com/?q=Barnyard+Friends+Stables+Petit+Jean+AR",guidebookPage:"p. 11",lat:35.122,lng:-92.93},{name:"Fly Petit Jean Hot Air Balloon Rides",description:"Take in mountaintop views from a hot air balloon ride over Petit Jean Mountain — a memorable way to see the Arkansas River Valley from above.",address:"Petit Jean Mountain, Morrilton",mapUrl:"https://maps.google.com/?q=Petit+Jean+Mountain+AR",guidebookPage:"p. 11",lat:35.122,lng:-92.93},{name:"Brewer Lake",description:"Quiet Plumerville fishing lake known for white bass and easy shoreline access — a local pro's favorite for catching numbers.",mapUrl:"https://maps.google.com/?q=Brewer+Lake+Plumerville+AR",guidebookPage:"p. 29",lat:35.215,lng:-92.654}],lodging:[{name:"Petit Jean State Park Yurts",description:"On Lake Bailey shoreline. Circular cottages with three sets of bunk beds, electricity and a canoe. Just rugged enough for family trips.",website:"https://www.arkansasstateparks.com",mapUrl:"https://maps.google.com/?q=Petit+Jean+State+Park+AR",lat:35.118,lng:-92.934},{name:"Mather Lodge",description:"Historic lodge at Petit Jean State Park with full-service restaurant and sweeping canyon views.",website:"https://lodgesofarkansas.com",mapUrl:"https://maps.google.com/?q=Mather+Lodge+Petit+Jean+State+Park+AR",guidebookPage:"p. 11",lat:35.121,lng:-92.93},{name:"American Inn, Morrilton",description:"Convenient lodging in Morrilton — a comfortable base for exploring Petit Jean Mountain and the Arkansas River Valley.",address:"Morrilton, AR",guidebookPage:"p. 40",lat:35.151,lng:-92.744},{name:"Serenity Now!",description:"Modern lakefront cottage on Lake Overcup near Morrilton — private dock, firepit, and minutes from Petit Jean State Park.",guidebookPage:"p. 40",lat:35.26,lng:-92.74}],events:[{name:"Munchin' on Main",date:"March",description:"A dozen food trucks, beer garden, laser tag in the streets, live music and competitive cornhole in downtown Morrilton.",guidebookPage:"p. 30"}],drinks:[{name:"Point Remove Brewing Company",description:"Housed in a former Coca-Cola bottling plant. Petit Jean Pilsner, Long Pool APA, six house-label wines, plus The Pizza Factory. Live music and lawn games.",address:"102 S. Crestliner Street, Morrilton",phone:"501-477-4080",website:"https://pointremovebrewingcompany.com",hours:"Open Thu–Sun",mapUrl:"https://maps.google.com/?q=Point+Remove+Brewing+Company+Morrilton+AR",guidebookPage:"p. 27, 29",lat:35.152,lng:-92.744}],shopping:[]},{slug:"perry",name:"Perry County",tagline:"Unspoiled Arkansas",seat:"Perryville",mapCenter:[34.97,-92.95],mapZoom:11,description:"Perry County offers an unspoiled slice of Arkansas with Harris Brake Lake, Lake Nimrod and the rolling hills of the Ouachita regi
230on. Drive Scenic Highway 7 to find the legendary Hollis Country Store. The annual Arkansas Goat Festival brings families together for one of the state's most unique celebrations.",chamber:{name:"Perry County Chamber of Commerce",address:"Perryville, AR",phone:"",website:""},highlights:["Harris Brake Lake — bluegill, redear sunfish & bass","Lake Nimrod — Arkansas' oldest man-made lake","Lake Sylvia Recreation Area — Ouachita National Forest","Arkansas Goat Festival","Hollis Country Store on Scenic Highway 7 (est. 1930)","Winona Scenic Drive"],dining:[{name:"Veranda",description:"Globally inspired fusion cuisine — breakfast, burgers, pastas, salads and hearty entrées with vegetarian-friendly options and house-made desserts. Indoor or patio dining.",address:"303 W. Main St., Perryville",phone:"501-242-9785",meals:"B, L, D",hours:"Mon–Sat 8 a.m.–10 p.m., Sun 10 a.m.–8 p.m.",mapUrl:"https://maps.google.com/?q=Veranda+Perryville+AR",guidebookPage:"p. 38",lat:34.953,lng:-92.803},{name:"Hollis Country Store",description:"Step back into a simpler time. Famous fried bologna sandwiches, Moon Pies, cold drinks and friendly folks — fourth-generation, family-owned in the heart of the Ouachita Mountains.",address:"2125 Highway 7 S, Hollis",phone:"501-440-2296",meals:"L",mapUrl:"https://maps.google.com/?q=Hollis+Country+Store+AR",guidebookPage:"p. 34, 36",lat:34.87,lng:-93.11}],attractions:[{name:"Harris Brake Lake Resort",description:"Lakeside cabins, motel rooms, RV sites, boat rentals and a bait shop. Easy water access and gorgeous lakeside views.",website:"https://harrislakeresort.com",mapUrl:"https://maps.google.com/?q=Harris+Brake+Lake+Perryville+AR",lat:34.97,lng:-92.78},{name:"Lake Sylvia Recreation Area",description:"Serene 18-acre lake surrounded by campsites and hiking trails. Maintained by Arkansas State Parks in the Ouachita National Forest.",mapUrl:"https://maps.google.com/?q=Lake+Sylvia+Recreation+Area+AR",guidebookPage:"p. 25",lat:34.98,lng:-92.77},{name:"Hollis Country Store",description:"Established in 1930 on Scenic Highway 7. Old-time filling station with gas, snacks, fishing and camping supplies, and famous bologna sandwiches made onsite.",website:"https://experiencethenaturalstate.com/",mapUrl:"https://maps.google.com/?q=Hollis+Country+Store+AR",guidebookPage:"p. 34, 36",lat:34.87,lng:-93.11},{name:"Harris Brake Lake",description:"Known for heavy sunfish populations — bluegill, redear sunfish and bass — near Perryville.",mapUrl:"https://maps.google.com/?q=Harris+Brake+Lake+AR",lat:34.98,lng:-92.77},{name:"South Fourche Recreation Area",description:"Ouachita National Forest destination with camping and hiking.",mapUrl:"https://maps.google.com/?q=South+Fourche+Recreation+Area+AR",lat:34.85,lng:-93},{name:"Wildcat Mountain Trail",description:"Hiking trail in the Ouachita National Forest.",mapUrl:"https://maps.google.com/?q=Wildcat+Mountain+Trail+AR",lat:34.9,lng:-93.2}],lodging:[{name:"Harris Brake Lake Resort",description:"Lakeside cabins, motel rooms, RV sites, boat rentals and a bait shop in Perryville.",website:"https://harrislakeresort.com",mapUrl:"https://maps.google.com/?q=Harris+Brake+Lake+Perryville+AR",lat:34.97,lng:-92.78}],events:[{name:"Arkansas Goat Festival",date:"October",description:"Goats in costume, goats on parade, food trucks and live music. A family-friendly celebration of cloven creatures in Perryville.",guidebookPage:"p. 24"}],drinks:[],shopping:[]}];function Gz(t){const e=y_(t);for(const n of uE)if([...n.attractions,...n.dining,...n.drinks,...n.lodging,...n.shopping].some(i=>y_(i.name)===e))return{href:`/county/${n.slug}#${e}`};return null}function wo(t,e){const n=Gz(t),r=e.description.replace(/<em>.*?<\/em>/g,"").trim(),i=r.length>120?r.substring(0,120)+"…":r,s=e.description.match(/<em>(.*?)<\/em>/),a=s?s[1]:"";return`<div style="max-width:220px;">
231    <strong style="font-size:14px;">${t}</strong>
232    ${e.type?`<div style="font-size:11px;color:#666;margin:4px 0;">${e.type}</div>`:""}
233    ${e.category?`<div style="font-size:11px;color:#666;margin:4px 0;">${e.category}</div>`:""}
234    <p style="font-size:12px;margin:4px 0;line-height:1.4;">${i}</p>
235    ${a?`<div style="margin-top:6px;font-size:10px;color:hsl(36,90%,40%);font-weight:600;">📖 ${a}</div>`:""}
236    ${n?`<a href="${n.href}" style="display:inline-flex;align-items:center;gap:4px;margin-top:6px;font-size:12px;font-weight:600;color:hsl(152,45%,30%);text-decoration:none;">📍 View on county page →</a>`:""}
237  </div>`}const Zz=[{key:"parks",label:"State Parks",color:"hsl(152,45%,22%)",rounded:"rounded-full"},{key:"towns",label:"Towns",color:"hsl(36,90%,50%)",rounded:"rounded-full"},{key:"forests",label:"National Forests",color:"hsl(120,40%,40%)",rounded:"rounded-sm"},{key:"water",label:"Water & Falls",color:"hsl(200,70%,50%)",rounded:"rounded-full"},{key:"attractions",label:"Attractions",color:"hsl(280,50%,45%)",rounded:"rounded-full"},{key:"dining",label:"Dining & Drinks",color:"hsl(25,80%,50%)",rounded:"rounded-full"},{key:"shopping",label:"Shopping",color:"hsl(340,60%,50%)",rounded:"rounded-full"}],Kz=[{name:"Petit Jean State Park",lat:35.12,lng:-92.932,description:"Arkansas' first state park — Cedar Falls, Mather Lodge, Turtle Rocks. <em>Guidebook p. 9</em>"},{name:"Mount Magazine State Park",lat:35.167,lng:-93.645,description:"Arkansas' highe
237st point at 2,753 ft; rock climbing, hang gliding, ATV trails. <em>Guidebook p. 9</em>"},{name:"Mount Nebo State Park",lat:35.228,lng:-93.253,description:"40+ miles of trails including 25-mile Monument Trail system. World-class MTB. <em>Guidebook p. 10</em>"},{name:"Lake Dardanelle State Park",lat:35.258,lng:-93.164,description:"34,300-acre reservoir, premier bass fishing, Trail of Tears Historic Trail Site. <em>Guidebook p. 11</em>"}],Jz=[{name:"Haw Creek Falls",lat:35.68,lng:-93.26,type:"Waterfall/Campground",description:"Short waterfall and pool, easily accessible at campground. <em>Guidebook p. 5, 15</em>"},{name:"Pedestal Rock Scenic Area",lat:35.71,lng:-93.02,type:"Scenic Area",description:"Unique geological formations in the Ozark National Forest. <em>Guidebook p. 5</em>"},{name:"Horsehead Lake Recreation Area",lat:35.56,lng:-93.64,type:"Recreation Area",description:"Operated with Arkansas Game and Fish Commission. <em>Guidebook p. 5</em>"},{name:"Long Pool Recreation Area",lat:35.55,lng:-93.16,type:"Recreation Area",description:"Classic Ozark National Forest destination. <em>Guidebook p. 5</em>"},{name:"Spring Lake Recreation Area",lat:35.6,lng:-93.4,type:"Recreation Area",description:"Ozark National Forest recreation spot. <em>Guidebook p. 5</em>"},{name:"Lake Sylvia Recreation Area",lat:34.98,lng:-92.77,type:"Recreation Area",description:"Serene 18-acre lake surrounded by campsites and hiking trails. Maintained by Arkansas State Parks. <em>Guidebook p. 5, 15</em>"},{name:"Fourche Mountain Recreation Area",lat:34.78,lng:-93.35,type:"Recreation Area",description:"Ouachita National Forest recreation area. <em>Guidebook p. 5</em>"},{name:"South Fourche Recreation Area",lat:34.85,lng:-93,type:"Recreation Area",description:"Ouachita National Forest destination. <em>Guidebook p. 5</em>"},{name:"Wildcat Mountain Trail",lat:34.9,lng:-93.2,type:"Trail",description:"Hiking trail in the Ouachita National Forest. <em>Guidebook p. 5</em>"}],Yz=[{name:"Russellville",lat:35.2784,lng:-93.1338,description:"Historic downtown, antique markets, Arkansas Tech University. Home to Balloons Over Russellville. <em>Guidebook p. 12, 30</em>"},{name:"Paris",lat:35.2921,lng:-93.7299,description:"25-foot Eiffel Tower replica, Love Lock Fence, three coffeehouses on the square. <em>Guidebook p. 2 (IFC)</em>"},{name:"Dardanelle",lat:35.2234,lng:-93.1579,description:"One of Arkansas' oldest cities, in the valley below Mount Nebo. Chamber: 212 Front St. <em>Guidebook p. 13</em>"},{name:"Clarksville",lat:35.4715,lng:-93.4666,description:"Gateway to Ozark National Forest; Peach Festival, Red Lick Mountain MTB. <em>Guidebook p. 23</em>"},{name:"Morrilton",lat:35.1509,lng:-92.7441,description:"Access to Petit Jean Mountain; Point Remove Brewing, Munchin' on Main festival. <em>Guidebook p. 17</em>"},{name:"Perryville",lat:35.0048,lng:-92.8026,description:"Small town host of the Arkansas Goat Festival; Harris Brake Lake nearby. <em>Guidebook p. 16</em>"},{name:"Danville",lat:35.053,lng:-93.393,description:"Home base for outdoor adventures, minutes from three state parks. <em>Guidebook p. 22</em>"},{name:"Subiaco",lat:35.294,lng:-93.6385,description:"Home to Subiaco Abbey, founded 1878 — oldest Benedictine monastery in the U.S. <em>Guidebook p. 21, 25</em>"},{name:"Scranton",lat:35.3615,lng:-93.5416,description:"Rural home of Pridgin Family Brewery. <em>Guidebook p. 26</em>"},{name:"Hagarville",lat:35.5165,lng:-93.3338,description:"Gateway to Piney Creeks Country; Hagarville Grocery with famous burritos. <em>Guidebook p. 28</em>"},{name:"Plainview",lat:34.9881,lng:-93.298,description:"Location of The Weekender Cabins & RV Retreat near Nimrod Lake. <em>Guidebook p. 12</em>"},{name:"Atkins",lat:35.2429,lng:-92.9376,description:"Home to a Midtown Coffee location. <em>Guidebook p. 27</em>"},{name:"Dover",lat:35.4014,lng:-93.1144,description:"Near Moore Outdoors outfitter for Big Piney Creek float trips. <em>Guidebook p. 14</em>"},{name:"Lamar",lat:35.4407,lng:-93.388,description:"Home to Hagarville Grocery & Deli on AR 123. <em>Guidebook p. 28</em>"},{name:"Ola",lat:35.032,lng:-93.222,description:"Yell County community along the Petit Jean River corridor. <em>Guidebook p. 5 (map)</em>"},{name:"Booneville",lat:35.14,lng:-93.921,description:"Logan County community near Blue Mountain 
237Lake. <em>Guidebook p. 5 (map)</em>"}],Xz=[{name:"The Museum of Automobiles",lat:35.13,lng:-92.89,description:"50+ fully restored cars (1904–1981) including models driven by Elvis and JFK. 8 Jones Lane, Morrilton. <em>Guidebook p. 23, 25</em>"},{name:"Subiaco Abbey",lat:35.3,lng:-93.64,description:"Fully-operating Benedictine monastery with woodworking, cooking ventures, boarding school, and retreat center. <em>Guidebook p. 21, 25</em>"},{name:"Logan County Museum",lat:35.29,lng:-93.73,description:"Free to the public, Wed–Sat 12–5 PM. 202 N. Vine St., Paris. <em>Guidebook p. 2 (IFC)</em>"},{name:"Holla Bend National Wildlife Refuge",lat:35.14,lng:-93.07,description:"Songbirds, wildflowers, deer, migratory birds and bald eagles along the Arkansas River. <em>Guidebook p. 25</em>"},{name:"Red Lick Mountain",lat:35.49,lng:-93.45,description:"Progressive downhill routes of varying difficulty with five trails in woodland setting. <em>Guidebook p. 25</em>"},{name:"The Center for the Arts",lat:35.295,lng:-93.13,description:"Live music, dance, and theater performances year-round in Russellville. <em>Guidebook p. 25</em>"},{name:"Hollis Country Store",lat:34.87,lng:-93.11,description:"Est. 1930 on Scenic Highway 7. Gas, snacks, camping supplies and famous bologna sandwiches. <em>Guidebook p. 25</em>"},{name:"Stowe Creek Gallery",lat:35.22,lng:-93.16,description:"Handcrafted art by Arkansas artists — acrylic, oil, watercolor, stained glass, jewelry, walking sticks. 111 S. Front St., Dardanelle. <em>Guidebook p. 12</em>"},{name:"Horsehead Lake Lodge",lat:35.55,lng:-93.63,description:"Six cabins and spacious lodge overlooking Horsehead Lake. Jeep and e-bike rentals, pickleball. <em>Guidebook p. 1, 20–21</em>"},{name:"Harris Brake Lake Resort",lat:34.97,lng:-92.78,description:"Lakeside cabins, motel rooms, RV sites, boat rentals and bait shop in Perryville. <em>Guidebook p. 21</em>"},{name:"Ozark Ridge Campground",lat:35.48,lng:-93.47,description:"Extra-large RV sites with full hook-ups. Rent side-by-sides for trail adventures. <em>Guidebook p. 23</em>"},{name:"Legends Resort & Casino",lat:35.3,lng:-93.1,description:"Committed to generating economic growth for Pope County with 7,000+ new jobs. <em>Guidebook p. 26</em>"},{name:"Main Street Russellville / Depot Park",lat:35.276,lng:-93.134,description:"Cultural center for Art Walks, Movies in the Park, Music Downtown @ Sundown, Holiday Glow. 320 W. C Street. <em>Guidebook p. 30</em>"}],Qz=[{name:"Big Piney Creek",lat:35.51,lng:-93.18,type:"Whitewater — Class I to III",description:"Flows from Ozark National Forest to Lake Dardanelle through bluffs and hardwoods. <em>Guidebook p. 14</em>"},{name:"Mulberry River",lat:35.65,lng:-93.85,type:"Whitewater — Class II & III",description:"Popular 55-mile floating destination enlivened by spring rains; twists, turns and ledge drops. <em>Guidebook p. 14</em>"},{name:"Little Piney Creek",lat:35.52,lng:-93.45,type:"Whitewater — Class I to II",description:"Smaller sibling of Big Piney; 5-, 7-, or 12-mile float options. <em>Guidebook p. 14</em>"},{name:"Lake Dardanelle",lat:35.26,lng:-93.2,type:"Lake — Bass, Striper, Crappie, Catfish",description:"Fisherman's paradise with ~50 tournaments per year. Audubon Important Bird Area. <em>Guidebook p. 11, 15</em>"},{name:"Harris Brake Lake",lat:34.98,lng:-92.77,type:"Lake — Bluegill, Redear Sunfish, Bass",description:"Known for heavy sunfish populations near Perryville. <em>Guidebook p. 15</em>"},{name:"Lake Overcup",lat:35.26,lng:-92.74,type:"Lake — Crappie Hot Spot",description:"1,025 acres north of Morrilton with handicap-accessible piers. <em>Guidebook p. 15</em>"},{name:"Lake Nimrod",lat:34.95,lng:-93.15,type:"Lake — Bass, Bream, Slab Crappie",description:"Arkansas' oldest man-made lake. <em>Guidebook p. 15</em>"},{name:"Cove Lake",lat:35.23,lng:-93.63,type:"Lake — Catfish, Bass, Perch",description:"At the base of Mount Magazine; ideal for families. <em>Guidebook p. 15</em>"},{name:"Blue Mountain Lake",lat:35.1,lng:-93.68,type:"Lake",description:"Scenic lake near Mount Magazine with fishing and boating. <em>Guidebook p. 5 (map)</em>"},{name:"Lake Atkins",lat:35.23,lng:-92.93,type:"Lake",description:"Community lake between Atkins and Russellville. <em>Guidebook p. 5 (map)</em>"},{name:"Pam's Grotto",lat:35.52,lng:-93.33,type:"Waterfall — 37 ft",description:"Less than a mile out-and-back hike near Hagarville. <em>Guidebook p. 15</em>"},{name:"Hobo Falls",lat:35.65,lng:-93.45,type:"Waterfall & Swimming Hole",description:"East and West falls with emerald green pool; 3-mile hike in Ozark National Forest. <em>Guidebook p. 15</em>"},{name:"Cedar Falls",lat:35.115,lng:-92.935,type:"Waterfall — 9
2370 ft",description:"Petit Jean State Park's crown jewel, accessible via Cedar Falls Trail or all-accessible overlook. <em>Guidebook p. 9</em>"}],eF=[{name:"22 Brew",lat:35.292,lng:-93.731,type:"Coffee & Ice Cream",description:"Specialty coffees, hand-dipped ice cream, Eiffel Tower view. 102 W. Walnut St., Paris. <em>Guidebook p. 2 (IFC), 29</em>"},{name:"True Grit Grounds",lat:35.291,lng:-93.73,type:"Coffee & Tea House",description:"Espresso drinks, fresh teas, lunch items and pastries. 12 E. Walnut St., Paris. <em>Guidebook p. 2 (IFC), 29</em>"},{name:"Stirling Roastery",lat:35.293,lng:-93.729,type:"Coffee Roaster",description:"14 flavor offerings of beans roasted from around the world. Paris. <em>Guidebook p. 27</em>"},{name:"Front Street Grill",lat:35.223,lng:-93.158,type:"Dining & Live Music",description:"Seafood, burgers, Alaskan snow crab legs. 115 S. Front St., Dardanelle. <em>Guidebook p. 28</em>"},{name:"Mather Lodge Restaurant",lat:35.121,lng:-92.93,type:"Southern Cuisine",description:"Classic Southern dining with Cedar Creek Canyon views. Petit Jean State Park. <em>Guidebook p. 28</em>"},{name:"The Skycrest Restaurant",lat:35.168,lng:-93.646,type:"Full-Service Dining",description:"Inside The Lodge at Mount Magazine. Full bar, Arkansas products. <em>Guidebook p. 29</em>"},{name:"Point Remove Brewing Company",lat:35.152,lng:-92.744,type:"Brewery & Pizza",description:"Former Coca-Cola bottling plant. Petit Jean Pilsner, pizza, live music. 102 S. Crestliner St., Morrilton. <em>Guidebook p. 27, 29</em>"},{name:"Pridgin Family Brewery",lat:35.362,lng:-93.542,type:"Brewery",description:"Farmland views, ales and IPAs from repurposed family wood taps. Scranton. Open Thu–Sun. <em>Guidebook p. 26</em>"},{name:"Prestonrose Farm and Brewery Co.",lat:35.29,lng:-93.728,type:"Organic Brewery",description:"Arkansas' only certified organic malt brewery, also expanded to Clarksville. <em>Guidebook p. 27</em>"}
237,{name:"Diamond Drip Coffee Co.",lat:35.472,lng:-93.467,type:"Coffee",description:"Contemporary new building with handcrafted lattes and pastries. Clarksville. <em>Guidebook p. 27</em>"},{name:"Midtown Coffee",lat:35.278,lng:-93.134,type:"Coffee",description:"Seasonal specials, pastries. Three Russellville locations (inc. ATU campus), plus Atkins and Dardanelle. <em>Guidebook p. 27</em>"},{name:"Retro Roasts at Dog Ear Books",lat:35.277,lng:-93.133,type:"Coffee & Bookshop",description:"Cozy coffee shop inside a bookstore in Russellville. <em>Guidebook p. 27</em>"},{name:"Hagarville Grocery",lat:35.517,lng:-93.334,type:"Dining & Supplies",description:"Famous breakfast burritos, #BurritoMafia. Gateway to Piney Creeks. AR 123, Lamar. <em>Guidebook p. 28</em>"},{name:"Meoriban Restaurant",lat:35.222,lng:-93.16,type:"Dining",description:"Authentic cuisine. 1967 Old Hwy. 7 South, Dardanelle. <em>Guidebook p. 13</em>"}],tF=[{name:"Millyn's",lat:35.224,lng:-93.157,type:"Gifts & Imports",description:"54 years in business — Arkansas' largest in-stock selection of gifts, imports, and home accessories. Dardanelle. <em>Guidebook p. 13</em>"},{name:"Feltner's Athlete's Corner",lat:35.28,lng:-93.133,type:"Outdoor Retail",description:"Birkenstock, Hoka, Patagonia, Brooks and more. 2320 W. Main St., Russellville. <em>Guidebook p. 12</em>"},{name:"Funky Town Mall",lat:35.266,lng:-93.135,type:"Vintage & Antiques",description:"12,000+ sq ft of vendor space. 1610 S. Arkansas Ave., Russellville. <em>Guidebook p. 31</em>"},{name:"Beatnik Angel Vintage Market",lat:35.278,lng:-93.132,type:"Vintage",description:"Historic Downtown Russellville, 318 West B Street. Thu–Sat 12–7 PM. <em>Guidebook p. 31</em>"},{name:"Garden Sass",lat:35.279,lng:-93.131,type:"Artisan Gifts",description:"Floral preservation and small batch goods. 108 N. Commerce, Russellville. <em>Guidebook p. 31</em>"},{name:"3H Tactical & Gunsmithing",lat:35.224,lng:-93.155,type:"Firearms & Services",description:"23141 State Hwy. 154, Dardanelle. Open Wed–Sun. <em>Guidebook p. 13</em>"}],nF=()=>{const t=C.useRef(null),e=C.useRef(null),n=C.useRef({}),[r,i]=C.useState(null),s=C.useCallback(a=>{const l=e.current;if(!l)return;const c=r===a?null:a;i(c),Object.entries(n.current).forEach(([d,f])=>{!c||d===c?f.eachLayer(p=>{const g=p,y=g._icon||g._container;y&&(y.style.opacity="1")}):f.eachLayer(p=>{const g=p,y=g._icon||g._container;y&&(y.style.opacity="0.15")})}),l.eachLayer(d=>{const f=d;f._tooltip&&f._tooltip._container&&(f._tooltip._container.style.opacity=!c||c==="towns"?"1":"0.15")})},[r]);return C.useEffect(()=>{if(!t.current||e.current)return;const a=Ke.map(t.current,{center:[35.22,-93.25],zoom:9,scrollWheelZoom:!1,attributionControl:!0});Ke.tileLayer("https://{s}.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}{r}.png",{attribution:'&copy; <a href="https://www.openstreetmap.org/copyright">OSM</a> &copy; <a href="https://carto.com/">CARTO</a>',maxZoom:16}).addTo(a);const l=Ke.divIcon({className:"custom-park-marker",html:`<div style="width:32px;height:32px;background:hsl(152,45%,22%);border:3px solid white;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px rgba(0,0,0,0.3);">
238        <svg width="16" height="16" fill="white" viewBox="0 0 24 24"><path d="M12 2L2 22h20L12 2zm0 4l7 14H5l7-14z"/></svg>
239      </div>`,iconSize:[32,32],iconAnchor:[16,32],popupAnchor:[0,-32]}),c=Ke.divIcon({className:"custom-town-marker",html:'<div style="width:10px;height:10px;background:hsl(36,90%,50%);border:2px solid white;border-radius:50%;box-shadow:0 1px 4px rgba(0,0,0,0.2);"></div>',iconSize:[10,10],iconAnchor:[5,5]}),d=Ke.divIcon({className:"custom-forest-marker",html:`<div style="width:24px;height:24px;background:hsl(120,40%,40%);border:2px solid white;border-radius:4px;display:flex;align-items:center;justify-content:center;">
240        <svg width="12" height="12" fill="white" viewBox="0 0 24 24"><path d="M11 9H9V2H7v7H5L12 18l7-9h-2V2h-2v7h-2z"/></svg>
241      </div>`,iconSize:[24,24],iconAnchor:[12,12]}),f=Ke.divIcon({className:"custom-water-marker",html:`<div style="width:24px;height:24px;background:hsl(200,70%,50%);border:2px solid white;border-radius:50%;display:flex;align-items:center;justify-content:center;">
242        <svg width="12" height="12" fill="white" viewBox="0 0 24 24">
242<path d="M12 21s-7-5.45-7-9c0-3.87 3.13-7 7-7s7 3.13 7 7c0 3.55-7 9-7 9z"/></svg>
243      </div>`,iconSize:[24,24],iconAnchor:[12,12]}),p=Ke.divIcon({className:"custom-attraction-marker",html:`<div style="width:24px;height:24px;background:hsl(280,50%,45%);border:2px solid white;border-radius:50%;display:flex;align-items:center;justify-content:center;">
244        <svg width="12" height="12" fill="white" viewBox="0 0 24 24"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14l-5-4.87 6.91-1.01L12 2z"/></svg>
245      </div>`,iconSize:[24,24],iconAnchor:[12,12]}),g=Ke.divIcon({className:"custom-dining-marker",html:`<div style="width:22px;height:22px;background:hsl(25,80%,50%);border:2px solid white;border-radius:50%;display:flex;align-items:center;justify-content:center;">
246        <svg width="11" height="11" fill="white" viewBox="0 0 24 24"><path d="M11 9H9V2H7v7H5V2H3v7c0 2.12 1.66 3.84 3.75 3.97V22h2.5v-9.03C11.34 12.84 13 11.12 13 9V2h-2v7zm5-3v8h2.5v8H21V2c-2.76 0-5 2.24-5 4z"/></svg>
247      </div>`,iconSize:[22,22],iconAnchor:[11,11]}),y=Ke.divIcon({className:"custom-shop-marker",html:`<div style="width:22px;height:22px;background:hsl(340,60%,50%);border:2px solid white;border-radius:50%;display:flex;align-items:center;justify-content:center;">
248        <svg width="11" height="11" fill="white" viewBox="0 0 24 24"><path d="M18 6h-2c0-2.21-1.79-4-4-4S8 3.79 8 6H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-6-2c1.1 0 2 .9 2 2h-4c0-1.1.9-2 2-2z"/></svg>
249      </div>`,iconSize:[22,22],iconAnchor:[11,11]}),b=Ke.layerGroup().addTo(a),_=Ke.layerGroup().addTo(a),T=Ke.layerGroup().addTo(a),x=Ke.layerGroup().addTo(a),S=Ke.layerGroup().addTo(a),k=Ke.layerGroup().addTo(a),E=Ke.layerGroup().addTo(a);return Kz.forEach(A=>Ke.marker([A.lat,A.lng],{icon:l}).addTo(b).bindPopup(wo(A.name,{category:"State Park",description:A.description}))),Yz.forEach(A=>Ke.marker([A.lat,A.lng],{icon:c}).addTo(_).bindTooltip(A.name,{permanent:!0,direction:"top",offset:[0,-8],className:"town-tooltip"})),Jz.forEach(A=>Ke.marker([A.lat,A.lng],{icon:d}).addTo(T).bindPopup(wo(A.name,{type:A.type,description:A.description}))),Xz.forEach(A=>Ke.marker([A.lat,A.lng],{icon:p}).addTo(x).bindPopup(wo(A.name,{category:"Attraction",description:A.description}))),Qz.forEach(A=>Ke.marker([A.lat,A.lng],{icon:f}).addTo(S).bindPopup(wo(A.name,{type:A.type,description:A.description}))),eF.forEach(A=>Ke.marker([A.lat,A.lng],{icon:g}).addTo(k).bindPopup(wo(A.name,{type:A.type,description:A.description}))),tF.forEach(A=>Ke.marker([A.lat,A.lng],{icon:y}).addTo(E).bindPopup(wo(A.name,{type:A.type,description:A.description}))),n.current={parks:b,towns:_,forests:T,water:S,attractions:x,dining:k,shopping:E},e.current=a,()=>{a.remove(),e.current=null}},[]),v.jsx("section",{id:"explore-region",className:"py-20 md:py-28 section-alt",children:v.jsxs("div",{className:"container mx-auto px-4 lg:px-8",children:[v.jsxs(Pe.div,{className:"text-center mb-10",children:[v.jsx("h2",{className:"font-display text-3xl md:text-4xl font-bold text-foreground mb-3",children:"Explore the Region"}),v.jsx("p",{className:"font-body text-lg text-muted-foreground max-w-xl mx-auto",children:"Interactive map of every location featured in our guidebook. Click any marker to see details and the guidebook page reference."})]}),v.jsx(Pe.div,{className:"rounded-xl overflow-hidden shadow-lg border border-border",style:{height:"600px"},children:v.jsx("div",{ref:t,className:"w-full h-full"})}),v.jsxs("div",{className:"flex flex-wrap justify-center gap-2 mt-6 text-xs font-medium",children:[Zz.map(a=>v.jsxs("button",{onClick:()=>s(a.key),className:`flex items-center gap-1.5 px-3 py-1.5 rounded-full border transition-all cursor-pointer ${r===a.key?"border-foreground bg-foreground
249/10 ring-1 ring-foreground/20 font-semibold":r?"border-border opacity-40 hover:opacity-70":"border-border hover:border-foreground/30 hover:bg-muted"}`,children:[v.jsx("div",{className:`w-3 h-3 ${a.rounded}`,style:{background:a.color}}),a.label]},a.key)),r&&v.jsx("button",{onClick:()=>s(r),className:"px-3 py-1.5 rounded-full border border-border text-muted-foreground hover:text-foreground hover:bg-muted transition-all cursor-pointer",children:"✕ Clear"})]})]})})},rF="/assets/activity-biking-DhLH_t_L.jpg",iF="/assets/vibe-trails-5mN5IMj1.jpg",sF="/assets/activity-water-D4Extj4S.jpg",oF="/assets/activity-brewery-C5HDOah0.jpg",aF="/assets/activity-events-DPsGJKkS.jpg",lF="/assets/vibe-historic-CqcX9l8g.jpg",uF="/assets/vibe-drives-jx4MzzzZ.jpg",cF="/assets/sxs-2-CtRBD_zt.jpg",dF="/assets/activity-fishing-C4csiKL2.jpg",Dp=[{title:"Bicycling",slug:"bicycling",image:rF,description:"World-class Monument Trails at Mount Nebo, gravel and road climbs including Mount Magazine.",alt:"Mountain biker on forest trail"},{title:"Trails & Hiking",slug:"trails-hiking",image:iF,description:"Cedar Falls, Haw Creek Falls, Hobo Falls, Pam's Grotto — waterfalls and swimming holes.",alt:"Hiking trail through rocky canyon with waterfall"},{title:"Lakes & Rivers",slug:"lakes-rivers",image:sF,description:"Lake Dardanelle, whitewater on Big Piney and Mulberry, fishing and floating.",alt:"Kayakers on river between forested bluffs"},{title:"Peak Fishing",slug:"peak-fishing",image:dF,description:"Lake Dardanelle, Nimrod, Atkins, Bailey, Blue Mountain and Brewer — pro tips from MLF anglers.",alt:"Angler casting on Lake Dardanelle at golden hour"},{title:"Eats & Drinks",slug:"eats-drinks",image:oF,description:"Local coffee, Point Remove and Pridgin Family Brewery, Mather Lodge dining.",alt:"Craft beer flight at rustic brewery"},{title:"Festivals & Events",slug:"festivals-events",image:aF,description:"Balloons Over Russellville, Johnson County Peach Festival, and more.",alt:"Hot air balloons floating over festival"},{title:"Historic Sites",slug:"historic-sites",image:lF,description:"Subiaco Abbey, Council Oak Park, Dardanelle Rock, Museum of Automobiles.",alt:"Historic stone building with ivy"},{title:"Scenic Drives",slug:"scenic-drives",image:uF,description:"Red Bluff Drive, Winona Scenic Drive, Highway 7 — take the long way.",alt:"Winding mountain road through autumn forest"},{title:"SXS Riding",slug:"sxs-riding",image:cF,description:"Side-by-side trails around Mount Magazine and the surrounding national forests.",alt:"Side-by-side UTV on a forest trail"}],hF=[Dp.slice(0,3),Dp.slice(3,6),Dp.slice(6,9)],fF=({activity:t,i:e})=>v.jsx(Pe.div,{initial:{opacity:0,y:25},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-50px"},transition:{duration:.4,delay:e*.07},children:v.jsxs(We,{to:`/vibe/${t.slug}`,className:"group relative rounded-lg overflow-hidden aspect-[4/3] cursor-pointer block",children:[v.jsx("img",{src:t.image,alt:t.alt,className:"absolute inset-0 w-full h-full object-cover group-hover:scale-110 transition-transform duration-700",loading:"lazy"}),v.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-foreground
249/80 via-foreground/20 to-transparent"}),v.jsxs("div",{className:"absolute bottom-0 left-0 right-0 p-5",children:[v.jsx("h3",{className:"font-display text-lg font-bold text-cream mb-1",children:t.title}),v.jsx("p",{className:"font-body text-sm text-cream/80 leading-snug opacity-0 group-hover:opacity-100 transition-opacity duration-300",children:t.description})]})]})},t.title),pF=()=>{let t=0;return v.jsx("section",{id:"things-to-do",className:"py-20 md:py-28 bg-background",children:v.jsxs("div",{className:"container mx-auto px-4 lg:px-8",children:[v.jsxs(Pe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.6},className:"text-center mb-14",children:[v.jsx("h2",{className:"font-display text-3xl md:text-4xl font-bold text-foreground mb-3",children:"Pick Your Vibe"}),v.jsx("p",{className:"font-body text-lg text-muted-foreground max-w-xl mx-auto",children:"Trails, water, beer, and history — the Tri-Peaks has something for everyone."})]}),v.jsx("div",{className:"space-y-5",children:hF.map((e,n)=>v.jsx("div",{className:`grid gap-5 ${e.length===2?"grid-cols-1 sm:grid-cols-2 max-w-3xl mx-auto":"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3"}`,children:e.map(r=>{const i=t++;return v.jsx(fF,{activity:r,i},r.title)})},n))})]})})},mF=[{title:"Waterfalls",href:"/waterfalls",icon:tM,description:"Cedar Falls, Pam's Grotto, Hobo Falls and 7 more cascades worth the hike."},{title:"Itineraries",href:"/itineraries",icon:pT,description:"Three curated 3-day trips: The Adventurer, The Family, The History Lover."},{title:"Off the Eaten Path",href:"/off-the-eaten-path",icon:cM,description:"Far-flung dining staples — Oark General Store, Hollis Country Store, and more."}],gF=()=>v.jsx("section",{className:"py-16 md:py-20 bg-cream/40",children:v.jsxs("div",{className:"container mx-auto px-4 lg:px-8",children:[v.jsxs(Pe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.6},className:"text-center mb-10",children:[v.jsx("p",{className:"font-body text-xs uppercase tracking-[0.2em] text-primary mb-2",children:"From the 2026 Guidebook"}),v.jsx("h2",{className:"font-display text-3xl md:text-4xl font-bold text-foreground",children:"Featured Guides"})]}),v.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-5 max-w-5xl mx-auto",children:mF.map((t,e)=>{const n=t.icon;return v.jsx(Pe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-50px"},transition:{duration:.4,delay:e*.08},children:v.jsxs(We,{to:t.href,className:"group block h-full rounded-xl border border-border bg-background p-6 hover:border-primary hover:shadow-lg transition-all",children:[v.jsx("div",{className:"inline-flex items-center justify-center w-11 h-11 rounded-lg bg-primary/10 text-primary mb-4 group-hover:bg-primary group-hover:text-primary-foreground transition-colors",children:v.jsx(n,{size:22})}),v.jsx("h3",{className:"font-display text-xl font-bold text-foreground mb-2 group-hover:text-primary transition-colors",children:t.title}),v.jsx("p",{className:"font-body text-sm text-muted-foreground leading-relaxed",children:t.description})]})},t.title)})})]})}),yF=[{text:"USA Today named Petit Jean State Park the No. 1 place in the U.S. for camping and RV travel.",source:"USA Today",link:"https://10best.usatoday.com/awards/petit-jean-state-park-morrilton-arkansas"},{text:"Mount Nebo's Monument Trails are on the MTB Project list of top rides in the country.",source:"MTB Project",link:"https://www.mtbproject.com/directory/8007079/mount-nebo-state-park-monument-trails"},{text:"Lake Dardanelle — designated an Important Bird Area by the National Audubon Society.",source:"Audubon Society",link:"https://delta.audubon.org/conservation/lake-dardanelle-iba"}],vF=()=>v.jsx("section",{className:"py-16 md:py-24 bg-primary",children:v.jsxs("div",{className:"container mx-auto px-4 lg:px-8",children:[v.jsxs(Pe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.6},className:"text-center mb-10",children:[v.jsx("div",{className:"flex items-center justify-center gap-1 mb-4",children:[...Array(5)].map((t,e)=>v.jsx(lM,{size:18,className:"fill-accent text-accent"},e))}),v.jsx("h2",{className:"font-display text-2xl md:text-3xl font-bold text-primary-foreground",children:"Recognized Nationwide"})]}),v.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 max-w-5xl mx-auto",children:yF.map((t,e)=>v.jsxs(Pe.blockquote,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-50px"},transition:{duration:.5,delay:e*.1},className:"text-center",children:[v.jsxs("p",{className:"font-body text-primary-foreground
249/90 text-base leading-relaxed mb-3 italic",children:['"',t.text,'"']}),v.jsxs("a",{href:Ar(t.link),target:"_blank",rel:"noopener noreferrer",className:"font-body text-sm text-accent not-italic font-semibold uppercase tracking-wider hover:brightness-110 transition-all",children:["— ",t.source]})]},e))})]})}),wF=[{name:"Munchin' on Main",date:"March",location:"Morrilton"},{name:"Wye Mountain Daffodil Festival",date:"March",location:"Bigelow"},{name:"Free State of Yell Fest",date:"May 7–9, 2026",location:"Dardanelle"},{name:"Petit Jean Swap Meet & Car Show",date:"June",location:"Petit Jean Mountain"},{name:"Johnson County Peach Festival",date:"July",location:"Clarksville"},{name:"Broken Sword Triathlon",date:"August",location:"Clarksville"},{name:"Mt. Nebo Chicken Fry",date:"August 29, 2026",location:"Dardanelle"},{name:"Yell County Fair",date:"September",location:"Danville"},{name:"Hispanic Heritage Festival in The Valley",date:"September 26, 2026",location:"Dardanelle"},{name:"Arkansas Goat Festival",date:"October",location:"Perryville"},{name:"Frontier Day Festival",date:"October",location:"Paris"},{name:"Downtown Fall Festival & Chili Cook-off",date:"October",location:"Russellville"},{name:"Merry on Main",date:"December",location:"Paris"},{name:"Holiday Glow & Art Walk",date:"December",location:"Russellville"}],_F=()=>v.jsx("section",{id:"events",className:"py-20 md:py-28 section-alt",children:v.jsxs("div",{className:"container mx-auto px-4 lg:px-8 max-w-5xl",children:[v.jsxs(Pe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.6},className:"text-center mb-12",children:[v.jsx("h2",{className:"font-display text-3xl md:text-4xl font-bold text-foreground mb-3",children:"Coming Up in the Tri-Peaks"}),v.jsx("p",{className:"font-body text-lg text-muted-foreground",children:"Small-town charm, big-time fun. Mark your calendar."})]}),v.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:wF.map((t,e)=>v.jsxs(Pe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-50px"},transition:{duration:.4,delay:e*.04},className:"flex items-start gap-4 bg-card rounded-lg p-5 shadow-sm hover:shadow-md transition-shadow",children:[v.jsx("div",{className:"flex-shrink-0 w-10 h-10 rounded-md bg-primary/10 flex items-center justify-center",children:v.jsx(YO,{size:18,className:"text-primary"})}),v.jsxs("div",{children:[v.jsx("h3",{className:"font-display text-base font-bold text-foreground",children:t.name}),v.jsxs("p",{className:"font-body text-sm text-muted-foreground",children:[t.date," · ",t.location]})]})]},t.name))})]})});var Ne;(function(t){t.assertEqual=i=>{};function e(i){}t.assertIs=e;function n(i){throw new Error}t.assertNever=n,t.arrayToEnum=i=>{const s={};for(const a of i)s[a]=a;return s},t.getValidEnumValues=i=>{const s=t.objectKeys(i).filter(l=>typeof i[i[l]]!="number"),a={};for(const l of s)a[l]=i[l];return t.objectValues(a)},t.objectValues=i=>t.objectKeys(i).map(function(s){return i[s]}),t.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const s=[];for(const a in i)Object.prototype.hasOwnProperty.call(i,a)&&s.push(a);return s},t.find=(i,s)=>{for(const a of i)if(s(a))return a},t.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&Number.isFinite(i)&&Math.floor(i)===i;function r(i,s=" | "){return i.map(a=>typeof a=="string"?`'${a}'`:a).join(s)}t.joinValues=r,t.jsonStringifyReplacer=(i,s)=>typeof s=="bigint"?s.toString():s})(Ne||(Ne={}));var cx;(function(t){t.mergeShapes=(e,n)=>({...e,...n})})(cx||(cx={}));const se=Ne.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Pi=t=>{switch(typeof t){case"undefined":return se.undefined;case"string":return se.string;case"number":return Number.isNaN(t)?se.nan:se.number;case"boolean":return se.boolean;case"function":return se.function;case"bigint":return se.bigint;case"symbol":return se.symbol;case"object":return Array.isArray(t)?se.array:t===null?se.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?se.promise:typeof Map<"u"&&t instanceof Map?se.map:typeof Set<"u"&&t instanceof Set?se.set:typeof Date<"u"&&t instanceof Date?se.date:se.object;default:return se.unknown}}
vendor: 4,365 bytes, line 249
249,q=Ne.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class ci extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=e}format(e){const n=e||function(s){return s.message},r={_errors:[]},i=s=>{for(const a of s.issues)if(a.code==="invalid_union")a.unionErrors.map(i);else if(a.code==="invalid_return_type")i(a.returnTypeError);else if(a.code==="invalid_arguments")i(a.argumentsError);else if(a.path.length===0)r._errors.push(n(a));else{let l=r,c=0;for(;c<a.path.length;){const d=a.path[c];c===a.path.length-1?(l[d]=l[d]||{_errors:[]},l[d]._errors.push(n(a))):l[d]=l[d]||{_errors:[]},l=l[d],c++}}};return i(this),r}static assert(e){if(!(e instanceof ci))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Ne.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=n=>n.message){const n={},r=[];for(const i of this.issues)if(i.path.length>0){const s=i.path[0];n[s]=n[s]||[],n[s].push(e(i))}else r.push(e(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}ci.create=t=>new ci(t);const Ng=(t,e)=>{let n;switch(t.code){case q.invalid_type:t.received===se.undefined?n="Required":n=`Expected ${t.expected}, received ${t.received}`;break;case q.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(t.expected,Ne.jsonStringifyReplacer)}`;break;case q.unrecognized_keys:n=`Unrecognized key(s) in object: ${Ne.joinValues(t.keys,", ")}`;break;case q.invalid_union:n="Invalid input";break;case q.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Ne.joinValues(t.options)}`;break;case q.invalid_enum_value:n=`Invalid enum value. Expected ${Ne.joinValues(t.options)}, received '${t.received}'`;break;case q.invalid_arguments:n="Invalid function arguments";break;case q.invalid_return_type:n="Invalid function return type";break;case q.invalid_date:n="Invalid date";break;case q.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(n=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?n=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?n=`Invalid input: must end with "${t.validation.endsWith}"`:Ne.assertNever(t.validation):t.validation!=="regex"?n=`Invalid ${t.validation}`:n="Invalid";break;case q.too_small:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:n="Invalid input";break;case q.too_big:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?n=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:n="Invalid input";break;case q.custom:n="Invalid input";break;
vendor: 5,136 bytes, line 249
249case q.invalid_intersection_types:n="Intersection results could not be merged";break;case q.not_multiple_of:n=`Number must be a multiple of ${t.multipleOf}`;break;case q.not_finite:n="Number must be finite";break;default:n=e.defaultError,Ne.assertNever(t)}return{message:n}};let bF=Ng;function xF(){return bF}const kF=t=>{const{data:e,path:n,errorMaps:r,issueData:i}=t,s=[...n,...i.path||[]],a={...i,path:s};if(i.message!==void 0)return{...i,path:s,message:i.message};let l="";const c=r.filter(d=>!!d).slice().reverse();for(const d of c)l=d(a,{data:e,defaultError:l}).message;return{...i,path:s,message:l}};function X(t,e){const n=xF(),r=kF({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,n,n===Ng?void 0:Ng].filter(i=>!!i)});t.common.issues.push(r)}class fn{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,n){const r=[];for(const i of n){if(i.status==="aborted")return ye;i.status==="dirty"&&e.dirty(),r.push(i.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,n){const r=[];for(const i of n){const s=await i.key,a=await i.value;r.push({key:s,value:a})}return fn.mergeObjectSync(e,r)}static mergeObjectSync(e,n){const r={};for(const i of n){const{key:s,value:a}=i;if(s.status==="aborted"||a.status==="aborted")return ye;s.status==="dirty"&&e.dirty(),a.status==="dirty"&&e.dirty(),s.value!=="__proto__"&&(typeof a.value<"u"||i.alwaysSet)&&(r[s.value]=a.value)}return{status:e.value,value:r}}}const ye=Object.freeze({status:"aborted"}),Tl=t=>({status:"dirty",value:t}),Nn=t=>({status:"valid",value:t}),dx=t=>t.status==="aborted",hx=t=>t.status==="dirty",Sa=t=>t.status==="valid",oh=t=>typeof Promise<"u"&&t instanceof Promise;var ae;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(ae||(ae={}));class ss{constructor(e,n,r,i){this._cachedPath=[],this.parent=e,this.data=n,this._path=r,this._key=i}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const fx=(t,e)=>{if(Sa(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new ci(t.common.issues);return this._error=n,this._error}}};function Ce(t){if(!t)return{};const{errorMap:e,invalid_type_error:n,required_error:r,description:i}=t;if(e&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:i}:{errorMap:(a,l)=>{const{message:c}=t;return a.code==="invalid_enum_value"?{message:c??l.defaultError}:typeof l.data>"u"?{message:c??r??l.defaultError}:a.code!=="invalid_type"?{message:l.defaultError}:{message:c??n??l.defaultError}},description:i}}class Le{get description(){return this._def.description}_getType(e){return Pi(e.data)}_getOrReturnCtx(e,n){return n||{common:e.parent.common,data:e.data,parsedType:Pi(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new fn,ctx:{common:e.parent.common,data:e.data,parsedType:Pi(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const n=this._parse(e);if(oh(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(e){const n=this._parse(e);return Promise.resolve(n)}parse(e,n){const r=this.safeParse(e,n);if(r.success)return r.data;throw r.error}safeParse(e,n){const r={common:{issues:[],async:(n==null?void 0:n.async)??!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Pi(e)},i=this._parseSync({data:e,path:r.path,parent:r});return fx(r,i)}"~validate"(e){var r,i;const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Pi(e)};if(!this["~standard"].async)try{const s=this._parseSync({data:e,path:[],parent:n});return Sa(s)?{value:s.value}:{issues:n.common.issues}}catch(s){(i=(r=s==null?void 0:s.message)==null?void 0:r.toLowerCase())!=null&&i.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:n}).then(s=>Sa(s)?{value:s.value}:{issues:n.common.issues})}async parseAsync(e,n){const r=await this.safeParseAsync(e,n);if(r.success)return r.data;throw r.error}async safeParseAsync(e,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Pi(e)},i=this._parse({data:e,path:r.path,parent:r}),s=await(oh(i)?i:Promise.resolve(i));return fx(r,s)}refine(e,n){const r=i=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(i):n;return this._refinement((i,s)=>{const a=e(i),l=()=>s.addIssue({code:q.custom,...r(i)});
vendor: 25,472 bytes, line 249
249return typeof Promise<"u"&&a instanceof Promise?a.then(c=>c?!0:(l(),!1)):a?!0:(l(),!1)})}refinement(e,n){return this._refinement((r,i)=>e(r)?!0:(i.addIssue(typeof n=="function"?n(r,i):n),!1))}_refinement(e){return new Pa({schema:this,typeName:ve.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return Ji.create(this,this._def)}nullable(){return Ca.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Or.create(this)}promise(){return ch.create(this,this._def)}or(e){return lh.create([this,e],this._def)}and(e){return uh.create(this,e,this._def)}transform(e){return new Pa({...Ce(this._def),schema:this,typeName:ve.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const n=typeof e=="function"?e:()=>e;return new Ig({...Ce(this._def),innerType:this,defaultValue:n,typeName:ve.ZodDefault})}brand(){return new qF({typeName:ve.ZodBranded,type:this,...Ce(this._def)})}catch(e){const n=typeof e=="function"?e:()=>e;return new Dg({...Ce(this._def),innerType:this,catchValue:n,typeName:ve.ZodCatch})}describe(e){const n=this.constructor;return new n({...this._def,description:e})}pipe(e){return Wv.create(this,e)}readonly(){return Bg.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const SF=/^c[^\s-]{8,}$/i,TF=/^[0-9a-z]+$/,PF=/^[0-9A-HJKMNP-TV-Z]{26}$/i,CF=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,EF=/^[a-z0-9_-]{21}$/i,AF=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,RF=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,LF=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,OF="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Bp;const MF=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,NF=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,jF=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,IF=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,DF=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,BF=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,cE="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",zF=new RegExp(`^${cE}$`);function dE(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`);const n=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${n}`}function FF(t){return new RegExp(`^${dE(t)}$`)}function $F(t){let e=`${cE}T${dE(t)}`;const n=[];return n.push(t.local?"Z?":"Z"),t.offset&&n.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${n.join("|")})`,new RegExp(`^${e}$`)}function UF(t,e){return!!((e==="v4"||!e)&&MF.test(t)||(e==="v6"||!e)&&jF.test(t))}function VF(t,e){if(!AF.test(t))return!1;try{const[n]=t.split(".");if(!n)return!1;const r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),i=JSON.parse(atob(r));return!(typeof i!="object"||i===null||"typ"in i&&(i==null?void 0:i.typ)!=="JWT"||!i.alg||e&&i.alg!==e)}catch{return!1}}function HF(t,e){return!!((e==="v4"||!e)&&NF.test(t)||(e==="v6"||!e)&&IF.test(t))}class Fi extends Le{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==se.string){const s=this._getOrReturnCtx(e);return X(s,{code:q.invalid_type,expected:se.string,received:s.parsedType}),ye}const r=new fn;let i;for(const s of this._def.checks)if(s.kind==="min")e.data.length<s.value&&(i=this._getOrReturnCtx(e,i),X(i,{code:q.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind==="max")e.data.length>s.value&&(i=this._getOrReturnCtx(e,i),X(i,{code:q.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind==="length"){const a=e.data.length>s.value,l=e.data.length<s.value;(a||l)&&(i=this._getOrReturnCtx(e,i),a?X(i,{code:q.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):l&&X(i,{code:q.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),r.dirty())}else if(s.kind==="email")LF.test(e.data)||(i=this._getOrReturnCtx(e,i),X(i,{validation:"email",code:q.invalid_string,message:s.message}),r.dirty());else if(s.kind==="emoji")Bp||(Bp=new RegExp(OF,"u")),Bp.test(e.data)||(i=this._getOrReturnCtx(e,i),X(i,{validation:"emoji",code:q.invalid_string,message:s.message}),r.dirty());else if(s.kind==="uuid")CF.test(e.data)||(i=this._getOrReturnCtx(e,i),X(i,{validation:"uuid",code:q.invalid_string,message:s.message}),r.dirty());else if(s.kind==="nanoid")EF.test(e.data)||(i=this._getOrReturnCtx(e,i),X(i,{validation:"nanoid",code:q.invalid_string,message:s.message}),r.dirty());else if(s.kind==="cuid")SF.test(e.data)||(i=this._getOrReturnCtx(e,i),X(i,{validation:"cuid",code:q.invalid_string,message:s.message}),r.dirty());else if(s.kind==="cuid2")TF.test(e.data)||(i=this._getOrReturnCtx(e,i),X(i,{validation:"cuid2",code:q.invalid_string,message:s.message}),r.dirty());else if(s.kind==="ulid")PF.test(e.data)||(i=this._getOrReturnCtx(e,i),X(i,{validation:"ulid",code:q.invalid_string,message:s.message}),r.dirty());else if(s.kind==="url")try{new URL(e.data)}catch{i=this._getOrReturnCtx(e,i),X(i,{validation:"url",code:q.invalid_string,message:s.message}),r.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(e.data)||(i=this._getOrReturnCtx(e,i),X(i,{validation:"regex",code:q.invalid_string,message:s.message}),r.dirty())):s.kind==="trim"?e.data=e.data.trim():s.kind==="includes"?e.data.includes(s.value,s.position)||(i=this._getOrReturnCtx(e,i),X(i,{code:q.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),r.dirty()):s.kind==="toLowerCase"?e.data=e.data.toLowerCase():s.kind==="toUpperCase"?e.data=e.data.toUpperCase():s.kind==="startsWith"?e.data.startsWith(s.value)||(i=this._getOrReturnCtx(e,i),X(i,{code:q.invalid_string,validation:{startsWith:s.value},message:s.message}),r.dirty()):s.kind==="endsWith"?e.data.endsWith(s.value)||(i=this._getOrReturnCtx(e,i),X(i,{code:q.invalid_string,validation:{endsWith:s.value},message:s.message}),r.dirty()):s.kind==="datetime"?$F(s).test(e.data)||(i=this._getOrReturnCtx(e,i),X(i,{code:q.invalid_string,validation:"datetime",message:s.message}),r.dirty()):s.kind==="date"?zF.test(e.data)||(i=this._getOrReturnCtx(e,i),X(i,{code:q.invalid_string,validation:"date",message:s.message}),r.dirty()):s.kind==="time"?FF(s).test(e.data)||(i=this._getOrReturnCtx(e,i),X(i,{code:q.invalid_string,validation:"time",message:s.message}),r.dirty()):s.kind==="duration"?RF.test(e.data)||(i=this._getOrReturnCtx(e,i),X(i,{validation:"duration",code:q.invalid_string,message:s.message}),r.dirty()):s.kind==="ip"?UF(e.data,s.version)||(i=this._getOrReturnCtx(e,i),X(i,{validation:"ip",code:q.invalid_string,message:s.message}),r.dirty()):s.kind==="jwt"?VF(e.data,s.alg)||(i=this._getOrReturnCtx(e,i),X(i,{validation:"jwt",code:q.invalid_string,message:s.message}),r.dirty()):s.kind==="cidr"?HF(e.data,s.version)||(i=this._getOrReturnCtx(e,i),X(i,{validation:"cidr",code:q.invalid_string,message:s.message}),r.dirty()):s.kind==="base64"?DF.test(e.data)||(i=this._getOrReturnCtx(e,i),X(i,{validation:"base64",code:q.invalid_string,message:s.message}),r.dirty()):s.kind==="base64url"?BF.test(e.data)||(i=this._getOrReturnCtx(e,i),X(i,{validation:"base64url",code:q.invalid_string,message:s.message}),r.dirty()):Ne.assertNever(s);return{status:r.value,value:e.data}}_regex(e,n,r){return this.refinement(i=>e.test(i),{validation:n,code:q.invalid_string,...ae.errToObj(r)})}_addCheck(e){return new Fi({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...ae.errToObj(e)})}url(e){return this._addCheck({kind:"url",...ae.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...ae.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...ae.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...ae.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...ae.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...ae.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...ae.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...ae.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...ae.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...ae.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...ae.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...ae.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,offset:(e==null?void 0:e.offset)??!1,local:(e==null?void 0:e.local)??!1,...ae.errToObj(e==null?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,...ae.errToObj(e==null?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...ae.errToObj(e)})}regex(e,n){return this._addCheck({kind:"regex",regex:e,...ae.errToObj(n)})}includes(e,n){return this._addCheck({kind:"includes",value:e,position:n==null?void 0:n.position,...ae.errToObj(n==null?void 0:n.message)})}startsWith(e,n){return this._addCheck({kind:"startsWith",value:e,...ae.errToObj(n)})}endsWith(e,n){return this._addCheck({kind:"endsWith",value:e,...ae.errToObj(n)})}min(e,n){return this._addCheck({kind:"min",value:e,...ae.errToObj(n)})}max(e,n){return this._addCheck({kind:"max",value:e,...ae.errToObj(n)})}length(e,n){return this._addCheck({kind:"length",value:e,...ae.errToObj(n)})}nonempty(e){return this.min(1,ae.errToObj(e))}trim(){return new Fi({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Fi({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Fi({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxLength(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}}Fi.create=t=>new Fi({checks:[],typeName:ve.ZodString,coerce:(t==null?void 0:t.coerce)??!1,...Ce(t)});function WF(t,e){const n=(t.toString().split(".")[1]||"").length,r=(e.toString().split(".")[1]||"").length,i=n>r?n:r,s=Number.parseInt(t.toFixed(i).replace(".","")),a=Number.parseInt(e.toFixed(i).replace(".",""));return s%a/10**i}class _u extends Le{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==se.number){const s=this._getOrReturnCtx(e);return X(s,{code:q.invalid_type,expected:se.number,received:s.parsedType}),ye}let r;const i=new fn;for(const s of this._def.checks)s.kind==="int"?Ne.isInteger(e.data)||(r=this._getOrReturnCtx(e,r),X(r,{code:q.invalid_type,expected:"integer",received:"float",message:s.message}),i.dirty()):s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(r=this._getOrReturnCtx(e,r),X(r,{code:q.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(r=this._getOrReturnCtx(e,r),X(r,{code:q.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="multipleOf"?WF(e.data,s.value)!==0&&(r=this._getOrReturnCtx(e,r),X(r,{code:q.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):s.kind==="finite"?Number.isFinite(e.data)||(r=this._getOrReturnCtx(e,r),X(r,{code:q.not_finite,message:s.message}),i.dirty()):Ne.assertNever(s);return{status:i.value,value:e.data}}gte(e,n){return this.setLimit("min",e,!0,ae.toString(n))}gt(e,n){return this.setLimit("min",e,!1,ae.toString(n))}lte(e,n){return this.setLimit("max",e,!0,ae.toString(n))}lt(e,n){return this.setLimit("max",e,!1,ae.toString(n))}setLimit(e,n,r,i){return new _u({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:ae.toString(i)}]})}_addCheck(e){return new _u({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:ae.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ae.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ae.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ae.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ae.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:ae.toString(n)})}finite(e){return this._addCheck({kind:"finite",message:ae.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ae.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ae.toString(e)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&Ne.isInteger(e.value))}get isFinite(){let e=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(e===null||r.value<e)&&(e=r.value)}return Number.isFinite(n)&&Number.isFinite(e)}}_u.create=t=>new _u({checks:[],typeName:ve.ZodNumber,coerce:(t==null?void 0:t.coerce)||!1,...Ce(t)});class bu extends Le{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==se.bigint)return this._getInvalidInput(e);let r;const i=new fn;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(r=this._getOrReturnCtx(e,r),X(r,{code:q.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(r=this._getOrReturnCtx(e,r),X(r,{code:q.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="multipleOf"?e.data%s.value!==BigInt(0)&&(r=this._getOrReturnCtx(e,r),X(r,{code:q.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):Ne.assertNever(s);return{status:i.value,value:e.data}}_getInvalidInput(e){const n=this._getOrReturnCtx(e);return X(n,{code:q.invalid_type,expected:se.bigint,received:n.parsedType}),ye}gte(e,n){return this.setLimit("min",e,!0,ae.toString(n))}gt(e,n){return this.setLimit("min",e,!1,ae.toString(n))}lte(e,n){return this.setLimit("max",e,!0,ae.toString(n))}lt(e,n){return this.setLimit("max",e,!1,ae.toString(n))}setLimit(e,n,r,i){return new bu({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:ae.toString(i)}]})}_addCheck(e){return new bu({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ae.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ae.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ae.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ae.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:ae.toString(n)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}}bu.create=t=>new bu({checks:[],typeName:ve.ZodBigInt,coerce:(t==null?void 0:t.coerce)??!1,...Ce(t)});class px extends Le{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==se.boolean){const r=this._getOrReturnCtx(e);return X(r,{code:q.invalid_type,expected:se.boolean,received:r.parsedType}),ye}return Nn(e.data)}}px.create=t=>new px({typeName:ve.ZodBoolean,coerce:(t==null?void 0:t.coerce)||!1,...Ce(t)});class ah extends Le{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==se.date){const s=this._getOrReturnCtx(e);return X(s,{code:q.invalid_type,expected:se.date,received:s.parsedType}),ye}if(Number.isNaN(e.data.getTime())){const s=this._getOrReturnCtx(e);return X(s,{code:q.invalid_date}),ye}const r=new fn;let i;for(const s of this._def.checks)s.kind==="min"?e.data.getTime()<s.value&&(i=this._getOrReturnCtx(e,i),X(i,{code:q.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),r.dirty()):s.kind==="max"?e.data.getTime()>s.value&&(i=this._getOrReturnCtx(e,i),X(i,{code:q.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),r.dirty()):Ne.assertNever(s);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new ah({...this._def,checks:[...this._def.checks,e]})}min(e,n){return this._addCheck({kind:"min",value:e.getTime(),message:ae.toString(n)})}max(e,n){return this._addCheck({kind:"max",value:e.getTime(),message:ae.toString(n)})}get minDate(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e!=null?new Date(e):null}}ah.create=t=>new ah({checks:[],coerce:(t==null?void 0:t.coerce)||!1,typeName:ve.ZodDate,...Ce(t)});class mx extends Le{_parse(e){if(this._getType(e)!==se.symbol){const r=this._getOrReturnCtx(e);return X(r,{code:q.invalid_type,expected:se.symbol,received:r.parsedType}),ye}return Nn(e.data)}}mx.create=t=>new mx({typeName:ve.ZodSymbol,...Ce(t)});class gx extends Le{_parse(e){if(this._getType(e)!==se.undefined){const r=this._getOrReturnCtx(e);return X(r,{code:q.invalid_type,expected:se.undefined,received:r.parsedType}),ye}return Nn(e.data)}}gx.create=t=>new gx({typeName:ve.ZodUndefined,...Ce(t)});class yx extends Le{_parse(e){if(this._getType(e)!==se.null){const r=this._getOrReturnCtx(e);return X(r,{code:q.invalid_type,expected:se.null,received:r.parsedType}),ye}return Nn(e.data)}}yx.create=t=>new yx({typeName:ve.ZodNull,...Ce(t)});class vx extends Le{constructor(){super(...arguments),this._any=!0}_parse(e){return Nn(e.data)}}vx.create=t=>new vx({typeName:ve.ZodAny,...Ce(t)});class wx extends Le{constructor(){super(...arguments),this._unknown=!0}_parse(e){return Nn(e.data)}}wx.create=t=>new wx({typeName:ve.ZodUnknown,...Ce(t)});class os extends Le{_parse(e){const n=this._getOrReturnCtx(e);return X(n,{code:q.invalid_type,expected:se.never,received:n.parsedType}),ye}}os.create=t=>new os({typeName:ve.ZodNever,...Ce(t)});class _x extends Le{_parse(e){if(this._getType(e)!==se.undefined){const r=this._getOrReturnCtx(e);return X(r,{code:q.invalid_type,expected:se.void,received:r.parsedType}),ye}return Nn(e.data)}}_x.create=t=>new _x({typeName:ve.ZodVoid,...Ce(t)});class Or extends Le{_parse(e){const{ctx:n,status:r}=this._processInputParams(e),i=this._def;if(n.parsedType!==se.array)return X(n,{code:q.invalid_type,expected:se.array,received:n.parsedType}),ye;if(i.exactLength!==null){const a=n.data.length>i.exactLength.value,l=n.data.length<i.exactLength.value;(a||l)&&(X(n,{code:a?q.too_big:q.too_small,minimum:l?i.exactLength.value:void 0,maximum:a?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),r.dirty())}if(i.minLength!==null&&n.data.length<i.minLength.value&&(X(n,{code:q.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),r.dirty()),i.maxLength!==null&&n.data.length>i.maxLength.value&&(X(n,{code:q.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((a,l)=>i.type._parseAsync(new ss(n,a,n.path,l)))).then(a=>fn.mergeArray(r,a));const s=[...n.data].map((a,l)=>i.type._parseSync(new ss(n,a,n.path,l)));return fn.mergeArray(r,s)}get element(){return this._def.type}min(e,n){return new Or({...this._def,minLength:{value:e,message:ae.toString(n)}})}max(e,n){return new Or({...this._def,maxLength:{value:e,message:ae.toString(n)}})}length(e,n){return new Or({...this._def,exactLength:{value:e,message:ae.toString(n)}})}nonempty(e){return this.min(1,e)}}Or.create=(t,e)=>new Or({type:t,minLength:null,maxLength:null,exactLength:null,typeName:ve.ZodArray,...Ce(e)});function To(t){if(t instanceof rt){const e={};for(const n in t.shape){const r=t.shape[n];e[n]=Ji.create(To(r))}return new rt({...t._def,shape:()=>e})}else return t instanceof Or?new Or({...t._def,type:To(t.element)}):t instanceof Ji?Ji.create(To(t.unwrap())):t instanceof Ca?Ca.create(To(t.unwrap())):t instanceof Qs?Qs.create(t.items.map(e=>To(e))):t}class rt extends Le{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),n=Ne.objectKeys(e);return this._cached={shape:e,keys:n},this._cached}_parse(e){if(this._getType(e)!==se.object){const d=this._getOrReturnCtx(e);
vendor: 4,804 bytes, line 249
249return X(d,{code:q.invalid_type,expected:se.object,received:d.parsedType}),ye}const{status:r,ctx:i}=this._processInputParams(e),{shape:s,keys:a}=this._getCached(),l=[];if(!(this._def.catchall instanceof os&&this._def.unknownKeys==="strip"))for(const d in i.data)a.includes(d)||l.push(d);const c=[];for(const d of a){const f=s[d],p=i.data[d];c.push({key:{status:"valid",value:d},value:f._parse(new ss(i,p,i.path,d)),alwaysSet:d in i.data})}if(this._def.catchall instanceof os){const d=this._def.unknownKeys;if(d==="passthrough")for(const f of l)c.push({key:{status:"valid",value:f},value:{status:"valid",value:i.data[f]}});else if(d==="strict")l.length>0&&(X(i,{code:q.unrecognized_keys,keys:l}),r.dirty());else if(d!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const d=this._def.catchall;for(const f of l){const p=i.data[f];c.push({key:{status:"valid",value:f},value:d._parse(new ss(i,p,i.path,f)),alwaysSet:f in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const d=[];for(const f of c){const p=await f.key,g=await f.value;d.push({key:p,value:g,alwaysSet:f.alwaysSet})}return d}).then(d=>fn.mergeObjectSync(r,d)):fn.mergeObjectSync(r,c)}get shape(){return this._def.shape()}strict(e){return ae.errToObj,new rt({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(n,r)=>{var s,a;const i=((a=(s=this._def).errorMap)==null?void 0:a.call(s,n,r).message)??r.defaultError;return n.code==="unrecognized_keys"?{message:ae.errToObj(e).message??i}:{message:i}}}:{}})}strip(){return new rt({...this._def,unknownKeys:"strip"})}passthrough(){return new rt({...this._def,unknownKeys:"passthrough"})}extend(e){return new rt({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new rt({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:ve.ZodObject})}setKey(e,n){return this.augment({[e]:n})}catchall(e){return new rt({...this._def,catchall:e})}pick(e){const n={};for(const r of Ne.objectKeys(e))e[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new rt({...this._def,shape:()=>n})}omit(e){const n={};for(const r of Ne.objectKeys(this.shape))e[r]||(n[r]=this.shape[r]);return new rt({...this._def,shape:()=>n})}deepPartial(){return To(this)}partial(e){const n={};for(const r of Ne.objectKeys(this.shape)){const i=this.shape[r];e&&!e[r]?n[r]=i:n[r]=i.optional()}return new rt({...this._def,shape:()=>n})}required(e){const n={};for(const r of Ne.objectKeys(this.shape))if(e&&!e[r])n[r]=this.shape[r];else{let s=this.shape[r];for(;s instanceof Ji;)s=s._def.innerType;n[r]=s}return new rt({...this._def,shape:()=>n})}keyof(){return hE(Ne.objectKeys(this.shape))}}rt.create=(t,e)=>new rt({shape:()=>t,unknownKeys:"strip",catchall:os.create(),typeName:ve.ZodObject,...Ce(e)});rt.strictCreate=(t,e)=>new rt({shape:()=>t,unknownKeys:"strict",catchall:os.create(),typeName:ve.ZodObject,...Ce(e)});rt.lazycreate=(t,e)=>new rt({shape:t,unknownKeys:"strip",catchall:os.create(),typeName:ve.ZodObject,...Ce(e)});class lh extends Le{_parse(e){const{ctx:n}=this._processInputParams(e),r=this._def.options;function i(s){for(const l of s)if(l.result.status==="valid")return l.result;for(const l of s)if(l.result.status==="dirty")return n.common.issues.push(...l.ctx.common.issues),l.result;const a=s.map(l=>new ci(l.ctx.common.issues));return X(n,{code:q.invalid_union,unionErrors:a}),ye}if(n.common.async)return Promise.all(r.map(async s=>{const a={...n,common:{...n.common,issues:[]},parent:null};return{result:await s._parseAsync({data:n.data,path:n.path,parent:a}),ctx:a}})).then(i);{let s;const a=[];for(const c of r){const d={...n,common:{...n.common,issues:[]},parent:null},f=c._parseSync({data:n.data,path:n.path,parent:d});if(f.status==="valid")return f;f.status==="dirty"&&!s&&(s={result:f,ctx:d}),d.common.issues.length&&a.push(d.common.issues)}if(s)return n.common.issues.push(...s.ctx.common.issues),s.result;const l=a.map(c=>new ci(c));return X(n,{code:q.invalid_union,unionErrors:l}),ye}}get options(){return this._def.options}}lh.create=(t,e)=>new lh({options:t,typeName:ve.ZodUnion,...Ce(e)});function jg(t,e){const n=Pi(t),r=Pi(e);if(t===e)return{valid:!0,data:t};if(n===se.object&&r===se.object){const i=Ne.objectKeys(e),s=Ne.objectKeys(t).filter(l=>i.indexOf(l)!==-1),a={...t,...e};for(const l of s){const c=jg(t[l],e[l]);if(!c.valid)return{valid:!1};a[l]=c.data}return{valid:!0,data:a}}else if(n===se.array&&r===se.array){if(t.length!==e.length)return{valid:!1};const i=[];for(let s=0;s<t.length;s++){const a=t[s],l=e[s],c=jg(a,l);if(!c.valid)return{valid:!1};i.push(c.data)}return{valid:!0,data:i}}else return n===se.date&&r===se.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}class uh extends Le{_parse(e){const{status:n,ctx:r}=this._processInputParams(e),i=(s,a)=>
vendor: 4,163 bytes, line 249
249{if(dx(s)||dx(a))return ye;const l=jg(s.value,a.value);return l.valid?((hx(s)||hx(a))&&n.dirty(),{status:n.value,value:l.data}):(X(r,{code:q.invalid_intersection_types}),ye)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([s,a])=>i(s,a)):i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}uh.create=(t,e,n)=>new uh({left:t,right:e,typeName:ve.ZodIntersection,...Ce(n)});class Qs extends Le{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==se.array)return X(r,{code:q.invalid_type,expected:se.array,received:r.parsedType}),ye;if(r.data.length<this._def.items.length)return X(r,{code:q.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ye;!this._def.rest&&r.data.length>this._def.items.length&&(X(r,{code:q.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const s=[...r.data].map((a,l)=>{const c=this._def.items[l]||this._def.rest;return c?c._parse(new ss(r,a,r.path,l)):null}).filter(a=>!!a);return r.common.async?Promise.all(s).then(a=>fn.mergeArray(n,a)):fn.mergeArray(n,s)}get items(){return this._def.items}rest(e){return new Qs({...this._def,rest:e})}}Qs.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Qs({items:t,typeName:ve.ZodTuple,rest:null,...Ce(e)})};class bx extends Le{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==se.map)return X(r,{code:q.invalid_type,expected:se.map,received:r.parsedType}),ye;const i=this._def.keyType,s=this._def.valueType,a=[...r.data.entries()].map(([l,c],d)=>({key:i._parse(new ss(r,l,r.path,[d,"key"])),value:s._parse(new ss(r,c,r.path,[d,"value"]))}));if(r.common.async){const l=new Map;return Promise.resolve().then(async()=>{for(const c of a){const d=await c.key,f=await c.value;if(d.status==="aborted"||f.status==="aborted")return ye;(d.status==="dirty"||f.status==="dirty")&&n.dirty(),l.set(d.value,f.value)}return{status:n.value,value:l}})}else{const l=new Map;for(const c of a){const d=c.key,f=c.value;if(d.status==="aborted"||f.status==="aborted")return ye;(d.status==="dirty"||f.status==="dirty")&&n.dirty(),l.set(d.value,f.value)}return{status:n.value,value:l}}}}bx.create=(t,e,n)=>new bx({valueType:e,keyType:t,typeName:ve.ZodMap,...Ce(n)});class xu extends Le{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==se.set)return X(r,{code:q.invalid_type,expected:se.set,received:r.parsedType}),ye;const i=this._def;i.minSize!==null&&r.data.size<i.minSize.value&&(X(r,{code:q.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),n.dirty()),i.maxSize!==null&&r.data.size>i.maxSize.value&&(X(r,{code:q.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());const s=this._def.valueType;function a(c){const d=new Set;for(const f of c){if(f.status==="aborted")return ye;f.status==="dirty"&&n.dirty(),d.add(f.value)}return{status:n.value,value:d}}const l=[...r.data.values()].map((c,d)=>s._parse(new ss(r,c,r.path,d)));return r.common.async?Promise.all(l).then(c=>a(c)):a(l)}min(e,n){return new xu({...this._def,minSize:{value:e,message:ae.toString(n)}})}max(e,n){return new xu({...this._def,maxSize:{value:e,message:ae.toString(n)}})}size(e,n){return this.min(e,n).max(e,n)}nonempty(e){return this.min(1,e)}}xu.create=(t,e)=>new xu({valueType:t,minSize:null,maxSize:null,typeName:ve.ZodSet,...Ce(e)});class xx extends Le{get schema(){return this._def.getter()}_parse(e){const{ctx:n}=this._processInputParams(e);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}xx.create=(t,e)=>new xx({getter:t,typeName:ve.ZodLazy,...Ce(e)});class kx extends Le{_parse(e){if(e.data!==this._def.value){const n=this._getOrReturnCtx(e);return X(n,{received:n.data,code:q.invalid_literal,expected:this._def.value}),ye}
vendor: 5,374 bytes, line 249
249return{status:"valid",value:e.data}}get value(){return this._def.value}}kx.create=(t,e)=>new kx({value:t,typeName:ve.ZodLiteral,...Ce(e)});function hE(t,e){return new Ta({values:t,typeName:ve.ZodEnum,...Ce(e)})}class Ta extends Le{_parse(e){if(typeof e.data!="string"){const n=this._getOrReturnCtx(e),r=this._def.values;return X(n,{expected:Ne.joinValues(r),received:n.parsedType,code:q.invalid_type}),ye}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){const n=this._getOrReturnCtx(e),r=this._def.values;return X(n,{received:n.data,code:q.invalid_enum_value,options:r}),ye}return Nn(e.data)}get options(){return this._def.values}get enum(){const e={};for(const n of this._def.values)e[n]=n;return e}get Values(){const e={};for(const n of this._def.values)e[n]=n;return e}get Enum(){const e={};for(const n of this._def.values)e[n]=n;return e}extract(e,n=this._def){return Ta.create(e,{...this._def,...n})}exclude(e,n=this._def){return Ta.create(this.options.filter(r=>!e.includes(r)),{...this._def,...n})}}Ta.create=hE;class Sx extends Le{_parse(e){const n=Ne.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==se.string&&r.parsedType!==se.number){const i=Ne.objectValues(n);return X(r,{expected:Ne.joinValues(i),received:r.parsedType,code:q.invalid_type}),ye}if(this._cache||(this._cache=new Set(Ne.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const i=Ne.objectValues(n);return X(r,{received:r.data,code:q.invalid_enum_value,options:i}),ye}return Nn(e.data)}get enum(){return this._def.values}}Sx.create=(t,e)=>new Sx({values:t,typeName:ve.ZodNativeEnum,...Ce(e)});class ch extends Le{unwrap(){return this._def.type}_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==se.promise&&n.common.async===!1)return X(n,{code:q.invalid_type,expected:se.promise,received:n.parsedType}),ye;const r=n.parsedType===se.promise?n.data:Promise.resolve(n.data);return Nn(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}ch.create=(t,e)=>new ch({type:t,typeName:ve.ZodPromise,...Ce(e)});class Pa extends Le{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ve.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:n,ctx:r}=this._processInputParams(e),i=this._def.effect||null,s={addIssue:a=>{X(r,a),a.fatal?n.abort():n.dirty()},get path(){return r.path}};if(s.addIssue=s.addIssue.bind(s),i.type==="preprocess"){const a=i.transform(r.data,s);if(r.common.async)return Promise.resolve(a).then(async l=>{if(n.value==="aborted")return ye;const c=await this._def.schema._parseAsync({data:l,path:r.path,parent:r});return c.status==="aborted"?ye:c.status==="dirty"||n.value==="dirty"?Tl(c.value):c});{if(n.value==="aborted")return ye;const l=this._def.schema._parseSync({data:a,path:r.path,parent:r});return l.status==="aborted"?ye:l.status==="dirty"||n.value==="dirty"?Tl(l.value):l}}if(i.type==="refinement"){const a=l=>{const c=i.refinement(l,s);if(r.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return l};if(r.common.async===!1){const l=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return l.status==="aborted"?ye:(l.status==="dirty"&&n.dirty(),a(l.value),{status:n.value,value:l.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(l=>l.status==="aborted"?ye:(l.status==="dirty"&&n.dirty(),a(l.value).then(()=>({status:n.value,value:l.value}))))}if(i.type==="transform")if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Sa(a))return ye;const l=i.transform(a.value,s);if(l instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:l}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>Sa(a)?Promise.resolve(i.transform(a.value,s)).then(l=>({status:n.value,value:l})):ye);Ne.assertNever(i)}}Pa.create=(t,e,n)=>new Pa({schema:t,typeName:ve.ZodEffects,effect:e,...Ce(n)});Pa.createWithPreprocess=(t,e,n)=>new Pa({schema:e,effect:{type:"preprocess",transform:t},typeName:ve.ZodEffects,...Ce(n)});class Ji extends Le{_parse(e){return this._getType(e)===se.undefined?Nn(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Ji.create=(t,e)=>new Ji({innerType:t,typeName:ve.ZodOptional,...Ce(e)});class Ca extends Le{_parse(e){return this._getType(e)===se.null?Nn(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Ca.create=(t,e)=>new Ca({innerType:t,typeName:ve.ZodNullable,...Ce(e)});class Ig extends Le{_parse(e){const{ctx:n}=this._processInputParams(e);let r=n.data;return n.parsedType===se.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Ig.create=(t,e)=>new Ig({innerType:t,typeName:ve.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...Ce(e)});class Dg extends Le{_parse(e){const{ctx:n}=this._processInputParams(e),r={...n,common:{...n.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return oh(i)?i.then(s=>
249({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new ci(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new ci(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Dg.create=(t,e)=>new Dg({innerType:t,typeName:ve.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...Ce(e)});class Tx extends Le{_parse(e){if(this._getType(e)!==se.nan){const r=this._getOrReturnCtx(e);return X(r,{code:q.invalid_type,expected:se.nan,received:r.parsedType}),ye}return{status:"valid",value:e.data}}}Tx.create=t=>new Tx({typeName:ve.ZodNaN,...Ce(t)});class qF extends Le{_parse(e){const{ctx:n}=this._processInputParams(e),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class Wv extends Le{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?ye:s.status==="dirty"?(n.dirty(),Tl(s.value)):this._def.out._parseAsync({data:s.value,path:r.path,parent:r})})();{const i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?ye:i.status==="dirty"?(n.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:r.path,parent:r})}}static create(e,n){return new Wv({in:e,out:n,typeName:ve.ZodPipeline})}}class Bg extends Le{_parse(e){const n=this._def.innerType._parse(e),r=i=>(Sa(i)&&(i.value=Object.freeze(i.value)),i);return oh(n)?n.then(i=>r(i)):r(n)}unwrap(){return this._def.innerType}}Bg.create=(t,e)=>new Bg({innerType:t,typeName:ve.ZodReadonly,...Ce(e)});rt.lazycreate;var ve;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(ve||(ve={}));const Ss=Fi.create;os.create;Or.create;const GF=rt.create;rt.strictCreate;lh.create;uh.create;Qs.create;Ta.create;ch.create;Ji.create;Ca.create;function ZF(t,e,n,r){function i(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function l(f){try{d(r.next(f))}catch(p){a(p)}}function c(f){try{d(r.throw(f))}catch(p){a(p)}}function d(f){f.done?s(f.value):i(f.value).then(l,c)}d((r=r.apply(t,e||[])).next())})}const KF=t=>t?(...e)=>t(...e):(...e)=>fetch(...e);class qv extends Error{constructor(e,n="FunctionsError",r){super(e),this.name=n,this.context=r}toJSON(){return{name:this.name,message:this.message,context:this.context}}}class JF extends qv{constructor(e){super("Failed to send a request to the Edge Function","FunctionsFetchError",e)}}class Px extends qv{constructor(e){super("Relay Error invoking the Edge Function","FunctionsRelayError",e)}}class Cx extends qv{constructor(e){super("Edge Function returned a non-2xx status code","FunctionsHttpError",e)}}var zg;(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"})(zg||(zg={}));class YF{constructor(e,{headers:n={},customFetch:r,region:i=zg.Any}={}){this.url=e,this.headers=n,this.region=i,this.fetch=KF(r)}setAuth(e){this.headers.Authorization=`Bearer ${e}`}invoke(e){return ZF(this,arguments,void 0,function*(n,r={}){var i;let s,a;
249try{const{headers:l,method:c,body:d,signal:f,timeout:p}=r;let g={},{region:y}=r;y||(y=this.region);const b=new URL(`${this.url}/${n}`);y&&y!=="any"&&(g["x-region"]=y,b.searchParams.set("forceFunctionRegion",y));let _;d&&(l&&!Object.prototype.hasOwnProperty.call(l,"Content-Type")||!l)?typeof Blob<"u"&&d instanceof Blob||d instanceof ArrayBuffer?(g["Content-Type"]="application/octet-stream",_=d):typeof d=="string"?(g["Content-Type"]="text/plain",_=d):typeof FormData<"u"&&d instanceof FormData?_=d:(g["Content-Type"]="application/json",_=JSON.stringify(d)):d&&typeof d!="string"&&!(typeof Blob<"u"&&d instanceof Blob)&&!(d instanceof ArrayBuffer)&&!(typeof FormData<"u"&&d instanceof FormData)?_=JSON.stringify(d):_=d;let T=f;p&&(a=new AbortController,s=setTimeout(()=>a.abort(),p),f?(T=a.signal,f.addEventListener("abort",()=>a.abort())):T=a.signal);const x=yield this.fetch(b.toString(),{method:c||"POST",headers:Object.assign(Object.assign(Object.assign({},g),this.headers),l),body:_,signal:T}).catch(A=>{throw new JF(A)}),S=x.headers.get("x-relay-error");if(S&&S==="true")throw new Px(x);if(!x.ok)throw new Cx(x);let k=((i=x.headers.get("Content-Type"))!==null&&i!==void 0?i:"text/plain").split(";")[0].trim(),E;return k==="application/json"?E=yield x.json():k==="application/octet-stream"||k==="application/pdf"?E=yield x.blob():k==="text/event-stream"?E=x:k==="multipart/form-data"?E=yield x.formData():E=yield x.text(),{data:E,error:null,response:x}}catch(l){return{data:null,error:l,response:l instanceof Cx||l instanceof Px?l.context:void 0}}finally{s&&clearTimeout(s)}})}}const fE=3,Ex=t=>Math.min(1e3*2**t,3e4),XF=[520,503],pE=["GET","HEAD","OPTIONS"];var Ax=class extends Error{constructor(t){super(t.message),this.name="PostgrestError",this.details=t.details,this.hint=t.hint,this.co
249de=t.code}toJSON(){return{name:this.name,message:this.message,details:this.details,hint:this.hint,code:this.code}}};function Rx(t,e){return new Promise(n=>{if(e!=null&&e.aborted){n();return}const r=setTimeout(()=>{e==null||e.removeEventListener("abort",i),n()},t);function i(){clearTimeout(r),n()}e==null||e.addEventListener("abort",i)})}function QF(t,e,n,r){return!(!r||n>=fE||!pE.includes(t)||!XF.includes(e))}var e9=class{constructor(t){var e,n,r,i,s;this.shouldThrowOnError=!1,this.retryEnabled=!0,this.method=t.method,this.url=t.url,this.headers=new Headers(t.headers),this.schema=t.schema,this.body=t.body,this.shouldThrowOnError=(e=t.shouldThrowOnError)!==null&&e!==void 0?e:!1,this.signal=t.signal,this.isMaybeSingle=(n=t.isMaybeSingle)!==null&&n!==void 0?n:!1,this.shouldStripNulls=(r=t.shouldStripNulls)!==null&&r!==void 0?r:!1,this.urlLengthLimit=(i=t.urlLengthLimit)!==null&&i!==void 0?i:8e3,this.retryEnabled=(s=t.retry)!==null&&s!==void 0?s:!0,t.fetch?this.fetch=t.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}stripNulls(){if(this.headers.get("Accept")==="text/csv")throw new Error("stripNulls() cannot be used with csv()");return this.shouldStripNulls=!0,this}setHeader(t,e){return this.headers=new Headers(this.headers),this.headers.set(t,e),this}retry(t){return this.retryEnabled=t,this}then(t,e){var n=this;if(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"),this.shouldStripNulls){const a=this.headers.get("Accept");a==="application/vnd.pgrst.object+json"?this.headers.set("Accept","application/vnd.pgrst.object+json;nulls=stripped"):(!a||a==="application/json")&&this.headers.set("Accept","application/vnd.pgrst.array+json;nulls=stripped")}const r=this.fetch;let s=(async()=>{let a=0;for(;;){const d={};n.headers.forEach((p,g)=>{d[g]=p}),a>0&&(d["X-Retry-Count"]=String(a));let f;try{f=await r(n.url.toString(),{method:n.method,headers:d,body:JSON.stringify(n.body,(p,g)=>typeof g=="bigint"?g.toString():g),signal:n.signal})}catch(p){if((p==null?void 0:p.name)==="AbortError"||(p==null?void 0:p.code)==="ABORT_ERR"||!pE.includes(n.method))throw p;if(n.retryEnabled&&a<fE){const g=Ex(a);a++,await Rx(g,n.signal);continue}throw p}if(QF(n.method,f.status,a,n.retryEnabled)){var l,c;const p=(l=(c=f.headers)===null||c===void 0?void 0:c.get("Retry-After"))!==null&&l!==void 0?l:null,g=p!==null?Math.max(0,parseInt(p,10)||0)*1e3:Ex(a);await f.text(),a++,await Rx(g,n.signal);continue}return await n.processResponse(f)}})();return this.shouldThrowOnError||(s=s.catch(a=>{var l;let c="",d="",f="";const p=a==null?void 0:a.cause;if(p){var g,y,b,_;const S=(g=p==null?void 0:p.message)!==null&&g!==void 0?g:"",k=(y=p==null?void 0:p.code)!==null&&y!==void 0?y:"";c=`${(b=a==null?void 0:a.name)!==null&&b!==void 0?b:"FetchError"}: ${a==null?void 0:a.message}`,c+=`
250
251Caused by: ${(_=p==null?void 0:p.name)!==null&&_!==void 0?_:"Error"}: ${S}`,k&&(c+=` (${k})`),p!=null&&p.stack&&(c+=`
252${p.stack}`)}else{var T;c=(T=a==null?void 0:a.stack)!==null&&T!==void 0?T:""}const x=this.url.toString().length;return(a==null?void 0:a.name)==="AbortError"||(a==null?void 0:a.code)==="ABORT_ERR"?(f="",d="Request was aborted (timeout or manual cancellation)",x>this.urlLengthLimit&&(d+=`. Note: Your request URL is ${x} characters, which may exceed server limits. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [many IDs])), consider using an RPC function to pass values server-side.`)):((p==null?void 0:p.name)==="HeadersOverflowError"||(p==null?void 0:p.code)==="UND_ERR_HEADERS_OVERFLOW")&&(f="",d="HTTP headers exceeded server limits (typically 16KB)",x>this.urlLengthLimit&&(d+=`. Your request URL is ${x} characters. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [200+ IDs])), consider using an RPC function instead.`)),{success:!1,error:{message:`${(l=a==null?void 0:a.name)!==null&&l!==void 0?l:"FetchError"}: ${a==null?void 0:a.message}`,details:c,hint:d,code:f},data:null,count:null,status:0,statusText:""}}
252)),s.then(t,e)}async processResponse(t){var e=this;let n=null,r=null,i=null,s=t.status,a=t.statusText;if(t.ok){var l,c;if(e.method!=="HEAD"){var d;const g=await t.text();if(g!=="")if(e.headers.get("Accept")==="text/csv")r=g;else if(e.headers.get("Accept")&&(!((d=e.headers.get("Accept"))===null||d===void 0)&&d.includes("application/vnd.pgrst.plan+text")))r=g;else try{r=JSON.parse(g)}catch{if(n={message:g},r=null,e.shouldThrowOnError)throw new Ax({message:g,details:"",hint:"",code:""})}}const f=(l=e.headers.get("Prefer"))===null||l===void 0?void 0:l.match(/count=(exact|planned|estimated)/),p=(c=t.headers.get("content-range"))===null||c===void 0?void 0:c.split("/");f&&p&&p.length>1&&(i=parseInt(p[1])),e.isMaybeSingle&&Array.isArray(r)&&(r.length>1?(n={code:"PGRST116",details:`Results contain ${r.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},r=null,i=null,s=406,a="Not Acceptable"):r.length===1?r=r[0]:r=null)}else{const f=await t.text();try{n=JSON.parse(f),Array.isArray(n)&&t.status===404&&(r=[],n=null,s=200,a="OK")}catch{t.status===404&&f===""?(s=204,a="No Content"):n={message:f}}if(n&&e.shouldThrowOnError)throw new Ax(n)}return{success:n===null,error:n,data:r,count:i,status:s,statusText:a}}returns(){return this}overrideTypes(){return this}},t9=class extends e9{select(t){let e=!1;const n=(t??"*").split("").map(r=>/\s/.test(r)&&!e?"":(r==='"'&&(e=!e),r)).join("");return this.url.searchParams.set("select",n),this.headers.append("Prefer","return=representation"),this}order(t,{ascending:e=!0,nullsFirst:n,foreignTable:r,referencedTable:i=r}={}){const s=i?`${i}.order`:"order",a=this.url.searchParams.get(s);return this.url.searchParams.set(s,`${a?`${a},`:""}${t}.${e?"asc":"desc"}${n===void 0?"":n?".nullsfirst":".nullslast"}`),this}limit(t,{foreignTable:e,referencedTable:n=e}={}){const r=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(r,`${t}`),this}range(t,e,{foreignTable:n,referencedTable:r=n}={}){const i=typeof r>"u"?"offset":`${r}.offset`,s=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(i,`${t}`),this.url.searchParams.set(s,`${e-t+1}`),this}abortSignal(t){return this.signal=t,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}explain({analyze:t=!1,verbose:e=!1,settings:n=!1,buffers:r=!1,wal:i=!1,format:s="text"}={}){var a;const l=[t?"analyze":null,e?"verbose":null,n?"settings":null,r?"buffers":null,i?"wal":null].filter(Boolean).join("|"),c=(a=this.headers.get("Accept"))!==null&&a!==void 0?a:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${s}; for="${c}"; options=${l};`),s==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(t){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${t}`),this}};const Lx=new RegExp("[,()]");var Po=class extends t9{eq(t,e){return this.url.searchParams.append(t,`eq.${e}`),this}neq(t,e){return this.url.searchParams.append(t,`neq.${e}`),this}gt(t,e){return this.url.searchParams.append(t,`gt.${e}`),this}gte(t,e){return this.url.searchParams.append(t,`gte.${e}`),this}lt(t,e){return this.url.searchParams.append(t,`lt.${e}`),this}lte(t,e){return this.url.searchParams.append(t,`lte.${e}`),this}like(t,e){return this.url.searchParams.append(t,`like.${e}`),this}likeAllOf(t,e){return this.url.searchParams.append(t,`like(all).{${e.join(",")}}`),this}likeAnyOf(t,e){return this.url.searchParams.append(t,`like(any).{${e.join(",")}}`),this}ilike(t,e){return this.url.searchParams.append(t,`ilike.${e}`),this}ilikeAllOf(t,e){return this.url.searchParams.append(t,`ilike(all).{${e.join(",")}}`),this}ilikeAnyOf(t,e){return this.url.searchParams.append(t,`ilike(any).{${e.join(",")}}`),this}regexMatch(t,e){return this.url.searchParams.append(t,`match.${e}`),this}regexIMatch(t,e){return this.url.searchParams.append(t,`imatch.${e}`),this}is(t,e){return this.url.searchParams.append(t,`is.${e}`),this}isDistinct(t,e){return this.url.searchParams.append(t,`isdistinct.${e}`),this}in(t,e){const n=Array.from(new Set(e)).map(r=>typeof r=="string"&&Lx.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(t,`in.(${n})`),this}notIn(t,e){const n=Array.from(new Set(e)).map(r=>typeof r=="string"&&Lx.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(t,`not.in.(${n})`),this}contains(t,e){return typeof e=="string"?this.url.searchParams.append(t,`cs.${e}`):Array.isArray(e)?this.url.searchParams.append(t,`cs.{${e.join(",")}}`):this.url.searchParams.append(t,`cs.${JSON.stringify(e)}`),this}containedBy(t,e){return typeof e=="string"?this.url.searchParams.append(t,`cd.${e}`):Array.isArray(e)?this.url.searchParams.append(t,`cd.{${e.join(",")}}`):this.url.searchParams.append(t,`cd.${JSON.stringify(e)}`),this}rangeGt(t,e){return this.url.searchParams.append(t,`sr.${e}`),this}rangeGte(t,e){return this.url.searchParams.append(t,`nxl.${e}`),this}rangeLt(t,e){return this.url.searchParams.append(t,`sl.${e}`),this}rangeLte(t,e){return this.url.searchParams.append(t,`nxr.${e}`),this}rangeAdjacent(t,e){return this.url.searchParams.append(t,`adj.${e}`),this}overlaps(t,e){return typeof e=="string"?this.url.searchParams.append(t,`ov.${e}`):this.url.searchParams.append(t,`ov.{${e.join(",")}}`),this}textSearch(t,e,{config:n,type:r}={}){let i="";r==="plain"?i="pl":r==="phrase"?i="ph":r==="websearch"&&(i="w");const s=n===void 0?"":`(${n})`;return this.url.searchParams.append(t,`${i}fts${s}.${e}`),this}match(t){return Object.entries(t).filter(([e,n])=>
252n!==void 0).forEach(([e,n])=>{this.url.searchParams.append(e,`eq.${n}`)}),this}not(t,e,n){return this.url.searchParams.append(t,`not.${e}.${n}`),this}or(t,{foreignTable:e,referencedTable:n=e}={}){const r=n?`${n}.or`:"or";return this.url.searchParams.append(r,`(${t})`),this}filter(t,e,n){return this.url.searchParams.append(t,`${e}.${n}`),this}},n9=class{constructor(t,{headers:e={},schema:n,fetch:r,urlLengthLimit:i=8e3,retry:s}){this.url=t,this.headers=new Headers(e),this.schema=n,this.fetch=r,this.urlLengthLimit=i,this.retry=s}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(t,e){const{head:n=!1,count:r}=e??{},i=n?"HEAD":"GET";let s=!1;const a=(t??"*").split("").map(d=>/\s/.test(d)&&!s?"":(d==='"'&&(s=!s),d)).join(""),{url:l,headers:c}=this.cloneRequestState();return l.searchParams.set("select",a),r&&c.append("Prefer",`count=${r}`),new Po({method:i,url:l,headers:c,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}insert(t,{count:e,defaultToNull:n=!0}={}){var r;const i="POST",{url:s,headers:a}=this.cloneRequestState();if(e&&a.append("Prefer",`count=${e}`),n||a.append("Prefer","missing=default"),Array.isArray(t)){const l=t.reduce((c,d)=>c.concat(Object.keys(d)),[]);if(l.length>0){const c=[...new Set(l)].map(d=>`"${d}"`);s.searchParams.set("columns",c.join(","))}}return new Po({method:i,url:s,headers:a,schema:this.schema,body:t,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}upsert(t,{onConflict:e,ignoreDuplicates:n=!1,count:r,defaultToNull:i=!0}={}){var s;const a="POST",{url:l,headers:c}=this.cloneRequestState();if(c.append("Prefer",`resolution=${n?"ignore":"merge"}-duplicates`),e!==void 0&&l.searchParams.set("on_conflict",e),r&&c.append("Prefer",`count=${r}`),i||c.append("Prefer","missing=default"),Array.isArray(t)){const d=t.reduce((f,p)=>f.concat(Object.keys(p)),[]);if(d.length>0){const f=[...new Set(d)].map(p=>`"${p}"`);l.searchParams.set("columns",f.join(","))}}return new Po({method:a,url:l,headers:c,schema:this.schema,body:t,fetch:(s=this.fetch)!==null&&s!==void 0?s:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}update(t,{count:e}={}){var n;const r="PATCH",{url:i,headers:s}=this.cloneRequestState();return e&&s.append("Prefer",`count=${e}`),new Po({method:r,url:i,headers:s,schema:this.schema,body:t,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}delete({count:t}={}){var e;const n="DELETE",{url:r,headers:i}=this.cloneRequestState();return t&&i.append("Prefer",`count=${t}`),new Po({method:n,url:r,headers:i,schema:this.schema,fetch:(e=this.fetch)!==null&&e!==void 0?e:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};function ku(t){"@babel/helpers - typeof";return ku=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ku(t)}function r9(t,e){if(ku(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(ku(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function i9(t){var e=r9(t,"string");return ku(e)=="symbol"?e:e+""}function s9(t,e,n){return(e=i9(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ox(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Uc(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ox(Object(n),!0).forEach(function(r){s9(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ox(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var o9=class mE{constructor(e,{headers:n={},schema:r,fetch:i,timeout:s,urlLengthLimit:a=8e3,retry:l}={}){this.url=e,this.headers=new Headers(n),this.schemaName=r,this.urlLengthLimit=a;const c=i??globalThis.fetch;s!==void 0&&s>0?this.fetch=(d,f)=>{const p=new AbortController,g=setTimeout(()=>p.abort(),s),y=f==null?void 0:f.signal;if(y){if(y.aborted)return clearTimeout(g),c(d,f);const b=()=>{clearTimeout(g),p.abort()};return y.addEventListener("abort",b,{once:!0}),c(d,Uc(Uc({},f),{},{signal:p.signal})).finally(()=>{clearTimeout(g),y.removeEventListener("abort",b)})}return c(d,Uc(Uc({},f),{},{signal:p.signal})).finally(()=>clearTimeout(g))}:this.fetch=c,this.retry=l}from(e){if(!e||typeof e!="string"||e.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new n9(new URL(`${this.url}/${e}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}schema(e){return new mE(this.url,{headers:this.headers,schema:e,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}rpc(e,n={},{head:r=!1,get:i=!1,count:s}={}){var a;let l;const c=new URL(`${this.url}/rpc/${e}`);let d;const f=y=>y!==null&&typeof y=="object"&&(!Array.isArray(y)||y.some(f)),p=r&&Object.values(n).some(f);p?(l="POST",d=n):r||i?(l=r?"HEAD":"GET",Object.entries(n).filter(([y,b])=>b!==void 0).map(([y,b])=>[y,Array.isArray(b)?`{${b.join(",")}}`:`${b}
252`]).forEach(([y,b])=>{c.searchParams.append(y,b)})):(l="POST",d=n);const g=new Headers(this.headers);return p?g.set("Prefer",s?`count=${s},return=minimal`:"return=minimal"):s&&g.set("Prefer",`count=${s}`),new Po({method:l,url:c,headers:g,schema:this.schemaName,body:d,fetch:(a=this.fetch)!==null&&a!==void 0?a:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};class a9{constructor(){}static detectEnvironment(){var e;if(typeof WebSocket<"u")return{type:"native",wsConstructor:WebSocket};const n=globalThis;if(typeof globalThis<"u"&&typeof n.WebSocket<"u")return{type:"native",wsConstructor:n.WebSocket};const r=typeof global<"u"?global:void 0;if(r&&typeof r.WebSocket<"u")return{type:"native",wsConstructor:r.WebSocket};if(typeof globalThis<"u"&&typeof n.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"&&n.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."};const i=globalThis.process;if(i){const s=i.versions;if(s&&s.node){const a=s.node,l=parseInt(a.replace(/^v/,"").split(".")[0]);return l>=22?typeof globalThis.WebSocket<"u"?{type:"native",wsConstructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${l} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${l} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option:
253import ws from "ws"
254new 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.wsConstructor)return e.wsConstructor;let n=e.error||"WebSocket not supported in this environment.";throw e.workaround&&(n+=`
255
256Suggested solution: ${e.workaround}`),new Error(n)}static isWebSocketSupported(){try{const e=this.detectEnvironment();return e.type==="native"||e.type==="ws"}catch{return!1}}}const l9="2.108.0",u9=`realtime-js/${l9}`,c9="1.0.0",gE="2.0.0",d9=gE,h9=1e4,f9=100,Ai={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},yE={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave",access_token:"access_token"},Fg={connecting:"connecting",open:"open",closing:"closing",closed:"closed"};class p9{constructor(e){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=e??[]}encode(e,n){if(e.event===this.BROADCAST_EVENT&&!(e.payload instanceof ArrayBuffer)&&typeof e.payload.event=="string")return n(this._binaryEncodeUserBroadcastPush(e));let r=[e.join_ref,e.ref,e.topic,e.event,e.payload];return n(JSON.stringify(r))}_binaryEncodeUserBroadcastPush(e){var n;return this._isArrayBuffer((n=e.payload)===null||n===void 0?void 0:n.payload)?this._encodeBinaryUserBroadcastPush(e):this._encodeJsonUserBroadcastPush(e)}_encodeBinaryUserBroadcastPush(e){var n,r;const i=(r=(n=e.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:new ArrayBuffer(0);return this._encodeUserBroadcastPush(e,this.BINARY_ENCODING,i)}_encodeJsonUserBroadcastPush(e){var n,r;const i=(r=(n=e.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:{},a=new TextEncoder().encode(JSON.stringify(i)).buffer;return this._encodeUserBroadcastPush(e,this.JSON_ENCODING,a)}_encodeUserBroadcastPush(e,n,r){var i,s;const a=e.topic,l=(i=e.ref)!==null&&i!==void 0?i:"",c=(s=e.join_ref)!==null&&s!==void 0?s:"",d=e.payload.event,f=this.allowedMetadataKeys?this._pick(e.payload,this.allowedMetadataKeys):{},p=Object.keys(f).length===0?"":JSON.stringify(f);
256if(c.length>255)throw new Error(`joinRef length ${c.length} exceeds maximum of 255`);if(l.length>255)throw new Error(`ref length ${l.length} exceeds maximum of 255`);if(a.length>255)throw new Error(`topic length ${a.length} exceeds maximum of 255`);if(d.length>255)throw new Error(`userEvent length ${d.length} exceeds maximum of 255`);if(p.length>255)throw new Error(`metadata length ${p.length} exceeds maximum of 255`);const g=this.USER_BROADCAST_PUSH_META_LENGTH+c.length+l.length+a.length+d.length+p.length,y=new ArrayBuffer(this.HEADER_LENGTH+g);let b=new DataView(y),_=0;b.setUint8(_++,this.KINDS.userBroadcastPush),b.setUint8(_++,c.length),b.setUint8(_++,l.length),b.setUint8(_++,a.length),b.setUint8(_++,d.length),b.setUint8(_++,p.length),b.setUint8(_++,n),Array.from(c,x=>b.setUint8(_++,x.charCodeAt(0))),Array.from(l,x=>b.setUint8(_++,x.charCodeAt(0))),Array.from(a,x=>b.setUint8(_++,x.charCodeAt(0))),Array.from(d,x=>b.setUint8(_++,x.charCodeAt(0))),Array.from(p,x=>b.setUint8(_++,x.charCodeAt(0)));var T=new Uint8Array(y.byteLength+r.byteLength);return T.set(new Uint8Array(y),0),T.set(new Uint8Array(r),y.byteLength),T.buffer}decode(e,n){if(this._isArrayBuffer(e)){let r=this._binaryDecode(e);return n(r)}if(typeof e=="string"){const r=JSON.parse(e),[i,s,a,l,c]=r;return n({join_ref:i,ref:s,topic:a,event:l,payload:c})}return n({})}_binaryDecode(e){const n=new DataView(e),r=n.getUint8(0),i=new TextDecoder;switch(r){case this.KINDS.userBroadcast:return this._decodeUserBroadcast(e,n,i)}}_decodeUserBroadcast(e,n,r){const i=n.getUint8(1),s=n.getUint8(2),a=n.getUint8(3),l=n.getUint8(4);let c=this.HEADER_LENGTH+4;const d=r.decode(e.slice(c,c+i));c=c+i;const f=r.decode(e.slice(c,c+s));c=c+s;const p=r.decode(e.slice(c,c+a));c=c+a;const g=e.slice(c,e.byteLength),y=l===this.JSON_ENCODING?JSON.parse(r.decode(g)):g,b={type:this.BROADCAST_EVENT,event:f,payload:y};return a>0&&(b.meta=JSON.parse(p)),{join_ref:null,ref:null,topic:d,event:this.BROADCAST_EVENT,payload:b}}_isArrayBuffer(e){var n;return e instanceof ArrayBuffer||((n=e==null?void 0:e.constructor)===null||n===void 0?void 0:n.name)==="ArrayBuffer"}_pick(e,n){return!e||typeof e!="object"?{}:Object.fromEntries(Object.entries(e).filter(([r])=>n.includes(r)))}}var ze;(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"})(ze||(ze={}));const Mx=(t,e,n={})=>{var r;const i=(r=n.skipTypes)!==null&&r!==void 0?r:[];return e?Object.keys(e).reduce((s,a)=>(s[a]=m9(a,t,e,i),s),{}):{}},m9=(t,e,n,r)=>{const i=e.find(l=>
vendor: 8,485 bytes, line 256
256l.name===t),s=i==null?void 0:i.type,a=n[t];return s&&!r.includes(s)?vE(s,a):$g(a)},vE=(t,e)=>{if(t.charAt(0)==="_"){const n=t.slice(1,t.length);return w9(e,n)}switch(t){case ze.bool:return g9(e);case ze.float4:case ze.float8:case ze.int2:case ze.int4:case ze.int8:case ze.numeric:case ze.oid:return y9(e);case ze.json:case ze.jsonb:return v9(e);case ze.timestamp:return _9(e);case ze.abstime:case ze.date:case ze.daterange:case ze.int4range:case ze.int8range:case ze.money:case ze.reltime:case ze.text:case ze.time:case ze.timestamptz:case ze.timetz:case ze.tsrange:case ze.tstzrange:return $g(e);default:return $g(e)}},$g=t=>t,g9=t=>{switch(t){case"t":return!0;case"f":return!1;default:return t}},y9=t=>{if(typeof t=="string"){const e=parseFloat(t);if(!Number.isNaN(e))return e}return t},v9=t=>{if(typeof t=="string")try{return JSON.parse(t)}catch{return t}return t},w9=(t,e)=>{if(typeof t!="string")return t;const n=t.length-1,r=t[n];if(t[0]==="{"&&r==="}"){let s;const a=t.slice(1,n);try{s=JSON.parse("["+a+"]")}catch{s=a?a.split(","):[]}return s.map(l=>vE(e,l))}return t},_9=t=>typeof t=="string"?t.replace(" ","T"):t,wE=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};var Vl=t=>typeof t=="function"?t:function(){return t},b9=typeof self<"u"?self:null,Co=typeof window<"u"?window:null,_r=b9||Co||globalThis,x9="2.0.0",k9=1e4,S9=1e3,Sr={connecting:0,open:1,closing:2,closed:3},Zt={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},Jr={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},Ug={longpoll:"longpoll",websocket:"websocket"},T9={complete:4},Vg="base64url.bearer.phx.",Vc=class{constructor(t,e,n,r){this.channel=t,this.event=e,this.payload=n||function(){return{}},this.receivedResp=null,this.timeout=r,this.timeoutTimer=null,this.recHooks=[],this.sent=!1,this.ref=void 0}resend(t){this.timeout=t,this.reset(),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()}))}receive(t,e){return this.hasReceived(t)&&e(this.receivedResp.response),this.recHooks.push({status:t,callback:e}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}destroy(){this.cancelRefEvent(),this.cancelTimeout()}matchReceive({status:t,response:e,_ref:n}){this.recHooks.filter(r=>r.status===t).forEach(r=>r.callback(e))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,t=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=t,this.matchReceive(t)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}trigger(t,e){this.channel.trigger(this.refEvent,{status:t,response:e})}},_E=class{constructor(t,e){this.callback=t,this.timerCalc=e,this.timer=void 0,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}},P9=class{constructor(t,e,n){this.state=Zt.closed,this.topic=t,this.params=Vl(e||{}),this.socket=n,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new Vc(this,Jr.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new _E(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive("ok",()=>{this.state=Zt.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(r=>r.send()),this.pushBuffer=[]}),this.joinPush.receive("error",r=>{this.state=Zt.errored,this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,r),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic}`),this.state=Zt.closed,this.socket.remove(this)}),this.onError(r=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,r),this.isJoining()&&this.joinPush.reset(),this.state=Zt.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.joinPush.receive("timeout",()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),new Vc(this,Jr.leave,Vl({}),this.timeout).send(),this.state=Zt.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(Jr.reply,(r,i)=>{this.trigger(this.replyEventName(i),r)})}join(t=this.timeout){if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=t,this.joinedOnce=!0,this.rejoin(),this.joinPush}teardown(){this.pushBuffer.forEach(t=>t.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=Zt.closed,this.bindings=[]}onClose(t){this.on(Jr.close,t)}onError(t){return this.on(Jr.error,e=>t(e))}on(t,e){let n=this.bindingRef++;return this.bindings.push({event:t,ref:n,callback:e}),n}off(t,e){this.bindings=this.bindings.filter(n=>!(n.event===t&&(typeof e>"u"||e===n.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(t,e,n=this.timeout){if(e=e||{},!this.joinedOnce)throw new Error(`tried to push '${t}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let r=new Vc(this,t,function(){return e},n);return this.canPush()?r.send():(r.startTimeout(),this.pushBuffer.push(r)),r}leave(t=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=Zt.leaving;let e=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(Jr.close,"leave")},n=new Vc(this,Jr.leave,Vl({}),t);return n.receive("ok",()=>e()).receive("timeout",()=>e()),n.send(),this.canPush()||n.trigger("ok",{}),n}onMessage(t,e,n){return e}filterBindings(t,e,n){return!0}isMember(t,e,n,r){return this.topic!==t?!1:r&&r!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:t,event:e,payload:n,joinRef:r}),!1):!0}joinRef(){return this.joinPush.ref}rejoin(t=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=Zt.joining,this.joinPush.resend(t))}trigger(t,e,n,r){let i=this.onMessage(t,e,n,r);if(e&&!i)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let s=this.bindings.filter(a=>a.event===t&&this.filterBindings(a,e,n));for(let a=0;a<s.length;a++)s[a].callback(i,n,r||this.joinRef())}replyEventName(t){return`chan_reply_${t}`}isClosed(){return this.state===Zt.closed}isErrored(){return this.state===Zt.errored}isJoined(){return this.state===Zt.joined}isJoining(){return this.state===Zt.joining}isLeaving(){return this.state===Zt.leaving}},dh=class{static request(t,e,n,r,i,s,a){if(_r.XDomainRequest){let l=new _r.XDomainRequest;return this.xdomainRequest(l,t,e,r,i,s,a)}else if(_r.XMLHttpRequest){let l=new _r.XMLHttpRequest;return this.xhrRequest(l,t,e,n,r,i,s,a)}else{if(_r.fetch&&_r.AbortController)return this.fetchRequest(t,e,n,r,i,s,a);throw new Error("No suitable XMLHttpRequest implementation found")}}static fetchRequest(t,e,n,r,i,s,a){let l={method:t,headers:n,body:r},c=null;return i&&(c=new AbortController,setTimeout(()=>c.abort(),i),l.signal=c.signal),_r.fetch(e,l).then(d=>d.text()).then(d=>this.parseJSON(d)).then(d=>a&&a(d)).catch(d=>{d.name==="AbortError"&&s?s():a&&a(null)}),c}static xdomainRequest(t,e,n,r,i,s,a){return t.timeout=i,t.open(e,n),t.onload=()=>{let l=this.parseJSON(t.responseText);a&&a(l)},s&&(t.ontimeout=s),t.onprogress=()=>{},t.send(r),t}static xhrRequest(t,e,n,r,i,s,a,l){t.open(e,n,!0),t.timeout=s;
vendor: 15,325 bytes, lines 256-257
256for(let[c,d]of Object.entries(r))t.setRequestHeader(c,d);return t.onerror=()=>l&&l(null),t.onreadystatechange=()=>{if(t.readyState===T9.complete&&l){let c=this.parseJSON(t.responseText);l(c)}},a&&(t.ontimeout=a),t.send(i),t}static parseJSON(t){if(!t||t==="")return null;try{return JSON.parse(t)}catch{return console&&console.log("failed to parse JSON response",t),null}}static serialize(t,e){let n=[];for(var r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;let i=e?`${e}[${r}]`:r,s=t[r];typeof s=="object"?n.push(this.serialize(s,i)):n.push(encodeURIComponent(i)+"="+encodeURIComponent(s))}return n.join("&")}static appendParams(t,e){if(Object.keys(e).length===0)return t;let n=t.match(/\?/)?"&":"?";return`${t}${n}${this.serialize(e)}`}},C9=t=>{let e="",n=new Uint8Array(t),r=n.byteLength;for(let i=0;i<r;i++)e+=String.fromCharCode(n[i]);return btoa(e)},_o=class{constructor(t,e){e&&e.length===2&&e[1].startsWith(Vg)&&(this.authToken=atob(e[1].slice(Vg.length))),this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.reqs=new Set,this.awaitingBatchAck=!1,this.currentBatch=null,this.currentBatchTimer=null,this.batchBuffer=[],this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(t),this.readyState=Sr.connecting,setTimeout(()=>this.poll(),0)}normalizeEndpoint(t){return t.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+Ug.websocket),"$1/"+Ug.longpoll)}endpointURL(){return dh.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(t,e,n){this.close(t,e,n),this.readyState=Sr.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===Sr.open||this.readyState===Sr.connecting}poll(){const t={Accept:"application/json"};this.authToken&&(t["X-Phoenix-AuthToken"]=this.authToken),this.ajax("GET",t,null,()=>this.ontimeout(),e=>{if(e){var{status:n,token:r,messages:i}=e;if(n===410&&this.token!==null){this.onerror(410),this.closeAndRetry(3410,"session_gone",!1);return}this.token=r}else n=0;switch(n){case 200:i.forEach(s=>{setTimeout(()=>this.onmessage({data:s}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=Sr.open,this.onopen({}),this.poll();break;case 403:this.onerror(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${n}`)}})}send(t){typeof t!="string"&&(t=C9(t)),this.currentBatch?this.currentBatch.push(t):this.awaitingBatchAck?this.batchBuffer.push(t):(this.currentBatch=[t],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(t){this.awaitingBatchAck=!0,this.ajax("POST",{"Content-Type":"application/x-ndjson"},t.join(`
257`),()=>this.onerror("timeout"),e=>{this.awaitingBatchAck=!1,!e||e.status!==200?(this.onerror(e&&e.status),this.closeAndRetry(1011,"internal server error",!1)):this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[])})}close(t,e,n){for(let i of this.reqs)i.abort();this.readyState=Sr.closed;let r=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:t,reason:e,wasClean:n});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<"u"?this.onclose(new CloseEvent("close",r)):this.onclose(r)}ajax(t,e,n,r,i){let s,a=()=>{this.reqs.delete(s),r()};s=dh.request(t,this.endpointURL(),e,n,this.timeout,a,l=>{this.reqs.delete(s),this.isActive()&&i(l)}),this.reqs.add(s)}},E9=class Pl{constructor(e,n={}){let r=n.events||{state:"presence_state",diff:"presence_diff"};this.state={},this.pendingDiffs=[],this.channel=e,this.joinRef=null,this.caller={onJoin:function(){},onLeave:function(){},onSync:function(){}},this.channel.on(r.state,i=>{let{onJoin:s,onLeave:a,onSync:l}=this.caller;this.joinRef=this.channel.joinRef(),this.state=Pl.syncState(this.state,i,s,a),this.pendingDiffs.forEach(c=>{this.state=Pl.syncDiff(this.state,c,s,a)}),this.pendingDiffs=[],l()}),this.channel.on(r.diff,i=>{let{onJoin:s,onLeave:a,onSync:l}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(i):(this.state=Pl.syncDiff(this.state,i,s,a),l())})}onJoin(e){this.caller.onJoin=e}onLeave(e){this.caller.onLeave=e}onSync(e){this.caller.onSync=e}list(e){return Pl.list(this.state,e)}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}static syncState(e,n,r,i){let s=this.clone(e),a={},l={};return this.map(s,(c,d)=>{n[c]||(l[c]=d)}),this.map(n,(c,d)=>{let f=s[c];if(f){let p=d.metas.map(_=>_.phx_ref),g=f.metas.map(_=>_.phx_ref),y=d.metas.filter(_=>g.indexOf(_.phx_ref)<0),b=f.metas.filter(_=>p.indexOf(_.phx_ref)<0);y.length>0&&(a[c]=d,a[c].metas=y),b.length>0&&(l[c]=this.clone(f),l[c].metas=b)}else a[c]=d}),this.syncDiff(s,{joins:a,leaves:l},r,i)}static syncDiff(e,n,r,i){let{joins:s,leaves:a}=this.clone(n);return r||(r=function(){}),i||(i=function(){}),this.map(s,(l,c)=>{let d=e[l];if(e[l]=this.clone(c),d){let f=e[l].metas.map(g=>g.phx_ref),p=d.metas.filter(g=>f.indexOf(g.phx_ref)<0);e[l].metas.unshift(...p)}r(l,d,c)}),this.map(a,(l,c)=>{let d=e[l];if(!d)return;let f=c.metas.map(p=>p.phx_ref);d.metas=d.metas.filter(p=>f.indexOf(p.phx_ref)<0),i(l,d,c),d.metas.length===0&&delete e[l]}),e}static list(e,n){return n||(n=function(r,i){return i}),this.map(e,(r,i)=>n(r,i))}static map(e,n){return Object.getOwnPropertyNames(e).map(r=>n(r,e[r]))}static clone(e){return JSON.parse(JSON.stringify(e))}},Hc={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(t,e){if(t.payload.constructor===ArrayBuffer)return e(this.binaryEncode(t));{let n=[t.join_ref,t.ref,t.topic,t.event,t.payload];return e(JSON.stringify(n))}},decode(t,e){if(t.constructor===ArrayBuffer)return e(this.binaryDecode(t));{let[n,r,i,s,a]=JSON.parse(t);return e({join_ref:n,ref:r,topic:i,event:s,payload:a})}},binaryEncode(t){let{join_ref:e,ref:n,event:r,topic:i,payload:s}=t,a=this.META_LENGTH+e.length+n.length+i.length+r.length,l=new ArrayBuffer(this.HEADER_LENGTH+a),c=new DataView(l),d=0;c.setUint8(d++,this.KINDS.push),c.setUint8(d++,e.length),c.setUint8(d++,n.length),c.setUint8(d++,i.length),c.setUint8(d++,r.length),Array.from(e,p=>c.setUint8(d++,p.charCodeAt(0))),Array.from(n,p=>c.setUint8(d++,p.charCodeAt(0))),Array.from(i,p=>c.setUint8(d++,p.charCodeAt(0))),Array.from(r,p=>c.setUint8(d++,p.charCodeAt(0)));var f=new Uint8Array(l.byteLength+s.byteLength);return f.set(new Uint8Array(l),0),f.set(new Uint8Array(s),l.byteLength),f.buffer},binaryDecode(t){let e=new DataView(t),n=e.getUint8(0),r=new TextDecoder;switch(n){case this.KINDS.push:return this.decodePush(t,e,r);case this.KINDS.reply:return this.decodeReply(t,e,r);case this.KINDS.broadcast:return this.decodeBroadcast(t,e,r)}},decodePush(t,e,n){let r=e.getUint8(1),i=e.getUint8(2),s=e.getUint8(3),a=this.HEADER_LENGTH+this.META_LENGTH-1,l=n.decode(t.slice(a,a+r));a=a+r;let c=n.decode(t.slice(a,a+i));a=a+i;let d=n.decode(t.slice(a,a+s));a=a+s;let f=t.slice(a,t.byteLength);return{join_ref:l,ref:null,topic:c,event:d,payload:f}},decodeReply(t,e,n){let r=e.getUint8(1),i=e.getUint8(2),s=e.getUint8(3),a=e.getUint8(4),l=this.HEADER_LENGTH+this.META_LENGTH,c=n.decode(t.slice(l,l+r));l=l+r;let d=n.decode(t.slice(l,l+i));l=l+i;let f=n.decode(t.slice(l,l+s));l=l+s;let p=n.decode(t.slice(l,l+a));l=l+a;let g=t.slice(l,t.byteLength),y={status:p,response:g};return{join_ref:c,ref:d,topic:f,event:Jr.reply,payload:y}},decodeBroadcast(t,e,n){let r=e.getUint8(1),i=e.getUint8(2),s=this.HEADER_LENGTH+2,a=n.decode(t.slice(s,s+r));s=s+r;let l=n.decode(t.slice(s,s+i));s=s+i;let c=t.slice(s,t.byteLength);return{join_ref:null,ref:null,topic:a,event:l,payload:c}}},A9=class{constructor(t,e={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.fallbackRef=null,this.timeout=e.timeout||k9,this.transport=e.transport||_r.WebSocket||_o,this.conn=void 0,this.primaryPassedHealthCheck=!1,this.longPollFallbackMs=e.longPollFallbackMs,this.fallbackTimer=null;let n=null;try{n=_r&&_r.sessionStorage}catch{}this.sessionStore=e.sessionStorage||n,this.establishedConnections=0,this.defaultEncoder=Hc.encode.bind(Hc),this.defaultDecoder=Hc.decode.bind(Hc),this.closeWasClean=!0,this.disconnecting=!1,this.binaryType=e.binaryType||"arraybuffer",this.connectClock=1,this.pageHidden=!1,this.encode=void 0,this.decode=void 0,this.transport!==_o?(this.encode=e.encode||this.defaultEncoder,this.decode=e.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let r=null;Co&&Co.addEventListener&&(Co.addEventListener("pagehide",i=>{this.conn&&(this.disconnect(),r=this.connectClock)}),Co.addEventListener("pageshow",i=>{r===this.connectClock&&(r=null,this.connect())}),Co.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"?this.pageHidden=!0:(this.pageHidden=!1,!this.isConnected()&&!this.closeWasClean&&this.teardown(()=>this.connect()))})),this.heartbeatIntervalMs=e.heartbeatIntervalMs||3e4,this.autoSendHeartbeat=e.autoSendHeartbeat??!0,this.heartbeatCallback=e.heartbeatCallback??(()=>{}),this.rejoinAfterMs=i=>e.rejoinAfterMs?e.rejoinAfterMs(i):[1e3,2e3,5e3][i-1]||1e4,this.reconnectAfterMs=i=>e.reconnectAfterMs?e.reconnectAfterMs(i):[10,50,100,150,200,250,500,1e3,2e3][i-1]||5e3,this.logger=e.logger||null,!this.logger&&e.debug&&(this.logger=(i,s,a)=>{console.log(`${i}: ${s}`,a)}),this.longpollerTimeout=e.longpollerTimeout||2e4,this.params=Vl(e.params||{}),this.endPoint=`${t}/${Ug.websocket}`,this.vsn=e.vsn||x9,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.heartbeatSentAt=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new _E(()=>{if(this.pageHidden){this.log("Not reconnecting as page is hidden!"),this.teardown();return}this.teardown(async()=>{e.beforeReconnect&&await e.beforeReconnect(),this.connect()})},this.reconnectAfterMs),this.authToken=e.authToken}getLongPollTransport(){return _o}replaceTransport(t){this.connectClock++,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.conn&&(this.conn.close(),this.conn=null),this.transport=t}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let t=dh.appendParams(dh.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return t.charAt(0)!=="/"?t:t.charAt(1)==="/"?`${this.protocol()}:${t}`:`${this.protocol()}://${location.host}${t}`}disconnect(t,e,n){this.connectClock++,this.disconnecting=!0,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.teardown(()=>{this.disconnecting=!1,t&&t()},e,n)}connect(t){t&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=Vl(t)),!(this.conn&&!this.disconnecting)&&(this.longPollFallbackMs&&this.transport!==_o?this.connectWithFallback(_o,this.longPollFallbackMs):this.transportConnect())}log(t,e,n){this.logger&&this.logger(t,e,n)}hasLogger(){return this.logger!==null}onOpen(t){let e=this.makeRef();return this.stateChangeCallbacks.open.push([e,t]),e}onClose(t){let e=this.makeRef();return this.stateChangeCallbacks.close.push([e,t]),e}onError(t){let e=this.makeRef();return this.stateChangeCallbacks.error.push([e,t]),e}onMessage(t){let e=this.makeRef();return this.stateChangeCallbacks.message.push([e,t]),e}onHeartbeat(t){this.heartbeatCallback=t}ping(t){if(!this.isConnected())return!1;let e=this.makeRef(),n=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:e});let r=this.onMessage(i=>{i.ref===e&&(this.off([r]),t(Date.now()-n))});return!0}transportName(t){switch(t){case _o:return"LongPoll";default:return t.name}}transportConnect(){this.connectClock++,this.closeWasClean=!1;let t;this.authToken&&(t=["phoenix",`${Vg}${btoa(this.authToken).replace(/=/g,"")}`]),this.conn=new this.transport(this.endPointURL(),t),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,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)}getSession(t){return this.sessionStore&&this.sessionStore.getItem(t)}storeSession(t,e){this.sessionStore&&this.sessionStore.setItem(t,e)}connectWithFallback(t,e=2500){clearTimeout(this.fallbackTimer);let n=!1,r=!0,i,s,a=this.transportName(t),l=c=>{this.log("transport",`falling back to ${a}...`,c),this.off([i,s]),r=!1,this.replaceTransport(t),this.transportConnect()};if(this.getSession(`phx:fallback:${a}`))return l("memorized");this.fallbackTimer=setTimeout(l,e),s=this.onError(c=>{this.log("transport","error",c),r&&!n&&(clearTimeout(this.fallbackTimer),l(c))}),this.fallbackRef&&this.off([this.fallbackRef]),this.fallbackRef=this.onOpen(()=>{if(n=!0,!r){let c=this.transportName(t);return this.primaryPassedHealthCheck||this.storeSession(`phx:fallback:${c}`,"true"),this.log("transport",`established ${c} fallback`)}clearTimeout(this.fallbackTimer),this.fallbackTimer=setTimeout(l,e),this.ping(c=>{this.log("transport","connected to primary after",c),this.primaryPassedHealthCheck=!0,clearTimeout(this.fallbackTimer)})}),this.transportConnect()}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.disconnecting=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.autoSendHeartbeat&&this.resetHeartbeat(),this.triggerStateCallbacks("open")}heartbeatTimeout(){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(t){this.log("error","error in heartbeat callback",t)}this.triggerChanError(new Error("heartbeat timeout")),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),S9,"heartbeat timeout")}}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(t,e,n){if(!this.conn)return t&&t();const r=this.conn;this.waitForBufferDone(r,()=>{e?r.close(e,n||""):r.close(),this.waitForSocketClosed(r,()=>{this.conn===r&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),t&&t()})})}waitForBufferDone(t,e,n=1){if(n===5||!t.bufferedAmount){e();return}setTimeout(()=>{this.waitForBufferDone(t,e,n+1)},150*n)}waitForSocketClosed(t,e,n=1){if(n===5||t.readyState===Sr.closed){e();return}setTimeout(()=>{this.waitForSocketClosed(t,e,n+1)},150*n)}onConnClose(t){this.conn&&(this.conn.onclose=()=>{}),this.hasLogger()&&this.log("transport","close",t),this.triggerChanError(t),this.clearHeartbeats(),this.closeWasClean||this.reconnectTimer.scheduleTimeout(),this.triggerStateCallbacks("close",t)}onConnError(t){this.hasLogger()&&this.log("transport","error",t);let e=this.transport,n=this.establishedConnections;this.triggerStateCallbacks("error",t,e,n),(e===this.transport||n>0)&&this.triggerChanError(t)}
257triggerChanError(t){this.channels.forEach(e=>{e.isErrored()||e.isLeaving()||e.isClosed()||e.trigger(Jr.error,t)})}connectionState(){switch(this.conn&&this.conn.readyState){case Sr.connecting:return"connecting";case Sr.open:return"open";case Sr.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(t){this.off(t.stateChangeRefs),this.channels=this.channels.filter(e=>e!==t)}off(t){for(let e in this.stateChangeCallbacks)this.stateChangeCallbacks[e]=this.stateChangeCallbacks[e].filter(([n])=>t.indexOf(n)===-1)}channel(t,e={}){let n=new P9(t,e,this);return this.channels.push(n),n}push(t){if(this.hasLogger()){let{topic:e,event:n,payload:r,ref:i,join_ref:s}=t;this.log("push",`${e} ${n} (${s}, ${i})`,r)}this.isConnected()?this.encode(t,e=>this.conn.send(e)):this.sendBuffer.push(()=>this.encode(t,e=>this.conn.send(e)))}makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}sendHeartbeat(){if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(t){this.log("error","error in heartbeat callback",t)}return}if(this.pendingHeartbeatRef){this.heartbeatTimeout();return}this.pendingHeartbeatRef=this.makeRef(),this.heartbeatSentAt=Date.now(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(t){this.log("error","error in heartbeat callback",t)}this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs)}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}onConnMessage(t){this.decode(t.data,e=>{let{topic:n,event:r,payload:i,ref:s,join_ref:a}=e;if(s&&s===this.pendingHeartbeatRef){const l=this.heartbeatSentAt?Date.now()-this.heartbeatSentAt:void 0;this.clearHeartbeats();try{this.heartbeatCallback(i.status==="ok"?"ok":"error",l)}catch(c){this.log("error","error in heartbeat callback",c)}this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.autoSendHeartbeat&&(this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}this.hasLogger()&&this.log("receive",`${i.status||""} ${n} ${r} ${s&&"("+s+")"||""}`.trim(),i);for(let l=0;l<this.channels.length;l++){const c=this.channels[l];c.isMember(n,r,i,a)&&c.trigger(r,i,s,a)}this.triggerStateCallbacks("message",e)})}triggerStateCallbacks(t,...e){try{this.stateChangeCallbacks[t].forEach(([n,r])=>{try{r(...e)}catch(i){this.log("error",`error in ${t} callback`,i)}})}catch(n){this.log("error",`error triggering ${t} callbacks`,n)}}leaveOpenTopic(t){let e=this.channels.find(n=>n.topic===t&&(n.isJoined()||n.isJoining()));e&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${t}"`),e.leave())}};class Hl{constructor(e,n){const r=L9(n);this.presence=new E9(e.getChannel(),r),this.presence.onJoin((i,s,a)=>{const l=Hl.onJoinPayload(i,s,a);e.getChannel().trigger("presence",l)}),this.presence.onLeave((i,s,a)=>{const l=Hl.onLeavePayload(i,s,a);e.getChannel().trigger("presence",l)}),this.presence.onSync(()=>{e.getChannel().trigger("presence",{event:"sync"})})}get state(){return Hl.transformState(this.presence.state)}static transformState(e){return e=R9(e),Object.getOwnPropertyNames(e).reduce((n,r)=>{const i=e[r];return n[r]=_d(i),n},{})}static onJoinPayload(e,n,r){const i=Nx(n),s=_d(r);return{event:"join",key:e,currentPresences:i,newPresences:s}}static onLeavePayload(e,n,r){const i=Nx(n),s=_d(r);return{event:"leave",key:e,currentPresences:i,leftPresences:s}}}function _d(t){return t.metas.map(e=>(e.presence_ref=e.phx_ref,delete e.phx_ref,delete e.phx_ref_prev,e))}function R9(t){return JSON.parse(JSON.stringify(t))}function L9(t){return(t==null?void 0:t.events)&&{events:t.events}}function Nx(t){return t!=null&&t.metas?_d(t):[]}var jx;(function(t){t.SYNC="sync",t.JOIN="join",t.LEAVE="leave"})(jx||(jx={}));class O9{get state(){return this.presenceAdapter.state}constructor(e,n){this.channel=e,this.presenceAdapter=new Hl(this.channel.channelAdapter,n)}}function M9(t){if(t instanceof Error)return t;if(typeof t=="string")return new Error(t);if(t&&typeof t=="object"){const e=t;
257if(typeof e.code=="number"){const n=typeof e.reason=="string"&&e.reason?` (${e.reason})`:"";return new Error(`socket closed: ${e.code}${n}`,{cause:t})}return new Error("channel error: transport failure",{cause:t})}return new Error("channel error: connection lost")}class N9{constructor(e,n,r){const i=j9(r);this.channel=e.getSocket().channel(n,i),this.socket=e}get state(){return this.channel.state}set state(e){this.channel.state=e}get joinedOnce(){return this.channel.joinedOnce}get joinPush(){return this.channel.joinPush}get rejoinTimer(){return this.channel.rejoinTimer}on(e,n){return this.channel.on(e,n)}off(e,n){this.channel.off(e,n)}subscribe(e){return this.channel.join(e)}unsubscribe(e){return this.channel.leave(e)}teardown(){this.channel.teardown()}onClose(e){this.channel.onClose(e)}onError(e){return this.channel.onError(e)}push(e,n,r){let i;try{i=this.channel.push(e,n,r)}catch{throw new Error(`tried to push '${e}' to '${this.channel.topic}' before joining. Use channel.subscribe() before pushing events`)}if(this.channel.pushBuffer.length>f9){const s=this.channel.pushBuffer.shift();s.cancelTimeout(),this.socket.log("channel",`discarded push due to buffer overflow: ${s.event}`,s.payload())}return i}updateJoinPayload(e){const n=this.channel.joinPush.payload();this.channel.joinPush.payload=()=>Object.assign(Object.assign({},n),e)}canPush(){return this.socket.isConnected()&&this.state===Ai.joined}isJoined(){return this.state===Ai.joined}isJoining(){return this.state===Ai.joining}isClosed(){return this.state===Ai.closed}isLeaving(){return this.state===Ai.leaving}updateFilterBindings(e){this.channel.filterBindings=e}updatePayloadTransform(e){this.channel.onMessage=e}getChannel(){return this.channel}}function j9(t){return{config:Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},t.config)}}var Ix;(function(t){t.ALL="*",t.INSERT="INSERT",t.UPDATE="UPDATE",t.DELETE="DELETE"})(Ix||(Ix={}));var qo;(function(t){t.BROADCAST="broadcast",t.PRESENCE="presence",t.POSTGRES_CHANGES="postgres_changes",t.SYSTEM="system"})(qo||(qo={}));var Yr;(function(t){t.SUBSCRIBED="SUBSCRIBED",t.TIMED_OUT="TIMED_OUT",t.CLOSED="CLOSED",t.CHANNEL_ERROR="CHANNEL_ERROR"})(Yr||(Yr={}));class Wl{get state(){return this.channelAdapter.state}set state(e){this.channelAdapter.state=e}get joinedOnce(){return this.channelAdapter.joinedOnce}get timeout(){return this.socket.timeout}get joinPush(){return this.channelAdapter.joinPush}get rejoinTimer(){return this.channelAdapter.rejoinTimer}constructor(e,n={config:{}},r){var i,s;if(this.topic=e,this.params=n,this.socket=r,this.bindings={},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.channelAdapter=new N9(this.socket.socketAdapter,e,this.params),this.presence=new O9(this),this._onClose(()=>{this.socket._remove(this)}),this._updateFilterTransform(),this.broadcastEndpointURL=wE(this.socket.socketAdapter.endPointURL()),this.private=this.params.config.private||!1,!this.private&&(!((s=(i=this.params.config)===null||i===void 0?void 0:i.broadcast)===null||s===void 0)&&s.replay))throw new Error(`tried to use replay on public channel '${this.topic}'. It must be a private channel.`)}subscribe(e,n=this.timeout){var r,i,s;if(this.socket.isConnected()||this.socket.connect(),this.channelAdapter.isClosed()){const{config:{broadcast:a,presence:l,private:c}}=this.params,d=(i=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(y=>y.filter))!==null&&i!==void 0?i:[],f=!!this.bindings[qo.PRESENCE]&&this.bindings[qo.PRESENCE].length>0||((s=this.params.config.presence)===null||s===void 0?void 0:s.enabled)===!0,p={},g={broadcast:a,presence:Object.assign(Object.assign({},l),{enabled:f}),postgres_changes:d,private:c};this.socket.accessTokenValue&&(p.access_token=this.socket.accessTokenValue),this._onError(y=>{e==null||e(Yr.CHANNEL_ERROR,M9(y))}),this._onClose(()=>e==null?void 0:e(Yr.CLOSED)),this.updateJoinPayload(Object.assign({config:g},p)),this._updateFilterMessage(),this.channelAdapter.subscribe(n).receive("ok",async({postgres_changes:y})=>{if(this.socket._isManualToken()||this.socket.setAuth(),y===void 0){e==null||e(Yr.SUBSCRIBED);return}this._updatePostgresBindings(y,e)}).receive("error",y=>{this.state=Ai.errored;const b=Object.values(y).join(", ")||"error";e==null||e(Yr.CHANNEL_ERROR,new Error(b,{cause:y}))}).receive("timeout",()=>{e==null||e(Yr.TIMED_OUT)})}return this}_updatePostgresBindings(e,n){var r;const i=this.bindings.postgres_changes,s=(r=i==null?void 0:i.length)!==null&&r!==void 0?r:0,a=[];for(let l=0;l<s;l++){const c=i[l],{filter:{event:d,schema:f,table:p,filter:g}}=c,y=e&&e[l];if(y&&y.event===d&&Wl.isFilterValueEqual(y.schema,f)&&Wl.isFilterValueEqual(y.table,p)&&Wl.isFilterValueEqual(y.filter,g))a.push(Object.assign(Object.assign({},c),{id:y.id}));else{this.unsubscribe(),this.state=Ai.errored,n==null||n(Yr.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=a,this.state!=Ai.errored&&n&&n(Yr.SUBSCRIBED)}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){const i=this.channelAdapter.isJoined()||this.channelAdapter.isJoining(),s=e===qo.PRESENCE||e===qo.POSTGRES_CHANGES;if(i&&s)throw this.socket.log("channel",`cannot add \`${e}\` callbacks for ${this.topic} after \`subscribe()\`.`),new Error(`cannot add \`${e}\` callbacks for ${this.topic} after \`subscribe()\`.`);return this._on(e,n,r)}async httpSend(e,n,r={}){var i;if(n==null)return Promise.reject(new Error("Payload is required for httpSend()"));const s=n instanceof ArrayBuffer||ArrayBuffer.isView(n),a={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":s?"application/octet-stream":"application/json"};this.socket.accessTokenValue&&(a.Authorization=`Bearer ${this.socket.accessTokenValue}`);const l=new URL(this.broadcastEndpointURL);l.pathname+=`/${encodeURIComponent(this.subTopic)}/events/${encodeURIComponent(e)}`,this.private&&l.searchParams.set("private","true");const c={method:"POST",headers:a,body:s?n:JSON.stringify(n)},d=await this._fetchWithTimeout(l.toString(),c,(i=r.timeout)!==null&&i!==void 0?i:this.timeout);if(d.status===202)return{success:!0};let f=d.statusText;
257try{const p=await d.json();f=p.error||p.message||f}catch{}return Promise.reject(new Error(f))}async send(e,n={}){var r,i;if(!this.channelAdapter.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:s,payload:a}=e,l={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(l.Authorization=`Bearer ${this.socket.accessTokenValue}`);const c={method:"POST",headers:l,body:JSON.stringify({messages:[{topic:this.subTopic,event:s,payload:a,private:this.private}]})};try{const d=await this._fetchWithTimeout(this.broadcastEndpointURL,c,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((i=d.body)===null||i===void 0?void 0:i.cancel()),d.ok?"ok":"error"}catch(d){return d instanceof Error&&d.name==="AbortError"?"timed out":"error"}}else return new Promise(s=>{var a,l,c;const d=this.channelAdapter.push(e.type,e,n.timeout||this.timeout);e.type==="broadcast"&&!(!((c=(l=(a=this.params)===null||a===void 0?void 0:a.config)===null||l===void 0?void 0:l.broadcast)===null||c===void 0)&&c.ack)&&s("ok"),d.receive("ok",()=>s("ok")),d.receive("error",()=>s("error")),d.receive("timeout",()=>s("timed out"))})}updateJoinPayload(e){this.channelAdapter.updateJoinPayload(e)}async unsubscribe(e=this.timeout){return new Promise(n=>{this.channelAdapter.unsubscribe(e).receive("ok",()=>n("ok")).receive("timeout",()=>n("timed out")).receive("error",()=>n("error"))})}teardown(){this.channelAdapter.teardown()}async _fetchWithTimeout(e,n,r){const i=new AbortController,s=setTimeout(()=>i.abort(),r),a=await this.socket.fetch(e,Object.assign(Object.assign({},n),{signal:i.signal}));return clearTimeout(s),a}_on(e,n,r){const i=e.toLocaleLowerCase(),s=this.channelAdapter.on(e,r),a={type:i,filter:n,callback:r,ref:s};return this.bindings[i]?this.bindings[i].push(a):this.bindings[i]=[a],this._updateFilterMessage(),this}_onClose(e){this.channelAdapter.onClose(e)}_onError(e){this.channelAdapter.onError(e)}_updateFilterMessage(){this.channelAdapter.updateFilterBindings((e,n,r)=>{var i,s,a,l,c,d,f;const p=e.event.toLocaleLowerCase();if(this._notThisChannelEvent(p,r))return!1;const g=(i=this.bindings[p])===null||i===void 0?void 0:i.find(y=>y.ref===e.ref);if(!g)return!0;if(["broadcast","presence","postgres_changes"].includes(p))if("id"in g){const y=g.id,b=(s=g.filter)===null||s===void 0?void 0:s.event;return y&&((a=n.ids)===null||a===void 0?void 0:a.includes(y))&&(b==="*"||(b==null?void 0:b.toLocaleLowerCase())===((l=n.data)===null||l===void 0?void 0:l.type.toLocaleLowerCase()))}else{const y=(d=(c=g==null?void 0:g.filter)===null||c===void 0?void 0:c.event)===null||d===void 0?void 0:d.toLocaleLowerCase();return y==="*"||y===((f=n==null?void 0:n.event)===null||f===void 0?void 0:f.toLocaleLowerCase())}else return g.type.toLocaleLowerCase()===p})}_notThisChannelEvent(e,n){const{close:r,error:i,leave:s,join:a}=yE;return n&&[r,i,s,a].includes(e)&&n!==this.joinPush.ref}_updateFilterTransform(){this.channelAdapter.updatePayloadTransform((e,n,r)=>{if(typeof n=="object"&&"ids"in n){const i=n.data,{schema:s,table:a,commit_timestamp:l,type:c,errors:d}=i;return Object.assign(Object.assign({},{schema:s,table:a,commit_timestamp:l,eventType:c,new:{},old:{},errors:d}),this._getPayloadRecords(i))}return n})}copyBindings(e){if(this.joinedOnce)throw new Error("cannot copy bindings into joined channel");for(const n in e.bindings)for(const r of e.bindings[n])this._on(r.type,r.filter,r.callback)}static isFilterValueEqual(e,n){return(e??void 0)===(n??void 0)}_getPayloadRecords(e){const n={new:{},old:{}};return(e.type==="INSERT"||e.type==="UPDATE")&&(n.new=Mx(e.columns,e.record)),(e.type==="UPDATE"||e.type==="DELETE")&&(n.old=Mx(e.columns,e.old_record)),n}}class I9{constructor(e,n){this.socket=new A9(e,n)}get timeout(){return this.socket.timeout}get endPoint(){return this.socket.endPoint}get transport(){return this.socket.transport}get heartbeatIntervalMs(){return this.socket.heartbeatIntervalMs}get heartbeatCallback(){return this.socket.heartbeatCallback}set heartbeatCallback(e){this.socket.heartbeatCallback=e}get heartbeatTimer(){return this.socket.heartbeatTimer}get pendingHeartbeatRef(){return this.socket.pendingHeartbeatRef}get reconnectTimer(){return this.socket.reconnectTimer}get vsn(){return this.socket.vsn}get encode(){return this.socket.encode}get decode(){return this.socket.decode}get reconnectAfterMs(){return this.socket.reconnectAfterMs}get sendBuffer(){return this.socket.sendBuffer}get stateChangeCallbacks(){return this.socket.stateChangeCallbacks}connect(){this.socket.connect()}disconnect(e,n,r,i=1e4){return new Promise(s=>{setTimeout(()=>s("timeout"),i),this.socket.disconnect(()=>{e(),s("ok")},n,r)})}push(e){this.socket.push(e)}log(e,n,r){this.socket.log(e,n,r)}makeRef(){return this.socket.makeRef()}onOpen(e){this.socket.onOpen(e)}onClose(e){this.socket.onClose(e)}onError(e){this.socket.onError(e)}onMessage(e){this.socket.onMessage(e)}isConnected(){return this.socket.isConnected()}isConnecting(){return this.socket.connectionState()==Fg.connecting}isDisconnecting(){return this.socket.connectionState()==Fg.closing}connectionState(){return this.socket.connectionState()}endPointURL(){return this.socket.endPointURL()}sendHeartbeat(){this.socket.sendHeartbeat()}getSocket(){return this.socket}}const Dx={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},D9=[1e3,2e3,5e3,1e4],B9=1e4;function z9(){const t=new Map;return{get length(){return t.size},clear(){t.clear()},getItem(e){return t.has(e)?t.get(e):null},key(e){var n;return(n=Array.from(t.keys())[e])!==null&&n!==void 0?n:null},removeItem(e){t.delete(e)},setItem(e,n){t.set(e,String(n))}}}function F9(){try{if(typeof globalThis<"u"&&globalThis.sessionStorage)return globalThis.sessionStorage}catch{}return z9()}const $9=`
258  addEventListener("message", (e) => {
259    if (e.data.event === "start") {
260      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
261    }
262  });`;class U9{get endPoint(){return this.socketAdapter.endPoint}get timeout(){return this.socketAdapter.timeout}get transport(){return this.socketAdapter.transport}get heartbeatCallback(){return this.socketAdapter.heartbeatCallback}get heartbeatIntervalMs(){return this.socketAdapter.heartbeatIntervalMs}get heartbeatTimer(){return this.worker?this._workerHeartbeatTimer:this.socketAdapter.heartbeatTimer}get pendingHeartbeatRef(){return this.worker?this._pendingWorkerHeartbeatRef:this.socketAdapter.pendingHeartbeatRef}get reconnectTimer(){return this.socketAdapter.reconnectTimer}get vsn(){return this.socketAdapter.vsn}get encode(){return this.socketAdapter.encode}get decode(){return this.socketAdapter.decode}get reconnectAfterMs(){return this.socketAdapter.reconnectAfterMs}get sendBuffer(){return this.socketAdapter.sendBuffer}get stateChangeCallbacks(){return this.socketAdapter.stateChangeCallbacks}constructor(e,n){var r;if(this.channels=new Array,this.accessTokenValue=null,this.accessToken=null,this.apiKey=null,this.httpEndpoint="",this.headers={},this.params={}
262,this.ref=0,this.serializer=new p9,this._manuallySetToken=!1,this._authPromise=null,this._workerHeartbeatTimer=void 0,this._pendingWorkerHeartbeatRef=null,this._pendingDisconnectTimer=null,this._disconnectOnEmptyChannelsAfterMs=0,this._resolveFetch=s=>s?(...a)=>s(...a):(...a)=>fetch(...a),!(!((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;const i=this._initializeOptions(n);this.socketAdapter=new I9(e,i),this.httpEndpoint=wE(e),this.fetch=this._resolveFetch(n==null?void 0:n.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.isConnected())){this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this._setupConnectionHandlers();try{this.socketAdapter.connect()}catch(e){const n=e.message;throw n.includes("Node.js")?new Error(`${n}
263
264To use Realtime in Node.js, you need to provide a WebSocket implementation:
265
266Option 1: Use Node.js 22+ which has native WebSocket support
267Option 2: Install and provide the "ws" package:
268
269  npm install ws
270
271  import ws from "ws"
272  const client = new RealtimeClient(url, {
273    ...options,
274    transport: ws
275  })`):new Error(`WebSocket not available: ${n}`)}this._handleNodeJsRaceCondition()}}endpointURL(){return this.socketAdapter.endPointURL()}async disconnect(e,n){return this._cancelPendingDisconnect(),this.isDisconnecting()?"ok":await this.socketAdapter.disconnect(()=>{clearInterval(this._workerHeartbeatTimer),this._terminateWorker()},e,n)}getChannels(){return this.channels}async removeChannel(e){const n=await e.unsubscribe();return n==="ok"&&e.teardown(),n}async removeAllChannels(){const e=this.channels.map(async r=>{const i=await r.unsubscribe();return r.teardown(),i}),n=await Promise.all(e);return await this.disconnect(),n}log(e,n,r){this.socketAdapter.log(e,n,r)}connectionState(){return this.socketAdapter.connectionState()||Fg.closed}isConnected(){return this.socketAdapter.isConnected()}isConnecting(){return this.socketAdapter.isConnecting()}isDisconnecting(){return this.socketAdapter.isDisconnecting()}channel(e,n={config:{}}){const r=`realtime:${e}`,i=this.getChannels().find(s=>s.topic===r);if(i)return i;{const s=new Wl(`realtime:${e}`,n,this);return this._cancelPendingDisconnect(),this.channels.push(s),s}}push(e){this.socketAdapter.push(e)}async setAuth(e=null){this._authPromise=this._performAuth(e);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){this.socketAdapter.sendHeartbeat()}onHeartbeat(e){this.socketAdapter.heartbeatCallback=this._wrapHeartbeatCallback(e)}_makeRef(){return this.socketAdapter.makeRef()}_remove(e){this.channels=this.channels.filter(n=>n.topic!==e.topic),this.channels.length===0&&(this.log("transport","no channels remaining, scheduling disconnect"),this._schedulePendingDisconnect())}_schedulePendingDisconnect(){if(this._cancelPendingDisconnect(),this._disconnectOnEmptyChannelsAfterMs===0){this.log("transport","disconnecting immediately - no channels"),this.disconnect();return}
275this._pendingDisconnectTimer=setTimeout(()=>{this._pendingDisconnectTimer=null,this.channels.length===0&&(this.log("transport","deferred disconnect fired - no channels, disconnecting"),this.disconnect())},this._disconnectOnEmptyChannelsAfterMs),this.log("transport",`deferred disconnect scheduled in ${this._disconnectOnEmptyChannelsAfterMs}ms`)}_cancelPendingDisconnect(){this._pendingDisconnectTimer!==null&&(this.log("transport","pending disconnect cancelled - channel activity detected"),clearTimeout(this._pendingDisconnectTimer),this._pendingDisconnectTimer=null)}async _performAuth(e=null){let n,r=!1;if(e)n=e,r=!0;else if(this.accessToken)try{n=await this.accessToken()}catch(i){this.log("error","Error fetching access token from callback",i),n=this.accessTokenValue}else n=this.accessTokenValue;r?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=n&&(this.accessTokenValue=n,this.channels.forEach(i=>{const s={access_token:n,version:u9};n&&i.updateJoinPayload(s),i.joinedOnce&&i.channelAdapter.isJoined()&&i.channelAdapter.push(yE.access_token,{access_token:n})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(e="general"){this._isManualToken()||this.setAuth().catch(n=>{this.log("error",`Error setting auth in ${e}`,n)})}_setupConnectionHandlers(){this.socketAdapter.onOpen(()=>{(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).catch(n=>{this.log("error","error waiting for auth on connect",n)}),this.worker&&!this.workerRef&&this._startWorkerHeartbeat()}),this.socketAdapter.onClose(()=>{this.worker&&this.workerRef&&this._terminateWorker()}),this.socketAdapter.onMessage(e=>{e.ref&&e.ref===this._pendingWorkerHeartbeatRef&&(this._pendingWorkerHeartbeatRef=null)})}_handleNodeJsRaceCondition(){this.socketAdapter.isConnected()&&this.socketAdapter.getSocket().onConnOpen()}_wrapHeartbeatCallback(e){return(n,r)=>{n=="sent"&&this._setAuthSafely(),e&&e(n,r)}}_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._terminateWorker(),this.disconnect()},this.workerRef.onmessage=n=>{n.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log("worker","terminating worker"),this.workerRef.terminate(),this.workerRef=void 0)}_workerObjectUrl(e){let n;if(e)n=e;else{const r=new Blob([$9],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}_initializeOptions(e){var n,r,i,s,a,l,c,d,f,p,g,y;this.worker=(n=e==null?void 0:e.worker)!==null&&n!==void 0?n:!1,this.accessToken=(r=e==null?void 0:e.accessToken)!==null&&r!==void 0?r:null;const b={};b.timeout=(i=e==null?void 0:e.timeout)!==null&&i!==void 0?i:h9,b.heartbeatIntervalMs=(s=e==null?void 0:e.heartbeatIntervalMs)!==null&&s!==void 0?s:Dx.HEARTBEAT_INTERVAL,this._disconnectOnEmptyChannelsAfterMs=(a=e==null?void 0:e.disconnectOnEmptyChannelsAfterMs)!==null&&a!==void 0?a:2*((l=e==null?void 0:e.heartbeatIntervalMs)!==null&&l!==void 0?l:Dx.HEARTBEAT_INTERVAL),b.transport=(c=e==null?void 0:e.transport)!==null&&c!==void 0?c:a9.getWebSocketConstructor(),b.params=e==null?void 0:e.params,b.logger=e==null?void 0:e.logger,b.heartbeatCallback=this._wrapHeartbeatCallback(e==null?void 0:e.heartbeatCallback),b.sessionStorage=(d=e==null?void 0:e.sessionStorage)!==null&&d!==void 0?d:F9(),b.reconnectAfterMs=(f=e==null?void 0:e.reconnectAfterMs)!==null&&f!==void 0?f:S=>D9[S-1]||B9;let _,T;const x=(p=e==null?void 0:e.vsn)!==null&&p!==void 0?p:d9;switch(x){case c9:_=(S,k)=>k(JSON.stringify(S)),T=(S,k)=>k(JSON.parse(S));break;case gE:_=this.serializer.encode.bind(this.serializer),T=this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${b.vsn}`)}if(b.vsn=x,b.encode=(g=e==null?void 0:e.encode)!==null&&g!==void 0?g:_,b.decode=(y=e==null?void 0:e.decode)!==null&&y!==void 0?y:T,b.beforeReconnect=this._reconnectAuth.bind(this),(e!=null&&e.logLevel||e!=null&&e.log_level)&&(this.logLevel=e.logLevel||e.log_level,b.params=Object.assign(Object.assign({},b.params),{log_level:this.logLevel})),this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=e==null?void 0:e.workerUrl,b.autoSendHeartbeat=!this.worker}return b}async _reconnectAuth(){await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()}}
275var Su=class extends Error{constructor(t,e){var n;super(t),this.name="IcebergError",this.status=e.status,this.icebergType=e.icebergType,this.icebergCode=e.icebergCode,this.details=e.details,this.isCommitStateUnknown=e.icebergType==="CommitStateUnknownException"||[500,502,504].includes(e.status)&&((n=e.icebergType)==null?void 0:n.includes("CommitState"))===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function V9(t,e,n){const r=new URL(e,t);if(n)for(const[i,s]of Object.entries(n))s!==void 0&&r.searchParams.set(i,s);return r.toString()}async function H9(t){return!t||t.type==="none"?{}:t.type==="bearer"?{Authorization:`Bearer ${t.token}`}:t.type==="header"?{[t.name]:t.value}:t.type==="custom"?await t.getHeaders():{}}function W9(t){const e=t.fetchImpl??globalThis.fetch;return{async request({method:n,path:r,query:i,body:s,headers:a}){const l=V9(t.baseUrl,r,i),c=await H9(t.auth),d=await e(l,{method:n,headers:{...s?{"Content-Type":"application/json"}:{},...c,...a},body:s?JSON.stringify(s):void 0}),f=await d.text(),p=(d.headers.get("content-type")||"").includes("application/json"),g=p&&f?JSON.parse(f):f;if(!d.ok){const y=p?g:void 0,b=y==null?void 0:y.error;throw new Su((b==null?void 0:b.message)??`Request failed with status ${d.status}`,{status:d.status,icebergType:b==null?void 0:b.type,icebergCode:b==null?void 0:b.code,details:y})}return{status:d.status,headers:d.headers,data:g}}}}function Wc(t){return t.join("�")}var q9=class{constructor(t,e=""){this.client=t,this.prefix=e}async listNamespaces(t){const e=t?{parent:Wc(t.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:e})).data.namespaces.map(r=>({namespace:r}))}async createNamespace(t,e){const n={namespace:t.namespace,properties:e==null?void 0:e.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:n})).data}async dropNamespace(t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Wc(t.namespace)}`})}async loadNamespaceMetadata(t){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Wc(t.namespace)}`})).data.properties}}async namespaceExists(t){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Wc(t.namespace)}`}),!0}catch(e){if(e instanceof Su&&e.status===404)return!1;throw e}}async createNamespaceIfNotExists(t,e){try{return await this.createNamespace(t,e)}catch(n){if(n instanceof Su&&n.status===409)return;throw n}}};function bo(t){return t.join("�")}var G9=class{constructor(t,e="",n){this.client=t,this.prefix=e,this.accessDelegation=n}async listTables(t){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${bo(t.namespace)}/tables`})).data.identifiers}async createTable(t,e){const n={};return this.accessDelegation&&(n["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${bo(t.namespace)}/tables`,body:e,headers:n})).data.metadata}async updateTable(t,e){const n=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${bo(t.namespace)}/tables/${t.name}`,body:e});return{"metadata-location":n.data["metadata-location"],metadata:n.data.metadata}}async dropTable(t,e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${bo(t.namespace)}/tables/${t.name}`,query:{purgeRequested:String((e==null?void 0:e.purge)??!1)}})}async loadTable(t){const e={};return this.accessDelegation&&(e["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${bo(t.namespace)}/tables/${t.name}`,headers:e})).data.metadata}async tableExists(t){const e={};this.accessDelegation&&(e["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${bo(t.namespace)}/tables/${t.name}`,headers:e}),!0}catch(n){if(n instanceof Su&&n.status===404)return!1;throw n}}async createTableIfNotExists(t,e){try{return await this.createTable(t,e)}catch(n){if(n instanceof Su&&n.status===409)return await this.loadTable({namespace:t.namespace,name:e.name});throw n}}},Z9=class{constructor(t){var r;let e="v1";t.catalogName&&(e+=`/${t.catalogName}`);const n=t.baseUrl.endsWith("/")?t.baseUrl:`${t.baseUrl}/`;this.client=W9({baseUrl:n,auth:t.auth,fetchImpl:t.fetch}),this.accessDelegation=(r=t.accessDelegation)==null?void 0:r.join(","),this.namespaceOps=new q9(this.client,e),this.tableOps=new G9(this.client,e,this.accessDelegation)}async listNamespaces(t){return this.namespaceOps.listNamespaces(t)}async createNamespace(t,e){return this.namespaceOps.createNamespace(t,e)}async dropNamespace(t){await this.namespaceOps.dropNamespace(t)}async loadNamespaceMetadata(t){return this.namespaceOps.loadNamespaceMetadata(t)}async listTables(t){return this.tableOps.listTables(t)}
275async createTable(t,e){return this.tableOps.createTable(t,e)}async updateTable(t,e){return this.tableOps.updateTable(t,e)}async dropTable(t,e){await this.tableOps.dropTable(t,e)}async loadTable(t){return this.tableOps.loadTable(t)}async namespaceExists(t){return this.namespaceOps.namespaceExists(t)}async tableExists(t){return this.tableOps.tableExists(t)}async createNamespaceIfNotExists(t,e){return this.namespaceOps.createNamespaceIfNotExists(t,e)}async createTableIfNotExists(t,e){return this.tableOps.createTableIfNotExists(t,e)}};function Tu(t){"@babel/helpers - typeof";return Tu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tu(t)}function K9(t,e){if(Tu(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Tu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function J9(t){var e=K9(t,"string");return Tu(e)=="symbol"?e:e+""}function Y9(t,e,n){return(e=J9(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Bx(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function he(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Bx(Object(n),!0).forEach(function(r){Y9(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bx(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Xh=class extends Error{constructor(t,e="storage",n,r){super(t),this.__isStorageError=!0,this.namespace=e,this.name=e==="vectors"?"StorageVectorsError":"StorageError",this.status=n,this.statusCode=r}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}};function Qh(t){return typeof t=="object"&&t!==null&&"__isStorageError"in t}var Hg=class extends Xh{constructor(t,e,n,r="storage"){super(t,r,e,n),this.name=r==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=e,this.statusCode=n}toJSON(){return he({},super.toJSON())}},bE=class extends Xh{constructor(t,e,n="storage"){super(t,n),this.name=n==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=e}};function hh(t,e,n){const r=he({},t),i=e.toLowerCase();for(const s of Object.keys(r))s.toLowerCase()===i&&delete r[s];return r[i]=n,r}function X9(t){const e={};for(const[n,r]of Object.entries(t))e[n.toLowerCase()]=r;return e}const Q9=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),e$=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)},Wg=t=>{if(Array.isArray(t))return t.map(n=>Wg(n));if(typeof t=="function"||t!==Object(t))return t;const e={};return Object.entries(t).forEach(([n,r])=>{const i=n.replace(/([-_][a-z])/gi,s=>s.toUpperCase().replace(/[-_]/g,""));e[i]=Wg(r)}),e},t$=t=>!t||typeof t!="string"||t.length===0||t.length>100||t.trim()!==t||t.includes("/")||t.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(t),zx=t=>{if(typeof t=="object"&&t!==null){const e=t;if(typeof e.msg=="string")return e.msg;if(typeof e.message=="string")return e.message;if(typeof e.error_description=="string")return e.error_description;if(typeof e.error=="string")return e.error;if(typeof e.error=="object"&&e.error!==null){const n=e.error;if(typeof n.message=="string")return n.message}}return JSON.stringify(t)},n$=async(t,e,n,r)=>{if(t!==null&&typeof t=="object"&&"json"in t&&typeof t.json=="function"){const i=t;let s=parseInt(String(i.status),10);Number.isFinite(s)||(s=500),i.json().then(a=>{const l=(a==null?void 0:a.statusCode)||(a==null?void 0:a.code)||s+"";e(new Hg(zx(a),s,l,r))}).catch(()=>{const a=s+"";e(new Hg(i.statusText||`HTTP ${s} error`,s,a,r))})}else e(new bE(zx(t),t,r))},r$=(t,e,n,r)=>{const i={method:t,headers:(e==null?void 0:e.headers)||{}};if(t==="GET"||t==="HEAD"||!r)return he(he({},i),n);if(e$(r)){var s;const a=(e==null?void 0:e.headers)||{};let l;for(const[c,d]of Object.entries(a))c.toLowerCase()==="content-type"&&(l=d);i.headers=hh(a,"Content-Type",(s=l)!==null&&s!==void 0?s:"application/json"),i.body=JSON.stringify(r)}else i.body=r;return e!=null&&e.duplex&&(i.duplex=e.duplex),he(he({},i),n)};async function wl(t,e,n,r,i,s,a){return new Promise((l,c)=>{t(n,r$(e,r,i,s)).then(d=>{if(!d.ok)throw d;if(r!=null&&r.noResolveJson)return d;if(a==="vectors"){const f=d.headers.get("content-type");if(d.headers.get("content-length")==="0"||d.status===204)return{};if(!f||!f.includes("application/json"))return{}}return d.json()}).then(d=>l(d)).catch(d=>n$(d,c,r,a))})}function xE(t="storage"){return{get:async(e,n,r,i)=>wl(e,"GET",n,r,i,void 0,t),post:async(e,n,r,i,s)=>wl(e,"POST",n,i,s,r,t),put:async(e,n,r,i,s)=>wl(e,"PUT",n,i,s,r,t),head:async(e,n,r,i)=>wl(e,"HEAD",n,he(he({},r),{},{noResolveJson:!0}),i,void 0,t),remove:async(e,n,r,i,s)=>wl(e,"DELETE",n,i,s,r,t)}}const i$=xE("storage"),{get:Pu,post:qn,put:qg,head:s$,remove:Gv}=i$,ln=xE("vectors");var Ua=class{constructor(t,e={},n,r="storage"){this.shouldThrowOnError=!1,this.url=t,this.headers=X9(e),this.fetch=Q9(n),this.namespace=r}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(t,e){return this.headers=hh(this.headers,t,e),this}async handleOperation(t){var e=this;try{return{data:await t(),error:null}}catch(n){if(e.shouldThrowOnError)throw n;if(Qh(n))return{data:null,error:n};throw n}}};let kE;kE=Symbol.toStringTag;var o$=class{constructor(t,e){this.downloadFn=t,this.shouldThrowOnError=e,this[kE]="StreamDownloadBuilder",this.promise=null}
275then(t,e){return this.getPromise().then(t,e)}catch(t){return this.getPromise().catch(t)}finally(t){return this.getPromise().finally(t)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var t=this;try{return{data:(await t.downloadFn()).body,error:null}}catch(e){if(t.shouldThrowOnError)throw e;if(Qh(e))return{data:null,error:e};throw e}}};let SE;SE=Symbol.toStringTag;var a$=class{constructor(t,e){this.downloadFn=t,this.shouldThrowOnError=e,this[SE]="BlobDownloadBuilder",this.promise=null}asStream(){return new o$(this.downloadFn,this.shouldThrowOnError)}then(t,e){return this.getPromise().then(t,e)}catch(t){return this.getPromise().catch(t)}finally(t){return this.getPromise().finally(t)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var t=this;try{return{data:await(await t.downloadFn()).blob(),error:null}}catch(e){if(t.shouldThrowOnError)throw e;if(Qh(e))return{data:null,error:e};throw e}}};const l$={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Fx={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var u$=class extends Ua{constructor(t,e={},n,r){super(t,e,r,"storage"),this.bucketId=n}async uploadOrUpdate(t,e,n,r){var i=this;return i.handleOperation(async()=>{let s;const a=he(he({},Fx),r);let l=he(he({},i.headers),t==="POST"&&{"x-upsert":String(a.upsert)});const c=a.metadata;if(typeof Blob<"u"&&n instanceof Blob?(s=new FormData,s.append("cacheControl",a.cacheControl),c&&s.append("metadata",i.encodeMetadata(c)),s.append("",n)):typeof FormData<"u"&&n instanceof FormData?(s=n,s.has("cacheControl")||s.append("cacheControl",a.cacheControl),c&&!s.has("metadata")&&s.append("metadata",i.encodeMetadata(c))):(s=n,l["cache-control"]=`max-age=${a.cacheControl}`,l["content-type"]=a.contentType,c&&(l["x-metadata"]=i.toBase64(i.encodeMetadata(c))),(typeof ReadableStream<"u"&&s instanceof ReadableStream||s&&typeof s=="object"&&"pipe"in s&&typeof s.pipe=="function")&&!a.duplex&&(a.duplex="half")),r!=null&&r.headers)for(const[g,y]of Object.entries(r.headers))l=hh(l,g,y);const d=i._removeEmptyFolders(e),f=i._getFinalPath(d),p=await(t=="PUT"?qg:qn)(i.fetch,`${i.url}/object/${f}`,s,he({headers:l},a!=null&&a.duplex?{duplex:a.duplex}:{}));return{path:d,id:p.Id,fullPath:p.Key}})}async upload(t,e,n){return this.uploadOrUpdate("POST",t,e,n)}async uploadToSignedUrl(t,e,n,r){var i=this;const s=i._removeEmptyFolders(t),a=i._getFinalPath(s),l=new URL(i.url+`/object/upload/sign/${a}`);return l.searchParams.set("token",e),i.handleOperation(async()=>{let c;const d=he(he({},Fx),r);let f=he(he({},i.headers),{"x-upsert":String(d.upsert)});const p=d.metadata;if(typeof Blob<"u"&&n instanceof Blob?(c=new FormData,c.append("cacheControl",d.cacheControl),p&&c.append("metadata",i.encodeMetadata(p)),c.append("",n)):typeof FormData<"u"&&n instanceof FormData?(c=n,c.has("cacheControl")||c.append("cacheControl",d.cacheControl),p&&!c.has("metadata")&&c.append("metadata",i.encodeMetadata(p))):(c=n,f["cache-control"]=`max-age=${d.cacheControl}`,f["content-type"]=d.contentType,p&&(f["x-metadata"]=i.toBase64(i.encodeMetadata(p))),(typeof ReadableStream<"u"&&c instanceof ReadableStream||c&&typeof c=="object"&&"pipe"in c&&typeof c.pipe=="function")&&!d.duplex&&(d.duplex="half")),r!=null&&r.headers)for(const[g,y]of Object.entries(r.headers))f=hh(f,g,y);return{path:s,fullPath:(await qg(i.fetch,l.toString(),c,he({headers:f},d!=null&&d.duplex?{duplex:d.duplex}:{}))).Key}})}async createSignedUploadUrl(t,e){var n=this;return n.handleOperation(async()=>{let r=n._getFinalPath(t);const i=he({},n.headers);e!=null&&e.upsert&&(i["x-upsert"]="true");const s=await qn(n.fetch,`${n.url}/object/upload/sign/${r}`,{},{headers:i}),a=new URL(n.url+s.url),l=a.searchParams.get("token");if(!l)throw new Xh("No token returned by API");return{signedUrl:a.toString(),path:t,token:l}})}async update(t,e,n){return this.uploadOrUpdate("PUT",t,e,n)}async move(t,e,n){var r=this;return r.handleOperation(async()=>await qn(r.fetch,`${r.url}/object/move`,{bucketId:r.bucketId,sourceKey:t,destinationKey:e,destinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers}))}async copy(t,e,n){var r=this;return r.handleOperation(async()=>({path:(await qn(r.fetch,`${r.url}/object/copy`,{bucketId:r.bucketId,sourceKey:t,destinationKey:e,destinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers})).Key}))}async createSignedUrl(t,e,n){var r=this;return r.handleOperation(async()=>{let i=r._getFinalPath(t);const s=typeof(n==null?void 0:n.transform)=="object"&&n.transform!==null&&Object.keys(n.transform).length>0;let a=await qn(r.fetch,`${r.url}/object/sign/${i}
275`,he({expiresIn:e},s?{transform:n.transform}:{}),{headers:r.headers});const l=new URLSearchParams;n!=null&&n.download&&l.set("download",n.download===!0?"":n.download),(n==null?void 0:n.cacheNonce)!=null&&l.set("cacheNonce",String(n.cacheNonce));const c=l.toString();return{signedUrl:encodeURI(`${r.url}${a.signedURL}${c?`&${c}`:""}`)}})}async createSignedUrls(t,e,n){var r=this;return r.handleOperation(async()=>{const i=await qn(r.fetch,`${r.url}/object/sign/${r.bucketId}`,{expiresIn:e,paths:t},{headers:r.headers}),s=new URLSearchParams;n!=null&&n.download&&s.set("download",n.download===!0?"":n.download),(n==null?void 0:n.cacheNonce)!=null&&s.set("cacheNonce",String(n.cacheNonce));const a=s.toString();return i.map(l=>he(he({},l),{},{signedUrl:l.signedURL?encodeURI(`${r.url}${l.signedURL}${a?`&${a}`:""}`):null}))})}download(t,e,n){const r=typeof(e==null?void 0:e.transform)=="object"&&e.transform!==null&&Object.keys(e.transform).length>0?"render/image/authenticated":"object",i=new URLSearchParams;e!=null&&e.transform&&this.applyTransformOptsToQuery(i,e.transform),(e==null?void 0:e.cacheNonce)!=null&&i.set("cacheNonce",String(e.cacheNonce));const s=i.toString(),a=this._getFinalPath(t),l=()=>Pu(this.fetch,`${this.url}/${r}/${a}${s?`?${s}`:""}`,{headers:this.headers,noResolveJson:!0},n);return new a$(l,this.shouldThrowOnError)}async info(t){var e=this;const n=e._getFinalPath(t);return e.handleOperation(async()=>Wg(await Pu(e.fetch,`${e.url}/object/info/${n}`,{headers:e.headers})))}async exists(t){var e=this;const n=e._getFinalPath(t);try{return await s$(e.fetch,`${e.url}/object/${n}`,{headers:e.headers}),{data:!0,error:null}}catch(i){if(e.shouldThrowOnError)throw i;if(Qh(i)){var r;const s=i instanceof Hg?i.status:i instanceof bE?(r=i.originalError)===null||r===void 0?void 0:r.status:void 0;if(s!==void 0&&[400,404].includes(s))return{data:!1,error:i}}throw i}}getPublicUrl(t,e){const n=this._getFinalPath(t),r=new URLSearchParams;e!=null&&e.download&&r.set("download",e.download===!0?"":e.download),e!=null&&e.transform&&this.applyTransformOptsToQuery(r,e.transform),(e==null?void 0:e.cacheNonce)!=null&&r.set("cacheNonce",String(e.cacheNonce));const i=r.toString(),s=typeof(e==null?void 0:e.transform)=="object"&&e.transform!==null&&Object.keys(e.transform).length>0?"render/image":"object";return{data:{publicUrl:encodeURI(`${this.url}/${s}/public/${n}`)+(i?`?${i}`:"")}}}async remove(t){var e=this;return e.handleOperation(async()=>await Gv(e.fetch,`${e.url}/object/${e.bucketId}`,{prefixes:t},{headers:e.headers}))}async list(t,e,n){var r=this;return r.handleOperation(async()=>{const i=he(he(he({},l$),e),{},{prefix:t||""});return await qn(r.fetch,`${r.url}/object/list/${r.bucketId}`,i,{headers:r.headers},n)})}async listV2(t,e){var n=this;return n.handleOperation(async()=>{const r=he({},t);return await qn(n.fetch,`${n.url}/object/list-v2/${n.bucketId}`,r,{headers:n.headers},e)})}encodeMetadata(t){return JSON.stringify(t)}toBase64(t){return typeof Buffer<"u"?Buffer.from(t).toString("base64"):btoa(t)}_getFinalPath(t){return`${this.bucketId}/${t.replace(/^\/+/,"")}`}_removeEmptyFolders(t){return t.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}applyTransformOptsToQuery(t,e){return e.width&&t.set("width",e.width.toString()),e.height&&t.set("height",e.height.toString()),e.resize&&t.set("resize",e.resize),e.format&&t.set("format",e.format),e.quality&&t.set("quality",e.quality.toString()),t}};const c$="2.108.0",Hu={"X-Client-Info":`storage-js/${c$}`};var d$=class extends Ua{constructor(t,e={},n,r){const i=new URL(t);r!=null&&r.useNewHostname&&/supabase\.(co|in|red)$/.test(i.hostname)&&!i.hostname.includes("storage.supabase.")&&(i.hostname=i.hostname.replace("supabase.","storage.supabase."));const s=i.href.replace(/\/$/,""),a=he(he({},Hu),e);super(s,a,n,"storage")}async listBuckets(t){var e=this;return e.handleOperation(async()=>{const n=e.listBucketOptionsToQueryString(t);return await Pu(e.fetch,`${e.url}/bucket${n}`,{headers:e.headers})})}async getBucket(t){var e=this;return e.handleOperation(async()=>await Pu(e.fetch,`${e.url}/bucket/${t}`,{headers:e.headers}))}async createBucket(t,e={public:!1}){var n=this;return n.handleOperation(async()=>await qn(n.fetch,`${n.url}/bucket`,{id:t,name:t,type:e.type,public:e.public,file_size_limit:e.fileSizeLimit,allowed_mime_types:e.allowedMimeTypes},{headers:n.headers}))}async updateBucket(t,e){var n=this;return n.handleOperation(async()=>await qg(n.fetch,`${n.url}/bucket/${t}`,{id:t,name:t,public:e.public,file_size_limit:e.fileSizeLimit,allowed_mime_types:e.allowedMimeTypes},{headers:n.headers}))}async emptyBucket(t){var e=this;return e.handleOperation(async()=>await qn(e.fetch,`${e.url}/bucket/${t}/empty`,{},{headers:e.headers}))}async deleteBucket(t){var e=this;return e.handleOperation(async()=>await Gv(e.fetch,`${e.url}/bucket/${t}`,{},{headers:e.headers}))}listBucketOptionsToQueryString(t){const e={};return t&&("limit"in t&&(e.limit=String(t.limit)),"offset"in t&&(e.offset=String(t.offset)),t.search&&(e.search=t.search),t.sortColumn&&(e.sortColumn=t.sortColumn),t.sortOrder&&(e.sortOrder=t.sortOrder)),Object.keys(e).length>0?"?"+new URLSearchParams(e).toString():""}},h$=class extends Ua{constructor(t,e={},n){const r=t.replace(/\/$/,""),i=he(he({},Hu),e);super(r,i,n,"storage")}async createBucket(t){var e=this;return e.handleOperation(async()=>await qn(e.fetch,`${e.url}/bucket`,{name:t},{headers:e.headers}))}async listBuckets(t){var e=this;return e.handleOperation(async()=>{const n=new URLSearchParams;(t==null?void 0:t.limit)!==void 0&&n.set("limit",t.limit.toString()),(t==null?void 0:t.offset)!==void 0&&n.set("offset",t.offset.toString()),t!=null&&t.sortColumn&&n.set("sortColumn",t.sortColumn),t!=null&&t.sortOrder&&n.set("sortOrder",t.sortOrder),t!=null&&t.search&&n.set("search",t.search);const r=n.toString(),i=r?`${e.url}/bucket?${r}`:`${e.url}/bucket`;return await Pu(e.fetch,i,{headers:e.headers})})}async deleteBucket(t){var e=this;return e.handleOperation(async()=>await Gv(e.fetch,`${e.url}/bucket/${t}`,{},{headers:e.headers}))}from(t){var e=this;if(!t$(t))throw new Xh("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");const n=new Z9({baseUrl:this.url,catalogName:t,auth:{type:"custom",getHeaders:async()=>e.headers},fetch:this.fetch}
275),r=this.shouldThrowOnError;return new Proxy(n,{get(i,s){const a=i[s];return typeof a!="function"?a:async(...l)=>{try{return{data:await a.apply(i,l),error:null}}catch(c){if(r)throw c;return{data:null,error:c}}}}})}},f$=class extends Ua{constructor(t,e={},n){const r=t.replace(/\/$/,""),i=he(he({},Hu),{},{"Content-Type":"application/json"},e);super(r,i,n,"vectors")}async createIndex(t){var e=this;return e.handleOperation(async()=>await ln.post(e.fetch,`${e.url}/CreateIndex`,t,{headers:e.headers})||{})}async getIndex(t,e){var n=this;return n.handleOperation(async()=>await ln.post(n.fetch,`${n.url}/GetIndex`,{vectorBucketName:t,indexName:e},{headers:n.headers}))}async listIndexes(t){var e=this;return e.handleOperation(async()=>await ln.post(e.fetch,`${e.url}/ListIndexes`,t,{headers:e.headers}))}async deleteIndex(t,e){var n=this;return n.handleOperation(async()=>await ln.post(n.fetch,`${n.url}/DeleteIndex`,{vectorBucketName:t,indexName:e},{headers:n.headers})||{})}},p$=class extends Ua{constructor(t,e={},n){const r=t.replace(/\/$/,""),i=he(he({},Hu),{},{"Content-Type":"application/json"},e);super(r,i,n,"vectors")}async putVectors(t){var e=this;if(t.vectors.length<1||t.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return e.handleOperation(async()=>await ln.post(e.fetch,`${e.url}/PutVectors`,t,{headers:e.headers})||{})}async getVectors(t){var e=this;return e.handleOperation(async()=>await ln.post(e.fetch,`${e.url}/GetVectors`,t,{headers:e.headers}))}async listVectors(t){var e=this;if(t.segmentCount!==void 0){if(t.segmentCount<1||t.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");if(t.segmentIndex!==void 0&&(t.segmentIndex<0||t.segmentIndex>=t.segmentCount))throw new Error(`segmentIndex must be between 0 and ${t.segmentCount-1}`)}return e.handleOperation(async()=>await ln.post(e.fetch,`${e.url}/ListVectors`,t,{headers:e.headers}))}async queryVectors(t){var e=this;return e.handleOperation(async()=>await ln.post(e.fetch,`${e.url}/QueryVectors`,t,{headers:e.headers}))}async deleteVectors(t){var e=this;if(t.keys.length<1||t.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return e.handleOperation(async()=>await ln.post(e.fetch,`${e.url}/DeleteVectors`,t,{headers:e.headers})||{})}},m$=class extends Ua{constructor(t,e={},n){const r=t.replace(/\/$/,""),i=he(he({},Hu),{},{"Content-Type":"application/json"},e);super(r,i,n,"vectors")}async createBucket(t){var e=this;return e.handleOperation(async()=>await ln.post(e.fetch,`${e.url}/CreateVectorBucket`,{vectorBucketName:t},{headers:e.headers})||{})}async getBucket(t){var e=this;return e.handleOperation(async()=>await ln.post(e.fetch,`${e.url}/GetVectorBucket`,{vectorBucketName:t},{headers:e.headers}))}async listBuckets(t={}){var e=this;return e.handleOperation(async()=>await ln.post(e.fetch,`${e.url}/ListVectorBuckets`,t,{headers:e.headers}))}async deleteBucket(t){var e=this;return e.handleOperation(async()=>await ln.post(e.fetch,`${e.url}/DeleteVectorBucket`,{vectorBucketName:t},{headers:e.headers})||{})}},g$=class extends m${constructor(t,e={}){super(t,e.headers||{},e.fetch)}from(t){return new y$(this.url,this.headers,t,this.fetch)}async createBucket(t){var e=()=>super.createBucket,n=this;return e().call(n,t)}async getBucket(t){var e=()=>super.getBucket,n=this;return e().call(n,t)}async listBuckets(t={}){var e=()=>super.listBuckets,n=this;return e().call(n,t)}async deleteBucket(t){var e=()=>super.deleteBucket,n=this;return e().call(n,t)}},y$=class extends f${constructor(t,e,n,r){super(t,e,r),this.vectorBucketName=n}async createIndex(t){var e=()=>super.createIndex,n=this;return e().call(n,he(he({},t),{},{vectorBucketName:n.vectorBucketName}))}async listIndexes(t={}){var e=()=>super.listIndexes,n=this;return e().call(n,he(he({},t),{},{vectorBucketName:n.vectorBucketName}))}async getIndex(t){var e=()=>super.getIndex,n=this;return e().call(n,n.vectorBucketName,t)}async deleteIndex(t){var e=()=>super.deleteIndex,n=this;return e().call(n,n.vectorBucketName,t)}index(t){return new v$(this.url,this.headers,this.vectorBucketName,t,this.fetch)}},v$=class extends p${constructor(t,e,n,r,i){super(t,e,i),this.vectorBucketName=n,this.indexName=r}async putVectors(t){var e=()=>super.putVectors,n=this;return e().call(n,he(he({},t),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async getVectors(t){var e=()=>super.getVectors,n=this;return e().call(n,he(he({},t),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async listVectors(t={}){var e=()=>super.listVectors,n=this;return e().call(n,he(he({},t),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async queryVectors(t){var e=()=>super.queryVectors,n=this;return e().call(n,he(he({},t),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async deleteVectors(t){var e=()=>super.deleteVectors,n=this;return e().call(n,he(he({},t),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}},w$=class extends d${constructor(t,e={},n,r){super(t,e,n,r)}from(t){return new u$(this.url,this.headers,t,this.fetch)}get vectors(){return new g$(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new h$(this.url+"/iceberg",this.headers,this.fetch)}};function ef(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 i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}const TE="2.108.0",ki=30*1e3,Cl=3,zp=Cl*ki,_$="http://localhost:9999",b$="supabase.auth.token",x$={"X-Client-Info":`gotrue-js/${TE}`},Gg="X-Supabase-Api-Version",PE={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},k$=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,S$=10*60*1e3;
275class Cu extends Error{constructor(e,n,r){super(e),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code}}}function K(t){return typeof t=="object"&&t!==null&&"__isAuthError"in t}class T$ extends Cu{constructor(e,n,r){super(e,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function P$(t){return K(t)&&t.name==="AuthApiError"}class Yn extends Cu{constructor(e,n){super(e),this.name="AuthUnknownError",this.originalError=n}}class Ir extends Cu{constructor(e,n,r,i){super(e,r,i),this.name=n,this.status=r}}class wt extends Ir{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function qc(t){return K(t)&&t.name==="AuthSessionMissingError"}class xo extends Ir{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class Gc extends Ir{constructor(e){super(e,"AuthInvalidCredentialsError",400,void 0)}}class Zc extends Ir{constructor(e,n=null){super(e,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}function C$(t){return K(t)&&t.name==="AuthImplicitGrantRedirectError"}class $x extends Ir{constructor(e,n=null){super(e,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}class E$ extends Ir{constructor(){super("PKCE code verifier not found in storage. This can happen if the auth flow was initiated in a different browser or device, or if the storage was cleared. For SSR frameworks (Next.js, SvelteKit, etc.), use @supabase/ssr on both the server and client to store the code verifier in cookies.","AuthPKCECodeVerifierMissingError",400,"pkce_code_verifier_not_found")}}class Zg extends Ir{constructor(e,n){super(e,"AuthRetryableFetchError",n,void 0)}}function Fp(t){return K(t)&&t.name==="AuthRetryableFetchError"}class Ux extends Ir{constructor(e="Refresh result discarded: session state changed mid-flight (e.g., concurrent signOut)"){super(e,"AuthRefreshDiscardedError",409,void 0)}}function A$(t){return K(t)&&t.name==="AuthRefreshDiscardedError"}class Vx extends Ir{constructor(e,n,r){super(e,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{reasons:this.reasons})}}class fh extends Ir{constructor(e){super(e,"AuthInvalidJwtError",400,"invalid_jwt")}}const ph="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),Hx=` 	
276\r=`.split(""),R$=(()=>{const t=new Array(128);for(let e=0;e<t.length;e+=1)t[e]=-1;for(let e=0;e<Hx.length;e+=1)t[Hx[e].charCodeAt(0)]=-2;for(let e=0;e<ph.length;e+=1)t[ph[e].charCodeAt(0)]=e;return t})();function Wx(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(ph[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(ph[r]),e.queuedBits-=6}}function CE(t,e,n){const r=R$[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 qx(t){const e=[],n=a=>{e.push(String.fromCodePoint(a))},r={utf8seq:0,codepoint:0},i={queue:0,queuedBits:0},s=a=>{M$(a,r,n)};for(let a=0;a<t.length;a+=1)CE(t.charCodeAt(a),i,s);return e.join("")}function L$(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 O$(t,e){for(let n=0;n<t.length;n+=1){let r=t.charCodeAt(n);if(r>55295&&r<=56319){const i=(r-55296)*1024&65535;r=(t.charCodeAt(n+1)-56320&65535|i)+65536,n+=1}L$(r,e)}}function M$(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 ia(t){const e=[],n={queue:0,queuedBits:0},r=i=>{e.push(i)};for(let i=0;i<t.length;i+=1)CE(t.charCodeAt(i),n,r);return new Uint8Array(e)}function N$(t){const e=[];return O$(t,n=>e.push(n)),new Uint8Array(e)}function Is(t){const e=[],n={queue:0,queuedBits:0},r=i=>{e.push(i)};return t.forEach(i=>
276Wx(i,n,r)),Wx(null,n,r),e.join("")}function j$(t){return Math.round(Date.now()/1e3)+t}function I$(){return Symbol("auth-callback")}const Lt=()=>typeof window<"u"&&typeof document<"u",Ts={tested:!1,writable:!1},EE=()=>{if(!Lt())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(Ts.tested)return Ts.writable;const t=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(t,t),globalThis.localStorage.removeItem(t),Ts.tested=!0,Ts.writable=!0}catch{Ts.tested=!0,Ts.writable=!1}return Ts.writable};function D$(t){const e={},n=new URL(t);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((i,s)=>{e[s]=i})}catch{}return n.searchParams.forEach((r,i)=>{e[i]=r}),e}const AE=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),B$=t=>typeof t=="object"&&t!==null&&"status"in t&&"ok"in t&&"json"in t&&typeof t.json=="function",Eo=async(t,e,n)=>{await t.setItem(e,JSON.stringify(n))},qr=async(t,e)=>{const n=await t.getItem(e);if(!n)return null;try{return JSON.parse(n)}catch{return null}},ot=async(t,e)=>{await t.removeItem(e)};class tf{constructor(){this.promise=new tf.promiseConstructor((e,n)=>{this.resolve=e,this.reject=n})}}tf.promiseConstructor=Promise;function Kc(t){const e=t.split(".");if(e.length!==3)throw new fh("Invalid JWT structure");for(let r=0;r<e.length;r++)if(!k$.test(e[r]))throw new fh("JWT not in base64url format");return{header:JSON.parse(qx(e[0])),payload:JSON.parse(qx(e[1])),signature:ia(e[2]),raw:{header:e[0],payload:e[1]}}}async function z$(t){return await new Promise(e=>{setTimeout(()=>e(null),t)})}function F$(t,e){return new Promise((r,i)=>{(async()=>{for(let s=0;s<1/0;s++)try{const a=await t(s);if(!e(s,null,a)){r(a);return}}catch(a){if(!e(s,a)){i(a);return}}})()})}function $$(t){return("0"+t.toString(16)).substr(-2)}function U$(){const e=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let i="";for(let s=0;s<56;s++)i+=n.charAt(Math.floor(Math.random()*r));return i}return crypto.getRandomValues(e),Array.from(e,$$).join("")}async function V$(t){const n=new TextEncoder().encode(t),r=await crypto.subtle.digest("SHA-256",n),i=new Uint8Array(r);return Array.from(i).map(s=>String.fromCharCode(s)).join("")}async function H$(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 V$(t);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function Ps(t,e,n=!1){const r=U$();let i=r;n&&(i+="/recovery"),await Eo(t,`${e}-code-verifier`,i);const s=await H$(r);return[s,r===s?"plain":"s256"]}const W$=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function q$(t){const e=t.headers.get(Gg);if(!e||!e.match(W$))return null;try{return new Date(`${e}T00:00:00.0Z`)}catch{return null}}function G$(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 Z$(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 K$=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function Gr(t){if(!K$.test(t))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function Vn(t){if(!t.passkey)throw new Error("@supabase/auth-js: the passkey API is experimental and disabled by default. Enable it by passing `auth: { experimental: { passkey: true } }` to createClient (or to the GoTrueClient constructor).")}function $p(){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 J$(t,e){return new Proxy(t,{get:(n,r,i)=>{if(r==="__isInsecureUserWarningProxy")return!0;
276if(typeof r=="symbol"){const s=r.toString();if(s==="Symbol(Symbol.toPrimitive)"||s==="Symbol(Symbol.toStringTag)"||s==="Symbol(util.inspect.custom)"||s==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(n,r,i)}return!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,i)}})}function Gx(t){return JSON.parse(JSON.stringify(t))}const Rs=t=>{if(typeof t=="object"&&t!==null){const e=t;if(typeof e.msg=="string")return e.msg;if(typeof e.message=="string")return e.message;if(typeof e.error_description=="string")return e.error_description;if(typeof e.error=="string")return e.error}return JSON.stringify(t)},Y$=[502,503,504,520,521,522,523,524,530];async function Zx(t){var e;if(!B$(t))throw new Zg(Rs(t),0);if(Y$.includes(t.status))throw new Zg(Rs(t),t.status);let n;try{n=await t.json()}catch(s){throw new Yn(Rs(s),s)}let r;const i=q$(t);if(i&&i.getTime()>=PE["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 Vx(Rs(n),t.status,((e=n.weak_password)===null||e===void 0?void 0:e.reasons)||[]);if(r==="session_not_found")throw new wt}else if(typeof n=="object"&&n&&typeof n.weak_password=="object"&&n.weak_password&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.reasons.reduce((s,a)=>s&&typeof a=="string",!0))throw new Vx(Rs(n),t.status,n.weak_password.reasons);throw new T$(Rs(n),t.status||500,r)}const X$=(t,e,n,r)=>{const i={method:t,headers:(e==null?void 0:e.headers)||{}};return t==="GET"?i:(i.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},e==null?void 0:e.headers),i.body=JSON.stringify(r),Object.assign(Object.assign({},i),n))};async function ie(t,e,n,r){var i;const s=Object.assign({},r==null?void 0:r.headers);s[Gg]||(s[Gg]=PE["2024-01-01"].name),r!=null&&r.jwt&&(s.Authorization=`Bearer ${r.jwt}`);const a=(i=r==null?void 0:r.query)!==null&&i!==void 0?i:{};r!=null&&r.redirectTo&&(a.redirect_to=r.redirectTo);const l=Object.keys(a).length?"?"+new URLSearchParams(a).toString():"",c=await Q$(t,e,n+l,{headers:s,noResolveJson:r==null?void 0:r.noResolveJson},{},r==null?void 0:r.body);return r!=null&&r.xform?r==null?void 0:r.xform(c):{data:Object.assign({},c),error:null}}async function Q$(t,e,n,r,i,s){const a=X$(e,r,i,s);let l;try{l=await t(n,Object.assign({},a))}catch(c){throw console.error(c),new Zg(Rs(c),0)}if(l.ok||await Zx(l),r!=null&&r.noResolveJson)return l;try{return await l.json()}catch(c){await Zx(c)}}function xn(t){var e;let n=null;nU(t)&&(n=Object.assign({},t),t.expires_at||(n.expires_at=j$(t.expires_in)));const r=(e=t.user)!==null&&e!==void 0?e:typeof(t==null?void 0:t.id)=="string"?t:null;return{data:{session:n,user:r},error:null}}function Kx(t){const e=xn(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 Ri(t){var e;return{data:{user:(e=t.user)!==null&&e!==void 0?e:t},error:null}}function eU(t){return{data:t,error:null}}function tU(t){const{action_link:e,email_otp:n,hashed_token:r,redirect_to:i,verification_type:s}=t,a=ef(t,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),l={action_link:e,email_otp:n,hashed_token:r,redirect_to:i,verification_type:s},c=Object.assign({},a);return{data:{properties:l,user:c},error:null}}function Jx(t){return t}function nU(t){return!!t.access_token&&!!t.refresh_token&&!!t.expires_in}const Up=["global","local","others"];class rU{constructor({url:e="",headers:n={},fetch:r,experimental:i}){this.url=e,this.headers=n,this.fetch=AE(r),this.experimental=i??{},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)},this.customProviders={listProviders:this._listCustomProviders.bind(this),createProvider:this._createCustomProvider.bind(this),getProvider:this._getCustomProvider.bind(this),updateProvider:this._updateCustomProvider.bind(this),deleteProvider:this._deleteCustomProvider.bind(this)},this.passkey={listPasskeys:this._adminListPasskeys.bind(this),deletePasskey:this._adminDeletePasskey.bind(this)}}
vendor: 4,766 bytes, line 276
276async signOut(e,n=Up[0]){if(Up.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Up.join(", ")}`);try{return await ie(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:e,noResolveJson:!0}),{data:null,error:null}}catch(r){if(K(r))return{data:null,error:r};throw r}}async inviteUserByEmail(e,n={}){try{return await ie(this.fetch,"POST",`${this.url}/invite`,{body:{email:e,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:Ri})}catch(r){if(K(r))return{data:{user:null},error:r};throw r}}async generateLink(e){try{const{options:n}=e,r=ef(e,["options"]),i=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(i.new_email=r==null?void 0:r.newEmail,delete i.newEmail),await ie(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:i,headers:this.headers,xform:tU,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(K(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(e){try{return await ie(this.fetch,"POST",`${this.url}/admin/users`,{body:e,headers:this.headers,xform:Ri})}catch(n){if(K(n))return{data:{user:null},error:n};throw n}}async listUsers(e){var n,r,i,s,a,l,c;try{const d={nextPage:null,lastPage:0,total:0},f=await ie(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:(s=(i=e==null?void 0:e.perPage)===null||i===void 0?void 0:i.toString())!==null&&s!==void 0?s:""},xform:Jx});if(f.error)throw f.error;const p=await f.json(),g=(a=f.headers.get("x-total-count"))!==null&&a!==void 0?a:0,y=(c=(l=f.headers.get("link"))===null||l===void 0?void 0:l.split(","))!==null&&c!==void 0?c:[];return y.length>0&&(y.forEach(b=>{const _=parseInt(b.split(";")[0].split("=")[1].substring(0,1)),T=JSON.parse(b.split(";")[1].split("=")[1]);d[`${T}Page`]=_}),d.total=parseInt(g)),{data:Object.assign(Object.assign({},p),d),error:null}}catch(d){if(K(d))return{data:{users:[]},error:d};throw d}}async getUserById(e){Gr(e);try{return await ie(this.fetch,"GET",`${this.url}/admin/users/${e}`,{headers:this.headers,xform:Ri})}catch(n){if(K(n))return{data:{user:null},error:n};throw n}}async updateUserById(e,n){Gr(e);try{return await ie(this.fetch,"PUT",`${this.url}/admin/users/${e}`,{body:n,headers:this.headers,xform:Ri})}catch(r){if(K(r))return{data:{user:null},error:r};throw r}}async deleteUser(e,n=!1){Gr(e);try{return await ie(this.fetch,"DELETE",`${this.url}/admin/users/${e}`,{headers:this.headers,body:{should_soft_delete:n},xform:Ri})}catch(r){if(K(r))return{data:{user:null},error:r};throw r}}async _listFactors(e){Gr(e.userId);try{const{data:n,error:r}=await ie(this.fetch,"GET",`${this.url}/admin/users/${e.userId}/factors`,{headers:this.headers,xform:i=>({data:{factors:i},error:null})});return{data:n,error:r}}catch(n){if(K(n))return{data:null,error:n};throw n}}async _deleteFactor(e){Gr(e.userId),Gr(e.id);try{return{data:await ie(this.fetch,"DELETE",`${this.url}/admin/users/${e.userId}/factors/${e.id}`,{headers:this.headers}),error:null}}catch(n){if(K(n))return{data:null,error:n};throw n}}async _listOAuthClients(e){var n,r,i,s,a,l,c;try{const d={nextPage:null,lastPage:0,total:0},f=await ie(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:(s=(i=e==null?void 0:e.perPage)===null||i===void 0?void 0:i.toString())!==null&&s!==void 0?s:""},xform:Jx});if(f.error)throw f.error;const p=await f.json(),g=(a=f.headers.get("x-total-count"))!==null&&a!==void 0?a:0,y=(c=(l=f.headers.get("link"))===null||l===void 0?void 0:l.split(","))!==null&&c!==void 0?c:[];return y.length>0&&(y.forEach(b=>{const _=parseInt(b.split(";")[0].split("=")[1].substring(0,1)),T=JSON.parse(b.split(";")[1].split("=")[1]);d[`${T}Page`]=_}),d.total=parseInt(g)),{data:Object.assign(Object.assign({},p),d),error:null}}catch(d){if(K(d))return{data:{clients:[]},error:d};throw d}}async _createOAuthClient(e){try{return await ie(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:e,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(K(n))return{data:null,error:n};throw n}}async _getOAuthClient(e){try{return await ie(this.fetch,"GET",`${this.url}/admin/oauth/clients/${e}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(K(n))return{data:null,error:n};throw n}}async _updateOAuthClient(e,n){try{return await ie(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${e}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(K(r))return{data:null,error:r};throw r}}async _deleteOAuthClient(e){try{return await ie(this.fetch,"DELET
276E",`${this.url}/admin/oauth/clients/${e}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(K(n))return{data:null,error:n};throw n}}async _regenerateOAuthClientSecret(e){try{return await ie(this.fetch,"POST",`${this.url}/admin/oauth/clients/${e}/regenerate_secret`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(K(n))return{data:null,error:n};throw n}}async _listCustomProviders(e){try{const n={};return e!=null&&e.type&&(n.type=e.type),await ie(this.fetch,"GET",`${this.url}/admin/custom-providers`,{headers:this.headers,query:n,xform:r=>{var i;return{data:{providers:(i=r==null?void 0:r.providers)!==null&&i!==void 0?i:[]},error:null}}})}catch(n){if(K(n))return{data:{providers:[]},error:n};throw n}}async _createCustomProvider(e){try{return await ie(this.fetch,"POST",`${this.url}/admin/custom-providers`,{body:e,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(K(n))return{data:null,error:n};throw n}}async _getCustomProvider(e){try{return await ie(this.fetch,"GET",`${this.url}/admin/custom-providers/${e}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(K(n))return{data:null,error:n};throw n}}async _updateCustomProvider(e,n){try{return await ie(this.fetch,"PUT",`${this.url}/admin/custom-providers/${e}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(K(r))return{data:null,error:r};throw r}}async _deleteCustomProvider(e){try{return await ie(this.fetch,"DELETE",`${this.url}/admin/custom-providers/${e}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(K(n))return{data:null,error:n};throw n}}async _adminListPasskeys(e){Vn(this.experimental),Gr(e.userId);try{return await ie(this.fetch,"GET",`${this.url}/admin/users/${e.userId}/passkeys`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(K(n))return{data:null,error:n};throw n}}async _adminDeletePasskey(e){Vn(this.experimental),Gr(e.userId),Gr(e.passkeyId);try{return await ie(this.fetch,"DELETE",`${this.url}/admin/users/${e.userId}/passkeys/${e.passkeyId}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(K(n))return{data:null,error:n};throw n}}}function Yx(t={}){return{getItem:e=>t[e]||null,setItem:(e,n)=>{t[e]=n},removeItem:e=>{delete t[e]}}}globalThis&&EE()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug");class iU extends Error{constructor(e){super(e),this.isAcquireTimeout=!0}}function sU(){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 RE(t){if(!/^0x[a-fA-F0-9]{40}$/.test(t))throw new Error(`@supabase/auth-js: Address "${t}" is invalid.`);return t.toLowerCase()}function oU(t){return parseInt(t,16)}function aU(t){const e=new TextEncoder().encode(t);return"0x"+Array.from(e,r=>r.toString(16).padStart(2,"0")).join("")}function lU(t){var e;const{chainId:n,domain:r,expirationTime:i,issuedAt:s=new Date,nonce:a,notBefore:l,requestId:c,resources:d,scheme:f,uri:p,version:g}=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(a&&a.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${a}`);if(!p)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(g!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${g}`);if(!((e=t.statement)===null||e===void 0)&&e.includes(`
277`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${t.statement}`)}const y=RE(t.address),b=f?`${f}://${r}`:r,_=t.statement?`${t.statement}
278`:"",T=`${b} wants you to sign in with your Ethereum account:
279${y}
280
281${_}`;let x=`URI: ${p}
282Version: ${g}
283Chain ID: ${n}${a?`
284Nonce: ${a}`:""}
285Issued At: ${s.toISOString()}`;if(i&&(x+=`
286Expiration Time: ${i.toISOString()}`),l&&(x+=`
287Not Before: ${l.toISOString()}
287`),c&&(x+=`
288Request ID: ${c}`),d){let S=`
289Resources:`;for(const k of d){if(!k||typeof k!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${k}`);S+=`
290- ${k}`}x+=S}return`${T}
291${x}`}class dt extends Error{constructor({message:e,code:n,cause:r,name:i}){var s;super(e,{cause:r}),this.__isWebAuthnError=!0,this.name=(s=i??(r instanceof Error?r.name:void 0))!==null&&s!==void 0?s:"Unknown Error",this.code=n}toJSON(){return{name:this.name,message:this.message,code:this.code}}}class mh extends dt{constructor(e,n){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:n,message:e}),this.name="WebAuthnUnknownError",this.originalError=n}}function uU({error:t,options:e}){var n,r,i;const{publicKey:s}=e;if(!s)throw Error("options was missing required publicKey property");if(t.name==="AbortError"){if(e.signal instanceof AbortSignal)return new dt({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else if(t.name==="ConstraintError"){if(((n=s.authenticatorSelection)===null||n===void 0?void 0:n.requireResidentKey)===!0)return new dt({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=s.authenticatorSelection)===null||r===void 0?void 0:r.userVerification)==="required")return new dt({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:t});if(((i=s.authenticatorSelection)===null||i===void 0?void 0:i.userVerification)==="required")return new dt({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 dt({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:t});if(t.name==="NotAllowedError")return new dt({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if(t.name==="NotSupportedError")return s.pubKeyCredParams.filter(l=>l.type==="public-key").length===0?new dt({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:t}):new dt({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 a=window.location.hostname;if(LE(a)){if(s.rp.id!==a)return new dt({message:`The RP ID "${s.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new dt({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t})}else if(t.name==="TypeError"){if(s.user.id.byteLength<1||s.user.id.byteLength>64)return new dt({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 dt({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 dt({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t})}function cU({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 dt({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else{if(t.name==="NotAllowedError")return new dt({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if(t.name==="SecurityError"){const r=window.location.hostname;if(LE(r)){if(n.rpId!==r)return new dt({message:`The RP ID "${n.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new dt({message:`${window.location.hostname}
291 is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t})}else if(t.name==="UnknownError")return new dt({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 dt({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t})}class dU{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 Kg=new dU;function Xx(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,i=ef(t,["challenge","user","excludeCredentials"]),s=ia(e).buffer,a=Object.assign(Object.assign({},n),{id:ia(n.id).buffer}),l=Object.assign(Object.assign({},i),{challenge:s,user:a});if(r&&r.length>0){l.excludeCredentials=new Array(r.length);for(let c=0;c<r.length;c++){const d=r[c];l.excludeCredentials[c]=Object.assign(Object.assign({},d),{id:ia(d.id).buffer,type:d.type||"public-key",transports:d.transports})}}return l}function Qx(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=ef(t,["challenge","allowCredentials"]),i=ia(e).buffer,s=Object.assign(Object.assign({},r),{challenge:i});if(n&&n.length>0){s.allowCredentials=new Array(n.length);for(let a=0;a<n.length;a++){const l=n[a];s.allowCredentials[a]=Object.assign(Object.assign({},l),{id:ia(l.id).buffer,type:l.type||"public-key",transports:l.transports})}}return s}function ek(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:Is(new Uint8Array(t.response.attestationObject)),clientDataJSON:Is(new Uint8Array(t.response.clientDataJSON))},type:"public-key",clientExtensionResults:t.getClientExtensionResults(),authenticatorAttachment:(e=n.authenticatorAttachment)!==null&&e!==void 0?e:void 0}}function tk(t){var e;if("toJSON"in t&&typeof t.toJSON=="function")return t.toJSON();const n=t,r=t.getClientExtensionResults(),i=t.response;return{id:t.id,rawId:t.id,response:{authenticatorData:Is(new Uint8Array(i.authenticatorData)),clientDataJSON:Is(new Uint8Array(i.clientDataJSON)),signature:Is(new Uint8Array(i.signature)),userHandle:i.userHandle?Is(new Uint8Array(i.userHandle)):void 0},type:"public-key",clientExtensionResults:r,authenticatorAttachment:(e=n.authenticatorAttachment)!==null&&e!==void 0?e:void 0}}function LE(t){return t==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(t)}function gh(){var t,e;return!!(Lt()&&"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 OE(t){try{const e=await navigator.credentials.create(t);return e?e instanceof PublicKeyCredential?{data:e,error:null}:{data:null,error:new mh("Browser returned unexpected credential type",e)}:{data:null,error:new mh("Empty credential response",e)}}catch(e){return{data:null,error:uU({error:e,options:t})}}}async function ME(t){try{const e=await navigator.credentials.get(t);return e?e instanceof PublicKeyCredential?{data:e,error:null}:{data:null,error:new mh("Browser returned unexpected credential type",e)}:{data:null,error:new mh("Empty credential response",e)}}catch(e){return{data:null,error:cU({error:e,options:t})}}}const hU={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},fU={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function yh(...t){const e=i=>i!==null&&typeof i=="object"&&!Array.isArray(i),n=i=>i instanceof ArrayBuffer||ArrayBuffer.isView(i),r={};for(const i of t)if(i)for(const s in i){const a=i[s];if(a!==void 0)if(Array.isArray(a))r[s]=a;else if(n(a))r[s]=a;else if(e(a)){const l=r[s];
291e(l)?r[s]=yh(l,a):r[s]=yh(a)}else r[s]=a}return r}function pU(t,e){return yh(hU,t,e||{})}function mU(t,e){return yh(fU,t,e||{})}class gU{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:i},s){var a;try{const{data:l,error:c}=await this.client.mfa.challenge({factorId:e,webauthn:n});if(!l)return{data:null,error:c};const d=i??Kg.createNewAbortSignal();if(l.webauthn.type==="create"){const{user:f}=l.webauthn.credential_options.publicKey;if(!f.name){const p=r;if(p)f.name=`${f.id}:${p}`;else{const y=(await this.client.getUser()).data.user,b=((a=y==null?void 0:y.user_metadata)===null||a===void 0?void 0:a.name)||(y==null?void 0:y.email)||(y==null?void 0:y.id)||"User";f.name=`${f.id}:${b}`}}f.displayName||(f.displayName=f.name)}switch(l.webauthn.type){case"create":{const f=pU(l.webauthn.credential_options.publicKey,s==null?void 0:s.create),{data:p,error:g}=await OE({publicKey:f,signal:d});return p?{data:{factorId:e,challengeId:l.id,webauthn:{type:l.webauthn.type,credential_response:p}},error:null}:{data:null,error:g}}case"request":{const f=mU(l.webauthn.credential_options.publicKey,s==null?void 0:s.request),{data:p,error:g}=await ME(Object.assign(Object.assign({},l.webauthn.credential_options),{publicKey:f,signal:d}));return p?{data:{factorId:e,challengeId:l.id,webauthn:{type:l.webauthn.type,credential_response:p}},error:null}:{data:null,error:g}}}}catch(l){return K(l)?{data:null,error:l}:{data:null,error:new Yn("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:i}={}},s){if(!n)return{data:null,error:new Cu("rpId is required for WebAuthn authentication")};try{if(!gh())return{data:null,error:new Yn("Browser does not support WebAuthn",null)};const{data:a,error:l}=await this.challenge({factorId:e,webauthn:{rpId:n,rpOrigins:r},signal:i},{request:s});if(!a)return{data:null,error:l};const{webauthn:c}=a;return this._verify({factorId:e,challengeId:a.challengeId,webauthn:{type:c.type,rpId:n,rpOrigins:r,credential_response:c.credential_response}})}catch(a){return K(a)?{data:null,error:a}:{data:null,error:new Yn("Unexpected error in authenticate",a)}}}async _register({friendlyName:e,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:i}={}},s){if(!n)return{data:null,error:new Cu("rpId is required for WebAuthn registration")};try{if(!gh())return{data:null,error:new Yn("Browser does not support WebAuthn",null)};const{data:a,error:l}=await this._enroll({friendlyName:e});if(!a)return await this.client.mfa.listFactors().then(f=>{var p;return(p=f.data)===null||p===void 0?void 0:p.all.find(g=>g.factor_type==="webauthn"&&g.friendly_name===e&&g.status!=="unverified")}).then(f=>f?this.client.mfa.unenroll({factorId:f==null?void 0:f.id}):void 0),{data:null,error:l};const{data:c,error:d}=await this._challenge({factorId:a.id,friendlyName:a.friendly_name,webauthn:{rpId:n,rpOrigins:r},signal:i},{create:s});return c?this._verify({factorId:a.id,challengeId:c.challengeId,webauthn:{rpId:n,rpOrigins:r,type:c.webauthn.type,credential_response:c.webauthn.credential_response}}):{data:null,error:d}}catch(a){return K(a)?{data:null,error:a}:{data:null,error:new Yn("Unexpected error in register",a)}}}}sU();const yU={url:_$,storageKey:b$,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:x$,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:5e3,skipAutoInitialize:!1,experimental:{}},ko={};class Eu{get jwks(){var e,n;return(n=(e=ko[this.storageKey])===null||e===void 0?void 0:e.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(e){ko[this.storageKey]=Object.assign(Object.assign({},ko[this.storageKey]),{jwks:e})}get jwks_cached_at(){var e,n;return(n=(e=ko[this.storageKey])===null||e===void 0?void 0:e.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(e){ko[this.storageKey]=Object.assign(Object.assign({},ko[this.storageKey]),{cachedAt:e})}constructor(e){var n,r,i;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this._sessionRemovalEpoch=0,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lock=null,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const s=Object.assign(Object.assign({},yU),e);if(this.storageKey=s.storageKey,this.instanceID=(n=Eu.nextInstanceID[this.storageKey])!==null&&n!==void 0?n:0,Eu.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!s.debug,typeof s.debug=="function"&&(this.logger=s.debug),this.instanceID>0&&Lt()){const a=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(a),this.logDebugMessages&&console.trace(a)}if(this.persistSession=s.persistSession,this.autoRefreshToken=s.autoRefreshToken,this.experimental=(r=s.experimental)!==null&&r!==void 0?r:{},this.admin=new rU({url:s.url,headers:s.headers,fetch:s.fetch,experimental:this.experimental}),this.url=s.url,this.headers=s.headers,this.fetch=AE(s.fetch),this.detectSessionInUrl=s.detectSessionInUrl,this.flowType=s.flowType,this.hasCustomAuthorizationHeader=s.hasCustomAuthorizationHeader,this.throwOnError=s.throwOnError,this.lockAcquireTimeout=s.lockAcquireTimeout,s.lock!=null&&(this.lock=s.lock),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 gU(this)}
291,this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.passkey={startRegistration:this._startPasskeyRegistration.bind(this),verifyRegistration:this._verifyPasskeyRegistration.bind(this),startAuthentication:this._startPasskeyAuthentication.bind(this),verifyAuthentication:this._verifyPasskeyAuthentication.bind(this),list:this._listPasskeys.bind(this),update:this._updatePasskey.bind(this),delete:this._deletePasskey.bind(this)},this.persistSession?(s.storage?this.storage=s.storage:EE()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=Yx(this.memoryStorage)),s.userStorage&&(this.userStorage=s.userStorage)):(this.memoryStorage={},this.storage=Yx(this.memoryStorage)),Lt()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(a){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",a)}(i=this.broadcastChannel)===null||i===void 0||i.addEventListener("message",async a=>{this._debug("received broadcast notification from other tab or client",a);try{await this._notifyAllSubscribers(a.data.event,a.data.session,!1)}catch(l){this._debug("#broadcastChannel","error",l)}})}s.skipAutoInitialize||this.initialize().catch(a=>{this._debug("#initialize()","error",a)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(e){if(this.throwOnError&&e&&e.error)throw e.error;return e}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${TE}) ${new Date().toISOString()}`}_debug(...e){return this.logDebugMessages&&this.logger(this._logPrefix(),...e),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()):await this._initialize())(),await this.initializePromise)}async _initialize(){var e;try{let n={},r="none";if(Lt()&&(n=D$(window.location.href),this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce")),Lt()&&this.detectSessionInUrl&&r!=="none"){const{data:i,error:s}=await this._getSessionFromURL(n,r);if(s){if(this._debug("#_initialize()","error detecting session from URL",s),C$(s)){const c=(e=s.details)===null||e===void 0?void 0:e.code;if(c==="identity_already_exists"||c==="identity_not_found"||c==="single_identity_not_deletable")return{error:s}}return{error:s}}const{session:a,redirectType:l}=i;return this._debug("#_initialize()","detected session in URL",a,"redirect type",l),await this._saveSession(a),setTimeout(async()=>{l==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",a):await this._notifyAllSubscribers("SIGNED_IN",a)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return K(n)?this._returnResult({error:n}):this._returnResult({error:new Yn("Unexpected error during initialization",n)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(e){var n,r,i;try{const s=await ie(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:(i=e==null?void 0:e.options)===null||i===void 0?void 0:i.captchaToken}},xform:xn}),{data:a,error:l}=s;if(l||!a)return this._returnResult({data:{user:null,session:null},error:l});const c=a.session,d=a.user;return a.session&&(await this._saveSession(a.session),await this._notifyAllSubscribers("SIGNED_IN",c)),this._returnResult({data:{user:d,session:c},error:null})}catch(s){if(K(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signUp(e){var n,r,i;try{let s;if("email"in e){const{email:f,password:p,options:g}=e;let y=null,b=null;this.flowType==="pkce"&&([y,b]=await Ps(this.storage,this.storageKey)),s=await ie(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:g==null?void 0:g.emailRedirectTo,body:{email:f,password:p,data:(n=g==null?void 0:g.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:g==null?void 0:g.captchaToken},code_challenge:y,code_challenge_method:b},xform:xn})}else if("phone"in e){const{phone:f,password:p,options:g}=e;s=await ie(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:f,password:p,data:(r=g==null?void 0:g.data)!==null&&r!==void 0?r:{},channel:(i=g==null?void 0:g.channel)!==null&&i!==void 0?i:"sms",gotrue_meta_security:{captcha_token:g==null?void 0:g.captchaToken}},xform:xn})}else throw new Gc("You must provide either an email or phone number and a password");const{data:a,error:l}=s;if(l||!a)return await ot(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:l});const c=a.session,d=a.user;return a.session&&(await this._saveSession(a.session),await this._notifyAllSubscribers("SIGNED_IN",c)),this._returnResult({data:{user:d,session:c},error:null})}catch(s){if(await ot(this.storage,`${this.storageKey}-code-verifier`),K(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signInWithPassword(e){try{let n;if("email"in e){const{email:s,password:a,options:l}=e;n=await ie(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:s,password:a,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken}},xform:Kx})}else if("phone"in e){const{phone:s,password:a,options:l}=e;n=await ie(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:s,password:a,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken}},xform:Kx})}else throw new Gc("You must provide either an email or phone number and a password");const{data:r,error:i}=n;if(i)return this._returnResult({data:{user:null,session:null},error:i});if(!r||!r.session||!r.user){const s=new xo;return this._returnResult({data:{user:null,session:null},error:s})}return r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),this._returnResult({data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:i})}catch(n){if(K(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOAuth(e){var n,r,i,s;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:(i=e.options)===null||i===void 0?void 0:i.queryParams,skipBrowserRedirect:(s=e.options)===null||s===void 0?void 0:s.skipBrowserRedirect})}async exchangeCodeForSession(e){return await this.initializePromise,this.lock!=null?this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(e)):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,i,s,a,l,c,d,f,p,g;let y,b;if("message"in e)y=e.message,b=e.signature;else{const{chain:_,wallet:T,statement:x,options:S}=e;let k;if(Lt())if(typeof T=="object")k=T;else{const B=window;if("ethereum"in B&&typeof B.ethereum=="object"&&"request"in B.ethereum&&typeof B.ethereum.request=="function")k=B.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 T!="object"||!(S!=null&&S.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");k=T}const E=new URL((n=S==null?void 0:S.url)!==null&&n!==void 0?n:window.location.href),A=await k.request({method:"eth_requestAccounts"}).then(B=>B).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!A||A.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const O=RE(A[0]);let M=(r=S==null?void 0:S.signInWithEthereum)===null||r===void 0?void 0:r.chainId;if(!M){const B=await k.request({method:"eth_chainId"});M=oU(B)}const I={domain:E.host,address:O,statement:x,uri:E.href,version:"1",chainId:M,nonce:(i=S==null?void 0:S.signInWithEthereum)===null||i===void 0?void 0:i.nonce,issuedAt:(a=(s=S==null?void 0:S.signInWithEthereum)===null||s===void 0?void 0:s.issuedAt)!==null&&a!==void 0?a:new Date,expirationTime:(l=S==null?void 0:S.signInWithEthereum)===null||l===void 0?void 0:l.expirationTime,notBefore:(c=S==null?void 0:S.signInWithEthereum)===null||c===void 0?void 0:c.notBefore,requestId:(d=S==null?void 0:S.signInWithEthereum)===null||d===void 0?void 0:d.requestId,resources:(f=S==null?void 0:S.signInWithEthereum)===null||f===void 0?void 0:f.resources};y=lU(I),b=await k.request({method:"personal_sign",params:[aU(y),O]})}try{const{data:_,error:T}=await ie(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:y,signature:b},!((p=e.options)===null||p===void 0)&&p.captchaToken?{gotrue_meta_security:{captcha_token:(g=e.options)===null||g===void 0?void 0:g.captchaToken}}:null),xform:xn});if(T)throw T;if(!_||!_.session||!_.user){const x=new xo;return this._returnResult({data:{user:null,session:null},error:x})}return _.session&&(await this._saveSession(_.session),await this._notifyAllSubscribers("SIGNED_IN",_.session)),this._returnResult({data:Object.assign({},_),error:T})}catch(_){if(K(_))return this._returnResult({data:{user:null,session:null},error:_});throw _}}async signInWithSolana(e){var n,r,i,s,a,l,c,d,f,p,g,y;let b,_;if("message"in e)b=e.message,_=e.signature;else{const{chain:T,wallet:x,statement:S,options:k}=e;let E;if(Lt())if(typeof x=="object")E=x;else{const O=window;if("solana"in O&&typeof O.solana=="object"&&("signIn"in O.solana&&typeof O.solana.signIn=="function"||"signMessage"in O.solana&&typeof O.solana.signMessage=="function"))E=O.
291solana;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 x!="object"||!(k!=null&&k.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");E=x}const A=new URL((n=k==null?void 0:k.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in E&&E.signIn){const O=await E.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},k==null?void 0:k.signInWithSolana),{version:"1",domain:A.host,uri:A.href}),S?{statement:S}:null));let M;if(Array.isArray(O)&&O[0]&&typeof O[0]=="object")M=O[0];else if(O&&typeof O=="object"&&"signedMessage"in O&&"signature"in O)M=O;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in M&&"signature"in M&&(typeof M.signedMessage=="string"||M.signedMessage instanceof Uint8Array)&&M.signature instanceof Uint8Array)b=typeof M.signedMessage=="string"?M.signedMessage:new TextDecoder().decode(M.signedMessage),_=M.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in E)||typeof E.signMessage!="function"||!("publicKey"in E)||typeof E!="object"||!E.publicKey||!("toBase58"in E.publicKey)||typeof E.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");b=[`${A.host} wants you to sign in with your Solana account:`,E.publicKey.toBase58(),...S?["",S,""]:[""],"Version: 1",`URI: ${A.href}`,`Issued At: ${(i=(r=k==null?void 0:k.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&i!==void 0?i:new Date().toISOString()}`,...!((s=k==null?void 0:k.signInWithSolana)===null||s===void 0)&&s.notBefore?[`Not Before: ${k.signInWithSolana.notBefore}`]:[],...!((a=k==null?void 0:k.signInWithSolana)===null||a===void 0)&&a.expirationTime?[`Expiration Time: ${k.signInWithSolana.expirationTime}`]:[],...!((l=k==null?void 0:k.signInWithSolana)===null||l===void 0)&&l.chainId?[`Chain ID: ${k.signInWithSolana.chainId}`]:[],...!((c=k==null?void 0:k.signInWithSolana)===null||c===void 0)&&c.nonce?[`Nonce: ${k.signInWithSolana.nonce}`]:[],...!((d=k==null?void 0:k.signInWithSolana)===null||d===void 0)&&d.requestId?[`Request ID: ${k.signInWithSolana.requestId}`]:[],...!((p=(f=k==null?void 0:k.signInWithSolana)===null||f===void 0?void 0:f.resources)===null||p===void 0)&&p.length?["Resources",...k.signInWithSolana.resources.map(M=>`- ${M}`)]:[]].join(`
292`);const O=await E.signMessage(new TextEncoder().encode(b),"utf8");if(!O||!(O instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");_=O}}try{const{data:T,error:x}=await ie(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:b,signature:Is(_)},!((g=e.options)===null||g===void 0)&&g.captchaToken?{gotrue_meta_security:{captcha_token:(y=e.options)===null||y===void 0?void 0:y.captchaToken}}:null),xform:xn});if(x)throw x;if(!T||!T.session||!T.user){const S=new xo;return this._returnResult({data:{user:null,session:null},error:S})}
292return T.session&&(await this._saveSession(T.session),await this._notifyAllSubscribers("SIGNED_IN",T.session)),this._returnResult({data:Object.assign({},T),error:x})}catch(T){if(K(T))return this._returnResult({data:{user:null,session:null},error:T});throw T}}async _exchangeCodeForSession(e){const n=await qr(this.storage,`${this.storageKey}-code-verifier`),[r,i]=(n??"").split("/");try{if(!r&&this.flowType==="pkce")throw new E$;const{data:s,error:a}=await ie(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:e,code_verifier:r},xform:xn});if(await ot(this.storage,`${this.storageKey}-code-verifier`),a)throw a;if(!s||!s.session||!s.user){const l=new xo;return this._returnResult({data:{user:null,session:null,redirectType:null},error:l})}return s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers(i==="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",s.session)),this._returnResult({data:Object.assign(Object.assign({},s),{redirectType:i??null}),error:a})}catch(s){if(await ot(this.storage,`${this.storageKey}-code-verifier`),K(s))return this._returnResult({data:{user:null,session:null,redirectType:null},error:s});throw s}}async signInWithIdToken(e){try{const{options:n,provider:r,token:i,access_token:s,nonce:a}=e,l=await ie(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:i,access_token:s,nonce:a,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:xn}),{data:c,error:d}=l;if(d)return this._returnResult({data:{user:null,session:null},error:d});if(!c||!c.session||!c.user){const f=new xo;return this._returnResult({data:{user:null,session:null},error:f})}return c.session&&(await this._saveSession(c.session),await this._notifyAllSubscribers("SIGNED_IN",c.session)),this._returnResult({data:c,error:d})}catch(n){if(K(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOtp(e){var n,r,i,s,a;try{if("email"in e){const{email:l,options:c}=e;let d=null,f=null;this.flowType==="pkce"&&([d,f]=await Ps(this.storage,this.storageKey));const{error:p}=await ie(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:l,data:(n=c==null?void 0:c.data)!==null&&n!==void 0?n:{},create_user:(r=c==null?void 0:c.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:c==null?void 0:c.captchaToken},code_challenge:d,code_challenge_method:f},redirectTo:c==null?void 0:c.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:p})}if("phone"in e){const{phone:l,options:c}=e,{data:d,error:f}=await ie(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:l,data:(i=c==null?void 0:c.data)!==null&&i!==void 0?i:{},create_user:(s=c==null?void 0:c.shouldCreateUser)!==null&&s!==void 0?s:!0,gotrue_meta_security:{captcha_token:c==null?void 0:c.captchaToken},channel:(a=c==null?void 0:c.channel)!==null&&a!==void 0?a:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:d==null?void 0:d.message_id},error:f})}throw new Gc("You must provide either an email or phone number.")}catch(l){if(await ot(this.storage,`${this.storageKey}-code-verifier`),K(l))return this._returnResult({data:{user:null,session:null},error:l});throw l}}async verifyOtp(e){var n,r;try{let i,s;"options"in e&&(i=(n=e.options)===null||n===void 0?void 0:n.redirectTo,s=(r=e.options)===null||r===void 0?void 0:r.captchaToken);const{data:a,error:l}=await ie(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},e),{gotrue_meta_security:{captcha_token:s}}),redirectTo:i,xform:xn});if(l)throw l;if(!a)throw new Error("An error occurred on token verification.");const c=a.session,d=a.user;return c!=null&&c.access_token&&(await this._saveSession(c),await this._notifyAllSubscribers(e.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",c)),this._returnResult({data:{user:d,session:c},error:null})}catch(i){if(K(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithSSO(e){var n,r,i,s,a;try{let l=null,c=null;this.flowType==="pkce"&&([l,c]=await Ps(this.storage,this.storageKey));const d=await ie(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}),!((i=e==null?void 0:e.options)===null||i===void 0)&&i.captchaToken?{gotrue_meta_security:{captcha_token:e.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:l,code_challenge_method:c}),headers:this.headers,xform:eU});return!((s=d.data)===null||s===void 0)&&s.url&&Lt()&&!(!((a=e.options)===null||a===void 0)&&a.skipBrowserRedirect)&&window.location.assign(d.data.url),this._returnResult(d)}catch(l){if(await ot(this.storage,`${this.storageKey}-code-verifier`),K(l))return this._returnResult({data:null,error:l});throw l}}async reauthenticate(){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate()):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 wt;const{error:i}=await ie(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return this._returnResult({data:{user:null,session:null},error:i})})}catch(e){if(K(e))return this._returnResult({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:i,options:s}=e;let a=null,l=null;this.flowType==="pkce"&&([a,l]=await Ps(this.storage,this.storageKey));const{error:c}=await ie(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:i,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken},code_challenge:a,code_challenge_method:l},redirectTo:s==null?void 0:s.emailRedirectTo});return c&&await ot(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:c})}else if("phone"in e){const{phone:r,type:i,options:s}=e,{data:a,error:l}=await ie(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:i,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:a==null?void 0:a.message_id},error:l})}throw new Gc("You must provide either an email or phone number and a type")}catch(n){if(await ot(this.storage,`${this.storageKey}-code-verifier`),K(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async getSession(){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async e=>e)):await this._useSession(async e=>e)}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(),i=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await i}catch{}})()),i}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 i=[...this.pendingInLock];await Promise.all(i),this.pendingInLock.splice(0,i.length)}return await r}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(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.lock!=null&&!this.lockAcquired&&this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let e=null;const n=await qr(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 val
292id"),await this._removeSession())),!e)return{data:{session:null},error:null};const r=e.expires_at?e.expires_at*1e3-Date.now()<zp:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",e.expires_at),!r){if(this.userStorage){const a=await qr(this.userStorage,this.storageKey+"-user");a!=null&&a.user?e.user=a.user:e.user=$p()}if(this.storage.isServer&&e.user&&!e.user.__isUserNotAvailableProxy){const a={value:this.suppressGetSessionWarning};e.user=J$(e.user,a),a.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:e},error:null}}const{data:i,error:s}=await this._callRefreshToken(e.refresh_token);return s?this._returnResult({data:{session:null},error:s}):this._returnResult({data:{session:i},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(e){if(e)return await this._getUser(e);await this.initializePromise;let n;return this.lock!=null?n=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser()):n=await this._getUser(),n.data.user&&(this.suppressGetSessionWarning=!0),n}async _getUser(e){try{return e?await ie(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:e,xform:Ri}):await this._useSession(async n=>{var r,i,s;const{data:a,error:l}=n;if(l)throw l;return!(!((r=a.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new wt}:await ie(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(s=(i=a.session)===null||i===void 0?void 0:i.access_token)!==null&&s!==void 0?s:void 0,xform:Ri})})}catch(n){if(K(n))return qc(n)&&(await this._removeSession(),await ot(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:n});throw n}}async updateUser(e,n={}){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(e,n)):await this._updateUser(e,n)}async _updateUser(e,n={}){try{return await this._useSession(async r=>{const{data:i,error:s}=r;if(s)throw s;if(!i.session)throw new wt;const a=i.session;let l=null,c=null;this.flowType==="pkce"&&e.email!=null&&([l,c]=await Ps(this.storage,this.storageKey));const{data:d,error:f}=await ie(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n==null?void 0:n.emailRedirectTo,body:Object.assign(Object.assign({},e),{code_challenge:l,code_challenge_method:c}),jwt:a.access_token,xform:Ri});if(f)throw f;return a.user=d.user,await this._saveSession(a),await this._notifyAllSubscribers("USER_UPDATED",a),this._returnResult({data:{user:a.user},error:null})})}catch(r){if(await ot(this.storage,`${this.storageKey}-code-verifier`),K(r))return this._returnResult({data:{user:null},error:r});throw r}}async setSession(e){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(e)):await this._setSession(e)}async _setSession(e){try{if(!e.access_token||!e.refresh_token)throw new wt;const n=Date.now()/1e3;let r=n,i=!0,s=null;const{payload:a}=Kc(e.access_token);if(a.exp&&(r=a.exp,i=r<=n),i){const{data:l,error:c}=await this._callRefreshToken(e.refresh_token);if(c)return this._returnResult({data:{user:null,session:null},error:c});if(!l)return{data:{user:null,session:null},error:null};s=l}else{const{data:l,error:c}=await this._getUser(e.access_token);if(c)return this._returnResult({data:{user:null,session:null},error:c});s={access_token:e.access_token,refresh_token:e.refresh_token,user:l.user,token_type:"bearer",expires_in:r-n,expires_at:r},await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)}return this._returnResult({data:{user:s.user,session:s},error:null})}catch(n){if(K(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}}async refreshSession(e){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(e)):await this._refreshSession(e)}async _refreshSession(e){try{return await this._useSession(async n=>{var r;if(!e){const{data:a,error:l}=n;if(l)throw l;e=(r=a.session)!==null&&r!==void 0?r:void 0}if(!(e!=null&&e.refresh_token))throw new wt;const{data:i,error:s}=await this._callRefreshToken(e.refresh_token);return s?this._returnResult({data:{user:null,session:null},error:s}):i?this._returnResult({data:{user:i.user,session:i},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(n){if(K(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async _getSessionFromURL(e,n){var r;try{if(!Lt())throw new Zc("No browser detected.");
292if(e.error||e.error_description||e.error_code)throw new Zc(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 $x("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Zc("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 $x("No code detected.");const{data:k,error:E}=await this._exchangeCodeForSession(e.code);if(E)throw E;const A=new URL(window.location.href);return A.searchParams.delete("code"),window.history.replaceState(window.history.state,"",A.toString()),{data:{session:k.session,redirectType:(r=k.redirectType)!==null&&r!==void 0?r:null},error:null}}const{provider_token:i,provider_refresh_token:s,access_token:a,refresh_token:l,expires_in:c,expires_at:d,token_type:f}=e;if(!a||!c||!l||!f)throw new Zc("No session defined in URL");const p=Math.round(Date.now()/1e3),g=parseInt(c);let y=p+g;d&&(y=parseInt(d));const b=y-p;b*1e3<=ki&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${b}s, should have been closer to ${g}s`);const _=y-g;p-_>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",_,y,p):p-_<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",_,y,p);const{data:T,error:x}=await this._getUser(a);if(x)throw x;const S={provider_token:i,provider_refresh_token:s,access_token:a,expires_in:g,expires_at:y,refresh_token:l,token_type:f,user:T.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:S,redirectType:e.type},error:null})}catch(i){if(K(i))return this._returnResult({data:{session:null,redirectType:null},error:i});throw i}}_isImplicitGrantCallback(e){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),e):!!(e.access_token||e.error||e.error_description||e.error_code)}async _isPKCECallback(e){const n=await qr(this.storage,`${this.storageKey}-code-verifier`);return!!(e.code&&n)}async signOut(e={scope:"global"}){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(e)):await this._signOut(e)}async _signOut({scope:e}={scope:"global"}){return await this._useSession(async n=>{var r;const{data:i,error:s}=n;if(s&&!qc(s))return this._returnResult({error:s});const a=(r=i.session)===null||r===void 0?void 0:r.access_token;if(a){const{error:l}=await this.admin.signOut(a,e);if(l&&!(P$(l)&&(l.status===404||l.status===401||l.status===403)||qc(l)))return this._returnResult({error:l})}return e!=="others"&&(await this._removeSession(),await ot(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(e){const n=I$(),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,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(n)}):await this._emitInitialSession(n)))(),{data:{subscription:r}}}async _emitInitialSession(e){return await this._useSession(async n=>{var r,i;try{const{data:{session:s},error:a}=n;if(a)throw a;await((r=this.stateChangeEmitters.get(e))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",s)),this._debug("INITIAL_SESSION","callback id",e,"session",s)}catch(s){await((i=this.stateChangeEmitters.get(e))===null||i===void 0?void 0:i.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",e,"error",s),qc(s)?console.warn(s):console.error(s)}})}async resetPasswordForEmail(e,n={}){let r=null,i=null;this.flowType==="pkce"&&([r,i]=await Ps(this.storage,this.storageKey,!0));try{return await ie(this.fetch,"POST",`${this.url}/recover`,{body:{email:e,code_challenge:r,code_challenge_method:i,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(s){if(await ot(this.storage,`${this.storageKey}-code-verifier`),K(s))return this._returnResult({data:null,error:s});throw s}}async getUserIdentities(){var e;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return this._returnResult({data:{identities:(e=n.user.identities)!==null&&e!==void 0?e:[]},error:null})}catch(n){if(K(n))return this._returnResult({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:i}=await this._useSession(async s=>{var a,l,c,d,f;const{data:p,error:g}=s;if(g)throw g;const y=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,e.provider,{redirectTo:(a=e.options)===null||a===void 0?void 0:a.redirectTo,scopes:(l=e.options)===null||l===void 0?void 0:l.scopes,queryParams:(c=e.options)===null||c===void 0?void 0:c.queryParams,skipBrowserRedirect:!0});return await ie(this.fetch,"GET",y,{headers:this.headers,jwt:(f=(d=p.session)===null||d===void 0?void 0:d.access_token)!==null&&f!==void 0?f:void 0})});if(i)throw i;return Lt()&&!(!((n=e.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r==null?void 0:r.url),this._returnResult({data:{provider:e.provider,url:r==null?void 0:r.url},error:null})}catch(r){if(K(r))return this._returnResult({data:{provider:e.provider,url:null},error:r});throw r}}async linkIdentityIdToken(e){return await this._useSession(async n=>{var r;try{const{error:i,data:{session:s}}=n;
292if(i)throw i;const{options:a,provider:l,token:c,access_token:d,nonce:f}=e,p=await ie(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(r=s==null?void 0:s.access_token)!==null&&r!==void 0?r:void 0,body:{provider:l,id_token:c,access_token:d,nonce:f,link_identity:!0,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:xn}),{data:g,error:y}=p;return y?this._returnResult({data:{user:null,session:null},error:y}):!g||!g.session||!g.user?this._returnResult({data:{user:null,session:null},error:new xo}):(g.session&&(await this._saveSession(g.session),await this._notifyAllSubscribers("USER_UPDATED",g.session)),this._returnResult({data:g,error:y}))}catch(i){if(await ot(this.storage,`${this.storageKey}-code-verifier`),K(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}})}async unlinkIdentity(e){try{return await this._useSession(async n=>{var r,i;const{data:s,error:a}=n;if(a)throw a;return await ie(this.fetch,"DELETE",`${this.url}/user/identities/${e.identity_id}`,{headers:this.headers,jwt:(i=(r=s.session)===null||r===void 0?void 0:r.access_token)!==null&&i!==void 0?i:void 0})})}catch(n){if(K(n))return this._returnResult({data:null,error:n});throw n}}async _refreshAccessToken(e){const n="#_refreshAccessToken()";this._debug(n,"begin");try{const r=Date.now();return await F$(async i=>(i>0&&await z$(200*Math.pow(2,i-1)),this._debug(n,"refreshing attempt",i),await ie(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:e},headers:this.headers,xform:xn})),(i,s)=>{const a=200*Math.pow(2,i);return s&&Fp(s)&&Date.now()+a-r<ki})}catch(r){if(this._debug(n,"error",r),K(r))return this._returnResult({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),Lt()&&!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 i=await qr(this.storage,this.storageKey);if(i&&this.userStorage){let a=await qr(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!a&&(a={user:i.user},await Eo(this.userStorage,this.storageKey+"-user",a)),i.user=(e=a==null?void 0:a.user)!==null&&e!==void 0?e:$p()}else if(i&&!i.user&&!i.user){const a=await qr(this.storage,this.storageKey+"-user");a&&(a!=null&&a.user)?(i.user=a.user,await ot(this.storage,this.storageKey+"-user"),await Eo(this.storage,this.storageKey,i)):i.user=$p()}if(this._debug(r,"session from storage",i),!this._isValidSession(i)){this._debug(r,"session is not valid"),i!==null&&await this._removeSession();return}const s=((n=i.expires_at)!==null&&n!==void 0?n:1/0)*1e3-Date.now()<zp;if(this._debug(r,`session has${s?"":" not"} expired with margin of ${zp}s`),s){if(this.autoRefreshToken&&i.refresh_token){const{error:a}=await this._callRefreshToken(i.refresh_token);a&&(A$(a)?this._debug(r,"refresh discarded by commit guard",a):(this._debug(r,"refresh failed",a),Fp(a)||(this._debug(r,"refresh failed with a non-retryable error, removing the session",a),await this._removeSession())))}}else if(i.user&&i.user.__isUserNotAvailableProxy===!0)try{const{data:a,error:l}=await this._getUser(i.access_token);!l&&(a!=null&&a.user)?(i.user=a.user,await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)):this._debug(r,"could not get user data, skipping SIGNED_IN notification")}catch(a){console.error("Error getting user data:",a),this._debug(r,"error getting user data, skipping SIGNED_IN notification",a)}else await this._notifyAllSubscribers("SIGNED_IN",i)}catch(i){this._debug(r,"error",i),console.error(i);return}finally{this._debug(r,"end")}}async _callRefreshToken(e){var n,r;if(!e)throw new wt;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const i="#_callRefreshToken()";this._debug(i,"begin");try{this.refreshingDeferred=new tf;const s=await qr(this.storage,this.storageKey),{data:a,error:l}=await this._refreshAccessToken(e);if(l)throw l;if(!a.session)throw new wt;const c=await qr(this.storage,this.storageKey);if(s!==null&&(c===null||c.refresh_token!==s.refresh_token)){this._debug(i,"commit guard: storage changed since refresh started, discarding rotated tokens",{startedWith:"present",nowHolds:c?"replaced":"cleared"});const g={data:null,error:new Ux};return this.refreshingDeferred.resolve(g),g}const f=this._sessionRemovalEpoch;if(await this._saveSession(a.session),this._sessionRemovalEpoch!==f){this._debug(i,"commit guard (post-save): _removeSession ran during _saveSession, und
292oing write"),await ot(this.storage,this.storageKey),this.userStorage&&await ot(this.userStorage,this.storageKey+"-user");const g={data:null,error:new Ux};return this.refreshingDeferred.resolve(g),g}await this._notifyAllSubscribers("TOKEN_REFRESHED",a.session);const p={data:a.session,error:null};return this.refreshingDeferred.resolve(p),p}catch(s){if(this._debug(i,"error",s),K(s)){const a={data:null,error:s};return Fp(s)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(a),a}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(s),s}finally{this.refreshingDeferred=null,this._debug(i,"end")}}async _notifyAllSubscribers(e,n,r=!0){const i=`#_notifyAllSubscribers(${e})`;this._debug(i,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:e,session:n});const s=[],a=Array.from(this.stateChangeEmitters.values()).map(async l=>{try{await l.callback(e,n)}catch(c){s.push(c)}});if(await Promise.all(a),s.length>0){for(let l=0;l<s.length;l+=1)console.error(s[l]);throw s[0]}}finally{this._debug(i,"end")}}async _saveSession(e){this._debug("#_saveSession()",e),this.suppressGetSessionWarning=!0,await ot(this.storage,`${this.storageKey}-code-verifier`);const n=Object.assign({},e),r=n.user&&n.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!r&&n.user&&await Eo(this.userStorage,this.storageKey+"-user",{user:n.user});const i=Object.assign({},n);delete i.user;const s=Gx(i);await Eo(this.storage,this.storageKey,s)}else{const i=Gx(n);await Eo(this.storage,this.storageKey,i)}}async _removeSession(){this._sessionRemovalEpoch+=1,this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await ot(this.storage,this.storageKey),await ot(this.storage,this.storageKey+"-code-verifier"),await ot(this.storage,this.storageKey+"-user"),this.userStorage&&await ot(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const e=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{e&&Lt()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",e)}catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const e=setInterval(()=>this._autoRefreshTokenTick(),ki);this.autoRefreshTicker=e,e&&typeof e=="object"&&typeof e.unref=="function"?e.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(e);const n=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=n,n&&typeof n=="object"&&typeof n.unref=="function"?n.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(n)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const e=this.autoRefreshTicker;this.autoRefreshTicker=null,e&&clearInterval(e);const n=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,n&&clearTimeout(n)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async dispose(){var e;this._removeVisibilityChangedCallback(),await this._stopAutoRefresh(),(e=this.broadcastChannel)===null||e===void 0||e.close(),this.broadcastChannel=null,this.stateChangeEmitters.clear()}async _autoRefreshTokenTick(){if(this._debug("#_autoRefreshTokenTick()","begin"),this.lock!=null){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 i=Math.floor((r.expires_at*1e3-e)/ki);this._debug("#_autoRefreshTokenTick()",`access token expires in ${i} ticks, a tick lasts ${ki}ms, refresh threshold is ${Cl} ticks`),i<=Cl&&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 instanceof iU)this._debug("auto refresh token tick lock not available");else throw e}return}if(this.refreshingDeferred!==null){this._debug("#_autoRefreshTokenTick()","refresh already in flight, skipping");return}try{const e=Date.now();try{await this._useSession(async n=>{const{data:{session:r}}=n;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const i=Math.floor((r.expires_at*1e3-e)/ki);this._debug("#_autoRefreshTokenTick()",`access token expires in ${i} ticks, a tick lasts ${ki}ms, refresh threshold is ${Cl} ticks`),i<=Cl&&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")}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!Lt()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(e){this._debug("#visibilityChangedCallback","error",e)}},window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(e){console.error("_handleVisibilityChange",e)}}async _onVisibilityChanged(e){const n=`#_onVisibilityChanged(${e})`;if(this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"){if(this.autoRefreshToken&&this._startAutoRefresh(),!e)if(await this.initializePromise,this.lock!=null)await this._acquireLock(this.lockAcquireTimeout,async()=>
292{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()});else{if(document.visibilityState!=="visible"){this._debug(n,"visibilityState is no longer visible, skipping recovery");return}await this._recoverAndRefresh()}}else document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(e,n,r){const i=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&i.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&i.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[s,a]=await Ps(this.storage,this.storageKey),l=new URLSearchParams({code_challenge:`${encodeURIComponent(s)}`,code_challenge_method:`${encodeURIComponent(a)}`});i.push(l.toString())}if(r!=null&&r.queryParams){const s=new URLSearchParams(r.queryParams);i.push(s.toString())}return r!=null&&r.skipBrowserRedirect&&i.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${e}?${i.join("&")}`}async _unenroll(e){try{return await this._useSession(async n=>{var r;const{data:i,error:s}=n;return s?this._returnResult({data:null,error:s}):await ie(this.fetch,"DELETE",`${this.url}/factors/${e.factorId}`,{headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(K(n))return this._returnResult({data:null,error:n});throw n}}async _enroll(e){try{return await this._useSession(async n=>{var r,i;const{data:s,error:a}=n;if(a)return this._returnResult({data:null,error:a});const l=Object.assign({friendly_name:e.friendlyName,factor_type:e.factorType},e.factorType==="phone"?{phone:e.phone}:e.factorType==="totp"?{issuer:e.issuer}:{}),{data:c,error:d}=await ie(this.fetch,"POST",`${this.url}/factors`,{body:l,headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});return d?this._returnResult({data:null,error:d}):(e.factorType==="totp"&&c.type==="totp"&&(!((i=c==null?void 0:c.totp)===null||i===void 0)&&i.qr_code)&&(c.totp.qr_code=`data:image/svg+xml;utf-8,${c.totp.qr_code}`),this._returnResult({data:c,error:null}))})}catch(n){if(K(n))return this._returnResult({data:null,error:n});throw n}}async _verify(e){const n=async()=>{try{return await this._useSession(async r=>{var i;const{data:s,error:a}=r;if(a)return this._returnResult({data:null,error:a});const l=Object.assign({challenge_id:e.challengeId},"webauthn"in e?{webauthn:Object.assign(Object.assign({},e.webauthn),{credential_response:e.webauthn.type==="create"?ek(e.webauthn.credential_response):tk(e.webauthn.credential_response)})}:{code:e.code}),{data:c,error:d}=await ie(this.fetch,"POST",`${this.url}/factors/${e.factorId}/verify`,{body:l,headers:this.headers,jwt:(i=s==null?void 0:s.session)===null||i===void 0?void 0:i.access_token});return d?this._returnResult({data:null,error:d}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+c.expires_in},c)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",c),this._returnResult({data:c,error:d}))})}catch(r){if(K(r))return this._returnResult({data:null,error:r});throw r}};return this.lock!=null?this._acquireLock(this.lockAcquireTimeout,n):n()}async _challenge(e){const n=async()=>{try{return await this._useSession(async r=>{var i;const{data:s,error:a}=r;if(a)return this._returnResult({data:null,error:a});const l=await ie(this.fetch,"POST",`${this.url}/factors/${e.factorId}/challenge`,{body:e,headers:this.headers,jwt:(i=s==null?void 0:s.session)===null||i===void 0?void 0:i.access_token});if(l.error)return l;const{data:c}=l;if(c.type!=="webauthn")return{data:c,error:null};switch(c.webauthn.type){case"create":return{data:Object.assign(Object.assign({},c),{webauthn:Object.assign(Object.assign({},c.webauthn),{credential_options:Object.assign(Object.assign({},c.webauthn.credential_options),{publicKey:Xx(c.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},c),{webauthn:Object.assign(Object.assign({},c.webauthn),{credential_options:Object.assign(Object.assign({},c.webauthn.credential_options),{publicKey:Qx(c.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(r){if(K(r))return this._returnResult({data:null,error:r});throw r}};return this.lock!=null?this._acquireLock(this.lockAcquireTimeout,n):n()}async _challengeAndVerify(e){const{data:n,error:r}=await this._challenge({factorId:e.factorId});return r?this._returnResult({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 i={all:[],phone:[],totp:[],webauthn:[]};for(const s of(e=n==null?void 0:n.factors)!==null&&e!==void 0?e:[])i.all.push(s),s.status==="verified"&&i[s.factor_type].push(s);return{data:i,error:null}}async _getAuthenticatorAssuranceLevel(e){var n,r,i,s;if(e)try{const{payload:y}=Kc(e);let b=null;y.aal&&(b=y.aal);let _=b;const{data:{user:T},error:x}=await this.getUser(e);if(x)return this._returnResult({data:null,error:x});((r=(n=T==null?void 0:T.factors)===null||n===void 0?void 0:n.filter(E=>E.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(_="aal2");const k=y.amr||[];return{data:{currentLevel:b,nextLevel:_,currentAuthenticationMethods:k},error:null}}catch(y){if(K(y))return this._returnResult({data:null,error:y});throw y}const{data:{session:a},error:l}
292=await this.getSession();if(l)return this._returnResult({data:null,error:l});if(!a)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:c}=Kc(a.access_token);let d=null;c.aal&&(d=c.aal);let f=d;((s=(i=a.user.factors)===null||i===void 0?void 0:i.filter(y=>y.status==="verified"))!==null&&s!==void 0?s:[]).length>0&&(f="aal2");const g=c.amr||[];return{data:{currentLevel:d,nextLevel:f,currentAuthenticationMethods:g},error:null}}async _getAuthorizationDetails(e){try{return await this._useSession(async n=>{const{data:{session:r},error:i}=n;return i?this._returnResult({data:null,error:i}):r?await ie(this.fetch,"GET",`${this.url}/oauth/authorizations/${e}`,{headers:this.headers,jwt:r.access_token,xform:s=>({data:s,error:null})}):this._returnResult({data:null,error:new wt})})}catch(n){if(K(n))return this._returnResult({data:null,error:n});throw n}}async _approveAuthorization(e,n){try{return await this._useSession(async r=>{const{data:{session:i},error:s}=r;if(s)return this._returnResult({data:null,error:s});if(!i)return this._returnResult({data:null,error:new wt});const a=await ie(this.fetch,"POST",`${this.url}/oauth/authorizations/${e}/consent`,{headers:this.headers,jwt:i.access_token,body:{action:"approve"},xform:l=>({data:l,error:null})});return a.data&&a.data.redirect_url&&Lt()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(a.data.redirect_url),a})}catch(r){if(K(r))return this._returnResult({data:null,error:r});throw r}}async _denyAuthorization(e,n){try{return await this._useSession(async r=>{const{data:{session:i},error:s}=r;if(s)return this._returnResult({data:null,error:s});if(!i)return this._returnResult({data:null,error:new wt});const a=await ie(this.fetch,"POST",`${this.url}/oauth/authorizations/${e}/consent`,{headers:this.headers,jwt:i.access_token,body:{action:"deny"},xform:l=>({data:l,error:null})});return a.data&&a.data.redirect_url&&Lt()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(a.data.redirect_url),a})}catch(r){if(K(r))return this._returnResult({data:null,error:r});throw r}}async _listOAuthGrants(){try{return await this._useSession(async e=>{const{data:{session:n},error:r}=e;return r?this._returnResult({data:null,error:r}):n?await ie(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,xform:i=>({data:i,error:null})}):this._returnResult({data:null,error:new wt})})}catch(e){if(K(e))return this._returnResult({data:null,error:e});throw e}}async _revokeOAuthGrant(e){try{return await this._useSession(async n=>{const{data:{session:r},error:i}=n;return i?this._returnResult({data:null,error:i}):r?(await ie(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:r.access_token,query:{client_id:e.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new wt})})}catch(n){if(K(n))return this._returnResult({data:null,error:n});throw n}}async fetchJwk(e,n={keys:[]}){let r=n.keys.find(l=>l.kid===e);if(r)return r;const i=Date.now();if(r=this.jwks.keys.find(l=>l.kid===e),r&&this.jwks_cached_at+S$>i)return r;const{data:s,error:a}=await ie(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(a)throw a;return!s.keys||s.keys.length===0||(this.jwks=s,this.jwks_cached_at=i,r=s.keys.find(l=>l.kid===e),!r)?null:r}async getClaims(e,n={}){try{let r=e;if(!r){const{data:y,error:b}
292=await this.getSession();if(b||!y.session)return this._returnResult({data:null,error:b});r=y.session.access_token}const{header:i,payload:s,signature:a,raw:{header:l,payload:c}}=Kc(r);if(!(n!=null&&n.allowExpired))try{G$(s.exp)}catch(y){throw new fh(y instanceof Error?y.message:"JWT validation failed")}const d=!i.alg||i.alg.startsWith("HS")||!i.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(i.kid,n!=null&&n.keys?{keys:n.keys}:n==null?void 0:n.jwks);if(!d){const{error:y}=await this.getUser(r);if(y)throw y;return{data:{claims:s,header:i,signature:a},error:null}}const f=Z$(i.alg),p=await crypto.subtle.importKey("jwk",d,f,!0,["verify"]);if(!await crypto.subtle.verify(f,p,a,N$(`${l}.${c}`)))throw new fh("Invalid JWT signature");return{data:{claims:s,header:i,signature:a},error:null}}catch(r){if(K(r))return this._returnResult({data:null,error:r});throw r}}async signInWithPasskey(e){var n,r,i;Vn(this.experimental);try{if(!gh())return this._returnResult({data:null,error:new Yn("Browser does not support WebAuthn",null)});const{data:s,error:a}=await this._startPasskeyAuthentication({options:{captchaToken:(n=e==null?void 0:e.options)===null||n===void 0?void 0:n.captchaToken}});if(a||!s)return this._returnResult({data:null,error:a});const l=Qx(s.options),c=(i=(r=e==null?void 0:e.options)===null||r===void 0?void 0:r.signal)!==null&&i!==void 0?i:Kg.createNewAbortSignal(),{data:d,error:f}=await ME({publicKey:l,signal:c});if(f||!d)return this._returnResult({data:null,error:f??new Yn("WebAuthn ceremony failed",null)});const p=tk(d);return this._verifyPasskeyAuthentication({challengeId:s.challenge_id,credential:p})}catch(s){if(K(s))return this._returnResult({data:null,error:s});throw s}}async registerPasskey(e){var n,r;Vn(this.experimental);try{if(!gh())return this._returnResult({data:null,error:new Yn("Browser does not support WebAuthn",null)});const{data:i,error:s}=await this._startPasskeyRegistration();if(s||!i)return this._returnResult({data:null,error:s});const a=Xx(i.options),l=(r=(n=e==null?void 0:e.options)===null||n===void 0?void 0:n.signal)!==null&&r!==void 0?r:Kg.createNewAbortSignal(),{data:c,error:d}=await OE({publicKey:a,signal:l});if(d||!c)return this._returnResult({data:null,error:d??new Yn("WebAuthn ceremony failed",null)});const f=ek(c);return this._verifyPasskeyRegistration({challengeId:i.challenge_id,credential:f})}catch(i){if(K(i))return this._returnResult({data:null,error:i});throw i}}async _startPasskeyRegistration(){Vn(this.experimental);try{return await this._useSession(async e=>{const{data:{session:n},error:r}=e;if(r)return this._returnResult({data:null,error:r});if(!n)return this._returnResult({data:null,error:new wt});const{data:i,error:s}=await ie(this.fetch,"POST",`${this.url}/passkeys/registration/options`,{headers:this.headers,jwt:n.access_token,body:{}});return s?this._returnResult({data:null,error:s}):this._returnResult({data:i,error:null})})}catch(e){if(K(e))return this._returnResult({data:null,error:e});throw e}}async _verifyPasskeyRegistration(e){Vn(this.experimental);try{return await this._useSession(async n=>{const{data:{session:r},error:i}=n;if(i)return this._returnResult({data:null,error:i});if(!r)return this._returnResult({data:null,error:new wt});const{data:s,error:a}=await ie(this.fetch,"POST",`${this.url}/passkeys/registration/verify`,{headers:this.headers,jwt:r.access_token,body:{challenge_id:e.challengeId,credential:e.credential}});return a?this._returnResult({data:null,error:a}):this._returnResult({data:s,error:null})})}catch(n){if(K(n))return this._returnResult({data:null,error:n});throw n}}async _startPasskeyAuthentication(e){var n;Vn(this.experimental);try{const{data:r,error:i}=await ie(this.fetch,"POST",`${this.url}/passkeys/authentication/options`,{headers:this.headers,body:{gotrue_meta_security:{captcha_token:(n=e==null?void 0:e.options)===null||n===void 0?void 0:n.captchaToken}}});return i?this._returnResult({data:null,error:i}):this._returnResult({data:r,error:null})}catch(r){if(K(r))return this._returnResult({data:null,error:r});throw r}}async _verifyPasskeyAuthentication(e){Vn(this.experimental);try{const{data:n,error:r}=await ie(this.fetch,"POST",`${this.url}/passkeys/authentication/verify`,{headers:this.headers,body:{challenge_id:e.challengeId,credential:e.credential},xform:xn});return r?this._returnResult({data:null,error:r}):(n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",n.session)),this._returnResult({data:n,error:null}))}catch(n){if(K(n))return this._returnResult({data:null,error:n});throw n}}async _listPasskeys(){Vn(this.experimental);try{return await this._useSession(async e=>{const{data:{session:n},error:r}=e;if(r)return this._returnResult({data:null,error:r});if(!n)return this._returnResult({data:null,error:new wt});const{data:i,error:s}=await ie(this.fetch,"GET",`${this.url}/passkeys`,{headers:this.headers,jwt:n.access_token,xform:a=>({data:a,error:null})});return s?this._returnResult({data:null,error:s}):this._returnResult({data:i,error:null})})}catch(e){if(K(e))return this._returnResult({data:null,error:e});throw e}}async _updatePasskey(e){Vn(this.experimental);try{return await this._useSession(async n=>{const{data:{session:r},error:i}=n;if(i)return this._returnResult({data:null,error:i});if(!r)return this._returnResult({data:null,error:new wt});const{data:s,error:a}=await ie(this.fetch,"PATCH",`${this.url}/passkeys/${e.passkeyId}`,{headers:this.headers,jwt:r.access_token,body:{friendly_name:e.friendlyName}});return a?this._returnResult({data:null,error:a}):this._returnResult({data:s,error:null})})}catch(n){if(K(n))return this._returnResult({data:null,error:n});throw n}}async _deletePasskey(e){Vn(this.experimental);try{return await this._useSession(async n=>{const{data:{session:r},error:i}=n;if(i)return this._returnResult({data:null,error:i});if(!r)return this._returnResult({data:null,error:new wt});const{error:s}
292=await ie(this.fetch,"DELETE",`${this.url}/passkeys/${e.passkeyId}`,{headers:this.headers,jwt:r.access_token,noResolveJson:!0});return s?this._returnResult({data:null,error:s}):this._returnResult({data:null,error:null})})}catch(n){if(K(n))return this._returnResult({data:null,error:n});throw n}}}Eu.nextInstanceID={};const vU=Eu,wU="2.108.0";let El="",vh;if(typeof Deno<"u"){var Vp;El="deno",vh=(Vp=Deno.version)===null||Vp===void 0?void 0:Vp.deno}else if(typeof document<"u")El="web";else if(typeof navigator<"u"&&navigator.product==="ReactNative")El="react-native";else{var Hp;El="node",vh=typeof process<"u"?(Hp=process.version)===null||Hp===void 0?void 0:Hp.replace(/^v/,""):void 0}const NE=[`runtime=${El}`];vh&&NE.push(`runtime-version=${vh}`);const _U={"X-Client-Info":`supabase-js/${wU}; ${NE.join("; ")}`},bU={headers:_U},xU={schema:"public"},kU={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},SU={},TU={enabled:!1,respectSamplingDecision:!0};function PU(t,e,n,r){function i(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function l(f){try{d(r.next(f))}catch(p){a(p)}}function c(f){try{d(r.throw(f))}catch(p){a(p)}}function d(f){f.done?s(f.value):i(f.value).then(l,c)}d((r=r.apply(t,[])).next())})}let Wp=null;const CU="@opentelemetry/api";function EU(){return Wp===null&&(Wp=import(CU).catch(()=>null)),Wp}function AU(){return PU(this,void 0,void 0,function*(){try{const t=yield EU();if(!t||!t.propagation||!t.context)return null;const e={};t.propagation.inject(t.context.active(),e);const n=e.traceparent;return n?{traceparent:n,tracestate:e.tracestate,baggage:e.baggage}:null}catch{return null}})}function RU(t){if(!t||typeof t!="string")return null;const e=t.split("-");if(e.length!==4)return null;const[n,r,i,s]=e;if(n.length!==2||r.length!==32||i.length!==16||s.length!==2)return null;const a=/^[0-9a-f]+$/i;return!a.test(n)||!a.test(r)||!a.test(i)||!a.test(s)||r==="00000000000000000000000000000000"||i==="0000000000000000"?null:{version:n,traceId:r,parentId:i,traceFlags:s,isSampled:(parseInt(s,16)&1)===1}}function LU(t,e){if(!t||!e||e.length===0)return!1;let n;if(t instanceof URL)n=t;else try{n=new URL(t)}catch{return!1}for(const r of e)try{if(typeof r=="string"){if(OU(n.hostname,r))return!0}else if(r instanceof RegExp){if(r.test(n.hostname))return!0}else if(typeof r=="function"&&r(n))return!0}catch{continue}return!1}function OU(t,e){if(e===t)return!0;if(e.startsWith("*.")){const n=e.slice(2);if(t.endsWith(n)&&(t===n||t.endsWith("."+n)))return!0}return!1}function MU(t){const e=[];try{const n=new URL(t);e.push(n.hostname)}catch{}return e.push("*.supabase.co","*.supabase.in"),e.push("localhost","127.0.0.1","[::1]"),e}function Au(t){"@babel/helpers - typeof";return Au=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Au(t)}function NU(t,e){if(Au(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Au(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function jU(t){var e=NU(t,"string");return Au(e)=="symbol"?e:e+""}function IU(t,e,n){return(e=jU(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function nk(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function nt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?nk(Object(n),!0).forEach(function(r){IU(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nk(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}const DU=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),BU=()=>Headers,zU=(t,e,n,r,i)=>{const s=DU(r),a=BU(),l=(i==null?void 0:i.enabled)===!0,c=(i==null?void 0:i.respectSamplingDecision)!==!1,d=l?MU(e):null;return async(f,p)=>{var g;const y=(g=await n())!==null&&g!==void 0?g:t;let b=new a(p==null?void 0:p.headers);if(b.has("apikey")||b.set("apikey",t),b.has("Authorization")||b.set("Authorization",`Bearer ${y}`),d){const _=await FU(f,d,c);_&&(_.traceparent&&!b.has("traceparent")&&b.set("traceparent",_.traceparent),_.tracestate&&!b.has("tracestate")&&b.set("tracestate",_.tracestate),_.baggage&&!b.has("baggage")&&b.set("baggage",_.baggage))}return s(f,nt(nt({},p),{},{headers:b}))}};async function FU(t,e,n){if(!LU(typeof t=="string"||t instanceof URL?t:t.url,e))return null;const r=await AU();if(!r||!r.traceparent)return null;if(n){const i=RU(r.traceparent);if(i&&!i.isSampled)return null}return r}function rk(t){return typeof t=="boolean"?{enabled:t}:t}function $U(t){return t.endsWith("/")?t:t+"/"}function UU(t,e){var n,r,i,s,a,l;const{db:c,auth:d,realtime:f,global:p}=t,{db:g,auth:y,realtime:b,global:_}=e,T=rk(t.tracePropagation),x=rk(e.tracePropagation),S={db:nt(nt({},g),c),auth:nt(nt({},y),d),realtime:nt(nt({},b),f),storage:{},global:nt(nt(nt({},_),p),{},{headers:nt(nt({},(n=_==null?void 0:_.headers)!==null&&n!==void 0?n:{}),(r=p==null?void 0:p.headers)!==null&&r!==void 0?r:{})}),tracePropagation:{enabled:(i=(s=T==null?void 0:T.enabled)!==null&&s!==void 0?s:x==null?void 0:x.enabled)!==null&&i!==void 0?i:!1,respectSamplingDecision:(a=(l=T==null?void 0:T.respectSamplingDecision)!==null&&l!==void 0?l:x==null?void 0:x.respectSamplingDecision)!==null&&a!==void 0?a:!0},accessToken:async()=>""};return t.accessToken?S.accessToken=t.accessToken:delete S.accessToken,S}function VU(t){const e=t==null?void 0:t.trim();if(!e)throw new Error("supabaseUrl is required.");
292if(!e.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL($U(e))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var HU=class extends vU{constructor(t){super(t)}},WU=class{constructor(t,e,n){var r,i;this.supabaseUrl=t,this.supabaseKey=e;const s=VU(t);if(!e)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",s),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",s),this.storageUrl=new URL("storage/v1",s),this.functionsUrl=new URL("functions/v1",s);const a=`sb-${s.hostname.split(".")[0]}-auth-token`,l={db:xU,realtime:SU,auth:nt(nt({},kU),{},{storageKey:a}),global:bU,tracePropagation:TU},c=UU(n??{},l);if(this.settings=c,this.storageKey=(r=c.auth.storageKey)!==null&&r!==void 0?r:"",this.headers=(i=c.global.headers)!==null&&i!==void 0?i:{},c.accessToken)this.accessToken=c.accessToken,this.auth=new Proxy({},{get:(f,p)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(p)} is not possible`)}});else{var d;this.auth=this._initSupabaseAuthClient((d=c.auth)!==null&&d!==void 0?d:{},this.headers,c.global.fetch)}this.fetch=zU(e,t,this._getAccessToken.bind(this),c.global.fetch,c.tracePropagation),this.realtime=this._initRealtimeClient(nt({headers:this.headers,accessToken:this._getAccessToken.bind(this),fetch:this.fetch},c.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(f=>this.realtime.setAuth(f)).catch(f=>console.warn("Failed to set initial Realtime auth token:",f)),this.rest=new o9(new URL("rest/v1",s).href,{headers:this.headers,schema:c.db.schema,fetch:this.fetch,timeout:c.db.timeout,urlLengthLimit:c.db.urlLengthLimit}),this.storage=new w$(this.storageUrl.href,this.headers,this.fetch,n==null?void 0:n.storage),c.accessToken||this._listenForAuthEvents()}get functions(){return new YF(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(t){return this.rest.from(t)}schema(t){return this.rest.schema(t)}rpc(t,e={},n={head:!1,get:!1,count:void 0}){return this.rest.rpc(t,e,n)}channel(t,e={config:{}}){return this.realtime.channel(t,e)}getChannels(){return this.realtime.getChannels()}removeChannel(t){return this.realtime.removeChannel(t)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var t=this,e,n;if(t.accessToken)return await t.accessToken();const{data:r}=await t.auth.getSession();return(e=(n=r.session)===null||n===void 0?void 0:n.access_token)!==null&&e!==void 0?e:t.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:t,persistSession:e,detectSessionInUrl:n,storage:r,userStorage:i,storageKey:s,flowType:a,lock:l,debug:c,throwOnError:d,experimental:f,lockAcquireTimeout:p,skipAutoInitialize:g},y,b){const _={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new HU({url:this.authUrl.href,headers:nt(nt({},_),y),storageKey:s,autoRefreshToken:t,persistSession:e,detectSessionInUrl:n,storage:r,userStorage:i,flowType:a,lock:l,debug:c,throwOnError:d,experimental:f,fetch:b,lockAcquireTimeout:p,skipAutoInitialize:g,hasCustomAuthorizationHeader:Object.keys(this.headers).some(T=>T.toLowerCase()==="authorization")})}_initRealtimeClient(t){return new U9(this.realtimeUrl.href,nt(nt({},t),{},{params:nt(nt({},{apikey:this.supabaseKey}),t==null?void 0:t.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((t,e)=>{this._handleTokenChanged(t,"CLIENT",e==null?void 0:e.access_token)})}_handleTokenChanged(t,e,n){(t==="TOKEN_REFRESHED"||t==="SIGNED_IN")&&this.changedAccessToken!==n?(this.changedAccessToken=n,this.realtime.setAuth(n)):t==="SIGNED_OUT"&&(this.realtime.setAuth(),e=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const qU=(t,e,n)=>new WU(t,e,n);function GU(){if(typeof window<"u")return!1;const t=globalThis.process;if(!t)return!1;const e=t.version;if(e==null)return!1;const n=e.match(/^v(\d+)\./);return n?parseInt(n[1],10)<=18:!1}GU()&&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
292ode.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");const ZU="https://emllolbvtjdafgfzmivx.supabase.co",KU="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImVtbGxvbGJ2dGpkYWZnZnptaXZ4Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3ODA5MjIyNjAsImV4cCI6MjA5NjQ5ODI2MH0.6iC-v8Zfp0sNA2-xgzTIiRcMww6FqjV9vb3BRiepy7k",jE=qU(ZU,KU,{auth:{storage:localStorage,persistSession:!0,autoRefreshToken:!0}}),JU=GF({name:Ss().trim().min(1,"Name is required").max(100),email:Ss().trim().email("Please enter a valid email").max(255),phone:Ss().trim().max(20).optional(),address:Ss().trim().min(1,"Mailing address is required").max(300),city:Ss().trim().min(1,"City is required").max(100),state:Ss().trim().min(1,"State is required").max(50),zip:Ss().trim().min(1,"ZIP code is required").max(10)}),YU=()=>{const[t,e]=C.useState(""),[n,r]=C.useState(""),[i,s]=C.useState(""),[a,l]=C.useState(""),[c,d]=C.useState(""),[f,p]=C.useState(""),[g,y]=C.useState(""),[b,_]=C.useState("idle"),[T,x]=C.useState({}),S=async k=>{k.preventDefault(),x({});const E=JU.safeParse({name:t,email:n,phone:i||void 0,address:a,city:c,state:f,zip:g});if(!E.success){const O={};E.error.errors.forEach(M=>{M.path[0]&&(O[M.path[0]]=M.message)}),x(O);return}_("submitting");const A=typeof window<"u"?window.location.href:"";try{const{error:O}=await jE.functions.invoke("submit-guide-request",{body:{form:"guide-request",data:{name:E.data.name,email:E.data.email,phone:E.data.phone??null,address:E.data.address,city:E.data.city,state:E.data.state,zip:E.data.zip,pageUrl:A}}});if(O)throw O;_("success"),e(""),r(""),s(""),l(""),d(""),p(""),y("")}catch{_("error")}};return b==="success"?v.jsxs(Pe.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},className:"bg-primary rounded-2xl p-8 md:p-12 text-center",children:[v.jsx(eM,{size:48,className:"text-accent mx-auto mb-4"}),v.jsx("h3",{className:"font-display text-2xl md:text-3xl font-bold text-primary-foreground mb-3",children:"Guide on Its Way!"}),v.jsxs("p",{className:"font-body text-primary-foreground/80 max-w-md mx-auto",children:["Thanks, ",t||"friend","! Your free Tri-Peaks guide will arrive soon. Start exploring the parks, trails, and events in the meantime."]}),v.jsx("button",{onClick:()=>_("idle"),className:"mt-6 font-body text-sm text-primary-foreground/60 hover:text-primary-foreground underline",children:"Request another"})]}):v.jsx("div",{className:"bg-primary rounded-2xl p-8 md:p-12",children:v.jsxs("div",{className:"max-w-2xl mx-auto",children:[v.jsx("h3",{className:"font-display text-2xl md:text-3xl font-bold text-primary-foreground mb-2 text-center",children:"Request Your Tri-Peaks Guide"}),v.jsx("p",{className:"font-body text-primary-foreground/80 mb-8 text-center max-w-lg mx-auto",children:"Free guide mailed to you — parks, trails, events, and insider tips for your Arkansas River Valley adventure."}),b==="error"&&v.jsxs("div",{className:"flex items-center gap-2 bg-destructive/20 text-primary-foreground rounded-lg p-3 mb-6",children:[v.jsx(QO,{size:18}),v.jsx("span",{className:"font-body text-sm",children:"Something went wrong. Please try again."})]}),v.jsxs("form",{onSubmit:S,className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[v.jsxs("div",{className:"md:col-span-1",children:[v.jsx("label",{className:"font-body text-xs font-semibold text-primary-foreground/70 uppercase tracking-wider mb-1 block",children:"Name *"}),v.jsx("input",{type:"text",value:t,onChange:k=>e(k.target.value),placeholder:"Your name",className:"w-full rounded-md bg-primary-foreground/10 border border-primary-foreground/20 text-primary-foreground placeholder:text-primary-foreground/40 px-4 py-3 font-body text-sm focus:outline-none focus:ring-2 focus:ring-accent"}),T.name&&v.jsx("p",{className:"font-body text-xs text-accent mt-1",children:T.name})]}),v.jsxs("div",{className:"md:col-span-1",children:[v.jsx("label",{className:"font-body text-xs font-semibold text-primary-foreground/70 uppercase tracking-wider mb-1 block",children:"Email *"}),v.jsx("input",{type:"email",value:n,onChange:k=>r(k.target.value),placeholder:"[email protected]",className:"w-full rounded-md bg-primary-foreground
292/10 border border-primary-foreground/20 text-primary-foreground placeholder:text-primary-foreground/40 px-4 py-3 font-body text-sm focus:outline-none focus:ring-2 focus:ring-accent"}),T.email&&v.jsx("p",{className:"font-body text-xs text-accent mt-1",children:T.email})]}),v.jsxs("div",{className:"md:col-span-2",children:[v.jsx("label",{className:"font-body text-xs font-semibold text-primary-foreground/70 uppercase tracking-wider mb-1 block",children:"Phone (optional)"}),v.jsx("input",{type:"tel",value:i,onChange:k=>s(k.target.value),placeholder:"(555) 555-5555",className:"w-full rounded-md bg-primary-foreground/10 border border-primary-foreground/20 text-primary-foreground placeholder:text-primary-foreground/40 px-4 py-3 font-body text-sm focus:outline-none focus:ring-2 focus:ring-accent"})]}),v.jsxs("div",{className:"md:col-span-2",children:[v.jsx("label",{className:"font-body text-xs font-semibold text-primary-foreground/70 uppercase tracking-wider mb-1 block",children:"Street Address *"}),v.jsx("input",{type:"text",value:a,onChange:k=>l(k.target.value),placeholder:"123 Main St",className:"w-full rounded-md bg-primary-foreground/10 border border-primary-foreground/20 text-primary-foreground placeholder:text-primary-foreground/40 px-4 py-3 font-body text-sm focus:outline-none focus:ring-2 focus:ring-accent"}),T.address&&v.jsx("p",{className:"font-body text-xs text-accent mt-1",children:T.address})]}),v.jsxs("div",{children:[v.jsx("label",{className:"font-body text-xs font-semibold text-primary-foreground/70 uppercase tracking-wider mb-1 block",children:"City *"}),v.jsx("input",{type:"text",value:c,onChange:k=>d(k.target.value),placeholder:"Paris",className:"w-full rounded-md bg-primary-foreground/10 border border-primary-foreground/20 text-primary-foreground placeholder:text-primary-foreground/40 px-4 py-3 font-body text-sm focus:outline-none focus:ring-2 focus:ring-accent"}),T.city&&v.jsx("p",{className:"font-body text-xs text-accent mt-1",children:T.city})]}),v.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[v.jsxs("div",{children:[v.jsx("label",{className:"font-body text-xs font-semibold text-primary-foreground/70 uppercase tracking-wider mb-1 block",children:"State *"}),v.jsx("input",{type:"text",value:f,onChange:k=>p(k.target.value),placeholder:"AR",className:"w-full rounded-md bg-primary-foreground/10 border border-primary-foreground/20 text-primary-foreground placeholder:text-primary-foreground/40 px-4 py-3 font-body text-sm focus:outline-none focus:ring-2 focus:ring-accent"}),T.state&&v.jsx("p",{className:"font-body text-xs text-accent mt-1",children:T.state})]}),v.jsxs("div",{children:[v.jsx("label",{className:"font-body text-xs font-semibold text-primary-foreground/70 uppercase tracking-wider mb-1 block",children:"ZIP *"}),v.jsx("input",{type:"text",value:g,onChange:k=>y(k.target.value),placeholder:"72855",className:"w-full rounded-md bg-primary-foreground/10 border border-primary-foreground/20 text-primary-foreground placeholder:text-primary-foreground/40 px-4 py-3 font-body text-sm focus:outline-none focus:ring-2 focus:ring-accent"}),T.zip&&v.jsx("p",{className:"font-body text-xs text-accent mt-1",children:T.zip})]})]}),v.jsx("div",{className:"md:col-span-2",children:v.jsx("button",{type:"submit",disabled:b==="submitting",className:"w-full inline-flex items-center justify-center gap-2 rounded-md bg-accent px-8 py-4 text-base font-bold text-accent-foreground hover:brightness-110 transition-all shadow-lg font-body disabled:opacity-70",children:b==="submitting"?v.jsx(v.Fragment,{children:"Sending…"}):v.jsxs(v.Fragment,{children:[v.jsx(mT,{size:18}),"Request Your Free Guide"]})})}),v.jsx("p",{className:"md:col-span-2 font-body text-xs text-primary-foreground/50 text-center",children:"We respect your privacy. Your info is only used to send your guide."})]})]})})},XU=[{icon:Oa,title:"Request Your Free Guide",description:"Get the full Tri-Peaks guide mailed to you — parks, trails, events, and insider tips."},{icon:pT,title:"Explore Parks & Trails",description:"Plan your route through four state parks and two national forests."}
292,{icon:JO,title:"Book Your Stay",description:"Lodges, cabins, campsites, and yurts — find your perfect base camp."}],QU=()=>v.jsx("section",{id:"request-guide",className:"py-20 md:py-28 bg-background",children:v.jsxs("div",{className:"container mx-auto px-4 lg:px-8 max-w-5xl",children:[v.jsxs(Pe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.6},className:"text-center mb-14",children:[v.jsx("h2",{className:"font-display text-3xl md:text-4xl font-bold text-foreground mb-3",children:"Plan Your Tri-Peaks Adventure"}),v.jsx("p",{className:"font-body text-lg text-muted-foreground max-w-xl mx-auto",children:"From curious to booked in three easy steps."})]}),v.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 mb-14",children:XU.map((t,e)=>v.jsxs(Pe.div,{initial:{opacity:0,y:25},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-50px"},transition:{duration:.5,delay:e*.12},className:"text-center",children:[v.jsx("div",{className:"w-16 h-16 rounded-full bg-primary/10 flex items-center justify-center mx-auto mb-5",children:v.jsx(t.icon,{size:28,className:"text-primary"})}),v.jsxs("div",{className:"font-body text-xs font-bold uppercase tracking-widest text-accent mb-2",children:["Step ",e+1]}),v.jsx("h3",{className:"font-display text-xl font-bold text-foreground mb-2",children:t.title}),v.jsx("p",{className:"font-body text-sm text-muted-foreground",children:t.description})]},t.title))}),v.jsxs(Pe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-50px"},transition:{duration:.6},children:[v.jsx(YU,{}),v.jsx("p",{className:"text-center mt-6",children:v.jsxs(We,{to:"/guidebook",className:"inline-flex items-center gap-2 font-body text-sm font-semibold text-primary hover:underline transition-colors",children:[v.jsx(Oa,{size:16}),"Or read the guidebook online"]})})]})]})}),e8=[{name:"Arkansas State Parks",description:"Enhancing quality of life through exceptional outdoor experiences, connections to Arkansas heritage and sound resource management.",website:"https://www.arkansasstateparks.com/",county:"Regional"},{name:"Mount Nebo State Park",description:"Sweeping summit views, the Monument Trails system, cabins, and the original CCC-built Bench Overlook above the Arkansas River Valley.",website:"https://www.arkansasstateparks.com/parks/mount-nebo-state-park",county:"Regional"},{name:"Connect2First",description:"Reliable rural internet service for the Mt. Magazine area and beyond — as dependable as your electricity.",website:"https://connect2first.net/",county:"Regional"},{name:"First Electric Cooperative",description:"First Electric — improving quality of life across the Arkansas River Valley.",website:"https://www.firstelectric.coop/",county:"Regional"},{name:"Morrilton Area Chamber of Commerce",description:"Home of Petit Jean State Park, Arkansas's first and most frequented state park. Promoting a vibrant, healthy economy while advancing the interest of members and community.",website:"https://www.morriltonchamber.com/",county:"Conway"},{name:"The Museum of Automobiles",description:"Atop Petit Jean Mountain — home to more than 50 vehicles including the only Climber automobiles known to exist.",website:"https://www.museumofautos.com/",county:"Conway"},{name:"Point Remove Brewing Company",description:"Craft beer, handmade pizzas and a dog-friendly patio in a former Coca-Cola bottling plant in downtown Morrilton.",website:"https://pointremovebrewingcompany.com/",county:"Conway"},{name:"Petit Jean State Bank",description:"Welcome Home! Your Hometown Bank.",website:"https://www.pjsb.com/",county:"Conway"},{name:"Petit Jean Coffeehouse & Mercantile",description:"Cozy mountaintop gathering place serving expertly crafted espresso, seasonal specials and Arkansas-made gifts.",website:"https://petitjeancoffeehouse.com/",county:"Conway"},{name:"American Inn, Morrilton",description:"Convenient lodging in Morrilton — a comfortable base for exploring Petit Jean Mountain and the Arkansas River Valley.",county:"Conway"},{name:"Arkansas Real Estate Collective",description:"Local real estate experts helping clients buy and sell across the Arkansas River Valley.",county:"Conway"},{name:"Serenity Now!",description:"Modern lakefront cottage on Lake Overcup near Morrilton — private dock, firepit, and minutes from Petit Jean State Park.",county:"Conway"},{name:"Clarksville–Johnson County Chamber of Commerce",description:"Your Business Resource & Visitor Center for Clarksville and Johnson County.",website:"https://www.clarksvillejocochamber.com/",county:"Johnson"},{name:"Hampton Inn - Clarksville",description:"Reliable Hampton Inn hospital
292ity just off I-40 in Clarksville.",county:"Johnson"},{name:"Hampton Inn Express - Clarksville",description:"Comfortable, modern lodging in Clarksville off I-40 — convenient to Ozark adventures.",county:"Johnson"},{name:"Horsehead Lake Lodge & Event Center",description:"Arkansas's premier wedding and event venue, surrounded by the beauty of the Ozark National Forest.",website:"https://horseheadlakelodge.com/",county:"Johnson"},{name:"Ozark Ridge Campground",description:"Extra-large RV sites with full hookups, city water, sewer, 30/50 amp electric, wifi and trash service.",website:"https://www.ozarkridgerv.com/",county:"Johnson"},{name:"Kasper's",description:"Two locations — Clarksville (Johnson County): premium certified Angus beef, pasta and fresh seafood in the historic Vorhees Building on the University of the Ozarks campus. Dardanelle (Yell County): hand-cut steaks and house-made desserts in a revived industrial building on Front Street.",website:"https://kaspersclarksville.com/",county:"Johnson"},{name:"Wrecked Canoe",description:"Local favorite in Clarksville for breakfast, fresh-never-frozen burgers, Catfish Friday specials and Saturday live music.",county:"Johnson"},{name:"Oark General Store",description:"Oldest continuously operating store in Arkansas — famous for burgers and pies in a building dating back to 1890.",website:"https://oarkgeneralstore.com/",county:"Johnson"},{name:"22 Brew",description:"Pour Out the Love at 22 Brew — specialty coffee, hand-dipped ice cream and a great view of the Eiffel Tower in downtown Paris.",website:"https://www.22brew.org/",county:"Logan"},{name:"Paris Area Chamber of Commerce",description:"Paris is the home of Mount Magazine, the highest point in Arkansas, and the only Eiffel Tower with a Love Lock Fence.",website:"https://www.parisarkansas.com/",county:"Logan"},{name:"True Grit Grounds",description:"Award-winning coffee and tea house on the official True Grit Trail in downtown Paris.",website:"https://www.truegritgrounds.com/",county:"Logan"},{name:"Logan County Museum",description:"A significant historical structure in Paris housing artifacts that document the county's heritage.",website:"https://www.facebook.com/LoganCountyMuseum/",county:"Logan"},{name:"Cove Creek Store on Mt. Magazine",description:"Half-pound cheeseburgers from local Arkansas-raised beef, plus chicken tenders, salads, sandwiches and homemade desserts.",website:"https://cove-creek.com/",county:"Logan"},{name:"Daddio's Pinball & Arcade",description:"Classic arcade fun and easy eats in Paris — hot dogs, nachos, pulled pork tot-chos and unlimited pinball.",website:"https://daddiospinball.com/",county:"Logan"},{name:"El Parian",description:"Crowd-pleasing Mexican classics in Paris — enchiladas, fajitas, burritos and sizzling house specialties.",county:"Logan"},{name:"Tiger of Thailand",description:"Classic Thai cuisine in Paris — curries, cashew chicken, spicy noodles and rich coconut soup.",county:"Logan"},{name:"Paris Bed & Bath",description:"Charming bed and bath accommodations in the heart of Paris, Arkansas.",county:"Logan"},{name:"God's Country Campground",description:"Spacious, all-electric campsites for both your RV and your SxS — great base for Mt. Magazine adventures.",county:"Logan"},{name:"Hollis Country Store",description:"Historic stop along Scenic Highway 7 — fried bologna sandwiches, Moon Pies and authentic Arkansas hospital
292ity since 1930.",website:"https://experiencethenaturalstate.com/",county:"Perry"},{name:"Perry County Chamber of Commerce",description:"Supporting business and community growth in Perry County.",county:"Perry"},{name:"Veranda",description:"Globally inspired fusion cuisine in downtown Perryville — breakfast, burgers, pastas, salads and hearty entrées.",county:"Perry"},{name:"Main Street Russellville",description:"Historic preservation and economic development downtown through shopping, dining and events.",website:"https://www.mainstreetrussellville.com/",county:"Pope"},{name:"Russellville Tourism & Visitors Center",description:"The verdant beauty of the Arkansas River Valley centered near Russellville at the crossroads of I-40 and Scenic Highway 7.",website:"https://discoverrussellville.org/",county:"Pope"},{name:"Russellville Chamber of Commerce",description:"Advancing business and community growth in Russellville and Pope County.",county:"Pope"},{name:"CJ's Butcher Boy Burgers",description:"Iconic burgers in Russellville — fresh, in-house-ground chuck shoulder, hand-cut fries and classic shakes.",website:"https://butcherboyburger.com/",county:"Pope"},{name:"Downtown Taco Co.",description:"Authentic Mexican favorites in the heart of downtown Russellville — tacos, enchiladas, fajitas and house specialties.",county:"Pope"},{name:"Handlebar",description:"Downtown Russellville spoke-easy with live music, late-night energy and BYO-food from any nearby restaurant.",county:"Pope"},{name:"Hampton Inn - Russellville",description:"Hampton Inn comfort and reliability in Russellville off I-40.",county:"Pope"},{name:"Fairfield by Marriott Inn & Suites, Russellville",description:"Modern Marriott lodging in Russellville — convenient to I-40, Lake Dardanelle and Arkansas Tech.",county:"Pope"},{name:"Hourglass Escape Room",description:"Themed escape rooms in Russellville — a fun group challenge for families, friends and team outings.",county:"Pope"},{name:"Frontier Climbing Company",description:"Indoor climbing gym in Russellville — a great primer before tackling Mount Magazine's world-class outdoor routes.",county:"Pope"},{name:"Mack's Pines Café",description:"Hearty homemade cooking on Scenic Highway 7 in Dover — generous breakfasts, fresh coffee and standout burgers.",website:"https://macks-pines.com/",county:"Pope"},{name:"Hidden Hideaways",description:"Reserve, relax, revive — serene cabin getaways in the Arkansas River Valley.",county:"Pope"},{name:"Dardanelle Area Chamber of Commerce",description:"Advancing commercial, agricultural, industrial, tourism and civic interests of Dardanelle and its trade area.",website:"https://dardanellechamber.com/",county:"Yell"},{name:"Danville Area Chamber of Commerce",description:"Promoting business, tourism and community across Danville and Yell County.",county:"Yell"},{name:"City of Dardanelle",description:"Dardanelle puts you at the center of the Tri-Peaks Region — Lake Dardanelle State Park, Merritt Park and Veterans Park.",county:"Yell"},{name:"La Casa Del Sol",description:"Cozy, family-owned restaurant in Dardanelle serving authentic Mexican dishes made from scratch.",website:"https://www.facebook.com/profile.php?id=100057089185502",county:"Yell"},{name:"Tarascos Mexican Restaurant",description:"Authentic Mexican cuisine on Front Street in Dardanelle — seafood tostadas, street tacos, fajitas and house margaritas.",website:"https://ordertarascos.com/",county:"Yell"},{name:"Bethel House",description:"Vacation rental near Mount Nebo offering a comfortable home base for exploring Yell County.",county:"Yell"},{name:"Cabin in the Woods",description:"Secluded vacation cabin near Mount Nebo — perfect for couples and families seeking a quiet escape.",county:"Yell"},{name:"Economy Inn, Dardanelle",description:"Affordable lodging in Dardanelle, convenient to Lake Dardanelle State Park and Mount Nebo.",county:"Yell"}],Z8=["All","Regional","Conway","Johnson","Logan","Perry","Pope","Yell"],t8=[{name:"Arkansas Game and Fish Commission",url:"https://www.agfc.com",icon:nM},{name:"Arkansas State Parks",url:"https://www.arkansasstateparks.com",icon:uM},{name:"Arkansas River Valley Regional Library",url:"https://www.arvrls.com/",icon:Oa},{name:"Arkansas Tech University",url:"https://www.atu.edu",icon:iM},{name:"Arkansas Quilt Trails",url:"https://arkansasquilttrails.com/",icon:oM}],n8=()=>v.jsx("section",{id:"counties",className:"py-16 md:py-24 section-alt",children:v.jsxs("div",{className:"container mx-auto px-4 lg:px-8 max-w-6xl",children:[v.jsxs(Pe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.5},className:"text-center mb-12",children:[v.jsx("h2",{className:"font-display text-3xl md:text-4xl font-bold text-foreground mb-3",children:"Six Counties, One Region"}),v.jsx("p",{className:"font-body text-muted-foreground max-w-2xl mx-auto",children:"The Tri-Peaks region spans six unique counties — each with its own character, attractions, and stories to tell. Tap a county to explore everything it has to offer."})]}),v.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-5 mb-16",children:uE.map((t,e)=>v.jsx(Pe.div,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-60px"},transition:{duration:.4,delay:e*.07},children:v.jsxs(We,{to:`/county/${t.slug}`,className:"group block bg-card border border-border rounded-lg p-6 hover:border-primary/40 hover:shadow-md transition-all duration-300",children:[v.jsxs("div",{className:"flex items-start justify-between mb-3",children:[v.jsxs("div",{children:[v.jsx("h3",{className:"font-display text-lg font-bold text-foreground group-hover:text-primary transition-colors",children:t.name}),v.jsx("p",{className:"font-body text-xs text-accent font-semibold italic",children:t.tagline})]}
292),v.jsx(p_,{size:18,className:"text-muted-foreground/40 group-hover:text-primary group-hover:translate-x-1 transition-all mt-1"})]}),v.jsx("p",{className:"font-body text-sm text-muted-foreground leading-relaxed mb-4 line-clamp-3",children:t.description}),v.jsxs("div",{className:"flex items-center gap-1.5 font-body text-xs text-muted-foreground/70",children:[v.jsx(Xm,{size:12}),v.jsx("span",{children:t.seat})]})]})},t.slug))}),v.jsxs(Pe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.5},className:"bg-card border border-border rounded-xl p-8 md:p-10",children:[v.jsxs("div",{className:"text-center mb-6",children:[v.jsx("h3",{className:"font-display text-xl md:text-2xl font-bold text-foreground mb-2",children:"Valued Region Members"}),v.jsx("p",{className:"font-body text-sm text-muted-foreground",children:"Regional partners helping bring the Arkansas River Valley to life."})]}),v.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-5 gap-3 mb-6",children:t8.map((t,e)=>v.jsxs(Pe.a,{href:Ar(t.url),target:"_blank",rel:"noopener noreferrer",initial:{opacity:0,y:12},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:e*.05},className:"group flex items-center gap-3 rounded-lg border border-border/60 bg-background p-4 hover:border-primary/40 hover:shadow-sm transition-all",children:[v.jsx("div",{className:"shrink-0 w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center text-primary",children:v.jsx(t.icon,{size:20})}),v.jsx("span",{className:"font-body text-sm font-medium text-foreground group-hover:text-primary transition-colors leading-tight",children:t.name})]},t.name))}),v.jsx("div",{className:"text-center",children:v.jsxs(We,{to:"/members",className:"inline-flex items-center gap-2 font-body text-sm font-semibold text-primary hover:text-primary/80 transition-colors",children:["View all ",e8.length," valued members",v.jsx(p_,{size:16})]})})]})]})}),r8="https://www.facebook.com/arvTripeaks",i8=({className:t,pageUrl:e=r8,pageName:n})=>{const r=(()=>{try{return new URL(e).pathname.replace(/\/+$/g,"").split("/").filter(Boolean).pop()||"Facebook"}catch{return"Facebook"}})(),i=n||r;return v.jsx("div",{className:t,children:v.jsxs("a",{href:Ar(e),target:"_blank",rel:"noopener noreferrer",className:"group relative block overflow-hidden rounded-2xl border border-border bg-card shadow-sm transition-all hover:shadow-lg hover:border-[#1877F2]/50",children:[v.jsxs("div",{className:"relative bg-gradient-to-br from-[#1877F2] to-[#0a5dc2] px-5 py-5 text-white",children:[v.jsx("div",{className:"absolute -right-6 -top-6 opacity-15 pointer-events-none",children:v.jsx(Jm,{size:120,fill:"currentColor",strokeWidth:0})}),v.jsxs("div",{className:"relative flex items-center gap-3",children:[v.jsx("div",{className:"shrink-0 w-11 h-11 rounded-full bg-white/15 backdrop-blur flex items-center justify-center ring-1 ring-white/30",children:v.jsx(Jm,{size:22,fill:"currentColor",strokeWidth:0})}),v.jsxs("div",{className:"min-w-0",children:[v.jsx("p",{className:"font-body text-[11px] font-semibold uppercase tracking-[0.14em] text-white/80",children:"Live on Facebook"}),v.jsxs("p",{className:"font-display text-base font-bold truncate",children:["@",r]})]})]})]}),v.jsxs("div",{className:"px-5 py-5",children:[v.jsxs("p",{className:"font-body text-sm text-foreground/90 leading-relaxed",children:["Follow ",v.jsx("span",{className:"font-semibold",children:i})," for the latest events, photos, and community updates straight from the source."]}),v.jsxs("div",{className:"mt-5 flex items-center justify-between",children:[v.jsxs("span",{className:"inline-flex items-center gap-2 rounded-full bg-[#1877F2] px-4 py-2 text-sm font-semibold text-white shadow-sm transition-transform group-hover:translate-x-0.5",children:[v.jsx(fT,{size:14}),"Visit Page"]}),v.jsx(hT,{size:18,className:"text-muted-foreground transition-all group-hover:text-[#1877F2] group-hover:-translate-y-0.5 group-hover:translate-x-0.5"})]})]})]})})},s8=({className:t,pageUrl:e,pageName:n})=>{const r=(()=>{try{return new URL(e).pathname.replace(/\/+$/g,"").split("/").filter(
292Boolean).pop()||"Instagram"}catch{return"Instagram"}})(),i=n||r;return v.jsx("div",{className:t,children:v.jsxs("a",{href:Ar(e),target:"_blank",rel:"noopener noreferrer",className:"group relative block overflow-hidden rounded-2xl border border-border bg-card shadow-sm transition-all hover:shadow-lg hover:border-[#E1306C]/50",children:[v.jsxs("div",{className:"relative px-5 py-5 text-white",style:{background:"linear-gradient(135deg, #515BD4 0%, #8134AF 25%, #DD2A7B 55%, #FEDA77 100%)"},children:[v.jsx("div",{className:"absolute -right-6 -top-6 opacity-15 pointer-events-none",children:v.jsx(Ym,{size:120,strokeWidth:1.5})}),v.jsxs("div",{className:"relative flex items-center gap-3",children:[v.jsx("div",{className:"shrink-0 w-11 h-11 rounded-full bg-white/15 backdrop-blur flex items-center justify-center ring-1 ring-white/30",children:v.jsx(Ym,{size:22,strokeWidth:2})}),v.jsxs("div",{className:"min-w-0",children:[v.jsx("p",{className:"font-body text-[11px] font-semibold uppercase tracking-[0.14em] text-white/90",children:"Follow on Instagram"}),v.jsxs("p",{className:"font-display text-base font-bold truncate",children:["@",r]})]})]})]}),v.jsxs("div",{className:"px-5 py-5",children:[v.jsxs("p",{className:"font-body text-sm text-foreground/90 leading-relaxed",children:["See photos and stories from ",v.jsx("span",{className:"font-semibold",children:i})," — scenic views, local moments, and behind-the-scenes from the community."]}),v.jsxs("div",{className:"mt-5 flex items-center justify-between",children:[v.jsxs("span",{className:"inline-flex items-center gap-2 rounded-full px-4 py-2 text-sm font-semibold text-white shadow-sm transition-transform group-hover:translate-x-0.5",style:{background:"linear-gradient(135deg, #515BD4 0%, #8134AF 25%, #DD2A7B 55%, #FEDA77 100%)"},children:[v.jsx(fT,{size:14}),"Visit Profile"]}),v.jsx(hT,{size:18,className:"text-muted-foreground transition-all group-hover:text-[#DD2A7B] group-hover:-translate-y-0.5 group-hover:translate-x-0.5"})]})]})]})})},ik="https://www.facebook.com/arvTripeaks",o8="https://www.google.com/maps/dir/?api=1&destination=301+W+Walnut+St%2C+Paris%2C+AR+72855",a8="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3275.5!2d-93.7298!3d35.2920!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x87cd4a27b9!2s301+W+Walnut+St%2C+Paris%2C+AR+72855!5e0!3m2!1sen!2sus!4v1",sk="https://www.instagram.com/arvtripeaks/",qp=({icon:t,label:e,children:n})=>v.jsxs("div",{className:"flex gap-6 group",children:[v.jsx("div",{className:"h-12 w-12 shrink-0 rounded-full border border-[#5a8a5c] flex items-center justify-center group-hover:bg-[#2d5a3d] transition-colors",children:v.jsx(t,{className:"w-5 h-5 text-[#a0c49d]",strokeWidth:1.5})}),v.jsxs("div",{className:"font-body",children:[v.jsx("span",{className:"block text-[10px] uppercase tracking-widest text-[#5a8a5c] font-bold mb-1",children:e}),v.jsx("div",{className:"text-lg leading-relaxed text-[#fdfcf8]",children:n})]})]}),l8=()=>v.jsx("section",{id:"connect",className:"py-20 md:py-28 bg-[#fdfcf8]",children:v.jsx("div",{className:"container mx-auto px-4 lg:px-8 max-w-7xl",children:v.jsxs(Pe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.6},className:"w-full bg-white rounded-3xl overflow-hidden shadow-[0_32px_64px_-12px_rgba(26,60,42,0.12)]",children:[v.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2",children:[v.jsxs("div",{className:"bg-[#1a3c2a] text-[#fdfcf8] p-10 lg:p-14 xl:p-16 flex flex-col",children:[v.jsx("h2",{className:"font-display text-5xl lg:text-6xl xl:text-7xl leading-[1.05] mb-6 text-[#fdfcf8]",children:"Connect With Us"}),v.jsx("p",{className:"font-body text-[#a0c49d] text-lg lg:text-xl font-light mb-10",children:"Start your journey to the peaks. Reach out for guided tours, trail reports, or local recommendations."}),v.jsxs("div",{className:"space-y-6",children:[v.jsxs(qp,{icon:Xm,label:"Basecamp",children:["301 W. Walnut St.",v.jsx("br",{}),"Paris, AR 72855"]}),v.jsx(qp,{icon:aM,label:"Phone",children:v.jsx("a",{href:"tel:+15013549743",className:"font-medium hover:text-[#a0c49d] transition-colors",children:"(501) 354-9743"})}),v.jsx(qp,{icon:rM,label:"Web",children:v.jsx("a",{href:Ar("https://tripeakstourism.com"),target:"_blank",rel:"noopener noreferrer",className:"hover:text-[#a0c49d] transition-colors",children:"tripeakstourism.com"})})]}),v.jsxs("div",{className:"flex items-center gap-6 mt-auto pt-10 border-t border-[#2d5a3d]",children:[v.jsx("a",{href:Ar(ik),target:"_blank",rel:"noopener noreferrer","aria-label":"Facebook",className:"text-[#a0c49d] hover:text-white transition-colors",children:v.jsx(Jm,{className:"w-6 h-6"})}),v.jsx("a",{href:Ar(sk),target:"_blank",rel:"noopener noreferrer","aria-label":"Instagram",className:"text-[#a0c49d] hover:text-white transition-colors",children:v.jsx(Ym,{className:"w-6 h-6"})})]})]}),v.jsxs("div",{className:"bg-[#fdfcf8] flex flex-col p-8 lg:p-10",children:[v.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[v.jsx("span",{className:"inline-flex items-center justify-center bg-[#1a3c2a] rounded px-2 py-0.5 text-[10px] text-white font-body font-bold tracking-tighter",children:"SOCIAL"}),v.jsx("h3",{className:"font-display text-3xl text-[#1a3c2a]",children:"From the Peaks"})]}),v.jsxs("div",{className:"flex flex-col gap-5 flex-1",children:[v.jsx(i8,{pageUrl:ik,pageName:"Tri-Peaks Tourism",className:"w-full"}),v.jsx(s8,{pageUrl:sk,pageName:"Tri-Peaks Tourism",className:"w-full"})]})]})]}),v.jsxs("div",{className:"h-[360px] lg:h-[460px] relative bg-[#e2e2d8] overflow-hidden",children:[v.jsx("iframe",{title:"Tri-Peaks Tourism Office Location",src:a8,className:"absolute inset-0 w-full h-full",style:{border:0},allowFullScreen:!0,loading:"lazy",referrerPolicy:"no-referrer-when-downgrade"}),v.jsx("div",{className:"absolute bottom-6 right-6 lg:bottom-8 lg:right-8",children:v.jsxs("a",{href:o8,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-3 bg-[#2d5a3d] text-[#fdfcf8] px-6 lg:px-8 py-3.5 lg:py-4 rounded-full font-body font-bold shadow-2xl hover:bg-[#1a3c2a] transition-all",children:[v.jsx(Xm,{className:"w-5 h-5"}),"Get Directions"]})})]})]})})}),u8=1,c8="8939e639-e68b-4c47-8b50-d6d44f34bfd4",d8="d3da7873-0800-46d8-a818-edc9e607528a",h8="/__l5e/assets-v1/8939e639-e68b-4c47-8b50-d6d44f34bfd4/arv-tripeaks-wordmark-white.png",f8="a/v1/d3da7873-0800-46d8-a818-edc9e607528a/8939e639-e68b-4c47-8b50-d6d44f34bfd4/arv-tripeaks-wordmark-white.png",p8="arv-tripeaks-wordmark-white.png",m8=13005,g8="image/png",y8="2026-06-08T18:42:19Z",v8={ver
292sion:u8,asset_id:c8,project_id:d8,url:h8,r2_key:f8,original_filename:p8,size:m8,content_type:g8,created_at:y8},w8=()=>{const[t,e]=C.useState(""),[n,r]=C.useState(!1),[i,s]=C.useState(!1),[a,l]=C.useState(null),c=async d=>{d.preventDefault();const f=t.trim();if(!f)return;if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(f)||f.length>255){l("Please enter a valid email.");return}l(null),s(!0);const p=typeof window<"u"?window.location.href:"";try{const{error:g}=await jE.functions.invoke("submit-guide-request",{body:{form:"newsletter",data:{email:f,pageUrl:p}}});if(g)throw g;r(!0),e("")}catch{l("Something went wrong. Please try again.")}finally{s(!1)}};return v.jsx("footer",{className:"bg-primary py-12",children:v.jsxs("div",{className:"container mx-auto px-4 lg:px-8",children:[v.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-5 gap-8 mb-10",children:[v.jsxs("div",{className:"col-span-2 md:col-span-1",children:[v.jsx(We,{to:"/",onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),children:v.jsx("img",{src:rE,alt:"Tri-Peaks Tourism",className:"h-24 md:h-28 w-auto mb-3"})}),v.jsx("h3",{className:"font-display text-lg font-bold text-primary-foreground mb-2",children:"Tri-Peaks Tourism"}),v.jsx("p",{className:"font-body text-sm text-primary-foreground/70 leading-relaxed mb-4",children:"Six counties, one region. Your Arkansas River Valley adventure starts here."}),v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("a",{href:Ar("https://www.facebook.com/arvTripeaks"),target:"_blank",rel:"noopener noreferrer","aria-label":"Facebook",className:"inline-flex items-center justify-center w-9 h-9 rounded-full bg-primary-foreground/10 text-primary-foreground/70 hover:bg-primary-foreground/20 hover:text-primary-foreground transition-colors",children:v.jsx("svg",{width:"18",height:"18",fill:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})})}),v.jsx("a",{href:Ar("https://www.instagram.com/arvtripeaks/"),target:"_blank",rel:"noopener noreferrer","aria-label":"Instagram",className:"inline-flex items-center justify-center w-9 h-9 rounded-full bg-primary-foreground/10 text-primary-foreground/70 hover:bg-primary-foreground/20 hover:text-primary-foreground transition-colors",children:v.jsx("svg",{width:"18",height:"18",fill:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{d:"M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zM12 0C8.741 0 8.333.014 7.053.072 2.695.272.273 2.69.073 7.052.014 8.333 0 8.741 0 12c0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98C8.333 23.986 8.741 24 12 24c3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98C15.668.014 15.259 0 12 0zm0 5.838a6.162 6.162 0 100 12.324 6.162 6.162 0 000-12.324zM12 16a4 4 0 110-8 4 4 0 010 8zm6.406-11.845a1.44 1.44 0 100 2.881 1.44 1.44 0 000-2.881z"})})})]})]}),v.jsxs("div",{children:[v.jsx("h4",{className:"font-body text-xs font-bold uppercase tracking-widest text-primary-foreground/50 mb-3",children:"Counties"}),v.jsx("ul",{className:"space-y-1.5",children:[{label:"Logan",href:"/county/logan"},{label:"Johnson",href:"/county/johnson"},{label:"Pope",href:"/county/pope"},{label:"Yell",href:"/county/yell"},{label:"Conway",href:"/county/conway"},{label:"Perry",href:"/county/perry"}].map(d=>v.jsx("li",{children:v.jsx(We,{to:d.href,className:"font-body text-sm text-primary-foreground/80 hover:text-primary-foreground transition-colors",children:d.label})},d.href))})]}),v.jsxs("div",{children:[v.jsx("h4",{className:"font-body text-xs font-bold uppercase tracking-widest text-primary-foreground
292/50 mb-3",children:"Things to Do"}),v.jsx("ul",{className:"space-y-1.5",children:[{label:"Bicycling",href:"/vibe/bicycling"},{label:"Trails & Hiking",href:"/vibe/trails-hiking"},{label:"Lakes & Rivers",href:"/vibe/lakes-rivers"},{label:"Peak Fishing",href:"/vibe/peak-fishing"},{label:"Eats & Drinks",href:"/vibe/eats-drinks"},{label:"Festivals & Events",href:"/vibe/festivals-events"},{label:"Historic Sites",href:"/vibe/historic-sites"},{label:"Scenic Drives",href:"/vibe/scenic-drives"},{label:"SXS Riding",href:"/vibe/sxs-riding"}].map(d=>v.jsx("li",{children:v.jsx(We,{to:d.href,className:"font-body text-sm text-primary-foreground/80 hover:text-primary-foreground transition-colors",children:d.label})},d.href))})]}),v.jsxs("div",{children:[v.jsx("h4",{className:"font-body text-xs font-bold uppercase tracking-widest text-primary-foreground/50 mb-3",children:"State Parks"}),v.jsx("ul",{className:"space-y-1.5",children:[{label:"Petit Jean",href:"/park/petit-jean"},{label:"Mount Magazine",href:"/park/mount-magazine"},{label:"Mount Nebo",href:"/park/mount-nebo"},{label:"Lake Dardanelle",href:"/park/lake-dardanelle"}].map(d=>v.jsx("li",{children:v.jsx(We,{to:d.href,className:"font-body text-sm text-primary-foreground/80 hover:text-primary-foreground transition-colors",children:d.label})},d.href))}),v.jsx("h4",{className:"font-body text-xs font-bold uppercase tracking-widest text-primary-foreground/50 mb-3 mt-6",children:"Quick Links"}),v.jsxs("ul",{className:"space-y-1.5",children:[v.jsx("li",{children:v.jsx("a",{href:"/#explore-region",className:"font-body text-sm text-primary-foreground/80 hover:text-primary-foreground transition-colors",children:"Interactive Map"})}),v.jsx("li",{children:v.jsx("a",{href:"/#events",className:"font-body text-sm text-primary-foreground/80 hover:text-primary-foreground transition-colors",children:"Events"})}),v.jsx("li",{children:v.jsx(We,{to:"/guidebook",className:"font-body text-sm text-primary-foreground/80 hover:text-primary-foreground transition-colors",children:"Online Guidebook"})}),v.jsx("li",{children:v.jsx(We,{to:"/about",className:"font-body text-sm text-primary-foreground/80 hover:text-primary-foreground transition-colors",children:"About Us"})}),v.jsx("li",{children:v.jsx(We,{to:"/members",className:"font-body text-sm text-primary-foreground/80 hover:text-primary-foreground transition-colors",children:"Valued Members"})}),v.jsx("li",{children:v.jsx("a",{href:"#request-guide",className:"font-body text-sm text-primary-foreground/80 hover:text-primary-foreground transition-colors",children:"Request a Guide"})})]})]}),v.jsxs("div",{className:"col-span-2 md:col-span-1",children:[v.jsx("h4",{className:"font-body text-xs font-bold uppercase tracking-widest text-primary-foreground/50 mb-3",children:"Stay in the Loop"}),n?v.jsx("p",{className:"font-body text-sm text-accent",children:"You're subscribed! 🎉"}):v.jsxs("form",{onSubmit:c,className:"space-y-2",children:[v.jsx("p",{className:"font-body text-sm text-primary-foreground/70",children:"Get seasonal tips & upcoming events."}),v.jsxs("div",{className:"flex gap-2",children:[v.jsx("input",{type:"email",value:t,onChange:d=>e(d.target.value),placeholder:"Your email",required:!0,disabled:i,className:"flex-1 rounded-md bg-primary-foreground/10 border border-primary-foreground/20 text-primary-foreground placeholder:text-primary-foreground/40 px-3 py-2 font-body text-sm focus:outline-none focus:ring-2 focus:ring-accent disabled:opacity-70"}),v.jsx("button",{type:"submit",disabled:i,className:"rounded-md bg-accent px-3 py-2 text-accent-foreground hover:brightness-110 transition-all disabled:opacity-70","aria-label":"Subscribe",children:v.jsx(mT,{size:16})})]}),a&&v.jsx("p",{className:"font-body text-xs text-accent",children:a})]}),v.jsxs("address",{className:"font-body text-sm text-primary-foreground/60 not-italic space-y-1 mt-4",children:[v.jsx("p",{children:"301 W. Walnut St., Paris, AR 72855"}),v.jsx("p",{children:"(501) 354-9743"}),v.jsx("a",{href:Ar("https://tripeakstourism.com"),target:"_blank",rel:"noopener noreferrer",className:"hover:text-primary-foreground transition-colors",children:"tripeakstourism.com"})]})]})]}
292),v.jsx("div",{className:"border-t border-primary-foreground/20 pt-6 flex justify-center",children:v.jsx("img",{src:v8.url,alt:"Arkansas River Valley Tri-Peaks",className:"h-10 md:h-12 w-auto opacity-90"})}),v.jsxs("div",{className:"border-t border-primary-foreground/20 mt-6 pt-6 flex flex-col sm:flex-row items-center justify-between gap-4",children:[v.jsxs("div",{className:"text-center sm:text-left",children:[v.jsxs("p",{className:"font-body text-xs text-primary-foreground/50",children:["© ",new Date().getFullYear()," Tri-Peaks Tourism. All rights reserved."]}),v.jsxs("p",{className:"font-body text-xs text-primary-foreground/40 mt-1",children:["Hosted by"," ",v.jsx("a",{href:"https://squatchsites.com?utm_source=tripeaks&utm_medium=website&utm_campaign=footer&utm_content=hosted_by",target:"_blank",rel:"noopener noreferrer",className:"hover:text-primary-foreground/60 transition-colors underline",children:"'Squatch Sites"})," | Powered by ",v.jsx("a",{href:"https://getsaasquatchai.com?utm_source=tripeaks&utm_medium=website&utm_campaign=footer&utm_content=powered_by",target:"_blank",rel:"noopener noreferrer",className:"hover:text-primary-foreground/60 transition-colors underline",children:"SaaSquatchAI"})]}),v.jsx("p",{className:"font-body text-xs text-primary-foreground/40 mt-1",children:"This website is paid for with a combination of state funds and Arkansas River Valley Tri-Peaks Region funds."})]}),v.jsx("a",{href:"#request-guide",className:"font-body text-sm font-semibold text-accent hover:brightness-110 transition-all",children:"Request Your Free Guide →"})]})]})})},_8="https://tripeakstourism.com",b8=({title:t,description:e,path:n,image:r,type:i="website",jsonLd:s})=>{const a=`${_8}${n}`,l=s?Array.isArray(s)?s:[s]:[];return v.jsxs(WL,{children:[v.jsx("title",{children:t}),v.jsx("meta",{name:"description",content:e}),v.jsx("link",{rel:"canonical",href:a}),v.jsx("meta",{property:"og:title",content:t}),v.jsx("meta",{property:"og:description",content:e}),v.jsx("meta",{property:"og:url",content:a}),v.jsx("meta",{property:"og:type",content:i}),r&&v.jsx("meta",{property:"og:image",content:r}),v.jsx("meta",{name:"twitter:title",content:t}),v.jsx("meta",{name:"twitter:description",content:e}),r&&v.jsx("meta",{name:"twitter:image",content:r}),l.map((c,d)=>v.jsx("script",{type:"application/ld+json",children:JSON.stringify(c)},d))]})},x8=()=>v.jsxs("div",{className:"min-h-screen",children:[v.jsx(b8,{title:"Tri-Peaks Tourism | Arkansas River Valley Adventures",description:"Four state parks, two national forests, six counties west of Little Rock. Plan hikes, drives, and weekend trips in the Arkansas River Valley.",path:"/"}),v.jsx(Oz,{}),v.jsxs("main",{children:[v.jsx(Bz,{}),v.jsx(zz,{}),v.jsx(Wz,{}),v.jsx(nF,{}),v.jsx(pF,{}),v.jsx(gF,{}),v.jsx(vF,{}),v.jsx(_F,{}),v.jsx(QU,{}),v.jsx(n8,{}),v.jsx(l8,{})]}),v.jsx(w8,{})]}),k8=()=>{const[t,e]=C.useState(!1),[n,r]=C.useState(!1),{pathname:i}=ds();if(C.useEffect(()=>{const l=()=>{e(window.scrollY>600)};return window.addEventListener("scroll",l,{passive:!0}),()=>window.removeEventListener("scroll",l)},[]),C.useEffect(()=>{r(!1)},[i]),n)return null;const a=i==="/"?"#request-guide":"/#request-guide";return v.jsx($a,{children:t&&v.jsxs(Pe.div,{initial:{y:100,opacity:0},animate:{y:0,opacity:1},exit:{y:100,opacity:0},className:"fixed bottom-0 left-0 right-0 z-[1000] md:hidden bg-primary/95 backdrop-blur-sm p-3 pb-[max(0.75rem,env(safe-area-inset-bottom))] flex items-center justify-between gap-3 border-t border-primary-foreground/10",children:[v.jsx("a",{href:a,className:"flex-1 inline-flex items-center justify-center rounded-md bg-accent px-4 py-3 text-sm font-bold text-accent-foreground font-body min-h-11",children:"Request Free Guide"}),v.jsxs(We,{to:"/guidebook",className:"inline-flex items-center justify-center gap-1.5 rounded-md bg-primary-foreground/20 px-4 py-3 text-sm font-bold text-primary-foreground font-body min-h-11",children:[v.jsx(Oa,{size:14,"aria-hidden":"true"}),"Read",v.jsx("span",{className:"sr-only",children:" Guidebook"})]}),v.jsx("button",{onClick:()=>
292r(!0),"aria-label":"Dismiss",className:"text-primary-foreground/60 hover:text-primary-foreground p-2 min-h-11 min-w-11 flex items-center justify-center",children:v.jsx(Yy,{size:18})})]})})},or=t=>C.lazy(()=>t().catch(e=>{if(!sessionStorage.getItem("chunk-reloaded"))return sessionStorage.setItem("chunk-reloaded","1"),window.location.reload(),new Promise(()=>{});throw e})),S8=or(()=>sr(()=>import("./CountyPage-DEV26u1f.js"),__vite__mapDeps([0,1,2,3,4]))),T8=or(()=>sr(()=>import("./VibePage-Bgx349Ne.js"),__vite__mapDeps([5,6,7,8,1,4]))),P8=or(()=>sr(()=>import("./StateParkPage-2Koe_rKO.js"),__vite__mapDeps([9,10,1,11]))),C8=or(()=>sr(()=>import("./GuidebookPage-BbmLKMld.js"),__vite__mapDeps([12,13]))),E8=or(()=>sr(()=>import("./AboutPage-6X2x4bPE.js"),[])),A8=or(()=>sr(()=>import("./MembersPage-F0grW80b.js"),[])),R8=or(()=>sr(()=>import("./WaterfallsPage-D1QMhn4h.js"),__vite__mapDeps([14,1]))),L8=or(()=>sr(()=>import("./ItinerariesPage-Ci2E84nV.js"),__vite__mapDeps([15,7,1,11,2]))),O8=or(()=>sr(()=>import("./OffTheEatenPathPage-Bjs31DmE.js"),__vite__mapDeps([16,8,1,3]))),M8=or(()=>sr(()=>import("./NotFound-DYGGPX0k.js"),__vite__mapDeps([17,6,10,13]))),ok=or(()=>sr(()=>import("./RequestAGuideRedirect-CV856et0.js"),[])),N8=new j3,j8=()=>{const{pathname:t}=ds();return C.useEffect(()=>{window.scrollTo({top:0,behavior:"smooth"})},[t]),null},I8=()=>v.jsx("div",{className:"min-h-screen bg-background","aria-hidden":"true"}),D8=()=>v.jsx(D3,{client:N8,children:v.jsxs(d3,{children:[v.jsx(ZM,{}),v.jsx(PN,{}),v.jsxs(MI,{children:[v.jsx(j8,{}),v.jsx(C.Suspense,{fallback:v.jsx(I8,{}),children:v.jsxs(PI,{children:[v.jsx(Kt,{path:"/",element:v.jsx(x8,{})}),v.jsx(Kt,{path:"/county/:slug",element:v.jsx(S8,{})}),v.jsx(Kt,{path:"/vibe/:slug",element:v.jsx(T8,{})}),v.jsx(Kt,{path:"/park/:slug",element:v.jsx(P8,{})}),v.jsx(Kt,{path:"/guidebook",element:v.jsx(C8,{})}),v.jsx(Kt,{path:"/about",element:v.jsx(E8,{})}),v.jsx(Kt,{path:"/members",element:v.jsx(A8,{})}),v.jsx(Kt,{path:"/waterfalls",element:v.jsx(R8,{})}),v.jsx(Kt,{path:"/itineraries",element:v.jsx(L8,{})}),v.jsx(Kt,{path:"/off-the-eaten-path",element:v.jsx(O8,{})}),v.jsx(Kt,{path:"/request-a-guide",element:v.jsx(ok,{})}),v.jsx(Kt,{path:"/request-guide",element:v.jsx(ok,{})}),v.jsx(Kt,{path:"*",element:v.jsx(M8,{})})]})}),v.jsx(k8,{})]})]})});AS(document.getElementById("root")).render(v.jsx(IS,{children:v.jsx(D8,{})}));export{$a as A,Oa as B,YO as C,tM as D,fT as E,Jm as F,rM as G,Oz as H,Ym as I,Ke as L,Xm as M,W8 as N,aM as P,b8 as S,uE as a,We as b,Ue as c,i8 as d,s8 as e,w8 as f,XO as g,jz as h,Iz as i,v as j,Dz as k,nM as l,Pe as m,ds as n,Jy as o,Nz as p,YU as q,C as r,y_ as s,e8 as t,H8 as u,Z8 as v,Ar as w,pT as x};

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.