PageSourceSearch

https://montpellierfc.base44.app/assets/index-CMw5WkMc.js

js montpellierfc.base44.app collected 2026-10-03 03:06:41 UTC 632,894 bytes, 312 lines download raw bytes

vendor: 4,972 bytes, lines 1-2
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Analytics-DBsCcHwn.js","assets/AdminOnly-B9LXlzkt.js","assets/card-G1hlk9MB.js","assets/badge-pxhr3_1i.js","assets/AgeGroupFilter-2HiN8pEn.js","assets/BarChart-DzHhqmBS.js","assets/circle-check-BSFfxOa7.js","assets/clock-DZyHpFe5.js","assets/trending-up-DIuTQiSL.js","assets/chart-no-axes-column-CpuWo5jX.js","assets/Availability-BBqCnEJi.js","assets/useMutation-V6-P1kbT.js","assets/select-CAnxrkzN.js","assets/index-PwVwpyWJ.js","assets/index-CFcWXebX.js","assets/chevron-down-C_x9onYU.js","assets/check-ClgAkMwD.js","assets/chevron-up-CVykwz0E.js","assets/tabs-Xxjxr9bC.js","assets/TrainingCard-BU_nkbKC.js","assets/textarea-hJVYmRtJ.js","assets/parseISO-B7VBBgQk.js","assets/circle-help-5iGBJMyT.js","assets/circle-x-liKWNYMC.js","assets/map-pin-DWTKbmh4.js","assets/trophy-CHOwyl14.js","assets/pencil-BxIJakwS.js","assets/trash-2-DXu6zdGA.js","assets/dumbbell-CDiOs6kG.js","assets/plus-NmowOFwK.js","assets/FixturesCalendar-B6rflRbG.js","assets/startOfMonth-BV9n57Pk.js","assets/chevron-left-D80kru7i.js","assets/chevron-right-zbusLFc-.js","assets/star-CxOrgt-z.js","assets/Chat--6wKZrdz.js","assets/alert-dialog-Brj0IOoG.js","assets/checkbox-DRLmfS1I.js","assets/circle-alert-BIc_5qaq.js","assets/circle-check-big-Dl6OVS4C.js","assets/search-CCZT9NjN.js","assets/shield-DPzguiBR.js","assets/video-BMMszvVf.js","assets/user-plus-Dm58HZFQ.js","assets/mic-B2DHa50I.js","assets/square-Vf97R8Ix.js","assets/settings-B1sPe-DM.js","assets/eye-CGT5iAqR.js","assets/Fundraising-C5wPZulf.js","assets/index-bJXWZ7UR.js","assets/proxy-DszkIKw3.js","assets/upload-E7hcYUBv.js","assets/Home-gXC2lYRv.js","assets/PartnersTicker-B0XsRLsg.js","assets/arrow-right-Cum3lTVv.js","assets/IncidentReports-CtP04Pu7.js","assets/jspdf.es.min-B-eQZ_U3.js","assets/phone-BycejiIW.js","assets/external-link-BwTgF51p.js","assets/key-round-DZT-Ooyt.js","assets/download-DMHieJrp.js","assets/Players-0KgwJ_Vi.js","assets/AgeGroupBadge-ChXMSquR.js","assets/user-C2h5Z8gF.js","assets/mail-LFOgKiC7.js","assets/id-card-B-eOBOmM.js","assets/shield-alert-DrP6RHq6.js","assets/refresh-cw-BeUolt1k.js","assets/PlayerForm-DWAbsSqd.js","assets/save-87HBFoGw.js","assets/EmptyState-DJMqBUcY.js","assets/PreviousSeasons-CTfcAqat.js","assets/Profile-CXHLo_OI.js","assets/camera-C2L322ae.js","assets/target-tZ21zgzJ.js","assets/copy-BkHRVPKN.js","assets/chart-column-BFy1VcUe.js","assets/pen-cdsMKDp0.js","assets/Registrations-CDGTM6ck.js","assets/user-minus-BJnqfxkf.js","assets/SecureDocuments-BmcMoLOG.js","assets/Teams-CAguvQW5.js","assets/archive-Dw4jaJva.js","assets/Wall-Cs5R2_ZQ.js","assets/arrow-left-DNRfaRCW.js","assets/Committee-B-z5Bxhd.js","assets/UserManagement-B8gdl416.js","assets/CommitteeManagement-BYnykAVD.js","assets/TacticsBoard-ZY3XC-2c.js","assets/html2canvas.esm-QH1iLAAe.js","assets/folder-open-B5kajI7g.js","assets/rotate-ccw-OkZ30S3P.js","assets/sticky-note-B3BC7jZ6.js","assets/FinalThird-Ceze9Gmr.js","assets/FinalThirdBudgetsInfo-BfMFNeZt.js","assets/PaymentAdmin-DG6h5kz-.js","assets/TeamDetail-CRaGdqU3.js","assets/filter-DqqjIvau.js","assets/MyPlayers-PnDJ4Mre.js","assets/MyPayments-DvMK_xUT.js","assets/HowToGuide-CamW-fkb.js","assets/zap-DLTR9UhP.js","assets/CoachPlus-8audXOw4.js","assets/MyStats-ClqsqsjV.js","assets/ClubPartners-DZKgUFzC.js","assets/WelcomeToTheClub-BxZbIWe0.js"])))=>i.map(i=>d[i]);
2var qk=Object.defineProperty;var jg=e=>{throw TypeError(e)};var Qk=(e,t,n)=>t in e?qk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ge=(e,t,n)=>Qk(e,typeof t!="symbol"?t+"":t,n),Od=(e,t,n)=>t.has(e)||jg("Cannot "+n);var j=(e,t,n)=>(Od(e,t,"read from private field"),n?n.call(e):t.get(e)),Ce=(e,t,n)=>t.has(e)?jg("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),de=(e,t,n,i)=>(Od(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),je=(e,t,n)=>(Od(e,t,"access private method"),n);var Fl=(e,t,n,i)=>({set _(s){de(e,t,s,n)},get _(){return j(e,t,i)}});function Yk(e,t){for(var n=0;n<t.length;n++){const i=t[n];if(typeof i!="string"&&!Array.isArray(i)){for(const s in i)if(s!=="default"&&!(s in e)){const a=Object.getOwnPropertyDescriptor(i,s);a&&Object.defineProperty(e,s,a.get?a:{enumerable:!0,get:()=>i[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const a of s)if(a.type==="childList")for(const u of a.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function n(s){const a={};return s.integrity&&(a.integrity=s.integrity),s.referrerPolicy&&(a.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?a.credentials="include":s.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}
vendor: 4,894 bytes, lines 2-10
2function i(s){if(s.ep)return;s.ep=!0;const a=n(s);fetch(s.href,a)}})();var v4=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function va(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Nd={exports:{}},js={},Ad={exports:{}},Me={};/**
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 Fg;function Kk(){if(Fg)return Me;Fg=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.iterator;function w(D){return D===null||typeof D!="object"?null:(D=g&&D[g]||D["@@iterator"],typeof D=="function"?D:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,k={};function S(D,q,O){this.props=D,this.context=q,this.refs=k,this.updater=O||v}S.prototype.isReactComponent={},S.prototype.setState=function(D,q){if(typeof D!="object"&&typeof D!="function"&&D!=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,D,q,"setState")},S.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function x(){}x.prototype=S.prototype;function R(D,q,O){this.props=D,this.context=q,this.refs=k,this.updater=O||v}var T=R.prototype=new x;T.constructor=R,E(T,S.prototype),T.isPureReactComponent=!0;var A=Array.isArray,U=Object.prototype.hasOwnProperty,L={current:null},W={key:!0,ref:!0,__self:!0,__source:!0};function M(D,q,O){var we,xe={},re=null,Pe=null;if(q!=null)for(we in q.ref!==void 0&&(Pe=q.ref),q.key!==void 0&&(re=""+q.key),q)U.call(q,we)&&!W.hasOwnProperty(we)&&(xe[we]=q[we]);var Ae=arguments.length-2;if(Ae===1)xe.children=O;else if(1<Ae){for(var Se=Array(Ae),Ze=0;Ze<Ae;Ze++)Se[Ze]=arguments[Ze+2];xe.children=Se}if(D&&D.defaultProps)for(we in Ae=D.defaultProps,Ae)xe[we]===void 0&&(xe[we]=Ae[we]);return{$$typeof:e,type:D,key:re,ref:Pe,props:xe,_owner:L.current}}function K(D,q){return{$$typeof:e,type:D.type,key:q,ref:D.ref,props:D.props,_owner:D._owner}}function H(D){return typeof D=="object"&&D!==null&&D.$$typeof===e}function Q(D){var q={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(O){return q[O]})}var G=/\/+/g;function le(D,q){return typeof D=="object"&&D!==null&&D.key!=null?Q(""+D.key):q.toString(36)}function te(D,q,O,we,xe){var re=typeof D;(re==="undefined"||re==="boolean")&&(D=null);var Pe=!1;if(D===null)Pe=!0;else switch(re){case"string":case"number":Pe=!0;break;case"object":switch(D.$$typeof){case e:case t:Pe=!0}}if(Pe)return Pe=D,xe=xe(Pe),D=we===""?"."+le(Pe,0):we,A(xe)?(O="",D!=null&&(O=D.replace(G,"$&/")+"/"),te(xe,q,O,"",function(Ze){return Ze})):xe!=null&&(H(xe)&&(xe=K(xe,O+(!xe.key||Pe&&Pe.key===xe.key?"":(""+xe.key).replace(G,"$&/")+"/")+D)),q.push(xe)),1;if(Pe=0,we=we===""?".":we+":",A(D))for(var Ae=0;Ae<D.length;Ae++){re=D[Ae];var Se=we+le(re,Ae);Pe+=te(re,q,O,Se,xe)}else if(Se=w(D),typeof Se=="function")for(D=Se.call(D),Ae=0;!(re=D.next()).done;)re=re.value,Se=we+le(re,Ae++),Pe+=te(re,q,O,Se,xe);else if(re==="object")throw q=String(D),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.");return Pe}function J(D,q,O){if(D==null)return D;var we=[],xe=0;return te(D,we,"","",function(re){return q.call(O,re,xe++)}),we}function me(D){if(D._status===-1){var q=D._result;q=q(),q.then(function(O){(D._status===0||D._status===-1)&&(D._status=1,D._result=O)},function(O){(D._status===0||D._status===-1)&&(D._status=2,D._result=O)}),D._status===-1&&(D._status=0,D._result=q)}if(D._status===1)return D._result.default;throw D._result}var be={current:null},X={transition:null},ue={ReactCurrentDispatcher:be,ReactCurrentBatchConfig:X,ReactCurrentOwner:L};function P(){throw Error("act(...) is not supported in production builds of React.")}return Me.Children={map:J,forEach:function(D,q,O){J(D,function(){q.apply(this,arguments)},O)},count:function(D){var q=0;return J(D,function(){q++}),q},toArray:function(D){return J(D,function(q){return q})||[]},only:function(D){if(!H(D))throw Error("React.Children.only expected to receive a single React element child.");return D}},Me.Component=S,Me.Fragment=n,Me.Profiler=s,Me.PureComponent=R,Me.StrictMode=i,Me.Suspense=f,Me.__SECRET_INT
vendor: 4,248 bytes, lines 10-26
10ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ue,Me.act=P,Me.cloneElement=function(D,q,O){if(D==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+D+".");var we=E({},D.props),xe=D.key,re=D.ref,Pe=D._owner;if(q!=null){if(q.ref!==void 0&&(re=q.ref,Pe=L.current),q.key!==void 0&&(xe=""+q.key),D.type&&D.type.defaultProps)var Ae=D.type.defaultProps;for(Se in q)U.call(q,Se)&&!W.hasOwnProperty(Se)&&(we[Se]=q[Se]===void 0&&Ae!==void 0?Ae[Se]:q[Se])}var Se=arguments.length-2;if(Se===1)we.children=O;else if(1<Se){Ae=Array(Se);for(var Ze=0;Ze<Se;Ze++)Ae[Ze]=arguments[Ze+2];we.children=Ae}return{$$typeof:e,type:D.type,key:xe,ref:re,props:we,_owner:Pe}},Me.createContext=function(D){return D={$$typeof:u,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},D.Provider={$$typeof:a,_context:D},D.Consumer=D},Me.createElement=M,Me.createFactory=function(D){var q=M.bind(null,D);return q.type=D,q},Me.createRef=function(){return{current:null}},Me.forwardRef=function(D){return{$$typeof:c,render:D}},Me.isValidElement=H,Me.lazy=function(D){return{$$typeof:m,_payload:{_status:-1,_result:D},_init:me}},Me.memo=function(D,q){return{$$typeof:h,type:D,compare:q===void 0?null:q}},Me.startTransition=function(D){var q=X.transition;X.transition={};try{D()}finally{X.transition=q}},Me.unstable_act=P,Me.useCallback=function(D,q){return be.current.useCallback(D,q)},Me.useContext=function(D){return be.current.useContext(D)},Me.useDebugValue=function(){},Me.useDeferredValue=function(D){return be.current.useDeferredValue(D)},Me.useEffect=function(D,q){return be.current.useEffect(D,q)},Me.useId=function(){return be.current.useId()},Me.useImperativeHandle=function(D,q,O){return be.current.useImperativeHandle(D,q,O)},Me.useInsertionEffect=function(D,q){return be.current.useInsertionEffect(D,q)},Me.useLayoutEffect=function(D,q){return be.current.useLayoutEffect(D,q)},Me.useMemo=function(D,q){return be.current.useMemo(D,q)},Me.useReducer=function(D,q,O){return be.current.useReducer(D,q,O)},Me.useRef=function(D){return be.current.useRef(D)},Me.useState=function(D){return be.current.useState(D)},Me.useSyncExternalStore=function(D,q,O){return be.current.useSyncExternalStore(D,q,O)},Me.useTransition=function(){return be.current.useTransition()},Me.version="18.3.1",Me}var zg;function fh(){return zg||(zg=1,Ad.exports=Kk()),Ad.exports}/**
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 Ug;function Gk(){if(Ug)return js;Ug=1;var e=fh(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function u(c,f,h){var m,g={},w=null,v=null;h!==void 0&&(w=""+h),f.key!==void 0&&(w=""+f.key),f.ref!==void 0&&(v=f.ref);for(m in f)i.call(f,m)&&!a.hasOwnProperty(m)&&(g[m]=f[m]);if(c&&c.defaultProps)for(m in f=c.defaultProps,f)g[m]===void 0&&(g[m]=f[m]);return{$$typeof:t,type:c,key:w,ref:v,props:g,_owner:s.current}}return js.Fragment=n,js.jsx=u,js.jsxs=u,js}var Bg;function Xk(){return Bg||(Bg=1,Nd.exports=Gk()),Nd.exports}var _=Xk(),C=fh();const Yr=va(C),Ou=Yk({__proto__:null,default:Yr},[C]);var zl={},Id={exports:{}},en={},Ld={exports:{}},Dd={};/**
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 */var $g;function Jk(){return $g||($g=1,(function(e){function t(X,ue){var P=X.length;X.push(ue);e:for(;0<P;){var D=P-1>>>1,q=X[D];if(0<s(q,ue))X[D]=ue,X[P]=q,P=D;else break e}}function n(X){return X.length===0?null:X[0]}function i(X){if(X.length===0)return null;var ue=X[0],P=X.pop();if(P!==ue){X[0]=P;e:for(var D=0,q=X.length,O=q>>>1;D<O;){var we=2*(D+1)-1,xe=X[we],re=we+1,Pe=X[re];if(0>s(xe,P))re<q&&0>s(Pe,xe)?(X[D]=Pe,X[re]=P,D=re):(X[D]=xe,X[we]=P,D=we);else if(re<q&&0>s(Pe,P))X[D]=Pe,X[re]=P,D=re;else break e}}return ue}
vendor: 50,287 bytes, lines 26-39
26function s(X,ue){var P=X.sortIndex-ue.sortIndex;return P!==0?P:X.id-ue.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var u=Date,c=u.now();e.unstable_now=function(){return u.now()-c}}var f=[],h=[],m=1,g=null,w=3,v=!1,E=!1,k=!1,S=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function T(X){for(var ue=n(h);ue!==null;){if(ue.callback===null)i(h);else if(ue.startTime<=X)i(h),ue.sortIndex=ue.expirationTime,t(f,ue);else break;ue=n(h)}}function A(X){if(k=!1,T(X),!E)if(n(f)!==null)E=!0,me(U);else{var ue=n(h);ue!==null&&be(A,ue.startTime-X)}}function U(X,ue){E=!1,k&&(k=!1,x(M),M=-1),v=!0;var P=w;try{for(T(ue),g=n(f);g!==null&&(!(g.expirationTime>ue)||X&&!Q());){var D=g.callback;if(typeof D=="function"){g.callback=null,w=g.priorityLevel;var q=D(g.expirationTime<=ue);ue=e.unstable_now(),typeof q=="function"?g.callback=q:g===n(f)&&i(f),T(ue)}else i(f);g=n(f)}if(g!==null)var O=!0;else{var we=n(h);we!==null&&be(A,we.startTime-ue),O=!1}return O}finally{g=null,w=P,v=!1}}var L=!1,W=null,M=-1,K=5,H=-1;function Q(){return!(e.unstable_now()-H<K)}function G(){if(W!==null){var X=e.unstable_now();H=X;var ue=!0;try{ue=W(!0,X)}finally{ue?le():(L=!1,W=null)}}else L=!1}var le;if(typeof R=="function")le=function(){R(G)};else if(typeof MessageChannel<"u"){var te=new MessageChannel,J=te.port2;te.port1.onmessage=G,le=function(){J.postMessage(null)}}else le=function(){S(G,0)};function me(X){W=X,L||(L=!0,le())}function be(X,ue){M=S(function(){X(e.unstable_now())},ue)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(X){X.callback=null},e.unstable_continueExecution=function(){E||v||(E=!0,me(U))},e.unstable_forceFrameRate=function(X){0>X||125<X?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):K=0<X?Math.floor(1e3/X):5},e.unstable_getCurrentPriorityLevel=function(){return w},e.unstable_getFirstCallbackNode=function(){return n(f)},e.unstable_next=function(X){switch(w){case 1:case 2:case 3:var ue=3;break;default:ue=w}var P=w;w=ue;try{return X()}finally{w=P}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(X,ue){switch(X){case 1:case 2:case 3:case 4:case 5:break;default:X=3}var P=w;w=X;try{return ue()}finally{w=P}},e.unstable_scheduleCallback=function(X,ue,P){var D=e.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?D+P:D):P=D,X){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=P+q,X={id:m++,callback:ue,priorityLevel:X,startTime:P,expirationTime:q,sortIndex:-1},P>D?(X.sortIndex=P,t(h,X),n(f)===null&&X===n(h)&&(k?(x(M),M=-1):k=!0,be(A,P-D))):(X.sortIndex=q,t(f,X),E||v||(E=!0,me(U))),X},e.unstable_shouldYield=Q,e.unstable_wrapCallback=function(X){var ue=w;return function(){var P=w;w=ue;try{return X.apply(this,arguments)}finally{w=P}}}})(Dd)),Dd}var Vg;function Zk(){return Vg||(Vg=1,Ld.exports=Jk()),Ld.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 Hg;function eS(){if(Hg)return en;Hg=1;var e=fh(),t=Zk();function n(r){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+r,l=1;l<arguments.length;l++)o+="&args[]="+encodeURIComponent(arguments[l]);return"Minified React error #"+r+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,s={};function a(r,o){u(r,o),u(r+"Capture",o)}function u(r,o){for(s[r]=o,r=0;r<o.length;r++)i.add(o[r])}var c=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,h=/^[: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]*$/,m={},g={};function w(r){return f.call(g,r)?!0:f.call(m,r)?!1:h.test(r)?g[r]=!0:(m[r]=!0,!1)}function v(r,o,l,d){if(l!==null&&l.type===0)return!1;switch(typeof o){case"function":case"symbol":return!0;case"boolean":return d?!1:l!==null?!l.acceptsBooleans:(r=r.toLowerCase().slice(0,5),r!=="data-"&&r!=="aria-");default:return!1}}function E(r,o,l,d){if(o===null||typeof o>"u"||v(r,o,l,d))return!0;if(d)return!1;if(l!==null)switch(l.type){case 3:return!o;case 4:return o===!1;case 5:return isNaN(o);case 6:return isNaN(o)||1>o}return!1}function k(r,o,l,d,p,y,b){this.acceptsBooleans=o===2||o===3||o===4,this.attributeName=d,this.attributeNamespace=p,this.mustUseProperty=l,this.propertyName=r,this.type=o,this.sanitizeURL=y,this.removeEmptyString=b}var S={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(r){S[r]=new k(r,0,!1,r,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var o=r[0];S[o]=new k(o,1,!1,r[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(r){S[r]=new k(r,2,!1,r.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){S[r]=new k(r,2,!1,r,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(r){S[r]=new k(r,3,!1,r.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(r){S[r]=new k(r,3,!0,r,null,!1,!1)}),["capture","download"].forEach(function(r){S[r]=new k(r,4,!1,r,null,!1,!1)}),["cols","rows","size","span"].forEach(function(r){S[r]=new k(r,6,!1,r,null,!1,!1)}),["rowSpan","start"].forEach(function(r){S[r]=new k(r,5,!1,r.toLowerCase(),null,!1,!1)});var x=/[\-:]([a-z])/g;function R(r){return r[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(r){var o=r.replace(x,R);S[o]=new k(o,1,!1,r,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(r){var o=r.replace(x,R);S[o]=new k(o,1,!1,r,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(r){var o=r.replace(x,R);S[o]=new k(o,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(r){S[r]=new k(r,1,!1,r.toLowerCase(),null,!1,!1)}),S.xlinkHref=new k("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(r){S[r]=new k(r,1,!1,r.toLowerCase(),null,!0,!0)});function T(r,o,l,d){var p=S.hasOwnProperty(o)?S[o]:null;(p!==null?p.type!==0:d||!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(E(o,l,p,d)&&(l=null),d||p===null?w(o)&&(l===null?r.removeAttribute(o):r.setAttribute(o,""+l)):p.mustUseProperty?r[p.propertyName]=l===null?p.type===3?!1:"":l:(o=p.attributeName,d=p.attributeNamespace,l===null?r.removeAttribute(o):(p=p.type,l=p===3||p===4&&l===!0?"":""+l,d?r.setAttributeNS(d,o,l):r.setAttribute(o,l))))}var A=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,U=Symbol.for("react.element"),L=Symbol.for("react.portal"),W=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),K=Symbol.for("react.profiler"),H=Symbol.for("react.provider"),Q=Symbol.for("react.context"),G=Symbol.for("react.forward_ref"),le=Symbol.for("react.suspense"),te=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),me=Symbol.for("react.lazy"),be=Symbol.for("react.offscreen"),X=Symbol.iterator;function ue(r){return r===null||typeof r!="object"?null:(r=X&&r[X]||r["@@iterator"],typeof r=="function"?r:null)}var P=Object.assign,D;function q(r){if(D===void 0)try{throw Error()}catch(l){var o=l.stack.trim().match(/\n( *(at )?)/);D=o&&o[1]||""}return`
35`+D+r}var O=!1;function we(r,o){if(!r||O)return"";O=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(o)if(o=function(){throw Error()},Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(V){var d=V}Reflect.construct(r,[],o)}else{try{o.call()}catch(V){d=V}r.call(o.prototype)}else{try{throw Error()}catch(V){d=V}r()}}catch(V){if(V&&d&&typeof V.stack=="string"){for(var p=V.stack.split(`
36`),y=d.stack.split(`
37`),b=p.length-1,N=y.length-1;1<=b&&0<=N&&p[b]!==y[N];)N--;for(;1<=b&&0<=N;b--,N--)if(p[b]!==y[N]){if(b!==1||N!==1)do if(b--,N--,0>N||p[b]!==y[N]){var I=`
38`+p[b].replace(" at new "," at ");return r.displayName&&I.includes("<anonymous>")&&(I=I.replace("<anonymous>",r.displayName)),I}while(1<=b&&0<=N);break}}}finally{O=!1,Error.prepareStackTrace=l}return(r=r?r.displayName||r.name:"")?q(r):""}function xe(r){switch(r.tag){case 5:return q(r.type);case 16:return q("Lazy");case 13:return q("Suspense");case 19:return q("SuspenseList");case 0:case 2:case 15:return r=we(r.type,!1),r;case 11:return r=we(r.type.render,!1),r;case 1:return r=we(r.type,!0),r;default:return""}}function re(r){if(r==null)return null;if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case W:return"Fragment";case L:return"Portal";case K:return"Profiler";case M:return"StrictMode";case le:return"Suspense";case te:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case Q:return(r.displayName||"Context")+".Consumer";case H:return(r._context.displayName||"Context")+".Provider";case G:var o=r.render;return r=r.displayName,r||(r=o.displayName||o.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case J:return o=r.displayName||null,o!==null?o:re(r.type)||"Memo";case me:o=r._payload,r=r._init;try{return re(r(o))}catch{}}return null}function Pe(r){var o=r.type;switch(r.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return r=o.render,r=r.displayName||r.name||"",o.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return re(o);case 8:return o===M?"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 o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o}return null}function Ae(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function Se(r){var o=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function Ze(r){var o=Se(r)?"checked":"value",l=Object.getOwnPropertyDescriptor(r.constructor.prototype,o),d=""+r[o];if(!r.hasOwnProperty(o)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var p=l.get,y=l.set;return Object.defineProperty(r,o,{configurable:!0,get:function(){return p.call(this)},set:function(b){d=""+b,y.call(this,b)}}),Object.defineProperty(r,o,{enumerable:l.enumerable}),{getValue:function(){return d},setValue:function(b){d=""+b},stopTracking:function(){r._valueTracker=null,delete r[o]}}}}function Ct(r){r._valueTracker||(r._valueTracker=Ze(r))}function yt(r){if(!r)return!1;var o=r._valueTracker;if(!o)return!0;var l=o.getValue(),d="";return r&&(d=Se(r)?r.checked?"true":"false":r.value),r=d,r!==l?(o.setValue(r),!0):!1}function ln(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}function Qt(r,o){var l=o.checked;return P({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l??r._wrapperState.initialChecked})}function $t(r,o){var l=o.defaultValue==null?"":o.defaultValue,d=o.checked!=null?o.checked:o.defaultChecked;l=Ae(o.value!=null?o.value:l),r._wrapperState={initialChecked:d,initialValue:l,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function Re(r,o){o=o.checked,o!=null&&T(r,"checked",o,!1)}function ft(r,o){Re(r,o);var l=Ae(o.value),d=o.type;if(l!=null)d==="number"?(l===0&&r.value===""||r.value!=l)&&(r.value=""+l):r.value!==""+l&&(r.value=""+l);else if(d==="submit"||d==="reset"){r.removeAttribute("value");return}o.hasOwnProperty("value")?Yt(r,o.type,l):o.hasOwnProperty("defaultValue")&&Yt(r,o.type,Ae(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(r.defaultChecked=!!o.defaultChecked)}function un(r,o,l){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var d=o.type;if(!(d!=="submit"&&d!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+r._wrapperState.initialValue,l||o===r.value||(r.value=o),r.defaultValue=o}l=r.name,l!==""&&(r.name=""),r.defaultChecked=!!r._wrapperState.initialChecked,l!==""&&(r.name=l)}function Yt(r,o,l){(o!=="number"||ln(r.ownerDocument)!==r)&&(l==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+l&&(r.defaultValue=""+l))}var On=Array.isArray;function Hn(r,o,l,d){if(r=r.options,o){o={};for(var p=0;p<l.length;p++)o["$"+l[p]]=!0;for(l=0;l<r.length;l++)p=o.hasOwnProperty("$"+r[l].value),r[l].selected!==p&&(r[l].selected=p),p&&d&&(r[l].defaultSelected=!0)}else{for(l=""+Ae(l),o=null,p=0;p<r.length;p++){if(r[p].value===l){r[p].selected=!0,d&&(r[p].defaultSelected=!0);return}o!==null||r[p].disabled||(o=r[p])}o!==null&&(o.selected=!0)}}function Nn(r,o){if(o.dangerouslySetInnerHTML!=null)throw Error(n(91));return P({},o,{value:void 0,defaultValue:void 0,children:""+r._wrapperState.initialValue})}function Ta(r,o){var l=o.value;if(l==null){if(l=o.children,o=o.defaultValue,l!=null){if(o!=null)throw Error(n(92));if(On(l)){if(1<l.length)throw Error(n(93));l=l[0]}o=l}o==null&&(o=""),l=o}r._wrapperState={initialValue:Ae(l)}}function Ra(r,o){var l=Ae(o.value),d=Ae(o.defaultValue);l!=null&&(l=""+l,l!==r.value&&(r.value=l),o.defaultValue==null&&r.defaultValue!==l&&(r.defaultValue=l)),d!=null&&(r.defaultValue=""+d)}function Oa(r){var o=r.textContent;o===r._wrapperState.initialValue&&o!==""&&o!==null&&(r.value=o)}function Y(r){switch(r){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 se(r,o){return r==null||r==="http://www.w3.org/1999/xhtml"?Y(o):r==="http://www.w3.org/2000/svg"&&o==="foreignObject"?"http://www.w3.org/1999/xhtml":r}var Te,De=(function(r){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(o,l,d,p){MSApp.execUnsafeLocalFunction(function(){return r(o,l,d,p)})}:r})(function(r,o){if(r.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in r)r.innerHTML=o;else{for(Te=Te||document.createElement("div"),Te.innerHTML="<svg>"+o.valueOf().toString()+"</svg>",o=Te.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;o.firstChild;)r.appendChild(o.firstChild)}});function Ue(r,o){if(o){var l=r.firstChild;if(l&&l===r.lastChild&&l.nodeType===3){l.nodeValue=o;return}}r.textContent=o}var Pt={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},sr=["Webkit","ms","Moz","O"];Object.keys(Pt).forEach(function(r){sr.forEach(function(o){o=o+r.charAt(0).toUpperCase()+r.substring(1),Pt[o]=Pt[r]})});function yn(r,o,l){return o==null||typeof o=="boolean"||o===""?"":l||typeof o!="number"||o===0||Pt.hasOwnProperty(r)&&Pt[r]?(""+o).trim():o+"px"}function kr(r,o){r=r.style;for(var l in o)if(o.hasOwnProperty(l)){var d=l.indexOf("--")===0,p=yn(l,o[l],d);l==="float"&&(l="cssFloat"),d?r.setProperty(l,p):r[l]=p}}var hi=P({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 Tt(r,o){if(o){if(hi[r]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(n(137,r));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(n(60));if(typeof o.dangerouslySetInnerHTML!="object"||!("__html"in o.dangerouslySetInnerHTML))throw Error(n(61))}if(o.style!=null&&typeof o.style!="object")throw Error(n(62))}}function Wn(r,o){if(r.indexOf("-")===-1)return typeof o.is=="string";switch(r){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 cn=null;function Wu(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var qu=null,Xi=null,Ji=null;function ep(r){if(r=ks(r)){if(typeof qu!="function")throw Error(n(280));var o=r.stateNode;o&&(o=Za(o),qu(r.stateNode,r.type,o))}}function tp(r){Xi?Ji?Ji.push(r):Ji=[r]:Xi=r}function np(){if(Xi){var r=Xi,o=Ji;if(Ji=Xi=null,ep(r),o)for(r=0;r<o.length;r++)ep(o[r])}}function rp(r,o){return r(o)}function ip(){}var Qu=!1;function op(r,o,l){if(Qu)return r(o,l);Qu=!0;try{return rp(r,o,l)}finally{Qu=!1,(Xi!==null||Ji!==null)&&(ip(),np())}}function ts(r,o){var l=r.stateNode;if(l===null)return null;var d=Za(l);if(d===null)return null;l=d[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(r=r.type,d=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!d;break e;default:r=!1}if(r)return null;if(l&&typeof l!="function")throw Error(n(231,o,typeof l));return l}var Yu=!1;if(c)try{var ns={};Object.defineProperty(ns,"passive",{get:function(){Yu=!0}}),window.addEventListener("test",ns,ns),window.removeEventListener("test",ns,ns)}catch{Yu=!1}function J1(r,o,l,d,p,y,b,N,I){var V=Array.prototype.slice.call(arguments,3);try{o.apply(l,V)}catch(ee){this.onError(ee)}}var rs=!1,Na=null,Aa=!1,Ku=null,Z1={onError:function(r){rs=!0,Na=r}};function eb(r,o,l,d,p,y,b,N,I){rs=!1,Na=null,J1.apply(Z1,arguments)}function tb(r,o,l,d,p,y,b,N,I){if(eb.apply(this,arguments),rs){if(rs){var V=Na;rs=!1,Na=null}else throw Error(n(198));Aa||(Aa=!0,Ku=V)}}function pi(r){var o=r,l=r;if(r.alternate)for(;o.return;)o=o.return;else{r=o;do o=r,(o.flags&4098)!==0&&(l=o.return),r=o.return;while(r)}return o.tag===3?l:null}function sp(r){if(r.tag===13){var o=r.memoizedState;if(o===null&&(r=r.alternate,r!==null&&(o=r.memoizedState)),o!==null)return o.dehydrated}return null}function ap(r){if(pi(r)!==r)throw Error(n(188))}function nb(r){var o=r.alternate;if(!o){if(o=pi(r),o===null)throw Error(n(188));return o!==r?null:r}for(var l=r,d=o;;){var p=l.return;if(p===null)break;var y=p.alternate;if(y===null){if(d=p.return,d!==null){l=d;continue}break}if(p.child===y.child){for(y=p.child;y;){if(y===l)return ap(p),r;if(y===d)return ap(p),o;y=y.sibling}throw Error(n(188))}if(l.return!==d.return)l=p,d=y;else{for(var b=!1,N=p.child;N;){if(N===l){b=!0,l=p,d=y;break}if(N===d){b=!0,d=p,l=y;break}N=N.sibling}if(!b){for(N=y.child;N;){if(N===l){b=!0,l=y,d=p;break}if(N===d){b=!0,d=y,l=p;break}N=N.sibling}if(!b)throw Error(n(189))}}if(l.alternate!==d)throw Error(n(190))}if(l.tag!==3)throw Error(n(188));return l.stateNode.current===l?r:o}function lp(r){return r=nb(r),r!==null?up(r):null}function up(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){var o=up(r);if(o!==null)return o;r=r.sibling}return null}var cp=t.unstable_scheduleCallback,dp=t.unstable_cancelCallback,rb=t.unstable_shouldYield,ib=t.unstable_requestPaint,ut=t.unstable_now,ob=t.unstable_getCurrentPriorityLevel,Gu=t.unstable_ImmediatePriority,fp=t.unstable_UserBlockingPriority,Ia=t.unstable_NormalPriority,sb=t.unstable_LowPriority,hp=t.unstable_IdlePriority,La=null,qn=null;function ab(r){if(qn&&typeof qn.onCommitFiberRoot=="function")try{qn.onCommitFiberRoot(La,r,void 0,(r.current.flags&128)===128)}catch{}}var An=Math.clz32?Math.clz32:cb,lb=Math.log,ub=Math.LN2;function cb(r){return r>>>=0,r===0?32:31-(lb(r)/ub|0)|0}var Da=64,Ma=4194304;function is(r){switch(r&-r){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 r&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return r&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return r}}function ja(r,o){var l=r.pendingLanes;if(l===0)return 0;var d=0,p=r.suspendedLanes,y=r.pingedLanes,b=l&268435455;if(b!==0){var N=b&~p;N!==0?d=is(N):(y&=b,y!==0&&(d=is(y)))}else b=l&~p,b!==0?d=is(b):y!==0&&(d=is(y));if(d===0)return 0;if(o!==0&&o!==d&&(o&p)===0&&(p=d&-d,y=o&-o,p>=y||p===16&&(y&4194240)!==0))return o;if((d&4)!==0&&(d|=l&16),o=r.entangledLanes,o!==0)for(r=r.entanglements,o&=d;0<o;)l=31-An(o),p=1<<l,d|=r[l],o&=~p;return d}function db(r,o){switch(r){case 1:case 2:case 4:return o+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 o+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 fb(r,o){for(var l=r.suspendedLanes,d=r.pingedLanes,p=r.expirationTimes,y=r.pendingLanes;0<y;){var b=31-An(y),N=1<<b,I=p[b];I===-1?((N&l)===0||(N&d)!==0)&&(p[b]=db(N,o)):I<=o&&(r.expiredLanes|=N),y&=~N}}function Xu(r){return r=r.pendingLanes&-1073741825,r!==0?r:r&1073741824?1073741824:0}function pp(){var r=Da;return Da<<=1,(Da&4194240)===0&&(Da=64),r}function Ju(r){for(var o=[],l=0;31>l;l++)o.push(r);return o}function os(r,o,l){r.pendingLanes|=o,o!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,o=31-An(o),r[o]=l}function hb(r,o){var l=r.pendingLanes&~o;r.pendingLanes=o,r.suspendedLanes=0,r.pingedLanes=0,r.expiredLanes&=o,r.mutableReadLanes&=o,r.entangledLanes&=o,o=r.entanglements;var d=r.eventTimes;for(r=r.expirationTimes;0<l;){var p=31-An(l),y=1<<p;o[p]=0,d[p]=-1,r[p]=-1,l&=~y}}function Zu(r,o){var l=r.entangledLanes|=o;for(r=r.entanglements;l;){var d=31-An(l),p=1<<d;p&o|r[d]&o&&(r[d]|=o),l&=~p}}var qe=0;function mp(r){return r&=-r,1<r?4<r?(r&268435455)!==0?16:536870912:4:1}var gp,ec,yp,vp,wp,tc=!1,Fa=[],Sr=null,Er=null,_r=null,ss=new Map,as=new Map,Cr=[],pb="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 xp(r,o){switch(r){case"focusin":case"focusout":Sr=null;break;case"dragenter":case"dragleave":Er=null;break;case"mouseover":case"mouseout":_r=null;break;case"pointerover":case"pointerout":ss.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":as.delete(o.pointerId)}}function ls(r,o,l,d,p,y){return r===null||r.nativeEvent!==y?(r={blockedOn:o,domEventName:l,eventSystemFlags:d,nativeEvent:y,targetContainers:[p]},o!==null&&(o=ks(o),o!==null&&ec(o)),r):(r.eventSystemFlags|=d,o=r.targetContainers,p!==null&&o.indexOf(p)===-1&&o.push(p),r)}function mb(r,o,l,d,p){switch(o){case"focusin":return Sr=ls(Sr,r,o,l,d,p),!0;case"dragenter":return Er=ls(Er,r,o,l,d,p),!0;case"mouseover":return _r=ls(_r,r,o,l,d,p),!0;case"pointerover":var y=p.pointerId;return ss.set(y,ls(ss.get(y)||null,r,o,l,d,p)),!0;case"gotpointercapture":return y=p.pointerId,as.set(y,ls(as.get(y)||null,r,o,l,d,p)),!0}return!1}function bp(r){var o=mi(r.target);if(o!==null){var l=pi(o);if(l!==null){if(o=l.tag,o===13){if(o=sp(l),o!==null){r.blockedOn=o,wp(r.priority,function(){yp(l)});return}}else if(o===3&&l.stateNode.current.memoizedState.isDehydrated){r.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}r.blockedOn=null}function za(r){if(r.blockedOn!==null)return!1;for(var o=r.targetContainers;0<o.length;){var l=rc(r.domEventName,r.eventSystemFlags,o[0],r.nativeEvent);if(l===null){l=r.nativeEvent;var d=new l.constructor(l.type,l);cn=d,l.target.dispatchEvent(d),cn=null}else return o=ks(l),o!==null&&ec(o),r.blockedOn=l,!1;o.shift()}return!0}function kp(r,o,l){za(r)&&l.delete(o)}function gb(){tc=!1,Sr!==null&&za(Sr)&&(Sr=null),Er!==null&&za(Er)&&(Er=null),_r!==null&&za(_r)&&(_r=null),ss.forEach(kp),as.forEach(kp)}function us(r,o){r.blockedOn===o&&(r.blockedOn=null,tc||(tc=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,gb)))}function cs(r){function o(p){return us(p,r)}if(0<Fa.length){us(Fa[0],r);for(var l=1;l<Fa.length;l++){var d=Fa[l];d.blockedOn===r&&(d.blockedOn=null)}}for(Sr!==null&&us(Sr,r),Er!==null&&us(Er,r),_r!==null&&us(_r,r),ss.forEach(o),as.forEach(o),l=0;l<Cr.length;l++)d=Cr[l],d.blockedOn===r&&(d.blockedOn=null);for(;0<Cr.length&&(l=Cr[0],l.blockedOn===null);)bp(l),l.blockedOn===null&&Cr.shift()}var Zi=A.ReactCurrentBatchConfig,Ua=!0;function yb(r,o,l,d){var p=qe,y=Zi.transition;Zi.transition=null;try{qe=1,nc(r,o,l,d)}finally{qe=p,Zi.transition=y}}function vb(r,o,l,d){var p=qe,y=Zi.transition;Zi.transition=null;try{qe=4,nc(r,o,l,d)}finally{qe=p,Zi.transition=y}}function nc(r,o,l,d){if(Ua){var p=rc(r,o,l,d);if(p===null)xc(r,o,d,Ba,l),xp(r,d);else if(mb(p,r,o,l,d))d.stopPropagation();else if(xp(r,d),o&4&&-1<pb.indexOf(r)){for(;p!==null;){var y=ks(p);if(y!==null&&gp(y),y=rc(r,o,l,d),y===null&&xc(r,o,d,Ba,l),y===p)break;p=y}p!==null&&d.stopPropagation()}else xc(r,o,d,null,l)}}var Ba=null;function rc(r,o,l,d){if(Ba=null,r=Wu(d),r=mi(r),r!==null)if(o=pi(r),o===null)r=null;else if(l=o.tag,l===13){if(r=sp(o),r!==null)return r;r=null}else if(l===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;r=null}else o!==r&&(r=null);return Ba=r,null}function Sp(r){switch(r){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(ob()){case Gu:return 1;case fp:return 4;case Ia:case sb:return 16;case hp:return 536870912;default:return 16}default:return 16}}var Pr=null,ic=null,$a=null;function Ep(){if($a)return $a;var r,o=ic,l=o.length,d,p="value"in Pr?Pr.value:Pr.textContent,y=p.length;for(r=0;r<l&&o[r]===p[r];r++);var b=l-r;for(d=1;d<=b&&o[l-d]===p[y-d];d++);return $a=p.slice(r,1<d?1-d:void 0)}function Va(r){var o=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&o===13&&(r=13)):r=o,r===10&&(r=13),32<=r||r===13?r:0}function Ha(){return!0}function _p(){return!1}function dn(r){function o(l,d,p,y,b){this._reactName=l,this._targetInst=p,this.type=d,this.nativeEvent=y,this.target=b,this.currentTarget=null;for(var N in r)r.hasOwnProperty(N)&&(l=r[N],this[N]=l?l(y):y[N]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?Ha:_p,this.isPropagationStopped=_p,this}return P(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Ha)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Ha)},persist:function(){},isPersistent:Ha}),o}var eo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},oc=dn(eo),ds=P({},eo,{view:0,detail:0}),wb=dn(ds),sc,ac,fs,Wa=P({},ds,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:uc,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==fs&&(fs&&r.type==="mousemove"?(sc=r.screenX-fs.screenX,ac=r.screenY-fs.screenY):ac=sc=0,fs=r),sc)},movementY:function(r){return"movementY"in r?r.movementY:ac}}),Cp=dn(Wa),xb=P({},Wa,{dataTransfer:0}),bb=dn(xb),kb=P({},ds,{relatedTarget:0}),lc=dn(kb),Sb=P({},eo,{animationName:0,elapsedTime:0,pseudoElement:0}),Eb=dn(Sb),_b=P({},eo,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),Cb=dn(_b),Pb=P({},eo,{data:0}),Pp=dn(Pb),Tb={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Rb={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"},Ob={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Nb(r){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(r):(r=Ob[r])?!!o[r]:!1}function uc(){return Nb}var Ab=P({},ds,{key:function(r){if(r.key){var o=Tb[r.key]||r.key;if(o!=="Unidentified")return o}return r.type==="keypress"?(r=Va(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?Rb[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:uc,charCode:function(r){return r.type==="keypress"?Va(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Va(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),Ib=dn(Ab),Lb=P({},Wa,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Tp=dn(Lb),Db=P({},ds,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:uc}),Mb=dn(Db),jb=P({},eo,{propertyName:0,elapsedTime:0,pseudoElement:0}),Fb=dn(jb),zb=P({},Wa,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),Ub=dn(zb),Bb=[9,13,27,32],cc=c&&"CompositionEvent"in window,hs=null;c&&"documentMode"in document&&(hs=document.documentMode);var $b=c&&"TextEvent"in window&&!hs,Rp=c&&(!cc||hs&&8<hs&&11>=hs),Op=" ",Np=!1;function Ap(r,o){switch(r){case"keyup":return Bb.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ip(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var to=!1;function Vb(r,o){switch(r){case"compositionend":return Ip(o);case"keypress":return o.which!==32?null:(Np=!0,Op);case"textInput":return r=o.data,r===Op&&Np?null:r;default:return null}}function Hb(r,o){if(to)return r==="compositionend"||!cc&&Ap(r,o)?(r=Ep(),$a=ic=Pr=null,to=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return Rp&&o.locale!=="ko"?null:o.data;default:return null}}var Wb={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 Lp(r){var o=r&&r.nodeName&&r.nodeName.toLowerCase();return o==="input"?!!Wb[r.type]:o==="textarea"}function Dp(r,o,l,d){tp(d),o=Ga(o,"onChange"),0<o.length&&(l=new oc("onChange","change",null,l,d),r.push({event:l,listeners:o}))}var ps=null,ms=null;function qb(r){Zp(r,0)}function qa(r){var o=so(r);if(yt(o))return r}function Qb(r,o){if(r==="change")return o}var Mp=!1;if(c){var dc;if(c){var fc="oninput"in document;if(!fc){var jp=document.createElement("div");jp.setAttribute("oninput","return;"),fc=typeof jp.oninput=="function"}dc=fc}else dc=!1;Mp=dc&&(!document.documentMode||9<document.documentMode)}function Fp(){ps&&(ps.detachEvent("onpropertychange",zp),ms=ps=null)}function zp(r){if(r.propertyName==="value"&&qa(ms)){var o=[];Dp(o,ms,r,Wu(r)),op(qb,o)}}function Yb(r,o,l){r==="focusin"?(Fp(),ps=o,ms=l,ps.attachEvent("onpropertychange",zp)):r==="focusout"&&Fp()}function Kb(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return qa(ms)}function Gb(r,o){if(r==="click")return qa(o)}function Xb(r,o){if(r==="input"||r==="change")return qa(o)}function Jb(r,o){return r===o&&(r!==0||1/r===1/o)||r!==r&&o!==o}var In=typeof Object.is=="function"?Object.is:Jb;function gs(r,o){if(In(r,o))return!0;if(typeof r!="object"||r===null||typeof o!="object"||o===null)return!1;var l=Object.keys(r),d=Object.keys(o);if(l.length!==d.length)return!1;for(d=0;d<l.length;d++){var p=l[d];if(!f.call(o,p)||!In(r[p],o[p]))return!1}return!0}function Up(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function Bp(r,o){var l=Up(r);r=0;for(var d;l;){if(l.nodeType===3){if(d=r+l.textContent.length,r<=o&&d>=o)return{node:l,offset:o-r};r=d}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Up(l)}}function $p(r,o){return r&&o?r===o?!0:r&&r.nodeType===3?!1:o&&o.nodeType===3?$p(r,o.parentNode):"contains"in r?r.contains(o):r.compareDocumentPosition?!!(r.compareDocumentPosition(o)&16):!1:!1}function Vp(){for(var r=window,o=ln();o instanceof r.HTMLIFrameElement;){try{var l=typeof o.contentWindow.location.href=="string"}catch{l=!1}if(l)r=o.contentWindow;else break;o=ln(r.document)}return o}function hc(r){var o=r&&r.nodeName&&r.nodeName.toLowerCase();return o&&(o==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||o==="textarea"||r.contentEditable==="true")}function Zb(r){var o=Vp(),l=r.focusedElem,d=r.selectionRange;if(o!==l&&l&&l.ownerDocument&&$p(l.ownerDocument.documentElement,l)){if(d!==null&&hc(l)){if(o=d.start,r=d.end,r===void 0&&(r=o),"selectionStart"in l)l.selectionStart=o,l.selectionEnd=Math.min(r,l.value.length);else if(r=(o=l.ownerDocument||document)&&o.defaultView||window,r.getSelection){r=r.getSelection();var p=l.textContent.length,y=Math.min(d.start,p);d=d.end===void 0?y:Math.min(d.end,p),!r.extend&&y>d&&(p=d,d=y,y=p),p=Bp(l,y);var b=Bp(l,d);p&&b&&(r.rangeCount!==1||r.anchorNode!==p.node||r.anchorOffset!==p.offset||r.focusNode!==b.node||r.focusOffset!==b.offset)&&(o=o.createRange(),o.setStart(p.node,p.offset),r.removeAllRanges(),y>d?(r.addRange(o),r.extend(b.node,b.offset)):(o.setEnd(b.node,b.offset),r.addRange(o)))}}for(o=[],r=l;r=r.parentNode;)r.nodeType===1&&o.push({element:r,left:r.scrollLeft,top:r.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<o.length;l++)r=o[l],r.element.scrollLeft=r.left,r.element.scrollTop=r.top}}var ek=c&&"documentMode"in document&&11>=document.documentMode,no=null,pc=null,ys=null,mc=!1;function Hp(r,o,l){var d=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;mc||no==null||no!==ln(d)||(d=no,"selectionStart"in d&&hc(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),ys&&gs(ys,d)||(ys=d,d=Ga(pc,"onSelect"),0<d.length&&(o=new oc("onSelect","select",null,o,l),r.push({event:o,listeners:d}),o.target=no)))}function Qa(r,o){var l={};return l[r.toLowerCase()]=o.toLowerCase(),l["Webkit"+r]="webkit"+o,l["Moz"+r]="moz"+o,l}var ro={animationend:Qa("Animation","AnimationEnd"),animationiteration:Qa("Animation","AnimationIteration"),animationstart:Qa("Animation","AnimationStart"),transitionend:Qa("Transition","TransitionEnd")},gc={},Wp={};c&&(Wp=document.createElement("div").style,"AnimationEvent"in window||(delete ro.animationend.animation,delete ro.animationiteration.animation,delete ro.animationstart.animation),"TransitionEvent"in window||delete ro.transitionend.transition);function Ya(r){if(gc[r])return gc[r];if(!ro[r])return r;var o=ro[r],l;for(l in o)if(o.hasOwnProperty(l)&&l in Wp)return gc[r]=o[l];return r}var qp=Ya("animationend"),Qp=Ya("animationiteration"),Yp=Ya("animationstart"),Kp=Ya("transitionend"),Gp=new Map,Xp="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 Tr(r,o){Gp.set(r,o),a(o,[r])}for(var yc=0;yc<Xp.length;yc++){var vc=Xp[yc],tk=vc.toLowerCase(),nk=vc[0].toUpperCase()+vc.slice(1);Tr(tk,"on"+nk)}Tr(qp,"onAnimationEnd"),Tr(Qp,"onAnimationIteration"),Tr(Yp,"onAnimationStart"),Tr("dblclick","onDoubleClick"),Tr("focusin","onFocus"),Tr("focusout","onBlur"),Tr(Kp,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var vs="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(" "),rk=new Set("cancel close invalid load scroll toggle".split(" ").concat(vs));function Jp(r,o,l){var d=r.type||"unknown-event";r.currentTarget=l,tb(d,o,void 0,r),r.currentTarget=null}function Zp(r,o){o=(o&4)!==0;for(var l=0;l<r.length;l++){var d=r[l],p=d.event;d=d.listeners;e:{var y=void 0;if(o)for(var b=d.length-1;0<=b;b--){var N=d[b],I=N.instance,V=N.currentTarget;if(N=N.listener,I!==y&&p.isPropagationStopped())break e;Jp(p,N,V),y=I}else for(b=0;b<d.length;b++){if(N=d[b],I=N.instance,V=N.currentTarget,N=N.listener,I!==y&&p.isPropagationStopped())break e;Jp(p,N,V),y=I}}}if(Aa)throw r=Ku,Aa=!1,Ku=null,r}function et(r,o){var l=o[Cc];l===void 0&&(l=o[Cc]=new Set);var d=r+"__bubble";l.has(d)||(em(o,r,2,!1),l.add(d))}function wc(r,o,l){var d=0;o&&(d|=4),em(l,r,d,o)}var Ka="_reactListening"+Math.random().toString(36).slice(2);function ws(r){if(!r[Ka]){r[Ka]=!0,i.forEach(function(l){l!=="selectionchange"&&(rk.has(l)||wc(l,!1,r),wc(l,!0,r))});var o=r.nodeType===9?r:r.ownerDocument;o===null||o[Ka]||(o[Ka]=!0,wc("selectionchange",!1,o))}}function em(r,o,l,d){switch(Sp(o)){case 1:var p=yb;break;case 4:p=vb;break;default:p=nc}l=p.bind(null,o,l,r),p=void 0,!Yu||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(p=!0),d?p!==void 0?r.addEventListener(o,l,{capture:!0,passive:p}):r.addEventListener(o,l,!0):p!==void 0?r.addEventListener(o,l,{passive:p}):r.addEventListener(o,l,!1)}function xc(r,o,l,d,p){var y=d;if((o&1)===0&&(o&2)===0&&d!==null)e:for(;;){if(d===null)return;var b=d.tag;if(b===3||b===4){var N=d.stateNode.containerInfo;if(N===p||N.nodeType===8&&N.parentNode===p)break;if(b===4)for(b=d.return;b!==null;){var I=b.tag;if((I===3||I===4)&&(I=b.stateNode.containerInfo,I===p||I.nodeType===8&&I.parentNode===p))return;b=b.return}for(;N!==null;){if(b=mi(N),b===null)return;if(I=b.tag,I===5||I===6){d=y=b;continue e}N=N.parentNode}}d=d.return}op(function(){var V=y,ee=Wu(l),ne=[];e:{var Z=Gp.get(r);if(Z!==void 0){var ce=oc,he=r;switch(r){case"keypress":if(Va(l)===0)break e;case"keydown":case"keyup":ce=Ib;break;case"focusin":he="focus",ce=lc;break;case"focusout":he="blur",ce=lc;break;case"beforeblur":case"afterblur":ce=lc;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ce=Cp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ce=bb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ce=Mb;break;case qp:case Qp:case Yp:ce=Eb;break;case Kp:ce=Fb;break;case"scroll":ce=wb;break;case"wheel":ce=Ub;break;case"copy":case"cut":case"paste":ce=Cb;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ce=Tp}var ye=(o&4)!==0,ct=!ye&&r==="scroll",B=ye?Z!==null?Z+"Capture":null:Z;ye=[];for(var F=V,$;F!==null;){$=F;var oe=$.stateNode;if($.tag===5&&oe!==null&&($=oe,B!==null&&(oe=ts(F,B),oe!=null&&ye.push(xs(F,oe,$)))),ct)break;F=F.return}0<ye.length&&(Z=new ce(Z,he,null,l,ee),ne.push({event:Z,listeners:ye}))}}if((o&7)===0){e:{if(Z=r==="mouseover"||r==="pointerover",ce=r==="mouseout"||r==="pointerout",Z&&l!==cn&&(he=l.relatedTarget||l.fromElement)&&(mi(he)||he[ar]))break e;if((ce||Z)&&(Z=ee.window===ee?ee:(Z=ee.ownerDocument)?Z.defaultView||Z.parentWindow:window,ce?(he=l.relatedTarget||l.toElement,ce=V,he=he?mi(he):null,he!==null&&(ct=pi(he),he!==ct||he.tag!==5&&he.tag!==6)&&(he=null)):(ce=null,he=V),ce!==he)){if(ye=Cp,oe="onMouseLeave",B="onMouseEnter",F="mouse",(r==="pointerout"||r==="pointerover")&&(ye=Tp,oe="onPointerLeave",B="onPointerEnter",F="pointer"),ct=ce==null?Z:so(ce),$=he==null?Z:so(he),Z=new ye(oe,F+"leave",ce,l,ee),Z.target=ct,Z.relatedTarget=$,oe=null,mi(ee)===V&&(ye=new ye(B,F+"enter",he,l,ee),ye.target=$,ye.relatedTarget=ct,oe=ye),ct=oe,ce&&he)t:{for(ye=ce,B=he,F=0,$=ye;$;$=io($))F++;for($=0,oe=B;oe;oe=io(oe))$++;for(;0<F-$;)ye=io(ye),F--;for(;0<$-F;)B=io(B),$--;for(;F--;){if(ye===B||B!==null&&ye===B.alternate)break t;ye=io(ye),B=io(B)}ye=null}else ye=null;ce!==null&&tm(ne,Z,ce,ye,!1),he!==null&&ct!==null&&tm(ne,ct,he,ye,!0)}}e:{if(Z=V?so(V):window,ce=Z.nodeName&&Z.nodeName.toLowerCase(),ce==="select"||ce==="input"&&Z.type==="file")var ve=Qb;else if(Lp(Z))if(Mp)ve=Xb;else{ve=Kb;var Ee=Yb}else(ce=Z.nodeName)&&ce.toLowerCase()==="input"&&(Z.type==="checkbox"||Z.type==="radio")&&(ve=Gb);if(ve&&(ve=ve(r,V))){Dp(ne,ve,l,ee);break e}Ee&&Ee(r,Z,V),r==="focusout"&&(Ee=Z._wrapperState)&&Ee.controlled&&Z.type==="number"&&Yt(Z,"number",Z.value)}switch(Ee=V?so(V):window,r){case"focusin":(Lp(Ee)||Ee.contentEditable==="true")&&(no=Ee,pc=V,ys=null);break;case"focusout":ys=pc=no=null;break;case"mousedown":mc=!0;break;case"contextmenu":case"mouseup":case"dragend":mc=!1,Hp(ne,l,ee);break;case"selectionchange":if(ek)break;case"keydown":case"keyup":Hp(ne,l,ee)}var _e;if(cc)e:{switch(r){case"compositionstart":var Oe="onCompositionStart";break e;case"compositionend":Oe="onCompositionEnd";break e;case"compositionupdate":Oe="onCompositionUpdate";break e}Oe=void 0}else to?Ap(r,l)&&(Oe="onCompositionEnd"):r==="keydown"&&l.keyCode===229&&(Oe="onCompositionStart");Oe&&(Rp&&l.locale!=="ko"&&(to||Oe!=="onCompositionStart"?Oe==="onCompositionEnd"&&to&&(_e=Ep()):(Pr=ee,ic="value"in Pr?Pr.value:Pr.textContent,to=!0)),Ee=Ga(V,Oe),0<Ee.length&&(Oe=new Pp(Oe,r,null,l,ee),ne.push({event:Oe,listeners:Ee}),_e?Oe.data=_e:(_e=Ip(l),_e!==null&&(Oe.data=_e)))),(_e=$b?Vb(r,l):Hb(r,l))&&(V=Ga(V,"onBeforeInput"),0<V.length&&(ee=new Pp("onBeforeInput","beforeinput",null,l,ee),ne.push({event:ee,listeners:V}),ee.data=_e))}Zp(ne,o)})}function xs(r,o,l){return{instance:r,listener:o,currentTarget:l}}function Ga(r,o){for(var l=o+"Capture",d=[];r!==null;){var p=r,y=p.stateNode;p.tag===5&&y!==null&&(p=y,y=ts(r,l),y!=null&&d.unshift(xs(r,y,p)),y=ts(r,o),y!=null&&d.push(xs(r,y,p))),r=r.return}return d}function io(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5);return r||null}function tm(r,o,l,d,p){for(var y=o._reactName,b=[];l!==null&&l!==d;){var N=l,I=N.alternate,V=N.stateNode;if(I!==null&&I===d)break;N.tag===5&&V!==null&&(N=V,p?(I=ts(l,y),I!=null&&b.unshift(xs(l,I,N))):p||(I=ts(l,y),I!=null&&b.push(xs(l,I,N)))),l=l.return}b.length!==0&&r.push({event:o,listeners:b})}var ik=/\r\n?/g,ok=/\u0000|\uFFFD/g;function nm(r){return(typeof r=="string"?r:""+r).replace(ik,`
39`).replace(ok,"")}function Xa(r,o,l){if(o=nm(o),nm(r)!==o&&l)throw Error(n(425))}function Ja(){}var bc=null,kc=null;function Sc(r,o){return r==="textarea"||r==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var Ec=typeof setTimeout=="function"?setTimeout:void 0,sk=typeof clearTimeout=="function"?clearTimeout:void 0,rm=typeof Promise=="function"?Promise:void 0,ak=typeof queueMicrotask=="function"?queueMicrotask:typeof rm<"u"?function(r){return rm.resolve(null).then(r).catch(lk)}:Ec;function lk(r){setTimeout(function(){throw r})}function _c(r,o){var l=o,d=0;do{var p=l.nextSibling;if(r.removeChild(l),p&&p.nodeType===8)if(l=p.data,l==="/$"){if(d===0){r.removeChild(p),cs(o);return}d--}else l!=="$"&&l!=="$?"&&l!=="$!"||d++;l=p}while(l);cs(o)}function Rr(r){for(;r!=null;r=r.nextSibling){var o=r.nodeType;if(o===1||o===3)break;if(o===8){if(o=r.data,o==="$"||o==="$!"||o==="$?")break;if(o==="/$")return null}}return r}function im(r){r=r.previousSibling;for(var o=0;r;){if(r.nodeType===8){var l=r.data;if(l==="$"||l==="$!"||l==="$?"){if(o===0)return r;o--}else l==="/$"&&o++}r=r.previousSibling}return null}var oo=Math.random().toString(36).slice(2),Qn="__reactFiber$"+oo,bs="__reactProps$"+oo,ar="__reactContainer$"+oo,Cc="__reactEvents$"+oo,uk="__reactListeners$"+oo,ck="__reactHandles$"+oo;function mi(r){var o=r[Qn];if(o)return o;for(var l=r.parentNode;l;){if(o=l[ar]||l[Qn]){if(l=o.alternate,o.child!==null||l!==null&&l.child!==null)for(r=im(r);r!==null;){if(l=r[Qn])return l;r=im(r)}return o}r=l,l=r.parentNode}return null}function ks(r){return r=r[Qn]||r[ar],!r||r.tag!==5&&r.tag!==6&&r.tag!==13&&r.tag!==3?null:r}function so(r){if(r.tag===5||r.tag===6)return r.stateNode;throw Error(n(33))}function Za(r){return r[bs]||null}var Pc=[],ao=-1;function Or(r){return{current:r}}function tt(r){0>ao||(r.current=Pc[ao],Pc[ao]=null,ao--)}function Ke(r,o){ao++,Pc[ao]=r.current,r.current=o}var Nr={},Lt=Or(Nr),Kt=Or(!1),gi=Nr;function lo(r,o){var l=r.type.contextTypes;if(!l)return Nr;var d=r.stateNode;
vendor: 4,306 bytes, line 39
39if(d&&d.__reactInternalMemoizedUnmaskedChildContext===o)return d.__reactInternalMemoizedMaskedChildContext;var p={},y;for(y in l)p[y]=o[y];return d&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=o,r.__reactInternalMemoizedMaskedChildContext=p),p}function Gt(r){return r=r.childContextTypes,r!=null}function el(){tt(Kt),tt(Lt)}function om(r,o,l){if(Lt.current!==Nr)throw Error(n(168));Ke(Lt,o),Ke(Kt,l)}function sm(r,o,l){var d=r.stateNode;if(o=o.childContextTypes,typeof d.getChildContext!="function")return l;d=d.getChildContext();for(var p in d)if(!(p in o))throw Error(n(108,Pe(r)||"Unknown",p));return P({},l,d)}function tl(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||Nr,gi=Lt.current,Ke(Lt,r),Ke(Kt,Kt.current),!0}function am(r,o,l){var d=r.stateNode;if(!d)throw Error(n(169));l?(r=sm(r,o,gi),d.__reactInternalMemoizedMergedChildContext=r,tt(Kt),tt(Lt),Ke(Lt,r)):tt(Kt),Ke(Kt,l)}var lr=null,nl=!1,Tc=!1;function lm(r){lr===null?lr=[r]:lr.push(r)}function dk(r){nl=!0,lm(r)}function Ar(){if(!Tc&&lr!==null){Tc=!0;var r=0,o=qe;try{var l=lr;for(qe=1;r<l.length;r++){var d=l[r];do d=d(!0);while(d!==null)}lr=null,nl=!1}catch(p){throw lr!==null&&(lr=lr.slice(r+1)),cp(Gu,Ar),p}finally{qe=o,Tc=!1}}return null}var uo=[],co=0,rl=null,il=0,vn=[],wn=0,yi=null,ur=1,cr="";function vi(r,o){uo[co++]=il,uo[co++]=rl,rl=r,il=o}function um(r,o,l){vn[wn++]=ur,vn[wn++]=cr,vn[wn++]=yi,yi=r;var d=ur;r=cr;var p=32-An(d)-1;d&=~(1<<p),l+=1;var y=32-An(o)+p;if(30<y){var b=p-p%5;y=(d&(1<<b)-1).toString(32),d>>=b,p-=b,ur=1<<32-An(o)+p|l<<p|d,cr=y+r}else ur=1<<y|l<<p|d,cr=r}function Rc(r){r.return!==null&&(vi(r,1),um(r,1,0))}function Oc(r){for(;r===rl;)rl=uo[--co],uo[co]=null,il=uo[--co],uo[co]=null;for(;r===yi;)yi=vn[--wn],vn[wn]=null,cr=vn[--wn],vn[wn]=null,ur=vn[--wn],vn[wn]=null}var fn=null,hn=null,nt=!1,Ln=null;function cm(r,o){var l=Sn(5,null,null,0);l.elementType="DELETED",l.stateNode=o,l.return=r,o=r.deletions,o===null?(r.deletions=[l],r.flags|=16):o.push(l)}function dm(r,o){switch(r.tag){case 5:var l=r.type;return o=o.nodeType!==1||l.toLowerCase()!==o.nodeName.toLowerCase()?null:o,o!==null?(r.stateNode=o,fn=r,hn=Rr(o.firstChild),!0):!1;case 6:return o=r.pendingProps===""||o.nodeType!==3?null:o,o!==null?(r.stateNode=o,fn=r,hn=null,!0):!1;case 13:return o=o.nodeType!==8?null:o,o!==null?(l=yi!==null?{id:ur,overflow:cr}:null,r.memoizedState={dehydrated:o,treeContext:l,retryLane:1073741824},l=Sn(18,null,null,0),l.stateNode=o,l.return=r,r.child=l,fn=r,hn=null,!0):!1;default:return!1}}function Nc(r){return(r.mode&1)!==0&&(r.flags&128)===0}function Ac(r){if(nt){var o=hn;if(o){var l=o;if(!dm(r,o)){if(Nc(r))throw Error(n(418));o=Rr(l.nextSibling);var d=fn;o&&dm(r,o)?cm(d,l):(r.flags=r.flags&-4097|2,nt=!1,fn=r)}}else{if(Nc(r))throw Error(n(418));r.flags=r.flags&-4097|2,nt=!1,fn=r}}}function fm(r){for(r=r.return;r!==null&&r.tag!==5&&r.tag!==3&&r.tag!==13;)r=r.return;fn=r}function ol(r){if(r!==fn)return!1;if(!nt)return fm(r),nt=!0,!1;var o;if((o=r.tag!==3)&&!(o=r.tag!==5)&&(o=r.type,o=o!=="head"&&o!=="body"&&!Sc(r.type,r.memoizedProps)),o&&(o=hn)){if(Nc(r))throw hm(),Error(n(418));for(;o;)cm(r,o),o=Rr(o.nextSibling)}if(fm(r),r.tag===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(n(317));e:{for(r=r.nextSibling,o=0;r;){if(r.nodeType===8){var l=r.data;if(l==="/$"){if(o===0){hn=Rr(r.nextSibling);break e}o--}else l!=="$"&&l!=="$!"&&l!=="$?"||o++}r=r.nextSibling}hn=null}}else hn=fn?Rr(r.stateNode.nextSibling):null;return!0}function hm(){for(var r=hn;r;)r=Rr(r.nextSibling)}function fo(){hn=fn=null,nt=!1}function Ic(r){Ln===null?Ln=[r]:Ln.push(r)}var fk=A.ReactCurrentBatchConfig;function Ss(r,o,l){if(r=l.ref,r!==null&&typeof r!="function"&&typeof r!="object"){if(l._owner){if(l=l._owner,l){if(l.tag!==1)throw Error(n(309));var d=l.stateNode}if(!d)throw Error(n(147,r));var p=d,y=""+r;return o!==null&&o.ref!==null&&typeof o.ref=="function"&&o.ref._stringRef===y?o.ref:(o=function(b){var N=p.refs;b===null?delete N[y]:N[y]=b},o._stringRef=y,o)}if(typeof r!="string")throw Error(n(284));if(!l._owner)throw Error(n(290,r))}return r}function sl(r,o){throw r=Object.prototype.toString.call(o),Error(n(31,r==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":r))}function pm(r){var o=r._init;return o(r._payload)}
vendor: 13,085 bytes, line 39
39function mm(r){function o(B,F){if(r){var $=B.deletions;$===null?(B.deletions=[F],B.flags|=16):$.push(F)}}function l(B,F){if(!r)return null;for(;F!==null;)o(B,F),F=F.sibling;return null}function d(B,F){for(B=new Map;F!==null;)F.key!==null?B.set(F.key,F):B.set(F.index,F),F=F.sibling;return B}function p(B,F){return B=Ur(B,F),B.index=0,B.sibling=null,B}function y(B,F,$){return B.index=$,r?($=B.alternate,$!==null?($=$.index,$<F?(B.flags|=2,F):$):(B.flags|=2,F)):(B.flags|=1048576,F)}function b(B){return r&&B.alternate===null&&(B.flags|=2),B}function N(B,F,$,oe){return F===null||F.tag!==6?(F=Ed($,B.mode,oe),F.return=B,F):(F=p(F,$),F.return=B,F)}function I(B,F,$,oe){var ve=$.type;return ve===W?ee(B,F,$.props.children,oe,$.key):F!==null&&(F.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===me&&pm(ve)===F.type)?(oe=p(F,$.props),oe.ref=Ss(B,F,$),oe.return=B,oe):(oe=Ol($.type,$.key,$.props,null,B.mode,oe),oe.ref=Ss(B,F,$),oe.return=B,oe)}function V(B,F,$,oe){return F===null||F.tag!==4||F.stateNode.containerInfo!==$.containerInfo||F.stateNode.implementation!==$.implementation?(F=_d($,B.mode,oe),F.return=B,F):(F=p(F,$.children||[]),F.return=B,F)}function ee(B,F,$,oe,ve){return F===null||F.tag!==7?(F=Ci($,B.mode,oe,ve),F.return=B,F):(F=p(F,$),F.return=B,F)}function ne(B,F,$){if(typeof F=="string"&&F!==""||typeof F=="number")return F=Ed(""+F,B.mode,$),F.return=B,F;if(typeof F=="object"&&F!==null){switch(F.$$typeof){case U:return $=Ol(F.type,F.key,F.props,null,B.mode,$),$.ref=Ss(B,null,F),$.return=B,$;case L:return F=_d(F,B.mode,$),F.return=B,F;case me:var oe=F._init;return ne(B,oe(F._payload),$)}if(On(F)||ue(F))return F=Ci(F,B.mode,$,null),F.return=B,F;sl(B,F)}return null}function Z(B,F,$,oe){var ve=F!==null?F.key:null;if(typeof $=="string"&&$!==""||typeof $=="number")return ve!==null?null:N(B,F,""+$,oe);if(typeof $=="object"&&$!==null){switch($.$$typeof){case U:return $.key===ve?I(B,F,$,oe):null;case L:return $.key===ve?V(B,F,$,oe):null;case me:return ve=$._init,Z(B,F,ve($._payload),oe)}if(On($)||ue($))return ve!==null?null:ee(B,F,$,oe,null);sl(B,$)}return null}function ce(B,F,$,oe,ve){if(typeof oe=="string"&&oe!==""||typeof oe=="number")return B=B.get($)||null,N(F,B,""+oe,ve);if(typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case U:return B=B.get(oe.key===null?$:oe.key)||null,I(F,B,oe,ve);case L:return B=B.get(oe.key===null?$:oe.key)||null,V(F,B,oe,ve);case me:var Ee=oe._init;return ce(B,F,$,Ee(oe._payload),ve)}if(On(oe)||ue(oe))return B=B.get($)||null,ee(F,B,oe,ve,null);sl(F,oe)}return null}function he(B,F,$,oe){for(var ve=null,Ee=null,_e=F,Oe=F=0,Et=null;_e!==null&&Oe<$.length;Oe++){_e.index>Oe?(Et=_e,_e=null):Et=_e.sibling;var $e=Z(B,_e,$[Oe],oe);if($e===null){_e===null&&(_e=Et);break}r&&_e&&$e.alternate===null&&o(B,_e),F=y($e,F,Oe),Ee===null?ve=$e:Ee.sibling=$e,Ee=$e,_e=Et}if(Oe===$.length)return l(B,_e),nt&&vi(B,Oe),ve;if(_e===null){for(;Oe<$.length;Oe++)_e=ne(B,$[Oe],oe),_e!==null&&(F=y(_e,F,Oe),Ee===null?ve=_e:Ee.sibling=_e,Ee=_e);return nt&&vi(B,Oe),ve}for(_e=d(B,_e);Oe<$.length;Oe++)Et=ce(_e,B,Oe,$[Oe],oe),Et!==null&&(r&&Et.alternate!==null&&_e.delete(Et.key===null?Oe:Et.key),F=y(Et,F,Oe),Ee===null?ve=Et:Ee.sibling=Et,Ee=Et);return r&&_e.forEach(function(Br){return o(B,Br)}),nt&&vi(B,Oe),ve}function ye(B,F,$,oe){var ve=ue($);if(typeof ve!="function")throw Error(n(150));if($=ve.call($),$==null)throw Error(n(151));for(var Ee=ve=null,_e=F,Oe=F=0,Et=null,$e=$.next();_e!==null&&!$e.done;Oe++,$e=$.next()){_e.index>Oe?(Et=_e,_e=null):Et=_e.sibling;var Br=Z(B,_e,$e.value,oe);if(Br===null){_e===null&&(_e=Et);break}r&&_e&&Br.alternate===null&&o(B,_e),F=y(Br,F,Oe),Ee===null?ve=Br:Ee.sibling=Br,Ee=Br,_e=Et}if($e.done)return l(B,_e),nt&&vi(B,Oe),ve;if(_e===null){for(;!$e.done;Oe++,$e=$.next())$e=ne(B,$e.value,oe),$e!==null&&(F=y($e,F,Oe),Ee===null?ve=$e:Ee.sibling=$e,Ee=$e);return nt&&vi(B,Oe),ve}for(_e=d(B,_e);!$e.done;Oe++,$e=$.next())$e=ce(_e,B,Oe,$e.value,oe),$e!==null&&(r&&$e.alternate!==null&&_e.delete($e.key===null?Oe:$e.key),F=y($e,F,Oe),Ee===null?ve=$e:Ee.sibling=$e,Ee=$e);return r&&_e.forEach(function(Wk){return o(B,Wk)}),nt&&vi(B,Oe),ve}function ct(B,F,$,oe){if(typeof $=="object"&&$!==null&&$.type===W&&$.key===null&&($=$.props.children),typeof $=="object"&&$!==null){switch($.$$typeof){case U:e:{for(var ve=$.key,Ee=F;Ee!==null;){if(Ee.key===ve){if(ve=$.type,ve===W){if(Ee.tag===7){l(B,Ee.sibling),F=p(Ee,$.props.children),F.return=B,B=F;break e}}else if(Ee.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===me&&pm(ve)===Ee.type){l(B,Ee.sibling),F=p(Ee,$.props),F.ref=Ss(B,Ee,$),F.return=B,B=F;break e}l(B,Ee);break}else o(B,Ee);Ee=Ee.sibling}$.type===W?(F=Ci($.props.children,B.mode,oe,$.key),F.return=B,B=F):(oe=Ol($.type,$.key,$.props,null,B.mode,oe),oe.ref=Ss(B,F,$),oe.return=B,B=oe)}return b(B);case L:e:{for(Ee=$.key;F!==null;){if(F.key===Ee)if(F.tag===4&&F.stateNode.containerInfo===$.containerInfo&&F.stateNode.implementation===$.implementation){l(B,F.sibling),F=p(F,$.children||[]),F.return=B,B=F;break e}else{l(B,F);break}else o(B,F);F=F.sibling}F=_d($,B.mode,oe),F.return=B,B=F}return b(B);case me:return Ee=$._init,ct(B,F,Ee($._payload),oe)}if(On($))return he(B,F,$,oe);if(ue($))return ye(B,F,$,oe);sl(B,$)}return typeof $=="string"&&$!==""||typeof $=="number"?($=""+$,F!==null&&F.tag===6?(l(B,F.sibling),F=p(F,$),F.return=B,B=F):(l(B,F),F=Ed($,B.mode,oe),F.return=B,B=F),b(B)):l(B,F)}return ct}var ho=mm(!0),gm=mm(!1),al=Or(null),ll=null,po=null,Lc=null;function Dc(){Lc=po=ll=null}function Mc(r){var o=al.current;tt(al),r._currentValue=o}function jc(r,o,l){for(;r!==null;){var d=r.alternate;if((r.childLanes&o)!==o?(r.childLanes|=o,d!==null&&(d.childLanes|=o)):d!==null&&(d.childLanes&o)!==o&&(d.childLanes|=o),r===l)break;r=r.return}}function mo(r,o){ll=r,Lc=po=null,r=r.dependencies,r!==null&&r.firstContext!==null&&((r.lanes&o)!==0&&(Xt=!0),r.firstContext=null)}function xn(r){var o=r._currentValue;if(Lc!==r)if(r={context:r,memoizedValue:o,next:null},po===null){if(ll===null)throw Error(n(308));po=r,ll.dependencies={lanes:0,firstContext:r}}else po=po.next=r;return o}var wi=null;function Fc(r){wi===null?wi=[r]:wi.push(r)}function ym(r,o,l,d){var p=o.interleaved;return p===null?(l.next=l,Fc(o)):(l.next=p.next,p.next=l),o.interleaved=l,dr(r,d)}function dr(r,o){r.lanes|=o;var l=r.alternate;for(l!==null&&(l.lanes|=o),l=r,r=r.return;r!==null;)r.childLanes|=o,l=r.alternate,l!==null&&(l.childLanes|=o),l=r,r=r.return;return l.tag===3?l.stateNode:null}var Ir=!1;function zc(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function vm(r,o){r=r.updateQueue,o.updateQueue===r&&(o.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects})}function fr(r,o){return{eventTime:r,lane:o,tag:0,payload:null,callback:null,next:null}}function Lr(r,o,l){var d=r.updateQueue;if(d===null)return null;if(d=d.shared,(Be&2)!==0){var p=d.pending;return p===null?o.next=o:(o.next=p.next,p.next=o),d.pending=o,dr(r,l)}return p=d.interleaved,p===null?(o.next=o,Fc(d)):(o.next=p.next,p.next=o),d.interleaved=o,dr(r,l)}function ul(r,o,l){if(o=o.updateQueue,o!==null&&(o=o.shared,(l&4194240)!==0)){var d=o.lanes;d&=r.pendingLanes,l|=d,o.lanes=l,Zu(r,l)}}function wm(r,o){var l=r.updateQueue,d=r.alternate;if(d!==null&&(d=d.updateQueue,l===d)){var p=null,y=null;if(l=l.firstBaseUpdate,l!==null){do{var b={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};y===null?p=y=b:y=y.next=b,l=l.next}while(l!==null);y===null?p=y=o:y=y.next=o}else p=y=o;l={baseState:d.baseState,firstBaseUpdate:p,lastBaseUpdate:y,shared:d.shared,effects:d.effects},r.updateQueue=l;return}r=l.lastBaseUpdate,r===null?l.firstBaseUpdate=o:r.next=o,l.lastBaseUpdate=o}function cl(r,o,l,d){var p=r.updateQueue;Ir=!1;var y=p.firstBaseUpdate,b=p.lastBaseUpdate,N=p.shared.pending;if(N!==null){p.shared.pending=null;var I=N,V=I.next;I.next=null,b===null?y=V:b.next=V,b=I;var ee=r.alternate;ee!==null&&(ee=ee.updateQueue,N=ee.lastBaseUpdate,N!==b&&(N===null?ee.firstBaseUpdate=V:N.next=V,ee.lastBaseUpdate=I))}if(y!==null){var ne=p.baseState;b=0,ee=V=I=null,N=y;do{var Z=N.lane,ce=N.eventTime;if((d&Z)===Z){ee!==null&&(ee=ee.next={eventTime:ce,lane:0,tag:N.tag,payload:N.payload,callback:N.callback,next:null});e:{var he=r,ye=N;switch(Z=o,ce=l,ye.tag){case 1:if(he=ye.payload,typeof he=="function"){ne=he.call(ce,ne,Z);break e}ne=he;break e;case 3:he.flags=he.flags&-65537|128;case 0:if(he=ye.payload,Z=typeof he=="function"?he.call(ce,ne,Z):he,Z==null)break e;ne=P({},ne,Z);break e;case 2:Ir=!0}}N.callback!==null&&N.lane!==0&&(r.flags|=64,Z=p.effects,Z===null?p.effects=[N]:Z.push(N))}else ce={eventTime:ce,lane:Z,tag:N.tag,payload:N.payload,callback:N.callback,next:null},ee===null?(V=ee=ce,I=ne):ee=ee.next=ce,b|=Z;if(N=N.next,N===null){if(N=p.shared.pending,N===null)break;Z=N,N=Z.next,Z.next=null,p.lastBaseUpdate=Z,p.shared.pending=null}}while(!0);if(ee===null&&(I=ne),p.baseState=I,p.firstBaseUpdate=V,p.lastBaseUpdate=ee,o=p.shared.interleaved,o!==null){p=o;do b|=p.lane,p=p.next;while(p!==o)}else y===null&&(p.shared.lanes=0);ki|=b,r.lanes=b,r.memoizedState=ne}}function xm(r,o,l){if(r=o.effects,o.effects=null,r!==null)for(o=0;o<r.length;o++){var d=r[o],p=d.callback;if(p!==null){if(d.callback=null,d=l,typeof p!="function")throw Error(n(191,p));p.call(d)}}}var Es={},Yn=Or(Es),_s=Or(Es),Cs=Or(Es);function xi(r){if(r===Es)throw Error(n(174));return r}function Uc(r,o){switch(Ke(Cs,o),Ke(_s,r),Ke(Yn,Es),r=o.nodeType,r){case 9:case 11:o=(o=o.documentElement)?o.namespaceURI:se(null,"");break;default:r=r===8?o.parentNode:o,o=r.namespaceURI||null,r=r.tagName,o=se(o,r)}tt(Yn),Ke(Yn,o)}function go(){tt(Yn),tt(_s),tt(Cs)}function bm(r){xi(Cs.current);var o=xi(Yn.current),l=se(o,r.type);o!==l&&(Ke(_s,r),Ke(Yn,l))}function Bc(r){_s.current===r&&(tt(Yn),tt(_s))}var rt=Or(0);function dl(r){for(var o=r;o!==null;){if(o.tag===13){var l=o.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.data==="$!"))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===r)break;for(;o.sibling===null;){if(o.return===null||o.return===r)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var $c=[];function Vc(){for(var r=0;r<$c.length;r++)$c[r]._workInProgressVersionPrimary=null;$c.length=0}var fl=A.ReactCurrentDispatcher,Hc=A.ReactCurrentBatchConfig,bi=0,it=null,vt=null,kt=null,hl=!1,Ps=!1,Ts=0,hk=0;function Dt(){throw Error(n(321))}function Wc(r,o){if(o===null)return!1;for(var l=0;l<o.length&&l<r.length;l++)if(!In(r[l],o[l]))return!1;return!0}function qc(r,o,l,d,p,y){if(bi=y,it=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,fl.current=r===null||r.memoizedState===null?yk:vk,r=l(d,p),Ps){y=0;do{if(Ps=!1,Ts=0,25<=y)throw Error(n(301));y+=1,kt=vt=null,o.updateQueue=null,fl.current=wk,r=l(d,p)}while(Ps)}if(fl.current=gl,o=vt!==null&&vt.next!==null,bi=0,kt=vt=it=null,hl=!1,o)throw Error(n(300));return r}function Qc(){var r=Ts!==0;return Ts=0,r}function Kn(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return kt===null?it.memoizedState=kt=r:kt=kt.next=r,kt}function bn(){if(vt===null){var r=it.alternate;r=r!==null?r.memoizedState:null}else r=vt.next;var o=kt===null?it.memoizedState:kt.next;if(o!==null)kt=o,vt=r;else{if(r===null)throw Error(n(310));vt=r,r={memoizedState:vt.memoizedState,baseState:vt.baseState,baseQueue:vt.baseQueue,queue:vt.queue,next:null},kt===null?it.memoizedState=kt=r:kt=kt.next=r}return kt}function Rs(r,o){return typeof o=="function"?o(r):o}function Yc(r){var o=bn(),l=o.queue;if(l===null)throw Error(n(311));l.lastRenderedReducer=r;var d=vt,p=d.baseQueue,y=l.pending;if(y!==null){if(p!==null){var b=p.next;p.next=y.next,y.next=b}d.baseQueue=p=y,l.pending=null}if(p!==null){y=p.next,d=d.baseState;var N=b=null,I=null,V=y;do{var ee=V.lane;if((bi&ee)===ee)I!==null&&(I=I.next={lane:0,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null}),d=V.hasEagerState?V.eagerState:r(d,V.action);else{var ne={lane:ee,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null};I===null?(N=I=ne,b=d):I=I.next=ne,it.lanes|=ee,ki|=ee}V=V.next}while(V!==null&&V!==y);I===null?b=d:I.next=N,In(d,o.memoizedState)||(Xt=!0),o.memoizedState=d,o.baseState=b,o.baseQueue=I,l.lastRenderedState=d}if(r=l.interleaved,r!==null){p=r;do y=p.lane,it.lanes|=y,ki|=y,p=p.next;while(p!==r)}else p===null&&(l.lanes=0);return[o.memoizedState,l.dispatch]}function Kc(r){var o=bn(),l=o.queue;if(l===null)throw Error(n(311));l.lastRenderedReducer=r;var d=l.dispatch,p=l.pending,y=o.memoizedState;if(p!==null){l.pending=null;var b=p=p.next;do y=r(y,b.action),b=b.next;while(b!==p);In(y,o.memoizedState)||(Xt=!0),o.memoizedState=y,o.baseQueue===null&&(o.baseState=y),l.lastRenderedState=y}return[y,d]}function km(){}function Sm(r,o){var l=it,d=bn(),p=o(),y=!In(d.memoizedState,p);
vendor: 4,461 bytes, line 39
39if(y&&(d.memoizedState=p,Xt=!0),d=d.queue,Gc(Cm.bind(null,l,d,r),[r]),d.getSnapshot!==o||y||kt!==null&&kt.memoizedState.tag&1){if(l.flags|=2048,Os(9,_m.bind(null,l,d,p,o),void 0,null),St===null)throw Error(n(349));(bi&30)!==0||Em(l,o,p)}return p}function Em(r,o,l){r.flags|=16384,r={getSnapshot:o,value:l},o=it.updateQueue,o===null?(o={lastEffect:null,stores:null},it.updateQueue=o,o.stores=[r]):(l=o.stores,l===null?o.stores=[r]:l.push(r))}function _m(r,o,l,d){o.value=l,o.getSnapshot=d,Pm(o)&&Tm(r)}function Cm(r,o,l){return l(function(){Pm(o)&&Tm(r)})}function Pm(r){var o=r.getSnapshot;r=r.value;try{var l=o();return!In(r,l)}catch{return!0}}function Tm(r){var o=dr(r,1);o!==null&&Fn(o,r,1,-1)}function Rm(r){var o=Kn();return typeof r=="function"&&(r=r()),o.memoizedState=o.baseState=r,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Rs,lastRenderedState:r},o.queue=r,r=r.dispatch=gk.bind(null,it,r),[o.memoizedState,r]}function Os(r,o,l,d){return r={tag:r,create:o,destroy:l,deps:d,next:null},o=it.updateQueue,o===null?(o={lastEffect:null,stores:null},it.updateQueue=o,o.lastEffect=r.next=r):(l=o.lastEffect,l===null?o.lastEffect=r.next=r:(d=l.next,l.next=r,r.next=d,o.lastEffect=r)),r}function Om(){return bn().memoizedState}function pl(r,o,l,d){var p=Kn();it.flags|=r,p.memoizedState=Os(1|o,l,void 0,d===void 0?null:d)}function ml(r,o,l,d){var p=bn();d=d===void 0?null:d;var y=void 0;if(vt!==null){var b=vt.memoizedState;if(y=b.destroy,d!==null&&Wc(d,b.deps)){p.memoizedState=Os(o,l,y,d);return}}it.flags|=r,p.memoizedState=Os(1|o,l,y,d)}function Nm(r,o){return pl(8390656,8,r,o)}function Gc(r,o){return ml(2048,8,r,o)}function Am(r,o){return ml(4,2,r,o)}function Im(r,o){return ml(4,4,r,o)}function Lm(r,o){if(typeof o=="function")return r=r(),o(r),function(){o(null)};if(o!=null)return r=r(),o.current=r,function(){o.current=null}}function Dm(r,o,l){return l=l!=null?l.concat([r]):null,ml(4,4,Lm.bind(null,o,r),l)}function Xc(){}function Mm(r,o){var l=bn();o=o===void 0?null:o;var d=l.memoizedState;return d!==null&&o!==null&&Wc(o,d[1])?d[0]:(l.memoizedState=[r,o],r)}function jm(r,o){var l=bn();o=o===void 0?null:o;var d=l.memoizedState;return d!==null&&o!==null&&Wc(o,d[1])?d[0]:(r=r(),l.memoizedState=[r,o],r)}function Fm(r,o,l){return(bi&21)===0?(r.baseState&&(r.baseState=!1,Xt=!0),r.memoizedState=l):(In(l,o)||(l=pp(),it.lanes|=l,ki|=l,r.baseState=!0),o)}function pk(r,o){var l=qe;qe=l!==0&&4>l?l:4,r(!0);var d=Hc.transition;Hc.transition={};try{r(!1),o()}finally{qe=l,Hc.transition=d}}function zm(){return bn().memoizedState}function mk(r,o,l){var d=Fr(r);if(l={lane:d,action:l,hasEagerState:!1,eagerState:null,next:null},Um(r))Bm(o,l);else if(l=ym(r,o,l,d),l!==null){var p=Ht();Fn(l,r,d,p),$m(l,o,d)}}function gk(r,o,l){var d=Fr(r),p={lane:d,action:l,hasEagerState:!1,eagerState:null,next:null};if(Um(r))Bm(o,p);else{var y=r.alternate;if(r.lanes===0&&(y===null||y.lanes===0)&&(y=o.lastRenderedReducer,y!==null))try{var b=o.lastRenderedState,N=y(b,l);if(p.hasEagerState=!0,p.eagerState=N,In(N,b)){var I=o.interleaved;I===null?(p.next=p,Fc(o)):(p.next=I.next,I.next=p),o.interleaved=p;return}}catch{}finally{}l=ym(r,o,p,d),l!==null&&(p=Ht(),Fn(l,r,d,p),$m(l,o,d))}}function Um(r){var o=r.alternate;return r===it||o!==null&&o===it}function Bm(r,o){Ps=hl=!0;var l=r.pending;l===null?o.next=o:(o.next=l.next,l.next=o),r.pending=o}function $m(r,o,l){if((l&4194240)!==0){var d=o.lanes;d&=r.pendingLanes,l|=d,o.lanes=l,Zu(r,l)}}var gl={readContext:xn,useCallback:Dt,useContext:Dt,useEffect:Dt,useImperativeHandle:Dt,useInsertionEffect:Dt,useLayoutEffect:Dt,useMemo:Dt,useReducer:Dt,useRef:Dt,useState:Dt,useDebugValue:Dt,useDeferredValue:Dt,useTransition:Dt,useMutableSource:Dt,useSyncExternalStore:Dt,useId:Dt,unstable_isNewReconciler:!1},yk={readContext:xn,useCallback:function(r,o){return Kn().memoizedState=[r,o===void 0?null:o],r},useContext:xn,useEffect:Nm,useImperativeHandle:function(r,o,l){return l=l!=null?l.concat([r]):null,pl(4194308,4,Lm.bind(null,o,r),l)},useLayoutEffect:function(r,o){return pl(4194308,4,r,o)},useInsertionEffect:function(r,o){return pl(4,2,r,o)},useMemo:function(r,o){var l=Kn();return o=o===void 0?null:o,r=r(),l.memoizedState=[r,o],r},useReducer:function(r,o,l){var d=Kn();return o=l!==void 0?l(o):o,d.memoizedState=d.baseState=o,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:o},d.queue=r,r=r.dispatch=mk.bind(null,it,r),[d.memoizedState,r]}
vendor: 5,240 bytes, lines 39-41
39,useRef:function(r){var o=Kn();return r={current:r},o.memoizedState=r},useState:Rm,useDebugValue:Xc,useDeferredValue:function(r){return Kn().memoizedState=r},useTransition:function(){var r=Rm(!1),o=r[0];return r=pk.bind(null,r[1]),Kn().memoizedState=r,[o,r]},useMutableSource:function(){},useSyncExternalStore:function(r,o,l){var d=it,p=Kn();if(nt){if(l===void 0)throw Error(n(407));l=l()}else{if(l=o(),St===null)throw Error(n(349));(bi&30)!==0||Em(d,o,l)}p.memoizedState=l;var y={value:l,getSnapshot:o};return p.queue=y,Nm(Cm.bind(null,d,y,r),[r]),d.flags|=2048,Os(9,_m.bind(null,d,y,l,o),void 0,null),l},useId:function(){var r=Kn(),o=St.identifierPrefix;if(nt){var l=cr,d=ur;l=(d&~(1<<32-An(d)-1)).toString(32)+l,o=":"+o+"R"+l,l=Ts++,0<l&&(o+="H"+l.toString(32)),o+=":"}else l=hk++,o=":"+o+"r"+l.toString(32)+":";return r.memoizedState=o},unstable_isNewReconciler:!1},vk={readContext:xn,useCallback:Mm,useContext:xn,useEffect:Gc,useImperativeHandle:Dm,useInsertionEffect:Am,useLayoutEffect:Im,useMemo:jm,useReducer:Yc,useRef:Om,useState:function(){return Yc(Rs)},useDebugValue:Xc,useDeferredValue:function(r){var o=bn();return Fm(o,vt.memoizedState,r)},useTransition:function(){var r=Yc(Rs)[0],o=bn().memoizedState;return[r,o]},useMutableSource:km,useSyncExternalStore:Sm,useId:zm,unstable_isNewReconciler:!1},wk={readContext:xn,useCallback:Mm,useContext:xn,useEffect:Gc,useImperativeHandle:Dm,useInsertionEffect:Am,useLayoutEffect:Im,useMemo:jm,useReducer:Kc,useRef:Om,useState:function(){return Kc(Rs)},useDebugValue:Xc,useDeferredValue:function(r){var o=bn();return vt===null?o.memoizedState=r:Fm(o,vt.memoizedState,r)},useTransition:function(){var r=Kc(Rs)[0],o=bn().memoizedState;return[r,o]},useMutableSource:km,useSyncExternalStore:Sm,useId:zm,unstable_isNewReconciler:!1};function Dn(r,o){if(r&&r.defaultProps){o=P({},o),r=r.defaultProps;for(var l in r)o[l]===void 0&&(o[l]=r[l]);return o}return o}function Jc(r,o,l,d){o=r.memoizedState,l=l(d,o),l=l==null?o:P({},o,l),r.memoizedState=l,r.lanes===0&&(r.updateQueue.baseState=l)}var yl={isMounted:function(r){return(r=r._reactInternals)?pi(r)===r:!1},enqueueSetState:function(r,o,l){r=r._reactInternals;var d=Ht(),p=Fr(r),y=fr(d,p);y.payload=o,l!=null&&(y.callback=l),o=Lr(r,y,p),o!==null&&(Fn(o,r,p,d),ul(o,r,p))},enqueueReplaceState:function(r,o,l){r=r._reactInternals;var d=Ht(),p=Fr(r),y=fr(d,p);y.tag=1,y.payload=o,l!=null&&(y.callback=l),o=Lr(r,y,p),o!==null&&(Fn(o,r,p,d),ul(o,r,p))},enqueueForceUpdate:function(r,o){r=r._reactInternals;var l=Ht(),d=Fr(r),p=fr(l,d);p.tag=2,o!=null&&(p.callback=o),o=Lr(r,p,d),o!==null&&(Fn(o,r,d,l),ul(o,r,d))}};function Vm(r,o,l,d,p,y,b){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(d,y,b):o.prototype&&o.prototype.isPureReactComponent?!gs(l,d)||!gs(p,y):!0}function Hm(r,o,l){var d=!1,p=Nr,y=o.contextType;return typeof y=="object"&&y!==null?y=xn(y):(p=Gt(o)?gi:Lt.current,d=o.contextTypes,y=(d=d!=null)?lo(r,p):Nr),o=new o(l,y),r.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=yl,r.stateNode=o,o._reactInternals=r,d&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=p,r.__reactInternalMemoizedMaskedChildContext=y),o}function Wm(r,o,l,d){r=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(l,d),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(l,d),o.state!==r&&yl.enqueueReplaceState(o,o.state,null)}function Zc(r,o,l,d){var p=r.stateNode;p.props=l,p.state=r.memoizedState,p.refs={},zc(r);var y=o.contextType;typeof y=="object"&&y!==null?p.context=xn(y):(y=Gt(o)?gi:Lt.current,p.context=lo(r,y)),p.state=r.memoizedState,y=o.getDerivedStateFromProps,typeof y=="function"&&(Jc(r,o,y,l),p.state=r.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(o=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),o!==p.state&&yl.enqueueReplaceState(p,p.state,null),cl(r,l,p,d),p.state=r.memoizedState),typeof p.componentDidMount=="function"&&(r.flags|=4194308)}function yo(r,o){try{var l="",d=o;do l+=xe(d),d=d.return;while(d);var p=l}catch(y){p=`
40Error generating stack: `+y.message+`
41`+y.stack}return{value:r,source:o,stack:p,digest:null}}function ed(r,o,l){return{value:r,source:null,stack:l??null,digest:o??null}}function td(r,o){try{console.error(o.value)}catch(l){setTimeout(function(){throw l})}}var xk=typeof WeakMap=="function"?WeakMap:Map;function qm(r,o,l){l=fr(-1,l),l.tag=3,l.payload={element:null};var d=o.value;return l.callback=function(){El||(El=!0,gd=d),td(r,o)},l}function Qm(r,o,l){l=fr(-1,l),l.tag=3;var d=r.type.getDerivedStateFromError;if(typeof d=="function"){var p=o.value;l.payload=function(){return d(p)},l.callback=function(){td(r,o)}}var y=r.stateNode;return y!==null&&typeof y.componentDidCatch=="function"&&(l.callback=function(){td(r,o),typeof d!="function"&&(Mr===null?Mr=new Set([this]):Mr.add(this));var b=o.stack;this.componentDidCatch(o.value,{componentStack:b!==null?b:""})}),l}function Ym(r,o,l){var d=r.pingCache;
vendor: 41,347 bytes, line 41
41if(d===null){d=r.pingCache=new xk;var p=new Set;d.set(o,p)}else p=d.get(o),p===void 0&&(p=new Set,d.set(o,p));p.has(l)||(p.add(l),r=Lk.bind(null,r,o,l),o.then(r,r))}function Km(r){do{var o;if((o=r.tag===13)&&(o=r.memoizedState,o=o!==null?o.dehydrated!==null:!0),o)return r;r=r.return}while(r!==null);return null}function Gm(r,o,l,d,p){return(r.mode&1)===0?(r===o?r.flags|=65536:(r.flags|=128,l.flags|=131072,l.flags&=-52805,l.tag===1&&(l.alternate===null?l.tag=17:(o=fr(-1,1),o.tag=2,Lr(l,o,1))),l.lanes|=1),r):(r.flags|=65536,r.lanes=p,r)}var bk=A.ReactCurrentOwner,Xt=!1;function Vt(r,o,l,d){o.child=r===null?gm(o,null,l,d):ho(o,r.child,l,d)}function Xm(r,o,l,d,p){l=l.render;var y=o.ref;return mo(o,p),d=qc(r,o,l,d,y,p),l=Qc(),r!==null&&!Xt?(o.updateQueue=r.updateQueue,o.flags&=-2053,r.lanes&=~p,hr(r,o,p)):(nt&&l&&Rc(o),o.flags|=1,Vt(r,o,d,p),o.child)}function Jm(r,o,l,d,p){if(r===null){var y=l.type;return typeof y=="function"&&!Sd(y)&&y.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(o.tag=15,o.type=y,Zm(r,o,y,d,p)):(r=Ol(l.type,null,d,o,o.mode,p),r.ref=o.ref,r.return=o,o.child=r)}if(y=r.child,(r.lanes&p)===0){var b=y.memoizedProps;if(l=l.compare,l=l!==null?l:gs,l(b,d)&&r.ref===o.ref)return hr(r,o,p)}return o.flags|=1,r=Ur(y,d),r.ref=o.ref,r.return=o,o.child=r}function Zm(r,o,l,d,p){if(r!==null){var y=r.memoizedProps;if(gs(y,d)&&r.ref===o.ref)if(Xt=!1,o.pendingProps=d=y,(r.lanes&p)!==0)(r.flags&131072)!==0&&(Xt=!0);else return o.lanes=r.lanes,hr(r,o,p)}return nd(r,o,l,d,p)}function eg(r,o,l){var d=o.pendingProps,p=d.children,y=r!==null?r.memoizedState:null;if(d.mode==="hidden")if((o.mode&1)===0)o.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ke(wo,pn),pn|=l;else{if((l&1073741824)===0)return r=y!==null?y.baseLanes|l:l,o.lanes=o.childLanes=1073741824,o.memoizedState={baseLanes:r,cachePool:null,transitions:null},o.updateQueue=null,Ke(wo,pn),pn|=r,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},d=y!==null?y.baseLanes:l,Ke(wo,pn),pn|=d}else y!==null?(d=y.baseLanes|l,o.memoizedState=null):d=l,Ke(wo,pn),pn|=d;return Vt(r,o,p,l),o.child}function tg(r,o){var l=o.ref;(r===null&&l!==null||r!==null&&r.ref!==l)&&(o.flags|=512,o.flags|=2097152)}function nd(r,o,l,d,p){var y=Gt(l)?gi:Lt.current;return y=lo(o,y),mo(o,p),l=qc(r,o,l,d,y,p),d=Qc(),r!==null&&!Xt?(o.updateQueue=r.updateQueue,o.flags&=-2053,r.lanes&=~p,hr(r,o,p)):(nt&&d&&Rc(o),o.flags|=1,Vt(r,o,l,p),o.child)}function ng(r,o,l,d,p){if(Gt(l)){var y=!0;tl(o)}else y=!1;if(mo(o,p),o.stateNode===null)wl(r,o),Hm(o,l,d),Zc(o,l,d,p),d=!0;else if(r===null){var b=o.stateNode,N=o.memoizedProps;b.props=N;var I=b.context,V=l.contextType;typeof V=="object"&&V!==null?V=xn(V):(V=Gt(l)?gi:Lt.current,V=lo(o,V));var ee=l.getDerivedStateFromProps,ne=typeof ee=="function"||typeof b.getSnapshotBeforeUpdate=="function";ne||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(N!==d||I!==V)&&Wm(o,b,d,V),Ir=!1;var Z=o.memoizedState;b.state=Z,cl(o,d,b,p),I=o.memoizedState,N!==d||Z!==I||Kt.current||Ir?(typeof ee=="function"&&(Jc(o,l,ee,d),I=o.memoizedState),(N=Ir||Vm(o,l,N,d,Z,I,V))?(ne||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount()),typeof b.componentDidMount=="function"&&(o.flags|=4194308)):(typeof b.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=d,o.memoizedState=I),b.props=d,b.state=I,b.context=V,d=N):(typeof b.componentDidMount=="function"&&(o.flags|=4194308),d=!1)}else{b=o.stateNode,vm(r,o),N=o.memoizedProps,V=o.type===o.elementType?N:Dn(o.type,N),b.props=V,ne=o.pendingProps,Z=b.context,I=l.contextType,typeof I=="object"&&I!==null?I=xn(I):(I=Gt(l)?gi:Lt.current,I=lo(o,I));var ce=l.getDerivedStateFromProps;(ee=typeof ce=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(N!==ne||Z!==I)&&Wm(o,b,d,I),Ir=!1,Z=o.memoizedState,b.state=Z,cl(o,d,b,p);var he=o.memoizedState;N!==ne||Z!==he||Kt.current||Ir?(typeof ce=="function"&&(Jc(o,l,ce,d),he=o.memoizedState),(V=Ir||Vm(o,l,V,d,Z,he,I)||!1)?(ee||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(d,he,I),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(d,he,I)),typeof b.componentDidUpdate=="function"&&(o.flags|=4),typeof b.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof b.componentDidUpdate!="function"||N===r.memoizedProps&&Z===r.memoizedState||(o.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||N===r.memoizedProps&&Z===r.memoizedState||(o.flags|=1024),o.memoizedProps=d,o.memoizedState=he),b.props=d,b.state=he,b.context=I,d=V):(typeof b.componentDidUpdate!="function"||N===r.memoizedProps&&Z===r.memoizedState||(o.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||N===r.memoizedProps&&Z===r.memoizedState||(o.flags|=1024),d=!1)}return rd(r,o,l,d,y,p)}function rd(r,o,l,d,p,y){tg(r,o);var b=(o.flags&128)!==0;if(!d&&!b)return p&&am(o,l,!1),hr(r,o,y);d=o.stateNode,bk.current=o;var N=b&&typeof l.getDerivedStateFromError!="function"?null:d.render();return o.flags|=1,r!==null&&b?(o.child=ho(o,r.child,null,y),o.child=ho(o,null,N,y)):Vt(r,o,N,y),o.memoizedState=d.state,p&&am(o,l,!0),o.child}function rg(r){var o=r.stateNode;o.pendingContext?om(r,o.pendingContext,o.pendingContext!==o.context):o.context&&om(r,o.context,!1),Uc(r,o.containerInfo)}function ig(r,o,l,d,p){return fo(),Ic(p),o.flags|=256,Vt(r,o,l,d),o.child}var id={dehydrated:null,treeContext:null,retryLane:0};function od(r){return{baseLanes:r,cachePool:null,transitions:null}}function og(r,o,l){var d=o.pendingProps,p=rt.current,y=!1,b=(o.flags&128)!==0,N;if((N=b)||(N=r!==null&&r.memoizedState===null?!1:(p&2)!==0),N?(y=!0,o.flags&=-129):(r===null||r.memoizedState!==null)&&(p|=1),Ke(rt,p&1),r===null)return Ac(o),r=o.memoizedState,r!==null&&(r=r.dehydrated,r!==null)?((o.mode&1)===0?o.lanes=1:r.data==="$!"?o.lanes=8:o.lanes=1073741824,null):(b=d.children,r=d.fallback,y?(d=o.mode,y=o.child,b={mode:"hidden",children:b},(d&1)===0&&y!==null?(y.childLanes=0,y.pendingProps=b):y=Nl(b,d,0,null),r=Ci(r,d,l,null),y.return=o,r.return=o,y.sibling=r,o.child=y,o.child.memoizedState=od(l),o.memoizedState=id,r):sd(o,b));if(p=r.memoizedState,p!==null&&(N=p.dehydrated,N!==null))return kk(r,o,b,d,N,p,l);if(y){y=d.fallback,b=o.mode,p=r.child,N=p.sibling;var I={mode:"hidden",children:d.children};return(b&1)===0&&o.child!==p?(d=o.child,d.childLanes=0,d.pendingProps=I,o.deletions=null):(d=Ur(p,I),d.subtreeFlags=p.subtreeFlags&14680064),N!==null?y=Ur(N,y):(y=Ci(y,b,l,null),y.flags|=2),y.return=o,d.return=o,d.sibling=y,o.child=d,d=y,y=o.child,b=r.child.memoizedState,b=b===null?od(l):{baseLanes:b.baseLanes|l,cachePool:null,transitions:b.transitions},y.memoizedState=b,y.childLanes=r.childLanes&~l,o.memoizedState=id,d}return y=r.child,r=y.sibling,d=Ur(y,{mode:"visible",children:d.children}),(o.mode&1)===0&&(d.lanes=l),d.return=o,d.sibling=null,r!==null&&(l=o.deletions,l===null?(o.deletions=[r],o.flags|=16):l.push(r)),o.child=d,o.memoizedState=null,d}function sd(r,o){return o=Nl({mode:"visible",children:o},r.mode,0,null),o.return=r,r.child=o}function vl(r,o,l,d){return d!==null&&Ic(d),ho(o,r.child,null,l),r=sd(o,o.pendingProps.children),r.flags|=2,o.memoizedState=null,r}function kk(r,o,l,d,p,y,b){if(l)return o.flags&256?(o.flags&=-257,d=ed(Error(n(422))),vl(r,o,b,d)):o.memoizedState!==null?(o.child=r.child,o.flags|=128,null):(y=d.fallback,p=o.mode,d=Nl({mode:"visible",children:d.children},p,0,null),y=Ci(y,p,b,null),y.flags|=2,d.return=o,y.return=o,d.sibling=y,o.child=d,(o.mode&1)!==0&&ho(o,r.child,null,b),o.child.memoizedState=od(b),o.memoizedState=id,y);if((o.mode&1)===0)return vl(r,o,b,null);if(p.data==="$!"){if(d=p.nextSibling&&p.nextSibling.dataset,d)var N=d.dgst;return d=N,y=Error(n(419)),d=ed(y,d,void 0),vl(r,o,b,d)}if(N=(b&r.childLanes)!==0,Xt||N){if(d=St,d!==null){switch(b&-b){case 4:p=2;break;case 16:p=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:p=32;break;case 536870912:p=268435456;break;default:p=0}p=(p&(d.suspendedLanes|b))!==0?0:p,p!==0&&p!==y.retryLane&&(y.retryLane=p,dr(r,p),Fn(d,r,p,-1))}return kd(),d=ed(Error(n(421))),vl(r,o,b,d)}return p.data==="$?"?(o.flags|=128,o.child=r.child,o=Dk.bind(null,r),p._reactRetry=o,null):(r=y.treeContext,hn=Rr(p.nextSibling),fn=o,nt=!0,Ln=null,r!==null&&(vn[wn++]=ur,vn[wn++]=cr,vn[wn++]=yi,ur=r.id,cr=r.overflow,yi=o),o=sd(o,d.children),o.flags|=4096,o)}function sg(r,o,l){r.lanes|=o;var d=r.alternate;d!==null&&(d.lanes|=o),jc(r.return,o,l)}function ad(r,o,l,d,p){var y=r.memoizedState;y===null?r.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:d,tail:l,tailMode:p}:(y.isBackwards=o,y.rendering=null,y.renderingStartTime=0,y.last=d,y.tail=l,y.tailMode=p)}function ag(r,o,l){var d=o.pendingProps,p=d.revealOrder,y=d.tail;if(Vt(r,o,d.children,l),d=rt.current,(d&2)!==0)d=d&1|2,o.flags|=128;else{if(r!==null&&(r.flags&128)!==0)e:for(r=o.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&sg(r,l,o);else if(r.tag===19)sg(r,l,o);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===o)break e;for(;r.sibling===null;){if(r.return===null||r.return===o)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}d&=1}if(Ke(rt,d),(o.mode&1)===0)o.memoizedState=null;else switch(p){case"forwards":for(l=o.child,p=null;l!==null;)r=l.alternate,r!==null&&dl(r)===null&&(p=l),l=l.sibling;l=p,l===null?(p=o.child,o.child=null):(p=l.sibling,l.sibling=null),ad(o,!1,p,l,y);break;case"backwards":for(l=null,p=o.child,o.child=null;p!==null;){if(r=p.alternate,r!==null&&dl(r)===null){o.child=p;break}r=p.sibling,p.sibling=l,l=p,p=r}ad(o,!0,l,null,y);break;case"together":ad(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function wl(r,o){(o.mode&1)===0&&r!==null&&(r.alternate=null,o.alternate=null,o.flags|=2)}function hr(r,o,l){if(r!==null&&(o.dependencies=r.dependencies),ki|=o.lanes,(l&o.childLanes)===0)return null;if(r!==null&&o.child!==r.child)throw Error(n(153));if(o.child!==null){for(r=o.child,l=Ur(r,r.pendingProps),o.child=l,l.return=o;r.sibling!==null;)r=r.sibling,l=l.sibling=Ur(r,r.pendingProps),l.return=o;l.sibling=null}return o.child}function Sk(r,o,l){switch(o.tag){case 3:rg(o),fo();break;case 5:bm(o);break;case 1:Gt(o.type)&&tl(o);break;case 4:Uc(o,o.stateNode.containerInfo);break;case 10:var d=o.type._context,p=o.memoizedProps.value;Ke(al,d._currentValue),d._currentValue=p;break;case 13:if(d=o.memoizedState,d!==null)return d.dehydrated!==null?(Ke(rt,rt.current&1),o.flags|=128,null):(l&o.child.childLanes)!==0?og(r,o,l):(Ke(rt,rt.current&1),r=hr(r,o,l),r!==null?r.sibling:null);Ke(rt,rt.current&1);break;case 19:if(d=(l&o.childLanes)!==0,(r.flags&128)!==0){if(d)return ag(r,o,l);o.flags|=128}if(p=o.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),Ke(rt,rt.current),d)break;return null;case 22:case 23:return o.lanes=0,eg(r,o,l)}return hr(r,o,l)}var lg,ld,ug,cg;lg=function(r,o){for(var l=o.child;l!==null;){if(l.tag===5||l.tag===6)r.appendChild(l.stateNode);else if(l.tag!==4&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===o)break;for(;l.sibling===null;){if(l.return===null||l.return===o)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},ld=function(){},ug=function(r,o,l,d){var p=r.memoizedProps;if(p!==d){r=o.stateNode,xi(Yn.current);var y=null;switch(l){case"input":p=Qt(r,p),d=Qt(r,d),y=[];break;case"select":p=P({},p,{value:void 0}),d=P({},d,{value:void 0}),y=[];break;case"textarea":p=Nn(r,p),d=Nn(r,d),y=[];break;default:typeof p.onClick!="function"&&typeof d.onClick=="function"&&(r.onclick=Ja)}Tt(l,d);var b;l=null;for(V in p)if(!d.hasOwnProperty(V)&&p.hasOwnProperty(V)&&p[V]!=null)if(V==="style"){var N=p[V];for(b in N)N.hasOwnProperty(b)&&(l||(l={}),l[b]="")}else V!=="dangerouslySetInnerHTML"&&V!=="children"&&V!=="suppressContentEditableWarning"&&V!=="suppressHydrationWarning"&&V!=="autoFocus"&&(s.hasOwnProperty(V)?y||(y=[]):(y=y||[]).push(V,null));for(V in d){var I=d[V];if(N=p!=null?p[V]:void 0,d.hasOwnProperty(V)&&I!==N&&(I!=null||N!=null))if(V==="style")if(N){for(b in N)!N.hasOwnProperty(b)||I&&I.hasOwnProperty(b)||(l||(l={}),l[b]="");for(b in I)I.hasOwnProperty(b)&&N[b]!==I[b]&&(l||(l={}),l[b]=I[b])}else l||(y||(y=[]),y.push(V,l)),l=I;else V==="dangerouslySetInnerHTML"?(I=I?I.__html:void 0,N=N?N.__html:void 0,I!=null&&N!==I&&(y=y||[]).push(V,I)):V==="children"?typeof I!="string"&&typeof I!="number"||(y=y||[]).push(V,""+I):V!=="suppressContentEditableWarning"&&V!=="suppressHydrationWarning"&&(s.hasOwnProperty(V)?(I!=null&&V==="onScroll"&&et("scroll",r),y||N===I||(y=[])):(y=y||[]).push(V,I))}l&&(y=y||[]).push("style",l);var V=y;(o.updateQueue=V)&&(o.flags|=4)}},cg=function(r,o,l,d){l!==d&&(o.flags|=4)};function Ns(r,o){if(!nt)switch(r.tailMode){case"hidden":o=r.tail;for(var l=null;o!==null;)o.alternate!==null&&(l=o),o=o.sibling;l===null?r.tail=null:l.sibling=null;break;case"collapsed":l=r.tail;for(var d=null;l!==null;)l.alternate!==null&&(d=l),l=l.sibling;d===null?o||r.tail===null?r.tail=null:r.tail.sibling=null:d.sibling=null}}function Mt(r){var o=r.alternate!==null&&r.alternate.child===r.child,l=0,d=0;if(o)for(var p=r.child;p!==null;)l|=p.lanes|p.childLanes,d|=p.subtreeFlags&14680064,d|=p.flags&14680064,p.return=r,p=p.sibling;else for(p=r.child;p!==null;)l|=p.lanes|p.childLanes,d|=p.subtreeFlags,d|=p.flags,p.return=r,p=p.sibling;return r.subtreeFlags|=d,r.childLanes=l,o}function Ek(r,o,l){var d=o.pendingProps;switch(Oc(o),o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Mt(o),null;case 1:return Gt(o.type)&&el(),Mt(o),null;case 3:return d=o.stateNode,go(),tt(Kt),tt(Lt),Vc(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(r===null||r.child===null)&&(ol(o)?o.flags|=4:r===null||r.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,Ln!==null&&(wd(Ln),Ln=null))),ld(r,o),Mt(o),null;case 5:Bc(o);var p=xi(Cs.current);if(l=o.type,r!==null&&o.stateNode!=null)ug(r,o,l,d,p),r.ref!==o.ref&&(o.flags|=512,o.flags|=2097152);else{if(!d){if(o.stateNode===null)throw Error(n(166));return Mt(o),null}if(r=xi(Yn.current),ol(o)){d=o.stateNode,l=o.type;var y=o.memoizedProps;switch(d[Qn]=o,d[bs]=y,r=(o.mode&1)!==0,l){case"dialog":et("cancel",d),et("close",d);break;case"iframe":case"object":case"embed":et("load",d);break;case"video":case"audio":for(p=0;p<vs.length;p++)et(vs[p],d);break;case"source":et("error",d);break;case"img":case"image":case"link":et("error",d),et("load",d);break;case"details":et("toggle",d);break;case"input":$t(d,y),et("invalid",d);break;case"select":d._wrapperState={wasMultiple:!!y.multiple},et("invalid",d);break;case"textarea":Ta(d,y),et("invalid",d)}Tt(l,y),p=null;for(var b in y)if(y.hasOwnProperty(b)){var N=y[b];b==="children"?typeof N=="string"?d.textContent!==N&&(y.suppressHydrationWarning!==!0&&Xa(d.textContent,N,r),p=["children",N]):typeof N=="number"&&d.textContent!==""+N&&(y.suppressHydrationWarning!==!0&&Xa(d.textContent,N,r),p=["children",""+N]):s.hasOwnProperty(b)&&N!=null&&b==="onScroll"&&et("scroll",d)}switch(l){case"input":Ct(d),un(d,y,!0);break;case"textarea":Ct(d),Oa(d);break;case"select":case"option":break;default:typeof y.onClick=="function"&&(d.onclick=Ja)}d=p,o.updateQueue=d,d!==null&&(o.flags|=4)}else{b=p.nodeType===9?p:p.ownerDocument,r==="http://www.w3.org/1999/xhtml"&&(r=Y(l)),r==="http://www.w3.org/1999/xhtml"?l==="script"?(r=b.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild)):typeof d.is=="string"?r=b.createElement(l,{is:d.is}):(r=b.createElement(l),l==="select"&&(b=r,d.multiple?b.multiple=!0:d.size&&(b.size=d.size))):r=b.createElementNS(r,l),r[Qn]=o,r[bs]=d,lg(r,o,!1,!1),o.stateNode=r;e:{switch(b=Wn(l,d),l){case"dialog":et("cancel",r),et("close",r),p=d;break;case"iframe":case"object":case"embed":et("load",r),p=d;break;case"video":case"audio":for(p=0;p<vs.length;p++)et(vs[p],r);p=d;break;case"source":et("error",r),p=d;break;case"img":case"image":case"link":et("error",r),et("load",r),p=d;break;case"details":et("toggle",r),p=d;break;case"input":$t(r,d),p=Qt(r,d),et("invalid",r);break;case"option":p=d;break;case"select":r._wrapperState={wasMultiple:!!d.multiple},p=P({},d,{value:void 0}),et("invalid",r);break;case"textarea":Ta(r,d),p=Nn(r,d),et("invalid",r);break;default:p=d}Tt(l,p),N=p;for(y in N)if(N.hasOwnProperty(y)){var I=N[y];y==="style"?kr(r,I):y==="dangerouslySetInnerHTML"?(I=I?I.__html:void 0,I!=null&&De(r,I)):y==="children"?typeof I=="string"?(l!=="textarea"||I!=="")&&Ue(r,I):typeof I=="number"&&Ue(r,""+I):y!=="suppressContentEditableWarning"&&y!=="suppressHydrationWarning"&&y!=="autoFocus"&&(s.hasOwnProperty(y)?I!=null&&y==="onScroll"&&et("scroll",r):I!=null&&T(r,y,I,b))}switch(l){case"input":Ct(r),un(r,d,!1);break;case"textarea":Ct(r),Oa(r);break;case"option":d.value!=null&&r.setAttribute("value",""+Ae(d.value));break;case"select":r.multiple=!!d.multiple,y=d.value,y!=null?Hn(r,!!d.multiple,y,!1):d.defaultValue!=null&&Hn(r,!!d.multiple,d.defaultValue,!0);break;default:typeof p.onClick=="function"&&(r.onclick=Ja)}switch(l){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}}d&&(o.flags|=4)}o.ref!==null&&(o.flags|=512,o.flags|=2097152)}return Mt(o),null;case 6:if(r&&o.stateNode!=null)cg(r,o,r.memoizedProps,d);else{if(typeof d!="string"&&o.stateNode===null)throw Error(n(166));if(l=xi(Cs.current),xi(Yn.current),ol(o)){if(d=o.stateNode,l=o.memoizedProps,d[Qn]=o,(y=d.nodeValue!==l)&&(r=fn,r!==null))switch(r.tag){case 3:Xa(d.nodeValue,l,(r.mode&1)!==0);break;case 5:r.memoizedProps.suppressHydrationWarning!==!0&&Xa(d.nodeValue,l,(r.mode&1)!==0)}y&&(o.flags|=4)}else d=(l.nodeType===9?l:l.ownerDocument).createTextNode(d),d[Qn]=o,o.stateNode=d}return Mt(o),null;case 13:if(tt(rt),d=o.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(nt&&hn!==null&&(o.mode&1)!==0&&(o.flags&128)===0)hm(),fo(),o.flags|=98560,y=!1;else if(y=ol(o),d!==null&&d.dehydrated!==null){if(r===null){if(!y)throw Error(n(318));if(y=o.memoizedState,y=y!==null?y.dehydrated:null,!y)throw Error(n(317));y[Qn]=o}else fo(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;Mt(o),y=!1}else Ln!==null&&(wd(Ln),Ln=null),y=!0;if(!y)return o.flags&65536?o:null}return(o.flags&128)!==0?(o.lanes=l,o):(d=d!==null,d!==(r!==null&&r.memoizedState!==null)&&d&&(o.child.flags|=8192,(o.mode&1)!==0&&(r===null||(rt.current&1)!==0?wt===0&&(wt=3):kd())),o.updateQueue!==null&&(o.flags|=4),Mt(o),null);case 4:return go(),ld(r,o),r===null&&ws(o.stateNode.containerInfo),Mt(o),null;case 10:return Mc(o.type._context),Mt(o),null;case 17:return Gt(o.type)&&el(),Mt(o),null;case 19:if(tt(rt),y=o.memoizedState,y===null)return Mt(o),null;if(d=(o.flags&128)!==0,b=y.rendering,b===null)if(d)Ns(y,!1);else{if(wt!==0||r!==null&&(r.flags&128)!==0)for(r=o.child;r!==null;){if(b=dl(r),b!==null){for(o.flags|=128,Ns(y,!1),d=b.updateQueue,d!==null&&(o.updateQueue=d,o.flags|=4),o.subtreeFlags=0,d=l,l=o.child;l!==null;)y=l,r=d,y.flags&=14680066,b=y.alternate,b===null?(y.childLanes=0,y.lanes=r,y.child=null,y.subtreeFlags=0,y.memoizedProps=null,y.memoizedState=null,y.updateQueue=null,y.dependencies=null,y.stateNode=null):(y.childLanes=b.childLanes,y.lanes=b.lanes,y.child=b.child,y.subtreeFlags=0,y.deletions=null,y.memoizedProps=b.memoizedProps,y.memoizedState=b.memoizedState,y.updateQueue=b.updateQueue,y.type=b.type,r=b.dependencies,y.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),l=l.sibling;return Ke(rt,rt.current&1|2),o.child}r=r.sibling}y.tail!==null&&ut()>xo&&(o.flags|=128,d=!0,Ns(y,!1),o.lanes=4194304)}else{if(!d)if(r=dl(b),r!==null){if(o.flags|=128,d=!0,l=r.updateQueue,l!==null&&(o.updateQueue=l,o.flags|=4),Ns(y,!0),y.tail===null&&y.tailMode==="hidden"&&!b.alternate&&!nt)return Mt(o),null}else 2*ut()-y.renderingStartTime>xo&&l!==1073741824&&(o.flags|=128,d=!0,Ns(y,!1),o.lanes=4194304);y.isBackwards?(b.sibling=o.child,o.child=b):(l=y.last,l!==null?l.sibling=b:o.child=b,y.last=b)}return y.tail!==null?(o=y.tail,y.rendering=o,y.tail=o.sibling,y.renderingStartTime=ut(),o.sibling=null,l=rt.current,Ke(rt,d?l&1|2:l&1),o):(Mt(o),null);case 22:case 23:return bd(),d=o.memoizedState!==null,r!==null&&r.memoizedState!==null!==d&&(o.flags|=8192),d&&(o.mode&1)!==0?(pn&1073741824)!==0&&(Mt(o),o.subtreeFlags&6&&(o.flags|=8192)):Mt(o),null;case 24:return null;case 25:return null}throw Error(n(156,o.tag))}function _k(r,o){switch(Oc(o),o.tag){case 1:return Gt(o.type)&&el(),r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 3:return go(),tt(Kt),tt(Lt),Vc(),r=o.flags,(r&65536)!==0&&(r&128)===0?(o.flags=r&-65537|128,o):null;case 5:return Bc(o),null;case 13:if(tt(rt),r=o.memoizedState,r!==null&&r.dehydrated!==null){if(o.alternate===null)throw Error(n(340));fo()}return r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 19:return tt(rt),null;case 4:return go(),null;case 10:return Mc(o.type._context),null;case 22:case 23:return bd(),null;case 24:return null;default:return null}}var xl=!1,jt=!1,Ck=typeof WeakSet=="function"?WeakSet:Set,fe=null;function vo(r,o){var l=r.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(d){st(r,o,d)}else l.current=null}function ud(r,o,l){try{l()}catch(d){st(r,o,d)}}var dg=!1;function Pk(r,o){if(bc=Ua,r=Vp(),hc(r)){if("selectionStart"in r)var l={start:r.selectionStart,end:r.selectionEnd};else e:{l=(l=r.ownerDocument)&&l.defaultView||window;var d=l.getSelection&&l.getSelection();if(d&&d.rangeCount!==0){l=d.anchorNode;var p=d.anchorOffset,y=d.focusNode;d=d.focusOffset;try{l.nodeType,y.nodeType}catch{l=null;break e}var b=0,N=-1,I=-1,V=0,ee=0,ne=r,Z=null;t:for(;;){for(var ce;ne!==l||p!==0&&ne.nodeType!==3||(N=b+p),ne!==y||d!==0&&ne.nodeType!==3||(I=b+d),ne.nodeType===3&&(b+=ne.nodeValue.length),(ce=ne.firstChild)!==null;)Z=ne,ne=ce;for(;;){if(ne===r)break t;if(Z===l&&++V===p&&(N=b),Z===y&&++ee===d&&(I=b),(ce=ne.nextSibling)!==null)break;ne=Z,Z=ne.parentNode}ne=ce}l=N===-1||I===-1?null:{start:N,end:I}}else l=null}l=l||{start:0,end:0}}else l=null;for(kc={focusedElem:r,selectionRange:l},Ua=!1,fe=o;fe!==null;)if(o=fe,r=o.child,(o.subtreeFlags&1028)!==0&&r!==null)r.return=o,fe=r;else for(;fe!==null;){o=fe;try{var he=o.alternate;if((o.flags&1024)!==0)switch(o.tag){case 0:case 11:case 15:break;case 1:if(he!==null){var ye=he.memoizedProps,ct=he.memoizedState,B=o.stateNode,F=B.getSnapshotBeforeUpdate(o.elementType===o.type?ye:Dn(o.type,ye),ct);B.__reactInternalSnapshotBeforeUpdate=F}break;case 3:var $=o.stateNode.containerInfo;$.nodeType===1?$.textContent="":$.nodeType===9&&$.documentElement&&$.removeChild($.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(oe){st(o,o.return,oe)}if(r=o.sibling,r!==null){r.return=o.return,fe=r;break}fe=o.return}return he=dg,dg=!1,he}function As(r,o,l){var d=o.updateQueue;if(d=d!==null?d.lastEffect:null,d!==null){var p=d=d.next;do{if((p.tag&r)===r){var y=p.destroy;p.destroy=void 0,y!==void 0&&ud(o,l,y)}p=p.next}while(p!==d)}}function bl(r,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var l=o=o.next;do{if((l.tag&r)===r){var d=l.create;l.destroy=d()}l=l.next}while(l!==o)}}function cd(r){var o=r.ref;if(o!==null){var l=r.stateNode;switch(r.tag){case 5:r=l;break;default:r=l}typeof o=="function"?o(r):o.current=r}}function fg(r){var o=r.alternate;o!==null&&(r.alternate=null,fg(o)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(o=r.stateNode,o!==null&&(delete o[Qn],delete o[bs],delete o[Cc],delete o[uk],delete o[ck])),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function hg(r){return r.tag===5||r.tag===3||r.tag===4}function pg(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||hg(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function dd(r,o,l){var d=r.tag;if(d===5||d===6)r=r.stateNode,o?l.nodeType===8?l.parentNode.insertBefore(r,o):l.insertBefore(r,o):(l.nodeType===8?(o=l.parentNode,o.insertBefore(r,l)):(o=l,o.appendChild(r)),l=l._reactRootContainer,l!=null||o.onclick!==null||(o.onclick=Ja));else if(d!==4&&(r=r.child,r!==null))for(dd(r,o,l),r=r.sibling;r!==null;)dd(r,o,l),r=r.sibling}function fd(r,o,l){var d=r.tag;if(d===5||d===6)r=r.stateNode,o?l.insertBefore(r,o):l.appendChild(r);else if(d!==4&&(r=r.child,r!==null))for(fd(r,o,l),r=r.sibling;r!==null;)fd(r,o,l),r=r.sibling}var Rt=null,Mn=!1;function Dr(r,o,l){for(l=l.child;l!==null;)mg(r,o,l),l=l.sibling}function mg(r,o,l){if(qn&&typeof qn.onCommitFiberUnmount=="function")try{qn.onCommitFiberUnmount(La,l)}catch{}switch(l.tag){case 5:jt||vo(l,o);case 6:var d=Rt,p=Mn;Rt=null,Dr(r,o,l),Rt=d,Mn=p,Rt!==null&&(Mn?(r=Rt,l=l.stateNode,r.nodeType===8?r.parentNode.removeChild(l):r.removeChild(l)):Rt.removeChild(l.stateNode));break;case 18:Rt!==null&&(Mn?(r=Rt,l=l.stateNode,r.nodeType===8?_c(r.parentNode,l):r.nodeType===1&&_c(r,l),cs(r)):_c(Rt,l.stateNode));break;case 4:d=Rt,p=Mn,Rt=l.stateNode.containerInfo,Mn=!0,Dr(r,o,l),Rt=d,Mn=p;break;case 0:case 11:case 14:case 15:if(!jt&&(d=l.updateQueue,d!==null&&(d=d.lastEffect,d!==null))){p=d=d.next;do{var y=p,b=y.destroy;y=y.tag,b!==void 0&&((y&2)!==0||(y&4)!==0)&&ud(l,o,b),p=p.next}while(p!==d)}Dr(r,o,l);break;case 1:if(!jt&&(vo(l,o),d=l.stateNode,typeof d.componentWillUnmount=="function"))try{d.props=l.memoizedProps,d.state=l.memoizedState,d.componentWillUnmount()}catch(N){st(l,o,N)}Dr(r,o,l);break;case 21:Dr(r,o,l);break;case 22:l.mode&1?(jt=(d=jt)||l.memoizedState!==null,Dr(r,o,l),jt=d):Dr(r,o,l);break;default:Dr(r,o,l)}}function gg(r){var o=r.updateQueue;if(o!==null){r.updateQueue=null;var l=r.stateNode;l===null&&(l=r.stateNode=new Ck),o.forEach(function(d){var p=Mk.bind(null,r,d);l.has(d)||(l.add(d),d.then(p,p))})}}function jn(r,o){var l=o.deletions;if(l!==null)for(var d=0;d<l.length;d++){var p=l[d];try{var y=r,b=o,N=b;e:for(;N!==null;){switch(N.tag){case 5:Rt=N.stateNode,Mn=!1;break e;case 3:Rt=N.stateNode.containerInfo,Mn=!0;break e;case 4:Rt=N.stateNode.containerInfo,Mn=!0;break e}N=N.return}if(Rt===null)throw Error(n(160));mg(y,b,p),Rt=null,Mn=!1;var I=p.alternate;I!==null&&(I.return=null),p.return=null}catch(V){st(p,o,V)}}if(o.subtreeFlags&12854)for(o=o.child;o!==null;)yg(o,r),o=o.sibling}function yg(r,o){var l=r.alternate,d=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:if(jn(o,r),Gn(r),d&4){try{As(3,r,r.return),bl(3,r)}catch(ye){st(r,r.return,ye)}try{As(5,r,r.return)}catch(ye){st(r,r.return,ye)}}break;case 1:jn(o,r),Gn(r),d&512&&l!==null&&vo(l,l.return);break;case 5:if(jn(o,r),Gn(r),d&512&&l!==null&&vo(l,l.return),r.flags&32){var p=r.stateNode;try{Ue(p,"")}catch(ye){st(r,r.return,ye)}}if(d&4&&(p=r.stateNode,p!=null)){var y=r.memoizedProps,b=l!==null?l.memoizedProps:y,N=r.type,I=r.updateQueue;if(r.updateQueue=null,I!==null)try{N==="input"&&y.type==="radio"&&y.name!=null&&Re(p,y),Wn(N,b);var V=Wn(N,y);for(b=0;b<I.length;b+=2){var ee=I[b],ne=I[b+1];ee==="style"?kr(p,ne):ee==="dangerouslySetInnerHTML"?De(p,ne):ee==="children"?Ue(p,ne):T(p,ee,ne,V)}switch(N){case"input":ft(p,y);break;case"textarea":Ra(p,y);break;case"select":var Z=p._wrapperState.wasMultiple;p._wrapperState.wasMultiple=!!y.multiple;var ce=y.value;ce!=null?Hn(p,!!y.multiple,ce,!1):Z!==!!y.multiple&&(y.defaultValue!=null?Hn(p,!!y.multiple,y.defaultValue,!0):Hn(p,!!y.multiple,y.multiple?[]:"",!1))}p[bs]=y}catch(ye){st(r,r.return,ye)}}break;case 6:if(jn(o,r),Gn(r),d&4){if(r.stateNode===null)throw Error(n(162));p=r.stateNode,y=r.memoizedProps;try{p.nodeValue=y}catch(ye){st(r,r.return,ye)}}break;case 3:if(jn(o,r),Gn(r),d&4&&l!==null&&l.memoizedState.isDehydrated)try{cs(o.containerInfo)}catch(ye){st(r,r.return,ye)}break;case 4:jn(o,r),Gn(r);break;case 13:jn(o,r),Gn(r),p=r.child,p.flags&8192&&(y=p.memoizedState!==null,p.stateNode.isHidden=y,!y||p.alternate!==null&&p.alternate.memoizedState!==null||(md=ut())),d&4&&gg(r);break;case 22:if(ee=l!==null&&l.memoizedState!==null,r.mode&1?(jt=(V=jt)||ee,jn(o,r),jt=V):jn(o,r),Gn(r),d&8192){if(V=r.memoizedState!==null,(r.stateNode.isHidden=V)&&!ee&&(r.mode&1)!==0)for(fe=r,ee=r.child;ee!==null;){for(ne=fe=ee;fe!==null;){switch(Z=fe,ce=Z.child,Z.tag){case 0:case 11:case 14:case 15:As(4,Z,Z.return);break;case 1:vo(Z,Z.return);var he=Z.stateNode;if(typeof he.componentWillUnmount=="function"){d=Z,l=Z.return;try{o=d,he.props=o.memoizedProps,he.state=o.memoizedState,he.componentWillUnmount()}catch(ye){st(d,l,ye)}}break;case 5:vo(Z,Z.return);break;case 22:if(Z.memoizedState!==null){xg(ne);continue}}ce!==null?(ce.return=Z,fe=ce):xg(ne)}ee=ee.sibling}e:for(ee=null,ne=r;;){if(ne.tag===5){if(ee===null){ee=ne;try{p=ne.stateNode,V?(y=p.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none"):(N=ne.stateNode,I=ne.memoizedProps.style,b=I!=null&&I.hasOwnProperty("display")?I.display:null,N.style.display=yn("display",b))}catch(ye){st(r,r.return,ye)}}}else if(ne.tag===6){if(ee===null)try{ne.stateNode.nodeValue=V?"":ne.memoizedProps}catch(ye){st(r,r.return,ye)}}else if((ne.tag!==22&&ne.tag!==23||ne.memoizedState===null||ne===r)&&ne.child!==null){ne.child.return=ne,ne=ne.child;continue}if(ne===r)break e;for(;ne.sibling===null;){if(ne.return===null||ne.return===r)break e;ee===ne&&(ee=null),ne=ne.return}ee===ne&&(ee=null),ne.sibling.return=ne.return,ne=ne.sibling}}break;case 19:jn(o,r),Gn(r),d&4&&gg(r);break;case 21:break;default:jn(o,r),Gn(r)}}function Gn(r){var o=r.flags;if(o&2){try{e:{for(var l=r.return;l!==null;){if(hg(l)){var d=l;break e}l=l.return}throw Error(n(160))}switch(d.tag){case 5:var p=d.stateNode;d.flags&32&&(Ue(p,""),d.flags&=-33);var y=pg(r);fd(r,y,p);break;case 3:case 4:var b=d.stateNode.containerInfo,N=pg(r);dd(r,N,b);break;default:throw Error(n(161))}}catch(I){st(r,r.return,I)}r.flags&=-3}o&4096&&(r.flags&=-4097)}function Tk(r,o,l){fe=r,vg(r)}function vg(r,o,l){for(var d=(r.mode&1)!==0;fe!==null;){var p=fe,y=p.child;if(p.tag===22&&d){var b=p.memoizedState!==null||xl;if(!b){var N=p.alternate,I=N!==null&&N.memoizedState!==null||jt;N=xl;var V=jt;if(xl=b,(jt=I)&&!V)for(fe=p;fe!==null;)b=fe,I=b.child,b.tag===22&&b.memoizedState!==null?bg(p):I!==null?(I.return=b,fe=I):bg(p);for(;y!==null;)fe=y,vg(y),y=y.sibling;fe=p,xl=N,jt=V}wg(r)}else(p.subtreeFlags&8772)!==0&&y!==null?(y.return=p,fe=y):wg(r)}}function wg(r){for(;fe!==null;){var o=fe;if((o.flags&8772)!==0){var l=o.alternate;try{if((o.flags&8772)!==0)switch(o.tag){case 0:case 11:case 15:jt||bl(5,o);break;case 1:var d=o.stateNode;if(o.flags&4&&!jt)if(l===null)d.componentDidMount();else{var p=o.elementType===o.type?l.memoizedProps:Dn(o.type,l.memoizedProps);d.componentDidUpdate(p,l.memoizedState,d.__reactInternalSnapshotBeforeUpdate)}var y=o.updateQueue;y!==null&&xm(o,y,d);break;case 3:var b=o.updateQueue;if(b!==null){if(l=null,o.child!==null)switch(o.child.tag){case 5:l=o.child.stateNode;break;case 1:l=o.child.stateNode}xm(o,b,l)}break;case 5:var N=o.stateNode;if(l===null&&o.flags&4){l=N;var I=o.memoizedProps;switch(o.type){case"button":case"input":case"select":case"textarea":I.autoFocus&&l.focus();break;case"img":I.src&&(l.src=I.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(o.memoizedState===null){var V=o.alternate;if(V!==null){var ee=V.memoizedState;if(ee!==null){var ne=ee.dehydrated;ne!==null&&cs(ne)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}jt||o.flags&512&&cd(o)}catch(Z){st(o,o.return,Z)}}if(o===r){fe=null;break}if(l=o.sibling,l!==null){l.return=o.return,fe=l;break}fe=o.return}}function xg(r){for(;fe!==null;){var o=fe;if(o===r){fe=null;break}var l=o.sibling;if(l!==null){l.return=o.return,fe=l;break}fe=o.return}}function bg(r){for(;fe!==null;){var o=fe;try{switch(o.tag){case 0:case 11:case 15:var l=o.return;try{bl(4,o)}catch(I){st(o,l,I)}break;case 1:var d=o.stateNode;if(typeof d.componentDidMount=="function"){var p=o.return;try{d.componentDidMount()}catch(I){st(o,p,I)}}var y=o.return;try{cd(o)}catch(I){st(o,y,I)}break;case 5:var b=o.return;try{cd(o)}catch(I){st(o,b,I)}}}catch(I){st(o,o.return,I)}if(o===r){fe=null;break}var N=o.sibling;if(N!==null){N.return=o.return,fe=N;break}fe=o.return}}var Rk=Math.ceil,kl=A.ReactCurrentDispatcher,hd=A.ReactCurrentOwner,kn=A.ReactCurrentBatchConfig,Be=0,St=null,ht=null,Ot=0,pn=0,wo=Or(0),wt=0,Is=null,ki=0,Sl=0,pd=0,Ls=null,Jt=null,md=0,xo=1/0,pr=null,El=!1,gd=null,Mr=null,_l=!1,jr=null,Cl=0,Ds=0,yd=null,Pl=-1,Tl=0;function Ht(){return(Be&6)!==0?ut():Pl!==-1?Pl:Pl=ut()}function Fr(r){return(r.mode&1)===0?1:(Be&2)!==0&&Ot!==0?Ot&-Ot:fk.transition!==null?(Tl===0&&(Tl=pp()),Tl):(r=qe,r!==0||(r=window.event,r=r===void 0?16:Sp(r.type)),r)}function Fn(r,o,l,d){if(50<Ds)throw Ds=0,yd=null,Error(n(185));os(r,l,d),((Be&2)===0||r!==St)&&(r===St&&((Be&2)===0&&(Sl|=l),wt===4&&zr(r,Ot)),Zt(r,d),l===1&&Be===0&&(o.mode&1)===0&&(xo=ut()+500,nl&&Ar()))}function Zt(r,o){var l=r.callbackNode;fb(r,o);var d=ja(r,r===St?Ot:0);if(d===0)l!==null&&dp(l),r.callbackNode=null,r.callbackPriority=0;else if(o=d&-d,r.callbackPriority!==o){if(l!=null&&dp(l),o===1)r.tag===0?dk(Sg.bind(null,r)):lm(Sg.bind(null,r)),ak(function(){(Be&6)===0&&Ar()}),l=null;else{switch(mp(d)){case 1:l=Gu;break;case 4:l=fp;break;case 16:l=Ia;break;case 536870912:l=hp;break;default:l=Ia}l=Ng(l,kg.bind(null,r))}r.callbackPriority=o,r.callbackNode=l}}function kg(r,o){if(Pl=-1,Tl=0,(Be&6)!==0)throw Error(n(327));var l=r.callbackNode;if(bo()&&r.callbackNode!==l)return null;var d=ja(r,r===St?Ot:0);if(d===0)return null;if((d&30)!==0||(d&r.expiredLanes)!==0||o)o=Rl(r,d);else{o=d;var p=Be;Be|=2;var y=_g();(St!==r||Ot!==o)&&(pr=null,xo=ut()+500,Ei(r,o));do try{Ak();break}catch(N){Eg(r,N)}while(!0);Dc(),kl.current=y,Be=p,ht!==null?o=0:(St=null,Ot=0,o=wt)}if(o!==0){if(o===2&&(p=Xu(r),p!==0&&(d=p,o=vd(r,p))),o===1)throw l=Is,Ei(r,0),zr(r,d),Zt(r,ut()),l;if(o===6)zr(r,d);else{if(p=r.current.alternate,(d&30)===0&&!Ok(p)&&(o=Rl(r,d),o===2&&(y=Xu(r),y!==0&&(d=y,o=vd(r,y))),o===1))throw l=Is,Ei(r,0),zr(r,d),Zt(r,ut()),l;switch(r.finishedWork=p,r.finishedLanes=d,o){case 0:case 1:throw Error(n(345));case 2:_i(r,Jt,pr);break;case 3:if(zr(r,d),(d&130023424)===d&&(o=md+500-ut(),10<o)){if(ja(r,0)!==0)break;if(p=r.suspendedLanes,(p&d)!==d){Ht(),r.pingedLanes|=r.suspendedLanes&p;break}r.timeoutHandle=Ec(_i.bind(null,r,Jt,pr),o);break}_i(r,Jt,pr);break;case 4:if(zr(r,d),(d&4194240)===d)break;for(o=r.eventTimes,p=-1;0<d;){var b=31-An(d);y=1<<b,b=o[b],b>p&&(p=b),d&=~y}if(d=p,d=ut()-d,d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3e3>d?3e3:4320>d?4320:1960*Rk(d/1960))-d,10<d){r.timeoutHandle=Ec(_i.bind(null,r,Jt,pr),d);break}_i(r,Jt,pr);break;case 5:_i(r,Jt,pr);break;default:throw Error(n(329))}}}return Zt(r,ut()),r.callbackNode===l?kg.bind(null,r):null}function vd(r,o){var l=Ls;return r.current.memoizedState.isDehydrated&&(Ei(r,o).flags|=256),r=Rl(r,o),r!==2&&(o=Jt,Jt=l,o!==null&&wd(o)),r}function wd(r){Jt===null?Jt=r:Jt.push.apply(Jt,r)}function Ok(r){for(var o=r;;){if(o.flags&16384){var l=o.updateQueue;if(l!==null&&(l=l.stores,l!==null))for(var d=0;d<l.length;d++){var p=l[d],y=p.getSnapshot;p=p.value;try{if(!In(y(),p))return!1}catch{return!1}}}if(l=o.child,o.subtreeFlags&16384&&l!==null)l.return=o,o=l;else{if(o===r)break;for(;o.sibling===null;){if(o.return===null||o.return===r)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function zr(r,o){for(o&=~pd,o&=~Sl,r.suspendedLanes|=o,r.pingedLanes&=~o,r=r.expirationTimes;0<o;){var l=31-An(o),d=1<<l;r[l]=-1,o&=~d}}function Sg(r){if((Be&6)!==0)throw Error(n(327));bo();var o=ja(r,0);if((o&1)===0)return Zt(r,ut()),null;var l=Rl(r,o);if(r.tag!==0&&l===2){var d=Xu(r);d!==0&&(o=d,l=vd(r,d))}if(l===1)throw l=Is,Ei(r,0),zr(r,o),Zt(r,ut()),l;if(l===6)throw Error(n(345));return r.finishedWork=r.current.alternate,r.finishedLanes=o,_i(r,Jt,pr),Zt(r,ut()),null}function xd(r,o){var l=Be;Be|=1;try{return r(o)}finally{Be=l,Be===0&&(xo=ut()+500,nl&&Ar())}}function Si(r){jr!==null&&jr.tag===0&&(Be&6)===0&&bo();var o=Be;Be|=1;var l=kn.transition,d=qe;try{if(kn.transition=null,qe=1,r)return r()}finally{qe=d,kn.transition=l,Be=o,(Be&6)===0&&Ar()}}function bd(){pn=wo.current,tt(wo)}function Ei(r,o){r.finishedWork=null,r.finishedLanes=0;var l=r.timeoutHandle;if(l!==-1&&(r.timeoutHandle=-1,sk(l)),ht!==null)for(l=ht.return;l!==null;){var d=l;switch(Oc(d),d.tag){case 1:d=d.type.childContextTypes,d!=null&&el();break;case 3:go(),tt(Kt),tt(Lt),Vc();break;case 5:Bc(d);break;case 4:go();break;case 13:tt(rt);break;case 19:tt(rt);break;case 10:Mc(d.type._context);break;case 22:case 23:bd()}l=l.return}if(St=r,ht=r=Ur(r.current,null),Ot=pn=o,wt=0,Is=null,pd=Sl=ki=0,Jt=Ls=null,wi!==null){for(o=0;o<wi.length;o++)if(l=wi[o],d=l.interleaved,d!==null){l.interleaved=null;var p=d.next,y=l.pending;if(y!==null){var b=y.next;y.next=p,d.next=b}l.pending=d}wi=null}return r}function Eg(r,o){do{var l=ht;try{if(Dc(),fl.current=gl,hl){for(var d=it.memoizedState;d!==null;){var p=d.queue;p!==null&&(p.pending=null),d=d.next}hl=!1}if(bi=0,kt=vt=it=null,Ps=!1,Ts=0,hd.current=null,l===null||l.return===null){wt=1,Is=o,ht=null;break}e:{var y=r,b=l.return,N=l,I=o;if(o=Ot,N.flags|=32768,I!==null&&typeof I=="object"&&typeof I.then=="function"){var V=I,ee=N,ne=ee.tag;if((ee.mode&1)===0&&(ne===0||ne===11||ne===15)){var Z=ee.alternate;Z?(ee.updateQueue=Z.updateQueue,ee.memoizedState=Z.memoizedState,ee.lanes=Z.lanes):(ee.updateQueue=null,ee.memoizedState=null)}var ce=Km(b);if(ce!==null){ce.flags&=-257,Gm(ce,b,N,y,o),ce.mode&1&&Ym(y,V,o),o=ce,I=V;var he=o.updateQueue;if(he===null){var ye=new Set;ye.add(I),o.updateQueue=ye}else he.add(I);break e}else{if((o&1)===0){Ym(y,V,o),kd();break e}I=Error(n(426))}}else if(nt&&N.mode&1){var ct=Km(b);if(ct!==null){(ct.flags&65536)===0&&(ct.flags|=256),Gm(ct,b,N,y,o),Ic(yo(I,N));break e}}y=I=yo(I,N),wt!==4&&(wt=2),Ls===null?Ls=[y]:Ls.push(y),y=b;do{switch(y.tag){case 3:y.flags|=65536,o&=-o,y.lanes|=o;var B=qm(y,I,o);wm(y,B);break e;case 1:N=I;var F=y.type,$=y.stateNode;if((y.flags&128)===0&&(typeof F.getDerivedStateFromError=="function"||$!==null&&typeof $.componentDidCatch=="function"&&(Mr===null||!Mr.has($)))){y.flags|=65536,o&=-o,y.lanes|=o;var oe=Qm(y,N,o);wm(y,oe);break e}}y=y.return}while(y!==null)}Pg(l)}catch(ve){o=ve,ht===l&&l!==null&&(ht=l=l.return);continue}break}while(!0)}function _g(){var r=kl.current;return kl.current=gl,r===null?gl:r}function kd(){(wt===0||wt===3||wt===2)&&(wt=4),St===null||(ki&268435455)===0&&(Sl&268435455)===0||zr(St,Ot)}function Rl(r,o){var l=Be;Be|=2;var d=_g();(St!==r||Ot!==o)&&(pr=null,Ei(r,o));do try{Nk();break}catch(p){Eg(r,p)}while(!0);if(Dc(),Be=l,kl.current=d,ht!==null)throw Error(n(261));return St=null,Ot=0,wt}function Nk(){for(;ht!==null;)Cg(ht)}function Ak(){for(;ht!==null&&!rb();)Cg(ht)}function Cg(r){var o=Og(r.alternate,r,pn);r.memoizedProps=r.pendingProps,o===null?Pg(r):ht=o,hd.current=null}function Pg(r){var o=r;do{var l=o.alternate;if(r=o.return,(o.flags&32768)===0){if(l=Ek(l,o,pn),l!==null){ht=l;return}}else{if(l=_k(l,o),l!==null){l.flags&=32767,ht=l;return}if(r!==null)r.flags|=32768,r.subtreeFlags=0,r.deletions=null;else{wt=6,ht=null;return}}if(o=o.sibling,o!==null){ht=o;return}ht=o=r}while(o!==null);wt===0&&(wt=5)}function _i(r,o,l){var d=qe,p=kn.transition;try{kn.transition=null,qe=1,Ik(r,o,l,d)}finally{kn.transition=p,qe=d}return null}function Ik(r,o,l,d){do bo();while(jr!==null);if((Be&6)!==0)throw Error(n(327));l=r.finishedWork;var p=r.finishedLanes;if(l===null)return null;if(r.finishedWork=null,r.finishedLanes=0,l===r.current)throw Error(n(177));r.callbackNode=null,r.callbackPriority=0;var y=l.lanes|l.childLanes;if(hb(r,y),r===St&&(ht=St=null,Ot=0),(l.subtreeFlags&2064)===0&&(l.flags&2064)===0||_l||(_l=!0,Ng(Ia,function(){return bo(),null})),y=(l.flags&15990)!==0,(l.subtreeFlags&15990)!==0||y){y=kn.transition,kn.transition=null;var b=qe;qe=1;var N=Be;Be|=4,hd.current=null,Pk(r,l),yg(l,r),Zb(kc),Ua=!!bc,kc=bc=null,r.current=l,Tk(l),ib(),Be=N,qe=b,kn.transition=y}else r.current=l;if(_l&&(_l=!1,jr=r,Cl=p),y=r.pendingLanes,y===0&&(Mr=null),ab(l.stateNode),Zt(r,ut()),o!==null)for(d=r.onRecoverableError,l=0;l<o.length;l++)p=o[l],d(p.value,{componentStack:p.stack,digest:p.digest});if(El)throw El=!1,r=gd,gd=null,r;return(Cl&1)!==0&&r.tag!==0&&bo(),y=r.pendingLanes,(y&1)!==0?r===yd?Ds++:(Ds=0,yd=r):Ds=0,Ar(),null}function bo(){if(jr!==null){var r=mp(Cl),o=kn.transition,l=qe;try{if(kn.transition=null,qe=16>r?16:r,jr===null)var d=!1;else{if(r=jr,jr=null,Cl=0,(Be&6)!==0)throw Error(n(331));var p=Be;for(Be|=4,fe=r.current;fe!==null;){var y=fe,b=y.child;if((fe.flags&16)!==0){var N=y.deletions;if(N!==null){for(var I=0;I<N.length;I++){var V=N[I];for(fe=V;fe!==null;){var ee=fe;switch(ee.tag){case 0:case 11:case 15:As(8,ee,y)}var ne=ee.child;if(ne!==null)ne.return=ee,fe=ne;else for(;
vendor: 5,511 bytes, line 41
41fe!==null;){ee=fe;var Z=ee.sibling,ce=ee.return;if(fg(ee),ee===V){fe=null;break}if(Z!==null){Z.return=ce,fe=Z;break}fe=ce}}}var he=y.alternate;if(he!==null){var ye=he.child;if(ye!==null){he.child=null;do{var ct=ye.sibling;ye.sibling=null,ye=ct}while(ye!==null)}}fe=y}}if((y.subtreeFlags&2064)!==0&&b!==null)b.return=y,fe=b;else e:for(;fe!==null;){if(y=fe,(y.flags&2048)!==0)switch(y.tag){case 0:case 11:case 15:As(9,y,y.return)}var B=y.sibling;if(B!==null){B.return=y.return,fe=B;break e}fe=y.return}}var F=r.current;for(fe=F;fe!==null;){b=fe;var $=b.child;if((b.subtreeFlags&2064)!==0&&$!==null)$.return=b,fe=$;else e:for(b=F;fe!==null;){if(N=fe,(N.flags&2048)!==0)try{switch(N.tag){case 0:case 11:case 15:bl(9,N)}}catch(ve){st(N,N.return,ve)}if(N===b){fe=null;break e}var oe=N.sibling;if(oe!==null){oe.return=N.return,fe=oe;break e}fe=N.return}}if(Be=p,Ar(),qn&&typeof qn.onPostCommitFiberRoot=="function")try{qn.onPostCommitFiberRoot(La,r)}catch{}d=!0}return d}finally{qe=l,kn.transition=o}}return!1}function Tg(r,o,l){o=yo(l,o),o=qm(r,o,1),r=Lr(r,o,1),o=Ht(),r!==null&&(os(r,1,o),Zt(r,o))}function st(r,o,l){if(r.tag===3)Tg(r,r,l);else for(;o!==null;){if(o.tag===3){Tg(o,r,l);break}else if(o.tag===1){var d=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(Mr===null||!Mr.has(d))){r=yo(l,r),r=Qm(o,r,1),o=Lr(o,r,1),r=Ht(),o!==null&&(os(o,1,r),Zt(o,r));break}}o=o.return}}function Lk(r,o,l){var d=r.pingCache;d!==null&&d.delete(o),o=Ht(),r.pingedLanes|=r.suspendedLanes&l,St===r&&(Ot&l)===l&&(wt===4||wt===3&&(Ot&130023424)===Ot&&500>ut()-md?Ei(r,0):pd|=l),Zt(r,o)}function Rg(r,o){o===0&&((r.mode&1)===0?o=1:(o=Ma,Ma<<=1,(Ma&130023424)===0&&(Ma=4194304)));var l=Ht();r=dr(r,o),r!==null&&(os(r,o,l),Zt(r,l))}function Dk(r){var o=r.memoizedState,l=0;o!==null&&(l=o.retryLane),Rg(r,l)}function Mk(r,o){var l=0;switch(r.tag){case 13:var d=r.stateNode,p=r.memoizedState;p!==null&&(l=p.retryLane);break;case 19:d=r.stateNode;break;default:throw Error(n(314))}d!==null&&d.delete(o),Rg(r,l)}var Og;Og=function(r,o,l){if(r!==null)if(r.memoizedProps!==o.pendingProps||Kt.current)Xt=!0;else{if((r.lanes&l)===0&&(o.flags&128)===0)return Xt=!1,Sk(r,o,l);Xt=(r.flags&131072)!==0}else Xt=!1,nt&&(o.flags&1048576)!==0&&um(o,il,o.index);switch(o.lanes=0,o.tag){case 2:var d=o.type;wl(r,o),r=o.pendingProps;var p=lo(o,Lt.current);mo(o,l),p=qc(null,o,d,r,p,l);var y=Qc();return o.flags|=1,typeof p=="object"&&p!==null&&typeof p.render=="function"&&p.$$typeof===void 0?(o.tag=1,o.memoizedState=null,o.updateQueue=null,Gt(d)?(y=!0,tl(o)):y=!1,o.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,zc(o),p.updater=yl,o.stateNode=p,p._reactInternals=o,Zc(o,d,r,l),o=rd(null,o,d,!0,y,l)):(o.tag=0,nt&&y&&Rc(o),Vt(null,o,p,l),o=o.child),o;case 16:d=o.elementType;e:{switch(wl(r,o),r=o.pendingProps,p=d._init,d=p(d._payload),o.type=d,p=o.tag=Fk(d),r=Dn(d,r),p){case 0:o=nd(null,o,d,r,l);break e;case 1:o=ng(null,o,d,r,l);break e;case 11:o=Xm(null,o,d,r,l);break e;case 14:o=Jm(null,o,d,Dn(d.type,r),l);break e}throw Error(n(306,d,""))}return o;case 0:return d=o.type,p=o.pendingProps,p=o.elementType===d?p:Dn(d,p),nd(r,o,d,p,l);case 1:return d=o.type,p=o.pendingProps,p=o.elementType===d?p:Dn(d,p),ng(r,o,d,p,l);case 3:e:{if(rg(o),r===null)throw Error(n(387));d=o.pendingProps,y=o.memoizedState,p=y.element,vm(r,o),cl(o,d,null,l);var b=o.memoizedState;if(d=b.element,y.isDehydrated)if(y={element:d,isDehydrated:!1,cache:b.cache,pendingSuspenseBoundaries:b.pendingSuspenseBoundaries,transitions:b.transitions},o.updateQueue.baseState=y,o.memoizedState=y,o.flags&256){p=yo(Error(n(423)),o),o=ig(r,o,d,l,p);break e}else if(d!==p){p=yo(Error(n(424)),o),o=ig(r,o,d,l,p);break e}else for(hn=Rr(o.stateNode.containerInfo.firstChild),fn=o,nt=!0,Ln=null,l=gm(o,null,d,l),o.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(fo(),d===p){o=hr(r,o,l);break e}Vt(r,o,d,l)}o=o.child}return o;case 5:return bm(o),r===null&&Ac(o),d=o.type,p=o.pendingProps,y=r!==null?r.memoizedProps:null,b=p.children,Sc(d,p)?b=null:y!==null&&Sc(d,y)&&(o.flags|=32),tg(r,o),Vt(r,o,b,l),o.child;case 6:return r===null&&Ac(o),null;case 13:return og(r,o,l);case 4:return Uc(o,o.stateNode.containerInfo),d=o.pendingProps,r===null?o.child=ho(o,null,d,l):Vt(r,o,d,l),o.child;case 11:return d=o.type,p=o.pendingProps,p=o.elementType===d?p:Dn(d,p),Xm(r,o,d,p,l);case 7:return Vt(r,o,o.pendingProps,l),o.child;case 8:return Vt(r,o,o.pendingProps.children,l),o.child;case 12:return Vt(r,o,o.pendingProps.children,l),o.child;case 10:e:{if(d=o.type._context,p=o.pendingProps,y=o.memoizedProps,b=p.value,Ke(al,d._currentValue),d._currentValue=b,y!==null)if(In(y.value,b)){if(y.children===p.children&&!Kt.current){o=hr(r,o,l);break e}}else for(y=o.child,y!==null&&(y.return=o);y!==null;){var N=y.dependencies;if(N!==null){b=y.child;for(var I=N.firstContext;I!==null;){if(I.context===d){if(y.tag===1){I=fr(-1,l&-l),I.tag=2;var V=y.updateQueue;if(V!==null){V=V.shared;var ee=V.pending;ee===null?I.next=I:(I.next=ee.next,ee.next=I),V.pending=I}}y.lanes|=l,I=y.alternate,I!==null&&(I.lanes|=l),jc(y.return,l,o),N.lanes|=l;break}I=I.next}}else if(y.tag===10)b=y.type===o.type?null:y.child;else if(y.tag===18){if(b=y.return,b===null)throw Error(n(341));b.lanes|=l,N=b.alternate,N!==null&&(N.lanes|=l),jc(b,l,o),b=y.sibling}else b=y.child;if(b!==null)b.return=y;else for(b=y;b!==null;){if(b===o){b=null;break}if(y=b.sibling,y!==null){y.return=b.return,b=y;break}b=b.return}y=b}Vt(r,o,p.children,l),o=o.child}return o;
vendor: 6,425 bytes, line 41
41case 9:return p=o.type,d=o.pendingProps.children,mo(o,l),p=xn(p),d=d(p),o.flags|=1,Vt(r,o,d,l),o.child;case 14:return d=o.type,p=Dn(d,o.pendingProps),p=Dn(d.type,p),Jm(r,o,d,p,l);case 15:return Zm(r,o,o.type,o.pendingProps,l);case 17:return d=o.type,p=o.pendingProps,p=o.elementType===d?p:Dn(d,p),wl(r,o),o.tag=1,Gt(d)?(r=!0,tl(o)):r=!1,mo(o,l),Hm(o,d,p),Zc(o,d,p,l),rd(null,o,d,!0,r,l);case 19:return ag(r,o,l);case 22:return eg(r,o,l)}throw Error(n(156,o.tag))};function Ng(r,o){return cp(r,o)}function jk(r,o,l,d){this.tag=r,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Sn(r,o,l,d){return new jk(r,o,l,d)}function Sd(r){return r=r.prototype,!(!r||!r.isReactComponent)}function Fk(r){if(typeof r=="function")return Sd(r)?1:0;if(r!=null){if(r=r.$$typeof,r===G)return 11;if(r===J)return 14}return 2}function Ur(r,o){var l=r.alternate;return l===null?(l=Sn(r.tag,o,r.key,r.mode),l.elementType=r.elementType,l.type=r.type,l.stateNode=r.stateNode,l.alternate=r,r.alternate=l):(l.pendingProps=o,l.type=r.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=r.flags&14680064,l.childLanes=r.childLanes,l.lanes=r.lanes,l.child=r.child,l.memoizedProps=r.memoizedProps,l.memoizedState=r.memoizedState,l.updateQueue=r.updateQueue,o=r.dependencies,l.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},l.sibling=r.sibling,l.index=r.index,l.ref=r.ref,l}function Ol(r,o,l,d,p,y){var b=2;if(d=r,typeof r=="function")Sd(r)&&(b=1);else if(typeof r=="string")b=5;else e:switch(r){case W:return Ci(l.children,p,y,o);case M:b=8,p|=8;break;case K:return r=Sn(12,l,o,p|2),r.elementType=K,r.lanes=y,r;case le:return r=Sn(13,l,o,p),r.elementType=le,r.lanes=y,r;case te:return r=Sn(19,l,o,p),r.elementType=te,r.lanes=y,r;case be:return Nl(l,p,y,o);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case H:b=10;break e;case Q:b=9;break e;case G:b=11;break e;case J:b=14;break e;case me:b=16,d=null;break e}throw Error(n(130,r==null?r:typeof r,""))}return o=Sn(b,l,o,p),o.elementType=r,o.type=d,o.lanes=y,o}function Ci(r,o,l,d){return r=Sn(7,r,d,o),r.lanes=l,r}function Nl(r,o,l,d){return r=Sn(22,r,d,o),r.elementType=be,r.lanes=l,r.stateNode={isHidden:!1},r}function Ed(r,o,l){return r=Sn(6,r,null,o),r.lanes=l,r}function _d(r,o,l){return o=Sn(4,r.children!==null?r.children:[],r.key,o),o.lanes=l,o.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},o}function zk(r,o,l,d,p){this.tag=o,this.containerInfo=r,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ju(0),this.expirationTimes=Ju(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ju(0),this.identifierPrefix=d,this.onRecoverableError=p,this.mutableSourceEagerHydrationData=null}function Cd(r,o,l,d,p,y,b,N,I){return r=new zk(r,o,l,N,I),o===1?(o=1,y===!0&&(o|=8)):o=0,y=Sn(3,null,null,o),r.current=y,y.stateNode=r,y.memoizedState={element:d,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},zc(y),r}function Uk(r,o,l){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:L,key:d==null?null:""+d,children:r,containerInfo:o,implementation:l}}function Ag(r){if(!r)return Nr;r=r._reactInternals;e:{if(pi(r)!==r||r.tag!==1)throw Error(n(170));var o=r;do{switch(o.tag){case 3:o=o.stateNode.context;break e;case 1:if(Gt(o.type)){o=o.stateNode.__reactInternalMemoizedMergedChildContext;break e}}o=o.return}while(o!==null);throw Error(n(171))}if(r.tag===1){var l=r.type;if(Gt(l))return sm(r,l,o)}return o}function Ig(r,o,l,d,p,y,b,N,I){return r=Cd(l,d,!0,r,p,y,b,N,I),r.context=Ag(null),l=r.current,d=Ht(),p=Fr(l),y=fr(d,p),y.callback=o??null,Lr(l,y,p),r.current.lanes=p,os(r,p,d),Zt(r,d),r}function Al(r,o,l,d){var p=o.current,y=Ht(),b=Fr(p);return l=Ag(l),o.context===null?o.context=l:o.pendingContext=l,o=fr(y,b),o.payload={element:r},d=d===void 0?null:d,d!==null&&(o.callback=d),r=Lr(p,o,b),r!==null&&(Fn(r,p,b,y),ul(r,p,b)),b}function Il(r){if(r=r.current,!r.child)return null;switch(r.child.tag){case 5:return r.child.stateNode;default:return r.child.stateNode}}function Lg(r,o){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var l=r.retryLane;r.retryLane=l!==0&&l<o?l:o}}function Pd(r,o){Lg(r,o),(r=r.alternate)&&Lg(r,o)}function Bk(){return null}var Dg=typeof reportError=="function"?reportError:function(r){console.error(r)};function Td(r){this._internalRoot=r}Ll.prototype.render=Td.prototype.render=function(r){var o=this._internalRoot;if(o===null)throw Error(n(409));Al(r,o,null,null)},Ll.prototype.unmount=Td.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var o=r.containerInfo;Si(function(){Al(null,r,null,null)}),o[ar]=null}};function Ll(r){this._internalRoot=r}Ll.prototype.unstable_scheduleHydration=function(r){if(r){var o=vp();r={blockedOn:null,target:r,priority:o};for(var l=0;l<Cr.length&&o!==0&&o<Cr[l].priority;l++);Cr.splice(l,0,r),l===0&&bp(r)}};function Rd(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function Dl(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11&&(r.nodeType!==8||r.nodeValue!==" react-mount-point-unstable "))}function Mg(){}function $k(r,o,l,d,p){if(p){if(typeof d=="function"){var y=d;d=function(){var V=Il(b);y.call(V)}}var b=Ig(o,d,r,0,null,!1,!1,"",Mg);return r._reactRootContainer=b,r[ar]=b.current,ws(r.nodeType===8?r.parentNode:r),Si(),b}for(;p=r.lastChild;)r.removeChild(p);if(typeof d=="function"){var N=d;d=function(){var V=Il(I);N.call(V)}}var I=Cd(r,0,!1,null,null,!1,!1,"",Mg);return r._reactRootContainer=I,r[ar]=I.current,ws(r.nodeType===8?r.parentNode:r),Si(function(){Al(o,I,l,d)}),I}function Ml(r,o,l,d,p){var y=l._reactRootContainer;if(y){var b=y;if(typeof p=="function"){var N=p;p=function(){var I=Il(b);N.call(I)}}Al(o,b,r,p)}else b=$k(l,o,r,p,d);return Il(b)}gp=function(r){switch(r.tag){case 3:var o=r.stateNode;if(o.current.memoizedState.isDehydrated){var l=is(o.pendingLanes);
41l!==0&&(Zu(o,l|1),Zt(o,ut()),(Be&6)===0&&(xo=ut()+500,Ar()))}break;case 13:Si(function(){var d=dr(r,1);if(d!==null){var p=Ht();Fn(d,r,1,p)}}),Pd(r,1)}},ec=function(r){if(r.tag===13){var o=dr(r,134217728);if(o!==null){var l=Ht();Fn(o,r,134217728,l)}Pd(r,134217728)}},yp=function(r){if(r.tag===13){var o=Fr(r),l=dr(r,o);if(l!==null){var d=Ht();Fn(l,r,o,d)}Pd(r,o)}},vp=function(){return qe},wp=function(r,o){var l=qe;try{return qe=r,o()}finally{qe=l}},qu=function(r,o,l){switch(o){case"input":if(ft(r,l),o=l.name,l.type==="radio"&&o!=null){for(l=r;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),o=0;o<l.length;o++){var d=l[o];if(d!==r&&d.form===r.form){var p=Za(d);if(!p)throw Error(n(90));yt(d),ft(d,p)}}}break;case"textarea":Ra(r,l);break;case"select":o=l.value,o!=null&&Hn(r,!!l.multiple,o,!1)}},rp=xd,ip=Si;var Vk={usingClientEntryPoint:!1,Events:[ks,so,Za,tp,np,xd]},Ms={findFiberByHostInstance:mi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Hk={bundleType:Ms.bundleType,version:Ms.version,rendererPackageName:Ms.rendererPackageName,rendererConfig:Ms.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:A.ReactCurrentDispatcher,findHostInstanceByFiber:function(r){return r=lp(r),r===null?null:r.stateNode},findFiberByHostInstance:Ms.findFiberByHostInstance||Bk,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 jl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!jl.isDisabled&&jl.supportsFiber)try{La=jl.inject(Hk),qn=jl}catch{}}return en.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Vk,en.createPortal=function(r,o){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Rd(o))throw Error(n(200));return Uk(r,o,null,l)},en.createRoot=function(r,o){if(!Rd(r))throw Error(n(299));var l=!1,d="",p=Dg;return o!=null&&(o.unstable_strictMode===!0&&(l=!0),o.identifierPrefix!==void 0&&(d=o.identifierPrefix),o.onRecoverableError!==void 0&&(p=o.onRecoverableError)),o=Cd(r,1,!1,null,null,l,!1,d,p),r[ar]=o.current,ws(r.nodeType===8?r.parentNode:r),new Td(o)},en.findDOMNode=function(r){if(r==null)return null;if(r.nodeType===1)return r;var o=r._reactInternals;if(o===void 0)throw typeof r.render=="function"?Error(n(188)):(r=Object.keys(r).join(","),Error(n(268,r)));return r=lp(o),r=r===null?null:r.stateNode,r},en.flushSync=function(r){return Si(r)},en.hydrate=function(r,o,l){if(!Dl(o))throw Error(n(200));return Ml(null,r,o,!0,l)},en.hydrateRoot=function(r,o,l){if(!Rd(r))throw Error(n(405));var d=l!=null&&l.hydratedSources||null,p=!1,y="",b=Dg;if(l!=null&&(l.unstable_strictMode===!0&&(p=!0),l.identifierPrefix!==void 0&&(y=l.identifierPrefix),l.onRecoverableError!==void 0&&(b=l.onRecoverableError)),o=Ig(o,null,r,1,l??null,p,!1,y,b),r[ar]=o.current,ws(r),d)for(r=0;r<d.length;r++)l=d[r],p=l._getVersion,p=p(l._source),o.mutableSourceEagerHydrationData==null?o.mutableSourceEagerHydrationData=[l,p]:o.mutableSourceEagerHydrationData.push(l,p);return new Ll(o)},en.render=function(r,o,l){if(!Dl(o))throw Error(n(200));return Ml(null,r,o,!1,l)},en.unmountComponentAtNode=function(r){if(!Dl(r))throw Error(n(40));return r._reactRootContainer?(Si(function(){Ml(null,null,r,!1,function(){r._reactRootContainer=null,r[ar]=null})}),!0):!1},en.unstable_batchedUpdates=xd,en.unstable_renderSubtreeIntoContainer=function(r,o,l,d){if(!Dl(l))throw Error(n(200));if(r==null||r._reactInternals===void 0)throw Error(n(38));return Ml(r,o,l,!1,d)},en.version="18.3.1-next-f1338f8080-20240426",en}var Wg;function T0(){if(Wg)return Id.exports;Wg=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Id.exports=eS(),Id.exports}var qg;function tS(){if(qg)return zl;qg=1;var e=T0();return zl.createRoot=e.createRoot,zl.hydrateRoot=e.hydrateRoot,zl}var nS=tS();const rS=va(nS),iS="modulepreload",oS=function(e){return"/"+e},Qg={},Ye=function(t,n,i){let s=Promise.resolve();if(n&&n.length>0){let u=function(h){return Promise.all(h.map(m=>Promise.resolve(m).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),f=(c==null?void 0:c.nonce)||(c==null?void 0:c.getAttribute("nonce"));s=u(n.map(h=>{if(h=oS(h),h in Qg)return;Qg[h]=!0;const m=h.endsWith(".css"),g=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${g}`))return;const w=document.createElement("link");if(w.rel=m?"stylesheet":iS,m||(w.as="script"),w.crossOrigin="",w.href=h,f&&w.setAttribute("nonce",f),document.head.appendChild(w),m)return new Promise((v,E)=>{w.addEventListener("load",v),w.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${h}`)))})}))}function a(u){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=u,window.dispatchEvent(c),!c.defaultPrevented)throw u}return s.then(u=>{for(const c of u||[])c.status==="rejected"&&a(c.reason);return t().catch(a)})},sS=20,aS=1e6,wr={ADD_TOAST:"ADD_TOAST",UPDATE_TOAST:"UPDATE_TOAST",DISMISS_TOAST:"DISMISS_TOAST",REMOVE_TOAST:"REMOVE_TOAST"};let Md=0;function lS(){return Md=(Md+1)%Number.MAX_VALUE,Md.toString()}const jd=new Map,Yg=e=>{if(jd.has(e))return;const t=setTimeout(()=>{jd.delete(e),Js({type:wr.REMOVE_TOAST,toastId:e})},aS);jd.set(e,t)},uS=(e,t)=>{switch(t.type){case wr.ADD_TOAST:return{...e,toasts:[t.toast,...e.toasts].slice(0,sS)};case wr.UPDATE_TOAST:return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case wr.DISMISS_TOAST:{const{toastId:n}=t;
41return n?Yg(n):e.toasts.forEach(i=>{Yg(i.id)}),{...e,toasts:e.toasts.map(i=>i.id===n||n===void 0?{...i,open:!1}:i)}}case wr.REMOVE_TOAST:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},ru=[];let iu={toasts:[]};function Js(e){iu=uS(iu,e),ru.forEach(t=>{t(iu)})}function cS({...e}){const t=lS(),n=s=>Js({type:wr.UPDATE_TOAST,toast:{...s,id:t}}),i=()=>Js({type:wr.DISMISS_TOAST,toastId:t});return Js({type:wr.ADD_TOAST,toast:{...e,id:t,open:!0,onOpenChange:s=>{s||i()}}}),{id:t,dismiss:i,update:n}}function dS(){const[e,t]=C.useState(iu);return C.useEffect(()=>(ru.push(t),()=>{const n=ru.indexOf(t);n>-1&&ru.splice(n,1)}),[e]),{...e,toast:cS,dismiss:n=>Js({type:wr.DISMISS_TOAST,toastId:n})}}function R0(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=R0(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function O0(){for(var e,t,n=0,i="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=R0(e))&&(i&&(i+=" "),i+=t);return i}const Kg=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Gg=O0,hh=(e,t)=>n=>{var i;if((t==null?void 0:t.variants)==null)return Gg(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:a}=t,u=Object.keys(s).map(h=>{const m=n==null?void 0:n[h],g=a==null?void 0:a[h];if(m===null)return null;const w=Kg(m)||Kg(g);return s[h][w]}),c=n&&Object.entries(n).reduce((h,m)=>{let[g,w]=m;return w===void 0||(h[g]=w),h},{}),f=t==null||(i=t.compoundVariants)===null||i===void 0?void 0:i.reduce((h,m)=>{let{class:g,className:w,...v}=m;return Object.entries(v).every(E=>{let[k,S]=E;return Array.isArray(S)?S.includes({...a,...c}[k]):{...a,...c}[k]===S})?[...h,g,w]:h},[]);return Gg(e,u,f,n==null?void 0:n.class,n==null?void 0:n.className)};/**
42 * @license lucide-react v0.475.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 fS=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),N0=(...e)=>e.filter((t,n,i)=>!!t&&t.trim()!==""&&i.indexOf(t)===n).join(" ").trim();/**
47 * @license lucide-react v0.475.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 hS={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.475.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 pS=C.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:s="",children:a,iconNode:u,...c},f)=>C.createElement("svg",{ref:f,...hS,width:t,height:t,stroke:e,strokeWidth:i?Number(n)*24/Number(t):n,className:N0("lucide",s),...c},[...u.map(([h,m])=>C.createElement(h,m)),...Array.isArray(a)?a:[a]]));/**
57 * @license lucide-react v0.475.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 ot=(e,t)=>{const n=C.forwardRef(({className:i,...s},a)=>C.createElement(pS,{ref:a,iconNode:t,className:N0(`lucide-${fS(e)}`,i),...s}));return n.displayName=`${e}`,n};/**
62 * @license lucide-react v0.475.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 mS=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],Fd=ot("Bell",mS);/**
67 * @license lucide-react v0.475.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 gS=[["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"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]],yS=ot("CalendarCheck",gS);/**
72 * @license lucide-react v0.475.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 vS=[["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"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],Xg=ot("CalendarDays",vS);/**
77 * @license lucide-react v0.475.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 wS=[["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"}]],xS=ot("Calendar",wS);/**
82 * @license lucide-react v0.475.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 bS=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662",key:"154egf"}]],A0=ot("CircleUser",bS);/**
87 * @license lucide-react v0.475.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 kS=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],I0=ot("ClipboardList",kS);/**
92 * @license lucide-react v0.475.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 SS=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],L0=ot("CreditCard",SS);/**
97 * @license lucide-react v0.475.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 ES=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],_S=ot("FileText",ES);/**
102 * @license lucide-react v0.475.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 CS=[["path",{d:"m11 17 2 2a1 1 0 1 0 3-3",key:"efffak"}],["path",{d:"m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4",key:"9pr0kb"}],["path",{d:"m21 3 1 11h-2",key:"1tisrp"}],["path",{d:"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3",key:"1uvwmv"}],["path",{d:"M3 4h8",key:"1ep09j"}]],PS=ot("Handshake",CS);/**
107 * @license lucide-react v0.475.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 TS=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]],RS=ot("House",TS);/**
112 * @license lucide-react v0.475.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 OS=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Jg=ot("LoaderCircle",OS);/**
117 * @license lucide-react v0.475.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 NS=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],Zg=ot("Lock",NS);/**
122 * @license lucide-react v0.475.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 AS=[["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}],["polyline",{points:"10 17 15 12 10 7",key:"1ail0h"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}]],IS=ot("LogIn",AS);/**
127 * @license lucide-react v0.475.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 LS=[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]],DS=ot("LogOut",LS);/**
132 * @license lucide-react v0.475.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 MS=[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]],D0=ot("MessageCircle",MS);/**
137 * @license lucide-react v0.475.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 jS=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],M0=ot("MessageSquare",jS);/**
142 * @license lucide-react v0.475.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 FS=[["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2",key:"7pis2x"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M10 6h8v4h-8V6Z",key:"smlsk5"}]],j0=ot("Newspaper",FS);/**
147 * @license lucide-react v0.475.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 zS=[["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"}]],US=ot("Send",zS);/**
152 * @license lucide-react v0.475.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 BS=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
vendor: 2,804 bytes, lines 156-176
156y:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],F0=ot("ShieldCheck",BS);/**
157 * @license lucide-react v0.475.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 $S=[["path",{d:"M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z",key:"hou9p0"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}]],bf=ot("ShoppingBag",$S);/**
162 * @license lucide-react v0.475.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 VS=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],z0=ot("TriangleAlert",VS);/**
167 * @license lucide-react v0.475.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 HS=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]],yu=ot("Users",HS);/**
172 * @license lucide-react v0.475.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 WS=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ph=ot("X",WS),qS=(e,t)=>{const n=new Array(e.length+t.length);for(let i=0;i<e.length;i++)n[i]=e[i];for(let i=0;i<t.length;i++)n[e.length+i]=t[i];return n},QS=(e,t)=>({classGroupId:e,validator:t}),U0=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),vu="-",ey=[],YS="arbitrary..",KS=e=>{const t=XS(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:u=>{if(u.startsWith("[")&&u.endsWith("]"))return GS(u);const c=u.split(vu),f=c[0]===""&&c.length>1?1:0;return B0(c,f,t)},getConflictingClassGroupIds:(u,c)=>{if(c){const f=i[u],h=n[u];return f?h?qS(h,f):f:h||ey}return n[u]||ey}}},B0=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const s=e[t],a=n.nextPart.get(s);if(a){const h=B0(e,t+1,a);if(h)return h}const u=n.validators;if(u===null)return;const c=t===0?e.join(vu):e.slice(t).join(vu),f=u.length;for(let h=0;h<f;h++){const m=u[h];if(m.validator(c))return m.classGroupId}},GS=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),i=t.slice(0,n);return i?YS+i:void 0})(),XS=e=>{const{theme:t,classGroups:n}=e;return JS(n,t)},JS=(e,t)=>{const n=U0();for(const i in e){const s=e[i];mh(s,n,i,t)}return n},mh=(e,t,n,i)=>{const s=e.length;for(let a=0;a<s;a++){const u=e[a];ZS(u,t,n,i)}},ZS=(e,t,n,i)=>
vendor: 3,753 bytes, line 176
176{if(typeof e=="string"){eE(e,t,n);return}if(typeof e=="function"){tE(e,t,n,i);return}nE(e,t,n,i)},eE=(e,t,n)=>{const i=e===""?t:$0(t,e);i.classGroupId=n},tE=(e,t,n,i)=>{if(rE(e)){mh(e(i),t,n,i);return}t.validators===null&&(t.validators=[]),t.validators.push(QS(n,e))},nE=(e,t,n,i)=>{const s=Object.entries(e),a=s.length;for(let u=0;u<a;u++){const[c,f]=s[u];mh(f,$0(t,c),n,i)}},$0=(e,t)=>{let n=e;const i=t.split(vu),s=i.length;for(let a=0;a<s;a++){const u=i[a];let c=n.nextPart.get(u);c||(c=U0(),n.nextPart.set(u,c)),n=c}return n},rE=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,iE=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),i=Object.create(null);const s=(a,u)=>{n[a]=u,t++,t>e&&(t=0,i=n,n=Object.create(null))};return{get(a){let u=n[a];if(u!==void 0)return u;if((u=i[a])!==void 0)return s(a,u),u},set(a,u){a in n?n[a]=u:s(a,u)}}},kf="!",ty=":",oE=[],ny=(e,t,n,i,s)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:i,isExternal:s}),sE=e=>{const{prefix:t,experimentalParseClassName:n}=e;let i=s=>{const a=[];let u=0,c=0,f=0,h;const m=s.length;for(let k=0;k<m;k++){const S=s[k];if(u===0&&c===0){if(S===ty){a.push(s.slice(f,k)),f=k+1;continue}if(S==="/"){h=k;continue}}S==="["?u++:S==="]"?u--:S==="("?c++:S===")"&&c--}const g=a.length===0?s:s.slice(f);let w=g,v=!1;g.endsWith(kf)?(w=g.slice(0,-1),v=!0):g.startsWith(kf)&&(w=g.slice(1),v=!0);const E=h&&h>f?h-f:void 0;return ny(a,v,w,E)};if(t){const s=t+ty,a=i;i=u=>u.startsWith(s)?a(u.slice(s.length)):ny(oE,!1,u,void 0,!0)}if(n){const s=i;i=a=>n({className:a,parseClassName:s})}return i},aE=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,i)=>{t.set(n,1e6+i)}),n=>{const i=[];let s=[];for(let a=0;a<n.length;a++){const u=n[a],c=u[0]==="[",f=t.has(u);c||f?(s.length>0&&(s.sort(),i.push(...s),s=[]),i.push(u)):s.push(u)}return s.length>0&&(s.sort(),i.push(...s)),i}},lE=e=>({cache:iE(e.cacheSize),parseClassName:sE(e),sortModifiers:aE(e),...KS(e)}),uE=/\s+/,cE=(e,t)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:s,sortModifiers:a}=t,u=[],c=e.trim().split(uE);let f="";for(let h=c.length-1;h>=0;h-=1){const m=c[h],{isExternal:g,modifiers:w,hasImportantModifier:v,baseClassName:E,maybePostfixModifierPosition:k}=n(m);if(g){f=m+(f.length>0?" "+f:f);continue}let S=!!k,x=i(S?E.substring(0,k):E);if(!x){if(!S){f=m+(f.length>0?" "+f:f);continue}if(x=i(E),!x){f=m+(f.length>0?" "+f:f);continue}S=!1}const R=w.length===0?"":w.length===1?w[0]:a(w).join(":"),T=v?R+kf:R,A=T+x;if(u.indexOf(A)>-1)continue;u.push(A);const U=s(x,S);for(let L=0;L<U.length;++L){const W=U[L];u.push(T+W)}f=m+(f.length>0?" "+f:f)}return f},dE=(...e)=>{let t=0,n,i,s="";for(;t<e.length;)(n=e[t++])&&(i=V0(n))&&(s&&(s+=" "),s+=i);return s},V0=e=>{if(typeof e=="string")return e;let t,n="";for(let i=0;i<e.length;i++)e[i]&&(t=V0(e[i]))&&(n&&(n+=" "),n+=t);return n},fE=(e,...t)=>{let n,i,s,a;const u=f=>{const h=t.reduce((m,g)=>g(m),e());return n=lE(h),i=n.cache.get,s=n.cache.set,a=c,c(f)},c=f=>{const h=i(f);if(h)return h;const m=cE(f,n);return s(f,m),m};return a=u,(...f)=>a(dE(...f))},hE=[],xt=e=>{const t=n=>n[e]||hE;return t.isThemeGetter=!0,t},H0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,W0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,pE=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,mE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,gE=/\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$/,yE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,vE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,wE=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,$r=e=>pE.test(e),Le=e=>!!e&&!Number.isNaN(Number(e)),Vr=e=>!!e&&Number.isInteger(Number(e)),zd=e=>
vendor: 4,675 bytes, line 176
176e.endsWith("%")&&Le(e.slice(0,-1)),mr=e=>mE.test(e),q0=()=>!0,xE=e=>gE.test(e)&&!yE.test(e),gh=()=>!1,bE=e=>vE.test(e),kE=e=>wE.test(e),SE=e=>!pe(e)&&!ge(e),EE=e=>ci(e,K0,gh),pe=e=>H0.test(e),Pi=e=>ci(e,G0,xE),ry=e=>ci(e,AE,Le),_E=e=>ci(e,J0,q0),CE=e=>ci(e,X0,gh),iy=e=>ci(e,Q0,gh),PE=e=>ci(e,Y0,kE),Ul=e=>ci(e,Z0,bE),ge=e=>W0.test(e),Fs=e=>Qi(e,G0),TE=e=>Qi(e,X0),oy=e=>Qi(e,Q0),RE=e=>Qi(e,K0),OE=e=>Qi(e,Y0),Bl=e=>Qi(e,Z0,!0),NE=e=>Qi(e,J0,!0),ci=(e,t,n)=>{const i=H0.exec(e);return i?i[1]?t(i[1]):n(i[2]):!1},Qi=(e,t,n=!1)=>{const i=W0.exec(e);return i?i[1]?t(i[1]):n:!1},Q0=e=>e==="position"||e==="percentage",Y0=e=>e==="image"||e==="url",K0=e=>e==="length"||e==="size"||e==="bg-size",G0=e=>e==="length",AE=e=>e==="number",X0=e=>e==="family-name",J0=e=>e==="number"||e==="weight",Z0=e=>e==="shadow",IE=()=>{const e=xt("color"),t=xt("font"),n=xt("text"),i=xt("font-weight"),s=xt("tracking"),a=xt("leading"),u=xt("breakpoint"),c=xt("container"),f=xt("spacing"),h=xt("radius"),m=xt("shadow"),g=xt("inset-shadow"),w=xt("text-shadow"),v=xt("drop-shadow"),E=xt("blur"),k=xt("perspective"),S=xt("aspect"),x=xt("ease"),R=xt("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],U=()=>[...A(),ge,pe],L=()=>["auto","hidden","clip","visible","scroll"],W=()=>["auto","contain","none"],M=()=>[ge,pe,f],K=()=>[$r,"full","auto",...M()],H=()=>[Vr,"none","subgrid",ge,pe],Q=()=>["auto",{span:["full",Vr,ge,pe]},Vr,ge,pe],G=()=>[Vr,"auto",ge,pe],le=()=>["auto","min","max","fr",ge,pe],te=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],J=()=>["start","end","center","stretch","center-safe","end-safe"],me=()=>["auto",...M()],be=()=>[$r,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...M()],X=()=>[$r,"screen","full","dvw","lvw","svw","min","max","fit",...M()],ue=()=>[$r,"screen","full","lh","dvh","lvh","svh","min","max","fit",...M()],P=()=>[e,ge,pe],D=()=>[...A(),oy,iy,{position:[ge,pe]}],q=()=>["no-repeat",{repeat:["","x","y","space","round"]}],O=()=>["auto","cover","contain",RE,EE,{size:[ge,pe]}],we=()=>[zd,Fs,Pi],xe=()=>["","none","full",h,ge,pe],re=()=>["",Le,Fs,Pi],Pe=()=>["solid","dashed","dotted","double"],Ae=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Se=()=>[Le,zd,oy,iy],Ze=()=>["","none",E,ge,pe],Ct=()=>["none",Le,ge,pe],yt=()=>["none",Le,ge,pe],ln=()=>[Le,ge,pe],Qt=()=>[$r,"full",...M()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[mr],breakpoint:[mr],color:[q0],container:[mr],"drop-shadow":[mr],ease:["in","out","in-out"],font:[SE],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[mr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[mr],shadow:[mr],spacing:["px",Le],text:[mr],"text-shadow":[mr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",$r,pe,ge,S]}],container:["container"],columns:[{columns:[Le,pe,ge,c]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],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:U()}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:K()}],"inset-x":[{"inset-x":K()}],"inset-y":[{"inset-y":K()}],start:[{"inset-s":K(),start:K()}],end:[{"inset-e":K(),end:K()}],"inset-bs":[{"inset-bs":K()}],"inset-be":[{"inset-be":K()}],top:[{top:K()}
vendor: 4,769 bytes, line 176
176],right:[{right:K()}],bottom:[{bottom:K()}],left:[{left:K()}],visibility:["visible","invisible","collapse"],z:[{z:[Vr,"auto",ge,pe]}],basis:[{basis:[$r,"full","auto",c,...M()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Le,$r,"auto","initial","none",pe]}],grow:[{grow:["",Le,ge,pe]}],shrink:[{shrink:["",Le,ge,pe]}],order:[{order:[Vr,"first","last","none",ge,pe]}],"grid-cols":[{"grid-cols":H()}],"col-start-end":[{col:Q()}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":H()}],"row-start-end":[{row:Q()}],"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":le()}],"auto-rows":[{"auto-rows":le()}],gap:[{gap:M()}],"gap-x":[{"gap-x":M()}],"gap-y":[{"gap-y":M()}],"justify-content":[{justify:[...te(),"normal"]}],"justify-items":[{"justify-items":[...J(),"normal"]}],"justify-self":[{"justify-self":["auto",...J()]}],"align-content":[{content:["normal",...te()]}],"align-items":[{items:[...J(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...J(),{baseline:["","last"]}]}],"place-content":[{"place-content":te()}],"place-items":[{"place-items":[...J(),"baseline"]}],"place-self":[{"place-self":["auto",...J()]}],p:[{p:M()}],px:[{px:M()}],py:[{py:M()}],ps:[{ps:M()}],pe:[{pe:M()}],pbs:[{pbs:M()}],pbe:[{pbe:M()}],pt:[{pt:M()}],pr:[{pr:M()}],pb:[{pb:M()}],pl:[{pl:M()}],m:[{m:me()}],mx:[{mx:me()}],my:[{my:me()}],ms:[{ms:me()}],me:[{me:me()}],mbs:[{mbs:me()}],mbe:[{mbe:me()}],mt:[{mt:me()}],mr:[{mr:me()}],mb:[{mb:me()}],ml:[{ml:me()}],"space-x":[{"space-x":M()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":M()}],"space-y-reverse":["space-y-reverse"],size:[{size:be()}],"inline-size":[{inline:["auto",...X()]}],"min-inline-size":[{"min-inline":["auto",...X()]}],"max-inline-size":[{"max-inline":["none",...X()]}],"block-size":[{block:["auto",...ue()]}],"min-block-size":[{"min-block":["auto",...ue()]}],"max-block-size":[{"max-block":["none",...ue()]}],w:[{w:[c,"screen",...be()]}],"min-w":[{"min-w":[c,"screen","none",...be()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[u]},...be()]}],h:[{h:["screen","lh",...be()]}],"min-h":[{"min-h":["screen","lh","none",...be()]}],"max-h":[{"max-h":["screen","lh",...be()]}],"font-size":[{text:["base",n,Fs,Pi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,NE,_E]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",zd,pe]}],"font-family":[{font:[TE,CE,t]}],"font-features":[{"font-features":[pe]}],"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:[s,ge,pe]}],"line-clamp":[{"line-clamp":[Le,"none",ge,ry]}],leading:[{leading:[a,...M()]}],"list-image":[{"list-image":["none",ge,pe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ge,pe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Pe(),"wavy"]}],"text-decoration-thickness":[{decoration:[Le,"from-font","auto",ge,Pi]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[Le,"auto",ge,pe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ge,pe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ge,pe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:D()}],"bg-repeat":[{bg:q()}],"bg-size":[{bg:O()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Vr,ge,pe],radial:["",ge,pe],conic:[Vr,ge,pe]},OE,PE]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:we()}
176],"gradient-via-pos":[{via:we()}],"gradient-to-pos":[{to:we()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:xe()}],"rounded-s":[{"rounded-s":xe()}],"rounded-e":[{"rounded-e":xe()}],"rounded-t":[{"rounded-t":xe()}],"rounded-r":[{"rounded-r":xe()}],"rounded-b":[{"rounded-b":xe()}],"rounded-l":[{"rounded-l":xe()}],"rounded-ss":[{"rounded-ss":xe()}],"rounded-se":[{"rounded-se":xe()}],"rounded-ee":[{"rounded-ee":xe()}],"rounded-es":[{"rounded-es":xe()}],"rounded-tl":[{"rounded-tl":xe()}],"rounded-tr":[{"rounded-tr":xe()}],"rounded-br":[{"rounded-br":xe()}],"rounded-bl":[{"rounded-bl":xe()}],"border-w":[{border:re()}],"border-w-x":[{"border-x":re()}],"border-w-y":[{"border-y":re()}],"border-w-s":[{"border-s":re()}],"border-w-e":[{"border-e":re()}],"border-w-bs":[{"border-bs":re()}],"border-w-be":[{"border-be":re()}],"border-w-t":[{"border-t":re()}],"border-w-r":[{"border-r":re()}],"border-w-b":[{"border-b":re()}],"border-w-l":[{"border-l":re()}],"divide-x":[{"divide-x":re()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":re()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Pe(),"hidden","none"]}],"divide-style":[{divide:[...Pe(),"hidden","none"]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}
vendor: 5,975 bytes, line 176
176],"border-color-bs":[{"border-bs":P()}],"border-color-be":[{"border-be":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:[...Pe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Le,ge,pe]}],"outline-w":[{outline:["",Le,Fs,Pi]}],"outline-color":[{outline:P()}],shadow:[{shadow:["","none",m,Bl,Ul]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":["none",g,Bl,Ul]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[Le,Pi]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":re()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":["none",w,Bl,Ul]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[Le,ge,pe]}],"mix-blend":[{"mix-blend":[...Ae(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ae()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Le]}],"mask-image-linear-from-pos":[{"mask-linear-from":Se()}],"mask-image-linear-to-pos":[{"mask-linear-to":Se()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":Se()}],"mask-image-t-to-pos":[{"mask-t-to":Se()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":Se()}],"mask-image-r-to-pos":[{"mask-r-to":Se()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":Se()}],"mask-image-b-to-pos":[{"mask-b-to":Se()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":Se()}],"mask-image-l-to-pos":[{"mask-l-to":Se()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":Se()}],"mask-image-x-to-pos":[{"mask-x-to":Se()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":Se()}],"mask-image-y-to-pos":[{"mask-y-to":Se()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[ge,pe]}],"mask-image-radial-from-pos":[{"mask-radial-from":Se()}],"mask-image-radial-to-pos":[{"mask-radial-to":Se()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":A()}],"mask-image-conic-pos":[{"mask-conic":[Le]}],"mask-image-conic-from-pos":[{"mask-conic-from":Se()}],"mask-image-conic-to-pos":[{"mask-conic-to":Se()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:D()}],"mask-repeat":[{mask:q()}],"mask-size":[{mask:O()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ge,pe]}],filter:[{filter:["","none",ge,pe]}],blur:[{blur:Ze()}],brightness:[{brightness:[Le,ge,pe]}],contrast:[{contrast:[Le,ge,pe]}],"drop-shadow":[{"drop-shadow":["","none",v,Bl,Ul]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:["",Le,ge,pe]}],"hue-rotate":[{"hue-rotate":[Le,ge,pe]}],invert:[{invert:["",Le,ge,pe]}],saturate:[{saturate:[Le,ge,pe]}],sepia:[{sepia:["",Le,ge,pe]}],"backdrop-filter":[{"backdrop-filter":["","none",ge,pe]}],"backdrop-blur":[{"backdrop-blur":Ze()}],"backdrop-brightness":[{"backdrop-brightness":[Le,ge,pe]}],"backdrop-contrast":[{"backdrop-contrast":[Le,ge,pe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Le,ge,pe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Le,ge,pe]}],"backdrop-invert":[{"backdrop-invert":["",Le,ge,pe]}],"backdrop-opacity":[{"backdrop-opacity":[Le,ge,pe]}],"backdrop-saturate":[{"backdrop-saturate":[Le,ge,pe]}],"backdrop-sepia":[{"backdrop-sepia":["",Le,ge,pe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":M()}],"border-spacing-x":[{"border-spacing-x":M()}],"border-spacing-y":[{"border-spacing-y":M()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ge,pe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Le,"initial",ge,pe]}],ease:[{ease:["linear","initial",x,ge,pe]}],delay:[{delay:[Le,ge,pe]}],animate:[{animate:["none",R,ge,pe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,ge,pe]}],"perspective-origin":[{"perspective-origin":U()}],rotate:[{rotate:Ct()}],"rotate-x":[{"rotate-x":Ct()}],"rotate-y":[{"rotate-y":Ct()}],"rotate-z":[{"rotate-z":Ct()}],scale:[{scale:yt()}],"scale-x":[{"scale-x":yt()}],"scale-y":[{"scale-y":yt()}],"scale-z":[{"scale-z":yt()}],"scale-3d":["scale-3d"],skew:[{skew:ln()}],"skew-x":[{"skew-x":ln()}],"skew-y":[{"skew-y":ln()}],transform:[{transform:[ge,pe,"","none","gpu","cpu"]}],"transform-origin":[{origin:U()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Qt()}],"translate-x":[{"translate-x":Qt()}],"translate-y":[{"translate-y":Qt()}],"translate-z":[{"translate-z":Qt()}],"translate-none":["translate-none"],accent:[{accent:P()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:P()}
vendor: 6,955 bytes, line 176
176],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",ge,pe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mbs":[{"scroll-mbs":M()}],"scroll-mbe":[{"scroll-mbe":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pbs":[{"scroll-pbs":M()}],"scroll-pbe":[{"scroll-pbe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ge,pe]}],fill:[{fill:["none",...P()]}],"stroke-w":[{stroke:[Le,Fs,Pi,ry]}],stroke:[{stroke:["none",...P()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","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-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},LE=fE(IE);function lt(...e){return LE(O0(e))}const ew=C.forwardRef(({...e},t)=>_.jsx("div",{ref:t,className:"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",...e}));ew.displayName="ToastProvider";const tw=C.forwardRef(({...e},t)=>_.jsx("div",{ref:t,className:"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",...e}));tw.displayName="ToastViewport";const DE=hh("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"}}),nw=C.forwardRef(({className:e,variant:t,...n},i)=>_.jsx("div",{ref:i,className:lt(DE({variant:t}),e),...n}));nw.displayName="Toast";const ME=C.forwardRef(({className:e,...t},n)=>_.jsx("div",{ref:n,className:lt("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));ME.displayName="ToastAction";const rw=C.forwardRef(({className:e,...t},n)=>_.jsx("button",{ref:n,className:lt("absolute right-2 top-2 rounded-md p-1 text-foreground
vendor: 4,558 bytes, line 176
176/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:_.jsx(ph,{className:"h-4 w-4"})}));rw.displayName="ToastClose";const iw=C.forwardRef(({className:e,...t},n)=>_.jsx("div",{ref:n,className:lt("text-sm font-semibold",e),...t}));iw.displayName="ToastTitle";const ow=C.forwardRef(({className:e,...t},n)=>_.jsx("div",{ref:n,className:lt("text-sm opacity-90",e),...t}));ow.displayName="ToastDescription";function jE(){const{toasts:e}=dS();return _.jsxs(ew,{children:[e.map(function({id:t,title:n,description:i,action:s,...a}){return _.jsxs(nw,{...a,children:[_.jsxs("div",{className:"grid gap-1",children:[n&&_.jsx(iw,{children:n}),i&&_.jsx(ow,{children:i})]}),s,_.jsx(rw,{})]},t)}),_.jsx(tw,{})]})}var wa=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},FE={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Kr,dh,y0,zE=(y0=class{constructor(){Ce(this,Kr,FE);Ce(this,dh,!1)}setTimeoutProvider(e){de(this,Kr,e)}setTimeout(e,t){return j(this,Kr).setTimeout(e,t)}clearTimeout(e){j(this,Kr).clearTimeout(e)}setInterval(e,t){return j(this,Kr).setInterval(e,t)}clearInterval(e){j(this,Kr).clearInterval(e)}},Kr=new WeakMap,dh=new WeakMap,y0),Ni=new zE;function UE(e){setTimeout(e,0)}var Vi=typeof window>"u"||"Deno"in globalThis;function rn(){}function BE(e,t){return typeof e=="function"?e(t):e}function Sf(e){return typeof e=="number"&&e>=0&&e!==1/0}function sw(e,t){return Math.max(e+(t||0)-Date.now(),0)}function oi(e,t){return typeof e=="function"?e(t):e}function Cn(e,t){return typeof e=="function"?e(t):e}function sy(e,t){const{type:n="all",exact:i,fetchStatus:s,predicate:a,queryKey:u,stale:c}=e;if(u){if(i){if(t.queryHash!==yh(u,t.options))return!1}else if(!ia(t.queryKey,u))return!1}if(n!=="all"){const f=t.isActive();if(n==="active"&&!f||n==="inactive"&&f)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||s&&s!==t.state.fetchStatus||a&&!a(t))}function ay(e,t){const{exact:n,status:i,predicate:s,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(ra(t.options.mutationKey)!==ra(a))return!1}else if(!ia(t.options.mutationKey,a))return!1}return!(i&&t.state.status!==i||s&&!s(t))}function yh(e,t){return((t==null?void 0:t.queryKeyHashFn)||ra)(e)}function ra(e){return JSON.stringify(e,(t,n)=>_f(n)?Object.keys(n).sort().reduce((i,s)=>(i[s]=n[s],i),{}):n)}function ia(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>ia(e[n],t[n])):!1}var $E=Object.prototype.hasOwnProperty;function aw(e,t,n=0){if(e===t)return e;if(n>500)return t;const i=ly(e)&&ly(t);if(!i&&!(_f(e)&&_f(t)))return t;const a=(i?e:Object.keys(e)).length,u=i?t:Object.keys(t),c=u.length,f=i?new Array(c):{};let h=0;for(let m=0;m<c;m++){const g=i?m:u[m],w=e[g],v=t[g];if(w===v){f[g]=w,(i?m<a:$E.call(e,g))&&h++;continue}if(w===null||v===null||typeof w!="object"||typeof v!="object"){f[g]=v;continue}const E=aw(w,v,n+1);f[g]=E,E===w&&h++}return a===c&&h===a?e:f}function Ef(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function ly(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function _f(e){if(!uy(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!uy(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function uy(e){return Object.prototype.toString.call(e)==="[object Object]"}function VE(e){return new Promise(t=>{Ni.setTimeout(t,e)})}function Cf(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?aw(e,t):t}function HE(e,t,n=0){const i=[...e,t];return n&&i.length>n?i.slice(1):i}function WE(e,t,n=0){const i=[t,...e];return n&&i.length>n?i.slice(0,-1):i}var vh=Symbol();function lw(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===vh?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function uw(e,t){return typeof e=="function"?e(...t):!!e}
176function qE(e,t,n){let i=!1,s;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(s??(s=t()),i||(i=!0,s.aborted?n():s.addEventListener("abort",n,{once:!0})),s)}),e}var Ii,Gr,Do,v0,QE=(v0=class extends wa{constructor(){super();Ce(this,Ii);Ce(this,Gr);Ce(this,Do);de(this,Do,t=>{if(!Vi&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){j(this,Gr)||this.setEventListener(j(this,Do))}onUnsubscribe(){var t;this.hasListeners()||((t=j(this,Gr))==null||t.call(this),de(this,Gr,void 0))}setEventListener(t){var n;de(this,Do,t),(n=j(this,Gr))==null||n.call(this),de(this,Gr,t(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(t){j(this,Ii)!==t&&(de(this,Ii,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof j(this,Ii)=="boolean"?j(this,Ii):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Ii=new WeakMap,Gr=new WeakMap,Do=new WeakMap,v0),wh=new QE;function Pf(){let e,t;const n=new Promise((s,a)=>{e=s,t=a});n.status="pending",n.catch(()=>{});function i(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{i({status:"fulfilled",value:s}),e(s)},n.reject=s=>{i({status:"rejected",reason:s}),t(s)},n}var YE=UE;function KE(){let e=[],t=0,n=c=>{c()},i=c=>{c()},s=YE;const a=c=>{t?e.push(c):s(()=>{n(c)})},u=()=>{const c=e;e=[],c.length&&s(()=>{i(()=>{c.forEach(f=>{n(f)})})})};return{batch:c=>{let f;t++;try{f=c()}finally{t--,t||u()}return f},batchCalls:c=>(...f)=>{a(()=>{c(...f)})},schedule:a,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{i=c},setScheduler:c=>{s=c}}}var At=KE(),Mo,Xr,jo,w0,GE=(w0=class extends wa{constructor(){super();Ce(this,Mo,!0);Ce(this,Xr);Ce(this,jo);de(this,jo,t=>{if(!Vi&&window.addEventListener){const n=()=>t(!0),i=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",i)}}})}onSubscribe(){j(this,Xr)||this.setEventListener(j(this,jo))}onUnsubscribe(){var t;this.hasListeners()||((t=j(this,Xr))==null||t.call(this),de(this,Xr,void 0))}setEventListener(t){var n;de(this,jo,t),(n=j(this,Xr))==null||n.call(this),de(this,Xr,t(this.setOnline.bind(this)))}setOnline(t){j(this,Mo)!==t&&(de(this,Mo,t),this.listeners.forEach(i=>{i(t)}))}isOnline(){return j(this,Mo)}},Mo=new WeakMap,Xr=new WeakMap,jo=new WeakMap,w0),wu=new GE;function XE(e){return Math.min(1e3*2**e,3e4)}function cw(e){return(e??"online")==="online"?wu.isOnline():!0}var Tf=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function dw(e){let t=!1,n=0,i;const s=Pf(),a=()=>s.status!=="pending",u=k=>{var S;if(!a()){const x=new Tf(k);w(x),(S=e.onCancel)==null||S.call(e,x)}},c=()=>{t=!0},f=()=>{t=!1},h=()=>wh.isFocused()&&(e.networkMode==="always"||wu.isOnline())&&e.canRun(),m=()=>cw(e.networkMode)&&e.canRun(),g=k=>{a()||(i==null||i(),s.resolve(k))},w=k=>{a()||(i==null||i(),s.reject(k))},v=()=>new Promise(k=>{var S;i=x=>{(a()||h())&&k(x)},(S=e.onPause)==null||S.call(e)}).then(()=>{var k;i=void 0,a()||(k=e.onContinue)==null||k.call(e)}),E=()=>
vendor: 4,359 bytes, line 176
176{if(a())return;let k;const S=n===0?e.initialPromise:void 0;try{k=S??e.fn()}catch(x){k=Promise.reject(x)}Promise.resolve(k).then(g).catch(x=>{var L;if(a())return;const R=e.retry??(Vi?0:3),T=e.retryDelay??XE,A=typeof T=="function"?T(n,x):T,U=R===!0||typeof R=="number"&&n<R||typeof R=="function"&&R(n,x);if(t||!U){w(x);return}n++,(L=e.onFail)==null||L.call(e,n,x),VE(A).then(()=>h()?void 0:v()).then(()=>{t?w(x):E()})})};return{promise:s,status:()=>s.status,cancel:u,continue:()=>(i==null||i(),s),cancelRetry:c,continueRetry:f,canStart:m,start:()=>(m()?E():v().then(E),s)}}var Li,x0,fw=(x0=class{constructor(){Ce(this,Li)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Sf(this.gcTime)&&de(this,Li,Ni.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Vi?1/0:300*1e3))}clearGcTimeout(){j(this,Li)&&(Ni.clearTimeout(j(this,Li)),de(this,Li,void 0))}},Li=new WeakMap,x0),Di,Fo,_n,Mi,_t,ha,ji,zn,gr,b0,JE=(b0=class extends fw{constructor(t){super();Ce(this,zn);Ce(this,Di);Ce(this,Fo);Ce(this,_n);Ce(this,Mi);Ce(this,_t);Ce(this,ha);Ce(this,ji);de(this,ji,!1),de(this,ha,t.defaultOptions),this.setOptions(t.options),this.observers=[],de(this,Mi,t.client),de(this,_n,j(this,Mi).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,de(this,Di,dy(this.options)),this.state=t.state??j(this,Di),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=j(this,_t))==null?void 0:t.promise}setOptions(t){if(this.options={...j(this,ha),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=dy(this.options);n.data!==void 0&&(this.setState(cy(n.data,n.dataUpdatedAt)),de(this,Di,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&j(this,_n).remove(this)}setData(t,n){const i=Cf(this.state.data,t,this.options);return je(this,zn,gr).call(this,{data:i,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),i}setState(t,n){je(this,zn,gr).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var i,s;const n=(i=j(this,_t))==null?void 0:i.promise;return(s=j(this,_t))==null||s.cancel(t),n?n.then(rn).catch(rn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(j(this,Di))}isActive(){return this.observers.some(t=>Cn(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===vh||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>oi(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!sw(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(i=>i.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=j(this,_t))==null||n.continue()}onOnline(){var n;const t=this.observers.find(i=>i.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=j(this,_t))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),j(this,_n).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(j(this,_t)&&(j(this,ji)?j(this,_t).cancel({revert:!0}):j(this,_t).cancelRetry()),this.scheduleGc()),j(this,_n).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||je(this,zn,gr).call(this,{type:"invalidate"})}async fetch(t,n){var f,h,m,g,w,v,E,k,S,x,R,T;if(this.state.fetchStatus!=="idle"&&((f=j(this,_t))==null?void 0:f.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(j(this,_t))return j(this,_t).continueRetry(),j(this,_t).promise}if(t&&this.setOptions(t),!this.options.queryFn){const A=this.observers.find(U=>U.options.queryFn);A&&this.setOptions(A.options)}const i=new AbortController,s=A=>{Object.defineProperty(A,"signal",{enumerable:!0,get:()=>(de(this,ji,!0),i.signal)}
176)},a=()=>{const A=lw(this.options,n),L=(()=>{const W={client:j(this,Mi),queryKey:this.queryKey,meta:this.meta};return s(W),W})();return de(this,ji,!1),this.options.persister?this.options.persister(A,L,this):A(L)},c=(()=>{const A={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:j(this,Mi),state:this.state,fetchFn:a};return s(A),A})();(h=this.options.behavior)==null||h.onFetch(c,this),de(this,Fo,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((m=c.fetchOptions)==null?void 0:m.meta))&&je(this,zn,gr).call(this,{type:"fetch",meta:(g=c.fetchOptions)==null?void 0:g.meta}),de(this,_t,dw({initialPromise:n==null?void 0:n.initialPromise,fn:c.fetchFn,onCancel:A=>{A instanceof Tf&&A.revert&&this.setState({...j(this,Fo),fetchStatus:"idle"}),i.abort()},onFail:(A,U)=>{je(this,zn,gr).call(this,{type:"failed",failureCount:A,error:U})},onPause:()=>{je(this,zn,gr).call(this,{type:"pause"})},onContinue:()=>{je(this,zn,gr).call(this,{type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0}));try{const A=await j(this,_t).start();if(A===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(A),(v=(w=j(this,_n).config).onSuccess)==null||v.call(w,A,this),(k=(E=j(this,_n).config).onSettled)==null||k.call(E,A,this.state.error,this),A}catch(A){if(A instanceof Tf){if(A.silent)return j(this,_t).promise;if(A.revert){if(this.state.data===void 0)throw A;return this.state.data}}throw je(this,zn,gr).call(this,{type:"error",error:A}),(x=(S=j(this,_n).config).onError)==null||x.call(S,A,this),(T=(R=j(this,_n).config).onSettled)==null||T.call(R,this.state.data,A,this),A}finally{this.scheduleGc()}}},Di=new WeakMap,Fo=new WeakMap,_n=new WeakMap,Mi=new WeakMap,_t=new WeakMap,ha=new WeakMap,ji=new WeakMap,zn=new WeakSet,gr=function(t){const n=i=>{switch(t.type){case"failed":return{...i,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...hw(i.data,this.options),fetchMeta:t.meta??null};case"success":const s={...i,...cy(t.data,t.dataUpdatedAt),dataUpdateCount:i.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return de(this,Fo,t.manual?s:void 0),s;case"error":const a=t.error;return{...i,error:a,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...t.state}}};this.state=n(this.state),At.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),j(this,_n).notify({query:this,type:"updated",action:t})})},b0);function hw(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:cw(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function cy(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function dy(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,i=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var nn,Fe,pa,qt,Fi,zo,yr,Jr,ma,Uo,Bo,zi,Ui,Zr,$o,We,Ys,Rf,Of,Nf,Af,If,Lf,Df,pw,k0,ZE=(k0=class extends wa{constructor(t,n){super();Ce(this,We);Ce(this,nn);Ce(this,Fe);Ce(this,pa);Ce(this,qt);Ce(this,Fi);Ce(this,zo);Ce(this,yr);Ce(this,Jr);Ce(this,ma);Ce(this,Uo);Ce(this,Bo);Ce(this,zi);Ce(this,Ui);Ce(this,Zr);Ce(this,$o,new Set);this.options=n,de(this,nn,t),de(this,Jr,null),de(this,yr,Pf()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(j(this,Fe).addObserver(this),fy(j(this,Fe),this.options)?je(this,We,Ys).call(this):this.updateResult(),je(this,We,Af).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Mf(j(this,Fe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Mf(j(this,Fe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,je(this,We,If).call(this),je(this,We,Lf).call(this),j(this,Fe).removeObserver(this)}setOptions(t){const n=this.options,i=j(this,Fe);if(this.options=j(this,nn).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Cn(this.options.enabled,j(this,Fe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");je(this,We,Df).call(this),j(this,Fe).setOptions(this.options),n._defaulted&&!Ef(this.options,n)&&j(this,nn).getQueryCache().notify({type:"observerOptionsUpdated",query:j(this,Fe),observer:this});const s=this.hasListeners();s&&hy(j(this,Fe),i,this.options,n)&&je(this,We,Ys).call(this),this.updateResult(),s&&(j(this,Fe)!==i||Cn(this.options.enabled,j(this,Fe))!==Cn(n.enabled,j(this,Fe))||oi(this.options.staleTime,j(this,Fe))!==oi(n.staleTime,j(this,Fe)))&&je(this,We,Rf).call(this);const a=je(this,We,Of).call(this);s&&(j(this,Fe)!==i||Cn(this.options.enabled,j(this,Fe))!==Cn(n.enabled,j(this,Fe))||a!==j(this,Zr))&&je(this,We,Nf).call(this,a)}getOptimisticResult(t){const n=j(this,nn).getQueryCache().build(j(this,nn),t),i=this.createResult(n,t);return t_(this,i)&&(de(this,qt,i),de(this,zo,this.options),de(this,Fi,j(this,Fe).state)),i}getCurrentResult(){return j(this,qt)}trackResult(t,n){return new Proxy(t,{get:(i,s)=>(this.trackProp(s),n==null||n(s),s==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&j(this,yr).status==="pending"&&j(this,yr).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(i,s))})}trackProp(t){j(this,$o).add(t)}getCurrentQuery(){return j(this,Fe)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=j(this,nn).defaultQueryOptions(t),i=j(this,nn).getQueryCache().build(j(this,nn),n);return i.fetch().then(()=>this.createResult(i,n))}fetch(t){return je(this,We,Ys).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),j(this,qt)))}createResult(t,n){var K;const i=j(this,Fe),s=this.options,a=j(this,qt),u=j(this,Fi),c=j(this,zo),h=t!==i?t.state:j(this,pa),{state:m}=t;let g={...m},w=!1,v;if(n._optimisticResults){const H=this.hasListeners(),Q=!H&&fy(t,n),G=H&&hy(t,i,n,s);(Q||G)&&(g={...g,...hw(m.data,t.options)}),n._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:E,errorUpdatedAt:k,status:S}=g;v=g.data;let x=!1;if(n.placeholderData!==void 0&&v===void 0&&S==="pending"){let H;a!=null&&a.isPlaceholderData&&n.placeholderData===(c==null?void 0:c.placeholderData)?(H=a.data,x=!0):H=typeof n.placeholderData=="function"?n.placeholderData((K=j(this,Bo))==null?void 0:K.state.data,j(this,Bo)):n.placeholderData,H!==void 0&&(S="success",v=Cf(a==null?void 0:a.data,H,n),w=!0)}if(n.select&&v!==void 0&&!x)if(a&&v===(u==null?void 0:u.data)&&n.select===j(this,ma))v=j(this,Uo);else try{de(this,ma,n.select),v=n.select(v),v=Cf(a==null?void 0:a.data,v,n),de(this,Uo,v),de(this,Jr,null)}catch(H){de(this,Jr,H)}j(this,Jr)&&(E=j(this,Jr),v=j(this,Uo),k=Date.now(),S="error");const R=g.fetchStatus==="fetching",T=S==="pending",A=S==="error",U=T&&R,L=v!==void 0,M={status:S,fetchStatus:g.fetchStatus,isPending:T,isSuccess:S==="success",isError:A,isInitialLoading:U,isLoading:U,data:v,dataUpdatedAt:g.dataUpdatedAt,error:E,errorUpdatedAt:k,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdate
vendor: 8,411 bytes, line 176
176Count:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>h.dataUpdateCount||g.errorUpdateCount>h.errorUpdateCount,isFetching:R,isRefetching:R&&!T,isLoadingError:A&&!L,isPaused:g.fetchStatus==="paused",isPlaceholderData:w,isRefetchError:A&&L,isStale:xh(t,n),refetch:this.refetch,promise:j(this,yr),isEnabled:Cn(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const H=M.data!==void 0,Q=M.status==="error"&&!H,G=J=>{Q?J.reject(M.error):H&&J.resolve(M.data)},le=()=>{const J=de(this,yr,M.promise=Pf());G(J)},te=j(this,yr);switch(te.status){case"pending":t.queryHash===i.queryHash&&G(te);break;case"fulfilled":(Q||M.data!==te.value)&&le();break;case"rejected":(!Q||M.error!==te.reason)&&le();break}}return M}updateResult(){const t=j(this,qt),n=this.createResult(j(this,Fe),this.options);if(de(this,Fi,j(this,Fe).state),de(this,zo,this.options),j(this,Fi).data!==void 0&&de(this,Bo,j(this,Fe)),Ef(n,t))return;de(this,qt,n);const i=()=>{if(!t)return!0;const{notifyOnChangeProps:s}=this.options,a=typeof s=="function"?s():s;if(a==="all"||!a&&!j(this,$o).size)return!0;const u=new Set(a??j(this,$o));return this.options.throwOnError&&u.add("error"),Object.keys(j(this,qt)).some(c=>{const f=c;return j(this,qt)[f]!==t[f]&&u.has(f)})};je(this,We,pw).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&je(this,We,Af).call(this)}},nn=new WeakMap,Fe=new WeakMap,pa=new WeakMap,qt=new WeakMap,Fi=new WeakMap,zo=new WeakMap,yr=new WeakMap,Jr=new WeakMap,ma=new WeakMap,Uo=new WeakMap,Bo=new WeakMap,zi=new WeakMap,Ui=new WeakMap,Zr=new WeakMap,$o=new WeakMap,We=new WeakSet,Ys=function(t){je(this,We,Df).call(this);let n=j(this,Fe).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(rn)),n},Rf=function(){je(this,We,If).call(this);const t=oi(this.options.staleTime,j(this,Fe));if(Vi||j(this,qt).isStale||!Sf(t))return;const i=sw(j(this,qt).dataUpdatedAt,t)+1;de(this,zi,Ni.setTimeout(()=>{j(this,qt).isStale||this.updateResult()},i))},Of=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(j(this,Fe)):this.options.refetchInterval)??!1},Nf=function(t){je(this,We,Lf).call(this),de(this,Zr,t),!(Vi||Cn(this.options.enabled,j(this,Fe))===!1||!Sf(j(this,Zr))||j(this,Zr)===0)&&de(this,Ui,Ni.setInterval(()=>{(this.options.refetchIntervalInBackground||wh.isFocused())&&je(this,We,Ys).call(this)},j(this,Zr)))},Af=function(){je(this,We,Rf).call(this),je(this,We,Nf).call(this,je(this,We,Of).call(this))},If=function(){j(this,zi)&&(Ni.clearTimeout(j(this,zi)),de(this,zi,void 0))},Lf=function(){j(this,Ui)&&(Ni.clearInterval(j(this,Ui)),de(this,Ui,void 0))},Df=function(){const t=j(this,nn).getQueryCache().build(j(this,nn),this.options);if(t===j(this,Fe))return;const n=j(this,Fe);de(this,Fe,t),de(this,pa,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},pw=function(t){At.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(j(this,qt))}),j(this,nn).getQueryCache().notify({query:j(this,Fe),type:"observerResultsUpdated"})})},k0);function e_(e,t){return Cn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function fy(e,t){return e_(e,t)||e.state.data!==void 0&&Mf(e,t,t.refetchOnMount)}function Mf(e,t,n){if(Cn(t.enabled,e)!==!1&&oi(t.staleTime,e)!=="static"){const i=typeof n=="function"?n(e):n;return i==="always"||i!==!1&&xh(e,t)}return!1}function hy(e,t,n,i){return(e!==t||Cn(i.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&xh(e,n)}function xh(e,t){return Cn(t.enabled,e)!==!1&&e.isStaleByTime(oi(t.staleTime,e))}function t_(e,t){return!Ef(e.getCurrentResult(),t)}function py(e){return{onFetch:(t,n)=>{var m,g,w,v,E;const i=t.options,s=(w=(g=(m=t.fetchOptions)==null?void 0:m.meta)==null?void 0:g.fetchMore)==null?void 0:w.direction,a=((v=t.state.data)==null?void 0:v.pages)||[],u=((E=t.state.data)==null?void 0:E.pageParams)||[];let c={pages:[],pageParams:[]},f=0;const h=async()=>{let k=!1;const S=T=>{qE(T,()=>t.signal,()=>k=!0)},x=lw(t.options,t.fetchOptions),R=async(T,A,U)=>{if(k)return Promise.reject();if(A==null&&T.pages.length)return Promise.resolve(T);const W=(()=>{const Q={client:t.client,queryKey:t.queryKey,pageParam:A,direction:U?"backward":"forward",meta:t.options.meta};return S(Q),Q})(),M=await x(W),{maxPages:K}=t.options,H=U?WE:HE;return{pages:H(T.pages,M,K),pageParams:H(T.pageParams,A,K)}};if(s&&a.length){const T=s==="backward",A=T?n_:my,U={pages:a,pageParams:u},L=A(i,U);c=await R(U,L,T)}else{const T=e??a.length;do{const A=f===0?u[0]??i.initialPageParam:my(i,c);if(f>0&&A==null)break;c=await R(c,A),f++}while(f<T)}return c};t.options.persister?t.fetchFn=()=>{var k,S;return(S=(k=t.options).persister)==null?void 0:S.call(k,h,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=h}}}function my(e,{pages:t,pageParams:n}){const i=t.length-1;return t.length>0?e.getNextPageParam(t[i],t,n[i],n):void 0}function n_(e,{pages:t,pageParams:n}){var i;return t.length>0?(i=e.getPreviousPageParam)==null?void 0:i.call(e,t[0],t,n[0],n):void 0}var ga,Jn,zt,Bi,Zn,qr,S0,r_=(S0=class extends fw{constructor(t){super();Ce(this,Zn);Ce(this,ga);Ce(this,Jn);Ce(this,zt);Ce(this,Bi);de(this,ga,t.client),this.mutationId=t.mutationId,de(this,zt,t.mutationCache),de(this,Jn,[]),this.state=t.state||i_(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){j(this,Jn).includes(t)||(j(this,Jn).push(t),this.clearGcTimeout(),j(this,zt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){de(this,Jn,j(this,Jn).filter(n=>n!==t)),this.scheduleGc(),j(this,zt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){j(this,Jn).length||(this.state.status==="pending"?this.scheduleGc():j(this,zt).remove(this))}continue(){var t;return((t=j(this,Bi))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var u,c,f,h,m,g,w,v,E,k,S,x,R,T,A,U,L,W;const n=()=>{je(this,Zn,qr).call(this,{type:"continue"})},i={client:j(this,ga),meta:this.options.meta,mutationKey:this.options.mutationKey};de(this,Bi,dw({fn:()=>this.options.mutationFn?this.options.mutationFn(t,i):Promise.reject(new Error("No mutationFn found")),onFail:(M,K)=>{je(this,Zn,qr).call(this,{type:"failed",failureCount:M,error:K})},onPause:()=>{je(this,Zn,qr).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>j(this,zt).canRun(this)}));const s=this.state.status==="pending",a=!j(this,Bi).canStart();try{if(s)n();else{je(this,Zn,qr).call(this,{type:"pending",variables:t,isPaused:a}),j(this,zt).config.onMutate&&await j(this,zt).config.onMutate(t,this,i);const K=await((c=(u=this.options).onMutate)==null?void 0:c.call(u,t,i));K!==this.state.context&&je(this,Zn,qr).call(this,{type:"pending",context:K,variables:t,isPaused:a})}const M=await j(this,Bi).start();return await((h=(f=j(this,zt).config).onSuccess)==null?void 0:h.call(f,M,t,this.state.context,this,i)),await((g=(m=this.options).onSuccess)==null?void 0:g.call(m,M,t,this.state.context,i)),await((v=(w=j(this,zt).config).onSettled)==null?void 0:v.call(w,M,null,this.state.variables,this.state.context,this,i)),await((k=(E=this.options).onSettled)==null?void 0:k.call(E,M,null,t,this.state.context,i)),je(this,Zn,qr).call(this,{type:"success",data:M}),M}catch(M){try{await((x=(S=j(this,zt).config).onError)==null?void 0:x.call(S,M,t,this.state.context,this,i))}catch(K){Promise.reject(K)}try{await((T=(R=this.options).onError)==null?void 0:T.call(R,M,t,this.state.context,i))}catch(K){Promise.reject(K)}try{await((U=(A=j(this,zt).config).onSettled)==null?void 0:U.call(A,void 0,M,this.state.variables,this.state.context,this,i))}catch(K){Promise.reject(K)}try{await((W=(L=this.options).onSettled)==null?void 0:W.call(L,void 0,M,t,this.state.context,i))}catch(K){Promise.reject(K)}throw je(this,Zn,qr).call(this,{type:"error",error:M}),M}finally{j(this,zt).runNext(this)}}},ga=new WeakMap,Jn=new WeakMap,zt=new WeakMap,Bi=new WeakMap,Zn=new WeakSet,qr=function(t){const n=i=>{switch(t.type){case"failed":return{...i,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};
176case"pending":return{...i,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...i,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:t.error,failureCount:i.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),At.batch(()=>{j(this,Jn).forEach(i=>{i.onMutationUpdate(t)}),j(this,zt).notify({mutation:this,type:"updated",action:t})})},S0);function i_(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var vr,Un,ya,E0,o_=(E0=class extends wa{constructor(t={}){super();Ce(this,vr);Ce(this,Un);Ce(this,ya);this.config=t,de(this,vr,new Set),de(this,Un,new Map),de(this,ya,0)}build(t,n,i){const s=new r_({client:t,mutationCache:this,mutationId:++Fl(this,ya)._,options:t.defaultMutationOptions(n),state:i});return this.add(s),s}add(t){j(this,vr).add(t);const n=$l(t);if(typeof n=="string"){const i=j(this,Un).get(n);i?i.push(t):j(this,Un).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(j(this,vr).delete(t)){const n=$l(t);if(typeof n=="string"){const i=j(this,Un).get(n);if(i)if(i.length>1){const s=i.indexOf(t);s!==-1&&i.splice(s,1)}else i[0]===t&&j(this,Un).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=$l(t);if(typeof n=="string"){const i=j(this,Un).get(n),s=i==null?void 0:i.find(a=>a.state.status==="pending");return!s||s===t}else return!0}runNext(t){var i;const n=$l(t);if(typeof n=="string"){const s=(i=j(this,Un).get(n))==null?void 0:i.find(a=>a!==t&&a.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){At.batch(()=>{j(this,vr).forEach(t=>{this.notify({type:"removed",mutation:t})}),j(this,vr).clear(),j(this,Un).clear()})}getAll(){return Array.from(j(this,vr))}find(t){const n={exact:!0,...t};return this.getAll().find(i=>ay(n,i))}findAll(t={}){return this.getAll().filter(n=>ay(t,n))}notify(t){At.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return At.batch(()=>Promise.all(t.map(n=>n.continue().catch(rn))))}},vr=new WeakMap,Un=new WeakMap,ya=new WeakMap,E0);function $l(e){var t;return(t=e.options.scope)==null?void 0:t.id}var er,_0,s_=(_0=class extends wa{constructor(t={}){super();Ce(this,er);this.config=t,de(this,er,new Map)}build(t,n,i){const s=n.queryKey,a=n.queryHash??yh(s,n);let u=this.get(a);return u||(u=new JE({client:t,queryKey:s,queryHash:a,options:t.defaultQueryOptions(n),state:i,defaultOptions:t.getQueryDefaults(s)}),this.add(u)),u}add(t){j(this,er).has(t.queryHash)||(j(this,er).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=j(this,er).get(t.queryHash);n&&(t.destroy(),n===t&&j(this,er).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){At.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return j(this,er).get(t)}getAll(){return[...j(this,er).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(i=>sy(n,i))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(i=>sy(t,i)):n}notify(t){At.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){At.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){At.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},er=new WeakMap,_0),at,ei,ti,Vo,Ho,ni,Wo,qo,C0,a_=(C0=class{constructor(e={}){Ce(this,at);Ce(this,ei);Ce(this,ti);Ce(this,Vo);Ce(this,Ho);Ce(this,ni);Ce(this,Wo);Ce(this,qo);de(this,at,e.queryCache||new s_),de(this,ei,e.mutationCache||new o_),de(this,ti,e.defaultOptions||{}),de(this,Vo,new Map),de(this,Ho,new Map),de(this,ni,0)}mount(){Fl(this,ni)._++,j(this,ni)===1&&(de(this,Wo,wh.subscribe(async e=>{e&&(await this.resumePausedMutations(),j(this,at).onFocus())})),de(this,qo,wu.subscribe(async e=>{e&&(await this.resumePausedMutations(),j(this,at).onOnline())})))}unmount(){var e,t;Fl(this,ni)._--,j(this,ni)===0&&((e=j(this,Wo))==null||e.call(this),de(this,Wo,void 0),(t=j(this,qo))==null||t.call(this),de(this,qo,void 0))}isFetching(e){return j(this,at).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return j(this,ei).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=j(this,at).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=j(this,at).build(this,t),i=n.state.data;return i===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(oi(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(i))}getQueriesData(e){return j(this,at).findAll(e).map(({queryKey:t,state:n})=>{const i=n.data;return[t,i]})}setQueryData(e,t,n){const i=this.defaultQueryOptions({queryKey:e}),s=j(this,at).get(i.queryHash),a=s==null?void 0:s.state.data,u=BE(t,a);if(u!==void 0)return j(this,at).build(this,i).setData(u,{...n,manual:!0})}
176setQueriesData(e,t,n){return At.batch(()=>j(this,at).findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=j(this,at).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=j(this,at);At.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=j(this,at);return At.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},i=At.batch(()=>j(this,at).findAll(e).map(s=>s.cancel(n)));return Promise.all(i).then(rn).catch(rn)}invalidateQueries(e,t={}){return At.batch(()=>(j(this,at).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},i=At.batch(()=>j(this,at).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let a=s.fetch(void 0,n);return n.throwOnError||(a=a.catch(rn)),s.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(i).then(rn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=j(this,at).build(this,t);return n.isStaleByTime(oi(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(rn).catch(rn)}fetchInfiniteQuery(e){return e.behavior=py(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(rn).catch(rn)}ensureInfiniteQueryData(e){return e.behavior=py(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return wu.isOnline()?j(this,ei).resumePausedMutations():Promise.resolve()}getQueryCache(){return j(this,at)}getMutationCache(){return j(this,ei)}getDefaultOptions(){return j(this,ti)}setDefaultOptions(e){de(this,ti,e)}setQueryDefaults(e,t){j(this,Vo).set(ra(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...j(this,Vo).values()],n={};return t.forEach(i=>{ia(e,i.queryKey)&&Object.assign(n,i.defaultOptions)}),n}setMutationDefaults(e,t){j(this,Ho).set(ra(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...j(this,Ho).values()],n={};return t.forEach(i=>{ia(e,i.mutationKey)&&Object.assign(n,i.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...j(this,ti).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=yh(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===vh&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...j(this,ti).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){j(this,at).clear(),j(this,ei).clear()}},at=new WeakMap,ei=new WeakMap,ti=new WeakMap,Vo=new WeakMap,Ho=new WeakMap,ni=new WeakMap,Wo=new WeakMap,qo=new WeakMap,C0),mw=C.createContext(void 0),l_=e=>{const t=C.useContext(mw);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},u_=({client:e,children:t})=>(C.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),_.jsx(mw.Provider,{value:e,children:t})),gw=C.createContext(!1),c_=()=>C.useContext(gw);gw.Provider;function d_(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var f_=C.createContext(d_()),h_=()=>C.useContext(f_),p_=(e,t,n)=>{const i=n!=null&&n.state.error&&typeof e.throwOnError=="function"?uw(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||i)&&(t.isReset()||(e.retryOnMount=!1))},m_=e=>{C.useEffect(()=>{e.clearReset()},[e])},g_=({result:e,errorResetBoundary:t,throwOnError:n,query:i,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&i&&(s&&e.data===void 0||uw(n,[e.error,i])),y_=e=>{if(e.suspense){const n=s=>s==="static"?s:Math.max(s??1e3,1e3),i=e.staleTime;e.staleTime=typeof i=="function"?(...s)=>n(i(...s)):n(i),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},v_=(e,t)=>
176e.isLoading&&e.isFetching&&!t,w_=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,gy=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function x_(e,t,n){var w,v,E,k;const i=c_(),s=h_(),a=l_(),u=a.defaultQueryOptions(e);(v=(w=a.getDefaultOptions().queries)==null?void 0:w._experimental_beforeQuery)==null||v.call(w,u);const c=a.getQueryCache().get(u.queryHash);u._optimisticResults=i?"isRestoring":"optimistic",y_(u),p_(u,s,c),m_(s);const f=!a.getQueryCache().get(u.queryHash),[h]=C.useState(()=>new t(a,u)),m=h.getOptimisticResult(u),g=!i&&e.subscribed!==!1;if(C.useSyncExternalStore(C.useCallback(S=>{const x=g?h.subscribe(At.batchCalls(S)):rn;return h.updateResult(),x},[h,g]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),C.useEffect(()=>{h.setOptions(u)},[u,h]),w_(u,m))throw gy(u,h,s);if(g_({result:m,errorResetBoundary:s,throwOnError:u.throwOnError,query:c,suspense:u.suspense}))throw m.error;if((k=(E=a.getDefaultOptions().queries)==null?void 0:E._experimental_afterQuery)==null||k.call(E,u,m),u.experimental_prefetchInRender&&!Vi&&v_(m,i)){const S=f?gy(u,h,s):c==null?void 0:c.promise;S==null||S.catch(rn).finally(()=>{h.updateResult()})}return u.notifyOnChangeProps?m:h.trackResult(m)}function yw(e,t){return x_(e,ZE)}const b_=new a_({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});var vw=T0();const k_=va(vw);/**
177 * @remix-run/router v1.23.2
178 *
179 * Copyright (c) Remix Software Inc.
180 *
181 * This source code is licensed under the MIT license found in the
182 * LICENSE.md file in the root directory of this source tree.
183 *
184 * @license MIT
185 */function oa(){return oa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},oa.apply(this,arguments)}var ri;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(ri||(ri={}));const yy="popstate";function S_(e){e===void 0&&(e={});function t(i,s){let{pathname:a,search:u,hash:c}=i.location;return jf("",{pathname:a,search:u,hash:c},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(i,s){return typeof s=="string"?s:xu(s)}return __(t,n,null,e)}function gt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function bh(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function E_(){return Math.random().toString(36).substr(2,8)}function vy(e,t){return{usr:e.state,key:e.key,idx:t}}function jf(e,t,n,i){return n===void 0&&(n=null),oa({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ko(t):t,{state:n,key:t&&t.key||i||E_()})}function xu(e){let{pathname:t="/",search:n="",hash:i=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),i&&i!=="#"&&(t+=i.charAt(0)==="#"?i:"#"+i),t}function Ko(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let i=e.indexOf("?");i>=0&&(t.search=e.substr(i),e=e.substr(0,i)),e&&(t.pathname=e)}return t}function __(e,t,n,i){i===void 0&&(i={});let{window:s=document.defaultView,v5Compat:a=!1}=i,u=s.history,c=ri.Pop,f=null,h=m();h==null&&(h=0,u.replaceState(oa({},u.state,{idx:h}),""));function m(){return(u.state||{idx:null}).idx}function g(){c=ri.Pop;let S=m(),x=S==null?null:S-h;h=S,f&&f({action:c,location:k.location,delta:x})}function w(S,x){c=ri.Push;let R=jf(k.location,S,x);h=m()+1;let T=vy(R,h),A=k.createHref(R);try{u.pushState(T,"",A)}catch(U){if(U instanceof DOMException&&U.name==="DataCloneError")throw U;s.location.assign(A)}a&&f&&f({action:c,location:k.location,delta:1})}function v(S,x){c=ri.Replace;let R=jf(k.location,S,x);h=m();let T=vy(R,h),A=k.createHref(R);u.replaceState(T,"",A),a&&f&&f({action:c,location:k.location,delta:0})}function E(S){let x=s.location.origin!=="null"?s.location.origin:s.location.href,R=typeof S=="string"?S:xu(S);return R=R.replace(/ $/,"%20"),gt(x,"No window.location.(origin|href) available to create URL for href: "+R),new URL(R,x)}let k={get action(){return c},get location(){return e(s,u)},listen(S){if(f)throw new Error("A history only accepts one active listener");return s.addEventListener(yy,g),f=S,()=>{s.removeEventListener(yy,g),f=null}},createHref(S){return t(s,S)},createURL:E,encodeLocation(S){let x=E(S);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:w,replace:v,go(S){return u.go(S)}};return k}var wy;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(wy||(wy={}));function C_(e,t,n){return n===void 0&&(n="/"),P_(e,t,n)}function P_(e,t,n,i){let s=typeof t=="string"?Ko(t):t,a=kh(s.pathname||"/",n);if(a==null)return null;let u=ww(e);T_(u);let c=null;for(let f=0;c==null&&f<u.length;++f){let h=U_(a);c=j_(u[f],h)}return c}function ww(e,t,n,i){t===void 0&&(t=[]),n===void 0&&(n=[]),i===void 0&&(i="");let s=(a,u,c)=>{let f={relativePath:c===void 0?a.path||"":c,caseSensitive:a.caseSensitive===!0,childrenIndex:u,route:a};f.relativePath.startsWith("/")&&(gt(f.relativePath.startsWith(i),'Absolute route path "'+f.relativePath+'" nested under path '+('"'+i+'" is not val
185id. An absolute child route path ')+"must start with the combined path of all its parent routes."),f.relativePath=f.relativePath.slice(i.length));let h=si([i,f.relativePath]),m=n.concat(f);a.children&&a.children.length>0&&(gt(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+h+'".')),ww(a.children,t,m,h)),!(a.path==null&&!a.index)&&t.push({path:h,score:D_(h,a.index),routesMeta:m})};return e.forEach((a,u)=>{var c;if(a.path===""||!((c=a.path)!=null&&c.includes("?")))s(a,u);else for(let f of xw(a.path))s(a,u,f)}),t}function xw(e){let t=e.split("/");if(t.length===0)return[];let[n,...i]=t,s=n.endsWith("?"),a=n.replace(/\?$/,"");if(i.length===0)return s?[a,""]:[a];let u=xw(i.join("/")),c=[];return c.push(...u.map(f=>f===""?a:[a,f].join("/"))),s&&c.push(...u),c.map(f=>e.startsWith("/")&&f===""?"/":f)}function T_(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:M_(t.routesMeta.map(i=>i.childrenIndex),n.routesMeta.map(i=>i.childrenIndex)))}const R_=/^:[\w-]+$/,O_=3,N_=2,A_=1,I_=10,L_=-2,xy=e=>e==="*";function D_(e,t){let n=e.split("/"),i=n.length;return n.some(xy)&&(i+=L_),t&&(i+=N_),n.filter(s=>!xy(s)).reduce((s,a)=>s+(R_.test(a)?O_:a===""?A_:I_),i)}function M_(e,t){return e.length===t.length&&e.slice(0,-1).every((i,s)=>i===t[s])?e[e.length-1]-t[t.length-1]:0}function j_(e,t,n){let{routesMeta:i}=e,s={},a="/",u=[];for(let c=0;c<i.length;++c){let f=i[c],h=c===i.length-1,m=a==="/"?t:t.slice(a.length)||"/",g=F_({path:f.relativePath,caseSensitive:f.caseSensitive,end:h},m),w=f.route;if(!g)return null;
vendor: 5,343 bytes, lines 185-194
185Object.assign(s,g.params),u.push({params:s,pathname:si([a,g.pathname]),pathnameBase:W_(si([a,g.pathnameBase])),route:w}),g.pathnameBase!=="/"&&(a=si([a,g.pathnameBase]))}return u}function F_(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,i]=z_(e.path,e.caseSensitive,e.end),s=t.match(n);if(!s)return null;let a=s[0],u=a.replace(/(.)\/+$/,"$1"),c=s.slice(1);return{params:i.reduce((h,m,g)=>{let{paramName:w,isOptional:v}=m;if(w==="*"){let k=c[g]||"";u=a.slice(0,a.length-k.length).replace(/(.)\/+$/,"$1")}const E=c[g];return v&&!E?h[w]=void 0:h[w]=(E||"").replace(/%2F/g,"/"),h},{}),pathname:a,pathnameBase:u,pattern:e}}function z_(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),bh(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let i=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,c,f)=>(i.push({paramName:c,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(i.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),i]}function U_(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return bh(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function kh(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,i=e.charAt(n);return i&&i!=="/"?null:e.slice(n)||"/"}const B_=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,$_=e=>B_.test(e);function V_(e,t){t===void 0&&(t="/");let{pathname:n,search:i="",hash:s=""}=typeof e=="string"?Ko(e):e,a;if(n)if($_(n))a=n;else{if(n.includes("//")){let u=n;n=n.replace(/\/\/+/g,"/"),bh(!1,"Pathnames cannot have embedded double slashes - normalizing "+(u+" -> "+n))}n.startsWith("/")?a=by(n.substring(1),"/"):a=by(n,t)}else a=t;return{pathname:a,search:q_(i),hash:Q_(s)}}function by(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function Ud(e,t,n,i){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(i)+"].  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 H_(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function bw(e,t){let n=H_(e);return t?n.map((i,s)=>s===n.length-1?i.pathname:i.pathnameBase):n.map(i=>i.pathnameBase)}function kw(e,t,n,i){i===void 0&&(i=!1);let s;typeof e=="string"?s=Ko(e):(s=oa({},e),gt(!s.pathname||!s.pathname.includes("?"),Ud("?","pathname","search",s)),gt(!s.pathname||!s.pathname.includes("#"),Ud("#","pathname","hash",s)),gt(!s.search||!s.search.includes("#"),Ud("#","search","hash",s)));let a=e===""||s.pathname==="",u=a?"/":s.pathname,c;if(u==null)c=n;else{let g=t.length-1;if(!i&&u.startsWith("..")){let w=u.split("/");for(;w[0]==="..";)w.shift(),g-=1;s.pathname=w.join("/")}c=g>=0?t[g]:"/"}let f=V_(s,c),h=u&&u!=="/"&&u.endsWith("/"),m=(a||u===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(h||m)&&(f.pathname+="/"),f}const si=e=>e.join("/").replace(/\/\/+/g,"/"),W_=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),q_=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Q_=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Y_(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Sw=["post","put","patch","delete"];new Set(Sw);const K_=["get",...Sw];new Set(K_);/**
186 * React Router v6.30.3
187 *
188 * Copyright (c) Remix Software Inc.
189 *
190 * This source code is licensed under the MIT license found in the
191 * LICENSE.md file in the root directory of this source tree.
192 *
193 * @license MIT
194 */function sa(){return sa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},sa.apply(this,arguments)}const Sh=C.createContext(null),G_=C.createContext(null),Yi=C.createContext(null),Nu=C.createContext(null),di=C.createContext({outlet:null,matches:[],isDataRoute:!1}),Ew=C.createContext(null);function X_(e,t){let{relative:n}=t===void 0?{}:t;xa()||gt(!1);let{basename:i,navigator:s}=C.useContext(Yi),{hash:a,pathname:u,search:c}=Cw(e,{relative:n}),f=u;return i!=="/"&&(f=u==="/"?i:si([i,u])),s.createHref({pathname:f,search:c,hash:a})}function xa(){return C.useContext(Nu)!=null}function ba(){return xa()||gt(!1),C.useContext(Nu).location}function _w(e){C.useContext(Yi).static||C.useLayoutEffect(e)}function J_(){let{isDataRoute:e}=C.useContext(di);return e?dC():Z_()}function Z_(){xa()||gt(!1);let e=C.useContext(Sh),{basename:t,future:n,navigator:i}=C.useContext(Yi),{matches:s}=C.useContext(di),{pathname:a}=ba(),u=JSON.stringify(bw(s,n.v7_relativeSplatPath)),c=C.useRef(!1);return _w(()=>{c.current=!0}
vendor: 4,426 bytes, line 194
194),C.useCallback(function(h,m){if(m===void 0&&(m={}),!c.current)return;if(typeof h=="number"){i.go(h);return}let g=kw(h,JSON.parse(u),a,m.relative==="path");e==null&&t!=="/"&&(g.pathname=g.pathname==="/"?t:si([t,g.pathname])),(m.replace?i.replace:i.push)(g,m.state,m)},[t,i,u,a,e])}function w4(){let{matches:e}=C.useContext(di),t=e[e.length-1];return t?t.params:{}}function Cw(e,t){let{relative:n}=t===void 0?{}:t,{future:i}=C.useContext(Yi),{matches:s}=C.useContext(di),{pathname:a}=ba(),u=JSON.stringify(bw(s,i.v7_relativeSplatPath));return C.useMemo(()=>kw(e,JSON.parse(u),a,n==="path"),[e,u,a,n])}function eC(e,t){return tC(e,t)}function tC(e,t,n,i){xa()||gt(!1);let{navigator:s}=C.useContext(Yi),{matches:a}=C.useContext(di),u=a[a.length-1],c=u?u.params:{};u&&u.pathname;let f=u?u.pathnameBase:"/";u&&u.route;let h=ba(),m;if(t){var g;let S=typeof t=="string"?Ko(t):t;f==="/"||(g=S.pathname)!=null&&g.startsWith(f)||gt(!1),m=S}else m=h;let w=m.pathname||"/",v=w;if(f!=="/"){let S=f.replace(/^\//,"").split("/");v="/"+w.replace(/^\//,"").split("/").slice(S.length).join("/")}let E=C_(e,{pathname:v}),k=sC(E&&E.map(S=>Object.assign({},S,{params:Object.assign({},c,S.params),pathname:si([f,s.encodeLocation?s.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?f:si([f,s.encodeLocation?s.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),a,n,i);return t&&k?C.createElement(Nu.Provider,{value:{location:sa({pathname:"/",search:"",hash:"",state:null,key:"default"},m),navigationType:ri.Pop}},k):k}function nC(){let e=cC(),t=Y_(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},t),n?C.createElement("pre",{style:s},n):null,null)}const rC=C.createElement(nC,null);class iC extends C.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?C.createElement(di.Provider,{value:this.props.routeContext},C.createElement(Ew.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function oC(e){let{routeContext:t,match:n,children:i}=e,s=C.useContext(Sh);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),C.createElement(di.Provider,{value:t},i)}function sC(e,t,n,i){var s;if(t===void 0&&(t=[]),n===void 0&&(n=null),i===void 0&&(i=null),e==null){var a;if(!n)return null;if(n.errors)e=n.matches;else if((a=i)!=null&&a.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let u=e,c=(s=n)==null?void 0:s.errors;if(c!=null){let m=u.findIndex(g=>g.route.id&&(c==null?void 0:c[g.route.id])!==void 0);m>=0||gt(!1),u=u.slice(0,Math.min(u.length,m+1))}let f=!1,h=-1;if(n&&i&&i.v7_partialHydration)for(let m=0;m<u.length;m++){let g=u[m];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(h=m),g.route.id){let{loaderData:w,errors:v}=n,E=g.route.loader&&w[g.route.id]===void 0&&(!v||v[g.route.id]===void 0);if(g.route.lazy||E){f=!0,h>=0?u=u.slice(0,h+1):u=[u[0]];break}}}return u.reduceRight((m,g,w)=>{let v,E=!1,k=null,S=null;n&&(v=c&&g.route.id?c[g.route.id]:void 0,k=g.route.errorElement||rC,f&&(h<0&&w===0?(fC("route-fallback"),E=!0,S=null):h===w&&(E=!0,S=g.route.hydrateFallbackElement||null)));let x=t.concat(u.slice(0,w+1)),R=()=>{let T;return v?T=k:E?T=S:g.route.Component?T=C.createElement(g.route.Component,null):g.route.element?T=g.route.element:T=m,C.createElement(oC,{match:g,routeContext:{outlet:m,matches:x,isDataRoute:n!=null},children:T})};return n&&(g.route.ErrorBoundary||g.route.errorElement||w===0)?C.createElement(iC,{location:n.location,revalidation:n.revalidation,component:k,error:v,children:R(),routeC
194ontext:{outlet:null,matches:x,isDataRoute:!0}}):R()},null)}var Pw=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(Pw||{}),Tw=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(Tw||{});function aC(e){let t=C.useContext(Sh);return t||gt(!1),t}function lC(e){let t=C.useContext(G_);return t||gt(!1),t}function uC(e){let t=C.useContext(di);return t||gt(!1),t}function Rw(e){let t=uC(),n=t.matches[t.matches.length-1];return n.route.id||gt(!1),n.route.id}function cC(){var e;let t=C.useContext(Ew),n=lC(),i=Rw();return t!==void 0?t:(e=n.errors)==null?void 0:e[i]}function dC(){let{router:e}=aC(Pw.UseNavigateStable),t=Rw(Tw.UseNavigateStable),n=C.useRef(!1);return _w(()=>{n.current=!0}),C.useCallback(function(s,a){a===void 0&&(a={}),n.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,sa({fromRouteId:t},a)))},[e,t])}const ky={};function fC(e,t,n){ky[e]||(ky[e]=!0)}function hC(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function bt(e){gt(!1)}function pC(e){let{basename:t="/",children:n=null,location:i,navigationType:s=ri.Pop,navigator:a,static:u=!1,future:c}=e;xa()&&gt(!1);let f=t.replace(/^\/*/,"/"),h=C.useMemo(()=>({basename:f,navigator:a,static:u,future:sa({v7_relativeSplatPath:!1},c)}),[f,c,a,u]);typeof i=="string"&&(i=Ko(i));let{pathname:m="/",search:g="",hash:w="",state:v=null,key:E="default"}=i,k=C.useMemo(()=>{let S=kh(m,f);return S==null?null:{location:{pathname:S,search:g,hash:w,state:v,key:E},navigationType:s}},[f,m,g,w,v,E,s]);return k==null?null:C.createElement(Yi.Provider,{value:h},C.createElement(Nu.Provider,{children:n,value:k}))}function mC(e){let{children:t,location:n}=e;return eC(Ff(t),n)}new Promise(()=>{});function Ff(e,t){t===void 0&&(t=[]);let n=[];return C.Children.forEach(e,(i,s)=>{if(!C.isValidElement(i))return;let a=[...t,s];if(i.type===C.Fragment){n.push.apply(n,Ff(i.props.children,a));return}i.type!==bt&&gt(!1),!i.props.index||!i.props.children||gt(!1);let u={id:i.props.id||a.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,loader:i.props.loader,action:i.props.action,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(u.children=Ff(i.props.children,a)),n.push(u)}),n}/**
195 * React Router DOM v6.30.3
196 *
197 * Copyright (c) Remix Software Inc.
198 *
199 * This source code is licensed under the MIT license found in the
200 * LICENSE.md file in the root directory of this source tree.
201 *
202 * @license MIT
203 */function zf(){return zf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},zf.apply(this,arguments)}function gC(e,t){if(e==null)return{};var n={},i=Object.keys(e),s,a;for(a=0;a<i.length;a++)s=i[a],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}function yC(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function vC(e,t){return e.button===0&&(!t||t==="_self")&&!yC(e)}const wC=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],xC="6";try{window.__reactRouterVersion=xC}catch{}const bC="startTransition",Sy=Ou[bC];function kC(e){let{basename:t,children:n,future:i,window:s}=e,a=C.useRef();a.current==null&&(a.current=S_({window:s,v5Compat:!0}));let u=a.current,[c,f]=C.useState({action:u.action,location:u.location}),{v7_startTransition:h}=i||{},m=C.useCallback(g=>{h&&Sy?Sy(()=>f(g)):f(g)},[f,h]);return C.useLayoutEffect(()=>u.listen(m),[u,m]),C.useEffect(()=>hC(i),[i]),C.createElement(pC,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:u,future:i})}const SC=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",EC=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,No=C.forwardRef(function(t,n){let{onClick:i,relative:s,reloadDocument:a,replace:u,state:c,target:f,to:h,preventScrollReset:m,viewTransition:g}=t,w=gC(t,wC),{basename:v}=C.useContext(Yi),E,k=!1;if(typeof h=="string"&&EC.test(h)&&(E=h,SC))try{let T=new URL(window.location.href),A=h.startsWith("//")?new URL(T.protocol+h):new URL(h),U=kh(A.pathname,v);A.origin===T.origin&&U!=null?h=U+A.search+A.hash:k=!0}catch{}let S=X_(h,{relative:s}),x=_C(h,{replace:u,state:c,target:f,preventScrollReset:m,relative:s,viewTransition:g});function R(T){i&&i(T),T.defaultPrevented||x(T)}return C.createElement("a",zf({},w,{href:E||S,onClick:k||a?i:R,ref:n,target:f}))});var Ey;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ey||(Ey={}));var _y;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(_y||(_y={}));function _C(e,t){let{target:n,replace:i,state:s,preventScrollReset:a,relative:u,viewTransition:c}=t===void 0?{}:t,f=J_(),h=ba(),m=Cw(e,{relative:u});return C.useCallback(g=>{if(vC(g,n)){g.preventDefault();let w=i!==void 0?i:xu(h)===xu(m);f(e,{replace:w,state:s,preventScrollReset:a,relative:u,viewTransition:c})}},[h,f,m,i,s,n,e,a,u,c])}function Ow(e,t){return function(){return e.apply(t,arguments)}}const{toString:CC}=Object.prototype,{getPrototypeOf:Qo}=Object,{iterator:ka,toStringTag:Nw}=Symbol,bu=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),aa=(e,t)=>{let n=e;const i=[];for(;n!=null&&n!==Object.prototype;){if(i.indexOf(n)!==-1)return!1;if(i.push(n),bu(n,t))return!0;n=Qo(n)}return!1},PC=(e,t)=>e!=null&&aa(e,t)?e[t]:void 0,Eh=(e=>t=>{const n=CC.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),$n=e=>(e=e.toLowerCase(),t=>Eh(t)===e),Au=e=>t=>typeof t===e,{isArray:Hi}=Array,Yo=Au("undefined");function Go(e){return e!==null&&!Yo(e)&&e.constructor!==null&&!Yo(e.constructor)&&on(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Aw=$n("ArrayBuffer");function TC(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Aw(e.buffer),t}const RC=Au("string"),on=Au("function"),Iw=Au("number"),Xo=e=>e!==null&&typeof e=="object",OC=e=>e===!0||e===!1,ou=e=>{if(!Xo(e))return!1;const t=Qo(e);return(t===null||t===Object.prototype||Qo(t)===null)&&!aa(e,Nw)&&!aa(e,ka)}
vendor: 10,810 bytes, lines 203-205
203,NC=e=>{if(!Xo(e)||Go(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},AC=$n("Date"),IC=$n("File"),LC=e=>!!(e&&typeof e.uri<"u"),DC=e=>e&&typeof e.getParts<"u",MC=$n("Blob"),jC=$n("FileList"),FC=e=>Xo(e)&&on(e.pipe);function zC(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Cy=zC(),Py=typeof Cy.FormData<"u"?Cy.FormData:void 0,UC=e=>{if(!e)return!1;if(Py&&e instanceof Py)return!0;const t=Qo(e);if(!t||t===Object.prototype||!on(e.append))return!1;const n=Eh(e);return n==="formdata"||n==="object"&&on(e.toString)&&e.toString()==="[object FormData]"},BC=$n("URLSearchParams"),[$C,VC,HC,WC]=["ReadableStream","Request","Response","Headers"].map($n),qC=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Sa(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let i,s;if(typeof e!="object"&&(e=[e]),Hi(e))for(i=0,s=e.length;i<s;i++)t.call(null,e[i],i,e);else{if(Go(e))return;const a=n?Object.getOwnPropertyNames(e):Object.keys(e),u=a.length;let c;for(i=0;i<u;i++)c=a[i],t.call(null,e[c],c,e)}}function Lw(e,t){if(Go(e))return null;t=t.toLowerCase();const n=Object.keys(e);let i=n.length,s;for(;i-- >0;)if(s=n[i],t===s.toLowerCase())return s;return null}const Ai=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Dw=e=>!Yo(e)&&e!==Ai;function Uf(...e){const{caseless:t,skipUndefined:n}=Dw(this)&&this||{},i={},s=(a,u)=>{if(u==="__proto__"||u==="constructor"||u==="prototype")return;const c=t&&typeof u=="string"&&Lw(i,u)||u,f=bu(i,c)?i[c]:void 0;ou(f)&&ou(a)?i[c]=Uf(f,a):ou(a)?i[c]=Uf({},a):Hi(a)?i[c]=a.slice():(!n||!Yo(a))&&(i[c]=a)};for(let a=0,u=e.length;a<u;a++){const c=e[a];if(!c||Go(c)||(Sa(c,s),typeof c!="object"||Hi(c)))continue;const f=Object.getOwnPropertySymbols(c);for(let h=0;h<f.length;h++){const m=f[h];iP.call(c,m)&&s(c[m],m)}}return i}const QC=(e,t,n,{allOwnKeys:i}={})=>(Sa(t,(s,a)=>{n&&on(s)?Object.defineProperty(e,a,{__proto__:null,value:Ow(s,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,a,{__proto__:null,value:s,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:i}),e),YC=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),KC=(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},GC=(e,t,n,i)=>{let s,a,u;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),a=s.length;a-- >0;)u=s[a],(!i||i(u,e,t))&&!c[u]&&(t[u]=e[u],c[u]=!0);e=n!==!1&&Qo(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},XC=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return i!==-1&&i===n},JC=e=>{if(!e)return null;if(Hi(e))return e;let t=e.length;if(!Iw(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},ZC=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Qo(Uint8Array)),eP=(e,t)=>{const i=(e&&e[ka]).call(e);let s;for(;(s=i.next())&&!s.done;){const a=s.value;t.call(e,a[0],a[1])}},tP=(e,t)=>{let n;const i=[];for(;(n=e.exec(t))!==null;)i.push(n);return i},nP=$n("HTMLFormElement"),rP=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,s){return i.toUpperCase()+s}),{propertyIsEnumerable:iP}=Object.prototype,oP=$n("RegExp"),Mw=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};Sa(n,(s,a)=>{let u;(u=t(s,a,e))!==!1&&(i[a]=u||s)}),Object.defineProperties(e,i)},sP=e=>{Mw(e,(t,n)=>{if(on(e)&&["arguments","caller","callee"].includes(n))return!1;const i=e[n];if(on(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},aP=(e,t)=>{const n={},i=s=>{s.forEach(a=>{n[a]=!0})};return Hi(e)?i(e):i(String(e).split(t)),n},lP=()=>{},uP=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function cP(e){return!!(e&&on(e.append)&&e[Nw]==="FormData"&&e[ka])}const dP=e=>{const t=new WeakSet,n=i=>{if(Xo(i)){if(t.has(i))return;if(Go(i))return i;if(!("toJSON"in i)){t.add(i);const s=Hi(i)?[]:{};return Sa(i,(a,u)=>{const c=n(a);!Yo(c)&&(s[u]=c)}),t.delete(i),s}}return i};return n(e)},fP=$n("AsyncFunction"),hP=e=>e&&(Xo(e)||on(e))&&on(e.then)&&on(e.catch),jw=((e,t)=>e?setImmediate:t?((n,i)=>(Ai.addEventListener("message",({source:s,data:a})=>{s===Ai&&a===n&&i.length&&i.shift()()},!1),s=>{i.push(s),Ai.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",on(Ai.postMessage)),pP=typeof queueMicrotask<"u"?queueMicrotask.bind(Ai):typeof process<"u"&&process.nextTick||jw,Fw=e=>e!=null&&on(e[ka]),mP=e=>e!=null&&aa(e,ka)&&Fw(e),z={isArray:Hi,isArrayBuffer:Aw,isBuffer:Go,isFormData:UC,isArrayBufferView:TC,isString:RC,isNumber:Iw,isBoolean:OC,isObject:Xo,isPlainObject:ou,isEmptyObject:NC,isReadableStream:$C,isRequest:VC,isResponse:HC,isHeaders:WC,isUndefined:Yo,isDate:AC,isFile:IC,isReactNativeBlob:LC,isReactNative:DC,isBlob:MC,isRegExp:oP,isFunction:on,isStream:FC,isURLSearchParams:BC,isTypedArray:ZC,isFileList:jC,forEach:Sa,merge:Uf,extend:QC,trim:qC,stripBOM:YC,inherits:KC,toFlatObject:GC,kindOf:Eh,kindOfTest:$n,endsWith:XC,toArray:JC,forEachEntry:eP,matchAll:tP,isHTMLForm:nP,hasOwnProperty:bu,hasOwnProp:bu,hasOwnInPrototypeChain:aa,getSafeProp:PC,reduceDescriptors:Mw,freezeMethods:sP,toObjectSet:aP,toCamelCase:rP,noop:lP,toFiniteNumber:uP,findKey:Lw,global:Ai,isContextDefined:Dw,isSpecCompliantForm:cP,toJSONObject:dP,isAsyncFn:fP,isThenable:hP,setImmediate:jw,asap:pP,isIterable:Fw,isSafeIterable:mP},gP=z.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),yP=e=>{const t={};let n,i,s;return e&&e.split(`
204`).forEach(function(u){s=u.indexOf(":"),n=u.substring(0,s).trim().toLowerCase(),i=u.substring(s+1).trim(),!(!n||t[n]&&gP[n])&&(n==="set-cookie"?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)}),t};function vP(e){let t=0,n=e.length;for(;t<n;){const i=e.charCodeAt(t);if(i!==9&&i!==32)break;t+=1}for(;n>t;){const i=e.charCodeAt(n-1);if(i!==9&&i!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const wP=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),xP=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function _h(e,t){return z.isArray(e)?e.map(n=>_h(n,t)):vP(String(e).replace(t,""))}const bP=e=>_h(e,wP),kP=e=>_h(e,xP);function zw(e){const t=Object.create(null);return z.forEach(e.toJSON(),(n,i)=>{t[i]=kP(n)}),t}const Ty=Symbol("internals");function zs(e){return e&&String(e).trim().toLowerCase()}function su(e){return e===!1||e==null?e:z.isArray(e)?e.map(su):bP(String(e))}function SP(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(e);)t[i[1]]=i[2];return t}const EP=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Bd(e,t,n,i,s){if(z.isFunction(i))return i.call(this,t,n);if(s&&(t=n),!!z.isString(t)){if(z.isString(i))return t.indexOf(i)!==-1;if(z.isRegExp(i))return i.test(t)}}function _P(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,i)=>n.toUpperCase()+i)}function CP(e,t){const n=z.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+n,{__proto__:null,value:function(s,a,u){return this[i].call(this,t,s,a,u)},configurable:!0})})}let Ut=class{constructor(t){t&&this.set(t)}set(t,n,i){const s=this;function a(c,f,h){const m=zs(f);if(!m)return;const g=z.findKey(s,m);(!g||s[g]===void 0||h===!0||h===void 0&&s[g]!==!1)&&(s[g||f]=su(c))}const u=(c,f)=>z.forEach(c,(h,m)=>a(h,m,f));if(z.isPlainObject(t)||t instanceof this.constructor)u(t,n);else if(z.isString(t)&&(t=t.trim())&&!EP(t))u(yP(t),n);else if(z.isObject(t)&&z.isSafeIterable(t)){let c=Object.create(null),f,h;for(const m of t){if(!z.isArray(m))throw new TypeError("Object iterator must return a key-value pair");h=m[0],z.hasOwnProp(c,h)?(f=c[h],c[h]=z.isArray(f)?[...f,m[1]]:[f,m[1]]):c[h]=m[1]}u(c,n)}else t!=null&&a(n,t,i);return this}get(t,n){if(t=zs(t),t){const i=z.findKey(this,t);if(i){const s=this[i];if(!n)return s;if(n===!0)return SP(s);if(z.isFunction(n))return n.call(this,s,i);if(z.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=zs(t),t){const i=z.findKey(this,t);return!!(i&&this[i]!==void 0&&(!n||Bd(this,this[i],i,n)))}return!1}delete(t,n){const i=this;let s=!1;function a(u){if(u=zs(u),u){const c=z.findKey(i,u);c&&(!n||Bd(i,i[c],c,n))&&(delete i[c],s=!0)}}return z.isArray(t)?t.forEach(a):a(t),s}clear(t){const n=Object.keys(this);let i=n.length,s=!1;for(;i--;){const a=n[i];(!t||Bd(this,this[a],a,t,!0))&&(delete this[a],s=!0)}return s}normalize(t){const n=this,i={};return z.forEach(this,(s,a)=>{const u=z.findKey(i,a);if(u){n[u]=su(s),delete n[a];return}const c=t?_P(a):String(a).trim();c!==a&&delete n[a],n[c]=su(s),i[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return z.forEach(this,(i,s)=>{i!=null&&i!==!1&&(n[s]=t&&z.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
205`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const i=new this(t);return n.forEach(s=>i.set(s)),i}static accessor(t){const i=(this[Ty]=this[Ty]={accessors:{}}).accessors,s=this.prototype;function a(u){const c=zs(u);i[c]||(CP(s,u),i[c]=!0)}return z.isArray(t)?t.forEach(a):a(t),this}};Ut.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);z.reduceDescriptors(Ut.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(i){this[n]=i}}});z.freezeMethods(Ut);const PP="[REDACTED ****]";function TP(e){if(z.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(z.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function RP(e,t){const n=new Set(t.map(a=>String(a).toLowerCase())),i=[],s=a=>{if(a===null||typeof a!="object"||z.isBuffer(a))return a;if(i.indexOf(a)!==-1)return;a instanceof Ut&&(a=a.toJSON()),i.push(a);let u;if(z.isArray(a))u=[],a.forEach((c,f)=>{const h=s(c);z.isUndefined(h)||(u[f]=h)});else{if(!z.isPlainObject(a)&&TP(a))return i.pop(),a;u=Object.create(null);for(const[c,f]of Object.entries(a)){const h=n.has(c.toLowerCase())?PP:s(f);z.isUndefined(h)||(u[c]=h)}}return i.pop(),u};return s(e)}
vendor: 5,422 bytes, line 205
205let ae=class Uw extends Error{static from(t,n,i,s,a,u){const c=new Uw(t.message,n||t.code,i,s,a);return Object.defineProperty(c,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),c.name=t.name,t.status!=null&&c.status==null&&(c.status=t.status),u&&Object.assign(c,u),c}constructor(t,n,i,s,a){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),i&&(this.config=i),s&&(this.request=s),a&&(this.response=a,this.status=a.status)}toJSON(){const t=this.config,n=t&&z.hasOwnProp(t,"redact")?t.redact:void 0,i=z.isArray(n)&&n.length>0?RP(t,n):z.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:i,code:this.code,status:this.status}}};ae.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";ae.ERR_BAD_OPTION="ERR_BAD_OPTION";ae.ECONNABORTED="ECONNABORTED";ae.ETIMEDOUT="ETIMEDOUT";ae.ECONNREFUSED="ECONNREFUSED";ae.ERR_NETWORK="ERR_NETWORK";ae.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";ae.ERR_DEPRECATED="ERR_DEPRECATED";ae.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";ae.ERR_BAD_REQUEST="ERR_BAD_REQUEST";ae.ERR_CANCELED="ERR_CANCELED";ae.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";ae.ERR_INVALID_URL="ERR_INVALID_URL";ae.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const OP=null,Bw=100;function Bf(e){return z.isPlainObject(e)||z.isArray(e)}function $w(e){return z.endsWith(e,"[]")?e.slice(0,-2):e}function $d(e,t,n){return e?e.concat(t).map(function(s,a){return s=$w(s),!n&&a?"["+s+"]":s}).join(n?".":""):t}function NP(e){return z.isArray(e)&&!e.some(Bf)}const AP=z.toFlatObject(z,{},null,function(t){return/^is[A-Z]/.test(t)});function Iu(e,t,n){if(!z.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=z.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(R,T){return!z.isUndefined(T[R])});const i=n.metaTokens,s=n.visitor||E,a=n.dots,u=n.indexes,c=n.Blob||typeof Blob<"u"&&Blob,f=n.maxDepth===void 0?Bw:n.maxDepth,h=c&&z.isSpecCompliantForm(t),m=[];if(!z.isFunction(s))throw new TypeError("visitor must be a function");function g(x){if(x===null)return"";if(z.isDate(x))return x.toISOString();if(z.isBoolean(x))return x.toString();if(!h&&z.isBlob(x))throw new ae("Blob is not supported. Use a Buffer instead.");if(z.isArrayBuffer(x)||z.isTypedArray(x)){if(h&&typeof c=="function")return new c([x]);if(typeof Buffer<"u")return Buffer.from(x);throw new ae("Blob is not supported. Use a Buffer instead.",ae.ERR_NOT_SUPPORT)}return x}function w(x){if(x>f)throw new ae("Object is too deeply nested ("+x+" levels). Max depth: "+f,ae.ERR_FORM_DATA_DEPTH_EXCEEDED)}function v(x,R){if(f===1/0)return JSON.stringify(x);const T=[];return JSON.stringify(x,function(U,L){if(!z.isObject(L))return L;for(;T.length&&T[T.length-1]!==this;)T.pop();return T.push(L),w(R+T.length-1),L})}function E(x,R,T){let A=x;if(z.isReactNative(t)&&z.isReactNativeBlob(x))return t.append($d(T,R,a),g(x)),!1;if(x&&!T&&typeof x=="object"){if(z.endsWith(R,"{}"))R=i?R:R.slice(0,-2),x=v(x,1);else if(z.isArray(x)&&NP(x)||(z.isFileList(x)||z.endsWith(R,"[]"))&&(A=z.toArray(x)))return R=$w(R),A.forEach(function(L,W){!(z.isUndefined(L)||L===null)&&t.append(u===!0?$d([R],W,a):u===null?R:R+"[]",g(L))}),!1}return Bf(x)?!0:(t.append($d(T,R,a),g(x)),!1)}const k=Object.assign(AP,{defaultVisitor:E,convertValue:g,isVisitable:Bf});function S(x,R,T=0){if(!z.isUndefined(x)){if(w(T),m.indexOf(x)!==-1)throw new Error("Circular reference detected in "+R.join("."));m.push(x),z.forEach(x,function(U,L){(!(z.isUndefined(U)||U===null)&&s.call(t,U,z.isString(L)?L.trim():L,R,k))===!0&&S(U,R?R.concat(L):[L],T+1)}),m.pop()}}if(!z.isObject(e))throw new TypeError("data must be an object");return S(e),t}function Ry(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(i){return t[i]})}function Ch(e,t){this._pairs=[],e&&Iu(e,this,t)}const Vw=Ch.prototype;Vw.append=function(t,n){this._pairs.push([t,n])};Vw.toString=function(t){const n=t?i=>t.call(this,i,Ry):Ry;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function IP(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Hw(e,t,n){if(!t)return e;e=e||"";const i=z.isFunction(n)?{serialize:n}:n,s=z.getSafeProp(i,"encode")||IP,a=z.getSafeProp(i,"serialize");let u;if(a?u=a(t,i):u=z.isURLSearchParams(t)?t.toString():new Ch(t,i).toString(s),u){const c=e.indexOf("#");c!==-1&&(e=e.slice(0,c)),e+=(e.indexOf("?")===-1?"?":"&")+u}return e}class Oy{constructor(){this.handlers=[]}use(t,n,i){return this.handlers.push({fulfilled:t,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){z.forEach(this.handlers,function(i){i!==null&&t(i)})}}const Ph={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},LP=typeof URLSearchParams<"u"?URLSearchParams:Ch,DP=typeof FormData<"u"?FormData:null,MP=typeof Blob<"u"?Blob:null,jP={isBrowser:!0,classes:{
vendor: 2,427 bytes, line 205
205URLSearchParams:LP,FormData:DP,Blob:MP},protocols:["http","https","file","blob","url","data"]},Th=typeof window<"u"&&typeof document<"u",$f=typeof navigator=="object"&&navigator||void 0,FP=Th&&(!$f||["ReactNative","NativeScript","NS"].indexOf($f.product)<0),zP=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",UP=Th&&window.location.href||"http://localhost",BP=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Th,hasStandardBrowserEnv:FP,hasStandardBrowserWebWorkerEnv:zP,navigator:$f,origin:UP},Symbol.toStringTag,{value:"Module"})),It={...BP,...jP};function $P(e,t){return Iu(e,new It.classes.URLSearchParams,{visitor:function(n,i,s,a){return It.isNode&&z.isBuffer(n)?(this.append(i,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}const Ny=Bw;function Ww(e){if(e>Ny)throw new ae("FormData field is too deeply nested ("+e+" levels). Max depth: "+Ny,ae.ERR_FORM_DATA_DEPTH_EXCEEDED)}function VP(e){const t=[],n=/\w+|\[(\w*)]/g;let i;for(;(i=n.exec(e))!==null;)Ww(t.length),t.push(i[0]==="[]"?"":i[1]||i[0]);return t}function HP(e){const t={},n=Object.keys(e);let i;const s=n.length;let a;for(i=0;i<s;i++)a=n[i],t[a]=e[a];return t}function qw(e){function t(n,i,s,a){Ww(a);let u=n[a++];if(u==="__proto__")return!0;const c=Number.isFinite(+u),f=a>=n.length;return u=!u&&z.isArray(s)?s.length:u,f?(z.hasOwnProp(s,u)?s[u]=z.isArray(s[u])?s[u].concat(i):[s[u],i]:s[u]=i,!c):((!z.hasOwnProp(s,u)||!z.isObject(s[u]))&&(s[u]=[]),t(n,i,s[u],a)&&z.isArray(s[u])&&(s[u]=HP(s[u])),!c)}if(z.isFormData(e)&&z.isFunction(e.entries)){const n={};return z.forEachEntry(e,(i,s)=>{t(VP(i),s,n,0)}),n}return null}const ko=(e,t)=>e!=null&&z.hasOwnProp(e,t)?e[t]:void 0;function WP(e,t,n){if(z.isString(e))try{return(t||JSON.parse)(e),z.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(e)}const Ea={transitional:Ph,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const i=n.getContentType()||"",s=i.indexOf("application/json")>-1,a=z.isObject(t);if(a&&z.isHTMLForm(t)&&(t=new FormData(t)),z.isFormData(t))return s?JSON.stringify(qw(t)):t;if(z.isArrayBuffer(t)||z.isBuffer(t)||z.isStream(t)||z.isFile(t)||z.isBlob(t)||z.isReadableStream(t))return t;if(z.isArrayBufferView(t))return t.buffer;if(z.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;
vendor: 10,809 bytes, line 205
205if(a){const f=ko(this,"formSerializer");if(i.indexOf("application/x-www-form-urlencoded")>-1)return $P(t,f).toString();if((c=z.isFileList(t))||i.indexOf("multipart/form-data")>-1){const h=ko(this,"env"),m=h&&h.FormData;return Iu(c?{"files[]":t}:t,m&&new m,f)}}return a||s?(n.setContentType("application/json",!1),WP(t)):t}],transformResponse:[function(t){const n=ko(this,"transitional")||Ea.transitional,i=n&&n.forcedJSONParsing,s=ko(this,"responseType"),a=s==="json";if(z.isResponse(t)||z.isReadableStream(t))return t;if(t&&z.isString(t)&&(i&&!s||a)){const c=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t,ko(this,"parseReviver"))}catch(f){if(c)throw f.name==="SyntaxError"?ae.from(f,ae.ERR_BAD_RESPONSE,this,null,ko(this,"response")):f}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:It.classes.FormData,Blob:It.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};z.forEach(["delete","get","head","post","put","patch","query"],e=>{Ea.headers[e]={}});function Vd(e,t){const n=this||Ea,i=t||n,s=Ut.from(i.headers);let a=i.data;return z.forEach(e,function(c){a=c.call(n,a,s.normalize(),t?t.status:void 0)}),s.normalize(),a}function Qw(e){return!!(e&&e.__CANCEL__)}let _a=class extends ae{constructor(t,n,i){super(t??"canceled",ae.ERR_CANCELED,n,i),this.name="CanceledError",this.__CANCEL__=!0}};function Yw(e,t,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(new ae("Request failed with status code "+n.status,n.status>=400&&n.status<500?ae.ERR_BAD_REQUEST:ae.ERR_BAD_RESPONSE,n.config,n.request,n))}function qP(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function QP(e,t){e=e||10;const n=new Array(e),i=new Array(e);let s=0,a=0,u;return t=t!==void 0?t:1e3,function(f){const h=Date.now(),m=i[a];u||(u=h),n[s]=f,i[s]=h;let g=a,w=0;for(;g!==s;)w+=n[g++],g=g%e;if(s=(s+1)%e,s===a&&(a=(a+1)%e),h-u<t)return;const v=m&&h-m;return v?Math.round(w*1e3/v):void 0}}function YP(e,t){let n=0,i=1e3/t,s,a;const u=(h,m=Date.now())=>{n=m,s=null,a&&(clearTimeout(a),a=null),e(...h)};return[(...h)=>{const m=Date.now(),g=m-n;g>=i?u(h,m):(s=h,a||(a=setTimeout(()=>{a=null,u(s)},i-g)))},()=>s&&u(s)]}const ku=(e,t,n=3)=>{let i=0;const s=QP(50,250);return YP(a=>{if(!a||typeof a.loaded!="number")return;const u=a.loaded,c=a.lengthComputable?a.total:void 0,f=c!=null?Math.min(u,c):u,h=Math.max(0,f-i),m=s(h);i=Math.max(i,f);const g={loaded:f,total:c,progress:c?f/c:void 0,bytes:h,rate:m||void 0,estimated:m&&c?(c-f)/m:void 0,event:a,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(g)},n)},Ay=(e,t)=>{const n=e!=null;return[i=>t[0]({lengthComputable:n,total:e,loaded:i}),t[1]]},Iy=e=>(...t)=>z.asap(()=>e(...t)),KP=It.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,It.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(It.origin),It.navigator&&/(msie|trident)/i.test(It.navigator.userAgent)):()=>!0,GP=It.hasStandardBrowserEnv?{write(e,t,n,i,s,a,u){if(typeof document>"u")return;const c=[`${e}=${encodeURIComponent(t)}`];z.isNumber(n)&&c.push(`expires=${new Date(n).toUTCString()}`),z.isString(i)&&c.push(`path=${i}`),z.isString(s)&&c.push(`domain=${s}`),a===!0&&c.push("secure"),z.isString(u)&&c.push(`SameSite=${u}`),document.cookie=c.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const i=t[n].replace(/^\s+/,""),s=i.indexOf("=");if(s!==-1&&i.slice(0,s)===e)try{return decodeURIComponent(i.slice(s+1))}catch{return i.slice(s+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function XP(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function JP(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}const ZP=/^https?:(?!\/\/)/i,eT=/[\t\n\r]/g;function tT(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}function nT(e){return tT(e).replace(eT,"")}function Ly(e,t){if(typeof e=="string"&&ZP.test(nT(e)))throw new ae('Invalid URL: missing "//" after protocol',ae.ERR_INVALID_URL,t)}function Kw(e,t,n,i){Ly(t,i);let s=!XP(t);return e&&(s||n===!1)?(Ly(e,i),JP(e,t)):t}const Dy=e=>e instanceof Ut?{...e}:e;function Wi(e,t){e=e||{},t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function i(m,g,w,v){return z.isPlainObject(m)&&z.isPlainObject(g)?z.merge.call({caseless:v},m,g):z.isPlainObject(g)?z.merge({},g):z.isArray(g)?g.slice():g}function s(m,g,w,v){if(z.isUndefined(g)){if(!z.isUndefined(m))return i(void 0,m,w,v)}else return i(m,g,w,v)}function a(m,g){if(!z.isUndefined(g))return i(void 0,g)}function u(m,g){if(z.isUndefined(g)){if(!z.isUndefined(m))return i(void 0,m)}else return i(void 0,g)}function c(m){const g=z.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!z.isUndefined(g))if(z.isPlainObject(g)){if(z.hasOwnProp(g,m))return g[m]}else return;const w=z.hasOwnProp(e,"transitional")?e.transitional:void 0;if(z.isPlainObject(w)&&z.hasOwnProp(w,m))return w[m]}function f(m,g,w){if(z.hasOwnProp(t,w))return i(m,g);if(z.hasOwnProp(e,w))return i(void 0,m)}const h={url:a,method:a,data:a,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,allowedSocketPaths:u,responseEncoding:u,validateStatus:f,headers:(m,g,w)=>s(Dy(m),Dy(g),w,!0)};return z.forEach(Object.keys({...e,...t}),function(g){if(g==="__proto__"||g==="constructor"||g==="prototype")return;const w=z.hasOwnProp(h,g)?h[g]:s,v=z.hasOwnProp(e,g)?e[g]:void 0,E=z.hasOwnProp(t,g)?t[g]:void 0,k=w(v,E,g);z.isUndefined(k)&&w!==f||(n[g]=k)}),z.hasOwnProp(t,"validateStatus")&&z.isUndefined(t.validateStatus)&&c("validateStatusUndefinedResolves")===!1&&(z.hasOwnProp(e,"validateStatus")?n.validateStatus=i(void 0,e.validateStatus):delete n.validateStatus),n}const rT=["content-type","content-length"];function iT(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t||{}).forEach(([i,s])=>{rT.includes(i.toLowerCase())&&e.set(i,s)})}const oT=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function Gw(e){const t=Wi({},e),n=w=>z.hasOwnProp(t,w)?t[w]:void 0,i=n("data");let s=n("withXSRFToken");const a=n("xsrfHeaderName"),u=n("xsrfCookieName");let c=n("headers");const f=n("auth"),h=n("baseURL"),m=n("allowAbsoluteUrls"),g=n("url");if(t.headers=c=Ut.from(c),t.url=Hw(Kw(h,g,m,t),n("params"),n("paramsSerializer")),f){const w=z.getSafeProp(f,"username")||"",v=z.getSafeProp(f,"password")||"";try{c.set("Authorization","Basic "+btoa(w+":"+(v?oT(v):"")))}catch(E){throw ae.from(E,ae.ERR_BAD_OPTION_VALUE,e)}}if(z.isFormData(i)&&(It.hasStandardBrowserEnv||It.hasStandardBrowserWebWorkerEnv||z.isReactNative(i)?c.setContentType(void 0):z.isFunction(i.getHeaders)&&iT(c,i.getHeaders(),n("formDataHeaderPolicy"))),It.hasStandardBrowserEnv&&(z.isFunction(s)&&(s=s(t)),s===!0||s==null&&KP(t.url))){const v=a&&u&&GP.read(u);v&&c.set(a,v)}return t}const sT=typeof XMLHttpRequest<"u",aT=sT&&function(e){return new Promise(function(n,i){const s=Gw(e);let a=s.data;const u=Ut.from(s.headers).normalize();let{responseType:c,onUploadProgress:f,onDownloadProgress:h}=s,m,g,w,v,E;function k(){v&&v(),E&&E(),s.cancelToken&&s.cancelToken.unsubscribe(m),s.signal&&s.signal.removeEventListener("abort",m)}let S=new XMLHttpRequest;S.open(s.method.toUpperCase(),s.url,!0),S.timeout=s.timeout;function x(){if(!S)return;const T=Ut.from("getAllResponseHeaders"in S&&S.getAllResponseHeaders()),U={data:!c||c==="text"||c==="json"?S.responseText:S.response,status:S.status,statusText:S.statusText,headers:T,config:e,request:S};Yw(function(W){n(W),k()},function(W){i(W),k()},U),S=null}"onloadend"in S?S.onloadend=x:S.onreadystatechange=function(){!S||S.readyState!==4||S.status===0&&!(S.responseURL&&S.responseURL.startsWith("file:"))||setTimeout(x)},S.onabort=function(){S&&(i(new ae("Request aborted",ae.ECONNABORTED,e,S)),k(),S=null)},S.onerror=function(A){const U=A&&A.message?A.message:"Network Error",L=new ae(U,ae.ERR_NETWORK,e,S);L.event=A||null,i(L),k(),S=null},S.ontimeout=function(){let A=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const U=s.transitional||Ph;s.timeoutErrorMessage&&(A=s.timeoutErrorMessage),i(new ae(A,U.clarifyTimeoutError?ae.ETIMEDOUT:ae.ECONNABORTED,e,S)),k(),S=null},a===void 0&&u.setContentType(null),"setRequestHeader"in S&&z.forEach(zw(u),function(A,U){S.setRequestHeader(U,A)}),z.isUndefined(s.withCredentials)||(S.withCredentials=!!s.withCredentials),c&&c!=="json"&&(S.responseType=s.responseType),h&&([w,E]=ku(h,!0),S.addEventListener("progress",w)),f&&S.upload&&([g,v]=ku(f),S.upload.addEventListener("progress",g),S.upload.addEventListener("loadend",v)),(s.cancelToken||s.signal)&&(m=T=>{S&&(i(!T||T.type?new _a(null,e,S):T),S.abort(),k(),S=null)},s.cancelToken&&s.cancelToken.subscribe(m),s.signal&&(s.signal.aborted?m():s.signal.addEventListener("abort",m)));const R=qP(s.url);if(R&&!It.protocols.includes(R)){i(new ae("Unsupported protocol "+R+":",ae.ERR_BAD_REQUEST,e)),k();return}S.send(a||null)})},lT=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let i=!1;const s=function(f){if(!i){i=!0,u();const h=f instanceof Error?f:this.reason;n.abort(h instanceof ae?h:new _a(h instanceof Error?h.message:h))}};let a=t&&setTimeout(()=>{a=null,s(new ae(`timeout of ${t}ms exceeded`,ae.ETIMEDOUT))},t);const u=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(s):f.removeEventListener("abort",s)}),e=null)};e.forEach(f=>f.addEventListener("abort",s,{once:!0}));const{signal:c}=n;return c.unsubscribe=()=>z.asap(u),c},uT=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let i=0,s;for(;i<n;)s=i+t,yield e.slice(i,s),i=s},cT=async function*(e,t){for await(const n of dT(e))yield*uT(n,t)},dT=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:i}=await t.read();if(n)break;yield i}}finally{await t.cancel()}},My=(e,t,n,i)=>{const s=cT(e,t);let a=0,u,c=f=>{u||(u=!0,i&&i(f))};return new ReadableStream({async pull(f){try{const{done:h,value:m}=await s.next();if(h){c(),f.close();return}let g=m.byteLength;if(n){let w=a+=g;n(w)}f.enqueue(new Uint8Array(m))}catch(h){throw c(h),h}},cancel(f){return c(f),s.return()}},{highWaterMark:2})},Su=e=>e>=48&&e<=57||e>=65&&e<=70||e>
vendor: 4,140 bytes, line 205
205=97&&e<=102,fT=(e,t,n)=>t+2<n&&Su(e.charCodeAt(t+1))&&Su(e.charCodeAt(t+2));function hT(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),i=e.slice(t+1);if(/;base64/i.test(n)){let u=i.length;const c=i.length;for(let v=0;v<c;v++)if(i.charCodeAt(v)===37&&v+2<c){const E=i.charCodeAt(v+1),k=i.charCodeAt(v+2);Su(E)&&Su(k)&&(u-=2,v+=2)}let f=0,h=c-1;const m=v=>v>=2&&i.charCodeAt(v-2)===37&&i.charCodeAt(v-1)===51&&(i.charCodeAt(v)===68||i.charCodeAt(v)===100);h>=0&&(i.charCodeAt(h)===61?(f++,h--):m(h)&&(f++,h-=3)),f===1&&h>=0&&(i.charCodeAt(h)===61||m(h))&&f++;const w=Math.floor(u/4)*3-(f||0);return w>0?w:0}let a=0;for(let u=0,c=i.length;u<c;u++){const f=i.charCodeAt(u);if(f===37&&fT(i,u,c))a+=1,u+=2;else if(f<128)a+=1;else if(f<2048)a+=2;else if(f>=55296&&f<=56319&&u+1<c){const h=i.charCodeAt(u+1);h>=56320&&h<=57343?(a+=4,u++):a+=3}else a+=3}return a}const Rh="1.18.1",jy=64*1024,{isFunction:Vl}=z,pT=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),Fy=e=>{if(!z.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},zy=(e,...t)=>{try{return!!e(...t)}catch{return!1}},mT=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},gT=e=>{const t=z.global!==void 0&&z.global!==null?z.global:globalThis,{ReadableStream:n,TextEncoder:i}=t;e=z.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:s,Request:a,Response:u}=e,c=s?Vl(s):typeof fetch=="function",f=Vl(a),h=Vl(u);if(!c)return!1;const m=c&&Vl(n),g=c&&(typeof i=="function"?(x=>R=>x.encode(R))(new i):async x=>new Uint8Array(await new a(x).arrayBuffer())),w=f&&m&&zy(()=>{let x=!1;const R=new a(It.origin,{body:new n,method:"POST",get duplex(){return x=!0,"half"}}),T=R.headers.has("Content-Type");return R.body!=null&&R.body.cancel(),x&&!T}),v=h&&m&&zy(()=>z.isReadableStream(new u("").body)),E={stream:v&&(x=>x.body)};c&&["text","arrayBuffer","blob","formData","stream"].forEach(x=>{!E[x]&&(E[x]=(R,T)=>{let A=R&&R[x];if(A)return A.call(R);throw new ae(`Response type '${x}' is not supported`,ae.ERR_NOT_SUPPORT,T)})});const k=async x=>{if(x==null)return 0;if(z.isBlob(x))return x.size;if(z.isSpecCompliantForm(x))return(await new a(It.origin,{method:"POST",body:x}).arrayBuffer()).byteLength;if(z.isArrayBufferView(x)||z.isArrayBuffer(x))return x.byteLength;if(z.isURLSearchParams(x)&&(x=x+""),z.isString(x))return(await g(x)).byteLength},S=async(x,R)=>{const T=z.toFiniteNumber(x.getContentLength());return T??k(R)};return async x=>{let{url:R,method:T,data:A,signal:U,cancelToken:L,timeout:W,onDownloadProgress:M,onUploadProgress:K,responseType:H,headers:Q,withCredentials:G="same-origin",fetchOptions:le,maxContentLength:te,maxBodyLength:J}=Gw(x);const me=z.isNumber(te)&&te>-1,be=z.isNumber(J)&&J>-1,X=re=>z.hasOwnProp(x,re)?x[re]:void 0;let ue=s||fetch;H=H?(H+"").toLowerCase():"text";let P=lT([U,L&&L.toAbortSignal()],W),D=null;const q=P&&P.unsubscribe&&(()=>{P.unsubscribe()});let O,we=null;const xe=()=>new ae("Request body larger than maxBodyLength limit",ae.ERR_BAD_REQUEST,x,D);try{let re;const Pe=X("auth");if(Pe){const Re=z.getSafeProp(Pe,"username")||"",ft=z.getSafeProp(Pe,"password")||"";re={username:Re,password:ft}}if(mT(R)){const Re=new URL(R,It.origin);if(!re&&(Re.username||Re.password)){const ft=Fy(Re.username),un=Fy(Re.password);re={username:ft,password:un}}(Re.username||Re.password)&&(Re.username="",Re.password="",R=Re.href)}if(re&&(Q.delete("authorization"),Q.set("Authorization","Basic "+btoa(pT((re.username||"")+":"+(re.password||""))))),me&&typeof R=="string"&&R.startsWith("data:")&&hT(R)>te)throw new ae("maxContentLength size of "+te+" exceeded",ae.ERR_BAD_RESPONSE,x,D);if(be&&T!=="get"&&T!=="head"){const Re=await k(A);if(typeof Re=="number"&&isFinite(Re)&&(O=Re,Re>J))throw xe()}const Ae=be&&(z.isReadableStream(A)||z.isStream(A)),Se=(Re,ft,un)=>My(Re,jy,Yt=>{if(be&&Yt>J)throw we=xe();ft&&ft(Yt)},un);if(w&&T!=="get"&&T!=="head"&&(K||Ae)){if(O=O??await S(Q,A),O!==0||Ae){let Re=new a(R,{method:"POST",body:A,duplex:"half"}),ft;
vendor: 5,756 bytes, lines 205-207
205if(z.isFormData(A)&&(ft=Re.headers.get("content-type"))&&Q.setContentType(ft),Re.body){const[un,Yt]=K&&Ay(O,ku(Iy(K)))||[];A=Se(Re.body,un,Yt)}}}else if(Ae&&!f&&m&&T!=="get"&&T!=="head")A=Se(A);else if(Ae&&f&&!w&&T!=="get"&&T!=="head")throw new ae("Stream request bodies are not supported by the current fetch implementation",ae.ERR_NOT_SUPPORT,x,D);z.isString(G)||(G=G?"include":"omit");const Ze=f&&"credentials"in a.prototype;if(z.isFormData(A)){const Re=Q.getContentType();Re&&/^multipart\/form-data/i.test(Re)&&!/boundary=/i.test(Re)&&Q.delete("content-type")}Q.set("User-Agent","axios/"+Rh,!1);const Ct={...le,signal:P,method:T.toUpperCase(),headers:zw(Q.normalize()),body:A,duplex:"half",credentials:Ze?G:void 0};D=f&&new a(R,Ct);let yt=await(f?ue(D,le):ue(R,Ct));const ln=Ut.from(yt.headers);if(me){const Re=z.toFiniteNumber(ln.getContentLength());if(Re!=null&&Re>te)throw new ae("maxContentLength size of "+te+" exceeded",ae.ERR_BAD_RESPONSE,x,D)}const Qt=v&&(H==="stream"||H==="response");if(v&&yt.body&&(M||me||Qt&&q)){const Re={};["status","statusText","headers"].forEach(Nn=>{Re[Nn]=yt[Nn]});const ft=z.toFiniteNumber(ln.getContentLength()),[un,Yt]=M&&Ay(ft,ku(Iy(M),!0))||[];let On=0;const Hn=Nn=>{if(me&&(On=Nn,On>te))throw new ae("maxContentLength size of "+te+" exceeded",ae.ERR_BAD_RESPONSE,x,D);un&&un(Nn)};yt=new u(My(yt.body,jy,Hn,()=>{Yt&&Yt(),q&&q()}),Re)}H=H||"text";let $t=await E[z.findKey(E,H)||"text"](yt,x);if(me&&!v&&!Qt){let Re;if($t!=null&&(typeof $t.byteLength=="number"?Re=$t.byteLength:typeof $t.size=="number"?Re=$t.size:typeof $t=="string"&&(Re=typeof i=="function"?new i().encode($t).byteLength:$t.length)),typeof Re=="number"&&Re>te)throw new ae("maxContentLength size of "+te+" exceeded",ae.ERR_BAD_RESPONSE,x,D)}return!Qt&&q&&q(),await new Promise((Re,ft)=>{Yw(Re,ft,{data:$t,headers:Ut.from(yt.headers),status:yt.status,statusText:yt.statusText,config:x,request:D})})}catch(re){if(q&&q(),P&&P.aborted&&P.reason instanceof ae){const Pe=P.reason;throw Pe.config=x,D&&(Pe.request=D),re!==Pe&&Object.defineProperty(Pe,"cause",{__proto__:null,value:re,writable:!0,enumerable:!1,configurable:!0}),Pe}if(we)throw D&&!we.request&&(we.request=D),we;if(re instanceof ae)throw D&&!re.request&&(re.request=D),re;if(re&&re.name==="TypeError"&&/Load failed|fetch/i.test(re.message)){const Pe=new ae("Network Error",ae.ERR_NETWORK,x,D,re&&re.response);throw Object.defineProperty(Pe,"cause",{__proto__:null,value:re.cause||re,writable:!0,enumerable:!1,configurable:!0}),Pe}throw ae.from(re,re&&re.code,x,D,re&&re.response)}}},yT=new Map,Xw=e=>{let t=e&&e.env||{};const{fetch:n,Request:i,Response:s}=t,a=[i,s,n];let u=a.length,c=u,f,h,m=yT;for(;c--;)f=a[c],h=m.get(f),h===void 0&&m.set(f,h=c?new Map:gT(t)),m=h;return h};Xw();const Oh={http:OP,xhr:aT,fetch:{get:Xw}};z.forEach(Oh,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const Uy=e=>`- ${e}`,vT=e=>z.isFunction(e)||e===null||e===!1;function wT(e,t){e=z.isArray(e)?e:[e];const{length:n}=e;let i,s;const a={};for(let u=0;u<n;u++){i=e[u];let c;if(s=i,!vT(i)&&(s=Oh[(c=String(i)).toLowerCase()],s===void 0))throw new ae(`Unknown adapter '${c}'`);if(s&&(z.isFunction(s)||(s=s.get(t))))break;a[c||"#"+u]=s}if(!s){const u=Object.entries(a).map(([f,h])=>`adapter ${f} `+(h===!1?"is not supported by the environment":"is not available in the build"));let c=n?u.length>1?`since :
206`+u.map(Uy).join(`
207`):" "+Uy(u[0]):"as no adapter specified";throw new ae("There is no suitable adapter to dispatch the request "+c,ae.ERR_NOT_SUPPORT)}return s}const Jw={getAdapter:wT,adapters:Oh};function Hd(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new _a(null,e)}function By(e){return Hd(e),e.headers=Ut.from(e.headers),e.data=Vd.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Jw.getAdapter(e.adapter||Ea.adapter,e)(e).then(function(i){Hd(e),e.response=i;try{i.data=Vd.call(e,e.transformResponse,i)}finally{delete e.response}return i.headers=Ut.from(i.headers),i},function(i){if(!Qw(i)&&(Hd(e),i&&i.response)){e.response=i.response;try{i.response.data=Vd.call(e,e.transformResponse,i.response)}finally{delete e.response}i.response.headers=Ut.from(i.response.headers)}return Promise.reject(i)})}const Lu={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Lu[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const $y={};Lu.transitional=function(t,n,i){function s(a,u){return"[Axios v"+Rh+"] Transitional option '"+a+"'"+u+(i?". "+i:"")}return(a,u,c)=>{if(t===!1)throw new ae(s(u," has been removed"+(n?" in "+n:"")),ae.ERR_DEPRECATED);return n&&!$y[u]&&($y[u]=!0,console.warn(s(u," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,u,c):!0}};Lu.spelling=function(t){return(n,i)=>(console.warn(`${i} is likely a misspelling of ${t}`),!0)};function xT(e,t,n){if(typeof e!="object"||e===null)throw new ae("options must be an object",ae.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let s=i.length;for(;s-- >0;){const a=i[s],u=Object.prototype.hasOwnProperty.call(t,a)?t[a]:void 0;if(u){const c=e[a],f=c===void 0||u(c,a,e);if(f!==!0)throw new ae("option "+a+" must be "+f,ae.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ae("Unknown option "+a,ae.ERR_BAD_OPTION)}}const au={assertOptions:xT,validators:Lu},Ft=au.validators;let $i=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Oy,response:new Oy}}async request(t,n){try{return await this._request(t,n)}catch(i){if(i instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const a=(()=>
vendor: 3,918 bytes, lines 207-211
207{if(!s.stack)return"";const u=s.stack.indexOf(`
208`);return u===-1?"":s.stack.slice(u+1)})();try{if(!i.stack)i.stack=a;else if(a){const u=a.indexOf(`
209`),c=u===-1?-1:a.indexOf(`
210`,u+1),f=c===-1?"":a.slice(c+1);String(i.stack).endsWith(f)||(i.stack+=`
211`+a)}}catch{}}throw i}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Wi(this.defaults,n);const{transitional:i,paramsSerializer:s,headers:a}=n;i!==void 0&&au.assertOptions(i,{silentJSONParsing:Ft.transitional(Ft.boolean),forcedJSONParsing:Ft.transitional(Ft.boolean),clarifyTimeoutError:Ft.transitional(Ft.boolean),legacyInterceptorReqResOrdering:Ft.transitional(Ft.boolean),advertiseZstdAcceptEncoding:Ft.transitional(Ft.boolean),validateStatusUndefinedResolves:Ft.transitional(Ft.boolean)},!1),s!=null&&(z.isFunction(s)?n.paramsSerializer={serialize:s}:au.assertOptions(s,{encode:Ft.function,serialize:Ft.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),au.assertOptions(n,{baseUrl:Ft.spelling("baseURL"),withXsrfToken:Ft.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let u=a&&z.merge(a.common,a[n.method]);a&&z.forEach(["delete","get","head","post","put","patch","query","common"],E=>{delete a[E]}),n.headers=Ut.concat(u,a);const c=[];let f=!0;this.interceptors.request.forEach(function(k){if(typeof k.runWhen=="function"&&k.runWhen(n)===!1)return;f=f&&k.synchronous;const S=n.transitional||Ph;S&&S.legacyInterceptorReqResOrdering?c.unshift(k.fulfilled,k.rejected):c.push(k.fulfilled,k.rejected)});const h=[];this.interceptors.response.forEach(function(k){h.push(k.fulfilled,k.rejected)});let m,g=0,w;if(!f){const E=[By.bind(this),void 0];for(E.unshift(...c),E.push(...h),w=E.length,m=Promise.resolve(n);g<w;)m=m.then(E[g++],E[g++]);return m}w=c.length;let v=n;for(;g<w;){const E=c[g++],k=c[g++];try{v=E(v)}catch(S){k.call(this,S);break}}try{m=By.call(this,v)}catch(E){return Promise.reject(E)}for(g=0,w=h.length;g<w;)m=m.then(h[g++],h[g++]);return m}getUri(t){t=Wi(this.defaults,t);const n=Kw(t.baseURL,t.url,t.allowAbsoluteUrls,t);return Hw(n,t.params,t.paramsSerializer)}};z.forEach(["delete","get","head","options"],function(t){$i.prototype[t]=function(n,i){return this.request(Wi(i||{},{method:t,url:n,data:i&&z.hasOwnProp(i,"data")?i.data:void 0}))}});z.forEach(["post","put","patch","query"],function(t){function n(i){return function(a,u,c){return this.request(Wi(c||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:a,data:u}))}}$i.prototype[t]=n(),t!=="query"&&($i.prototype[t+"Form"]=n(!0))});let bT=class Zw{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const i=this;this.promise.then(s=>{if(!i._listeners)return;let a=i._listeners.length;for(;a-- >0;)i._listeners[a](s);i._listeners=null}),this.promise.then=s=>{let a;const u=new Promise(c=>{i.subscribe(c),a=c}).then(s);return u.cancel=function(){i.unsubscribe(a)},u},t(function(a,u,c){i.reason||(i.reason=new _a(a,u,c),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=i=>{t.abort(i)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Zw(function(s){t=s}),cancel:t}}};function kT(e){return function(n){return e.apply(null,n)}}function ST(e){return z.isObject(e)&&e.isAxiosError===!0}const Vf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
211alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Vf).forEach(([e,t])=>{Vf[t]=e});function ex(e){const t=new $i(e),n=Ow($i.prototype.request,t);return z.extend(n,$i.prototype,t,{allOwnKeys:!0}),z.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return ex(Wi(e,s))},n}const dt=ex(Ea);dt.Axios=$i;dt.CanceledError=_a;dt.CancelToken=bT;dt.isCancel=Qw;dt.VERSION=Rh;dt.toFormData=Iu;dt.AxiosError=ae;dt.Cancel=dt.CanceledError;dt.all=function(t){return Promise.all(t)};dt.spread=kT;dt.isAxiosError=ST;dt.mergeConfig=Wi;dt.AxiosHeaders=Ut;dt.formToJSON=e=>qw(z.isHTMLForm(e)?new FormData(e):e);dt.getAdapter=Jw.getAdapter;dt.HttpStatusCode=Vf;dt.default=dt;const{Axios:S4,AxiosError:E4,CanceledError:_4,isCancel:C4,CancelToken:P4,VERSION:T4,all:R4,Cancel:O4,isAxiosError:N4,spread:A4,toFormData:I4,AxiosHeaders:L4,HttpStatusCode:D4,formToJSON:M4,getAdapter:j4,mergeConfig:F4,create:z4}=dt,tx=typeof window>"u",Vy=!tx&&window.self!==window.top,ET=!tx&&typeof document>"u",nx=()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),Nt=[];for(let e=0;e<256;++e)Nt.push((e+256).toString(16).slice(1));function _T(e,t=0){return(Nt[e[t+0]]+Nt[e[t+1]]+Nt[e[t+2]]+Nt[e[t+3]]+"-"+Nt[e[t+4]]+Nt[e[t+5]]+"-"+Nt[e[t+6]]+Nt[e[t+7]]+"-"+Nt[e[t+8]]+Nt[e[t+9]]+"-"+Nt[e[t+10]]+Nt[e[t+11]]+Nt[e[t+12]]+Nt[e[t+13]]+Nt[e[t+14]]+Nt[e[t+15]]).toLowerCase()}let Wd;const CT=new Uint8Array(16);function PT(){if(!Wd){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Wd=crypto.getRandomValues.bind(crypto)}return Wd(CT)}const TT=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Hy={randomUUID:TT};function RT(e,t,n){var s;e=e||{};const i=e.random??((s=e.rng)==null?void 0:s.call(e))??PT();if(i.length<16)throw new Error("Random bytes length must be >= 16");return i[6]=i[6]&15|64,i[8]=i[8]&63|128,_T(i)}function OT(e,t,n){return Hy.randomUUID&&!e?Hy.randomUUID():RT(e)}const Us=typeof window<"u"?window:{base44SharedInstances:{}};function NT(e,t){return Us.base44SharedInstances||(Us.base44SharedInstances={}),Us.base44SharedInstances[e]||(Us.base44SharedInstances[e]={instance:t()}),Us.base44SharedInstances[e].instance}const AT="__user_heartbeat_event__",IT="__initialization_event__",LT="__session_duration_event__",Wy="analytics-enable",qy="base44_analytics_session_id",DT={enabled:!0,maxQueueSize:1e3,throttleTime:1e3,batchSize:30,heartBeatInterval:60*1e3},MT="analytics",He=NT(MT,()=>({requestsQueue:[],isProcessing:!1,isHeartBeatProcessing:!1,wasInitializationTracked:!1,sessionContext:null,sessionStartTime:null,fallbackSessionId:null,config:{...DT,...HT()}})),jT=({axiosClient:e,serverUrl:t,appId:n,userAuthModule:i,enabled:s})=>{var a;const{maxQueueSize:u,throttleTime:c,batchSize:f}=He.config;if(!s||!(!((a=He.config)===null||a===void 0)&&a.enabled)||ET)return{track:()=>{},cleanup:()=>{}};let h;const m=`${t}/api/apps/${n}/analytics/track/batch`,g=async A=>{await e.request({method:"POST",url:`/apps/${n}/analytics/track/batch`,data:{events:A}})},w=A=>{try{const U=JSON.stringify({events:A}),L=new Blob([U],{type:"application/json"});return typeof navigator>"u"||U.length>6e4||!navigator.sendBeacon(m,L)}catch{return!1}},v=async(A,U={})=>
211{if(A.length===0)return;const L=await VT(i),W=A.map($T(L));try{(!U.isBeacon||!w(W))&&await g(W)}catch{}},E=()=>{Yy(v,{throttleTime:c,batchSize:f})},k=A=>{if(He.requestsQueue.length>=u)return;const U=BT();He.requestsQueue.push({...A,...U}),E()},S=()=>{Yy(v,{throttleTime:c,batchSize:f}),h=Ky(k),zT()},x=()=>{Qy(),h==null||h(),UT(k);const A=He.requestsQueue.splice(0);v(A,{isBeacon:!0})},R=()=>{typeof window>"u"||(document.visibilityState==="hidden"?x():document.visibilityState==="visible"&&S())},T=()=>{Qy(),h==null||h(),typeof window<"u"&&window.removeEventListener("visibilitychange",R)};return E(),h=Ky(k),FT(k),typeof window<"u"&&window.addEventListener("visibilitychange",R),{track:k,cleanup:T}};function Qy(){He.isProcessing=!1}async function Yy(e,t){if(He.isProcessing)return;He.isProcessing=!0;const{throttleTime:n=1e3,batchSize:i=30}=t??{};for(;He.isProcessing&&He.requestsQueue.length>0;){const s=He.requestsQueue.splice(0,i);s.length&&await e(s),await new Promise(a=>setTimeout(a,n))}He.isProcessing=!1}function Ky(e){var t;if(typeof window>"u"||He.isHeartBeatProcessing||((t=He.config.heartBeatInterval)!==null&&t!==void 0?t:0)<10)return()=>{};He.isHeartBeatProcessing=!0;const n=setInterval(()=>{e({eventName:AT})},He.config.heartBeatInterval);return()=>{clearInterval(n),He.isHeartBeatProcessing=!1}}function FT(e){typeof window>"u"||He.wasInitializationTracked||(He.wasInitializationTracked=!0,e({eventName:IT,properties:{referrer:document==null?void 0:document.referrer}}))}function zT(){typeof window>"u"||He.sessionStartTime!==null||(He.sessionStartTime=new Date().toISOString())}function UT(e){if(typeof window>"u"||He.sessionStartTime===null)return;const t=new Date().getTime()-new Date(He.sessionStartTime).getTime();He.sessionStartTime=null,e({eventName:LT,properties:{sessionDuration:t}})}function BT(){var e,t;return{timestamp:new Date().toISOString(),pageUrl:typeof window<"u"&&(t=(e=window.location)===null||e===void 0?void 0:e.pathname)!==null&&t!==void 0?t:null}}function $T(e){return t=>({event_name:t.eventName,properties:t.properties,timestamp:t.timestamp,page_url:t.pageUrl,...e})}let Ks=null;function Gy(){He.sessionContext=null,Ks=null}async function VT(e){if(!He.sessionContext){if(!e.hasToken())return{user_id:null,session_id:Eu()};if(!Ks){const i=Eu();Ks=e.me().then(s=>({user_id:s.id,session_id:i})).catch(()=>({user_id:null,session_id:i}))}const t=Ks,n=await t;return Ks===t&&(He.sessionContext=n),n}return He.sessionContext}function HT(){if(typeof window>"u"||!window.location)return;const t=new URLSearchParams(window.location.search).get(Wy);if(t==null||!t.length)return;const n=new URLSearchParams(window.location.search);n.delete(Wy);const i=window.location.pathname+(n.toString()?"?"+n.toString():"");return window.history.replaceState({},"",i),{enabled:t==="true"}}function Xy(){var e;return(e=He.fallbackSessionId)!==null&&e!==void 0?e:He.fallbackSessionId=nx()}function Eu(){if(typeof window>"u")return Xy();try{const e=localStorage.getItem(qy);if(!e){const t=nx();return localStorage.setItem(qy,t),t}return e}catch{return Xy()}}class WT extends Error{constructor(t,n,i,s,a){super(t),this.name="Base44Error",this.status=n,this.code=i,this.data=s,this.originalError=a}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code,data:this.data}}}function Oo({baseURL:e,headers:t={},token:n,interceptResponses:i=!0,onError:s}){const a=dt.create({baseURL:e,headers:{"Content-Type":"application/json",Accept:"application/json",...t}});return n&&(a.defaults.headers.common.Authorization=`Bearer ${n}`),a.interceptors.request.use(u=>{typeof window<"u"&&(window.location&&u.headers.set("X-Origin-URL",window.location.href),u.headers.get("Authorization")||u.headers.set("X-Base44-Anonymous-Id",Eu()));const c=OT();if(u.requestId=c,Vy)try{window.parent.postMessage({type:"api-request-start",requestId:c,data:{url:e+u.url,method:u.method,body:u.data instanceof FormData?"[FormData object]":u.data}},"*")}catch{}return u}),i&&a.interceptors.response.use(u=>{var c;const f=(c=u.config)===null||c===void 0?void 0:c.requestId;try{Vy&&f&&window.parent.postMessage({type:"api-request-end",requestId:f,data:{statusCode:u.status,response:u.data}},"*")}catch{}return u.data},u=>{var c,f,h,m,g,w,v,E,k,S,x,R;const T=(c=u.response)===null||c===void 0?void 0:c.data,A=((f=T==null?void 0:T.error)===null||f===void 0?void 0:f.message)||(T==null?void 0:T.message)||(T==null?void 0:T.detail)||u.message,U=new WT(A,(h=u.response)===null||h===void 0?void 0:h.status,(S=(w=(g=(m=T==null?void 0:T.error)===null||m===void 0?void 0:m.code)!==null&&g!==void 0?g:T==null?void 0:T.code)!==null&&w!==void 0?w:(k=(E=(v=u.response)===null||v===void 0?void 0:v.headers)===null||E===void 0?void 0:E.get)===null||k===void 0?void 0:k.call(E,"x-base44-connector-error"))!==null&&S!==void 0?S:(R=(x=u.response)===null||x===void 0?void 0:x.headers)===null||R===void 0?void 0:R["x-base44-connector-error"],T,u);return s==null||s(U),Promise.reject(U)}),a}function Jy(e){const{axios:t,appId:n,getSocket:i}=e;return new Proxy({},{get(s,a){if(!(typeof a!="string"||a==="then"||a.startsWith("_")))return YT(t,n,a,i)}})}function qT(e){var t;try{const n=JSON.parse(e);return{type:n.type,data:n.data,id:n.id||((t=n.data)===null||t===void 0?void 0:t.id),timestamp:n.timestamp||new Date().toISOString()}}catch(n){return console.warn("[Base44 SDK] Failed to parse realtime message:",n),null}}const QT=100;function Zy(e){return typeof e=="object"&&e!==null}function YT(e,t,n,i){const s=`/apps/${t}/entities/${n}`,a=f=>Array.isArray(f)?f.join(","):f,u=(f,h,m,g,w)=>{const v={};return w&&(v.q=JSON.stringify(w)),f&&(v.sort=f),h&&(v.limit=h),m&&(v.skip=m),g&&(v.fields=a(g)),e.get(s,{params:v})},c=(f,h)=>{const m={};return h&&(m.q=JSON.stringify(h)),m.limit=f.limit||QT,f.cursor&&(m.cursor=f.cursor),"distinct"in f?m.distinct=f.distinct:(f.sort&&(m.sort=f.
211sort),f.fields&&(m.fields=a(f.fields))),e.get(`${s}/v2/list`,{params:m})};return{async list(...f){const[h,m,g,w]=f;return Zy(h)?c(h):u(h,m,g,w)},async filter(f,...h){const[m,g,w,v]=h;return Zy(m)?c(m,f):u(m,g,w,v,f)},async get(f){return e.get(`${s}/${f}`)},async create(f){return e.post(s,f)},async update(f,h){return e.put(`${s}/${f}`,h)},async delete(f){return e.delete(`${s}/${f}`)},async deleteMany(f){return e.delete(s,{data:f})},async bulkCreate(f){return e.post(`${s}/bulk`,f)},async updateMany(f,h){return e.patch(`${s}/update-many`,{query:f,data:h})},async count(f){const h={};return f&&(h.q=JSON.stringify(f)),(await e.get(`${s}/count`,{params:h})).count},async aggregate(f){return e.post(`${s}/aggregate`,f)},async upsert(f,h){return e.post(`${s}/upsert`,{records:f,key:h.key})},async bulkUpdate(f){return e.put(`${s}/bulk`,f)},async importEntities(f){const h=new FormData;return h.append("file",f,f.name),e.post(`${s}/import`,h,{headers:{"Content-Type":"multipart/form-data"}})},subscribe(f){const h=`entities:${t}:${n}`;return i().subscribeToRoom(h,{update_model:w=>{var v;const E=qT(w.data);if(E){E.type!=="delete"&&(!((v=E.data)===null||v===void 0)&&v._oversize)&&console.error(`[Base44 SDK] Realtime broadcast for ${n}#${E.id} was oversize and got slimmed for transport. Fields >10 KB are empty and the rest of the record may be a stub. Call \`entities.${n}.get("${E.id}")\` to fetch the full record.`);try{f(E)}catch(k){console.error("[Base44 SDK] Subscription callback error:",k)}}}})}}}function KT(e,t){return{async call(n,i,s){if(!(n!=null&&n.trim()))throw new Error("Integration slug is required and cannot be empty");if(!(i!=null&&i.trim()))throw new Error("Operation ID is required and cannot be empty");const{pathParams:a,queryParams:u,...c}=s??{},f={...c,...a&&{path_params:a},...u&&{query_params:u}};return await e.post(`/apps/${t}/integrations/custom/${n}/${i}`,f)}}}function ev(e,t){const n=KT(e,t);return new Proxy({},{get(i,s){if(!(typeof s!="string"||s==="then"||s.startsWith("_")))return s==="custom"?n:new Proxy({},{get(a,u){if(!(typeof u!="string"||u==="then"||u.startsWith("_")))return async c=>{if(typeof c=="string")throw new Error(`Integration ${u} must receive an object with named parameters, received: ${c}`);let f,h;return c instanceof FormData||c&&Object.values(c).some(m=>m instanceof File)?(f=new FormData,Object.keys(c).forEach(m=>{c[m]instanceof File?f.append(m,c[m],c[m].name):typeof c[m]=="object"&&c[m]!==null?f.append(m,JSON.stringify(c[m])):f.append(m,c[m])}),h="multipart/form-data"):(f=c,h="application/json"),s==="Core"?e.post(`/apps/${t}/integration-endpoints/Core/${u}`,f||c,{headers:{"Content-Type":h}}):e.post(`/apps/${t}/integration-endpoints/installable/${s}/integration-endpoints/${u}`,f||c,{headers:{"Content-Type":h}})}}})}})}function GT(){return typeof window>"u"?!1:window!==window.parent}function XT(e,t,n){const a=Math.round(window.screenX+(window.outerWidth-500)/2),u=Math.round(window.screenY+(window.outerHeight-600)/2),c=window.open(e,"base44_auth",`width=500,height=600,left=${a},top=${u},resizable=yes,scrollbars=yes`);if(!c)return;const f=()=>{window.removeEventListener("message",h),clearInterval(m),c.closed||c.close()},h=g=>{var w;if(g.origin!==n||g.source!==c||!(!((w=g.data)===null||w===void 0)&&w.access_token))return;f();const v=new URL(t),{access_token:E,is_new_user:k}=g.data;v.searchParams.set("access_token",E),k!=null&&v.searchParams.set("is_new_user",String(k)),window.location.href=v.toString()},m=setInterval(()=>{c.closed&&f()},500);window.addEventListener("message",h)}function JT(e,t,n,i){let s=null;const a=()=>{s=null};let u=!!i.token;return{hasToken(){return u},async me(){const c=s??e.get(`/apps/${n}/entities/User/me`).finally(()=>{s===c&&(s=null)});return s=c,c},async updateMe(c){return e.put(`/apps/${n}/entities/User/me`,c)},redirectToLogin(c){if(typeof window>"u")throw new Error("Login method can only be used in a browser environment");const f=c?new URL(c,window.location.origin).toString():window.location.href,h=`${i.appBaseUrl}/login?from_url=${encodeURIComponent(f)}`;window.location.href=h},loginWithProvider(c,f="/"){const h=new URL(f,window.location.origin).toString(),m=`app_id=${n}&from_url=${encodeURIComponent(h)}`;let g;c==="sso"?g=`/apps/${n}/auth/sso/login`:g=`/apps/auth${c==="google"?"":`/${c}`}/login`;const w=`${i.appBaseUrl}/api${g}?${m}`;if(GT()){const v=`${w}&popup_origin=${encodeURIComponent(window.location.origin)}`;return XT(v,h,window.location.origin)}window.location.href=w},logout(c){if(delete e.defaults.headers.common.Authorization,a(),Gy(),u=!1,typeof window<"u"){if(window.localStorage)try{window.localStorage.removeItem("base44_access_token"),window.localStorage.removeItem("token")}catch(m){console.error("Failed to remove token from localStorage:",m)}const f=c||window.location.href,h=`${i.appBaseUrl}/api/apps/auth/logout?from_url=${encodeURIComponent(f)}`;window.location.href=h}},setToken(c,f=!0){if(c&&(a(),Gy(),u=!0,e.defaults.headers.common.Authorization=`Bearer ${c}`,t.defaults.headers.common.Authorization=`Bearer ${c}`,f&&typeof window<"u"&&window.localStorage))try{window.localStorage.setItem("base44_access_token",c),window.localStorage.setItem("token",c)}catch(h){console.error("Failed to save token to localStorage:",h)}},async loginViaEmailPassword(c,f,h){var m;try{const g=await e.post(`/apps/${n}/auth/login`,{email:c,password:f,...h&&{turnstile_token:h}}),{access_token:w,user:v}=g;return w&&this.setToken(w),{access_token:w,user:v}}catch(g){throw((m=g.response)===null||m===void 0?void 0:m.status)===401&&await this.logout(),g}},async isAuthenticated(){try{return await this.me(),!0}catch{return!1}},inviteUser(c,f){return e.post(`/apps/${n}/users/invite-user`,{user_email:c,role:f})},register(c){return e.post(`/apps/${n}/auth/register`,c)},verifyOtp({email:c,otpCode:f}){return e.post(`/apps/${n}/auth/verify-otp`,{email:c,otp_code:f})},resendOtp(c){return e.post(`/apps/${n}/auth/resend-otp`,{email:c})},resetPasswordRequest(c){return e.post(`/apps/${n}/auth/reset-password-request`,{email:c})},resetPassword({resetToken:c,newPassword:f}){return e.post(`/apps/${n}/auth/reset-password`,{reset_token:c,new_password:f})},changePassword({userId:c,currentPassword:f,newPassword:h}){return e.post(`/apps/${n}/auth/change-password`,{user_id:c,current_password:f,new_password:h})}}}function ZT(e,t){return{async getAccessToken(n){const i=`/apps/${t}/auth/sso/accesstoken/${n}`;return e.get(i)},async getIdToken(n){const i=`/apps/${t}/auth/sso/idtoken/${n}`;return e.get(i)}}}const eR=new Set(["GET","POST","PUT","PATCH","DELETE","HEAD"]);
211function tR(e,t){return{async getAccessToken(n){if(!n||typeof n!="string")throw new Error("Integration type is required and must be a string");return(await e.get(`/apps/${t}/external-auth/tokens/${encodeURIComponent(n)}`)).access_token},async getConnection(n){var i;if(!n||typeof n!="string")throw new Error("Integration type is required and must be a string");const a=await e.get(`/apps/${t}/external-auth/tokens/${encodeURIComponent(n)}`);return{accessToken:a.access_token,connectionConfig:(i=a.connection_config)!==null&&i!==void 0?i:null}},async getWorkspaceConnection(n){var i;if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");const a=await e.get(`/apps/${t}/external-auth/tokens/connectors/${encodeURIComponent(n)}`);return{accessToken:a.access_token,connectionConfig:(i=a.connection_config)!==null&&i!==void 0?i:null}},async getCurrentAppUserAccessToken(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");return(await e.get(`/apps/${t}/app-user-auth/connectors/${encodeURIComponent(n)}/token`)).access_token},async getCurrentAppUserConnection(n){var i;if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");const a=await e.get(`/apps/${t}/app-user-auth/connectors/${encodeURIComponent(n)}/token`);return{accessToken:a.access_token,connectionConfig:(i=a.connection_config)!==null&&i!==void 0?i:null}},async callApi(n,i){return rx(n,"Integration type"),nR(e,`/apps/${t}/connectors/${encodeURIComponent(n)}/call`,i)}}}function rx(e,t){if(!e||typeof e!="string")throw new Error(`${t} is required and must be a string`)}async function nR(e,t,n){var i,s,a,u,c,f,h,m,g;if(!n||typeof n!="object")throw new Error("Request is required and must be an object");rx(n.path,"Request path");const w=(i=n.method)!==null&&i!==void 0?i:"GET";if(!eR.has(w))throw new Error("Request method must be one of GET, POST, PUT, PATCH, DELETE, or HEAD");const E=await e.post(t,{method:w,...n.host==null?{}:{host:n.host},path:n.path,query:(s=n.query)!==null&&s!==void 0?s:{},headers:(a=n.headers)!==null&&a!==void 0?a:{},body:(u=n.body)!==null&&u!==void 0?u:null});return{success:E.success,phase:E.phase,status:(c=E.status_code)!==null&&c!==void 0?c:null,data:E.data,dataBase64:(f=E.data_base64)!==null&&f!==void 0?f:null,contentType:(h=E.content_type)!==null&&h!==void 0?h:null,headers:(m=E.headers)!==null&&m!==void 0?m:{},creditsCharged:(g=E.credits_charged)!==null&&g!==void 0?g:0}}function rR(e,t){return{async connectAppUser(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");return(await e.post(`/apps/${t}/app-user-auth/connectors/${encodeURIComponent(n)}/initiate`)).redirect_url},async disconnectAppUser(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");await e.delete(`/apps/${t}/app-user-auth/connectors/${encodeURIComponent(n)}`)}}}function ii(e={}){const{storageKey:t="base44_access_token",paramName:n="access_token",saveToStorage:i=!0,removeFromUrl:s=!0}=e;let a=null;if(typeof window<"u"&&window.location)try{const u=new URLSearchParams(window.location.search);if(a=u.get(n),a){if(i&&iR(a,{storageKey:t}),s){u.delete(n);const c=`${window.location.pathname}${u.toString()?`?${u.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,c)}return a}}catch(u){console.error("Error retrieving token from URL:",u)}if(typeof window<"u"&&window.localStorage)try{return a=window.localStorage.getItem(t),a}catch(u){console.error("Error retrieving token from local storage:",u)}return null}function iR(e,t){const{storageKey:n="base44_access_token"}=t;if(typeof window>"u"||!window.localStorage||!e)return!1;try{return window.localStorage.setItem(n,e),window.localStorage.setItem("token",e),!0}catch(i){return console.error("Error saving token to local storage:",i),!1}}function oR({axios:e,serviceRoleAxios:t,appId:n,serverUrl:i,functionsVersion:s,platformHeaders:a}){const u=new Headers(a),c=f=>{const h=f.defaults.headers.common.Authorization;return typeof h=="string"&&h.startsWith("Bearer ")?h:null};return async function(h,m={}){sR(h);const{fetch:g=fetch,...w}=m,v=new Headers(m.headers),E=(k,S)=>{S&&!v.has(k)&&v.set(k,S)};return E("Authorization",c(e)),E("Base44-Service-Authorization",c(t)),E("Base44-App-Id",n),E("Base44-Api-Url",i),E("Base44-Functions-Version",s),E("Base44-State",u.get("Base44-State")),E("X-Data-Env",u.get("X-Data-Env")),g(h,{...w,headers:v})}}function sR(e){if(typeof e!="string"||e==="")throw new Error("fetchWithAuth() requires a path, such as '/api/orders'.");const t=e.replace(/[\t\n\r]/g,"").replace(/^[\x00-\x20]+/,"");if(!t.startsWith("/")||t.startsWith("//")||t.startsWith("/\\"))throw new Error(`fetchWithAuth() only sends requests to your app's own origin, so your app's credentials never reach a third party. "${e}" is not a path on it — pass a relative path such as '/api/orders'. Use base44.functions.fetch() to call a Base44 backend function, or plain fetch() for another origin.`)}function tv(e,t,n){const i=(a,u)=>a?`${String(a).replace(/\/$/,"")}${u}`:u,s=a=>{const u=new Headers;if(n!=null&&n.getAuthHeaders){const c=n.getAuthHeaders();
211Object.entries(c).forEach(([f,h])=>{h!=null&&u.set(f,String(h))})}return a&&new Headers(a).forEach((c,f)=>{u.set(f,c)}),u};return{async invoke(a,u){if(typeof u=="string")throw new Error(`Function ${a} must receive an object with named parameters, received: ${u}`);let c,f;return u instanceof FormData||u&&Object.values(u).some(h=>h instanceof File)?(c=new FormData,Object.keys(u).forEach(h=>{u[h]instanceof File?c.append(h,u[h],u[h].name):typeof u[h]=="object"&&u[h]!==null?c.append(h,JSON.stringify(u[h])):c.append(h,u[h])}),f="multipart/form-data"):(c=u,f="application/json"),e.post(`/apps/${t}/functions/${a}`,c||u,{headers:{"Content-Type":f}})},async fetch(a,u={}){const f=`/functions${a.startsWith("/")?a:`/${a}`}`,h=s(u.headers),m={...u,headers:h};return await fetch(i(n==null?void 0:n.baseURL,f),m)}}}function nv({axios:e,getSocket:t,appId:n,serverUrl:i,token:s}){const a=`/apps/${n}/agents`,u={},c=()=>e.get(`${a}/conversations`),f=k=>e.get(`${a}/conversations/${k}`);return{getConversations:c,getConversation:f,listConversations:k=>e.get(`${a}/conversations`,{params:k}),createConversation:k=>e.post(`${a}/conversations`,k),addMessage:async(k,S)=>e.post(`${a}/conversations/v2/${k.id}/messages`,S),subscribeToConversation:(k,S)=>{const x=`/agent-conversations/${k}`,R=t(),T=f(k).then(A=>(u[k]=A,A));return R.subscribeToRoom(x,{connect:()=>{},update_model:async({data:A})=>{const U=JSON.parse(A);if(U._message){await T;const L=U._message,W=u[k];if(W){const M=W.messages||[],K=M.findIndex(Q=>Q.id===L.id),H=K!==-1?M.map((Q,G)=>G===K?L:Q):[...M,L];u[k]={...W,messages:H},S==null||S(u[k])}}}})},getWhatsAppConnectURL:k=>{const S=`${i}/api/apps/${n}/agents/${encodeURIComponent(k)}/whatsapp`,x=s??ii();return x?`${S}?token=${x}`:S},getTelegramConnectURL:k=>{const S=`${i}/api/apps/${n}/agents/${encodeURIComponent(k)}/telegram`,x=s??ii();return x?`${S}?token=${x}`:S}}}const rv={openai:"openai",typesafe:"typesafe"};function iv({serverUrl:e,token:t,appId:n,headers:i={}}){return{connection:({provider:a="openai"}={})=>{var u;if(!Object.prototype.hasOwnProperty.call(rv,a))throw new Error(`Unsupported AI Gateway provider: ${a}`);const c=rv[a];return{baseURL:`${e}/api/apps/${n}/ai/${c}/v1`,token:(u=t??ii())!==null&&u!==void 0?u:"",headers:{...i}}}}}function ov(e,t){const n=`/app-logs/${t}`;return{async logUserInApp(i){await e.post(`${n}/log-user-in-app/${i}`)},async fetchLogs(i={}){return await e.get(n,{params:i})},async getStats(i={}){return await e.get(`${n}/stats`,{params:i})}}}function aR(e,t){return{async getPublicSettings(){return e.get(`/apps/public/prod/public-settings/by-id/${t}`)}}}function lR(e,t){return{async inviteUser(n,i){if(i!=="user"&&i!=="admin")throw new Error(`Invalid role: "${i}". Role must be either "user" or "admin".`);return await e.post(`/apps/${t}/runtime/users/invite-user`,{user_email:n,role:i})}}}const ir=Object.create(null);ir.open="0";ir.close="1";ir.ping="2";ir.pong="3";ir.message="4";ir.upgrade="5";ir.noop="6";const lu=Object.create(null);Object.keys(ir).forEach(e=>{lu[ir[e]]=e});const Hf={type:"error",data:"parser error"},ix=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",ox=typeof ArrayBuffer=="function",sx=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Nh=({type:e,data:t},n,i)=>ix&&t instanceof Blob?n?i(t):sv(t,i):ox&&(t instanceof ArrayBuffer||sx(t))?n?i(t):sv(new Blob([t]),i):i(ir[e]+(t||"")),sv=(e,t)=>{const n=new FileReader;return n.onload=function(){const i=n.result.split(",")[1];t("b"+(i||""))},n.readAsDataURL(e)};function av(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let qd;function uR(e,t){if(ix&&e.data instanceof Blob)return e.data.arrayBuffer().then(av).then(t);if(ox&&(e.data instanceof ArrayBuffer||sx(e.data)))return t(av(e.data));Nh(e,!1,n=>{qd||(qd=new TextEncoder),t(qd.encode(n))})}const lv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Gs=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<lv.length;e++)Gs[lv.charCodeAt(e)]=e;const cR=e=>{let t=e.length*.75,n=e.length,i,s=0,a,u,c,f;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const h=new ArrayBuffer(t),m=new Uint8Array(h);for(i=0;i<n;i+=4)a=Gs[e.charCodeAt(i)],u=Gs[e.charCodeAt(i+1)],c=Gs[e.charCodeAt(i+2)],f=Gs[e.charCodeAt(i+3)],m[s++]=a<<2|u>>4,m[s++]=(u&15)<<4|c>>2,m[s++]=(c&3)<<6|f&63;return h},dR=typeof ArrayBuffer=="function",Ah=(e,t)=>{if(typeof e!="string")return{type:"message",data:ax(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:fR(e.substring(1),t)}:lu[n]?e.length>1?{type:lu[n],data:e.substring(1)}:{type:lu[n]}:Hf},fR=(e,t)=>{if(dR){const n=cR(e);return ax(n,t)}else return{base64:!0,data:e}},ax=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},lx="�",hR=(e,t)=>{const n=e.length,i=new Array(n);let s=0;e.forEach((a,u)=>{Nh(a,!1,c=>{i[u]=c,++s===n&&t(i.join(lx))})})},pR=(e,t)=>{const n=e.split(lx),i=[];for(let s=0;s<n.length;s++){const a=Ah(n[s],t);
vendor: 3,828 bytes, line 211
211if(i.push(a),a.type==="error")break}return i};function mR(){return new TransformStream({transform(e,t){uR(e,n=>{const i=n.length;let s;if(i<126)s=new Uint8Array(1),new DataView(s.buffer).setUint8(0,i);else if(i<65536){s=new Uint8Array(3);const a=new DataView(s.buffer);a.setUint8(0,126),a.setUint16(1,i)}else{s=new Uint8Array(9);const a=new DataView(s.buffer);a.setUint8(0,127),a.setBigUint64(1,BigInt(i))}e.data&&typeof e.data!="string"&&(s[0]|=128),t.enqueue(s),t.enqueue(n)})}})}let Qd;function Hl(e){return e.reduce((t,n)=>t+n.length,0)}function Wl(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let i=0;for(let s=0;s<t;s++)n[s]=e[0][i++],i===e[0].length&&(e.shift(),i=0);return e.length&&i<e[0].length&&(e[0]=e[0].slice(i)),n}function gR(e,t){Qd||(Qd=new TextDecoder);const n=[];let i=0,s=-1,a=!1;return new TransformStream({transform(u,c){for(n.push(u);;){if(i===0){if(Hl(n)<1)break;const f=Wl(n,1);a=(f[0]&128)===128,s=f[0]&127,s<126?i=3:s===126?i=1:i=2}else if(i===1){if(Hl(n)<2)break;const f=Wl(n,2);s=new DataView(f.buffer,f.byteOffset,f.length).getUint16(0),i=3}else if(i===2){if(Hl(n)<8)break;const f=Wl(n,8),h=new DataView(f.buffer,f.byteOffset,f.length),m=h.getUint32(0);if(m>Math.pow(2,21)-1){c.enqueue(Hf);break}s=m*Math.pow(2,32)+h.getUint32(4),i=3}else{if(Hl(n)<s)break;const f=Wl(n,s);c.enqueue(Ah(a?f:Qd.decode(f),t)),i=0}if(s===0||s>e){c.enqueue(Hf);break}}}})}const ux=4;function mt(e){if(e)return yR(e)}function yR(e){for(var t in mt.prototype)e[t]=mt.prototype[t];return e}mt.prototype.on=mt.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};mt.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};mt.prototype.off=mt.prototype.removeListener=mt.prototype.removeAllListeners=mt.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var i,s=0;s<n.length;s++)if(i=n[s],i===t||i.fn===t){n.splice(s,1);break}return n.length===0&&delete this._callbacks["$"+e],this};mt.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(n){n=n.slice(0);for(var i=0,s=n.length;i<s;++i)n[i].apply(this,t)}return this};mt.prototype.emitReserved=mt.prototype.emit;mt.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};mt.prototype.hasListeners=function(e){return!!this.listeners(e).length};const Du=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),Pn=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),vR="arraybuffer";function cx(e,...t){return t.reduce((n,i)=>(e.hasOwnProperty(i)&&(n[i]=e[i]),n),{})}const wR=Pn.setTimeout,xR=Pn.clearTimeout;function Mu(e,t){t.useNativeTimers?(e.setTimeoutFn=wR.bind(Pn),e.clearTimeoutFn=xR.bind(Pn)):(e.setTimeoutFn=Pn.setTimeout.bind(Pn),e.clearTimeoutFn=Pn.clearTimeout.bind(Pn))}const bR=1.33;function kR(e){return typeof e=="string"?SR(e):Math.ceil((e.byteLength||e.size)*bR)}function SR(e){let t=0,n=0;for(let i=0,s=e.length;i<s;i++)t=e.charCodeAt(i),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(i++,n+=4);return n}function dx(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function ER(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function _R(e){let t={},n=e.split("&");for(let i=0,s=n.length;i<s;i++){let a=n[i].split("=");
vendor: 6,261 bytes, line 211
211t[decodeURIComponent(a[0])]=decodeURIComponent(a[1])}return t}class CR extends Error{constructor(t,n,i){super(t),this.description=n,this.context=i,this.type="TransportError"}}class Ih extends mt{constructor(t){super(),this.writable=!1,Mu(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,i){return super.emitReserved("error",new CR(t,n,i)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=Ah(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=ER(t);return n.length?"?"+n:""}}class PR extends Ih{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let i=0;this._polling&&(i++,this.once("pollComplete",function(){--i||n()})),this.writable||(i++,this.once("drain",function(){--i||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=i=>{if(this.readyState==="opening"&&i.type==="open"&&this.onOpen(),i.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(i)};pR(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,hR(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=dx()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let fx=!1;try{fx=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const TR=fx;function RR(){}class OR extends PR{constructor(t){if(super(t),typeof location<"u"){const n=location.protocol==="https:";let i=location.port;i||(i=n?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||i!==t.port}}doWrite(t,n){const i=this.request({method:"POST",data:t});i.on("success",n),i.on("error",(s,a)=>{this.onError("xhr post error",s,a)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,i)=>{this.onError("xhr poll error",n,i)}),this.pollXhr=t}}class rr extends mt{constructor(t,n,i){super(),this.createRequest=t,Mu(this,i),this._opts=i,this._method=i.method||"GET",this._uri=n,this._data=i.data!==void 0?i.data:null,this._create()}_create(){var t;const n=cx(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const i=this._xhr=this.createRequest(n);try{i.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){i.setDisableHeaderCheck&&i.setDisableHeaderCheck(!0);for(let s in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(s)&&i.setRequestHeader(s,this._opts.extraHeaders[s])}}catch{}if(this._method==="POST")try{i.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{i.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(i),"withCredentials"in i&&(i.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(i.timeout=this._opts.requestTimeout),i.onreadystatechange=()=>{var s;i.readyState===3&&((s=this._opts.cookieJar)===null||s===void 0||s.parseCookies(i.getResponseHeader("set-cookie"))),i.readyState===4&&(i.status===200||i.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof i.status=="number"?i.status:0)},0))},i.send(this._data)}catch(s){this.setTimeoutFn(()=>{this._onError(s)},0);return}typeof document<"u"&&(this._index=rr.requestsCount++,rr.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=RR,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete rr.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}rr.requestsCount=0;rr.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",uv);else if(typeof addEventListener=="function"){const e="onpagehide"in Pn?"pagehide":"unload";addEventListener(e,uv,!1)}}function uv(){for(let e in rr.requests)rr.requests.hasOwnProperty(e)&&rr.requests[e].abort()}const NR=(function(){const e=hx({xdomain:!1});return e&&e.responseType!==null})();class AR extends OR{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=NR&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new rr(hx,this.uri(),t)}}function hx(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||TR))return new XMLHttpRequest}catch{}if(!t)try{return new Pn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const px=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class IR extends Ih{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,i=px?{}:cx(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(i.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,i)}catch(s){return this.emitReserved("error",s)}
vendor: 15,989 bytes, line 211
211this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const i=t[n],s=n===t.length-1;Nh(i,this.supportsBinary,a=>{try{this.doWrite(i,a)}catch{}s&&Du(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=dx()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const Yd=Pn.WebSocket||Pn.MozWebSocket;class LR extends IR{createSocket(t,n,i){return px?new Yd(t,n,i):n?new Yd(t,n):new Yd(t)}doWrite(t,n){this.ws.send(n)}}class DR extends Ih{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const n=gR(Number.MAX_SAFE_INTEGER,this.socket.binaryType),i=t.readable.pipeThrough(n).getReader(),s=mR();s.readable.pipeTo(t.writable),this._writer=s.writable.getWriter();const a=()=>{i.read().then(({done:c,value:f})=>{c||(this.onPacket(f),a())}).catch(c=>{})};a();const u={type:"open"};this.query.sid&&(u.data=`{"sid":"${this.query.sid}"}`),this._writer.write(u).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const i=t[n],s=n===t.length-1;this._writer.write(i).then(()=>{s&&Du(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const MR={websocket:LR,webtransport:DR,polling:AR},jR=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,FR=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Wf(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),i=e.indexOf("]");n!=-1&&i!=-1&&(e=e.substring(0,n)+e.substring(n,i).replace(/:/g,";")+e.substring(i,e.length));let s=jR.exec(e||""),a={},u=14;for(;u--;)a[FR[u]]=s[u]||"";return n!=-1&&i!=-1&&(a.source=t,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a.pathNames=zR(a,a.path),a.queryKey=UR(a,a.query),a}function zR(e,t){const n=/\/{2,9}/g,i=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&i.splice(0,1),t.slice(-1)=="/"&&i.splice(i.length-1,1),i}function UR(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(i,s,a){s&&(n[s]=a)}),n}const qf=typeof addEventListener=="function"&&typeof removeEventListener=="function",uu=[];qf&&addEventListener("offline",()=>{uu.forEach(e=>e())},!1);class ai extends mt{constructor(t,n){if(super(),this.binaryType=vR,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){const i=Wf(t);n.hostname=i.host,n.secure=i.protocol==="https"||i.protocol==="wss",n.port=i.port,i.query&&(n.query=i.query)}else n.host&&(n.hostname=Wf(n.host).host);Mu(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(i=>{const s=i.prototype.name;this.transports.push(s),this._transportsByName[s]=i}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=_R(this.opts.query)),qf&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},uu.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=ux,n.transport=t,this.id&&(n.sid=this.id);const i=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](i)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&ai.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",ai.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=t.data,this._onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let i=0;i<this.writeBuffer.length;i++){const s=this.writeBuffer[i].data;if(s&&(n+=kR(s)),i>0&&n>this._maxPayload)return this.writeBuffer.slice(0,i);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,Du(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,i){return this._sendPacket("message",t,n,i),this}send(t,n,i){return this._sendPacket("message",t,n,i),this}_sendPacket(t,n,i,s){if(typeof n=="function"&&(s=n,n=void 0),typeof i=="function"&&(s=i,i=null),this.readyState==="closing"||this.readyState==="closed")return;i=i||{},i.compress=i.compress!==!1;const a={type:t,data:n,options:i};this.emitReserved("packetCreate",a),this.writeBuffer.push(a),s&&this.once("flush",s),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},i=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?i():t()}):this.upgrading?i():t()),this}_onError(t){if(ai.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),qf&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const i=uu.indexOf(this._offlineEventListener);i!==-1&&uu.splice(i,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}ai.protocol=ux;class BR extends ai{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),i=!1;ai.priorWebsocketSuccess=!1;const s=()=>{i||(n.send([{type:"ping",data:"probe"}]),n.once("packet",g=>{if(!i)if(g.type==="pong"&&g.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;ai.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{i||this.readyState!=="closed"&&(m(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const w=new Error("probe error");w.transport=n.name,this.emitReserved("upgradeError",w)}}))};function a(){i||(i=!0,m(),n.close(),n=null)}const u=g=>{const w=new Error("probe error: "+g);w.transport=n.name,a(),this.emitReserved("upgradeError",w)};function c(){u("transport closed")}function f(){u("socket closed")}function h(g){n&&g.name!==n.name&&a()}const m=()=>{n.removeListener("open",s),n.removeListener("error",u),n.removeListener("close",c),this.off("close",f),this.off("upgrading",h)};n.once("open",s),n.once("error",u),n.once("close",c),this.once("close",f),this.once("upgrading",h),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{i||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let i=0;i<t.length;i++)~this.transports.indexOf(t[i])&&n.push(t[i]);return n}}let $R=class extends BR{constructor(t,n={}){const i=typeof t=="object"?t:n;(!i.transports||i.transports&&typeof i.transports[0]=="string")&&(i.transports=(i.transports||["polling","websocket","webtransport"]).map(s=>MR[s]).filter(s=>!!s)),super(t,i)}};function VR(e,t="",n){let i=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),i=Wf(e)),i.port||(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";const a=i.host.indexOf(":")!==-1?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+a+":"+i.port+t,i.href=i.protocol+"://"+a+(n&&n.port===i.port?"":":"+i.port),i}const HR=typeof ArrayBuffer=="function",WR=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,mx=Object.prototype.toString,qR=typeof Blob=="function"||typeof Blob<"u"&&mx.call(Blob)==="[object BlobConstructor]",QR=typeof File=="function"||typeof File<"u"&&mx.call(File)==="[object FileConstructor]";function Lh(e){return HR&&(e instanceof ArrayBuffer||WR(e))||qR&&e instanceof Blob||QR&&e instanceof File}function cu(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,i=e.length;n<i;n++)if(cu(e[n]))return!0;return!1}if(Lh(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return cu(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&cu(e[n]))return!0;return!1}function YR(e){const t=[],n=e.data,i=e;return i.data=Qf(n,t),i.attachments=t.length,{packet:i,buffers:t}}function Qf(e,t){if(!e)return e;if(Lh(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let i=0;i<e.length;i++)n[i]=Qf(e[i],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=Qf(e[i],t));return n}return e}function KR(e,t){return e.data=Yf(e.data,t),delete e.attachments,e}function Yf(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=Yf(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=Yf(e[n],t));return e}const GR=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var ze;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(ze||(ze={}));class XR{constructor(t){this.replacer=t}encode(t){return(t.type===ze.EVENT||t.type===ze.ACK)&&cu(t)?this.encodeAsBinary({type:t.type===ze.EVENT?ze.BINARY_EVENT:ze.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===ze.BINARY_EVENT||t.type===ze.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=YR(t),i=this.encodeAsString(n.packet),s=n.buffers;return s.unshift(i),s}}class Dh extends mt{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const i=n.type===ze.BINARY_EVENT;i||n.type===ze.BINARY_ACK?(n.type=i?ze.EVENT:ze.ACK,this.reconstructor=new JR(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(Lh(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const i={type:Number(t.charAt(0))};if(ze[i.type]===void 0)throw new Error("unknown packet type "+i.type);if(i.type===ze.BINARY_EVENT||i.type===ze.BINARY_ACK){const a=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const u=t.substring(a,n);if(u!=Number(u)||t.charAt(n)!=="-")throw new Error("Illegal attachments");i.attachments=Number(u)}if(t.charAt(n+1)==="/"){const a=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););i.nsp=t.substring(a,n)}else i.nsp="/";const s=t.charAt(n+1);if(s!==""&&Number(s)==s){const a=n+1;for(;++n;){const u=t.charAt(n);if(u==null||Number(u)!=u){--n;break}if(n===t.length)break}i.id=Number(t.substring(a,n+1))}
vendor: 4,501 bytes, line 211
211if(t.charAt(++n)){const a=this.tryParse(t.substr(n));if(Dh.isPayloadValid(i.type,a))i.data=a;else throw new Error("invalid payload")}return i}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case ze.CONNECT:return cv(n);case ze.DISCONNECT:return n===void 0;case ze.CONNECT_ERROR:return typeof n=="string"||cv(n);case ze.EVENT:case ze.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&GR.indexOf(n[0])===-1);case ze.ACK:case ze.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class JR{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=KR(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function cv(e){return Object.prototype.toString.call(e)==="[object Object]"}const ZR=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Dh,Encoder:XR,get PacketType(){return ze}},Symbol.toStringTag,{value:"Module"}));function Bn(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const e2=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class gx extends mt{constructor(t,n,i){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,i&&i.auth&&(this.auth=i.auth),this._opts=Object.assign({},i),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[Bn(t,"open",this.onopen.bind(this)),Bn(t,"packet",this.onpacket.bind(this)),Bn(t,"error",this.onerror.bind(this)),Bn(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){var i,s,a;if(e2.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const u={type:ze.EVENT,data:n};if(u.options={},u.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const m=this.ids++,g=n.pop();this._registerAckCallback(m,g),u.id=m}const c=(s=(i=this.io.engine)===null||i===void 0?void 0:i.transport)===null||s===void 0?void 0:s.writable,f=this.connected&&!(!((a=this.io.engine)===null||a===void 0)&&a._hasPingExpired());return this.flags.volatile&&!c||(f?(this.notifyOutgoingListeners(u),this.packet(u)):this.sendBuffer.push(u)),this.flags={},this}_registerAckCallback(t,n){var i;const s=(i=this.flags.timeout)!==null&&i!==void 0?i:this._opts.ackTimeout;if(s===void 0){this.acks[t]=n;return}const a=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let c=0;c<this.sendBuffer.length;c++)this.sendBuffer[c].id===t&&this.sendBuffer.splice(c,1);n.call(this,new Error("operation has timed out"))},s),u=(...c)=>{this.io.clearTimeoutFn(a),n.apply(this,c)};u.withError=!0,this.acks[t]=u}emitWithAck(t,...n){return new Promise((i,s)=>{const a=(u,c)=>u?s(u):i(c);a.withError=!0,n.push(a),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const i={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((s,...a)=>(this._queue[0],s!==null?i.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(s)):(this._queue.shift(),n&&n(null,...a)),i.pending=!1,this._drainQueue())),this._queue.push(i),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:ze.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}
vendor: 7,087 bytes, line 211
211_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(i=>String(i.id)===t)){const i=this.acks[t];delete this.acks[t],i.withError&&i.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case ze.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case ze.EVENT:case ze.BINARY_EVENT:this.onevent(t);break;case ze.ACK:case ze.BINARY_ACK:this.onack(t);break;case ze.DISCONNECT:this.ondisconnect();break;case ze.CONNECT_ERROR:this.destroy();const i=new Error(t.data.message);i.data=t.data.data,this.emitReserved("connect_error",i);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const i of n)i.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let i=!1;return function(...s){i||(i=!0,n.packet({type:ze.ACK,id:t,data:s}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:ze.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let i=0;i<n.length;i++)if(t===n[i])return n.splice(i,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let i=0;i<n.length;i++)if(t===n[i])return n.splice(i,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const i of n)i.apply(this,t.data)}}}function Jo(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Jo.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-n:e+n}return Math.min(e,this.max)|0};Jo.prototype.reset=function(){this.attempts=0};Jo.prototype.setMin=function(e){this.ms=e};Jo.prototype.setMax=function(e){this.max=e};Jo.prototype.setJitter=function(e){this.jitter=e};class Kf extends mt{constructor(t,n){var i;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,Mu(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((i=n.randomizationFactor)!==null&&i!==void 0?i:.5),this.backoff=new Jo({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const s=n.parser||ZR;this.encoder=new s.Encoder,this.decoder=new s.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new $R(this.uri,this.opts);const n=this.engine,i=this;this._readyState="opening",this.skipReconnect=!1;const s=Bn(n,"open",function(){i.onopen(),t&&t()}),a=c=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",c),t?t(c):this.maybeReconnectOnOpen()},u=Bn(n,"error",a);if(this._timeout!==!1){const c=this._timeout,f=this.setTimeoutFn(()=>{s(),a(new Error("timeout")),n.close()},c);this.opts.autoUnref&&f.unref(),this.subs.push(()=>{this.clearTimeoutFn(f)})}return this.subs.push(s),this.subs.push(u),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Bn(t,"ping",this.onping.bind(this)),Bn(t,"data",this.ondata.bind(this)),Bn(t,"error",this.onerror.bind(this)),Bn(t,"close",this.onclose.bind(this)),Bn(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){Du(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let i=this.nsps[t];return i?this._autoConnect&&!i.active&&i.connect():(i=new gx(this,t,n),this.nsps[t]=i),i}_destroy(t){const n=Object.keys(this.nsps);for(const i of n)if(this.nsps[i].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let i=0;i<n.length;i++)this.engine.write(n[i],t.options)}
211cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,n){var i;this.cleanup(),(i=this.engine)===null||i===void 0||i.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const i=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(s=>{s?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",s)):t.onreconnect()}))},n);this.opts.autoUnref&&i.unref(),this.subs.push(()=>{this.clearTimeoutFn(i)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Bs={};function du(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=VR(e,t.path||"/socket.io"),i=n.source,s=n.id,a=n.path,u=Bs[s]&&a in Bs[s].nsps,c=t.forceNew||t["force new connection"]||t.multiplex===!1||u;let f;return c?f=new Kf(i,t):(Bs[s]||(Bs[s]=new Kf(i,t)),f=Bs[s]),n.query&&!t.query&&(t.query=n.queryKey),f.socket(n.path,t)}Object.assign(du,{Manager:Kf,Socket:gx,io:du,connect:du});const t2=250;function dv(e,t){var n;const i=(n=e.token)!==null&&n!==void 0?n:ii(),s={app_id:e.appId};i?s.token=i:s.anonymous_id=Eu();const a=du(e.serverUrl,{path:e.mountPath,transports:e.transports,query:s});return a.on("connect",async()=>{var u;return console.log("connect",a.id),(u=t.connect)===null||u===void 0?void 0:u.call(t)}),a.on("update_model",async u=>{var c;return(c=t.update_model)===null||c===void 0?void 0:c.call(t,u)}),a.on("error",async u=>{var c;return(c=t.error)===null||c===void 0?void 0:c.call(t,u)}),a.on("connect_error",async u=>{var c;return console.error("connect_error",u),(c=t.error)===null||c===void 0?void 0:c.call(t,u)}),a}function n2({config:e}){let t={...e};const n={},i={},s={connect:async()=>{const x=[];Object.keys(n).forEach(R=>{const T=w(R);T.length!==0&&(h(R),T.forEach(({connect:A})=>{const U=async()=>A==null?void 0:A();x.push(U())}))}),await Promise.all(x)},update_model:async x=>{const T=w(x.room).map(A=>{var U;return(U=A.update_model)===null||U===void 0?void 0:U.call(A,x)});await Promise.all(T)},error:async x=>{console.error("error",x);const R=Object.values(n).flat().map(T=>{var A;return(A=T.error)===null||A===void 0?void 0:A.call(T,x)});await Promise.all(R)}};let a=dv(e,s);function u(){c()}function c(){E(),a&&a.disconnect()}function f(x){u(),t={...t,...x},a=dv(t,s)}function h(x){a.emit("join",x)}function m(x){a.emit("leave",x)}async function g(x,R){var T;const A=JSON.stringify(R);return(T=s.update_model)===null||T===void 0?void 0:T.call(s,{room:x,data:A})}function w(x){var R;return(R=n[x])!==null&&R!==void 0?R:[]}function v(x){const R=i[x];R&&(clearTimeout(R),delete i[x])}
211function E(){Object.keys(i).forEach(x=>{var R,T;clearTimeout(i[x]),delete i[x],((T=(R=n[x])===null||R===void 0?void 0:R.length)!==null&&T!==void 0?T:0)===0&&delete n[x]})}function k(x){v(x),i[x]=setTimeout(()=>{var R,T;delete i[x],!(((T=(R=n[x])===null||R===void 0?void 0:R.length)!==null&&T!==void 0?T:0)>0)&&(m(x),delete n[x])},t2)}return{socket:a,subscribeToRoom:(x,R)=>{n[x]?v(x):(h(x),n[x]=[]),n[x].push(R);let T=!1;return()=>{var A,U;T||(T=!0,n[x]=(U=(A=n[x])===null||A===void 0?void 0:A.filter(L=>L!==R))!==null&&U!==void 0?U:[],n[x].length===0&&k(x))}},updateConfig:f,updateModel:g,disconnect:c}}(!globalThis.EventTarget||!globalThis.Event)&&console.error(`
212  PartySocket requires a global 'EventTarget' class to be available!
213  You can polyfill this global by adding this to your code before any partysocket imports: 
214  
215  \`\`\`
216  import 'partysocket/event-target-polyfill';
217  \`\`\`
218  Please file an issue at https://github.com/partykit/partykit if you're still having trouble.
219`);var yx=class extends Event{constructor(t,n){super("error",n);Ge(this,"message");Ge(this,"error");this.message=t.message,this.error=t}},vx=class extends Event{constructor(t=1e3,n="",i){super("close",i);Ge(this,"code");Ge(this,"reason");Ge(this,"wasClean",!0);this.code=t,this.reason=n}},Kd={Event,ErrorEvent:yx,CloseEvent:vx};function r2(e,t){if(!e)throw new Error(t)}function i2(e){return new e.constructor(e.type,e)}function o2(e){return"data"in e?new MessageEvent(e.type,e):"code"in e||"reason"in e?new vx(e.code||1999,e.reason||"unknown reason",e):"error"in e?new yx(e.error,e):new Event(e.type,e)}var P0,s2=typeof process<"u"&&typeof((P0=process.versions)==null?void 0:P0.node)<"u"&&typeof document>"u",ql=s2?o2:i2,Ti={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0},fv=!1,a2=class Ri extends EventTarget{constructor(n,i,s={}){super();Ge(this,"_ws");Ge(this,"_retryCount",-1);Ge(this,"_uptimeTimeout");Ge(this,"_connectTimeout");Ge(this,"_shouldReconnect",!0);Ge(this,"_connectLock",!1);Ge(this,"_binaryType","blob");Ge(this,"_closeCalled",!1);Ge(this,"_messageQueue",[]);Ge(this,"_url");Ge(this,"_protocols");Ge(this,"_options");Ge(this,"onclose",null);Ge(this,"onerror",null);Ge(this,"onmessage",null);Ge(this,"onopen",null);Ge(this,"_handleOpen",n=>{this._debug("open event");const{minUptime:i=Ti.minUptime}=this._options;clearTimeout(this._connectTimeout),this._uptimeTimeout=setTimeout(()=>this._acceptOpen(),i),r2(this._ws,"WebSocket is not defined"),this._ws.binaryType=this._binaryType,this._messageQueue.forEach(s=>{var a;return(a=this._ws)==null?void 0:a.send(s)}),this._messageQueue=[],this.onopen&&this.onopen(n),this.dispatchEvent(ql(n))});Ge(this,"_handleMessage",n=>{this._debug("message event"),this.onmessage&&this.onmessage(n),this.dispatchEvent(ql(n))});Ge(this,"_handleError",n=>{this._debug("error event",n.message),this._disconnect(void 0,n.message==="TIMEOUT"?"timeout":void 0),this.onerror&&this.onerror(n),this._debug("exec error listeners"),this.dispatchEvent(ql(n)),this._connect()});Ge(this,"_handleClose",n=>{this._debug("close event"),this._clearTimeouts(),this._shouldReconnect&&this._connect(),this.onclose&&this.onclose(n),this.dispatchEvent(ql(n))});this._url=n,this._protocols=i,this._options=s,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}static get CONNECTING(){return 0}static get OPEN(){return 1}static get CLOSING(){return 2}static get CLOSED(){return 3}get CONNECTING(){return Ri.CONNECTING}get OPEN(){return Ri.OPEN}get CLOSING(){return Ri.CLOSING}get CLOSED(){return Ri.CLOSED}get binaryType(){return this._ws?this._ws.binaryType:this._binaryType}set binaryType(n){this._binaryType=n,this._ws&&(this._ws.binaryType=n)}get retryCount(){return Math.max(this._retryCount,0)}get bufferedAmount(){return this._messageQueue.reduce((i,s)=>(typeof s=="string"?i+=s.length:s instanceof Blob?i+=s.size:i+=s.byteLength,i),0)+(this._ws?this._ws.bufferedAmount:0)}get extensions(){return this._ws?this._ws.extensions:""}get protocol(){return this._ws?this._ws.protocol:""}get readyState(){return this._ws?this._ws.readyState:this._options.startClosed?Ri.CLOSED:Ri.CONNECTING}get url(){return this._ws?this._ws.url:""}get shouldReconnect(){return this._shouldReconnect}close(n=1e3,i){if(this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug("close enqueued: no ws instance");return}if(this._ws.readyState===this.CLOSED){this._debug("close: already closed");return}this._ws.close(n,i)}reconnect(n,i){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(n,i),this._connect())}send(n){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",n),this._ws.send(n);else{const{maxEnqueuedMessages:i=Ti.maxEnqueuedMessages}=this._options;this._messageQueue.length<i&&(this._debug("enqueue",n),this._messageQueue.push(n))}}_debug(...n){this._options.debug&&console.log.apply(console,["RWS>",...n])}_getNextDelay(){const{reconnectionDelayGrowFactor:n=Ti.reconnectionDelayGrowFactor,minReconnectionDelay:i=Ti.minReconnectionDelay,maxReconnectionDelay:s=Ti.maxReconnectionDelay}=this._options;let a=0;return this._retryCount>0&&(a=i*Math.pow(n,this._retryCount-1),a>s&&(a=s)),this._debug("next delay",a),a}_wait(){return new Promise(n=>{setTimeout(n,this._getNextDelay())})}_getNextProtocols(n){if(!n)return Promise.resolve(null);if(typeof n=="string"||Array.isArray(n))return Promise.resolve(n);if(typeof n=="function"){const i=n();if(!i)return Promise.resolve(null);if(typeof i=="string"||Array.isArray(i))return Promise.resolve(i);if(i.then)return i}throw Error("Invalid protocols")}_getNextUrl(n){if(typeof n=="string")return Promise.resolve(n);if(typeof n=="function"){const i=n();if(typeof i=="string")return Promise.resolve(i);if(i.then)return i}throw Error("Invalid URL")}_connect(){if(this._connectLock||!this._shouldReconnect)return;this._connectLock=!0;
219const{maxRetries:n=Ti.maxRetries,connectionTimeout:i=Ti.connectionTimeout}=this._options;if(this._retryCount>=n){this._debug("max retries reached",this._retryCount,">=",n);return}this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),this._wait().then(()=>Promise.all([this._getNextUrl(this._url),this._getNextProtocols(this._protocols||null)])).then(([s,a])=>{if(this._closeCalled){this._connectLock=!1;return}!this._options.WebSocket&&typeof WebSocket>"u"&&!fv&&(console.error(`‼️ No WebSocket implementation available. You should define options.WebSocket. 
220
221For example, if you're using node.js, run \`npm install ws\`, and then in your code:
222
223import PartySocket from 'partysocket';
224import WS from 'ws';
225
226const partysocket = new PartySocket({
227  host: "127.0.0.1:1999",
228  room: "test-room",
229  WebSocket: WS
230});
231
232`),fv=!0);const u=this._options.WebSocket||WebSocket;this._debug("connect",{url:s,protocols:a}),this._ws=a?new u(s,a):new u(s),this._ws.binaryType=this._binaryType,this._connectLock=!1,this._addListeners(),this._connectTimeout=setTimeout(()=>this._handleTimeout(),i)}).catch(s=>{this._connectLock=!1,this._handleError(new Kd.ErrorEvent(Error(s.message),this))})}_handleTimeout(){this._debug("timeout event"),this._handleError(new Kd.ErrorEvent(Error("TIMEOUT"),this))}_disconnect(n=1e3,i){if(this._clearTimeouts(),!!this._ws){this._removeListeners();try{this._ws.close(n,i),this._handleClose(new Kd.CloseEvent(n,i,this))}catch{}}}_acceptOpen(){this._debug("accept open"),this._retryCount=0}_removeListeners(){this._ws&&(this._debug("removeListeners"),this._ws.removeEventListener("open",this._handleOpen),this._ws.removeEventListener("close",this._handleClose),this._ws.removeEventListener("message",this._handleMessage),this._ws.removeEventListener("error",this._handleError))}_addListeners(){this._ws&&(this._debug("addListeners"),this._ws.addEventListener("open",this._handleOpen),this._ws.addEventListener("close",this._handleClose),this._ws.addEventListener("message",this._handleMessage),this._ws.addEventListener("error",this._handleError))}_clearTimeouts(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)}};/*!
233 * Reconnecting WebSocket
234 * by Pedro Ladaria <[email protected]>
235 * https://github.com/pladaria/reconnecting-websocket
236 * License MIT
237 */const l2=1e3,u2=3e3,c2=new Set([405,409,422,503]),d2=new Set([400,403,404]);function f2(e){const t=e&&typeof e=="object"?e.status:void 0;return typeof t=="number"?t:void 0}function h2(e){return e instanceof Error?e:new Error(String(e))}class p2{constructor(t,n,i,s,a){var u;this.onClose=a,this.listeners=new Set,this.heartbeat=null,this.closed=!1,this.id=(u=s==null?void 0:s.id)!==null&&u!==void 0?u:crypto.randomUUID();let c=i.transport==="proxy";const f=async()=>{var w;if(this.closed)throw new Error("Actor connection is closed");if(!c)try{const{websocket_url:v,token:E}=await i.mintConnectionToken(t,n,this.id),k=v.includes("?")?"&":"?";return`${v}${k}token=${encodeURIComponent(E)}`}catch(v){const E=f2(v);if(!(i.transport!=="direct"&&E!==void 0&&c2.has(E))){E!==void 0&&d2.has(E)&&this.close();try{(w=i.onMintError)===null||w===void 0||w.call(i,h2(v))}catch{}throw v}c=!0}return g2(i.host,t,n,this.id,i.appId,i.getAuthToken(),i.functionsVersion)},h=new a2(f);this.ws=h;let m=Date.now();const g=()=>{m=Date.now()};h.addEventListener("open",g),h.addEventListener("message",w=>{g();let v;try{v=JSON.parse(w.data)}catch{return}if((v&&typeof v=="object"?v.type:void 0)!=="__pong")for(const k of this.listeners)k(v)}),this.heartbeat=setInterval(()=>{if(Date.now()-m>u2){g(),h.readyState===h.OPEN&&h.reconnect();return}try{h.send(JSON.stringify({type:"__ping"}))}catch{}},l2)}subscribe(t){return this.listeners.add(t),{unsubscribe:()=>{this.listeners.delete(t)}}}send(t){this.closed||this.ws.send(JSON.stringify(t))}close(){this.closed||(this.closed=!0,this.heartbeat&&(clearInterval(this.heartbeat),this.heartbeat=null),this.listeners.clear(),this.ws.close(),this.onClose())}}function m2(e,t,n,i){let s=null;return{connect(a){if(s)return s;const u=new p2(e,t,n,a,()=>{i.delete(u),s===u&&(s=null)});return s=u,i.add(u),u}}}function g2(e,t,n,i,s,a,u){let c=e.replace(/^(http|https|ws|wss):\/\//,"");c.endsWith("/")&&(c=c.slice(0,-1));const f=c.startsWith("localhost:")||c.startsWith("127.0.0.1:")||c.startsWith("192.168.")||c.startsWith("10.")||c.startsWith("172.")&&c.split(".")[1]>="16"&&c.split(".")[1]<="31"||c.startsWith("[::ffff:7f00:1]:"),h=new URLSearchParams([["_pk",i],["app_id",s],["handler",t]]);return a&&h.append("token",a),u&&h.append("fv",u),`${f?"ws":"wss"}://${c}/parties/${t}/${n}?${h}`}function y2(e,t){return e&&!e.startsWith("/")?e:t??e}function v2(e){const t=new Set;return{module:new Proxy({}
237,{get(i,s){if(!(typeof s!="string"||s==="then"))return a=>m2(s,a,e,t)}}),closeAll:()=>{for(const i of[...t])i.close()}}}function w2(e){var t,n,i,s;const{serverUrl:a="https://base44.app",appId:u,analytics:c,token:f,serviceToken:h,requiresAuth:m=!1,appBaseUrl:g,options:w,functionsVersion:v,headers:E}=e,k=typeof g=="string"?g:"",S={serverUrl:a,mountPath:"/ws-user-apps/socket.io/",transports:["websocket"],appId:u,token:f};let x=null;const R=()=>(x||(x=n2({config:S})),x),T={...E,"X-App-Id":String(u)},A=E==null?void 0:E["Base44-State"],U=A?{"Base44-State":A}:{},L=v?{...T,"Base44-Functions-Version":v}:T,W=Oo({baseURL:`${a}/api`,headers:T,token:f,onError:w==null?void 0:w.onError}),M=Oo({baseURL:`${a}/api`,headers:L,token:f,interceptResponses:!1,onError:w==null?void 0:w.onError}),K={...T,...f?{"on-behalf-of":`Bearer ${f}`}:{}},H=Oo({baseURL:`${a}/api`,headers:K,token:h,onError:w==null?void 0:w.onError}),Q=Oo({baseURL:`${a}/api`,headers:L,token:h,interceptResponses:!1}),G=Oo({baseURL:`${a}/api`,headers:T}),le=JT(W,M,u,{appBaseUrl:k,token:f});if(typeof window<"u"){const X=f||ii();X&&le.setToken(X)}const te=v2({appId:u,host:y2(a,typeof window<"u"?(t=window.location)===null||t===void 0?void 0:t.origin:void 0),functionsVersion:v,getAuthToken:()=>f||ii(),mintConnectionToken:async(X,ue,P)=>{const D=f||ii();return await G.post(`/apps/${u}/actors/${encodeURIComponent(X)}/connection-token`,{room:ue,connection_id:P},{headers:{...D?{Authorization:`Bearer ${D}`}:{},...v?{"Base44-Functions-Version":v}:{}}})},transport:w==null?void 0:w.actorsTransport,onMintError:w==null?void 0:w.onError}),J={entities:Jy({axios:W,appId:u,getSocket:R}),integrations:ev(W,u),connectors:rR(W,u),auth:le,functions:tv(M,u,{getAuthHeaders:()=>{const X={},ue=f||ii();return ue&&(X.Authorization=`Bearer ${ue}`),X},baseURL:(n=M.defaults)===null||n===void 0?void 0:n.baseURL}),agents:nv({axios:W,getSocket:R,appId:u,serverUrl:a,token:f}),aiGateway:iv({serverUrl:a,token:f,appId:u,headers:U}),appLogs:ov(W,u),app:aR(W,u),users:lR(W,u),analytics:jT({axiosClient:W,serverUrl:a,appId:u,userAuthModule:le,enabled:(i=c==null?void 0:c.enabled)!==null&&i!==void 0?i:!0}),actors:te.module,cleanup:()=>{J.analytics.cleanup(),te.closeAll(),x&&x.disconnect()}},me={entities:Jy({axios:H,appId:u,getSocket:R}),integrations:ev(H,u),sso:ZT(H,u),connectors:tR(H,u),functions:tv(Q,u,{getAuthHeaders:()=>{const X={};return h&&(X.Authorization=`Bearer ${h}`),X},baseURL:(s=Q.defaults)===null||s===void 0?void 0:s.baseURL}),agents:nv({axios:H,getSocket:R,appId:u,serverUrl:a,token:f}),aiGateway:iv({serverUrl:a,token:h,appId:u,headers:U}),appLogs:ov(H,u),cleanup:()=>{x&&x.disconnect()}};return m&&typeof window<"u"&&setTimeout(async()=>{try{await J.auth.isAuthenticated()||J.auth.redirectToLogin(window.location.href)}catch(X){console.error("Authentication check failed:",X),J.auth.redirectToLogin(window.location.href)}},0),{...J,fetchWithAuth:oR({axios:W,serviceRoleAxios:H,appId:String(u),serverUrl:a,functionsVersion:v,platformHeaders:E}),setToken(X){J.auth.setToken(X),x&&x.updateConfig({token:X}),S.token=X},getConfig(){return{serverUrl:a,appId:u,requiresAuth:m}},get asServiceRole(){if(!h)throw new Error("Service token is required to use asServiceRole. Please provide a serviceToken when creating the client.");return me}}}const wx=typeof window>"u",x2=wx?{localStorage:new Map}:window,Zs=x2.localStorage,b2=e=>e.replace(/([A-Z])/g,"_$1").toLowerCase(),So=(e,{defaultValue:t=void 0,removeFromUrl:n=!1}={})=>{if(wx)return t;const i=`base44_${b2(e)}`,s=new URLSearchParams(window.location.search),a=s.get(e);if(n){s.delete(e);const c=`${window.location.pathname}${s.toString()?`?${s.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,c)}if(a)return Zs.setItem(i,a),a;if(t)return Zs.setItem(i,t),t;const u=Zs.getItem(i);return u||null},k2=()=>(So("clear_access_token")==="true"&&(Zs.removeItem("base44_access_token"),Zs.removeItem("token")),{appId:So("app_id",{defaultValue:"69aea9dcb2c1c3b264db91fd"}),token:So("access_token",{removeFromUrl:!0}),fromUrl:So("from_url",{defaultValue:window.location.href}),functionsVersion:So("functions_version",{defaultValue:"prod"}),appBaseUrl:So("app_base_url",{defaultValue:void 0})}),Xs={...k2()},{appId:S2,token:E2,functionsVersion:_2,appBaseUrl:C2}=Xs,ke=w2({appId:S2,token:E2,functionsVersion:_2,serverUrl:"",requiresAuth:!1,appBaseUrl:C2});function P2({}){var s;const t=ba().pathname.substring(1),{data:n,isFetched:i}=yw({queryKey:["user"],queryFn:async()=>{try{return{user:await ke.auth.me(),isAuthenticated:!0}}catch{return{user:null,isAuthenticated:!1}}}});return _.jsx("div",{className:"min-h-screen flex items-center justify-center p-6 bg-slate-50",children:_.jsx("div",{className:"max-w-md w-full",children:_.jsxs("div",{className:"text-center space-y-6",children:[_.jsxs("div",{className:"space-y-2",children:[_.jsx("h1",{className:"text-7xl font-light text-slate-300",children:"404"}),_.jsx("div",{className:"h-0.5 w-16 bg-slate-200 mx-auto"})]}),_.jsxs("div",{className:"space-y-3",children:[_.jsx("h2",{className:"text-2xl font-medium text-slate-800",children:"Page Not Found"}),_.jsxs("p",{className:"text-slate-600 leading-relaxed",children:["The page ",_.jsxs("span",{className:"font-medium text-slate-700",children:['"',t,'"']})," could not be found in this application."]})]}),i&&n.isAuthenticated&&((s=n.user)==null?void 0:s.role)==="admin"&&_.jsx("div",{className:"mt-8 p-4 bg-slate-100 rounded-lg border border-slate-200",children:_.jsxs("div",{className:"flex items-start space-x-3",children:[_.jsx("div",{className:"flex-shrink-0 w-5 h-5 rounded-full bg-orange-100 flex items-center justify-center mt-0.5",children:_.jsx("div",{className:"w-2 h-2 rounded-full bg-orange-400"})}),_.jsxs("div",{className:"text-left space-y-1",children:[_.jsx("p",{className:"text-sm font-medium text-slate-700",children:"Admin Note"}),_.jsx("p",{className:"text-sm text-slate-600 leading-relaxed",children:"This could mean that the AI hasn't implemented this page yet. Ask it to implement it in the chat."})]})]})}),_.jsx("div",{className:"pt-6",children:_.jsxs("button",{onClick:()=>window.location.href="/",className:"inline-flex items-center px-4 py-2 text-sm font-medium text-slate-700 bg-white border border-slate-200 rounded-lg hover:bg-slate-50 hover:border-slate-300 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-slate-500",children:[_.jsx("svg",{className:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:_.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})}),"Go Home"]})})]})})})}class T2 extends Yr.Component{constructor(t){super(t),this.state={hasError:!1,error:null,errorInfo:null}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("App crashed:",t,n),this.setState({errorInfo:n})}render(){var t,n;return this.state.hasError?_.jsxs("div",{style:{padding:"2rem",fontFamily:"monospace",fontSize:"0.875rem",color:"#333",maxWidth:"800px",margin:"0 auto",marginTop:"2rem"},children:[_.jsx("h1",{style:{fontSize:"1.25rem",fontWeight:"bold",color:"#dc2626",marginBottom:"1rem"},children:"Something went wrong"}),_.jsxs("pre",{style:{whiteSpace:"pre-wrap",wordBreak:"break-all",background:"#f5f5f5",padding:"1rem",borderRadius:"0.5rem",overflow:"auto"},children:[(t=this.state.error)==null?void 0:t.toString(),`
238
239`,(n=this.state.errorInfo)==null?void 0:n.componentStack]}),_.jsx("button",{onClick:()=>window.location.reload(),style:{marginTop:"1rem",padding:"0.5rem 1rem",background:"#3366ff",color:"white",border:"none",borderRadius:"0.375rem",cursor:"pointer"},children:"Reload"})]}):this.props.children}}const xx=C.createContext(),R2=({children:e})=>{const[t,n]=C.useState(null),[i,s]=C.useState(!1),[a,u]=C.useState(!0),[c,f]=C.useState(!0),[h,m]=C.useState(null),[g,w]=C.useState(null);C.useEffect(()=>
239{v()},[]);const v=async()=>{var x,R;try{f(!0),m(null);const T=Oo({baseURL:"/api/apps/public",headers:{"X-App-Id":Xs.appId},token:Xs.token,interceptResponses:!0});try{const A=await T.get(`/prod/public-settings/by-id/${Xs.appId}`);w(A),Xs.token?await E():(u(!1),s(!1)),f(!1)}catch(A){if(console.error("App state check failed:",A),A.status===403&&((R=(x=A.data)==null?void 0:x.extra_data)!=null&&R.reason)){const U=A.data.extra_data.reason;m(U==="auth_required"?{type:"auth_required",message:"Authentication required"}:U==="user_not_registered"?{type:"user_not_registered",message:"User not registered for this app"}:{type:U,message:A.message})}else m({type:"unknown",message:A.message||"Failed to load app"});f(!1),u(!1)}}catch(T){console.error("Unexpected error:",T),m({type:"unknown",message:T.message||"An unexpected error occurred"}),f(!1),u(!1)}},E=async()=>{try{u(!0);const x=await ke.auth.me();n(x),s(!0),u(!1)}catch(x){console.error("User auth check failed:",x),u(!1),s(!1),(x.status===401||x.status===403)&&m({type:"auth_required",message:"Authentication required"})}},k=(x=!0)=>{n(null),s(!1),x?ke.auth.logout(window.location.href):ke.auth.logout()},S=()=>{ke.auth.redirectToLogin(window.location.href)};return _.jsx(xx.Provider,{value:{user:t,isAuthenticated:i,isLoadingAuth:a,isLoadingPublicSettings:c,authError:h,appPublicSettings:g,logout:k,navigateToLogin:S,checkAppState:v},children:e})},Mh=()=>{const e=C.useContext(xx);if(!e)throw new Error("useAuth must be used within an AuthProvider");return e},O2=()=>_.jsx("div",{className:"flex flex-col items-center justify-center min-h-screen bg-gradient-to-b from-white to-slate-50",children:_.jsx("div",{className:"max-w-md w-full p-8 bg-white rounded-lg shadow-lg border border-slate-100",children:_.jsxs("div",{className:"text-center",children:[_.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 mb-6 rounded-full bg-orange-100",children:_.jsx("svg",{className:"w-8 h-8 text-orange-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:_.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),_.jsx("h1",{className:"text-3xl font-bold text-slate-900 mb-4",children:"Access Restricted"}),_.jsx("p",{className:"text-slate-600 mb-8",children:"You are not registered to use this application. Please contact the app administrator to request access."}),_.jsxs("div",{className:"p-4 bg-slate-50 rounded-md text-sm text-slate-600",children:[_.jsx("p",{children:"If you believe this is an error, you can:"}),_.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1",children:[_.jsx("li",{children:"Verify you are logged in with the correct account"}),_.jsx("li",{children:"Contact the app administrator for access"}),_.jsx("li",{children:"Try logging out and back in again"})]})]})]})})});function la(e){return"/"+e.replace(/ /g,"-")}function hv(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ju(...e){return t=>{let n=!1;const i=e.map(s=>{const a=hv(s,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let s=0;s<i.length;s++){const a=i[s];typeof a=="function"?a():hv(e[s],null)}}}}function Ki(...e){return C.useCallback(ju(...e),e)}var N2=Symbol.for("react.lazy"),_u=Ou[" use ".trim().toString()];function A2(e){return typeof e=="object"&&e!==null&&"then"in e}function bx(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===N2&&"_payload"in e&&A2(e._payload)}function kx(e){const t=L2(e),n=C.forwardRef((i,s)=>{let{children:a,...u}=i;bx(a)&&typeof _u=="function"&&(a=_u(a._payload));const c=C.Children.toArray(a),f=c.find(M2);if(f){const h=f.props.children,m=c.map(g=>g===f?C.Children.count(h)>1?C.Children.only(null):C.isValidElement(h)?h.props.children:null:g);return _.jsx(t,{...u,ref:s,children:C.isValidElement(h)?C.cloneElement(h,void 0,m):null})}return _.jsx(t,{...u,ref:s,children:a})});return n.displayName=`${e}.Slot`,n}var I2=kx("Slot");function L2(e){const t=C.forwardRef((n,i)=>{let{children:s,...a}=n;if(bx(s)&&typeof _u=="function"&&(s=_u(s._payload)),C.isValidElement(s)){const u=F2(s),c=j2(a,s.props);return s.type!==C.Fragment&&(c.ref=i?ju(i,u):u),C.cloneElement(s,c)}return C.Children.count(s)>1?C.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var D2=Symbol("radix.slottable");function M2(e){return C.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===D2}function j2(e,t){const n={...t};for(const i in t){const s=e[i],a=t[i];/^on[A-Z]/.test(i)?s&&a?n[i]=(...c)=>{const f=a(...c);return s(...c),f}:s&&(n[i]=s):i==="style"?n[i]={...s,...a}
239:i==="className"&&(n[i]=[s,a].filter(Boolean).join(" "))}return{...e,...n}}function F2(e){var i,s;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const z2=hh("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),xr=C.forwardRef(({className:e,variant:t,size:n,asChild:i=!1,...s},a)=>{const u=i?I2:"button";return _.jsx(u,{className:lt(z2({variant:t,size:n,className:e})),ref:a,...s})});xr.displayName="Button";function U2(){const[e,t]=C.useState(null),[n,i]=C.useState(!0);C.useEffect(()=>{ke.auth.me().then(a=>{t(a),i(!1)}).catch(()=>i(!1))},[]);const s=["[email protected]","[email protected]"];return{user:e,loading:n,isAdmin:(e==null?void 0:e.role)==="admin",isCoach:(e==null?void 0:e.is_coach)===!0||(e==null?void 0:e.role)==="admin",isMainAdmin:s.includes(e==null?void 0:e.email)}}function B2(){const[e,t]=C.useState(null),[n,i]=C.useState(null),[s,a]=C.useState(!1);return C.useEffect(()=>{ke.auth.me().then(async u=>{if(u&&!u.club_id){let v;try{const E=await ke.entities.User.list(),k=new Set(E.map(S=>S.club_id).filter(Boolean));do v=String(Math.floor(1e4+Math.random()*9e4));while(k.has(v))}catch{v=String(Math.floor(1e4+Math.random()*9e4))}try{await ke.auth.updateMe({club_id:v}),u={...u,club_id:v}}catch(E){console.error("Failed to save CID:",E)}}if(i(u),!u||!u.email){t("none");return}if((u==null?void 0:u.role)==="admin"){a(!0),t("approved");return}if((u==null?void 0:u.tier)===1||(u==null?void 0:u.tier)===2){t("approved");return}const c=u.email.toLowerCase(),[f,h]=await Promise.all([ke.entities.Registration.filter({parent_email:u.email},"-created_date",10),ke.entities.Registration.filter({secondary_parent_email:u.email},"-created_date",10)]);let m=f,g=h;if(f.length===0&&h.length===0){const v=await ke.entities.Registration.list("-created_date",200);m=v.filter(E=>E.parent_email&&E.parent_email.toLowerCase()===c),g=v.filter(E=>E.secondary_parent_email&&E.secondary_parent_email.toLowerCase()===c)}const w=[...m,...g];w.length===0?t("none"):w.find(E=>E.status==="approved")?t("approved"):(w.sort((E,k)=>new Date(k.created_date)-new Date(E.created_date)),t(w[0].status))}).catch(()=>{t("none"),i(null)})},[]),{status:e,user:n,isAdmin:s}}function $2(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}Array(12).fill(0);let Gf=1;class V2{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:i,...s}=t,a=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:Gf++,u=this.toasts.find(f=>f.id===a),c=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),u?this.toasts=this.toasts.map(f=>f.id===a?(this.publish({...f,...t,id:a,title:i}
vendor: 3,209 bytes, line 239
239),{...f,...t,id:a,dismissible:c,title:i}):f):this.addToast({title:i,...s,dismissible:c,id:a}),a},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(i=>i({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let i;n.loading!==void 0&&(i=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const s=Promise.resolve(t instanceof Function?t():t);let a=i!==void 0,u;const c=s.then(async h=>{if(u=["resolve",h],Yr.isValidElement(h))a=!1,this.create({id:i,type:"default",message:h});else if(W2(h)&&!h.ok){a=!1;const g=typeof n.error=="function"?await n.error(`HTTP error! status: ${h.status}`):n.error,w=typeof n.description=="function"?await n.description(`HTTP error! status: ${h.status}`):n.description,E=typeof g=="object"&&!Yr.isValidElement(g)?g:{message:g};this.create({id:i,type:"error",description:w,...E})}else if(h instanceof Error){a=!1;const g=typeof n.error=="function"?await n.error(h):n.error,w=typeof n.description=="function"?await n.description(h):n.description,E=typeof g=="object"&&!Yr.isValidElement(g)?g:{message:g};this.create({id:i,type:"error",description:w,...E})}else if(n.success!==void 0){a=!1;const g=typeof n.success=="function"?await n.success(h):n.success,w=typeof n.description=="function"?await n.description(h):n.description,E=typeof g=="object"&&!Yr.isValidElement(g)?g:{message:g};this.create({id:i,type:"success",description:w,...E})}}).catch(async h=>{if(u=["reject",h],n.error!==void 0){a=!1;const m=typeof n.error=="function"?await n.error(h):n.error,g=typeof n.description=="function"?await n.description(h):n.description,v=typeof m=="object"&&!Yr.isValidElement(m)?m:{message:m};this.create({id:i,type:"error",description:g,...v})}}).finally(()=>{a&&(this.dismiss(i),i=void 0),n.finally==null||n.finally.call(n)}),f=()=>new Promise((h,m)=>c.then(()=>u[0]==="reject"?m(u[1]):h(u[1])).catch(m));return typeof i!="string"&&typeof i!="number"?{unwrap:f}:Object.assign(i,{unwrap:f})},this.custom=(t,n)=>{const i=(n==null?void 0:n.id)||Gf++;return this.create({jsx:t(i),id:i,...n}),i},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const En=new V2,H2=(e,t)=>{const n=(t==null?void 0:t.id)||Gf++;return En.addToast({title:e,...t,id:n}),n},W2=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",q2=H2,Q2=()=>En.toasts,Y2=()=>En.getActiveToasts(),fu=Object.assign(q2,{success:En.success,info:En.info,warning:En.warning,error:En.error,custom:En.custom,message:En.message,promise:En.promise,dismiss:En.dismiss,loading:En.loading},{getHistory:Q2,getToasts:Y2});$2
vendor: 14,864 bytes, line 239
239("[data-sonner-toaster][dir=ltr],html[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%)}[data-sonner-toaster][dir=rtl],html[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%)}[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:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[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);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[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 rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [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)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [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;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left: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);background:var(--normal-bg);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-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[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}[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}[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,0)) translateX(var(--swipe-amount-x,0));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{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{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{from{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-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--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-sonner-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-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-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, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-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-sonner-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]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[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]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[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]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[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]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[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:first-child{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)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{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%)}");
239const Ql={U7:"U8",U8:"U9",U9:"U10",U10:"U11",U11:"U12",U12:"U13",U13:"U14",U14:"U15",U15:"U16",U16:"U17",U17:"U18",U18:"Men's Senior"},Gd=["U7","U8","U9","U10","U11","U12","U13","U14","U15","U16","U17","U18"],K2=["Men's Senior","Women's Senior"],G2=5,X2=["August","September","October","November","December","January","February","March","April"];function J2(e){return X2.map(t=>{const i=["January","February","March","April","May","June","July","August","September","October","November","December"].indexOf(t)>=6?e:e+1;return`${t} ${i}`})}function Z2(e,t,n,i,s,a){let u=`<h2>Montpellier FC — End of ${e} Season Financial Report</h2>`;u+=`<p>Generated automatically on June 15th ${t}. This report covers all teams' payment statuses for the completed season.</p><hr/>`;const c=J2(t-1);let f=0,h=0;for(const m of n.sort((g,w)=>g.name.localeCompare(w.name))){const g=i[m.id]||[];if(g.length===0)continue;let w=0,v=0;u+=`<h3>${m.name} (${m.age_group})</h3>`,u+='<table border="1" cellpadding="6" cellspacing="0" style="border-collapse:collapse;width:100%;font-size:13px;">',u+='<thead><tr style="background:#f3f4f6"><th>Player</th><th>Sign-on (June)</th>';for(const E of c)u+=`<th>${E.split(" ")[0].slice(0,3)}</th>`;u+="<th>Fines</th><th>Total Paid</th><th>Outstanding</th></tr></thead><tbody>";for(const E of g){const k=s[E.id]||[],S=a[E.id]||[],x=k.find(H=>{var Q;return(H.month==="Sign-on"||H.month==="June (Sign-on)")&&H.status==="paid"&&!((Q=H.notes)!=null&&Q.startsWith("FINE:"))}),R=c.reduce((H,Q)=>{const G=k.find(le=>{var te;return le.month===Q&&le.status==="paid"&&!((te=le.notes)!=null&&te.startsWith("FINE:"))});return H+((G==null?void 0:G.amount)||0)},0),T=S.filter(H=>H.status==="paid").reduce((H,Q)=>H+(Q.amount||0),0),A=S.filter(H=>H.status!=="paid"&&H.status!=="voided").reduce((H,Q)=>H+(Q.amount||0),0),U=c.filter(H=>{const Q=k.find(G=>{var le;return G.month===H&&!((le=G.notes)!=null&&le.startsWith("FINE:"))});return!Q||Q.status!=="paid"&&Q.status!=="voided"}),L=x?0:25,W=((x==null?void 0:x.amount)||0)+R+T,M=A+U.length*23+L;w+=W,v+=M,u+="<tr>",u+=`<td><strong>${E.first_name} ${E.last_name}</strong><br/><small>${E.parent_name} · ${E.parent_email}</small></td>`,u+=`<td style="text-align:center">${x?`✅ £${x.amount}`:"❌"}</td>`;for(const H of c){const Q=k.find(G=>{var le;return G.month===H&&G.status==="paid"&&!((le=G.notes)!=null&&le.startsWith("FINE:"))});u+=`<td style="text-align:center">${Q?"✅":"❌"}</td>`}const K=S.length>0?S.map(H=>`£${H.amount} (${H.status==="paid"?"✅":"❌"})`).join(", "):"—";u+=`<td style="font-size:11px">${K}</td>`,u+=`<td style="text-align:right;color:green"><strong>£${W.toFixed(2)}</strong></td>`,u+=`<td style="text-align:right;color:${M>0?"red":"green"}">`,u+=M>0?`<strong>£${M.toFixed(2)}</strong>`:"✅ Clear",u+="</td></tr>"}u+='<tr style="background:#f9fafb;font-weight:bold">',u+=`<td colspan="${2+c.length+1}">Team Total</td>`,u+=`<td style="text-align:right;color:green">£${w.toFixed(2)}</td>`,u+=`<td style="text-align:right;color:${v>0?"red":"green"}">`,u+=v>0?`£${v.toFixed(2)}`:"✅ Clear",u+="</td></tr></tbody></table><br/>",f+=w,h+=v}return u+="<hr/><h2>Grand Total</h2>",u+=`<p>Total Collected: <strong style="color:green">£${f.toFixed(2)}</strong></p>`,u+=`<p>Total Outstanding: <strong style="color:${h>0?"red":"green"}">£${h.toFixed(2)}</strong></p>`,u+=`<hr/><p><em>New season begins June 16th ${t}. Players with auto-renew have been retained. All others require re-registration.</em></p>`,u}const pv="ageGroupPromotion_lastRun";function eO(e){const t=C.useRef(!1);C.useEffect(()=>{if(!e||t.current)return;const s=localStorage.getItem(pv),a=new Date().toDateString();s!==a&&(t.current=!0,localStorage.setItem(pv,a),n())},[e]);async function n(){const s=new Date,a=s.getFullYear(),u=new Date(a,5,11);if(s<u)return;const f=`${a-1}/${String(a).slice(2)}`;if((await ke.entities.SeasonSnapshot.filter({snapshot_year:a})).some(M=>M.season===f)){await i(a);return}const g=await ke.entities.Player.list(),w=await ke.entities.Team.list(),v=await ke.entities.Payment.list(),E=g.filter(M=>M.status==="active"),k={};for(const M of v)k[M.player_id]||(k[M.player_id]=[]),k[M.player_id].push(M);const S={};for(const M of v.filter(K=>{var H;return(H=K.notes)==null?void 0:H.startsWith("FINE:")}))S[M.player_id]||(S[M.player_id]=[]),S[M.player_id].push(M);const x={};for(const M of E){const K=w.find(H=>H.name===M.team||`${H.age_group} ${H.team}`===M.team);K&&(x[K.id]||(x[K.id]=[]),x[K.id].push(M))}const R=E.map(M=>({season:f,snapshot_year:a,player_type:Gd.includes(M.age_group)?"y
239outh":M.age_group==="Women's Senior"?"women_senior":"senior",player_id:M.id,player_name:`${M.first_name} ${M.last_name}`,age_group:M.age_group,team:M.team||"",position:M.position||"",fa_fan_id:M.fa_fan_id||"",parent_name:M.parent_name||"",parent_email:M.parent_email||"",parent_phone:M.parent_phone||"",medical_notes:M.medical_notes||"",has_medical_condition:M.has_medical_condition||!1,auto_renew:M.auto_renew||!1}));R.length>0&&await ke.entities.SeasonSnapshot.bulkCreate(R);const T=await ke.entities.SeasonSnapshot.list(),A=a-G2;for(const M of T.filter(K=>K.snapshot_year<=A))await ke.entities.SeasonSnapshot.delete(M.id);const U=Z2(f,a,w,x,k,S);await ke.integrations.Core.SendEmail({to:"[email protected]",subject:`Montpellier FC — End of ${f} Season Financial Report`,body:U});const L=E.filter(M=>!M.auto_renew&&Gd.includes(M.age_group));for(let M=0;M<L.length;M+=3){const K=L.slice(M,M+3);await Promise.all(K.map(H=>ke.entities.Player.update(H.id,{team:"",status:"inactive"})))}const W=E.filter(M=>K2.includes(M.age_group));for(let M=0;M<W.length;M+=3){const K=W.slice(M,M+3);await Promise.all(K.map(H=>ke.entities.Player.delete(H.id)))}for(const M of w)M.age_group!=="Women's Senior"&&M.age_group!=="Men's Senior"&&Ql[M.age_group]&&await ke.entities.Team.update(M.id,{age_group:Ql[M.age_group]});await i(a,g),fu.success(`Season rollover complete. End-of-season report sent. New season starts June 16th ${a}.`,{duration:8e3})}async function i(s,a){const c=(a||await ke.entities.Player.list()).filter(f=>f.status==="active"&&Ql[f.age_group]&&Gd.includes(f.age_group)&&(!f.last_promoted_year||f.last_promoted_year<s));for(let f=0;f<c.length;f+=3){const h=c.slice(f,f+3);await Promise.all(h.map(m=>ke.entities.Player.update(m.id,{age_group:Ql[m.age_group],last_promoted_year:s})))}}}function Rn(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function ui(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function tO(e,t){const n=Rn(e);return isNaN(t)?ui(e,NaN):(t&&n.setDate(n.getDate()+t),n)}const Sx=6048e5,nO=864e5,B4=6e4,$4=36e5;let rO={};function Fu(){return rO}function ua(e,t){var c,f,h,m;const n=Fu(),i=(t==null?void 0:t.weekStartsOn)??((f=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:f.weekStartsOn)??n.weekStartsOn??((m=(h=n.locale)==null?void 0:h.options)==null?void 0:m.weekStartsOn)??0,s=Rn(e),a=s.getDay(),u=(a<i?7:0)+a-i;return s.setDate(s.getDate()-u),s.setHours(0,0,0,0),s}function Cu(e){return ua(e,{weekStartsOn:1}
vendor: 19,104 bytes, line 239
239)}function Ex(e){const t=Rn(e),n=t.getFullYear(),i=ui(e,0);i.setFullYear(n+1,0,4),i.setHours(0,0,0,0);const s=Cu(i),a=ui(e,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const u=Cu(a);return t.getTime()>=s.getTime()?n+1:t.getTime()>=u.getTime()?n:n-1}function mv(e){const t=Rn(e);return t.setHours(0,0,0,0),t}function gv(e){const t=Rn(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function iO(e,t){const n=mv(e),i=mv(t),s=+n-gv(n),a=+i-gv(i);return Math.round((s-a)/nO)}function oO(e){const t=Ex(e),n=ui(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Cu(n)}function sO(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function aO(e){if(!sO(e)&&typeof e!="number")return!1;const t=Rn(e);return!isNaN(Number(t))}function lO(e){const t=Rn(e),n=ui(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const uO={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},cO=(e,t,n)=>{let i;const s=uO[e];return typeof s=="string"?i=s:t===1?i=s.one:i=s.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i};function Xd(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const dO={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},fO={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},hO={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},pO={date:Xd({formats:dO,defaultWidth:"full"}),time:Xd({formats:fO,defaultWidth:"full"}),dateTime:Xd({formats:hO,defaultWidth:"full"})},mO={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},gO=(e,t,n,i)=>mO[e];function $s(e){return(t,n)=>{const i=n!=null&&n.context?String(n.context):"standalone";let s;if(i==="formatting"&&e.formattingValues){const u=e.defaultFormattingWidth||e.defaultWidth,c=n!=null&&n.width?String(n.width):u;s=e.formattingValues[c]||e.formattingValues[u]}else{const u=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;s=e.values[c]||e.values[u]}const a=e.argumentCallback?e.argumentCallback(t):t;return s[a]}}const yO={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},vO={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},wO={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},xO={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},bO={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},kO={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},SO=(e,t)=>{const n=Number(e),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},EO={ordinalNumber:SO,era:$s({values:yO,defaultWidth:"wide"}),quarter:$s({values:vO,defaultWidth:"wide",argumentCallback:e=>e-1}),month:$s({values:wO,defaultWidth:"wide"}),day:$s({values:xO,defaultWidth:"wide"}),dayPeriod:$s({values:bO,defaultWidth:"wide",formattingValues:kO,defaultFormattingWidth:"wide"})};function Vs(e){return(t,n={})=>{const i=n.width,s=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],a=t.match(s);if(!a)return null;const u=a[0],c=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],f=Array.isArray(c)?CO(c,g=>g.test(u)):_O(c,g=>g.test(u));let h;h=e.valueCallback?e.valueCallback(f):f,h=n.valueCallback?n.valueCallback(h):h;const m=t.slice(u.length);return{value:h,rest:m}}}function _O(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function CO(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function PO(e){return(t,n={})=>{const i=t.match(e.matchPattern);if(!i)return null;const s=i[0],a=t.match(e.parsePattern);if(!a)return null;let u=e.valueCallback?e.valueCallback(a[0]):a[0];u=n.valueCallback?n.valueCallback(u):u;const c=t.slice(s.length);return{value:u,rest:c}}}const TO=/^(\d+)(th|st|nd|rd)?/i,RO=/\d+/i,OO={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},NO={any:[/^b/i,/^(a|c)/i]},AO={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},IO={any:[/1/i,/2/i,/3/i,/4/i]},LO={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},DO={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},MO={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},jO={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},FO={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},zO={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},UO={ordinalNumber:PO({matchPattern:TO,parsePattern:RO,valueCallback:e=>parseInt(e,10)}),era:Vs({matchPatterns:OO,defaultMatchWidth:"wide",parsePatterns:NO,defaultParseWidth:"any"}),quarter:Vs({matchPatterns:AO,defaultMatchWidth:"wide",parsePatterns:IO,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Vs({matchPatterns:LO,defaultMatchWidth:"wide",parsePatterns:DO,defaultParseWidth:"any"}),day:Vs({matchPatterns:MO,defaultMatchWidth:"wide",parsePatterns:jO,defaultParseWidth:"any"}),dayPeriod:Vs({matchPatterns:FO,defaultMatchWidth:"any",parsePatterns:zO,defaultParseWidth:"any"})},BO={code:"en-US",formatDistance:cO,formatLong:pO,formatRelative:gO,localize:EO,match:UO,options:{weekStartsOn:0,firstWeekContainsDate:1}};function $O(e){const t=Rn(e);return iO(t,lO(t))+1}function VO(e){const t=Rn(e),n=+Cu(t)-+oO(t);return Math.round(n/Sx)+1}function _x(e,t){var m,g,w,v;const n=Rn(e),i=n.getFullYear(),s=Fu(),a=(t==null?void 0:t.firstWeekContainsDate)??((g=(m=t==null?void 0:t.locale)==null?void 0:m.options)==null?void 0:g.firstWeekContainsDate)??s.firstWeekContainsDate??((v=(w=s.locale)==null?void 0:w.options)==null?void 0:v.firstWeekContainsDate)??1,u=ui(e,0);u.setFullYear(i+1,0,a),u.setHours(0,0,0,0);const c=ua(u,t),f=ui(e,0);f.setFullYear(i,0,a),f.setHours(0,0,0,0);const h=ua(f,t);return n.getTime()>=c.getTime()?i+1:n.getTime()>=h.getTime()?i:i-1}function HO(e,t){var c,f,h,m;const n=Fu(),i=(t==null?void 0:t.firstWeekContainsDate)??((f=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:f.firstWeekContainsDate)??n.firstWeekContainsDate??((m=(h=n.locale)==null?void 0:h.options)==null?void 0:m.firstWeekContainsDate)??1,s=_x(e,t),a=ui(e,0);return a.setFullYear(s,0,i),a.setHours(0,0,0,0),ua(a,t)}function WO(e,t){const n=Rn(e),i=+ua(n,t)-+HO(n,t);return Math.round(i/Sx)+1}function Qe(e,t){const n=e<0?"-":"",i=Math.abs(e).toString().padStart(t,"0");return n+i}const Hr={y(e,t){const n=e.getFullYear(),i=n>0?n:1-n;return Qe(t==="yy"?i%100:i,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Qe(n+1,2)},d(e,t){return Qe(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Qe(e.getHours()%12||12,t.length)},H(e,t){return Qe(e.getHours(),t.length)},m(e,t){return Qe(e.getMinutes(),t.length)},s(e,t){return Qe(e.getSeconds(),t.length)},S(e,t){const n=t.length,i=e.getMilliseconds(),s=Math.trunc(i*Math.pow(10,n-3));return Qe(s,t.length)}},Eo={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},yv={G:function(e,t,n){const i=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});case"GGGG":default:return n.era(i,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const i=e.getFullYear(),s=i>0?i:1-i;return n.ordinalNumber(s,{unit:"year"})}return Hr.y(e,t)},Y:function(e,t,n,i){const s=_x(e,i),a=s>0?s:1-s;if(t==="YY"){const u=a%100;return Qe(u,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):Qe(a,t.length)},R:function(e,t){const n=Ex(e);return Qe(n,t.length)},u:function(e,t){const n=e.getFullYear();return Qe(n,t.length)},Q:function(e,t,n){const i=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return Qe(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,t,n){const i=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return Qe(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,t,n){const i=e.getMonth();switch(t){case"M":case"MM":return Hr.M(e,t);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(e,t,n){const i=e.getMonth();switch(t){case"L":return String(i+1);case"LL":return Qe(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(e,t,n,i){const s=WO(e,i);return t==="wo"?n.ordinalNumber(s,{unit:"week"}):Qe(s,t.length)},I:function(e,t,n){const i=VO(e);return t==="Io"?n.ordinalNumber(i,{unit:"week"}):Qe(i,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Hr.d(e,t)},D:function(e,t,n){const i=$O(e);return t==="Do"?n.ordinalNumber(i,{unit:"dayOfYear"}):Qe(i,t.length)},E:function(e,t,n){const i=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});case"EEEE":default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(e,t,n,i){const s=e.getDay(),a=(s-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return Qe(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(s,{width:"short",context:"formatting"});case"eeee":default:return n.day(s,{width:"wide",context:"formatting"})}},c:function(e,t,n,i){const s=e.getDay(),a=(s-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return Qe(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(s,{width:"narrow",context:"standalone"});case"cccccc":return n.day(s,{width:"short",context:"standalone"});case"cccc":default:return n.day(s,{width:"wide",context:"standalone"})}},i:function(e,t,n){const i=e.getDay(),s=i===0?7:i;switch(t){case"i":return String(s);case"ii":return Qe(s,t.length);case"io":return n.ordinalNumber(s,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});case"iiii":default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(e,t,n){const s=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,t,n){const i=e.getHours();let s;switch(i===12?s=Eo.noon:i===0?s=Eo.midnight:s=i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,t,n){const i=e.getHours();let s;switch(i>=17?s=Eo.evening:i>=12?s=Eo.afternoon:i>=4?s=Eo.morning:s=Eo.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let i=e.getHours()%12;return i===0&&(i=12),n.ordinalNumber(i,{unit:"hour"})}return Hr.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Hr.H(e,t)},K:function(e,t,n){const i=e.getHours()%12;return t==="Ko"?n.ordinalNumber(i,{unit:"hour"}):Qe(i,t.length)},k:function(e,t,n){let i=e.getHours();return i===0&&(i=24),t==="ko"?n.ordinalNumber(i,{unit:"hour"}):Qe(i,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Hr.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Hr.s(e,t)},S:function(e,t){return Hr.S(e,t)},X:function(e,t,n){const i=e.getTimezoneOffset();if(i===0)return"Z";switch(t){case"X":return wv(i);case"XXXX":case"XX":return Oi(i);case"XXXXX":case"XXX":default:return Oi(i,":")}},x:function(e,t,n){const i=e.getTimezoneOffset();switch(t){case"x":return wv(i);case"xxxx":case"xx":return Oi(i);case"xxxxx":case"xxx":default:return Oi(i,":")}},O:function(e,t,n){const i=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+vv(i,":");case"OOOO":default:return"GMT"+Oi(i,":")}},z:function(e,t,n){const i=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+vv(i,":");case"zzzz":default:return"GMT"+Oi(i,":")}},t:function(e,t,n){const i=Math.trunc(e.getTime()/1e3);return Qe(i,t.length)},T:function(e,t,n){const i=e.getTime();return Qe(i,t.length)}};function vv(e,t=""){const n=e>0?"-":"+",i=Math.abs(e),s=Math.trunc(i/60),a=i%60;return a===0?n+String(s):n+String(s)+t+Qe(a,2)}function wv(e,t){return e%60===0?(e>0?"-":"+")+Qe(Math.abs(e)/60,2):Oi(e,t)}function Oi(e,t=""){const n=e>0?"-":"+",i=Math.abs(e),s=Qe(Math.trunc(i/60),2),a=Qe(i%60,2);return n+s+t+a}const xv=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Cx=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},qO=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],i=n[1],s=n[2];if(!s)return xv(e,t);let a;switch(i){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",xv(i,t)).replace("{{time}}",Cx(s,t))},QO={p:Cx,P:qO},YO=/^D+$/,KO=/^Y+$/,GO=["D","DD","YY","YYYY"];function XO(e){return YO.test(e)}function JO(e){return KO.test(e)}function ZO(e,t,n){const i=eN(e,t,n);if(console.warn(i),GO.includes(e))throw new RangeError(i)}function eN(e,t,n){const i=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${i} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const tN=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,nN=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,rN=/^'([^]*?)'?$/,iN=/''/g,oN=/[a-zA-Z]/;function Yl(e,t,n){var m,g,w,v;const i=Fu(),s=i.locale??BO,a=i.firstWeekContainsDate??((g=(m=i.locale)==null?void 0:m.options)==null?void 0:g.firstWeekContainsDate)??1,u=i.weekStartsOn??((v=(w=i.locale)==null?void 0:w.options)==null?void 0:v.weekStartsOn)??0,c=Rn(e);if(!aO(c))throw new RangeError("Invalid time value");let f=t.match(nN).map(E=>{const k=E[0];if(k==="p"||k==="P"){const S=QO[k];return S(E,s.formatLong)}return E}).join("").match(tN).map(E=>{if(E==="''")return{isToken:!1,value:"'"};const k=E[0];if(k==="'")return{isToken:!1,value:sN(E)};if(yv[k])return{isToken:!0,value:E};
239if(k.match(oN))throw new RangeError("Format string contains an unescaped latin alphabet character `"+k+"`");return{isToken:!1,value:E}});s.localize.preprocessor&&(f=s.localize.preprocessor(c,f));const h={firstWeekContainsDate:a,weekStartsOn:u,locale:s};return f.map(E=>{if(!E.isToken)return E.value;const k=E.value;(JO(k)||XO(k))&&ZO(k,t,String(e));const S=yv[k[0]];return S(c,k,s.localize,h)}).join("")}function sN(e){const t=e.match(rN);return t?t[1].replace(iN,"'"):e}function aN(e){const t=C.useRef(!1);C.useEffect(()=>{!e||t.current||(t.current=!0,n())},[e]);async function n(){var E,k;const i=new Date,s=i.getDate(),a=Yl(i,"MMMM yyyy"),u=`payment_automation_${Yl(i,"yyyy-MM-dd")}`;if(localStorage.getItem(u))return;localStorage.setItem(u,"1");const c=await ke.entities.Player.list(),f=await ke.entities.Payment.list(),h=await ke.entities.PaymentPlan.list(),m=c.filter(S=>S.status==="active");i.getMonth();const g=Yl(i,"yyyy-MM-dd");for(const S of h){if(!S.is_active)continue;const x=S.expires_on||`${i.getFullYear()}-06-01`;g>=x&&await ke.entities.PaymentPlan.update(S.id,{is_active:!1})}const v=(await ke.entities.PaymentPlan.list()).filter(S=>S.is_active);if(s===1){let S=[];try{const T=await ke.entities.SeasonConfig.filter({is_active:!0});T.length>0&&T[0].months&&(S=JSON.parse(T[0].months))}catch{S=[a]}if(!S.includes(a))return;const x=f.filter(T=>T.month===a),R=new Set(x.map(T=>T.player_id));for(const T of m){if(R.has(T.id))continue;const A=v.find(U=>U.age_group===T.age_group&&U.team===T.team)||v.find(U=>U.age_group===T.age_group&&!U.team);A&&await ke.entities.Payment.create({player_id:T.id,player_name:`${T.first_name} ${T.last_name}`,age_group:T.age_group,amount:A.monthly_amount,month:a,status:"pending",auto_generated:!0,first_reminder_sent:!1,second_reminder_sent:!1})}}if(s===8){const S=f.filter(x=>x.month===a&&x.status==="pending"&&!x.first_reminder_sent);for(const x of S){const R=m.find(T=>T.id===x.player_id);R!=null&&R.parent_email&&(await ke.integrations.Core.SendEmail({to:R.parent_email,subject:`Payment Reminder — ${a} — Montpellier FC`,body:`<p>Dear ${R.parent_name||"Parent/Guardian"},</p>
240<p>We were unable to collect your monthly subscription payment of <strong>£${(E=x.amount)==null?void 0:E.toFixed(2)}</strong> for <strong>${x.player_name}</strong> (${a}).</p>
241<p>We will attempt to collect the payment again in <strong>7 days</strong>. Please ensure your payment details are up to date.</p>
242<p>If you have any questions, please contact us at <a href="mailto:[email protected]">[email protected]</a>.</p>
243<p>Thank you,<br/>Montpellier FC</p>`}),await ke.entities.Payment.update(x.id,{first_reminder_sent:!0,second_collection_date:Yl(tO(i,7),"yyyy-MM-dd")}))}}if(s===15){const S=f.filter(x=>x.month===a&&(x.status==="pending"||x.status==="overdue")&&!x.second_reminder_sent);if(S.length>0){let x=`<h2>⚠️ Outstanding Payments — ${a}</h2>`;x+=`<p>${S.length} player(s) have failed both collection attempts and still have outstanding payments.</p>`,x+='<table border="1" cellpadding="6" cellspacing="0" style="border-collapse:collapse;width:100%">',x+="<tr><th>Player</th><th>Age Group</th><th>
243Amount</th><th>Parent Name</th><th>Parent Email</th><th>Parent Phone</th></tr>";for(const R of S){const T=m.find(A=>A.id===R.player_id);x+=`<tr>
244            <td>${R.player_name}</td>
245            <td>${R.age_group||"—"}</td>
246            <td>£${(k=R.amount)==null?void 0:k.toFixed(2)}</td>
247            <td>${(T==null?void 0:T.parent_name)||"N/A"}</td>
248            <td>${(T==null?void 0:T.parent_email)||"N/A"}</td>
249            <td>${(T==null?void 0:T.parent_phone)||"N/A"}</td>
250          </tr>`}x+="</table>",await Promise.all([ke.integrations.Core.SendEmail({to:"[email protected]",subject:`Outstanding Payments Report — ${a}`,body:x}),ke.integrations.Core.SendEmail({to:"[email protected]",subject:`Outstanding Payments Report — ${a}`,body:x})]);for(const R of S)await ke.entities.Payment.update(R.id,{second_reminder_sent:!0,status:"overdue"})}}}}function lN(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const uN=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,cN=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,dN={};function bv(e,t){return(dN.jsx?cN:uN).test(e)}const fN=/[ \t\n\f\r]/g;function hN(e){return typeof e=="object"?e.type==="text"?kv(e.value):!1:kv(e)}function kv(e){return e.replace(fN,"")===""}class Ca{constructor(t,n,i){this.normal=n,this.property=t,i&&(this.space=i)}}Ca.prototype.normal={};Ca.prototype.property={};Ca.prototype.space=void 0;function Px(e,t){const n={},i={};for(const s of e)Object.assign(n,s.property),Object.assign(i,s.normal);return new Ca(n,i,t)}function Xf(e){return e.toLowerCase()}class an{constructor(t,n){this.attribute=n,this.property=t}}an.prototype.attribute="";an.prototype.booleanish=!1;an.prototype.boolean=!1;an.prototype.commaOrSpaceSeparated=!1;an.prototype.commaSeparated=!1;an.prototype.defined=!1;an.prototype.mustUseProperty=!1;an.prototype.number=!1;an.prototype.overloadedBoolean=!1;an.prototype.property="";an.prototype.spaceSeparated=!1;an.prototype.space=void 0;let pN=0;const Ie=Gi(),pt=Gi(),Jf=Gi(),ie=Gi(),Xe=Gi(),Ao=Gi(),mn=Gi();function Gi(){return 2**++pN}const Zf=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ie,booleanish:pt,commaOrSpaceSeparated:mn,commaSeparated:Ao,number:ie,overloadedBoolean:Jf,spaceSeparated:Xe},Symbol.toStringTag,{value:"Module"})),Jd=Object.keys(Zf);class jh extends an{constructor(t,n,i,s){let a=-1;if(super(t,n),Sv(this,"space",s),typeof i=="number")for(;++a<Jd.length;){const u=Jd[a];Sv(this,Jd[a],(i&Zf[u])===Zf[u])}}}jh.prototype.defined=!0;function Sv(e,t,n){n&&(e[t]=n)}function Zo(e){const t={},n={};for(const[i,s]of Object.entries(e.properties)){const a=new jh(i,e.transform(e.attributes||{},i),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(a.mustUseProperty=!0),t[i]=a,n[Xf(i)]=i,n[Xf(a.attribute)]=i}return new Ca(t,n,e.space)}const Tx=Zo({properties:{ariaActiveDescendant:null,ariaAtomic:pt,ariaAutoComplete:null,ariaBusy:pt,ariaChecked:pt,ariaColCount:ie,ariaColIndex:ie,ariaColSpan:ie,ariaControls:Xe,ariaCurrent:null,ariaDescribedBy:Xe,ariaDetails:null,ariaDisabled:pt,ariaDropEffect:Xe,ariaErrorMessage:null,ariaExpanded:pt,ariaFlowTo:Xe,ariaGrabbed:pt,ariaHasPopup:null,ariaHidden:pt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Xe,ariaLevel:ie,ariaLive:null,ariaModal:pt,ariaMultiLine:pt,ariaMultiSelectable:pt,ariaOrientation:null,ariaOwns:Xe,ariaPlaceholder:null,ariaPosInSet:ie,ariaPressed:pt,ariaReadOnly:pt,ariaRelevant:null,ariaRequired:pt,ariaRoleDescription:Xe,ariaRowCount:ie,ariaRowIndex:ie,ariaRowSpan:ie,ariaSelected:pt,ariaSetSize:ie,ariaSort:null,ariaValueMax:ie,ariaValueMin:ie,ariaValueNow:ie,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Rx(e,t){return t in e?e[t]:t}function Ox(e,t){return Rx(e,t.toLowerCase())}const mN=Zo({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ao,acceptCharset:Xe,accessKey:Xe,action:null,allow:null,allowFullScreen:Ie,allowPaymentRequest:Ie,allowUserMedia:Ie,alt:null,as:null,async:Ie,autoCapitalize:null,autoComplete:Xe,autoFocus:Ie,autoPlay:Ie,blocking:Xe,capture:null,charSet:null,checked:Ie,cite:null,className:Xe,cols:ie,colSpan:null,content:null,contentEditable:pt,controls:Ie,controlsList:Xe,co
250ords:ie|Ao,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ie,defer:Ie,dir:null,dirName:null,disabled:Ie,download:Jf,draggable:pt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ie,formTarget:null,headers:Xe,height:ie,hidden:Jf,high:ie,href:null,hrefLang:null,htmlFor:Xe,httpEquiv:Xe,id:null,imageSizes:null,imageSrcSet:null,inert:Ie,inputMode:null,integrity:null,is:null,isMap:Ie,itemId:null,itemProp:Xe,itemRef:Xe,itemScope:Ie,itemType:Xe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ie,low:ie,manifest:null,max:null,maxLength:ie,media:null,method:null,min:null,minLength:ie,multiple:Ie,muted:Ie,name:null,nonce:null,noModule:Ie,noValidate:Ie,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Ie,optimum:ie,pattern:null,ping:Xe,placeholder:null,playsInline:Ie,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ie,referrerPolicy:null,rel:Xe,required:Ie,reversed:Ie,rows:ie,rowSpan:ie,sandbox:Xe,scope:null,scoped:Ie,seamless:Ie,selected:Ie,shadowRootClonable:Ie,shadowRootDelegatesFocus:Ie,shadowRootMode:null,shape:null,size:ie,sizes:null,slot:null,span:ie,spellCheck:pt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ie,step:null,style:null,tabIndex:ie,target:null,title:null,translate:null,type:null,typeMustMatch:Ie,useMap:null,value:pt,width:ie,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Xe,axis:null,background:null,bgColor:null,border:ie,borderColor:null,bottomMargin:ie,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ie,declare:Ie,event:null,face:null,frame:null,frameBorder:null,hSpace:ie,leftMargin:ie,link:null,longDesc:null,lowSrc:null,marginHeight:ie,marginWidth:ie,noResize:Ie,noHref:Ie,noShade:Ie,noWrap:Ie,object:null,profile:null,prompt:null,rev:null,rightMargin:ie,rules:null,scheme:null,scrolling:pt,standby:null,summary:null,text:null,topMargin:ie,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ie,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ie,disableRemotePlayback:Ie,prefix:null,property:null,results:ie,security:null,unselectable:null},space:"html",transform:Ox}),gN=Zo({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackgroun
250d:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:mn,accentHeight:ie,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ie,amplitude:ie,arabicForm:null,ascent:ie,attributeName:null,attributeType:null,azimuth:ie,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ie,by:null,calcMode:null,capHeight:ie,className:Xe,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRen
250dering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ie,diffuseConstant:ie,direction:null,display:null,dur:null,divisor:ie,dominantBaseline:null,download:Ie,dx:null,dy:null,edgeMode:null,editable:null,elevation:ie,enableBackground:null,end:null,event:null,exponent:ie,externalResourcesRequired:null,fill:null,fillOpacity:ie,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ao,g2:Ao,glyphName:Ao,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ie,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ie,horizOriginX:ie,horizOriginY:ie,id:null,ideographic:ie,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ie,k:ie,k1:ie,k2:ie,k3:ie,k4:ie,kernelMatrix:mn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ie,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ie,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ie,overlineThickness:ie,paintOrder:null,panose1:null,path:null,pathLength:ie,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Xe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ie,pointsAtY:ie,pointsAtZ:ie,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:mn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:mn,rev:mn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:mn,requiredFeatures:mn,requiredFonts:mn,requiredFormats:mn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ie,specularExponent:ie,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ie,strikethroughThickness:ie,string:null,stroke:null,strokeDashArray:mn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ie,strokeOpacity:ie,strokeWidth:null,style:null,surfaceScale:ie,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:mn,tabIndex:ie,tableValues:null,target:null,targetX:ie,targetY:ie,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:mn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ie,underlineThickness:ie,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ie,values:null,vAlphabetic:ie,vMathematical:ie,vectorEffect:null,vHanging:ie,vIdeographic:ie,version:null,vertAdvY:ie,vertOriginX:ie,vertOriginY:ie,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ie,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Rx}),Nx=Zo({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}
vendor: 4,128 bytes, lines 250-251
250,space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Ax=Zo({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Ox}),Ix=Zo({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),yN={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},vN=/[A-Z]/g,Ev=/-[a-z]/g,wN=/^data[-\w.:]+$/i;function xN(e,t){const n=Xf(t);let i=t,s=an;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&wN.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(Ev,kN);i="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!Ev.test(a)){let u=a.replace(vN,bN);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}s=jh}return new s(i,t)}function bN(e){return"-"+e.toLowerCase()}function kN(e){return e.charAt(1).toUpperCase()}const SN=Px([Tx,mN,Nx,Ax,Ix],"html"),Fh=Px([Tx,gN,Nx,Ax,Ix],"svg");function EN(e){return e.join(" ").trim()}var _o={},Zd,_v;function _N(){if(_v)return Zd;_v=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,c=/^\s+|\s+$/g,f=`
251`,h="/",m="*",g="",w="comment",v="declaration";function E(S,x){if(typeof S!="string")throw new TypeError("First argument must be a string");if(!S)return[];x=x||{};var R=1,T=1;function A(te){var J=te.match(t);J&&(R+=J.length);var me=te.lastIndexOf(f);T=~me?te.length-me:T+te.length}function U(){var te={line:R,column:T};return function(J){return J.position=new L(te),K(),J}}function L(te){this.start=te,this.end={line:R,column:T},this.source=x.source}L.prototype.content=S;function W(te){var J=new Error(x.source+":"+R+":"+T+": "+te);if(J.reason=te,J.filename=x.source,J.line=R,J.column=T,J.source=S,!x.silent)throw J}function M(te){var J=te.exec(S);if(J){var me=J[0];return A(me),S=S.slice(me.length),J}}function K(){M(n)}function H(te){var J;for(te=te||[];J=Q();)J!==!1&&te.push(J);return te}function Q(){var te=U();if(!(h!=S.charAt(0)||m!=S.charAt(1))){for(var J=2;g!=S.charAt(J)&&(m!=S.charAt(J)||h!=S.charAt(J+1));)++J;if(J+=2,g===S.charAt(J-1))return W("End of comment missing");var me=S.slice(2,J-2);return T+=2,A(me),S=S.slice(J),T+=2,te({type:w,comment:me})}}function G(){var te=U(),J=M(i);if(J){if(Q(),!M(s))return W("property missing ':'");var me=M(a),be=te({type:v,property:k(J[0].replace(e,g)),value:me?k(me[0].replace(e,g)):g});return M(u),be}}function le(){var te=[];H(te);for(var J;J=G();)J!==!1&&(te.push(J),H(te));return te}return K(),le()}function k(S){return S?S.replace(c,g):g}return Zd=E,Zd}var Cv;function CN(){if(Cv)return _o;Cv=1;var e=_o&&_o.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(_o,"__esModule",{value:!0}),_o.default=n;const t=e(_N());function n(i,s){let a=null;if(!i||typeof i!="string")return a;const u=(0,t.default)(i),c=typeof s=="function";return u.forEach(f=>{if(f.type!=="declaration")return;const{property:h,value:m}=f;c?s(h,m,f):m&&(a=a||{},a[h]=m)}),a}return _o}var Hs={},Pv;function PN(){if(Pv)return Hs;Pv=1,Object.defineProperty(Hs,"__esModule",{value:!0}),Hs.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,a=function(h){return!h||n.test(h)||e.test(h)},u=function(h,m){return m.toUpperCase()},c=function(h,m){return"".concat(m,"-")},f=function(h,m){return m===void 0&&(m={}),a(h)?h:(h=h.toLowerCase(),m.reactCompat?h=h.replace(s,c):h=h.replace(i,c),h.replace(t,u))};return Hs.camelCase=f,Hs}var Ws,Tv;function TN(){if(Tv)return Ws;Tv=1;var e=Ws&&Ws.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},t=e(CN()),n=PN();function i(s,a){var u={};
vendor: 2,733 bytes, line 251
251return!s||typeof s!="string"||(0,t.default)(s,function(c,f){c&&f&&(u[(0,n.camelCase)(c,a)]=f)}),u}return i.default=i,Ws=i,Ws}var RN=TN();const ON=va(RN),Lx=Dx("end"),zh=Dx("start");function Dx(e){return t;function t(n){const i=n&&n.position&&n.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function NN(e){const t=zh(e),n=Lx(e);if(t&&n)return{start:t,end:n}}function ea(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Rv(e.position):"start"in e||"end"in e?Rv(e):"line"in e||"column"in e?eh(e):""}function eh(e){return Ov(e&&e.line)+":"+Ov(e&&e.column)}function Rv(e){return eh(e&&e.start)+"-"+eh(e&&e.end)}function Ov(e){return e&&typeof e=="number"?e:1}class Bt extends Error{constructor(t,n,i){super(),typeof n=="string"&&(i=n,n=void 0);let s="",a={},u=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?s=t:!a.cause&&t&&(u=!0,s=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof i=="string"){const f=i.indexOf(":");f===-1?a.ruleId=i:(a.source=i.slice(0,f),a.ruleId=i.slice(f+1))}if(!a.place&&a.ancestors&&a.ancestors){const f=a.ancestors[a.ancestors.length-1];f&&(a.place=f.position)}const c=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=c?c.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=c?c.line:void 0,this.name=ea(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=u&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Bt.prototype.file="";Bt.prototype.name="";Bt.prototype.reason="";Bt.prototype.message="";Bt.prototype.stack="";Bt.prototype.column=void 0;Bt.prototype.line=void 0;Bt.prototype.ancestors=void 0;Bt.prototype.cause=void 0;Bt.prototype.fatal=void 0;Bt.prototype.place=void 0;Bt.prototype.ruleId=void 0;Bt.prototype.source=void 0;const Uh={}.hasOwnProperty,AN=new Map,IN=/[A-Z]/g,LN=new Set(["table","tbody","thead","tfoot","tr"]),DN=new Set(["td","th"]),Mx="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function MN(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=HN(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");
vendor: 6,302 bytes, line 251
251if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=VN(n,t.jsx,t.jsxs)}const s={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Fh:SN,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=jx(s,e,void 0);return a&&typeof a!="string"?a:s.create(e,s.Fragment,{children:a||void 0},void 0)}function jx(e,t,n){if(t.type==="element")return jN(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return FN(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return UN(e,t,n);if(t.type==="mdxjsEsm")return zN(e,t);if(t.type==="root")return BN(e,t,n);if(t.type==="text")return $N(e,t)}function jN(e,t,n){const i=e.schema;let s=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(s=Fh,e.schema=s),e.ancestors.push(t);const a=zx(e,t.tagName,!1),u=WN(e,t);let c=$h(e,t);return LN.has(t.tagName)&&(c=c.filter(function(f){return typeof f=="string"?!hN(f):!0})),Fx(e,u,a,t),Bh(u,c),e.ancestors.pop(),e.schema=i,e.create(t,a,u,n)}function FN(e,t){if(t.data&&t.data.estree&&e.evaluater){const i=t.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}ca(e,t.position)}function zN(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ca(e,t.position)}function UN(e,t,n){const i=e.schema;let s=i;t.name==="svg"&&i.space==="html"&&(s=Fh,e.schema=s),e.ancestors.push(t);const a=t.name===null?e.Fragment:zx(e,t.name,!0),u=qN(e,t),c=$h(e,t);return Fx(e,u,a,t),Bh(u,c),e.ancestors.pop(),e.schema=i,e.create(t,a,u,n)}function BN(e,t,n){const i={};return Bh(i,$h(e,t)),e.create(t,e.Fragment,i,n)}function $N(e,t){return t.value}function Fx(e,t,n,i){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=i)}function Bh(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function VN(e,t,n){return i;function i(s,a,u,c){const h=Array.isArray(u.children)?n:t;return c?h(a,u,c):h(a,u)}}function HN(e,t){return n;function n(i,s,a,u){const c=Array.isArray(a.children),f=zh(i);return t(s,a,u,c,{columnNumber:f?f.column-1:void 0,fileName:e,lineNumber:f?f.line:void 0},void 0)}}function WN(e,t){const n={};let i,s;for(s in t.properties)if(s!=="children"&&Uh.call(t.properties,s)){const a=QN(e,s,t.properties[s]);if(a){const[u,c]=a;e.tableCellAlignToStyle&&u==="align"&&typeof c=="string"&&DN.has(t.tagName)?i=c:n[u]=c}}if(i){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return n}function qN(e,t){const n={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const a=i.data.estree.body[0];a.type;const u=a.expression;u.type;const c=u.properties[0];c.type,Object.assign(n,e.evaluater.evaluateExpression(c.argument))}else ca(e,t.position);else{const s=i.name;let a;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const c=i.value.data.estree.body[0];c.type,a=e.evaluater.evaluateExpression(c.expression)}else ca(e,t.position);else a=i.value===null?!0:i.value;n[s]=a}return n}function $h(e,t){const n=[];let i=-1;const s=e.passKeys?new Map:AN;for(;++i<t.children.length;){const a=t.children[i];let u;if(e.passKeys){const f=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(f){const h=s.get(f)||0;u=f+"-"+h,s.set(f,h+1)}}const c=jx(e,a,u);c!==void 0&&n.push(c)}return n}function QN(e,t,n){const i=xN(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?lN(n):EN(n)),i.property==="style"){let s=typeof n=="object"?n:YN(e,String(n));return e.stylePropertyNameCase==="css"&&(s=KN(s)),["style",s]}return[e.elementAttributeNameCase==="react"&&i.space?yN[i.property]||i.property:i.attribute,n]}}function YN(e,t){try{return ON(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const i=n,s=new Bt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=e.filePath||void 0,s.url=Mx+"#cannot-parse-style-attribute",s}}function zx(e,t,n){let i;if(!n)i={type:"Literal",value:t};else if(t.includes(".")){const s=t.split(".");let a=-1,u;for(;++a<s.length;){const c=bv(s[a])?{type:"Identifier",name:s[a]}:{type:"Literal",value:s[a]};u=u?{type:"MemberExpression",object:u,property:c,computed:!!(a&&c.type==="Literal"),optional:!1}:c}i=u}else i=bv(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const s=i.value;return Uh.call(e.components,s)?e.components[s]:s}if(e.evaluater)return e.evaluater.evaluateExpression(i);ca(e)}function ca(e,t){const n=new Bt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Mx+"#cannot-handle-mdx-estrees-without-createevaluater",n}function KN(e){const t={};let n;for(n in e)Uh.call(e,n)&&(t[GN(n)]=e[n]);return t}function GN(e){let t=e.replace(IN,XN);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function XN(e){return"-"+e.toLowerCase()}const ef={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},JN={};function ZN(e,t){const n=JN,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,s=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Ux(e,i,s)}function Ux(e,t,n){if(eA(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Nv(e.children,t,n)}return Array.isArray(e)?Nv(e,t,n):""}function Nv(e,t,n){const i=[];let s=-1;for(;++s<e.length;)i[s]=Ux(e[s],t,n);return i.join("")}function eA(e){return!!(e&&typeof e=="object")}const Av=document.createElement("i");function Vh(e){const t="&"+e+";";Av.innerHTML=t;const n=Av.textContent;
vendor: 10,880 bytes, line 251
251return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function or(e,t,n,i){const s=e.length;let a=0,u;if(t<0?t=-t>s?0:s+t:t=t>s?s:t,n=n>0?n:0,i.length<1e4)u=Array.from(i),u.unshift(t,n),e.splice(...u);else for(n&&e.splice(t,n);a<i.length;)u=i.slice(a,a+1e4),u.unshift(t,0),e.splice(...u),a+=1e4,t+=1e4}function Tn(e,t){return e.length>0?(or(e,e.length,0,t),e):t}const Iv={}.hasOwnProperty;function tA(e){const t={};let n=-1;for(;++n<e.length;)nA(t,e[n]);return t}function nA(e,t){let n;for(n in t){const s=(Iv.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let u;if(a)for(u in a){Iv.call(s,u)||(s[u]=[]);const c=a[u];rA(s[u],Array.isArray(c)?c:c?[c]:[])}}}function rA(e,t){let n=-1;const i=[];for(;++n<t.length;)(t[n].add==="after"?e:i).push(t[n]);or(e,0,0,i)}function Bx(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Io(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const tr=fi(/[A-Za-z]/),gn=fi(/[\dA-Za-z]/),iA=fi(/[#-'*+\--9=?A-Z^-~]/);function th(e){return e!==null&&(e<32||e===127)}const nh=fi(/\d/),oA=fi(/[\dA-Fa-f]/),sA=fi(/[!-/:-@[-`{-~]/);function Ne(e){return e!==null&&e<-2}function sn(e){return e!==null&&(e<0||e===32)}function Ve(e){return e===-2||e===-1||e===32}const aA=fi(new RegExp("\\p{P}|\\p{S}","u")),lA=fi(/\s/);function fi(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function es(e){const t=[];let n=-1,i=0,s=0;for(;++n<e.length;){const a=e.charCodeAt(n);let u="";if(a===37&&gn(e.charCodeAt(n+1))&&gn(e.charCodeAt(n+2)))s=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(u=String.fromCharCode(a));else if(a>55295&&a<57344){const c=e.charCodeAt(n+1);a<56320&&c>56319&&c<57344?(u=String.fromCharCode(a,c),s=1):u="�"}else u=String.fromCharCode(a);u&&(t.push(e.slice(i,n),encodeURIComponent(u)),i=n+s+1,u=""),s&&(n+=s,s=0)}return t.join("")+e.slice(i)}function Je(e,t,n,i){const s=i?i-1:Number.POSITIVE_INFINITY;let a=0;return u;function u(f){return Ve(f)?(e.enter(n),c(f)):t(f)}function c(f){return Ve(f)&&a++<s?(e.consume(f),c):(e.exit(n),t(f))}}const uA={tokenize:cA};function cA(e){const t=e.attempt(this.parser.constructs.contentInitial,i,s);let n;return t;function i(c){if(c===null){e.consume(c);return}return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),Je(e,t,"linePrefix")}function s(c){return e.enter("paragraph"),a(c)}function a(c){const f=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=f),n=f,u(c)}function u(c){if(c===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(c);return}return Ne(c)?(e.consume(c),e.exit("chunkText"),a):(e.consume(c),u)}}const dA={tokenize:fA},Lv={tokenize:hA};function fA(e){const t=this,n=[];let i=0,s,a,u;return c;function c(T){if(i<n.length){const A=n[i];return t.containerState=A[1],e.attempt(A[0].continuation,f,h)(T)}return h(T)}function f(T){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,s&&R();const A=t.events.length;let U=A,L;for(;U--;)if(t.events[U][0]==="exit"&&t.events[U][1].type==="chunkFlow"){L=t.events[U][1].end;break}x(i);let W=A;for(;W<t.events.length;)t.events[W][1].end={...L},W++;return or(t.events,U+1,0,t.events.slice(A)),t.events.length=W,h(T)}return c(T)}function h(T){if(i===n.length){if(!s)return w(T);if(s.currentConstruct&&s.currentConstruct.concrete)return E(T);t.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Lv,m,g)(T)}function m(T){return s&&R(),x(i),w(T)}function g(T){return t.parser.lazy[t.now().line]=i!==n.length,u=t.now().offset,E(T)}function w(T){return t.containerState={},e.attempt(Lv,v,E)(T)}function v(T){return i++,n.push([t.currentConstruct,t.containerState]),w(T)}function E(T){if(T===null){s&&R(),x(0),e.consume(T);return}return s=s||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:a}),k(T)}function k(T){if(T===null){S(e.exit("chunkFlow"),!0),x(0),e.consume(T);return}return Ne(T)?(e.consume(T),S(e.exit("chunkFlow")),i=0,t.interrupt=void 0,c):(e.consume(T),k)}function S(T,A){const U=t.sliceStream(T);if(A&&U.push(null),T.previous=a,a&&(a.next=T),a=T,s.defineSkip(T.start),s.write(U),t.parser.lazy[T.start.line]){let L=s.events.length;for(;L--;)if(s.events[L][1].start.offset<u&&(!s.events[L][1].end||s.events[L][1].end.offset>u))return;const W=t.events.length;let M=W,K,H;for(;M--;)if(t.events[M][0]==="exit"&&t.events[M][1].type==="chunkFlow"){if(K){H=t.events[M][1].end;break}K=!0}for(x(i),L=W;L<t.events.length;)t.events[L][1].end={...H},L++;or(t.events,M+1,0,t.events.slice(W)),t.events.length=L}}function x(T){let A=n.length;for(;A-- >T;){const U=n[A];t.containerState=U[1],U[0].exit.call(t,e)}n.length=T}function R(){s.write([null]),a=void 0,s=void 0,t.containerState._closeFlow=void 0}}function hA(e,t,n){return Je(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Dv(e){if(e===null||sn(e)||lA(e))return 1;if(aA(e))return 2}function Hh(e,t,n){const i=[];let s=-1;for(;++s<e.length;){const a=e[s].resolveAll;a&&!i.includes(a)&&(t=a(t,n),i.push(a))}return t}const rh={name:"attention",resolveAll:pA,tokenize:mA};function pA(e,t){let n=-1,i,s,a,u,c,f,h,m;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(i=n;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;f=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const g={...e[i][1].end},w={...e[n][1].start};Mv(g,-f),Mv(w,f),u={type:f>1?"strongSequence":"emphasisSequence",start:g,end:{...e[i][1].end}},c={type:f>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:w},a={type:f>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},s={type:f>1?"strong":"emphasis",start:{...u.start},end:{...c.end}},e[i][1].end={...u.start},e[n][1].start={...c.end},h=[],e[i][1].end.offset-e[i][1].start.offset&&(h=Tn(h,[["enter",e[i][1],t],["exit",e[i][1],t]])),h=Tn(h,[["enter",s,t],["enter",u,t],["exit",u,t],["enter",a,t]]),h=Tn(h,Hh(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),h=Tn(h,[["exit",a,t],["enter",c,t],["exit",c,t],["exit",s,t]]),e[n][1].end.offset-e[n][1].start.offset?(m=2,h=Tn(h,[["enter",e[n][1],t],["exit",e[n][1],t]])):m=0,or(e,i-1,n-i+3,h),n=i+h.length-m-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function mA(e,t){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,s=Dv(i);let a;return u;function u(f){return a=f,e.enter("attentionSequence"),c(f)}function c(f){if(f===a)return e.consume(f),c;const h=e.exit("attentionSequence"),m=Dv(f),g=!m||m===2&&s||n.includes(f),w=!s||s===2&&m||n.includes(i);return h._open=!!(a===42?g:g&&(s||!w)),h._close=!!(a===42?w:w&&(m||!g)),t(f)}}function Mv(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const gA={name:"autolink",tokenize:yA};function yA(e,t,n){let i=0;return s;function s(v){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(v),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(v){return tr(v)?(e.consume(v),u):v===64?n(v):h(v)}function u(v){return v===43||v===45||v===46||gn(v)?(i=1,c(v)):h(v)}function c(v){return v===58?(e.consume(v),i=0,f):(v===43||v===45||v===46||gn(v))&&i++<32?(e.consume(v),c):(i=0,h(v))}function f(v){return v===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(v),e.exit("autolinkMarker"),e.exit("autolink"),t):v===null||v===32||v===60||th(v)?n(v):(e.consume(v),f)}function h(v){return v===64?(e.consume(v),m):iA(v)?(e.consume(v),h):n(v)}function m(v){return gn(v)?g(v):n(v)}function g(v){return v===46?(e.consume(v),i=0,m):v===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(v),e.exit("autolinkMarker"),e.exit("autolink"),t):w(v)}function w(v){if((v===45||gn(v))&&i++<63){const E=v===45?w:g;return e.consume(v),E}return n(v)}}const zu={partial:!0,tokenize:vA};function vA(e,t,n){return i;function i(a){return Ve(a)?Je(e,s,"linePrefix")(a):s(a)}function s(a){return a===null||Ne(a)?t(a):n(a)}}const $x={continuation:{tokenize:xA},exit:bA,name:"blockQuote",tokenize:wA};function wA(e,t,n){const i=this;return s;function s(u){if(u===62){const c=i.containerState;return c.open||(e.enter("blockQuote",{_container:!0}),c.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),a}return n(u)}function a(u){return Ve(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(u))}}function xA(e,t,n){const i=this;return s;function s(u){return Ve(u)?Je(e,a,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):a(u)}function a(u){return e.attempt($x,t,n)(u)}}function bA(e){e.exit("blockQuote")}const Vx={name:"characterEscape",tokenize:kA};function kA(e,t,n){return i;function i(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),s}function s(a){return sA(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}const Hx={name:"characterReference",tokenize:SA};function SA(e,t,n){const i=this;let s=0,a,u;return c;function c(g){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),f}function f(g){return g===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(g),e.exit("characterReferenceMarkerNumeric"),h):(e.enter("characterReferenceValue"),a=31,u=gn,m(g))}function h(g){return g===88||g===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(g),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,u=oA,m):(e.enter("characterReferenceValue"),a=7,u=nh,m(g))}function m(g){if(g===59&&s){const w=e.exit("characterReferenceValue");return u===gn&&!Vh(i.sliceSerialize(w))?n(g):(e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return u(g)&&s++<a?(e.consume(g),m):n(g)}}const jv={partial:!0,tokenize:_A},Fv={concrete:!0,name:"codeFenced",tokenize:EA};function EA(e,t,n){const i=this,s={partial:!0,tokenize:U};let a=0,u=0,c;return f;function f(L){return h(L)}function h(L){const W=i.events[i.events.length-1];return a=W&&W[1].type==="linePrefix"?W[2].sliceSerialize(W[1],!0).length:0,c=L,e.enter("co
251deFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),m(L)}function m(L){return L===c?(u++,e.consume(L),m):u<3?n(L):(e.exit("codeFencedFenceSequence"),Ve(L)?Je(e,g,"whitespace")(L):g(L))}function g(L){return L===null||Ne(L)?(e.exit("codeFencedFence"),i.interrupt?t(L):e.check(jv,k,A)(L)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),w(L))}function w(L){return L===null||Ne(L)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),g(L)):Ve(L)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Je(e,v,"whitespace")(L)):L===96&&L===c?n(L):(e.consume(L),w)}function v(L){return L===null||Ne(L)?g(L):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),E(L))}function E(L){return L===null||Ne(L)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),g(L)):L===96&&L===c?n(L):(e.consume(L),E)}function k(L){return e.attempt(s,A,S)(L)}function S(L){return e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),x}function x(L){return a>0&&Ve(L)?Je(e,R,"linePrefix",a+1)(L):R(L)}function R(L){return L===null||Ne(L)?e.check(jv,k,A)(L):(e.enter("codeFlowValue"),T(L))}function T(L){return L===null||Ne(L)?(e.exit("codeFlowValue"),R(L)):(e.consume(L),T)}function A(L){return e.exit("codeFenced"),t(L)}function U(L,W,M){let K=0;return H;function H(J){return L.enter("lineEnding"),L.consume(J),L.exit("lineEnding"),Q}function Q(J){return L.enter("codeFencedFence"),Ve(J)?Je(L,G,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(J):G(J)}function G(J){return J===c?(L.enter("codeFencedFenceSequence"),le(J)):M(J)}function le(J){return J===c?(K++,L.consume(J),le):K>=u?(L.exit("codeFencedFenceSequence"),Ve(J)?Je(L,te,"whitespace")(J):te(J)):M(J)}function te(J){return J===null||Ne(J)?(L.exit("codeFencedFence"),W(J)):M(J)}}}function _A(e,t,n){const i=this;return s;function s(u){return u===null?n(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),a)}function a(u){return i.parser.lazy[i.now().line]?n(u):t(u)}}const tf={name:"codeIndented",tokenize:PA},CA={partial:!0,tokenize:TA};function PA(e,t,n){const i=this;return s;function s(h){return e.enter("codeIndented"),Je(e,a,"linePrefix",5)(h)}function a(h){const m=i.events[i.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?u(h):n(h)}function u(h){return h===null?f(h):Ne(h)?e.attempt(CA,u,f)(h):(e.enter("codeFlowValue"),c(h))}function c(h){return h===null||Ne(h)?(e.exit("codeFlowValue"),u(h)):(e.consume(h),c)}function f(h){return e.exit("codeIndented"),t(h)}}function TA(e,t,n){const i=this;return s;function s(u){return i.parser.lazy[i.now().line]?n(u):Ne(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),s):Je(e,a,"linePrefix",5)(u)}function a(u){const c=i.events[i.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(u):Ne(u)?s(u):n(u)}}const RA={name:"codeText",previous:NA,resolve:OA,tokenize:AA};function OA(e){let t=e.length-4,n=3,i,s;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i<t;)if(e[i][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(i=n-1,t++;++i<=t;)s===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(s=i):(i===t||e[i][1].type==="lineEnding")&&(e[s][1].type="codeTextData",i!==s+2&&(e[s][1].end=e[i-1][1].end,e.splice(s+2,i-s-2),t-=i-s-2,i=s+2),s=void 0);return e}function NA(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function AA(e,t,n){let i=0,s,a;return u;function u(g){return e.enter("codeText"),e.enter("codeTextSequence"),c(g)}function c(g){return g===96?(e.consume(g),i++,c):(e.exit("codeTextSequence"),f(g))}function f(g){return g===null?n(g):g===32?(e.enter("space"),e.consume(g),e.exit("space"),f):g===96?(a=e.enter("codeTextSequence"),s=0,m(g)):Ne(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),f):(e.enter("codeTextData"),h(g))}function h(g){return g===null||g===32||g===96||Ne(g)?(e.exit("codeTextData"),f(g)):(e.consume(g),h)}function m(g){return g===96?(e.consume(g),s++,m):s===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(g)):(a.type="codeTextData",h(g))}}class IA{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const i=n??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,n,i){const s=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return i&&qs(this.left,i),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),qs(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),qs(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);qs(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);qs(this.left,n.reverse())}}}function qs(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Wx(e){const t={};let n=-1,i,s,a,u,c,f,h;const m=new IA(e);for(;++n<m.length;){for(;n in t;)n=t[n];if(i=m.get(n),n&&i[1].type==="chunkFlow"&&m.get(n-1)[1].type==="listItemPrefix"&&(f=i[1]._tokenizer.events,a=0,a<f.length&&f[a][1].type==="lineEndingBlank"&&(a+=2),a<f.length&&f[a][1].type==="content"))for(;++a<f.length&&f[a][1].type!=="content";)f[a][1].type==="chunkText"&&(f[a][1]._isInFirstContentOfListItem=!0,a++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,LA(m,n)),n=t[n],h=!0);else if(i[1]._container){for(a=n,s=void 0;a--;)if(u=m.get(a),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(s&&(m.get(s)[1].type="lineEndingBlank"),u[1].type="lineEnding",s=a);else if(!(u[1].type==="linePrefix"||u[1].type==="listItemIndent"))break;s&&(i[1].end={...m.get(s)[1].start},c=m.slice(s,n),c.unshift(i),m.splice(s,n-s+1,c))}}return or(e,0,Number.POSITIVE_INFINITY,m.slice(0)),!h}function LA(e,t){const n=e.get(t)[1],i=e.get(t)[2];let s=t-1;const a=[];let u=n._tokenizer;u||(u=i.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));const c=u.events,f=[],h={};let m,g,w=-1,v=n,E=0,k=0;const S=[k];for(;v;){for(;e.get(++s)[1]!==v;);a.push(s),v._tokenizer||(m=i.sliceStream(v),v.next||m.push(null),g&&u.defineSki
vendor: 18,600 bytes, line 251
251p(v.start),v._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(m),v._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),g=v,v=v.next}for(v=n;++w<c.length;)c[w][0]==="exit"&&c[w-1][0]==="enter"&&c[w][1].type===c[w-1][1].type&&c[w][1].start.line!==c[w][1].end.line&&(k=w+1,S.push(k),v._tokenizer=void 0,v.previous=void 0,v=v.next);for(u.events=[],v?(v._tokenizer=void 0,v.previous=void 0):S.pop(),w=S.length;w--;){const x=c.slice(S[w],S[w+1]),R=a.pop();f.push([R,R+x.length-1]),e.splice(R,2,x)}for(f.reverse(),w=-1;++w<f.length;)h[E+f[w][0]]=E+f[w][1],E+=f[w][1]-f[w][0]-1;return h}const DA={resolve:jA,tokenize:FA},MA={partial:!0,tokenize:zA};function jA(e){return Wx(e),e}function FA(e,t){let n;return i;function i(c){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),s(c)}function s(c){return c===null?a(c):Ne(c)?e.check(MA,u,a)(c):(e.consume(c),s)}function a(c){return e.exit("chunkContent"),e.exit("content"),t(c)}function u(c){return e.consume(c),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,s}}function zA(e,t,n){const i=this;return s;function s(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),Je(e,a,"linePrefix")}function a(u){if(u===null||Ne(u))return n(u);const c=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(u):e.interrupt(i.parser.constructs.flow,n,t)(u)}}function qx(e,t,n,i,s,a,u,c,f){const h=f||Number.POSITIVE_INFINITY;let m=0;return g;function g(x){return x===60?(e.enter(i),e.enter(s),e.enter(a),e.consume(x),e.exit(a),w):x===null||x===32||x===41||th(x)?n(x):(e.enter(i),e.enter(u),e.enter(c),e.enter("chunkString",{contentType:"string"}),k(x))}function w(x){return x===62?(e.enter(a),e.consume(x),e.exit(a),e.exit(s),e.exit(i),t):(e.enter(c),e.enter("chunkString",{contentType:"string"}),v(x))}function v(x){return x===62?(e.exit("chunkString"),e.exit(c),w(x)):x===null||x===60||Ne(x)?n(x):(e.consume(x),x===92?E:v)}function E(x){return x===60||x===62||x===92?(e.consume(x),v):v(x)}function k(x){return!m&&(x===null||x===41||sn(x))?(e.exit("chunkString"),e.exit(c),e.exit(u),e.exit(i),t(x)):m<h&&x===40?(e.consume(x),m++,k):x===41?(e.consume(x),m--,k):x===null||x===32||x===40||th(x)?n(x):(e.consume(x),x===92?S:k)}function S(x){return x===40||x===41||x===92?(e.consume(x),k):k(x)}}function Qx(e,t,n,i,s,a){const u=this;let c=0,f;return h;function h(v){return e.enter(i),e.enter(s),e.consume(v),e.exit(s),e.enter(a),m}function m(v){return c>999||v===null||v===91||v===93&&!f||v===94&&!c&&"_hiddenFootnoteSupport"in u.parser.constructs?n(v):v===93?(e.exit(a),e.enter(s),e.consume(v),e.exit(s),e.exit(i),t):Ne(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),g(v))}function g(v){return v===null||v===91||v===93||Ne(v)||c++>999?(e.exit("chunkString"),m(v)):(e.consume(v),f||(f=!Ve(v)),v===92?w:g)}function w(v){return v===91||v===92||v===93?(e.consume(v),c++,g):g(v)}}function Yx(e,t,n,i,s,a){let u;return c;function c(w){return w===34||w===39||w===40?(e.enter(i),e.enter(s),e.consume(w),e.exit(s),u=w===40?41:w,f):n(w)}function f(w){return w===u?(e.enter(s),e.consume(w),e.exit(s),e.exit(i),t):(e.enter(a),h(w))}function h(w){return w===u?(e.exit(a),f(u)):w===null?n(w):Ne(w)?(e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),Je(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(w))}function m(w){return w===u||w===null||Ne(w)?(e.exit("chunkString"),h(w)):(e.consume(w),w===92?g:m)}function g(w){return w===u||w===92?(e.consume(w),m):m(w)}}function ta(e,t){let n;return i;function i(s){return Ne(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n=!0,i):Ve(s)?Je(e,i,n?"linePrefix":"lineSuffix")(s):t(s)}}const UA={name:"definition",tokenize:$A},BA={partial:!0,tokenize:VA};function $A(e,t,n){const i=this;let s;return a;function a(v){return e.enter("definition"),u(v)}function u(v){return Qx.call(i,e,c,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(v)}function c(v){return s=Io(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),v===58?(e.enter("definitionMarker"),e.consume(v),e.exit("definitionMarker"),f):n(v)}function f(v){return sn(v)?ta(e,h)(v):h(v)}function h(v){return qx(e,m,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(v)}function m(v){return e.attempt(BA,g,g)(v)}function g(v){return Ve(v)?Je(e,w,"whitespace")(v):w(v)}function w(v){return v===null||Ne(v)?(e.exit("definition"),i.parser.defined.push(s),t(v)):n(v)}}function VA(e,t,n){return i;function i(c){return sn(c)?ta(e,s)(c):n(c)}function s(c){return Yx(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(c)}function a(c){return Ve(c)?Je(e,u,"whitespace")(c):u(c)}function u(c){return c===null||Ne(c)?t(c):n(c)}}const HA={name:"hardBreakEscape",tokenize:WA};function WA(e,t,n){return i;function i(a){return e.enter("hardBreakEscape"),e.consume(a),s}function s(a){return Ne(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const qA={name:"headingAtx",resolve:QA,tokenize:YA};function QA(e,t){let n=e.length-2,i=3,s,a;return e[i][1].type==="whitespace"&&(i+=2),n-2>i&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&e[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(s={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},a={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},or(e,i,n-i+1,[["enter",s,t],["enter",a,t],["exit",a,t],["exit",s,t]])),e}function YA(e,t,n){let i=0;return s;function s(m){return e.enter("atxHeading"),a(m)}function a(m){return e.enter("atxHeadingSequence"),u(m)}function u(m){return m===35&&i++<6?(e.consume(m),u):m===null||sn(m)?(e.exit("atxHeadingSequence"),c(m)):n(m)}function c(m){return m===35?(e.enter("atxHeadingSequence"),f(m)):m===null||Ne(m)?(e.exit("atxHeading"),t(m)):Ve(m)?Je(e,c,"whitespace")(m):(e.enter("atxHeadingText"),h(m))}function f(m){return m===35?(e.consume(m),f):(e.exit("atxHeadingSequence"),c(m))}function h(m){return m===null||m===35||sn(m)?(e.exit("atxHeadingText"),c(m)):(e.consume(m),h)}}const KA=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],zv=["pre","script","style","textarea"],GA={concrete:!0,name:"htmlFlow",resolveTo:ZA,tokenize:e3},XA={partial:!0,tokenize:n3},JA={partial:!0,tokenize:t3};function ZA(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function e3(e,t,n){const i=this;let s,a,u,c,f;return h;function h(O){return m(O)}function m(O){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(O),g}function g(O){return O===33?(e.consume(O),w):O===47?(e.consume(O),a=!0,k):O===63?(e.consume(O),s=3,i.interrupt?t:P):tr(O)?(e.consume(O),u=String.fromCharCode(O),S):n(O)}function w(O){return O===45?(e.consume(O),s=2,v):O===91?(e.consume(O),s=5,c=0,E):tr(O)?(e.consume(O),s=4,i.interrupt?t:P):n(O)}function v(O){return O===45?(e.consume(O),i.interrupt?t:P):n(O)}function E(O){const we="CDATA[";return O===we.charCodeAt(c++)?(e.consume(O),c===we.length?i.interrupt?t:G:E):n(O)}function k(O){return tr(O)?(e.consume(O),u=String.fromCharCode(O),S):n(O)}function S(O){if(O===null||O===47||O===62||sn(O)){const we=O===47,xe=u.toLowerCase();return!we&&!a&&zv.includes(xe)?(s=1,i.interrupt?t(O):G(O)):KA.includes(u.toLowerCase())?(s=6,we?(e.consume(O),x):i.interrupt?t(O):G(O)):(s=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(O):a?R(O):T(O))}return O===45||gn(O)?(e.consume(O),u+=String.fromCharCode(O),S):n(O)}function x(O){return O===62?(e.consume(O),i.interrupt?t:G):n(O)}function R(O){return Ve(O)?(e.consume(O),R):H(O)}function T(O){return O===47?(e.consume(O),H):O===58||O===95||tr(O)?(e.consume(O),A):Ve(O)?(e.consume(O),T):H(O)}function A(O){return O===45||O===46||O===58||O===95||gn(O)?(e.consume(O),A):U(O)}function U(O){return O===61?(e.consume(O),L):Ve(O)?(e.consume(O),U):T(O)}function L(O){return O===null||O===60||O===61||O===62||O===96?n(O):O===34||O===39?(e.consume(O),f=O,W):Ve(O)?(e.consume(O),L):M(O)}function W(O){return O===f?(e.consume(O),f=null,K):O===null||Ne(O)?n(O):(e.consume(O),W)}function M(O){return O===null||O===34||O===39||O===47||O===60||O===61||O===62||O===96||sn(O)?U(O):(e.consume(O),M)}function K(O){return O===47||O===62||Ve(O)?T(O):n(O)}function H(O){return O===62?(e.consume(O),Q):n(O)}function Q(O){return O===null||Ne(O)?G(O):Ve(O)?(e.consume(O),Q):n(O)}function G(O){return O===45&&s===2?(e.consume(O),me):O===60&&s===1?(e.consume(O),be):O===62&&s===4?(e.consume(O),D):O===63&&s===3?(e.consume(O),P):O===93&&s===5?(e.consume(O),ue):Ne(O)&&(s===6||s===7)?(e.exit("htmlFlowData"),e.check(XA,q,le)(O)):O===null||Ne(O)?(e.exit("htmlFlowData"),le(O)):(e.consume(O),G)}function le(O){return e.check(JA,te,q)(O)}function te(O){return e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),J}function J(O){return O===null||Ne(O)?le(O):(e.enter("htmlFlowData"),G(O))}function me(O){return O===45?(e.consume(O),P):G(O)}function be(O){return O===47?(e.consume(O),u="",X):G(O)}function X(O){if(O===62){const we=u.toLowerCase();return zv.includes(we)?(e.consume(O),D):G(O)}return tr(O)&&u.length<8?(e.consume(O),u+=String.fromCharCode(O),X):G(O)}function ue(O){return O===93?(e.consume(O),P):G(O)}function P(O){return O===62?(e.consume(O),D):O===45&&s===2?(e.consume(O),P):G(O)}function D(O){return O===null||Ne(O)?(e.exit("htmlFlowData"),q(O)):(e.consume(O),D)}function q(O){return e.exit("htmlFlow"),t(O)}}function t3(e,t,n){const i=this;return s;function s(u){return Ne(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),a):n(u)}function a(u){return i.parser.lazy[i.now().line]?n(u):t(u)}}function n3(e,t,n){return i;function i(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(zu,t,n)}}const r3={name:"htmlText",tokenize:i3};function i3(e,t,n){const i=this;let s,a,u;return c;function c(P){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(P),f}function f(P){return P===33?(e.consume(P),h):P===47?(e.consume(P),U):P===63?(e.consume(P),T):tr(P)?(e.consume(P),M):n(P)}function h(P){return P===45?(e.consume(P),m):P===91?(e.consume(P),a=0,E):tr(P)?(e.consume(P),R):n(P)}function m(P){return P===45?(e.consume(P),v):n(P)}function g(P){return P===null?n(P):P===45?(e.consume(P),w):Ne(P)?(u=g,be(P)):(e.consume(P),g)}function w(P){return P===45?(e.consume(P),v):g(P)}function v(P){return P===62?me(P):P===45?w(P):g(P)}function E(P){const D="CDATA[";return P===D.charCodeAt(a++)?(e.consume(P),a===D.length?k:E):n(P)}function k(P){return P===null?n(P):P===93?(e.consume(P),S):Ne(P)?(u=k,be(P)):(e.consume(P),k)}function S(P){return P===93?(e.consume(P),x):k(P)}function x(P){return P===62?me(P):P===93?(e.consume(P),x):k(P)}function R(P){return P===null||P===62?me(P):Ne(P)?(u=R,be(P)):(e.consume(P),R)}function T(P){return P===null?n(P):P===63?(e.consume(P),A):Ne(P)?(u=T,be(P)):(e.consume(P),T)}function A(P){return P===62?me(P):T(P)}function U(P){return tr(P)?(e.consume(P),L):n(P)}function L(P){return P===45||gn(P)?(e.consume(P),L):W(P)}function W(P){return Ne(P)?(u=W,be(P)):Ve(P)?(e.consume(P),W):me(P)}function M(P){return P===45||gn(P)?(e.consume(P),M):P===47||P===62||sn(P)?K(P):n(P)}function K(P){return P===47?(e.consume(P),me):P===58||P===95||tr(P)?(e.consume(P),H):Ne(P)?(u=K,be(P)):Ve(P)?(e.consume(P),K):me(P)}function H(P){return P===45||P===46||P===58||P===95||gn(P)?(e.consume(P),H):Q(P)}function Q(P){return P===61?(e.consume(P),G):Ne(P)?(u=Q,be(P)):Ve(P)?(e.consume(P),Q):K(P)}function G(P){return P===null||P===60||P===61||P===62||P===96?n(P):P===34||P===39?(e.consume(P),s=P,le):Ne(P)?(u=G,be(P)):Ve(P)?(e.consume(P),G):(e.consume(P),te)}function le(P){return P===s?(e.consume(P),s=void 0,J):P===null?n(P):Ne(P)?(u=le,be(P)):(e.consume(P),le)}function te(P){return P===null||P===34||P===39||P===60||P===61||P===96?n(P):P===47||P===62||sn(P)?K(P):(e.consume(P),te)}function J(P){return P===47||P===62||sn(P)?K(P):n(P)}function me(P){return P===62?(e.consume(P),e.exit("htmlTextData"),e.exit("htmlText"),t):n(P)}function be(P){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),X}function X(P){return Ve(P)?Je(e,ue,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):ue(P)}function ue(P){return e.enter("htmlTextData"),u(P)}}const Wh={name:"labelEnd",resolveAll:l3,resolveTo:u3,tokenize:c3},o3={tokenize:d3},s3={tokenize:f3},a3={tokenize:h3};function l3(e){let t=-1;const n=[];for(;++t<e.length;){const i=e[t][1];if(n.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const s=i.type==="labelImage"?4:2;i.type="data",t+=s}}return e.length!==n.length&&or(e,0,e.length,n),e}function u3(e,t){let n=e.length,i=0,s,a,u,c;for(;n--;)if(s=e[n][1],a){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;e[n][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(u){if(e[n][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(a=n,s.type!=="labelLink")){i=2;break}}else s.type==="labelEnd"&&(u=n);const f={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},h={type:"label",start:{...e[a][1].start},end:{...e[u][1].end}},m={type:"labelText",start:{...e[a+i+2][1].end},end:{...e[u-2][1].start}};return c=[["enter",f,t],["enter",h,t]],c=Tn(c,e.slice(a+1,a+i+3)),c=Tn(c,[["enter",m,t]]),c=Tn(c,Hh(t.parser.constructs.insideSpan.null,e.slice(a+i+4,u-3),t)),c=Tn(c,[["exit",m,t],e[u-2],e[u-1],["exit",h,t]]),c=Tn(c,e.slice(u+1)),c=Tn(c,[["exit",f,t]]),or(e,a,e.length,c),e}function c3(e,t,n){const i=this;let s=i.events.length,a,u;for(;s--;)if((i.events[s][1].type==="labelImage"||i.events[s][1].type==="labelLink")&&!i.events[s][1]._balanced){a=i.events[s][1];break}return c;function c(w){return a?a._inactive?g(w):(u=i.parser.defined.includes(Io(i.sliceSerialize({start:a.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(w),e.exit("labelMarker"),e.exit("labelEnd"),f):n(w)}function f(w){return w===40?e.attempt(o3,m,u?m:g)(w):w===91?e.attempt(s3,m,u?h:g)(w):u?m(w):g(w)}function h(w){return e.attempt(a3,m,g)(w)}function m(w){return t(w)}function g(w){return a._balanced=!0,n(w)}}function d3(e,t,n){return i;function i(g){return e.enter("resource"),e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),s}function s(g){return sn(g)?ta(e,a)(g):a(g)}function a(g){return g===41?m(g):qx(e,u,c,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function u(g){return sn(g)?ta(e,f)(g):m(g)}function c(g){return n(g)}function f(g){return g===34||g===39||g===40?Yx(e,h,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):m(g)}function h(g){return sn(g)?ta(e,m)(g):m(g)}function m(g){return g===41?(e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),e.exit("resource"),t):n(g)}}function f3(e,t,n){const i=this;return s;function s(c){return Qx.call(i,e,a,u,"reference","referenceMarker","referenceString")(c)}function a(c){return i.parser.defined.includes(Io(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(c):n(c)}function u(c){return n(c)}}function h3(e,t,n){return i;function i(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),s}function s(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):n(a)}}const p3={name:"labelStartImage",resolveAll:Wh.resolveAll,tokenize:m3};function m3(e,t,n){const i=this;return s;function s(c){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(c),e.exit("labelImageMarker"),a}function a(c){return c===91?(e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelImage"),u):n(c)}function u(c){return c===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(c):t(c)}}const g3={name:"labelStartLink",resolveAll:Wh.resolveAll,tokenize:y3};function y3(e,t,n){const i=this;return s;function s(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelLink"),a}function a(u){return u===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(u):t(u)}}const nf={name:"lineEnding",tokenize:v3};function v3(e,t){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),Je(e,t,"linePrefix")}}const hu={name:"thematicBreak",tokenize:w3};function w3(e,t,n){let i=0,s;return a;function a(h){return e.enter("thematicBreak"),u(h)}function u(h){return s=h,c(h)}function c(h){return h===s?(e.enter("thematicBreakSequence"),f(h)):i>=3&&(h===null||Ne(h))?(e.exit("thematicBreak"),t(h)):n(h)}function f(h){return h===s?(e.consume(h),i++,f):(e.exit("thematicBreakSequence"),Ve(h)?Je(e,c,"whitespace")(h):c(h))}}const tn={continuation:{tokenize:S3},exit:_3,name:"list",tokenize:k3},x3={partial:!0,tokenize:C3},b3={partial:!0,tokenize:E3};function k3(e,t,n){const i=this,s=i.events[i.events.length-1];let a=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,u=0;return c;function c(v){const E=i.containerState.type||(v===42||v===43||v===45?"listUnordered":"listOrdered");if(E==="listUnordered"?!i.containerState.marker||v===i.containerState.marker:nh(v)){if(i.containerState.type||(i.containerState.type=E,e.enter(E,{_container:!0})),E==="listUnordered")return e.enter("listItemPrefix"),v===42||v===45?e.check(hu,n,h)(v):h(v);if(!i.interrupt||v===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),f(v)}return n(v)}function f(v){return nh(v)&&++u<10?(e.consume(v),f):(!i.interrupt||u<2)&&(i.containerState.marker?v===i.containerState.marker:v===41||v===46)?(e.exit("listItemValue"),h(v)):n(v)}function h(v){return e.enter("listItemMarker"),e.consume(v),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||v,e.check(zu,i.interrupt?n:m,e.attempt(x3,w,g))}
vendor: 5,078 bytes, line 251
251function m(v){return i.containerState.initialBlankLine=!0,a++,w(v)}function g(v){return Ve(v)?(e.enter("listItemPrefixWhitespace"),e.consume(v),e.exit("listItemPrefixWhitespace"),w):n(v)}function w(v){return i.containerState.size=a+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(v)}}function S3(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(zu,s,a);function s(c){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,Je(e,t,"listItemIndent",i.containerState.size+1)(c)}function a(c){return i.containerState.furtherBlankLines||!Ve(c)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,u(c)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(b3,t,u)(c))}function u(c){return i.containerState._closeFlow=!0,i.interrupt=void 0,Je(e,e.attempt(tn,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c)}}function E3(e,t,n){const i=this;return Je(e,s,"listItemIndent",i.containerState.size+1);function s(a){const u=i.events[i.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===i.containerState.size?t(a):n(a)}}function _3(e){e.exit(this.containerState.type)}function C3(e,t,n){const i=this;return Je(e,s,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(a){const u=i.events[i.events.length-1];return!Ve(a)&&u&&u[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const Uv={name:"setextUnderline",resolveTo:P3,tokenize:T3};function P3(e,t){let n=e.length,i,s,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=n;break}e[n][1].type==="paragraph"&&(s=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const u={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[s][1].type="setextHeadingText",a?(e.splice(s,0,["enter",u,t]),e.splice(a+1,0,["exit",e[i][1],t]),e[i][1].end={...e[a][1].end}):e[i][1]=u,e.push(["exit",u,t]),e}function T3(e,t,n){const i=this;let s;return a;function a(h){let m=i.events.length,g;for(;m--;)if(i.events[m][1].type!=="lineEnding"&&i.events[m][1].type!=="linePrefix"&&i.events[m][1].type!=="content"){g=i.events[m][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||g)?(e.enter("setextHeadingLine"),s=h,u(h)):n(h)}function u(h){return e.enter("setextHeadingLineSequence"),c(h)}function c(h){return h===s?(e.consume(h),c):(e.exit("setextHeadingLineSequence"),Ve(h)?Je(e,f,"lineSuffix")(h):f(h))}function f(h){return h===null||Ne(h)?(e.exit("setextHeadingLine"),t(h)):n(h)}}const R3={tokenize:O3};function O3(e){const t=this,n=e.attempt(zu,i,e.attempt(this.parser.constructs.flowInitial,s,Je(e,e.attempt(this.parser.constructs.flow,s,e.attempt(DA,s)),"linePrefix")));return n;function i(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function s(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const N3={resolveAll:Gx()},A3=Kx("string"),I3=Kx("text");function Kx(e){return{resolveAll:Gx(e==="text"?L3:void 0),tokenize:t};function t(n){const i=this,s=this.parser.constructs[e],a=n.attempt(s,u,c);return u;function u(m){return h(m)?a(m):c(m)}function c(m){if(m===null){n.consume(m);return}return n.enter("data"),n.consume(m),f}function f(m){return h(m)?(n.exit("data"),a(m)):(n.consume(m),f)}function h(m){if(m===null)return!0;const g=s[m];let w=-1;if(g)for(;++w<g.length;){const v=g[w];if(!v.previous||v.previous.call(i,i.previous))return!0}return!1}}}function Gx(e){return t;function t(n,i){let s=-1,a;for(;++s<=n.length;)a===void 0?n[s]&&n[s][1].type==="data"&&(a=s,s++):(!n[s]||n[s][1].type!=="data")&&(s!==a+2&&(n[a][1].end=n[s-1][1].end,n.splice(a+2,s-a-2),s=a+2),a=void 0);return e?e(n,i):n}}function L3(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const i=e[n-1][1],s=t.sliceStream(i);let a=s.length,u=-1,c=0,f;for(;a--;){const h=s[a];if(typeof h=="string"){for(u=h.length;h.charCodeAt(u-1)===32;)c++,u--;if(u)break;u=-1}else if(h===-2)f=!0,c++;else if(h!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(c=0),c){const h={type:n===e.length||f||c<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?u:i.start._bufferIndex+u,_index:i.start._index+a,line:i.end.line,column:i.end.column-c,offset:i.end.offset-c},end:{...i.end}};i.end={...h.start},i.start.offset===i.end.offset?Object.assign(i,h):(e.splice(n,0,["enter",h,t],["exit",h,t]),n+=2)}n++}return e}const D3={42:tn,43:tn,45:tn,48:tn,49:tn,50:tn,51:tn,52:tn,53:tn,54:tn,55:tn,56:tn,57:tn,62:$x},M3={91:UA},j3={[-2]:tf,[-1]:tf,32:tf},F3={35:qA,42:hu,45:[Uv,hu],60:GA,61:Uv,95:hu,96:Fv,126:Fv},z3={38:Hx,92:Vx},U3={[-5]:nf,[-4]:nf,[-3]:nf,33:p3,38:Hx,42:rh,60:[gA,r3],91:g3,92:[HA,Vx],93:Wh,95:rh,96:RA},B3={null:[rh,N3]},$3={null:[42,95]},V3={null:[]}
vendor: 15,017 bytes, lines 251-253
251,H3=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:$3,contentInitial:M3,disable:V3,document:D3,flow:F3,flowInitial:j3,insideSpan:B3,string:z3,text:U3},Symbol.toStringTag,{value:"Module"}));function W3(e,t,n){let i={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const s={},a=[];let u=[],c=[];const f={attempt:W(U),check:W(L),consume:R,enter:T,exit:A,interrupt:W(L,{interrupt:!0})},h={code:null,containerState:{},defineSkip:k,events:[],now:E,parser:e,previous:null,sliceSerialize:w,sliceStream:v,write:g};let m=t.tokenize.call(h,f);return t.resolveAll&&a.push(t),h;function g(Q){return u=Tn(u,Q),S(),u[u.length-1]!==null?[]:(M(t,0),h.events=Hh(a,h.events,h),h.events)}function w(Q,G){return Q3(v(Q),G)}function v(Q){return q3(u,Q)}function E(){const{_bufferIndex:Q,_index:G,line:le,column:te,offset:J}=i;return{_bufferIndex:Q,_index:G,line:le,column:te,offset:J}}function k(Q){s[Q.line]=Q.column,H()}function S(){let Q;for(;i._index<u.length;){const G=u[i._index];if(typeof G=="string")for(Q=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===Q&&i._bufferIndex<G.length;)x(G.charCodeAt(i._bufferIndex));else x(G)}}function x(Q){m=m(Q)}function R(Q){Ne(Q)?(i.line++,i.column=1,i.offset+=Q===-3?2:1,H()):Q!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===u[i._index].length&&(i._bufferIndex=-1,i._index++)),h.previous=Q}function T(Q,G){const le=G||{};return le.type=Q,le.start=E(),h.events.push(["enter",le,h]),c.push(le),le}function A(Q){const G=c.pop();return G.end=E(),h.events.push(["exit",G,h]),G}function U(Q,G){M(Q,G.from)}function L(Q,G){G.restore()}function W(Q,G){return le;function le(te,J,me){let be,X,ue,P;return Array.isArray(te)?q(te):"tokenize"in te?q([te]):D(te);function D(re){return Pe;function Pe(Ae){const Se=Ae!==null&&re[Ae],Ze=Ae!==null&&re.null,Ct=[...Array.isArray(Se)?Se:Se?[Se]:[],...Array.isArray(Ze)?Ze:Ze?[Ze]:[]];return q(Ct)(Ae)}}function q(re){return be=re,X=0,re.length===0?me:O(re[X])}function O(re){return Pe;function Pe(Ae){return P=K(),ue=re,re.partial||(h.currentConstruct=re),re.name&&h.parser.constructs.disable.null.includes(re.name)?xe():re.tokenize.call(G?Object.assign(Object.create(h),G):h,f,we,xe)(Ae)}}function we(re){return Q(ue,P),J}function xe(re){return P.restore(),++X<be.length?O(be[X]):me}}}function M(Q,G){Q.resolveAll&&!a.includes(Q)&&a.push(Q),Q.resolve&&or(h.events,G,h.events.length-G,Q.resolve(h.events.slice(G),h)),Q.resolveTo&&(h.events=Q.resolveTo(h.events,h))}function K(){const Q=E(),G=h.previous,le=h.currentConstruct,te=h.events.length,J=Array.from(c);return{from:te,restore:me};function me(){i=Q,h.previous=G,h.currentConstruct=le,h.events.length=te,c=J,H()}}function H(){i.line in s&&i.column<2&&(i.column=s[i.line],i.offset+=s[i.line]-1)}}function q3(e,t){const n=t.start._index,i=t.start._bufferIndex,s=t.end._index,a=t.end._bufferIndex;let u;if(n===s)u=[e[n].slice(i,a)];else{if(u=e.slice(n,s),i>-1){const c=u[0];typeof c=="string"?u[0]=c.slice(i):u.shift()}a>0&&u.push(e[s].slice(0,a))}return u}function Q3(e,t){let n=-1;const i=[];let s;for(;++n<e.length;){const a=e[n];let u;if(typeof a=="string")u=a;else switch(a){case-5:{u="\r";break}case-4:{u=`
252`;break}case-3:{u=`\r
253`;break}case-2:{u=t?" ":"	";break}case-1:{if(!t&&s)continue;u=" ";break}default:u=String.fromCharCode(a)}s=a===-2,i.push(u)}return i.join("")}function Y3(e){const i={constructs:tA([H3,...(e||{}).extensions||[]]),content:s(uA),defined:[],document:s(dA),flow:s(R3),lazy:{},string:s(A3),text:s(I3)};return i;function s(a){return u;function u(c){return W3(i,a,c)}}}function K3(e){for(;!Wx(e););return e}const Bv=/[\0\t\n\r]/g;function G3(){let e=1,t="",n=!0,i;return s;function s(a,u,c){const f=[];let h,m,g,w,v;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(u||void 0).decode(a)),g=0,t="",n&&(a.charCodeAt(0)===65279&&g++,n=void 0);g<a.length;){if(Bv.lastIndex=g,h=Bv.exec(a),w=h&&h.index!==void 0?h.index:a.length,v=a.charCodeAt(w),!h){t=a.slice(g);break}if(v===10&&g===w&&i)f.push(-3),i=void 0;else switch(i&&(f.push(-5),i=void 0),g<w&&(f.push(a.slice(g,w)),e+=w-g),v){case 0:{f.push(65533),e++;break}case 9:{for(m=Math.ceil(e/4)*4,f.push(-2);e++<m;)f.push(-1);break}case 10:{f.push(-4),e=1;break}default:i=!0,e=1}g=w+1}return c&&(i&&f.push(-5),t&&f.push(t),f.push(null)),f}}const X3=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function J3(e){return e.replace(X3,Z3)}function Z3(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const s=n.charCodeAt(1),a=s===120||s===88;return Bx(n.slice(a?2:1),a?16:10)}return Vh(n)||e}const Xx={}.hasOwnProperty;function eI(e,t,n){return typeof t!="string"&&(n=t,t=void 0),tI(n)(K3(Y3(n).document().write(G3()(e,t,!0))))}function tI(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(Yt),autolinkProtocol:K,autolinkEmail:K,atxHeading:a($t),blockQuote:a(Ze),characterEscape:K,characterReference:K,codeFenced:a(Ct),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:a(Ct,u),codeText:a(yt,u),codeTextData:K,data:K,codeFlowValue:K,definition:a(ln),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:a(Qt),hardBreakEscape:a(Re),hardBreakTrailing:a(Re),htmlFlow:a(ft,u),htmlFlowData:K,htmlText:a(ft,u),htmlTextData:K,image:a(un),label:u,link:a(Yt),listItem:a(Hn),listItemValue:w,listOrdered:a(On,g),listUnordered:a(On),paragraph:a(Nn),reference:O,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:a($t),strong:a(Ta),thematicBreak:a(Oa)},exit:{atxHeading:f(),atxHeadingSequence:U,autolink:f(),autolinkEmail:Se,autolinkProtocol:Ae,blockQuote:f(),characterEscapeValue:H,characterReferenceMarkerHexadecimal:xe,characterReferenceMarkerNumeric:xe,characterReferenceValue:re,characterReference:Pe,codeFenced:f(S),codeFencedFence:k,codeFencedFenceInfo:v,codeFencedFenceMeta:E,codeFlowValue:H,codeIndented:f(x),codeText:f(J),codeTextData:H,data:H,definition:f(),definitionDestinationString:A,definitionLabelString:R,definitionTitleString:T,emphasis:f(),hardBreakEscape:f(G),hardBreakTrailing:f(G),htmlFlow:f(le),htmlFlowData:H,htmlText:f(te),htmlTextData:H,image:f(be),label:ue,labelText:X,lineEnding:Q,link:f(me),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:we,resourceDestinationString:P,resourceTitleString:D,resource:q,setextHeading:f(M),setextHeadingLineSequence:W,setextHeadingText:L,strong:f(),thematicBreak:f()}};Jx(t,(e||{}).mdastExtensions||[]);const n={};return i;function i(Y){let se={type:"root",children:[]};const Te={stack:[se],tokenStack:[],config:t,enter:c,exit:h,buffer:u,resume:m,data:n},De=[];let Ue=-1;for(;++Ue<Y.length;)if(Y[Ue][1].type==="listOrdered"||Y[Ue][1].type==="listUnordered")if(Y[Ue][0]==="enter")De.push(Ue);else{const Pt=De.pop();Ue=s(Y,Pt,Ue)}for(Ue=-1;++Ue<Y.length;){const Pt=t[Y[Ue][0]];Xx.call(Pt,Y[Ue][1].type)&&Pt[Y[Ue][1].type].call(Object.assign({sliceSerialize:Y[Ue][2].sliceSerialize},Te),Y[Ue][1])}if(Te.tokenStack.length>0){const Pt=Te.tokenStack[Te.tokenStack.length-1];(Pt[1]||$v).call(Te,void 0,Pt[0])}for(se.position={start:Wr(Y.length>0?Y[0][1].start:{line:1,column:1,offset:0}),end:Wr(Y.length>0?Y[Y.length-2][1].end:{line:1,column:1,offset:0})},Ue=-1;++Ue<t.transforms.length;)se=t.transforms[Ue](se)||se;return se}function s(Y,se,Te){let De=se-1,Ue=-1,Pt=!1,sr,yn,kr,hi;for(;++De<=Te;){const Tt=Y[De];switch(Tt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Tt[0]==="enter"?Ue++:Ue--,hi=void 0;break}case"lineEndingBlank":{Tt[0]==="enter"&&(sr&&!hi&&!Ue&&!kr&&(kr=De),hi=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:hi=void 0}if(!Ue&&Tt[0]==="enter"&&Tt[1].type==="listItemPrefix"||Ue===-1&&Tt[0]==="exit"&&(Tt[1].type==="listUnordered"||Tt[1].type==="listOrdered")){if(sr){let Wn=De;for(yn=void 0;Wn--;){const cn=Y[Wn];if(cn[1].type==="lineEnding"||cn[1].type==="lineEndingBlank"){if(cn[0]==="exit")continue;yn&&(Y[yn][1].type="lineEndingBlank",Pt=!0),cn[1].type="lineEnding",yn=Wn}else if(!(cn[1].type==="linePrefix"||cn[1].type==="blockQuotePrefix"||cn[1].type==="blockQuotePrefixWhitespace"||cn[1].type==="blockQuoteMarker"||cn[1].type==="listItemIndent"))break}kr&&(!yn||kr<yn)&&(sr._spread=!0),sr.end=Object.assign({},yn?Y[yn][1].start:Tt[1].end),Y.splice(yn||De,0,["exit",sr,Tt[2]]),De++,Te++}if(Tt[1].type==="listItemPrefix"){const Wn={type:"listItem",_spread:!1,start:Object.assign({},Tt[1].start),end:void 0};sr=Wn,Y.splice(De,0,["enter",Wn,Tt[2]]),De++,Te++,kr=void 0,hi=!0}}}return Y[se][1]._spread=Pt,Te}function a(Y,se){return Te;function Te(De){c.call(this,Y(De),De),se&&se.call(this,De)}}function u(){this.stack.push({type:"fragment",children:[]})}function c(Y,se,Te){this.stack[this.stack.length-1].children.push(Y),this.stack.push(Y),this.tokenStack.push([se,Te||void 0]),Y.position={start:Wr(se.start),end:void 0}}function f(Y){return se;function se(Te){Y&&Y.call(this,Te),h.call(this,Te)}}function h(Y,se){const Te=this.stack.pop(),De=this.tokenStack.pop();if(De)De[0].type!==Y.type&&(se?se.call(this,Y,De[0]):(De[1]||$v).call(this,Y,De[0]));else throw new Error("Cannot close `"+Y.type+"` ("+ea({start:Y.start,end:Y.end})+"): it’s not open");Te.position.end=Wr(Y.end)}function m(){return ZN(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function w(Y){if(this.data.expectingFirstListItemValue){const se=this.stack[this.stack.length-2];se.start=Number.parseInt(this.sliceSerialize(Y),10),this.data.expectingFirstListItemValue=void 0}}function v(){const Y=this.resume(),se=this.stack[this.stack.length-1];se.lang=Y}function E(){const Y=this.resume(),se=this.stack[this.stack.length-1];se.meta=Y}function k(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function S(){const Y=this.resume(),se=this.stack[this.stack.length-1];se.value=Y.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const Y=this.resume(),se=this.stack[this.stack.length-1];se.value=Y.replace(/(\r?\n|\r)$/g,"")}function R(Y){const se=this.resume(),Te=this.stack[this.stack.length-1];Te.label=se,Te.identifier=Io(this.sliceSerialize(Y)).toLowerCase()}function T(){const Y=this.resume(),se=this.stack[this.stack.length-1];se.title=Y}function A(){const Y=this.resume(),se=this.stack[this.stack.length-1];se.url=Y}function U(Y){const se=this.stack[this.stack.length-1];if(!se.depth){const Te=this.sliceSerialize(Y).length;se.depth=Te}}function L(){this.data.setextHeadingSlurpLineEnding=!0}function W(Y){const se=this.stack[this.stack.length-1];se.depth=this.sliceSerialize(Y).codePointAt(0)===61?1:2}function M(){this.data.setextHeadingSlurpLineEnding=void 0}function K(Y){const Te=this.stack[this.stack.length-1].children;let De=Te[Te.length-1];(!De||De.type!=="text")&&(De=Ra(),De.position={start:Wr(Y.start),end:void 0},Te.push(De)),this.stack.push(De)}function H(Y){const se=this.stack.pop();se.value+=this.sliceSerialize(Y),se.position.end=Wr(Y.end)}function Q(Y){const se=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Te=se.children[se.children.length-1];Te.position.end=Wr(Y.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(se.type)&&(K.call(this,Y),H.call(this,Y))}function G(){this.data.atHardBreak=!0}function le(){const Y=this.resume(),se=this.stack[this.stack.length-1];se.value=Y}function te(){const Y=this.resume(),se=this.stack[this.stack.length-1];se.value=Y}function J(){const Y=this.resume(),se=this.stack[this.stack.length-1];se.value=Y}function me(){const Y=this.stack[this.stack.length-1];if(this.data.inReference){const se=this.data.referenceType||"shortcut";Y.type+="Reference",Y.referenceType=se,delete Y.url,delete Y.title}else delete Y.identifier,delete Y.label;this.data.referenceType=void 0}function be(){const Y=this.stack[this.stack.length-1];if(this.data.inReference){const se=this.data.referenceType||"shortcut";Y.type+="Reference",Y.referenceType=se,delete Y.url,delete Y.title}else delete Y.identifier,delete Y.label;this.data.referenceType=void 0}function X(Y){const se=this.sliceSerialize(Y),Te=this.stack[this.stack.length-2];Te.label=J3(se),Te.identifier=Io(se).toLowerCase()}function ue(){const Y=this.stack[this.stack.length-1],se=this.resume(),Te=this.stack[this.stack.length-1];if(this.data.inReference=!0,Te.type==="link"){const De=Y.children;Te.children=De}else Te.alt=se}function P(){const Y=this.resume(),se=this.stack[this.stack.length-1];se.url=Y}function D(){const Y=this.resume(),se=this.stack[this.stack.length-1];se.title=Y}function q(){this.data.inReference=void 0}function O(){this.data.referenceType="collapsed"}function we(Y){const se=this.resume(),Te=this.stack[this.stack.length-1];Te.label=se,Te.identifier=Io(this.sliceSerialize(Y)).toLowerCase(),this.data.referenceType="full"}function xe(Y){this.data.characterReferenceType=Y.type}function re(Y){const se=this.sliceSerialize(Y),Te=this.data.characterReferenceType;let De;Te?(De=Bx(se,Te==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):De=Vh(se);const Ue=this.stack[this.stack.length-1];Ue.value+=De}function Pe(Y){const se=this.stack.pop();se.position.end=Wr(Y.end)}function Ae(Y){H.call(this,Y);const se=this.stack[this.stack.length-1];se.url=this.sliceSerialize(Y)}function Se(Y){H.call(this,Y);const se=this.stack[this.stack.length-1];se.url="mailto:"+this.sliceSerialize(Y)}function Ze(){return{type:"blockquote",children:[]}}function Ct(){return{type:"code",lang:null,meta:null,value:""}}function yt(){return{type:"inlineCode",value:""}}function ln(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Qt(){return{type:"emphasis",children:[]}}function $t(){return{type:"heading",depth:0,children:[]}}function Re(){return{type:"break"}}function ft(){return{type:"html",value:""}}function un(){return{type:"image",title:null,url:"",alt:null}}function Yt(){return{type:"link",title:null,url:"",children:[]}}function On(Y){return{type:"list",ordered:Y.type==="listOrdered",start:null,spread:Y._spread,children:[]}}function Hn(Y){return{type:"listItem",spread:Y._spread,checked:null,children:[]}}function Nn(){return{type:"paragraph",children:[]}}function Ta(){return{type:"strong",children:[]}}function Ra(){return{type:"text",value:""}}function Oa(){return{type:"thematicBreak"}}}function Wr(e){return{line:e.line,column:e.column,offset:e.offset}}function Jx(e,t){let n=-1;for(;++n<t.length;){const i=t[n];Array.isArray(i)?Jx(e,i):nI(e,i)}}function nI(e,t){let n;for(n in t)if(Xx.call(t,n))switch(n){case"canContainEols":{const i=t[n];i&&e[n].push(...i);break}case"transforms":{const i=t[n];i&&e[n].push(...i);break}case"enter":case"exit":{const i=t[n];i&&Object.assign(e[n],i);break}}}function $v(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+ea({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ea({start:t.start,end:t.end}
vendor: 10,608 bytes, lines 253-257
253)+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+ea({start:t.start,end:t.end})+") is still open")}function rI(e){const t=this;t.parser=n;function n(i){return eI(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function iI(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function oI(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
254`}]}function sI(e,t){const n=t.value?t.value+`
255`:"",i={},s=t.lang?t.lang.split(/\s+/):[];s.length>0&&(i.className=["language-"+s[0]]);let a={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function aI(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function lI(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function uI(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),s=es(i.toLowerCase()),a=e.footnoteOrder.indexOf(i);let u,c=e.footnoteCounts.get(i);c===void 0?(c=0,e.footnoteOrder.push(i),u=e.footnoteOrder.length):u=a+1,c+=1,e.footnoteCounts.set(i,c);const f={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+s,id:n+"fnref-"+s+(c>1?"-"+c:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};e.patch(t,f);const h={type:"element",tagName:"sup",properties:{},children:[f]};return e.patch(t,h),e.applyData(t,h)}function cI(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function dI(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Zx(e,t){const n=t.referenceType;let i="]";if(n==="collapsed"?i+="[]":n==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const s=e.all(t),a=s[0];a&&a.type==="text"?a.value="["+a.value:s.unshift({type:"text",value:"["});const u=s[s.length-1];return u&&u.type==="text"?u.value+=i:s.push({type:"text",value:i}),s}function fI(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return Zx(e,t);const s={src:es(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(s.title=i.title);const a={type:"element",tagName:"img",properties:s,children:[]};return e.patch(t,a),e.applyData(t,a)}function hI(e,t){const n={src:es(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,i),e.applyData(t,i)}function pI(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const i={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,i),e.applyData(t,i)}function mI(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return Zx(e,t);const s={href:es(i.url||"")};i.title!==null&&i.title!==void 0&&(s.title=i.title);const a={type:"element",tagName:"a",properties:s,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function gI(e,t){const n={href:es(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function yI(e,t,n){const i=e.all(t),s=n?vI(n):e1(t),a={},u=[];if(typeof t.checked=="boolean"){const m=i[0];let g;m&&m.type==="element"&&m.tagName==="p"?g=m:(g={type:"element",tagName:"p",properties:{},children:[]},i.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let c=-1;for(;++c<i.length;){const m=i[c];(s||c!==0||m.type!=="element"||m.tagName!=="p")&&u.push({type:"text",value:`
256`}),m.type==="element"&&m.tagName==="p"&&!s?u.push(...m.children):u.push(m)}const f=i[i.length-1];f&&(s||f.type!=="element"||f.tagName!=="p")&&u.push({type:"text",value:`
257`});const h={type:"element",tagName:"li",properties:a,children:u};return e.patch(t,h),e.applyData(t,h)}function vI(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let i=-1;for(;!t&&++i<n.length;)t=e1(n[i])}return t}function e1(e){const t=e.spread;return t??e.children.length>1}function wI(e,t){const n={},i=e.all(t);let s=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++s<i.length;){const u=i[s];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function xI(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function bI(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function kI(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function SI(e,t){const n=e.all(t),i=n.shift(),s=[];if(i){const u={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],u),s.push(u)}if(n.length>0){const u={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},c=zh(t.children[1]),f=Lx(t.children[t.children.length-1]);c&&f&&(u.position={start:c,end:f}),s.push(u)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(s,!0)};return e.patch(t,a),e.applyData(t,a)}function EI(e,t,n){const i=n?n.children:void 0,a=(i?i.indexOf(t):1)===0?"th":"td",u=n&&n.type==="table"?n.align:void 0,c=u?u.length:t.children.length;let f=-1;const h=[];for(;++f<c;){const g=t.children[f],w={},v=u?u[f]:void 0;v&&(w.align=v);let E={type:"element",tagName:a,properties:w,children:[]};g&&(E.children=e.all(g),e.patch(g,E),E=e.applyData(g,E)),h.push(E)}const m={type:"element",tagName:"tr",properties:{},children:e.wrap(h,!0)};return e.patch(t,m),e.applyData(t,m)}function _I(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Vv=9,Hv=32;function CI(e){const t=String(e),n=/\r?\n|\r/g;let i=n.exec(t),s=0;const a=[];for(;i;)a.push(Wv(t.slice(s,i.index),s>0,!0),i[0]),s=i.index+i[0].length,i=n.exec(t);return a.push(Wv(t.slice(s),s>0,!1)),a.join("")}function Wv(e,t,n){let i=0,s=e.length;if(t){let a=e.codePointAt(i);for(;a===Vv||a===Hv;)i++,a=e.codePointAt(i)}if(n){let a=e.codePointAt(s-1);for(;a===Vv||a===Hv;)s--,a=e.codePointAt(s-1)}return s>i?e.slice(i,s):""}function PI(e,t){const n={type:"text",value:CI(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function TI(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const RI={blockquote:iI,break:oI,code:sI,delete:aI,emphasis:lI,footnoteReference:uI,heading:cI,html:dI,imageReference:fI,image:hI,inlineCode:pI,linkReference:mI,link:gI,listItem:yI,list:wI,paragraph:xI,root:bI,strong:kI,table:SI,tableCell:_I,tableRow:EI,text:PI,thematicBreak:TI,toml:Kl,yaml:Kl,definition:Kl,footnoteDefinition:Kl};function Kl(){}const t1=-1,Uu=0,na=1,Pu=2,qh=3,Qh=4,Yh=5,Kh=6,n1=7,r1=8,qv=typeof self=="object"?self:globalThis,OI=(e,t)=>{const n=(s,a)=>(e.set(a,s),s),i=s=>{if(e.has(s))return e.get(s);const[a,u]=t[s];switch(a){case Uu:case t1:return n(u,s);case na:{const c=n([],s);for(const f of u)c.push(i(f));return c}case Pu:{const c=n({},s);for(const[f,h]of u)c[i(f)]=i(h);return c}case qh:return n(new Date(u),s);case Qh:{const{source:c,flags:f}=u;return n(new RegExp(c,f),s)}case Yh:{const c=n(new Map,s);for(const[f,h]of u)c.set(i(f),i(h));return c}case Kh:{const c=n(new Set,s);for(const f of u)c.add(i(f));return c}case n1:{const{name:c,message:f}=u;return n(new qv[c](f),s)}case r1:return n(BigInt(u),s);case"BigInt":return n(Object(BigInt(u)),s);case"ArrayBuffer":return n(new Uint8Array(u).buffer,u);case"DataView":{const{buffer:c}=new Uint8Array(u);return n(new DataView(c),u)}}return n(new qv[a](u),s)};return i},Qv=e=>OI(new Map,e)(0),Co="",{toString:NI}={},{keys:AI}=Object,Qs=e=>{const t=typeof e;if(t!=="object"||!e)return[Uu,t];const n=NI.call(e).slice(8,-1);switch(n){case"Array":return[na,Co];case"Object":return[Pu,Co];case"Date":return[qh,Co];case"RegExp":return[Qh,Co];case"Map":return[Yh,Co];case"Set":return[Kh,Co];case"DataView":return[na,n]}return n.includes("Array")?[na,n]:n.includes("Error")?[n1,n]:[Pu,n]},Gl=([e,t])=>e===Uu&&(t==="function"||t==="symbol"),II=(e,t,n,i)=>{const s=(u,c)=>{const f=i.push(u)-1;return n.set(c,f),f},a=u=>{if(n.has(u))return n.get(u);let[c,f]=Qs(u);switch(c){case Uu:{let m=u;switch(f){case"bigint":c=r1,m=u.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+f);m=null;break;case"undefined":return s([t1],u)}return s([c,m],u)}case na:{if(f){let w=u;return f==="DataView"?w=new Uint8Array(u.buffer):f==="ArrayBuffer"&&(w=new Uint8Array(u)),s([f,[...w]],u)}const m=[],g=s([c,m],u);for(const w of u)m.push(a(w));return g}case Pu:{if(f)switch(f){case"BigInt":return s([f,u.toString()],u);case"Boolean":case"Number":case"String":return s([f,u.valueOf()],u)}if(t&&"toJSON"in u)return a(u.toJSON());const m=[],g=s([c,m],u);for(const w of AI(u))(e||!Gl(Qs(u[w])))&&m.push([a(w),a(u[w])]);return g}case qh:return s([c,u.toISOString()],u);case Qh:{const{source:m,flags:g}=u;return s([c,{source:m,flags:g}],u)}case Yh:{const m=[],g=s([c,m],u);for(const[w,v]of u)(e||!(Gl(Qs(w))||Gl(Qs(v))))&&m.push([a(w),a(v)]);return g}case Kh:{const m=[],g=s([c,m],u);for(const w of u)(e||!Gl(Qs(w)))&&m.push(a(w));return g}}const{message:h}=u;return s([c,{name:f,message:h}],u)};return a},Yv=(e,{json:t,lossy:n}={})=>{const i=[];return II(!(t||n),!!t,new Map,i)(e),i},Tu=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Qv(Yv(e,t)):structuredClone(e):(e,t)=>Qv(Yv(e,t));function LI(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function DI(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}
vendor: 4,233 bytes, lines 257-259
257function MI(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||LI,i=e.options.footnoteBackLabel||DI,s=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",u=e.options.footnoteLabelProperties||{className:["sr-only"]},c=[];let f=-1;for(;++f<e.footnoteOrder.length;){const h=e.footnoteById.get(e.footnoteOrder[f]);if(!h)continue;const m=e.all(h),g=String(h.identifier).toUpperCase(),w=es(g.toLowerCase());let v=0;const E=[],k=e.footnoteCounts.get(g);for(;k!==void 0&&++v<=k;){E.length>0&&E.push({type:"text",value:" "});let R=typeof n=="string"?n:n(f,v);typeof R=="string"&&(R={type:"text",value:R}),E.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+w+(v>1?"-"+v:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(f,v),className:["data-footnote-backref"]},children:Array.isArray(R)?R:[R]})}const S=m[m.length-1];if(S&&S.type==="element"&&S.tagName==="p"){const R=S.children[S.children.length-1];R&&R.type==="text"?R.value+=" ":S.children.push({type:"text",value:" "}),S.children.push(...E)}else m.push(...E);const x={type:"element",tagName:"li",properties:{id:t+"fn-"+w},children:e.wrap(m,!0)};e.patch(h,x),c.push(x)}if(c.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Tu(u),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
258`},{type:"element",tagName:"ol",properties:{},children:e.wrap(c,!0)},{type:"text",value:`
259`}]}}const i1=(function(e){if(e==null)return UI;if(typeof e=="function")return Bu(e);if(typeof e=="object")return Array.isArray(e)?jI(e):FI(e);if(typeof e=="string")return zI(e);throw new Error("Expected function, string, or object as test")});function jI(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=i1(e[n]);return Bu(i);function i(...s){let a=-1;for(;++a<t.length;)if(t[a].apply(this,s))return!0;return!1}}function FI(e){const t=e;return Bu(n);function n(i){const s=i;let a;for(a in e)if(s[a]!==t[a])return!1;return!0}}function zI(e){return Bu(t);function t(n){return n&&n.type===e}}function Bu(e){return t;function t(n,i,s){return!!(BI(n)&&e.call(this,n,typeof i=="number"?i:void 0,s||void 0))}}function UI(){return!0}function BI(e){return e!==null&&typeof e=="object"&&"type"in e}const o1=[],$I=!0,Kv=!1,VI="skip";function HI(e,t,n,i){let s;typeof t=="function"&&typeof n!="function"?(i=n,n=t):s=t;const a=i1(s),u=i?-1:1;c(e,void 0,[])();function c(f,h,m){const g=f&&typeof f=="object"?f:{};if(typeof g.type=="string"){const v=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(w,"name",{value:"node ("+(f.type+(v?"<"+v+">":""))+")"})}return w;function w(){let v=o1,E,k,S;if((!t||a(f,h,m[m.length-1]||void 0))&&(v=WI(n(f,m)),v[0]===Kv))return v;if("children"in f&&f.children){const x=f;if(x.children&&v[0]!==VI)for(k=(i?x.children.length:-1)+u,S=m.concat(x);k>-1&&k<x.children.length;){const R=x.children[k];if(E=c(R,k,S)(),E[0]===Kv)return E;k=typeof E[1]=="number"?E[1]:k+u}}return v}}}function WI(e){return Array.isArray(e)?e:typeof e=="number"?[$I,e]:e==null?o1:[e]}function s1(e,t,n,i){let s,a,u;typeof t=="function"&&typeof n!="function"?(a=void 0,u=t,s=n):(a=t,u=n,s=i),HI(e,a,c,s);function c(f,h){const m=h[h.length-1],g=m?m.children.indexOf(f):void 0;return u(f,g,m)}}const ih={}.hasOwnProperty,qI={};function QI(e,t){const n=t||qI,i=new Map,s=new Map,a=new Map,u={...RI,...n.handlers},c={all:h,applyData:KI,definitionById:i,footnoteById:s,footnoteCounts:a,footnoteOrder:[],handlers:u,one:f,options:n,patch:YI,wrap:XI};return s1(e,function(m){if(m.type==="definition"||m.type==="footnoteDefinition"){const g=m.type==="definition"?i:s,w=String(m.identifier).toUpperCase();g.has(w)||g.set(w,m)}}),c;function f(m,g){const w=m.type,v=c.handlers[w];if(ih.call(c.handlers,w)&&v)return v(c,m,g);if(c.options.passThrough&&c.options.passThrough.includes(w)){if("children"in m){const{children:k,...S}=m,x=Tu(S);return x.children=c.all(m),x}return Tu(m)}return(c.options.unknownHandler||GI)(c,m,g)}function h(m){const g=[];if("children"in m){const w=m.children;let v=-1;for(;++v<w.length;){const E=c.one(w[v],m);
vendor: 10,188 bytes, lines 259-263
259if(E){if(v&&w[v-1].type==="break"&&(!Array.isArray(E)&&E.type==="text"&&(E.value=Gv(E.value)),!Array.isArray(E)&&E.type==="element")){const k=E.children[0];k&&k.type==="text"&&(k.value=Gv(k.value))}Array.isArray(E)?g.push(...E):g.push(E)}}}return g}}function YI(e,t){e.position&&(t.position=NN(e))}function KI(e,t){let n=t;if(e&&e.data){const i=e.data.hName,s=e.data.hChildren,a=e.data.hProperties;if(typeof i=="string")if(n.type==="element")n.tagName=i;else{const u="children"in n?n.children:[n];n={type:"element",tagName:i,properties:{},children:u}}n.type==="element"&&a&&Object.assign(n.properties,Tu(a)),"children"in n&&n.children&&s!==null&&s!==void 0&&(n.children=s)}return n}function GI(e,t){const n=t.data||{},i="value"in t&&!(ih.call(n,"hProperties")||ih.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function XI(e,t){const n=[];let i=-1;for(t&&n.push({type:"text",value:`
260`});++i<e.length;)i&&n.push({type:"text",value:`
261`}),n.push(e[i]);return t&&e.length>0&&n.push({type:"text",value:`
262`}),n}function Gv(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Xv(e,t){const n=QI(e,t),i=n.one(e,void 0),s=MI(n),a=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return s&&a.children.push({type:"text",value:`
263`},s),a}function JI(e,t){return e&&"run"in e?async function(n,i){const s=Xv(n,{file:i,...t});await e.run(s,i)}:function(n,i){return Xv(n,{file:i,...e||t})}}function Jv(e){if(e)throw e}var rf,Zv;function ZI(){if(Zv)return rf;Zv=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=function(h){return typeof Array.isArray=="function"?Array.isArray(h):t.call(h)==="[object Array]"},a=function(h){if(!h||t.call(h)!=="[object Object]")return!1;var m=e.call(h,"constructor"),g=h.constructor&&h.constructor.prototype&&e.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!m&&!g)return!1;var w;for(w in h);return typeof w>"u"||e.call(h,w)},u=function(h,m){n&&m.name==="__proto__"?n(h,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):h[m.name]=m.newValue},c=function(h,m){if(m==="__proto__")if(e.call(h,m)){if(i)return i(h,m).value}else return;return h[m]};return rf=function f(){var h,m,g,w,v,E,k=arguments[0],S=1,x=arguments.length,R=!1;for(typeof k=="boolean"&&(R=k,k=arguments[1]||{},S=2),(k==null||typeof k!="object"&&typeof k!="function")&&(k={});S<x;++S)if(h=arguments[S],h!=null)for(m in h)g=c(k,m),w=c(h,m),k!==w&&(R&&w&&(a(w)||(v=s(w)))?(v?(v=!1,E=g&&s(g)?g:[]):E=g&&a(g)?g:{},u(k,{name:m,newValue:f(R,E,w)})):typeof w<"u"&&u(k,{name:m,newValue:w}));return k},rf}var eL=ZI();const of=va(eL);function oh(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function tL(){const e=[],t={run:n,use:i};return t;function n(...s){let a=-1;const u=s.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);c(null,...s);function c(f,...h){const m=e[++a];let g=-1;if(f){u(f);return}for(;++g<s.length;)(h[g]===null||h[g]===void 0)&&(h[g]=s[g]);s=h,m?nL(m,c)(...h):u(null,...h)}}function i(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return e.push(s),t}}function nL(e,t){let n;return i;function i(...u){const c=e.length>u.length;let f;c&&u.push(s);try{f=e.apply(this,u)}catch(h){const m=h;if(c&&n)throw m;return s(m)}c||(f&&f.then&&typeof f.then=="function"?f.then(a,s):f instanceof Error?s(f):a(f))}function s(u,...c){n||(n=!0,t(u,...c))}function a(u){s(null,u)}}const Xn={basename:rL,dirname:iL,extname:oL,join:sL,sep:"/"};function rL(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Pa(e);let n=0,i=-1,s=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;s--;)if(e.codePointAt(s)===47){if(a){n=s+1;break}}else i<0&&(a=!0,i=s+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let u=-1,c=t.length-1;for(;s--;)if(e.codePointAt(s)===47){if(a){n=s+1;break}}else u<0&&(a=!0,u=s+1),c>-1&&(e.codePointAt(s)===t.codePointAt(c--)?c<0&&(i=s):(c=-1,i=u));return n===i?i=u:i<0&&(i=e.length),e.slice(n,i)}function iL(e){if(Pa(e),e.length===0)return".";let t=-1,n=e.length,i;for(;--n;)if(e.codePointAt(n)===47){if(i){t=n;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function oL(e){Pa(e);let t=e.length,n=-1,i=0,s=-1,a=0,u;for(;t--;){const c=e.codePointAt(t);if(c===47){if(u){i=t+1;break}continue}n<0&&(u=!0,n=t+1),c===46?s<0?s=t:a!==1&&(a=1):s>-1&&(a=-1)}return s<0||n<0||a===0||a===1&&s===n-1&&s===i+1?"":e.slice(s,n)}function sL(...e){let t=-1,n;for(;++t<e.length;)Pa(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":aL(n)}function aL(e){Pa(e);const t=e.codePointAt(0)===47;let n=lL(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function lL(e,t){let n="",i=0,s=-1,a=0,u=-1,c,f;for(;++u<=e.length;){if(u<e.length)c=e.codePointAt(u);else{if(c===47)break;c=47}if(c===47){if(!(s===u-1||a===1))if(s!==u-1&&a===2){if(n.length<2||i!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(f=n.lastIndexOf("/"),f!==n.length-1){f<0?(n="",i=0):(n=n.slice(0,f),i=n.length-1-n.lastIndexOf("/")),s=u,a=0;continue}}else if(n.length>0){n="",i=0,s=u,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",i=2)}else n.length>0?n+="/"+e.slice(s+1,u):n=e.slice(s+1,u),i=u-s-1;s=u,a=0}else c===46&&a>-1?a++:a=-1}return n}function Pa(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const uL={cwd:cL};function cL(){return"/"}function sh(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function dL(e){if(typeof e=="string")e=new URL(e);else if(!sh(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return fL(e)}function fL(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const i=t.codePointAt(n+2);if(i===70||i===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(t)}const sf=["history","path","basename","stem","extname","dirname"];class a1{constructor(t){let n;t?sh(t)?n={path:t}:typeof t=="string"||hL(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":uL.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<sf.length;){const a=sf[i];a in n&&n[a]!==void 0&&n[a]!==null&&(this[a]=a==="history"?[...n[a]]:n[a])}let s;for(s in n)sf.includes(s)||(this[s]=n[s])}get basename(){return typeof this.path=="string"?Xn.basename(this.path):void 0}set basename(t){lf(t,"basename"),af(t,"basename"),this.path=Xn.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Xn.dirname(this.path):void 0}set dirname(t){e0(this.basename,"dirname"),this.path=Xn.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Xn.extname(this.path):void 0}set extname(t){if(af(t,"extname"),e0(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Xn.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){sh(t)&&(t=dL(t)),lf(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Xn.basename(this.path,this.extname):void 0}set stem(t){lf(t,"stem"),af(t,"stem"),this.path=Xn.join(this.dirname||"",t+(this.extname||""))}fail(t,n,i){const s=this.message(t,n,i);throw s.fatal=!0,s}info(t,n,i){const s=this.message(t,n,i);return s.fatal=void 0,s}message(t,n,i){const s=new Bt(t,n,i);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function af(e,t){if(e&&e.includes(Xn.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Xn.sep+"`")}function lf(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function e0(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function hL(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const pL=(function(e){const i=this.constructor.prototype,s=i[e],a=function(){return s.apply(a,arguments)};return Object.setPrototypeOf(a,i),a}),mL={}.hasOwnProperty;class Gh extends pL{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=tL()}copy(){const t=new Gh;let n=-1;for(;++n<this.attachers.length;){const i=this.attachers[n];t.use(...i)}return t.data(of(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(df("data",this.frozen),this.namespace[t]=n,this):mL.call(this.namespace,t)&&this.namespace[t]||void 0:t?(df("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const s=n.call(t,...i);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Xl(t),i=this.parser||this.Parser;return uf("parse",i),i(String(n),n)}process(t,n){const i=this;
vendor: 6,404 bytes, line 263
263return this.freeze(),uf("process",this.parser||this.Parser),cf("process",this.compiler||this.Compiler),n?s(void 0,n):new Promise(s);function s(a,u){const c=Xl(t),f=i.parse(c);i.run(f,c,function(m,g,w){if(m||!g||!w)return h(m);const v=g,E=i.stringify(v,w);vL(E)?w.value=E:w.result=E,h(m,w)});function h(m,g){m||!g?u(m):a?a(g):n(void 0,g)}}}processSync(t){let n=!1,i;return this.freeze(),uf("processSync",this.parser||this.Parser),cf("processSync",this.compiler||this.Compiler),this.process(t,s),n0("processSync","process",n),i;function s(a,u){n=!0,Jv(a),i=u}}run(t,n,i){t0(t),this.freeze();const s=this.transformers;return!i&&typeof n=="function"&&(i=n,n=void 0),i?a(void 0,i):new Promise(a);function a(u,c){const f=Xl(n);s.run(t,f,h);function h(m,g,w){const v=g||t;m?c(m):u?u(v):i(void 0,v,w)}}}runSync(t,n){let i=!1,s;return this.run(t,n,a),n0("runSync","run",i),s;function a(u,c){Jv(u),s=c,i=!0}}stringify(t,n){this.freeze();const i=Xl(n),s=this.compiler||this.Compiler;return cf("stringify",s),t0(t),s(t,i)}use(t,...n){const i=this.attachers,s=this.namespace;if(df("use",this.frozen),t!=null)if(typeof t=="function")f(t,n);else if(typeof t=="object")Array.isArray(t)?c(t):u(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(h){if(typeof h=="function")f(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[m,...g]=h;f(m,g)}else u(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function u(h){if(!("plugins"in h)&&!("settings"in h))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");c(h.plugins),h.settings&&(s.settings=of(!0,s.settings,h.settings))}function c(h){let m=-1;if(h!=null)if(Array.isArray(h))for(;++m<h.length;){const g=h[m];a(g)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function f(h,m){let g=-1,w=-1;for(;++g<i.length;)if(i[g][0]===h){w=g;break}if(w===-1)i.push([h,...m]);else if(m.length>0){let[v,...E]=m;const k=i[w][1];oh(k)&&oh(v)&&(v=of(!0,k,v)),i[w]=[h,v,...E]}}}}const gL=new Gh().freeze();function uf(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function cf(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function df(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function t0(e){if(!oh(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function n0(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Xl(e){return yL(e)?e:new a1(e)}function yL(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function vL(e){return typeof e=="string"||wL(e)}function wL(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const xL="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",r0=[],i0={allowDangerousHtml:!0},bL=/^(https?|ircs?|mailto|xmpp)$/i,kL=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function SL(e){const t=EL(e),n=_L(e);return CL(t.runSync(t.parse(n),n),e)}function EL(e){const t=e.rehypePlugins||r0,n=e.remarkPlugins||r0,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...i0}:i0;return gL().use(rI).use(n).use(JI,i).use(t)}function _L(e){const t=e.children||"",n=new a1;return typeof t=="string"&&(n.value=t),n}function CL(e,t){const n=t.allowedElements,i=t.allowElement,s=t.components,a=t.disallowedElements,u=t.skipHtml,c=t.unwrapDisallowed,f=t.urlTransform||PL;for(const m of kL)Object.hasOwn(t,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+xL+m.id,void 0);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:e.type==="root"?e.children:[e]}),s1(e,h),MN(e,{Fragment:_.Fragment,components:s,ignoreInvalidStyle:!0,jsx:_.jsx,jsxs:_.jsxs,passKeys:!0,passNode:!0});function h(m,g,w){if(m.type==="raw"&&w&&typeof g=="number")return u?w.children.splice(g,1):w.children[g]={type:"text",value:m.value},g;if(m.type==="element"){let v;for(v in ef)if(Object.hasOwn(ef,v)&&Object.hasOwn(m.properties,v)){const E=m.properties[v],k=ef[v];(k===null||k.includes(m.tagName))&&(m.properties[v]=f(String(E||""),v,m))}}if(m.type==="element"){let v=n?!n.includes(m.tagName):a?a.includes(m.tagName):!1;if(!v&&i&&typeof g=="number"&&(v=!i(m,g,w)),v&&w&&typeof g=="number")return c&&m.children?w.children.splice(g,1,...m.children):w.children.splice(g,1),g}}}function PL(e){const t=e.indexOf(":"),n=e.indexOf("?"),i=e.indexOf("#"),s=e.indexOf("/");return t===-1||s!==-1&&t>s||n!==-1&&t>n||i!==-1&&t>i||bL.test(e.slice(0,t))?e:""}const TL="super_agent";function RL({currentPageName:e}){const t=e==="Chat",[n,i]=C.useState(!1),[s,a]=C.useState(null),[u,c]=C.useState([]),[f,h]=C.useState(""),[m,g]=C.useState(!1),[w,v]=C.useState(!1),E=C.useRef(null),k=C.useRef(null);C.useEffect(()=>{n&&!s&&S()},[n]),C.useEffect(()=>{var T;(T=E.current)==null||T.scrollIntoView({behavior:"smooth"})},[u]),C.useEffect(()=>()=>{k.current&&k.current()},[]);const S=async()=>{v(!0);const T=await ke.agents.createConversation({agent_name:TL});a(T),c(T.messages||[]),k.current=ke.agents.subscribeToConversation(T.id,A=>{c([...A.messages||[]]),g(!1)}),v(!1)},x=async()=>
263{if(!f.trim()||m||!s)return;const T=f.trim();h(""),g(!0),c(A=>[...A,{role:"user",content:T,id:Date.now()}]),await ke.agents.addMessage(s,{role:"user",content:T})},R=T=>{T.key==="Enter"&&!T.shiftKey&&(T.preventDefault(),x())};return _.jsxs(_.Fragment,{children:[!t&&_.jsx("button",{onClick:()=>i(T=>!T),className:"hidden lg:flex fixed bottom-6 right-4 z-[60] w-14 h-14 rounded-full bg-[#f9a8c9] text-gray-900 shadow-xl items-center justify-center hover:bg-[#f9a8c9]/90 transition-all hover:scale-105 active:scale-95","aria-label":"Help Chat",children:n?_.jsx(ph,{className:"w-6 h-6"}):_.jsx(D0,{className:"w-6 h-6"})}),n&&_.jsxs("div",{className:"fixed bottom-24 lg:bottom-24 right-4 z-[60] w-[340px] max-w-[calc(100vw-2rem)] h-[480px] max-h-[60vh] bg-white rounded-2xl shadow-2xl border border-gray-200 flex flex-col overflow-hidden lg:block hidden",children:[_.jsxs("div",{className:"bg-[#111111] px-4 py-3 flex items-center gap-3 shrink-0",children:[_.jsx("div",{className:"w-8 h-8 rounded-full bg-[#f9a8c9] flex items-center justify-center text-gray-900 font-bold text-sm",children:"P"}),_.jsxs("div",{children:[_.jsx("p",{className:"text-white font-bold text-sm",children:"Pelli Help Bot"}),_.jsx("p",{className:"text-white/50 text-xs",children:"Ask me anything about Montpellier FC"})]})]}),_.jsxs("div",{className:"flex-1 overflow-y-auto p-4 space-y-3",children:[w&&_.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground text-sm",children:[_.jsx(Jg,{className:"w-4 h-4 animate-spin"})," Starting chat..."]}),u.map((T,A)=>_.jsx("div",{className:lt("flex",T.role==="user"?"justify-end":"justify-start"),children:_.jsx("div",{className:lt("max-w-[80%] rounded-2xl px-3 py-2 text-sm",T.role==="user"?"bg-[#111111] text-white":"bg-gray-100 text-gray-800"),children:T.role==="user"?_.jsx("p",{children:T.content}):_.jsx(SL,{className:"prose prose-sm max-w-none [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",children:T.content})})},T.id||A)),m&&_.jsx("div",{className:"flex justify-start",children:_.jsx("div",{className:"bg-gray-100 rounded-2xl px-3 py-2",children:_.jsx(Jg,{className:"w-4 h-4 animate-spin text-gray-500"})})}),_.jsx("div",{ref:E})]}),_.jsxs("div",{className:"p-3 border-t border-gray-100 flex gap-2 shrink-0",children:[_.jsx("input",{value:f,onChange:T=>h(T.target.value),onKeyDown:R,placeholder:"Type a message...",disabled:w||m,className:"flex-1 text-sm border border-gray-200 rounded-xl px-3 py-2 focus:outline-none focus:ring-2 focus:ring-[#f9a8c9] disabled:opacity-50"}),_.jsx(xr,{size:"icon",onClick:x,disabled:!f.trim()||m||w,className:"bg-[#f9a8c9] text-gray-900 hover:bg-[#f9a8c9]/90 shrink-0 h-9 w-9",children:_.jsx(US,{className:"w-4 h-4"})})]})]})]})}function li(e,t,{checkForDefaultPrevented:n=!0}={}){return function(s){if(e==null||e(s),n===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function OL(e,t){const n=C.createContext(t),i=a=>{const{children:u,...c}=a,f=C.useMemo(()=>c,Object.values(c));return _.jsx(n.Provider,{value:f,children:u})};i.displayName=e+"Provider";function s(a){const u=C.useContext(n);if(u)return u;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[i,s]}function NL(e,t=[]){let n=[];function i(a,u){const c=C.createContext(u),f=n.length;n=[...n,u];const h=g=>{var x;const{scope:w,children:v,...E}=g,k=((x=w==null?void 0:w[e])==null?void 0:x[f])||c,S=C.useMemo(()=>E,Object.values(E));return _.jsx(k.Provider,{value:S,children:v})};h.displayName=a+"Provider";function m(g,w){var k;const v=((k=w==null?void 0:w[e])==null?void 0:k[f])||c,E=C.useContext(v);if(E)return E;if(u!==void 0)return u;throw new Error(`\`${g}\` must be used within \`${a}\``)}return[h,m]}const s=()=>{const a=n.map(u=>C.createContext(u));return function(c){const f=(c==null?void 0:c[e])||a;return C.useMemo(()=>({[`__scope${e}`]:{...c,[e]:f}}),[c,f])}};return s.scopeName=e,[i,AL(s,...t)]}function AL(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const i=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(a){const u=i.reduce((c,{useScope:f,scopeName:h})=>{const g=f(a)[`__scope${h}`];return{...c,...g}},{});return C.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])}};return n.scopeName=t.scopeName,n}var da=globalThis!=null&&globalThis.document?C.useLayoutEffect:()=>{},IL=Ou[" useId ".trim().toString()]||(()=>{}),LL=0;function ff(e){const[t,n]=C.useState(IL());return da(()=>{n(i=>i??String(LL++))},[e]),e||(t?`radix-${t}`:"")}var DL=Ou[" useInsertionEffect ".trim().toString()]||da;function ML({prop:e,defaultProp:t,onChange:n=()=>{},caller:i}){const[s,a,u]=jL({defaultProp:t,onChange:n}),c=e!==void 0,f=c?e:s;{const m=C.useRef(e!==void 0);C.useEffect(()=>{const g=m.current;g!==c&&console.warn(`${i} is changing from ${g?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),m.current=c},[c,i])}const h=C.useCallback(m=>{var g;if(c){const w=FL(m)?m(e):m;
vendor: 14,707 bytes, line 263
263w!==e&&((g=u.current)==null||g.call(u,w))}else a(m)},[c,e,a,u]);return[f,h]}function jL({defaultProp:e,onChange:t}){const[n,i]=C.useState(e),s=C.useRef(n),a=C.useRef(t);return DL(()=>{a.current=t},[t]),C.useEffect(()=>{var u;s.current!==n&&((u=a.current)==null||u.call(a,n),s.current=n)},[n,s]),[n,i,a]}function FL(e){return typeof e=="function"}function zL(e){const t=UL(e),n=C.forwardRef((i,s)=>{const{children:a,...u}=i,c=C.Children.toArray(a),f=c.find($L);if(f){const h=f.props.children,m=c.map(g=>g===f?C.Children.count(h)>1?C.Children.only(null):C.isValidElement(h)?h.props.children:null:g);return _.jsx(t,{...u,ref:s,children:C.isValidElement(h)?C.cloneElement(h,void 0,m):null})}return _.jsx(t,{...u,ref:s,children:a})});return n.displayName=`${e}.Slot`,n}function UL(e){const t=C.forwardRef((n,i)=>{const{children:s,...a}=n;if(C.isValidElement(s)){const u=HL(s),c=VL(a,s.props);return s.type!==C.Fragment&&(c.ref=i?ju(i,u):u),C.cloneElement(s,c)}return C.Children.count(s)>1?C.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var BL=Symbol("radix.slottable");function $L(e){return C.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===BL}function VL(e,t){const n={...t};for(const i in t){const s=e[i],a=t[i];/^on[A-Z]/.test(i)?s&&a?n[i]=(...c)=>{const f=a(...c);return s(...c),f}:s&&(n[i]=s):i==="style"?n[i]={...s,...a}:i==="className"&&(n[i]=[s,a].filter(Boolean).join(" "))}return{...e,...n}}function HL(e){var i,s;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var WL=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],br=WL.reduce((e,t)=>{const n=zL(`Primitive.${t}`),i=C.forwardRef((s,a)=>{const{asChild:u,...c}=s,f=u?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),_.jsx(f,{...c,ref:a})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function qL(e,t){e&&vw.flushSync(()=>e.dispatchEvent(t))}function fa(e){const t=C.useRef(e);return C.useEffect(()=>{t.current=e}),C.useMemo(()=>(...n)=>{var i;return(i=t.current)==null?void 0:i.call(t,...n)},[])}function QL(e,t=globalThis==null?void 0:globalThis.document){const n=fa(e);C.useEffect(()=>{const i=s=>{s.key==="Escape"&&n(s)};return t.addEventListener("keydown",i,{capture:!0}),()=>t.removeEventListener("keydown",i,{capture:!0})},[n,t])}var YL="DismissableLayer",ah="dismissableLayer.update",KL="dismissableLayer.pointerDownOutside",GL="dismissableLayer.focusOutside",o0,l1=C.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),u1=C.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:u,onDismiss:c,...f}=e,h=C.useContext(l1),[m,g]=C.useState(null),w=(m==null?void 0:m.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=C.useState({}),E=Ki(t,W=>g(W)),k=Array.from(h.layers),[S]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),x=k.indexOf(S),R=m?k.indexOf(m):-1,T=h.layersWithOutsidePointerEventsDisabled.size>0,A=R>=x,U=ZL(W=>{const M=W.target,K=[...h.branches].some(H=>H.contains(M));!A||K||(s==null||s(W),u==null||u(W),W.defaultPrevented||c==null||c())},w),L=eD(W=>{const M=W.target;[...h.branches].some(H=>H.contains(M))||(a==null||a(W),u==null||u(W),W.defaultPrevented||c==null||c())},w);return QL(W=>{R===h.layers.size-1&&(i==null||i(W),!W.defaultPrevented&&c&&(W.preventDefault(),c()))},w),C.useEffect(()=>{if(m)return n&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(o0=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(m)),h.layers.add(m),s0(),()=>{n&&h.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=o0)}},[m,w,n,h]),C.useEffect(()=>()=>{m&&(h.layers.delete(m),h.layersWithOutsidePointerEventsDisabled.delete(m),s0())},[m,h]),C.useEffect(()=>{const W=()=>v({});return document.addEventListener(ah,W),()=>document.removeEventListener(ah,W)},[]),_.jsx(br.div,{...f,ref:E,style:{pointerEvents:T?A?"auto":"none":void 0,...e.style},onFocusCapture:li(e.onFocusCapture,L.onFocusCapture),onBlurCapture:li(e.onBlurCapture,L.onBlurCapture),onPointerDownCapture:li(e.onPointerDownCapture,U.onPointerDownCapture)})});u1.displayName=YL;var XL="DismissableLayerBranch",JL=C.forwardRef((e,t)=>{const n=C.useContext(l1),i=C.useRef(null),s=Ki(t,i);return C.useEffect(()=>{const a=i.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),_.jsx(br.div,{...e,ref:s})});JL.displayName=XL;function ZL(e,t=globalThis==null?void 0:globalThis.document){const n=fa(e),i=C.useRef(!1),s=C.useRef(()=>{});return C.useEffect(()=>{const a=c=>{if(c.target&&!i.current){let f=function(){c1(KL,n,h,{discrete:!0})};const h={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=f,t.addEventListener("click",s.current,{once:!0})):f()}else t.removeEventListener("click",s.current);i.current=!1},u=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(u),t.removeEventListener("pointerdown",a),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>i.current=!0}}function eD(e,t=globalThis==null?void 0:globalThis.document){const n=fa(e),i=C.useRef(!1);return C.useEffect(()=>{const s=a=>{a.target&&!i.current&&c1(GL,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function s0(){const e=new CustomEvent(ah);document.dispatchEvent(e)}function c1(e,t,n,{discrete:i}){const s=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),i?qL(s,a):s.dispatchEvent(a)}var hf="focusScope.autoFocusOnMount",pf="focusScope.autoFocusOnUnmount",a0={bubbles:!1,cancelable:!0},tD="FocusScope",d1=C.forwardRef((e,t)=>{const{loop:n=!1,trapped:i=!1,onMountAutoFocus:s,onUnmountAutoFocus:a,...u}=e,[c,f]=C.useState(null),h=fa(s),m=fa(a),g=C.useRef(null),w=Ki(t,k=>f(k)),v=C.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;C.useEffect(()=>{if(i){let k=function(T){if(v.paused||!c)return;const A=T.target;c.contains(A)?g.current=A:Qr(g.current,{select:!0})},S=function(T){if(v.paused||!c)return;const A=T.relatedTarget;A!==null&&(c.contains(A)||Qr(g.current,{select:!0}))},x=function(T){if(document.activeElement===document.body)for(const U of T)U.removedNodes.length>0&&Qr(c)};document.addEventListener("focusin",k),document.addEventListener("focusout",S);const R=new MutationObserver(x);return c&&R.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",k),document.removeEventListener("focusout",S),R.disconnect()}}},[i,c,v.paused]),C.useEffect(()=>{if(c){u0.add(v);const k=document.activeElement;if(!c.contains(k)){const x=new CustomEvent(hf,a0);c.addEventListener(hf,h),c.dispatchEvent(x),x.defaultPrevented||(nD(aD(f1(c)),{select:!0}),document.activeElement===k&&Qr(c))}return()=>{c.removeEventListener(hf,h),setTimeout(()=>{const x=new CustomEvent(pf,a0);c.addEventListener(pf,m),c.dispatchEvent(x),x.defaultPrevented||Qr(k??document.body,{select:!0}),c.removeEventListener(pf,m),u0.remove(v)},0)}}},[c,h,m,v]);const E=C.useCallback(k=>{if(!n&&!i||v.paused)return;const S=k.key==="Tab"&&!k.altKey&&!k.ctrlKey&&!k.metaKey,x=document.activeElement;if(S&&x){const R=k.currentTarget,[T,A]=rD(R);T&&A?!k.shiftKey&&x===A?(k.preventDefault(),n&&Qr(T,{select:!0})):k.shiftKey&&x===T&&(k.preventDefault(),n&&Qr(A,{select:!0})):x===R&&k.preventDefault()}},[n,i,v.paused]);return _.jsx(br.div,{tabIndex:-1,...u,ref:w,onKeyDown:E})});d1.displayName=tD;function nD(e,{select:t=!1}={}){const n=document.activeElement;for(const i of e)if(Qr(i,{select:t}),document.activeElement!==n)return}function rD(e){const t=f1(e),n=l0(t,e),i=l0(t.reverse(),e);return[n,i]}function f1(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const s=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||s?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function l0(e,t){for(const n of e)if(!iD(n,{upTo:t}))return n}function iD(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function oD(e){return e instanceof HTMLInputElement&&"select"in e}function Qr(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&oD(e)&&t&&e.select()}}var u0=sD();function sD(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=c0(e,t),e.unshift(t)},remove(t){var n;e=c0(e,t),(n=e[0])==null||n.resume()}}}function c0(e,t){const n=[...e],i=n.indexOf(t);return i!==-1&&n.splice(i,1),n}function aD(e){return e.filter(t=>t.tagName!=="A")}var lD="Portal",h1=C.forwardRef((e,t)=>{var c;const{container:n,...i}=e,[s,a]=C.useState(!1);da(()=>a(!0),[]);const u=n||s&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return u?k_.createPortal(_.jsx(br.div,{...i,ref:t}),u):null});h1.displayName=lD;function uD(e,t){return C.useReducer((n,i)=>t[n][i]??n,e)}var $u=e=>{const{present:t,children:n}=e,i=cD(t),s=typeof n=="function"?n({present:i.isPresent}):C.Children.only(n),a=Ki(i.ref,dD(s));return typeof n=="function"||i.isPresent?C.cloneElement(s,{ref:a}):null};$u.displayName="Presence";function cD(e){const[t,n]=C.useState(),i=C.useRef(null),s=C.useRef(e),a=C.useRef("none"),u=e?"mounted":"unmounted",[c,f]=uD(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return C.useEffect(()=>{const h=Jl(i.current);a.current=c==="mounted"?h:"none"},[c]),da(()=>{const h=i.current,m=s.current;if(m!==e){const w=a.current,v=Jl(h);e?f("MOUNT"):v==="none"||(h==null?void 0:h.display)==="none"?f("UNMOUNT"):f(m&&w!==v?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,f]),da(()=>{if(t){let h;const m=t.ownerDocument.defaultView??window,g=v=>{const k=Jl(i.current).includes(CSS.escape(v.animationName));if(v.target===t&&k&&(f("ANIMATION_END"),!s.current)){const S=t.style.animationFillMode;t.style.animationFillMode="forwards",h=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=S)})}},w=v=>{v.target===t&&(a.current=Jl(i.current))};return t.addEventListener("animationstart",w),t.addEventListener("animationcancel",g),t.addEventListener("animationend",g),()=>{m.clearTimeout(h),t.removeEventListener("animationstart",w),t.removeEventListener("animationcancel",g),t.removeEventListener("animationend",g)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:C.useCallback(h=>{i.current=h?getComputedStyle(h):null,n(h)},[])}}function Jl(e){return(e==null?void 0:e.animationName)||"none"}function dD(e){var i,s;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var mf=0;function fD(){C.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??d0()),document.body.insertAdjacentElement("beforeend",e[1]??d0()),mf++,()=>{mf===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),mf--}},[])}function d0(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var nr=function(){return nr=Object.assign||function(t){for(var n,i=1,s=arguments.length;i<s;i++){n=arguments[i];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},nr.apply(this,arguments)};function p1(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(e);s<i.length;s++)t.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(e,i[s])&&(n[i[s]]=e[i[s]]);return n}function hD(e,t,n){if(n||arguments.length===2)for(var i=0,s=t.length,a;i<s;i++)(a||!(i in t))&&(a||(a=Array.prototype.slice.call(t,0,i)),a[i]=t[i]);return e.concat(a||Array.prototype.slice.call(t))}var pu="right-scroll-bar-position",mu="width-before-scroll-bar",pD="with-scroll-bars-hidden",mD="--removed-body-scroll-bar-size";function gf(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function gD(e,t){var n=C.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(i){var s=n.value;s!==i&&(n.value=i,n.callback(i,s))}}}})[0];return n.callback=t,n.facade}var yD=typeof window<"u"?C.useLayoutEffect:C.useEffect,f0=new WeakMap;function vD(e,t){var n=gD(null,function(i){return e.forEach(function(s){return gf(s,i)})});return yD(function(){var i=f0.get(n);if(i){var s=new Set(i),a=new Set(e),u=n.current;s.forEach(function(c){a.has(c)||gf(c,null)}),a.forEach(function(c){s.has(c)||gf(c,u)})}f0.set(n,e)},[e]),n}function wD(e){return e}function xD(e,t){t===void 0&&(t=wD);var n=[],i=!1,s={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var u=t(a,i);return n.push(u),function(){n=n.filter(function(c){return c!==u})}},assignSyncMedium:function(a){for(i=!0;n.length;){var u=n;n=[],u.forEach(a)}n={push:function(c){return a(c)},filter:function(){return n}}},assignMedium:function(a){i=!0;var u=[];if(n.length){var c=n;n=[],c.forEach(a),u=n}var f=function(){var m=u;u=[],m.forEach(a)},h=function(){return Promise.resolve().then(f)};h(),n={push:function(m){u.push(m),h()},filter:function(m){return u=u.filter(m),n}}}};return s}function bD(e){e===void 0&&(e={});var t=xD(null);return t.options=nr({async:!0,ssr:!1},e),t}var m1=function(e){var t=e.sideCar,n=p1(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return C.createElement(i,nr({},n))};
vendor: 8,875 bytes, lines 263-303
263m1.isSideCarExport=!0;function kD(e,t){return e.useMedium(t),m1}var g1=bD(),yf=function(){},Vu=C.forwardRef(function(e,t){var n=C.useRef(null),i=C.useState({onScrollCapture:yf,onWheelCapture:yf,onTouchMoveCapture:yf}),s=i[0],a=i[1],u=e.forwardProps,c=e.children,f=e.className,h=e.removeScrollBar,m=e.enabled,g=e.shards,w=e.sideCar,v=e.noRelative,E=e.noIsolation,k=e.inert,S=e.allowPinchZoom,x=e.as,R=x===void 0?"div":x,T=e.gapMode,A=p1(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),U=w,L=vD([n,t]),W=nr(nr({},A),s);return C.createElement(C.Fragment,null,m&&C.createElement(U,{sideCar:g1,removeScrollBar:h,shards:g,noRelative:v,noIsolation:E,inert:k,setCallbacks:a,allowPinchZoom:!!S,lockRef:n,gapMode:T}),u?C.cloneElement(C.Children.only(c),nr(nr({},W),{ref:L})):C.createElement(R,nr({},W,{className:f,ref:L}),c))});Vu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Vu.classNames={fullWidth:mu,zeroRight:pu};var SD=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function ED(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=SD();return t&&e.setAttribute("nonce",t),e}function _D(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function CD(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var PD=function(){var e=0,t=null;return{add:function(n){e==0&&(t=ED())&&(_D(t,n),CD(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},TD=function(){var e=PD();return function(t,n){C.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},y1=function(){var e=TD(),t=function(n){var i=n.styles,s=n.dynamic;return e(i,s),null};return t},RD={left:0,top:0,right:0,gap:0},vf=function(e){return parseInt(e||"",10)||0},OD=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[vf(n),vf(i),vf(s)]},ND=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return RD;var t=OD(e),n=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-n+t[2]-t[0])}},AD=y1(),Lo="data-scroll-locked",ID=function(e,t,n,i){var s=e.left,a=e.top,u=e.right,c=e.gap;return n===void 0&&(n="margin"),`
264  .`.concat(pD,` {
265   overflow: hidden `).concat(i,`;
266   padding-right: `).concat(c,"px ").concat(i,`;
267  }
268  body[`).concat(Lo,`] {
269    overflow: hidden `).concat(i,`;
270    overscroll-behavior: contain;
271    `).concat([t&&"position: relative ".concat(i,";"),n==="margin"&&`
272    padding-left: `.concat(s,`px;
273    padding-top: `).concat(a,`px;
274    padding-right: `).concat(u,`px;
275    margin-left:0;
276    margin-top:0;
277    margin-right: `).concat(c,"px ").concat(i,`;
278    `),n==="padding"&&"padding-right: ".concat(c,"px ").concat(i,";")].filter(Boolean).join(""),`
279  }
280  
281  .`).concat(pu,` {
282    right: `).concat(c,"px ").concat(i,`;
283  }
284  
285  .`).concat(mu,` {
286    margin-right: `).concat(c,"px ").concat(i,`;
287  }
288  
289  .`).concat(pu," .").concat(pu,` {
290    right: 0 `).concat(i,`;
291  }
292  
293  .`).concat(mu," .").concat(mu,` {
294    margin-right: 0 `).concat(i,`;
295  }
296  
297  body[`).concat(Lo,`] {
298    `).concat(mD,": ").concat(c,`px;
299  }
300`)},h0=function(){var e=parseInt(document.body.getAttribute(Lo)||"0",10);return isFinite(e)?e:0},LD=function(){C.useEffect(function(){return document.body.setAttribute(Lo,(h0()+1).toString()),function(){var e=h0()-1;e<=0?document.body.removeAttribute(Lo):document.body.setAttribute(Lo,e.toString())}},[])},DD=function(e){var t=e.noRelative,n=e.noImportant,i=e.gapMode,s=i===void 0?"margin":i;LD();var a=C.useMemo(function(){return ND(s)},[s]);return C.createElement(AD,{styles:ID(a,!t,s,n?"":"!important")})},lh=!1;if(typeof window<"u")try{var Zl=Object.defineProperty({},"passive",{get:function(){return lh=!0,!0}});window.addEventListener("test",Zl,Zl),window.removeEventListener("test",Zl,Zl)}catch{lh=!1}var Po=lh?{passive:!1}:!1,MD=function(e){return e.tagName==="TEXTAREA"},v1=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!MD(e)&&n[t]==="visible")},jD=function(e){return v1(e,"overflowY")},FD=function(e){return v1(e,"overflowX")},p0=function(e,t){var n=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var s=w1(e,i);if(s){var a=x1(e,i),u=a[1],c=a[2];if(u>c)return!0}i=i.parentNode}while(i&&i!==n.body);return!1},zD=function(e){var t=e.scrollTop,n=e.scrollHeight,i=e.clientHeight;return[t,n,i]},UD=function(e){var t=e.scrollLeft,n=e.scrollWidth,i=e.clientWidth;return[t,n,i]},w1=function(e,t){return e==="v"?jD(t):FD(t)},x1=function(e,t){return e==="v"?zD(t):UD(t)},BD=function(e,t){return e==="h"&&t==="rtl"?-1:1},$D=function(e,t,n,i,s){var a=BD(e,window.getComputedStyle(t).direction),u=a*i,c=n.target,f=t.contains(c),h=!1,m=u>0,g=0,w=0;do{if(!c)break;var v=x1(e,c),E=v[0],k=v[1],S=v[2],x=k-S-a*E;(E||x)&&w1(e,c)&&(g+=x,w+=E);var R=c.parentNode;c=R&&R.nodeType===Node.DOCUMENT_FRAGMENT_NODE?R.host:R}while(!f&&c!==document.body||f&&(t.contains(c)||t===c));return(m&&Math.abs(g)<1||!m&&Math.abs(w)<1)&&(h=!0),h},eu=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},m0=function(e){return[e.deltaX,e.deltaY]},g0=function(e){return e&&"current"in e?e.current:e},VD=function(e,t){return e[0]===t[0]&&e[1]===t[1]},HD=function(e){return`
301  .block-interactivity-`.concat(e,` {pointer-events: none;}
302  .allow-interactivity-`).concat(e,` {pointer-events: all;}
303`)},WD=0,To=[];function qD(e){var t=C.useRef([]),n=C.useRef([0,0]),i=C.useRef(),s=C.useState(WD++)[0],a=C.useState(y1)[0],u=C.useRef(e);C.useEffect(function(){u.current=e},[e]),C.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var k=hD([e.lockRef.current],(e.shards||[]).map(g0),!0).filter(Boolean);return k.forEach(function(S){return S.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),k.forEach(function(S){return S.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var c=C.useCallback(function(k,S){if("touches"in k&&k.touches.length===2||k.type==="wheel"&&k.ctrlKey)return!u.current.allowPinchZoom;var x=eu(k),R=n.current,T="deltaX"in k?k.deltaX:R[0]-x[0],A="deltaY"in k?k.deltaY:R[1]-x[1],U,L=k.target,W=Math.abs(T)>Math.abs(A)?"h":"v";if("touches"in k&&W==="h"&&L.type==="range")return!1;var M=window.getSelection(),K=M&&M.anchorNode,H=K?K===L||K.contains(L):!1;if(H)return!1;var Q=p0(W,L);if(!Q)return!0;if(Q?U=W:(U=W==="v"?"h":"v",Q=p0(W,L)),!Q)return!1;if(!i.current&&"changedTouches"in k&&(T||A)&&(i.current=U),!U)return!0;var G=i.current||U;return $D(G,S,k,G==="h"?T:A)},[]),f=C.useCallback(function(k){var S=k;if(!(!To.length||To[To.length-1]!==a)){var x="deltaY"in S?m0(S):eu(S),R=t.current.filter(function(U){return U.name===S.type&&(U.target===S.target||S.target===U.shadowParent)&&VD(U.delta,x)})[0];if(R&&R.should){S.cancelable&&S.preventDefault();return}if(!R){var T=(u.current.shards||[]).map(g0).filter(Boolean).filter(function(U){return U.contains(S.target)}),A=T.length>0?c(S,T[0]):!u.current.noIsolation;A&&S.cancelable&&S.preventDefault()}}},[]),h=C.useCallback(function(k,S,x,R){var T={name:k,delta:S,target:x,should:R,shadowParent:QD(x)};t.current.push(T),setTimeout(function(){t.current=t.current.filter(function(A){return A!==T})},1)},[]),m=C.useCallback(function(k){n.current=eu(k),i.current=void 0},[]),g=C.useCallback(function(k){h(k.type,m0(k),k.target,c(k,e.lockRef.current))},[]),w=C.useCallback(function(k){h(k.type,eu(k),k.target,c(k,e.lockRef.current))},[]);C.useEffect(function(){return To.push(a),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:w}),document.addEventListener("wheel",f,Po),document.addEventListener("touchmove",f,Po),document.addEventListener("touchstart",m,Po),function(){To=To.filter(function(k){return k!==a}),document.removeEventListener("wheel",f,Po),document.removeEventListener("touchmove",f,Po),document.removeEventListener("touchstart",m,Po)}},[]);var v=e.removeScrollBar,E=e.inert;return C.createElement(C.Fragment,null,E?C.createElement(a,{styles:HD(s)}):null,v?C.createElement(DD,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function QD(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const YD=kD(g1,qD);var b1=C.forwardRef(function(e,t){return C.createElement(Vu,nr({},e,{ref:t,sideCar:YD}))});b1.classNames=Vu.classNames;var KD=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body}
vendor: 8,793 bytes, lines 303-307
303,Ro=new WeakMap,tu=new WeakMap,nu={},wf=0,k1=function(e){return e&&(e.host||k1(e.parentNode))},GD=function(e,t){return t.map(function(n){if(e.contains(n))return n;var i=k1(n);return i&&e.contains(i)?i:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},XD=function(e,t,n,i){var s=GD(t,Array.isArray(e)?e:[e]);nu[n]||(nu[n]=new WeakMap);var a=nu[n],u=[],c=new Set,f=new Set(s),h=function(g){!g||c.has(g)||(c.add(g),h(g.parentNode))};s.forEach(h);var m=function(g){!g||f.has(g)||Array.prototype.forEach.call(g.children,function(w){if(c.has(w))m(w);else try{var v=w.getAttribute(i),E=v!==null&&v!=="false",k=(Ro.get(w)||0)+1,S=(a.get(w)||0)+1;Ro.set(w,k),a.set(w,S),u.push(w),k===1&&E&&tu.set(w,!0),S===1&&w.setAttribute(n,"true"),E||w.setAttribute(i,"true")}catch(x){console.error("aria-hidden: cannot operate on ",w,x)}})};return m(t),c.clear(),wf++,function(){u.forEach(function(g){var w=Ro.get(g)-1,v=a.get(g)-1;Ro.set(g,w),a.set(g,v),w||(tu.has(g)||g.removeAttribute(i),tu.delete(g)),v||g.removeAttribute(n)}),wf--,wf||(Ro=new WeakMap,Ro=new WeakMap,tu=new WeakMap,nu={})}},JD=function(e,t,n){n===void 0&&(n="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),s=KD(e);return s?(i.push.apply(i,Array.from(s.querySelectorAll("[aria-live], script"))),XD(i,s,n,"aria-hidden")):function(){return null}};function ZD(e){const t=eM(e),n=C.forwardRef((i,s)=>{const{children:a,...u}=i,c=C.Children.toArray(a),f=c.find(nM);if(f){const h=f.props.children,m=c.map(g=>g===f?C.Children.count(h)>1?C.Children.only(null):C.isValidElement(h)?h.props.children:null:g);return _.jsx(t,{...u,ref:s,children:C.isValidElement(h)?C.cloneElement(h,void 0,m):null})}return _.jsx(t,{...u,ref:s,children:a})});return n.displayName=`${e}.Slot`,n}function eM(e){const t=C.forwardRef((n,i)=>{const{children:s,...a}=n;if(C.isValidElement(s)){const u=iM(s),c=rM(a,s.props);return s.type!==C.Fragment&&(c.ref=i?ju(i,u):u),C.cloneElement(s,c)}return C.Children.count(s)>1?C.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var tM=Symbol("radix.slottable");function nM(e){return C.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===tM}function rM(e,t){const n={...t};for(const i in t){const s=e[i],a=t[i];/^on[A-Z]/.test(i)?s&&a?n[i]=(...c)=>{const f=a(...c);return s(...c),f}:s&&(n[i]=s):i==="style"?n[i]={...s,...a}:i==="className"&&(n[i]=[s,a].filter(Boolean).join(" "))}return{...e,...n}}function iM(e){var i,s;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Hu="Dialog",[S1,V4]=NL(Hu),[oM,Vn]=S1(Hu),E1=e=>{const{__scopeDialog:t,children:n,open:i,defaultOpen:s,onOpenChange:a,modal:u=!0}=e,c=C.useRef(null),f=C.useRef(null),[h,m]=ML({prop:i,defaultProp:s??!1,onChange:a,caller:Hu});return _.jsx(oM,{scope:t,triggerRef:c,contentRef:f,contentId:ff(),titleId:ff(),descriptionId:ff(),open:h,onOpenChange:m,onOpenToggle:C.useCallback(()=>m(g=>!g),[m]),modal:u,children:n})};E1.displayName=Hu;var _1="DialogTrigger",C1=C.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,s=Vn(_1,n),a=Ki(t,s.triggerRef);return _.jsx(br.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":Zh(s.open),...i,ref:a,onClick:li(e.onClick,s.onOpenToggle)})});C1.displayName=_1;var Xh="DialogPortal",[sM,P1]=S1(Xh,{forceMount:void 0}),T1=e=>{const{__scopeDialog:t,forceMount:n,children:i,container:s}=e,a=Vn(Xh,t);return _.jsx(sM,{scope:t,forceMount:n,children:C.Children.map(i,u=>_.jsx($u,{present:n||a.open,children:_.jsx(h1,{asChild:!0,container:s,children:u})}))})};T1.displayName=Xh;var Ru="DialogOverlay",R1=C.forwardRef((e,t)=>{const n=P1(Ru,e.__scopeDialog),{forceMount:i=n.forceMount,...s}=e,a=Vn(Ru,e.__scopeDialog);return a.modal?_.jsx($u,{present:i||a.open,children:_.jsx(lM,{...s,ref:t})}):null});R1.displayName=Ru;var aM=ZD("DialogOverlay.RemoveScroll"),lM=C.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,s=Vn(Ru,n);return _.jsx(b1,{as:aM,allowPinchZoom:!0,shards:[s.contentRef],children:_.jsx(br.div,{"data-state":Zh(s.open),...i,ref:t,style:{pointerEvents:"auto",...i.style}})})}),qi="DialogContent",O1=C.forwardRef((e,t)=>{const n=P1(qi,e.__scopeDialog),{forceMount:i=n.forceMount,...s}=e,a=Vn(qi,e.__scopeDialog);return _.jsx($u,{present:i||a.open,children:a.modal?_.jsx(uM,{...s,ref:t}):_.jsx(cM,{...s,ref:t})})});O1.displayName=qi;var uM=C.forwardRef((e,t)=>{const n=Vn(qi,e.__scopeDialog),i=C.useRef(null),s=Ki(t,n.contentRef,i);return C.useEffect(()=>{const a=i.current;if(a)return JD(a)},[]),_.jsx(N1,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:li(e.onCloseAutoFocus,a=>{var u;a.preventDefault(),(u=n.triggerRef.current)==null||u.focus()}),onPointerDownOutside:li(e.onPointerDownOutside,a=>{const u=a.detail.originalEvent,c=u.button===0&&u.ctrlKey===!0;(u.button===2||c)&&a.preventDefault()}),onFocusOutside:li(e.onFocusOutside,a=>a.preventDefault())})}),cM=C.forwardRef((e,t)=>{const n=Vn(qi,e.__scopeDialog),i=C.useRef(!1),s=C.useRef(!1);return _.jsx(N1,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var u,c;(u=e.onCloseAutoFocus)==null||u.call(e,a),a.defaultPrevented||(i.current||(c=n.triggerRef.current)==null||c.focus(),a.preventDefault()),i.current=!1,s.current=!1},onInteractOutside:a=>{var f,h;(f=e.onInteractOutside)==null||f.call(e,a),a.defaultPrevented||(i.current=!0,a.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const u=a.target;((h=n.triggerRef.current)==null?void 0:h.contains(u))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&s.current&&a.preventDefault()}})}),N1=C.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:a,...u}=e,c=Vn(qi,n),f=C.useRef(null),h=Ki(t,f);return fD(),_.jsxs(_.Fragment,{children:[_.jsx(d1,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:s,onUnmountAutoFocus:a,children:_.jsx(u1,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":Zh(c.open),...u,ref:h,onDismiss:()=>c.onOpenChange(!1)})}),_.jsxs(_.Fragment,{children:[_.jsx(dM,{titleId:c.titleId}),_.jsx(hM,{contentRef:f,descriptionId:c.descriptionId})]})]})}),Jh="DialogTitle",A1=C.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,s=Vn(Jh,n);return _.jsx(br.h2,{id:s.titleId,...i,ref:t})});A1.displayName=Jh;var I1="DialogDescription",L1=C.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,s=Vn(I1,n);return _.jsx(br.p,{id:s.descriptionId,...i,ref:t})});L1.displayName=I1;var D1="DialogClose",M1=C.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,s=Vn(D1,n);return _.jsx(br.button,{type:"button",...i,ref:t,onClick:li(e.onClick,()=>s.onOpenChange(!1))})});M1.displayName=D1;function Zh(e){return e?"open":"closed"}var j1="DialogTitleWarning",[H4,F1]=OL(j1,{contentName:qi,titleName:Jh,docsSlug:"dialog"}),dM=({titleId:e})=>{const t=F1(j1),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
304
305If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
306
307For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return C.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},fM="DialogDescriptionWarning",hM=({contentRef:e,descriptionId:t})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${F1(fM).contentName}}.`;return C.useEffect(()=>{var a;const s=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(i))},[i,e,t]),null},pM=E1,mM=C1,gM=T1,z1=R1,U1=O1,B1=A1,$1=L1,yM=M1;const vM=pM,W4=mM,wM=gM,V1=C.forwardRef(({className:e,...t},n)=>_.jsx(z1,{ref:n,className:lt("fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));V1.displayName=z1.displayName;const H1=C.forwardRef(({className:e,children:t,...n},i)=>_.jsxs(wM,{children:[_.jsx(V1,{}),_.jsxs(U1,{ref:i,className:lt("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rou
307nded-lg",e),...n,children:[t,_.jsxs(yM,{className:"absolute right-4 top-4 z-50 rounded-full p-1.5 bg-slate-100 text-slate-600 hover:bg-slate-200 hover:text-slate-900 transition-all opacity-100 focus:outline-none focus:ring-2 focus:ring-ring disabled:pointer-events-none",children:[_.jsx(ph,{className:"h-5 w-5"}),_.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));H1.displayName=U1.displayName;const W1=({className:e,...t})=>_.jsx("div",{className:lt("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});W1.displayName="DialogHeader";const q1=({className:e,...t})=>_.jsx("div",{className:lt("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});q1.displayName="DialogFooter";const Q1=C.forwardRef(({className:e,...t},n)=>_.jsx(B1,{ref:n,className:lt("text-lg font-semibold leading-none tracking-tight",e),...t}));Q1.displayName=B1.displayName;const Y1=C.forwardRef(({className:e,...t},n)=>_.jsx($1,{ref:n,className:lt("text-sm text-muted-foreground",e),...t}));Y1.displayName=$1.displayName;const uh=C.forwardRef(({className:e,type:t,...n},i)=>_.jsx("input",{type:t,className:lt("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:i,...n}));uh.displayName="Input";var xM=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],bM=xM.reduce((e,t)=>{const n=kx(`Primitive.${t}`),i=C.forwardRef((s,a)=>{const{asChild:u,...c}=s,f=u?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),_.jsx(f,{...c,ref:a})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{}),kM="Label",K1=C.forwardRef((e,t)=>_.jsx(bM.label,{...e,ref:t,onMouseDown:n=>{var s;n.target.closest("button, input, select, textarea")||((s=e.onMouseDown)==null||s.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));K1.displayName=kM;var G1=K1;const SM=hh("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ch=C.forwardRef(({className:e,...t},n)=>_.jsx(G1,{ref:n,className:lt(SM(),e),...t}));ch.displayName=G1.displayName;const xf="name_capture_dismissed";function EM(){const{user:e,isAuthenticated:t}=Mh(),[n,i]=C.useState(!1),[s,a]=C.useState(""),[u,c]=C.useState(""),[f,h]=C.useState(!1);C.useEffect(()=>{if(!t||!e)return;const g=e.display_name&&e.display_name.trim().length>0,w=sessionStorage.getItem(xf)==="1";!g&&!w&&i(!0)},[t,e]);const m=async g=>{if(g.preventDefault(),!s.trim()||!u.trim()){fu.error("Please enter your first and last name");return}h(!0);try{await ke.auth.updateMe({display_name:`${s.trim()} ${u.trim()}`}),fu.success("Name saved!"),sessionStorage.setItem(xf,"1"),i(!1),window.location.reload()}catch{fu.error("Failed to save name. Please try again.")}finally{h(!1)}};return _.jsx(vM,{open:n,onOpenChange:g=>{g||sessionStorage.setItem(xf,"1"),i(g)},children:_.jsxs(H1,{className:"sm:max-w-md",onPointerDownOutside:g=>g.preventDefault(),children:[_.jsxs(W1,{children:[_.jsx(Q1,{children:"Welcome to Montpellier FC!"}),_.jsx(Y1,{children:"Please tell us your name so we can recognise you in the club."})]}),_.jsxs("form",{onSubmit:m,className:"space-y-4",children:[_.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[_.jsxs("div",{className:"space-y-1.5",children:[_.jsx(ch,{htmlFor:"first-name",children:"First Name"}),_.jsx(uh,{id:"first-name",value:s,onChange:g=>a(g.target.value),placeholder:"John",autoFocus:!0,required:!0})]}),_.jsxs("div",{className:"space-y-1.5",children:[_.jsx(ch,{htmlFor:"last-name",children:"Last Name"}),_.jsx(uh,{id:"last-name",value:u,onChange:g=>c(g.target.value),placeholder:"Smith",required:!0})]})]}),_.jsx(q1,{children:_.jsx(xr,{type:"submit",disabled:f||!s.trim()||!u.trim(),children:f?"Saving…":"Save Name"})})]})]})})}function _M(){const[e,t]=C.useState([]),[n,i]=C.useState(0),[s,a]=C.useState(null),[u,c]=C.useState(!1),f=C.useRef(null),h=C.useRef({}),m=E=>{if(E!=null&&E.notifications_seen)try{return JSON.parse(E.notifications_seen)}catch{}try{return JSON.parse(localStorage.getItem("mfc_notifications_seen")||"{}")}catch{return{}}},g=async E=>{h.current=E;const k=JSON.stringify(E);localStorage.setItem("mfc_notifications_seen",k);try{await ke.auth.updateMe({notifications_seen:k})}catch{}},w=async()=>{const E={...h.current};E.fixturesSeenAt=new Date().toISOString(),E.messagesSeen=E.messagesCurrentCounts||{},E.feedbackSeenAt=new Date().toISOString();const k=new Date;E.paymentMonth=`${k.getFullYear()}-${k.getMonth()+1}`,await g(E),t([]),i(0)},v=async E=>{if(!E)return;const k=h.current&&Object.keys(h.current).length>0?h.current:m(E);h.current=k;const S=[],x=E.role==="admin";try{let R=[];if(!x){const L=await ke.entities.Registration.filter({parent_email:E.email,status:"approved"});R=[...new Set(L.map(W=>
307W.age_group).filter(Boolean))]}const T=k.fixturesSeenAt?new Date(k.fixturesSeenAt):new Date(0),U=(await ke.entities.SeasonFixture.list("-updated_date",50)).filter(L=>!(new Date(L.updated_date||L.created_date)<=T||!x&&R.length>0&&!R.includes(L.age_group)));U.length>0&&S.push({type:"fixtures",label:`${U.length} fixture update${U.length>1?"s":""} for your team`,count:U.length,icon:"calendar"})}catch{}try{let R=[];if(x)R=(await ke.entities.Team.list()).map(Q=>Q.id);else{const H=await ke.entities.Registration.filter({parent_email:E.email,status:"approved"}),Q=[...new Set(H.map(te=>te.age_group).filter(Boolean))],G=new Set(H.map(te=>(te.assigned_team||"").toLowerCase().trim()).filter(Boolean));R=(await ke.entities.Team.list()).filter(te=>Q.includes(te.age_group)&&(G.size===0||G.has(te.name.toLowerCase().trim()))).map(te=>te.id)}const T=await ke.entities.Message.list("-created_date",200),A=new Date(Date.now()-10080*60*1e3),U=k.messagesSeen||{};let L=0;const W={};for(const H of R){const Q=T.filter(le=>le.team_id===H&&!le.is_hidden&&new Date(le.created_date)>A&&le.author_email!==E.email);W[H]=Q.length;const G=U[H]||0;Q.length>G&&(L+=Q.length-G)}const K=(await ke.entities.PrivateChat.list("-created_date",50)).filter(H=>{var Q;return(Q=H.participant_emails)==null?void 0:Q.split(",").map(G=>G.trim()).includes(E.email)});for(const H of K){const G=(await ke.entities.PrivateChatMessage.filter({chat_id:H.id})).filter(te=>te.author_email!==E.email);W[`private_${H.id}`]=G.length;const le=U[`private_${H.id}`]||0;G.length>le&&(L+=G.length-le)}h.current={...h.current,messagesCurrentCounts:W},localStorage.setItem("mfc_notifications_seen",JSON.stringify(h.current)),L>0&&S.push({type:"messages",label:`${L} new message${L>1?"s":""} in your chats`,count:L,icon:"message"})}catch{}try{if(!x){const R=(E.email||"").toLowerCase(),A=(await ke.entities.Registration.filter({status:"approved"})).filter(U=>U.parent_email&&U.parent_email.toLowerCase()===R||U.secondary_parent_email&&U.secondary_parent_email.toLowerCase()===R);if(A.length>0){const U=H=>(H||"").trim().replace(/\s+/g," ").toLowerCase(),L=new Set(A.map(H=>U(`${H.first_name} ${H.last_name}`))),W=k.feedbackSeenAt?new Date(k.feedbackSeenAt):new Date(0),K=(await ke.entities.PlayerFeedback.list("-created_date",50)).filter(H=>H.status==="sent"&&L.has(U(H.player_name))&&new Date(H.sent_at||H.created_date)>W);K.length>0&&S.push({type:"feedback",label:`${K.length} new player feedback report${K.length>1?"s":""} from your coach`,count:K.length,icon:"feedback"})}}}catch{}try{const R=new Date,T=R.getDate(),A=`${R.getFullYear()}-${R.getMonth()+1}`;if(T>=25&&k.paymentMonth!==A){const U=new Date(R.getFullYear(),R.getMonth()+1,1)-R,L=Math.ceil(U/(1e3*60*60*24));S.push({type:"payment",label:`Payment reminder: subscription taken in ${L} day${L!==1?"s":""}`,count:1,icon:"payment"})}}catch{}t(S),i(S.reduce((R,T)=>R+T.count,0))};return C.useEffect(()=>{ke.auth.me().then(E=>{a(E),c(!0),v(E)}).catch(()=>c(!0))},[]),C.useEffect(()=>{if(s)return f.current=setInterval(()=>v(s),6e4),()=>clearInterval(f.current)},[s]),{notifications:e,totalCount:n,markAllSeen:w,ready:u}}const CM={calendar:xS,message:M0,payment:L0,feedback:_S};function X1({className:e}){const{notifications:t,totalCount:n,markAllSeen:i}=_M(),[s,a]=C.useState(!1),u=()=>{a(f=>!f)},c=()=>{i(),a(!1)};return _.jsxs("div",{className:lt("relative",e),children:[_.jsxs(xr,{variant:"ghost",size:"icon",onClick:u,className:"relative text-white hover:bg-white/10 min-h-[44px] min-w-[44px]",children:[_.jsx(Fd,{className:"w-5 h-5"}),n>0&&_.jsx("span",{className:"absolute top-1 right-1 bg-red-500 text-white text-[10px] font-bold rounded-full min-w-[16px] h-4 flex items-center justify-center px-0.5 leading-none",children:n>99?"99+":n})]}),s&&_.jsxs(_.Fragment,{children:[_.jsx("div",{className:"fixed inset-0 z-40",onClick:()=>a(!1)}),_.jsxs("div",{className:"absolute right-0 top-full mt-2 w-64 bg-white rounded-xl shadow-2xl border border-border z-50 overflow-hidden",style:{left:"auto",right:"-0.75rem"},children:[_.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-b bg-muted/30",children:[_.jsx("p",{className:"font-semibold text-sm text-foreground",children:"Notifications"}),n>0&&_.jsx("button",{onClick:c,className:"text-xs text-primary hover:underline font-medium",children:"Mark all read"})]}),t.length===0?_.jsxs("div",{className:"py-10 text-center",children:[_.jsx(Fd,{className:"w-8 h-8 mx-auto mb-2 text-muted-foreground opacity-30"}),_.jsx("p",{className:"text-sm text-muted-foreground",children:"You're all caught up!"})]}):_.jsx("ul",{className:"divide-y max-h-80 overflow-y-auto",children:t.map((f,h)=>{const m=CM[f.icon]||Fd;return _.jsxs("li",{className:"flex items-start gap-3 px-4 py-3",children:[_.jsx("div",{className:lt("mt-0.5 w-8 h-8 rounded-full flex items-center justify-center shrink-0",f.type==="payment"?"bg-amber-100":f.type==="messages"?"bg-blue-100":f.type==="feedback"?"bg-pink-100":"bg-green-100"),children:_.jsx(m,{className:lt("w-4 h-4",f.type==="payment"?"text-amber-600":f.type==="messages"?"text-blue-600":f.type==="feedback"?"text-pink-600":"text-green-600")})}),_.jsx("div",{className:"flex-1 min-w-0",children:_.jsx("p",{className:"text-sm text-foreground leading-snug",children:f.label})}),_.jsx("span",{className:"shrink-0 text-xs font-bold bg-primary text-primary-foreground rounded-full px-1.5 py-0.5",children:f.count})]},h)})}),t.length>0&&_.jsx("div",{className:"px-4 py-3 border-t bg-muted/20",children:_.jsx(xr,{size:"sm",className:"w-full",onClick:c,children:"Mark all as read"})})]})]})]})}const PM=()=>_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"
307currentColor",children:_.jsx("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"})}),TM=[{name:"Home",page:"Home",icon:j0,label:"Home"},{name:"Teams",page:"Teams",icon:yu,label:"Teams"},{name:"Chat",page:"Chat",icon:M0,label:"Chat"},{name:"Profile",page:"Profile",icon:A0,label:"Profile"}];function RM({currentPageName:e,isAdmin:t,user:n}){const i=TM;return _.jsxs("div",{className:"fixed bottom-0 left-0 right-0 z-50 flex flex-col lg:hidden",children:[n&&_.jsxs("div",{className:"bg-[#1a1a1a] border-t border-white/10 px-4 py-2 flex items-center justify-between",children:[_.jsxs("div",{className:"text-xs min-w-0",children:[_.jsx("p",{className:"font-medium text-white truncate",children:n.full_name}),_.jsx("p",{className:"text-white/50 truncate",children:n.email})]}),_.jsx(X1,{})]}),_.jsx("nav",{className:"bg-[#111111] border-t border-white/10 flex",style:{paddingBottom:"env(safe-area-inset-bottom)"},children:i.map(s=>{const a=e===s.page,u=s.page==="Home";return _.jsxs(No,{to:la(s.page),className:lt("flex-1 flex flex-col items-center justify-center py-2 gap-1 text-xs font-medium transition-colors min-h-[56px]",a?"text-[#f9a8c9]":"text-white/50 hover:text-white/80"),children:[u?_.jsx(PM,{}):_.jsx(s.icon,{className:"w-5 h-5"}),_.jsx("span",{children:s.label})]},s.page)})})]})}function OM(){const[e,t]=C.useState(!1),{data:n=[]}=yw({queryKey:["recentResults"],queryFn:()=>ke.entities.SeasonFixture.filter({result_added:!0},"-match_date",50)}),i=C.useMemo(()=>{const f=new Map;for(const h of n)if(h.is_round_robin){let m=[];try{m=JSON.parse(h.round_robin_games||"[]")}catch{}for(const g of m)if(g.score_home!=null&&g.score_away!=null){const w=`${h.age_group}${h.team?" "+h.team:""} vs ${g.opponent}`;f.has(w)||f.set(w,{...h,opponent:g.opponent,score_home:g.score_home,score_away:g.score_away})}}else if(h.score_home!=null&&h.score_away!=null){const m=`${h.age_group}${h.team?" "+h.team:""}`;f.has(m)||f.set(m,h)}return Array.from(f.values()).slice(0,8)},[n]),s=170,a=Math.max(2,Math.ceil(2e3/Math.max(i.length*s,s))),u=Array.from({length:a*2},()=>i).flat(),c=Math.max(15,u.length*2);return _.jsxs("div",{className:"relative overflow-hidden bg-[#0a0a0a]",onMouseEnter:()=>t(!0),onMouseLeave:()=>t(!1),children:[_.jsx("style",{children:`
308        @keyframes nav-results-scroll {
309          0% { transform: translateX(0); }
310          100% { transform: translateX(-50%); }
311        }
312      `}),_.jsxs("div",{className:"flex items-center h-9",children:[_.jsxs("div",{className:"shrink-0 z-10 flex items-center gap-2 px-4 h-full bg-[#0a0a0a]",children:[_.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-[#f9a8c9] animate-pulse"}),_.jsx("span",{className:"font-inter text-[10px] font-semibold uppercase tracking-[0.2em] text-white/90 whitespace-nowrap",children:"Latest Results"})]}),_.jsx("span",{className:"shrink-0 w-px h-4 bg-white/10"}),_.jsx("div",{className:"overflow-hidden flex-1",children:i.length>0?_.jsx("div",{style:{animation:`nav-results-scroll ${c}s linear infinite`,animationPlayState:e?"paused":"running",willChange:"transform"},className:"flex items-center whitespace-nowrap py-2",children:u.map((f,h)=>{const m=f.score_home,g=f.score_away,w=m>g,v=m===g,E=w?"W":v?"D":"L",k=w?"text-emerald-400":v?"text-amber-400":"text-red-400",S=`${f.age_group}${f.team?" "+f.team:""}`;return _.jsxs("div",{className:"flex items-center gap-2.5 shrink-0 px-5",children:[_.jsx("span",{className:`font-inter text-[10px] font-bold w-3.5 text-center ${k}`,children:E}),_.jsx("span",{className:"font-inter text-[10px] font-semibold uppercase tracking-wider text-[#f9a8c9]/80",children:S}),_.jsxs("span",{className:"font-inter text-[11px] text-white/70 font-medium",children:["MFC ",m,"–",g," ",f.opponent]}),_.jsx("span",{className:"text-white/15",children:"·"})]},`${f.id}-${h}`)})}):_.jsx("div",{className:"py-2 px-4",children:_.jsx("span",{className:"font-inter text-[11px] text-white/30 font-medium",children:"No recent results yet"})})})]})]})}const NM=[{label:"Teams",page:"Teams",icon:yu},{label:"Partners",page:"ClubPartners",icon:PS},{label:"Registrations",page:"Registrations",icon:I0},{label:"Documents",page:"SecureDocuments",icon:F0},{label:"Store",page:"Store",icon:bf},{label:"Incidents",page:"IncidentReports",icon:z0}];function AM({isAuthenticated:e,user:t,onLogin:n,onLogout:i,currentPageName:s,extraItems:a=[]}){return _.jsxs("header",{className:"sticky top-0 z-50",children:[_.jsx(OM,{}),_.jsx("div",{className:"bg-[#f9a8c9] shadow-sm",children:_.jsxs("div",{className:"max-w-7xl mx-auto px-4 h-16 flex items-center gap-6",children:[_.jsxs(No,{to:"/",className:"flex items-center gap-2.5 shrink-0",children:[_.jsx("img",{src:"https://media.base44.com/images/public/69aea9dcb2c1c3b264db91fd/fad400b48_BadgeCircular.png",alt:"Montpellier FC",className:"w-9 h-9 object-contain"}),_.jsx("span",{className:"font-inter font-bold text-gray-900 text-sm tracking-tight hidden sm:block",children:"MONTPELLIER FC"})]}),_.jsx("nav",{className:"flex items-center gap-1 overflow-x-auto no-scrollbar flex-1 justify-center",children:NM.map(u=>{const c=s===u.page;return _.jsxs(No,{to:la(u.page),className:lt("flex items-center gap-1.5 px-3 py-2 rounded-full font-inter text-xs font-medium tracking-wide whitespace-nowrap transition-all duration-200",c?"bg-gray-900 text-white shadow-sm":"text-gray-800/80 hover:text-gray-900 hover:bg-white/40"),children:[_.jsx(u.icon,{className:"w-3.5 h-3.5 shrink-0"}),_.jsx("span",{children:u.label})]},u.page)})}),_.jsx("span",{className:"w-px h-5 bg-gray-900/15 mx-1.5 shrink-0"}),e?_.jsxs("div",{className:"flex items-center gap-1.5 shrink-0",children:[_.jsx(X1,{}),_.jsx("span",{className:"hidden sm:block font-inter text-xs text-gray-700 max-w-[120px] truncate font-medium",children:t==null?void 0:t.full_name}),_.jsxs("button",{onClick:i,className:"flex items-center gap-1.5 px-3 py-2 rounded-full font-inter text-xs font-medium tracking-wide whitespace-nowrap text-gray-800/80 hover:text-gray-900 hover:bg-white/40 transition-all duration-200",children:[_.jsx(DS,{className:"w-3.5 h-3.5"}),_.jsx("span",{className:"hidden sm:inline",children:"Logout"})]})]}):_.jsxs("button",{onClick:n,className:"flex items-center gap-1.5 px-3.5 py-2 rounded-full font-inter text-xs font-medium tracking-wide whitespace-nowrap text-gray-800/80 hover:text-gray-900 hover:bg-white/40 transition-all duration-200 shrink-0",children:[_.jsx(IS,{className:"w-3.5 h-3.5"}),_.jsx("span",{children:"Members"})]})]})}),e&&a.length>0&&_.jsx("div",{className:"bg-[#0d0d0d]",children:_.jsx("div",{className:"max-w-7xl mx-auto px-4 h-10 flex items-center gap-1 overflow-x-auto no-scrollbar justify-center",children:a.map(u=>{const c=s===u.page;return _.jsxs(No,{to:la(u.page),className:lt("flex items-center gap-1.5 px-3 py-1.5 rounded-full font-inter text-[11px] font-medium tracking-wide whitespace-nowrap transition-all duration-200",c?"bg-[#f9a8c9]/15 text-[#f9a8c9]":"text-white/40 hover:text-white/80 hover:bg-white/5"),children:[_.jsx(u.icon,{className:"w-3 h-3 shrink-0"}),_.jsx("span",{children:u.name})]},u.page)})})})]})}const IM=({className:e})=>_.jsxs("svg",{className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[_.jsx("line",{x1:"4",y1:"6",x2:"8",y2:"4"}),_.jsx("line",{x1:"6",y1:"4",x2:"7",y2:"2"}),_.jsx("line",{x1:"8",y1:"6",x2:"10",y2:"3"}),_.jsx("path",{d:"M6 12c0-2.209 1.791-4 4-4s4 1.791 4 4-1.791 4-4 4-4-1.791-4-4z"}),_.jsx("path",{d:"M10 12a2 2 0 1 0 4 0 2 2 0 0 0-4 0z"}),_.jsx("path",{d:"M14 10v8a2 2 0 0 0 2 2h1a2 2 0 0 0 2-2v-4"}),_.jsx("rect",{x:"17",y:"16",width:"3",height:"2",rx:"1"})]}
312),LM=[{name:"Home",page:"Home",icon:RS,minTier:null,adminOnly:!1},{name:"The Wall",page:"Wall",icon:j0,minTier:3,adminOnly:!1},{name:"Teams",page:"Teams",icon:yu,minTier:null,adminOnly:!1},{name:"Club partners",page:"ClubPartners",icon:bf,minTier:null,adminOnly:!1},{name:"Registrations",page:"Registrations",icon:I0,minTier:null,adminOnly:!1},{name:"Profile",page:"Profile",icon:A0,minTier:3,adminOnly:!1},{name:"Coach+",page:"CoachPlus",icon:IM,minTier:2,adminOnly:!1},{name:"Secure Documents",page:"SecureDocuments",icon:F0,minTier:null,adminOnly:!1},{name:"Fixtures & Availability",page:"Availability",icon:yS,minTier:3,adminOnly:!1},{name:"Chat",page:"Chat",icon:D0,minTier:3,adminOnly:!1},{name:"Store",page:"Store",icon:bf,minTier:null,adminOnly:!1},{name:"Fundraising & Events",page:"Fundraising",icon:Xg,minTier:3,adminOnly:!1},{name:"Incident Reports",page:"IncidentReports",icon:z0,minTier:null,adminOnly:!1},{name:"Payment Management",page:"PaymentAdmin",icon:L0,minTier:1,adminOnly:!1},{name:"Previous Seasons",page:"PreviousSeasons",icon:Xg,minTier:1,adminOnly:!1},{name:"Users",page:"UserManagement",icon:yu,minTier:1,adminOnly:!1}],DM=["Home","Wall","Registrations","SecureDocuments","Teams","IncidentReports","ClubPartners","WelcomeToTheClub","Store"];function MM({children:e,currentPageName:t}){const{user:n,isAdmin:i}=U2(),{isAuthenticated:s,navigateToLogin:a}=Mh(),{status:u}=B2();eO(i),aN(i);let c=null;i?c=(n==null?void 0:n.tier)??1:u==="approved"&&(c=(n==null?void 0:n.tier)??3);const f=DM.includes(t),m=LM.filter(g=>g.minTier===null||c!==null&&c<=g.minTier).filter(g=>g.minTier!==null);return _.jsxs("div",{className:"h-screen bg-background flex flex-col overflow-hidden",children:[_.jsx(AM,{isAuthenticated:s,user:n,onLogin:a,onLogout:()=>ke.auth.logout(),currentPageName:t,extraItems:m}),_.jsx("main",{className:`flex-1 overflow-y-auto bg-[#f4f6fa] ${t==="Chat"?"p-0 overflow-hidden":"pb-24 lg:pb-8"} ${["TacticsBoard","Profile","MyPlayers","MyPayments","Home","Chat"].includes(t)?"p-0":"p-4 md:p-6 lg:p-8"}`,style:t!=="Home"?{backgroundImage:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='500' height='500' viewBox='0 0 500 500'%3E%3Ccircle cx='40' cy='55' r='9' fill='none' stroke='%23333' stroke-opacity='0.09' stroke-width='2.5'/%3E%3Ccircle cx='210' cy='30' r='6' fill='none' stroke='%23333' stroke-opacity='0.07' stroke-width='2'/%3E%3Ccircle cx='380' cy='90' r='11' fill='none' stroke='%23333' stroke-opacity='0.08' stroke-width='2.5'/%3E%3Ccircle cx='130' cy='180' r='7' fill='none' stroke='%23333' stroke-opacity='0.07' stroke-width='2'/%3E%3Ccircle cx='460' cy='200' r='9' fill='none' stroke='%23333' stroke-opacity='0.08' stroke-width='2.2'/%3E%3Ccircle cx='70' cy='320' r='13' fill='none' stroke='%23333' stroke-opacity='0.07' stroke-width='2.5'/%3E%3Ccircle cx='300' cy='290' r='8' fill='none' stroke='%23333' stroke-opacity='0.08' stroke-width='2'/%3E%3Ccircle cx='420' cy='380' r='7' fill='none' stroke='%23333' stroke-opacity='0.07' stroke-width='2'/%3E%3Ccircle cx='170' cy='430' r='10' fill='none' stroke='%23333' stroke-opacity='0.07' stroke-width='2.2'/%3E%3Ccircle cx='350' cy='460' r='6' fill='none' stroke='%23333' stroke-opacity='0.06' stroke-width='2'/%3E%3Cg transform='translate(110,60) rotate(10)'%3E%3Cline x1='-8' y1='-8' x2='8' y2='8' stroke='%23333' stroke-opacity='0.09' stroke-width='2.5'/%3E%3Cline x1='8' y1='-8' x2='-8' y2='8' stroke='%23333' stroke-opacity='0.09' stroke-width='2.5'/%3E%3C/g%3E%3Cg transform='translate(290,50) rotate(-5)'%3E%3Cline x1='-6' y1='-6' x2='6' y2='6' stroke='%23333' stroke-opacity='0.07' stroke-width='2'/%3E%3Cline x1='6' y1='-6' x2='-6' y2='6' stroke='%23333' stroke-opacity='0.07' stroke-width='2'/%3E%3C/g%3E%3Cg transform='translate(470,130) rotate(8)'%3E%3Cline x1='-10' y1='-10' x2='10' y2='10' stroke='%23333' stroke-opacity='0.07' stroke-width='2.5'/%3E%3Cline x1='10' y1='-10' x2='-10' y2='10' stroke='%23333' stroke-opacity='0.07' stroke-width='2.5'/%3E%3C/g%3E%3Cg transform='translate(30,220) rotate(-12)'%3E%3Cline x1='-7' y1='-7' x2='7' y2='7' stroke='%23333' stroke-opacity='0.08' stroke-width='2.2'/%3E%3Cline x1='7' y1='-7' x2='-7' y2='7' stroke='%23333' stroke-opacity='0.08' stroke-width='2.2'/%3E%3C/g%3E%3Cg transform='translate(240,200) rotate(5)'%3E%3Cline x1='-9' y1='-9' x2='9' y2='9' stroke='%23333' stroke-opacity='0.07' stroke-width='2'/%3E%3Cline x1='9' y1='-9' x2='-9' y2='9' stroke='%23333' stroke-opacity='0.07' stroke-width='2'/%3E%3C/g%3E%3Cg transform='translate(390,290) rotate(-8)'%3E%3Cline x1='-7' y1='-7' x2='7' y2='7' stroke='%23333' stroke-opacity='0.08' stroke-width='2.2'/%3E%3Cline x1='7' y1='-7' x2='-7' y2='7' stroke='%23333' stroke-opacity='0.08' stroke-width='2.2'/%3E%3C/g%3E%3Cg transform='translate(140,370) rotate(15)'%3E%3Cline x1='-8' y1='-8' x2='8' y2='8' stroke='%23333' stroke-opacity='0.07' stroke-width='2'/%3E%3Cline x1='8' y1='-8' x2='-8' y2='8' stroke='%23333' stroke-opacity='0.07' stroke-width='2'/%3E%3C/g%3E%3Cg transform='translate(480,420) rotate(-6)'%3E%3Cline x1='-6' y1='-6' x2='6' y2='6' stroke='%23333' stroke-opacity='0.07' stroke-width='2'/%3E%3Cline x1='6' y1='-6' x2='-6' y2='6' stroke='%23333' stroke-opacity='0.07' stroke-width='2'/%3E%3C/g%3E%3Cpath d='M55 55 Q120 30 175 65' fill='none' stroke='%23333' stroke-opacity='0.08' stroke-width='2' marker-end='url(%23arr)'/%3E%3Cpath d='M300 290 Q340 240 375 90' fill='none' stroke='%23333' stroke-opacity='0.07' stroke-width='1.8' marker-end='url(%23arr)'/%3E%3Cpath d='M75 320 Q150 350 200 440' fill='none' stroke='%23333' stroke-opacity='0.07' stroke-width='1.8' marker-end='url(%23arr)'/%3E%3Cpath d='M215 30 Q255 80 295 50' fill='none' stroke='%23333' stroke-opacity='0.07' stroke-width='1.6' marker-end='url(%23arr)'/%3E%3Cpath d='M4
31265 200 Q430 280 425 380' fill='none' stroke='%23333' stroke-opacity='0.07' stroke-width='1.6' marker-end='url(%23arr)'/%3E%3Cdefs%3E%3Cmarker id='arr' markerWidth='6' markerHeight='6' refX='3' refY='3' orient='auto'%3E%3Cpath d='M0,0 L6,3 L0,6 Z' fill='%23333' fill-opacity='0.08'/%3E%3C/marker%3E%3C/defs%3E%3Cg transform='translate(250,380) scale(0.6) rotate(-5)' opacity='0.07'%3E%3Cellipse cx='0' cy='-60' rx='10' ry='12' fill='%23333'/%3E%3Cpath d='M0,-48 C-5,-30 -15,-10 -18,10 C-12,5 -5,0 0,0 C5,0 12,5 18,10 C15,-10 5,-30 0,-48Z' fill='%23333'/%3E%3Cpath d='M-18,10 C-22,30 -20,50 -25,65' stroke='%23333' stroke-width='8' fill='none' stroke-linecap='round'/%3E%3Cpath d='M18,10 C22,25 28,45 22,60' stroke='%23333' stroke-width='8' fill='none' stroke-linecap='round'/%3E%3Cpath d='M-5,0 C-10,15 -8,30 -12,45' stroke='%23333' stroke-width='7' fill='none' stroke-linecap='round'/%3E%3Cpath d='M5,0 C10,15 12,30 10,50' stroke='%23333' stroke-width='7' fill='none' stroke-linecap='round'/%3E%3Ccircle cx='-18' cy='68' r='7' fill='%23333'/%3E%3C/g%3E%3Cg transform='translate(440,50) scale(0.5) rotate(10)' opacity='0.07'%3E%3Cellipse cx='0' cy='-60' rx='10' ry='12' fill='%23333'/%3E%3Cpath d='M0,-48 C-5,-30 -15,-10 -18,10 C-12,5 -5,0 0,0 C5,0 12,5 18,10 C15,-10 5,-30 0,-48Z' fill='%23333'/%3E%3Cpath d='M-18,10 C-30,25 -38,10 -42,-5' stroke='%23333' stroke-width='8' fill='none' stroke-linecap='round'/%3E%3Cpath d='M18,10 C22,25 20,40 18,55' stroke='%23333' stroke-width='8' fill='none' stroke-linecap='round'/%3E%3Cpath d='M-5,0 C-10,15 -8,30 -15,50' stroke='%23333' stroke-width='7' fill='none' stroke-linecap='round'/%3E%3Cpath d='M5,0 C15,10 30,20 40,30' stroke='%23333' stroke-width='7' fill='none' stroke-linecap='round'/%3E%3Ccircle cx='45' cy='33' r='7' fill='%23333'/%3E%3C/g%3E%3Cg transform='translate(170,230) rotate(-3)' opacity='0.06'%3E%3Crect x='-40' y='-55' width='80' height='110' fill='none' stroke='%23333' stroke-width='2'/%3E%3Cline x1='-40' y1='0' x2='40' y2='0' stroke='%23333' stroke-width='1.2'/%3E%3Ccircle cx='0' cy='0' r='18' fill='none' stroke='%23333' stroke-width='1.5'/%3E%3Crect x='-18' y='-55' width='36' height='16' fill='none' stroke='%23333' stroke-width='1.2'/%3E%3Crect x='-18' y='39' width='36' height='16' fill='none' stroke='%23333' stroke-width='1.2'/%3E%3C/g%3E%3C/svg%3E")`,backgroundRepeat:"repeat"}:{},children:!f&&c===null&&u!=="approved"?_.jsxs("div",{className:"flex flex-col items-center justify-center min-h-[60vh] text-center space-y-4 max-w-md mx-auto",children:[_.jsx("div",{className:"w-16 h-16 rounded-full bg-primary/10 flex items-center justify-center",children:_.jsx(Zg,{className:"w-8 h-8 text-primary"})}),_.jsxs("div",{children:[_.jsx("h2",{className:"text-xl font-bold",children:"Registration Required"}),_.jsx("p",{className:"text-muted-foreground mt-2 text-sm",children:u==="pending"?"Your registration is pending admin approval. You'll get full access once approved.":u==="rejected"?"Your registration was not approved. Please contact us at [email protected].":"You need to register with Montpellier FC to access this area."})]}),_.jsxs("div",{className:"flex gap-3",children:[_.jsx(xr,{asChild:!0,children:_.jsx(No,{to:la("Registrations"),children:"Register with Montpellier"})}),_.jsx(xr,{variant:"outline",asChild:!0,children:_.jsx("a",{href:"mailto:[email protected]",children:"Contact Us"})})]})]}):!s&&!f?_.jsxs("div",{className:"flex flex-col items-center justify-center min-h-[60vh] text-center space-y-4 max-w-md mx-auto",children:[_.jsx("div",{className:"w-16 h-16 rounded-full bg-primary/10 flex items-center justify-center",children:_.jsx(Zg,{className:"w-8 h-8 text-primary"})}),_.jsxs("div",{children:[_.jsx("h2",{className:"text-xl font-bold",children:"Members Only"}),_.jsx("p",{className:"text-muted-foreground mt-2 text-sm",children:"Please log in or register with Montpellier FC to access this area."})]}),_.jsxs("div",{className:"flex gap-3",children:[_.jsx(xr,{onClick:a,children:"Login / Sign Up"}),_.jsx(xr,{variant:"outline",asChild:!0,children:_.jsx(No,{to:la("Registrations"),children:"Register"})})]})]}):e}),_.jsx(EM,{}),_.jsx(RL,{currentPageName:t}),_.jsx(RM,{currentPageName:t,isAdmin:i,user:s?n:null})]})}const jM=C.lazy(()=>Ye(()=>import("./Analytics-DBsCcHwn.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]))),FM=C.lazy(()=>Ye(()=>import("./Availability-BBqCnEJi.js"),__vite__mapDeps([10,11,12,13,14,15,16,17,18,19,20,21,2,3,6,22,23,7,24,25,26,27,28,29,30,31,32,33,34]))),zM=C.lazy(()=>Ye(()=>import("./Chat--6wKZrdz.js"),__vite__mapDeps([35,11,2,3,12,13,14,15,16,17,18,36,37,20,19,21,6,22,23,7,24,25,26,27,28,38,39,40,41,42,43,9,29,44,45,32,46,47]))),UM=C.lazy(()=>Ye(()=>import("./Fundraising-C5wPZulf.js"),__vite__mapDeps([48,11,12,13,14,15,16,17,20,25,29,49,50,51,24,26,27,31]))),BM=C.lazy(()=>Ye(()=>import("./Home-gXC2lYRv.js"),__vite__mapDeps([52,2,11,53,29,26,27,51,50,20,33,54,25]))),$M=C.lazy(()=>Ye(()=>import("./IncidentReports-CtP04Pu7.js"),__vite__mapDeps([55,11,20,2,3,12,13,14,15,16,17,56,37,57,58,29,59,60,47,26,27]
312))),VM=C.lazy(()=>Ye(()=>import("./Players-0KgwJ_Vi.js"),__vite__mapDeps([61,1,11,4,2,12,13,14,15,16,17,62,3,63,26,27,57,64,65,66,67,68,20,37,69,70,36,29,40,49,50]))),HM=C.lazy(()=>Ye(()=>import("./PreviousSeasons-CTfcAqat.js"),__vite__mapDeps([71,2,3,12,13,14,15,16,17,18,33,67]))),WM=C.lazy(()=>Ye(()=>import("./Profile-CXHLo_OI.js"),__vite__mapDeps([72,3,63,73,22,16,33,7,24,21,28,25,34,20,37,14,66,74,26,8,65,57,64,75,39,38,43,29,76,6,40,36,50,77,41]))),qM=C.lazy(()=>Ye(()=>import("./Registrations-CDGTM6ck.js"),__vite__mapDeps([78,11,2,3,12,13,14,15,16,17,18,20,37,32,33,6,25,64,29,23,40,7,47,79,27]))),QM=C.lazy(()=>Ye(()=>import("./SecureDocuments-BmcMoLOG.js"),__vite__mapDeps([80,11,2,3,12,13,14,15,16,17,29,60,26,27,51]))),YM=C.lazy(()=>Ye(()=>import("./Store-DUDHMT06.js"),[])),KM=C.lazy(()=>Ye(()=>import("./Teams-CAguvQW5.js"),__vite__mapDeps([81,11,12,13,14,15,16,17,36,2,67,74,25,29,82,40,49,50,76,26,27,63,33,51]))),GM=C.lazy(()=>Ye(()=>import("./Wall-Cs5R2_ZQ.js"),__vite__mapDeps([83,11,12,13,14,15,16,17,2,62,3,20,27,32,33,25,42,26,7,24,5,69,70,30,31,21,84,29,36,49,50]))),XM={Analytics:jM,Availability:FM,Chat:zM,Fundraising:UM,Home:BM,IncidentReports:$M,Players:VM,PreviousSeasons:HM,Profile:WM,Registrations:qM,SecureDocuments:QM,Store:YM,Teams:KM,Wall:GM},gu={mainPage:"Home",Pages:XM,Layout:MM},JM=C.lazy(()=>Ye(()=>import("./Committee-B-z5Bxhd.js"),__vite__mapDeps([85,2,64]))),ZM=C.lazy(()=>Ye(()=>import("./UserManagement-B8gdl416.js"),__vite__mapDeps([86,1,11,36,12,13,14,15,16,17,59,40,26,64,27]))),e4=C.lazy(()=>Ye(()=>import("./CommitteeManagement-BYnykAVD.js"),__vite__mapDeps([87,11,29,77,27,51]))),t4=C.lazy(()=>Ye(()=>import("./TacticsBoard-ZY3XC-2c.js"),__vite__mapDeps([88,89,27,15,79,43,69,90,91,60,54,92,29]))),n4=C.lazy(()=>Ye(()=>import("./FinalThird-Ceze9Gmr.js"),__vite__mapDeps([93,84,50,64,15,16]))),r4=C.lazy(()=>Ye(()=>import("./FinalThirdBudgetsInfo-BfMFNeZt.js"),__vite__mapDeps([94,84,50,64,16]))),i4=C.lazy(()=>Ye(()=>import("./PaymentAdmin-DG6h5kz-.js"),__vite__mapDeps([95,2,3,56,51,60,58,91,27,23,39,29,63,57,64,46,92,26,36,32,67]))),o4=C.lazy(()=>Ye(()=>import("./TeamDetail-CRaGdqU3.js"),__vite__mapDeps([96,11,3,2,36,62,68,20,12,13,14,15,16,17,37,69,73,51,97,27,32,33,26,41,63,66,92,67,29,57,64,65]))),s4=C.lazy(()=>Ye(()=>import("./MyPlayers-PnDJ4Mre.js"),__vite__mapDeps([98,11,12,13,14,15,16,17,2,36,37,20,84,26,43,27,51]))),a4=C.lazy(()=>Ye(()=>import("./MyPayments-DvMK_xUT.js"),__vite__mapDeps([99,2,84,25,16,75]))),l4=C.lazy(()=>Ye(()=>import("./HowToGuide-CamW-fkb.js"),__vite__mapDeps([100,2,18,13,101,22,6]))),u4=C.lazy(()=>Ye(()=>import("./CoachPlus-8audXOw4.js"),__vite__mapDeps([102,36,84,82,44,6,27,97,40,17,15,51,64,56,16,47,60,26,101,90,7,74,67,29,20,32,69,54]))),c4=C.lazy(()=>Ye(()=>import("./MyStats-ClqsqsjV.js"),__vite__mapDeps([103,2,32,25,28,74,34,45]))),d4=C.lazy(()=>Ye(()=>import("./ClubPartners-DZKgUFzC.js"),__vite__mapDeps([104,11,20,6,53,29,26,27,51,58,50,16,60]))),f4=C.lazy(()=>Ye(()=>import("./WelcomeToTheClub-BxZbIWe0.js"),__vite__mapDeps([105,11,16,26,54,65]))),h4=()=>_.jsx("div",{className:"fixed inset-0 flex items-center justify-center",children:_.jsx("div",{className:"w-8 h-8 border-4 border-slate-200 border-t-slate-800 rounded-full animate-spin"})}),Wt=Yr.memo(({children:e,currentPageName:t})=>{const n=gu==null?void 0:gu.Layout;return n?_.jsx(n,{currentPageName:t,children:e}):_.jsx(_.Fragment,{children:e})}),p4=({pageConfig:e})=>{if(!e)return null;const{Pages:t,Layout:n,mainPage:i}=e,s=i??Object.keys(t)[0],a=s?t[s]:_.jsx(_.Fragment,{});return _.jsx(C.Suspense,{fallback:_.jsx(h4,{}),children:_.jsxs(mC,{children:[_.jsx(bt,{path:"/",element:_.jsx(Wt,{currentPageName:s,children:_.jsx(a,{})})}),Object.entries(t||{}).map(([u,c])=>_.jsx(bt,{path:`/${u}`,element:_.jsx(Wt,{currentPageName:u,children:_.jsx(c,{})})},u)),_.jsx(bt,{path:"/Committee",element:_.jsx(Wt,{currentPageName:"Committee",children:_.jsx(JM,{})})}),_.jsx(bt,{path:"/CommitteeManagement",element:_.jsx(Wt,{currentPageName:"CommitteeManagement",children:_.jsx(e4,{})})}),_.jsx(bt,{path:"/TeamDetail/:teamId",element:_.jsx(Wt,{currentPageName:"TeamDetail",children:_.jsx(o4,{})})}),_.jsx(bt,{path:"/PaymentAdmin",element:_.jsx(Wt,{currentPageName:"PaymentAdmin",children:_.jsx(i4,{})})}),_.jsx(bt,{path:"/TacticsBoard",element:_.jsx(Wt,{currentPageName:"TacticsBoard",children:_.jsx(t4,{})})}),_.jsx(bt,{path:"/FinalThird",element:_.jsx(n4,{})}),_.jsx(bt,{path:"/FinalThirdBudgetsInfo",element:_.jsx(r4,{})}),_.jsx(bt,{path:"/UserManagement",element:_.jsx(Wt,{currentPageName:"UserManagement",children:_.jsx(ZM,{})})}),_.jsx(bt,{path:"/MyPlayers",element:_.jsx(Wt,{currentPageName:"MyPlayers",children:_.jsx(s4,{})})}),_.jsx(bt,{path:"/MyPayments",element:_.jsx(Wt,{currentPageName:"MyPayments",children:_.jsx(a4,{})})}),_.jsx(bt,{path:"/HowToGuide",element:_.jsx(Wt,{currentPageName:"HowToGuide",children:_.jsx(l4,{})})}),_.jsx(bt,{path:"/CoachPlus",element:_.jsx(Wt,{currentPageName:"CoachPlus",children:_.jsx(u4,{})})}),_.jsx(bt,{path:"/MyStats",element:_.jsx(Wt,{currentPageName:"MyStats",children:_.jsx(c4,{})})}),_.jsx(bt,{path:"/ClubPartners",element:_.jsx(Wt,{currentPageName:"ClubPartners",children:_.jsx(d4,{})})}),_.jsx(bt,{path:"/WelcomeToTheClub",element:_.jsx(Wt,{currentPageName:"WelcomeToTheClub",children:_.jsx(f4,{})})}),_.jsx(bt,{path:"*",element:_.jsx(P2,{})})]})})},m4=()=>{const{isLoadingAuth:e,isLoadingPublicSettings:t,authError:n,navigateToLogin:i}=Mh();if(t||e)return _.jsx("div",{className:"fixed inset-0 flex items-center justify-center",children:_.jsx("div",{className:"w-8 h-8 border-4 border-slate-200 border-t-slate-800 rounded-full animate-spin"})});if(n){if(n.type==="user_not_registered")return _.jsx(O2,{});n.type}return _.jsx(p4,{pageConfig:gu})};function g4(){return _.jsx(T2,{children:_.jsx(R2,{children:_.jsxs(u_,{client:b_,children:[_.jsx(kC,{children:_.jsx(m4,{})}),_.jsx(jE,{})]})})})}rS.createRoot(document.getElementById("root")).render(_.jsx(g4,{}));export{ML as $,q1 as A,xr as B,L0 as C,vM as D,Xg as E,_S as F,W4 as G,la as H,uh as I,PS as J,RS as K,No as L,D0 as M,I0 as N,F0 as O,O0 as P,va as Q,Yr as R,US as S,z0 as T,yu as U,j0 as V,tO as W,ph as X,iO as Y,Ki as Z,Ye as _,l_ as a,br as a0,li as a1,NL as a2,ua as a3,B2 as a4,yS as a5,Fd as a6,Mh as a7,bf as a8,A0 as a9,uw as aA,ju as aB,h1 as aC,JD as aD,fD as aE,b1 as aF,d1 as aG,u1 as aH,ff as aa,$u as ab,T0 as ac,v4 as ad,ui as ae,mv as af,$4 as ag,B4 as ah,hh as ai,pM as aj,V4 as ak,gM as al,H4 as am,U1 as an,B1 as ao,$1 as ap,yM as aq,z1 as ar,mM as as,z2 as at,wa as au,Ef as av,ra as aw,i_ as ax,At as ay,rn as az,yw as b,ke as c,H1 as d,W1 as e,Q1 as f,ot as g,J_ as h,vw as i,_ as j,Jg as k,lt as l,Zg as m,ch as n,w4 as o,Rn as p,kx as q,C as r,fh as s,fu as t,U2 as u,fa as v,da as w,xS as x,Yl as y,DS as z};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.