1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardOverview-Bfj5aLtt.js","assets/table-BwnFEMoC.js","assets/K12IntelligenceWidget-CiNukW10.js","assets/format-DKgPYdD6.js","assets/en-US-DsfRGM9l.js","assets/toDate-qOSwr3PX.js","assets/subDays-CZnsQeSH.js","assets/addDays-aT_LiIFu.js","assets/endOfDay-CGesiSW_.js","assets/BarChart-CYh4noGl.js","assets/LineChart-1to40P3g.js","assets/TodayFocus-BSrxqp21.js","assets/textarea-9PxlSvH6.js","assets/checkbox-CFos7zeK.js","assets/select-DtdbfS4g.js","assets/chevron-up-B8i_D7QF.js","assets/plus-uUga1kZ8.js","assets/square-check-big-CVFvXEgv.js","assets/trash-2-BBVpPEZj.js","assets/ScannedCardsQueue-BI6ueCx7.js","assets/scan-line-CqluxfWk.js","assets/calendar-days-95q15_YB.js","assets/QuickActions-D-JTXjZ8.js","assets/BusinessCardScanner-DHJ1fCgw.js","assets/camera-CjBnDBHx.js","assets/rotate-ccw-mv8Y_Tyf.js","assets/smartphone-BIdJsiMH.js","assets/index-d6ms6SfB.js","assets/arrow-left-C6NHD1oz.js","assets/share-2-BBkAxg8K.js","assets/copy-77mfLuki.js","assets/monitor-fdvSTWZd.js","assets/save-Dnm086jN.js","assets/ProspectsList-CY150W5H.js","assets/useQuery-BgbJlu5T.js","assets/useMutation-DcICnVfC.js","assets/LinkedInOutreachTracker-DZy_YXUQ.js","assets/alert-dialog-D6kkV1KW.js","assets/thumbs-up-F7YG_dUt.js","assets/thumbs-down-DHN9XCTA.js","assets/circle-x-D7mEOoQT.js","assets/formatDistanceToNow-B-MG1ELT.js","assets/differenceInCalendarMonths-BW_Pl0dF.js","assets/endOfMonth-GOr-nkpz.js","assets/upload-D4Z9htC3.js","assets/RichTextEditor-DC8NhfiT.js","assets/popover-BvIBfkrI.js","assets/link-cWenhLkl.js","assets/code-DOAc8veQ.js","assets/video-CQj9Pjgy.js","assets/EntityConnectionManager-Btwcb1rS.js","assets/map-pin-Dmvhfkmf.js","assets/link-2-bmFdo0P9.js","assets/SendTrackedEmail-Bf1W8nye.js","assets/alert-C3geyWZW.js","assets/SubjectLineTester-DmiTQ1L3.js","assets/trophy-CvUQ_iWD.js","assets/SignaturePicker-DfuzOm9r.js","assets/pen-line-Dc5J6VqV.js","assets/star-D-ZKAO3x.js","assets/toggle-group-ClUrM2yX.js","assets/tag-DH22Ie6t.js","assets/activity-FGQL6NBX.js","assets/filter-DwLLanxb.js","assets/heart-CcyR3BOe.js","assets/phone-CMB1OqbM.js","assets/pencil-DsNoYA0p.js","assets/FundingAlerts-Dl_dt7E8.js","assets/settings-2-aGpNNV2f.js","assets/RecommendedContacts-BmPYm51U.js","assets/youtube-Boe5td4p.js","assets/square-pen-DMkiDxN2.js","assets/OrganizationsList-B06fzmYM.js","assets/award-B1JHGCW1.js","assets/ResearchKeywords-D0g0Qs84.js","assets/RFPBoardMeetingTracker-D_3EGe6i.js","assets/MyContacts-DRfC3j8O.js","assets/mouse-pointer-click-DHBjcwZ7.js","assets/newspaper-WmbwhLEn.js","assets/xlsx-uoQkVabA.js","assets/download-Dupt2fbK.js","assets/file-spreadsheet-CWog7g6P.js","assets/learningEngine-BhCI0ykU.js","assets/LaunchCampaignDialog-BZiHld4C.js","assets/switch-D1ppOppg.js","assets/book-open-BE0NAi3H.js","assets/folder-open-DExCvypN.js","assets/QuickAddProspect-Boh_eErG.js","assets/SalesBattleCards-DAl8bZxa.js","assets/info-DqqL4lbO.js","assets/WinLossAnalysis-DmJACOrM.js","assets/MeetingPrepAssistant-e9bZF9SZ.js","assets/pen-DIKj47Yu.js","assets/Analytics-OePDR0vi.js","assets/CampaignTracker-D6Ltp4Uq.js","assets/papaparse.min-AQ1zz2nJ.js","assets/type-BLlG0tG5.js","assets/pause-D_0aBuIl.js","assets/archive-Vc8mLaDa.js","assets/wand-sparkles-Dk4eph2e.js","assets/ProspectVerification-FuuiZ8YS.js","assets/BulkConnectionUpload-CHGZSRdC.js","assets/LinkedInCSVImport-DzmCaWa4.js","assets/CompetitorAlerts-C8EjUbKn.js","assets/bell-off-DObgzdMs.js","assets/DealsPipeline-CDP-mhk0.js","assets/grip-vertical-BjyuXgcB.js","assets/EnhancedPlaybookLibrary-CVPPzDVW.js","assets/ROICalculator-B5fc_mSz.js","assets/package-ThgnRCx4.js","assets/CaseStudyLibrary-DpduR-Dt.js","assets/UnifiedInboxEnhanced-DN7zubUA.js","assets/scissors-BnpLGym9.js","assets/RevenueForecast-CPreW5F1.js","assets/startOfMonth-DjdWPfEx.js","assets/ActivityTracking-ClM5xruU.js","assets/IntentSignalExplorer-DZePar__.js","assets/database-N2qMOWHa.js","assets/CalendarView-DV3RiMlh.js","assets/endOfWeek-D896sTH2.js","assets/eachDayOfInterval-D2iFqP2j.js","assets/addWeeks-CtZ22PY7.js","assets/TaskDashboard-BBWGvYQM.js","assets/KnowledgeBase-BB8at0WH.js","assets/presentation-DtxdKawR.js","assets/DashboardCustomizer-rjEf4FXz.js","assets/DashboardGrid-CP-ck7h4.js","assets/sortable.esm-D8NVSTnV.js","assets/WebIntelligenceExplorer-C3wFrWLR.js","assets/K12Leg
1islativeAlerts-Nd2XFMa8.js","assets/K12LegislativeExplorer-Bao26mFn.js","assets/bookmark-CN0bqr4a.js","assets/history-namg6Kxe.js","assets/EventPagesManager-jZ3PLMhR.js","assets/user-check-BiYYZqaX.js","assets/SalesAutopilot-DPodFJY8.js","assets/EventContacts-Bc5-Z1lo.js","assets/ConferenceCheatSheet-DCYYTK8B.js","assets/Playbooks-QkSGZQ2P.js","assets/file-check-CFmuGQAu.js","assets/PlaybookDetail-Da1cfjI_.js","assets/SalesCycle--X0WUfT3.js","assets/Integrations-C1k-fvhy.js","assets/OAuthManager-D0kwo1cD.js","assets/FeaturesPage-Mr44_C14.js","assets/command-us_Fgo9P.js","assets/AboutUs---q9j_Hs.js","assets/API-DiECA-_p.js","assets/AdminRenewals-Bs9wr5sQ.js","assets/ImpersonateUserButton-dNhaFQql.js","assets/UberAnalytics-BNnp3R0Z.js","assets/PieChart-QIoyHNT4.js","assets/TrialManagement-BohP37r-.js","assets/Help-PAWoUuOG.js","assets/HelpDetail-2oYbhp6n.js","assets/GettingStartedGuide-D5R07vNc.js","assets/KnowledgeBaseHelp-DfgHslLL.js","assets/Profile-CXD8yUto.js","assets/Settings-88CjQDyj.js","assets/Competitors-DmKeFrWB.js","assets/WebIntelligence-CNUuh1-1.js","assets/K12IntelligenceReport-wt3MVcps.js","assets/WebIntelligenceAutomation-DgzU13nA.js","assets/radio-group-nmFpFKkh.js","assets/ContactFinder-D895LAXj.js","assets/MailMerge-BgFNevoD.js","assets/EmailOptimization-C3FgdYan.js","assets/MutualConnections-CqjQY5Vx.js","assets/Analytics-gn3dBAWl.js","assets/IntentSignals-D7uHvZA5.js","assets/IntentSignalsDashboard-CqWONI0p.js","assets/NetworkMap-_ihwkI3M.js","assets/NetworkMap-BbyR9nQ0.css","assets/SalesCoaching-J2mw-y35.js","assets/ZoomAppSetupGuide-Cq46UXiQ.js","assets/K12Intelligence-BafEER7t.js","assets/K12LegislativeTracker-BL2zEMUA.js","assets/MarketingContent-CccynNs7.js","assets/AIAgents-CA5FQwAu.js","assets/inbox-COo7S28m.js","assets/EventLandingPage-DW-1gQ4X.js","assets/PublicROICalculator-Bv3RZhU-.js","assets/PublicDigitalCard-flYnmIkc.js","assets/vanityUrls-CtLvX1cn.js","assets/MyQRCode-Ds-gcR1Y.js","assets/CapturedLeads-BjDQBDwJ.js","assets/ChromeExtension-D4T4zLWJ.js","assets/Demo--9FbETr9.js","assets/Account360-D5kLeKA-.js","assets/Proposals-Bd16oosA.js","assets/PublicProposal-CfDQOiVt.js","assets/CampaignCommandCenter-CWiHCbUX.js"])))=>i.map(i=>d[i]); 2var RT=Object.defineProperty;var Nv=e=>{throw TypeError(e)};var IT=(e,t,n)=>t in e?RT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var nr=(e,t,n)=>IT(e,typeof t!="symbol"?t+"":t,n),Sf=(e,t,n)=>t.has(e)||Nv("Cannot "+n);var F=(e,t,n)=>(Sf(e,t,"read from private field"),n?n.call(e):t.get(e)),Ie=(e,t,n)=>t.has(e)?Nv("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ve=(e,t,n,r)=>(Sf(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),wt=(e,t,n)=>(Sf(e,t,"access private method"),n);var pc=(e,t,n,r)=>({set _(s){ve(e,t,s,n)},get _(){return F(e,t,r)}});function AT(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in e)){const i=Object.getOwnPropertyDescriptor(r,s);i&&Object.defineProperty(e,s,i.get?i:{enumerable:!0,get:()=>r[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"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();var Ct=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Oi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function OT(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:function(){return e[r]}})}),n}var Mb={exports:{}},md={},Db={exports:{}},je={};/** 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 Vl=Symbol.for("react.element"),MT=Symbol.for("react.portal"),DT=Symbol.for("react.fragment"),LT=Symbol.for("react.strict_mode"),$T=Symbol.for("react.profiler"),zT=Symbol.for("react.provider"),FT=Symbol.for("react.context"),UT=Symbol.for("react.forward_ref"),BT=Symbol.for("react.suspense"),HT=Symbol.for("react.memo"),VT=Symbol.for("react.lazy"),Tv=Symbol.iterator;function WT(e){return e===null||typeof e!="object"?null:(e=Tv&&e[Tv]||e["@@iterator"],typeof e=="function"?e:null)}var Lb={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$b=Object.assign,zb={};function ta(e,t,n){this.props=e,this.context=t,this.refs=zb,this.updater=n||Lb}ta.prototype.isReactComponent={};ta.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ta.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Fb(){}Fb.prototype=ta.prototype;function eg(e,t,n){this.props=e,this.context=t,this.refs=zb,this.updater=n||Lb}var tg=eg.prototype=new Fb;tg.constructor=eg;$b(tg,ta.prototype);tg.isPureReactComponent=!0;var Pv=Array.isArray,Ub=Object.prototype.hasOwnProperty,ng={current:null},Bb={key:!0,ref:!0,__self:!0,__source:!0};function Hb(e,t,n){var r,s={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)Ub.call(t,r)&&!Bb.hasOwnProperty(r)&&(s[r]=t[r]);var a=arguments.length-2;if(a===1)s.children=n;else if(1<a){for(var c=Array(a),u=0;u<a;u++)c[u]=arguments[u+2];s.children=c}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)s[r]===void 0&&(s[r]=a[r]);return{$$typeof:Vl,type:e,key:i,ref:o,props:s,_owner:ng.current}}function qT(e,t){return{$$typeof:Vl,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function rg(e){return typeof e=="object"&&e!==null&&e.$$typeof===Vl}function KT(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Rv=/\/+/g;function Ef(e,t){return typeof e=="object"&&e!==null&&e.key!=null?KT(""+e.key):t.toString(36)}
vendor: 4,786 bytes, lines 10-18
10function Yc(e,t,n,r,s){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Vl:case MT:o=!0}}if(o)return o=e,s=s(o),e=r===""?"."+Ef(o,0):r,Pv(s)?(n="",e!=null&&(n=e.replace(Rv,"$&/")+"/"),Yc(s,t,n,"",function(u){return u})):s!=null&&(rg(s)&&(s=qT(s,n+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(Rv,"$&/")+"/")+e)),t.push(s)),1;if(o=0,r=r===""?".":r+":",Pv(e))for(var a=0;a<e.length;a++){i=e[a];var c=r+Ef(i,a);o+=Yc(i,t,n,c,s)}else if(c=WT(e),typeof c=="function")for(e=c.call(e),a=0;!(i=e.next()).done;)i=i.value,c=r+Ef(i,a++),o+=Yc(i,t,n,c,s);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function mc(e,t,n){if(e==null)return e;var r=[],s=0;return Yc(e,r,"","",function(i){return t.call(n,i,s++)}),r}function GT(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Dt={current:null},Qc={transition:null},YT={ReactCurrentDispatcher:Dt,ReactCurrentBatchConfig:Qc,ReactCurrentOwner:ng};function Vb(){throw Error("act(...) is not supported in production builds of React.")}je.Children={map:mc,forEach:function(e,t,n){mc(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return mc(e,function(){t++}),t},toArray:function(e){return mc(e,function(t){return t})||[]},only:function(e){if(!rg(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};je.Component=ta;je.Fragment=DT;je.Profiler=$T;je.PureComponent=eg;je.StrictMode=LT;je.Suspense=BT;je.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=YT;je.act=Vb;je.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=$b({},e.props),s=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=ng.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(c in t)Ub.call(t,c)&&!Bb.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&a!==void 0?a[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){a=Array(c);for(var u=0;u<c;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:Vl,type:e.type,key:s,ref:i,props:r,_owner:o}};je.createContext=function(e){return e={$$typeof:FT,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:zT,_context:e},e.Consumer=e};je.createElement=Hb;je.createFactory=function(e){var t=Hb.bind(null,e);return t.type=e,t};je.createRef=function(){return{current:null}};je.forwardRef=function(e){return{$$typeof:UT,render:e}};je.isValidElement=rg;je.lazy=function(e){return{$$typeof:VT,_payload:{_status:-1,_result:e},_init:GT}};je.memo=function(e,t){return{$$typeof:HT,type:e,compare:t===void 0?null:t}};je.startTransition=function(e){var t=Qc.transition;Qc.transition={};try{e()}finally{Qc.transition=t}};je.unstable_act=Vb;je.useCallback=function(e,t){return Dt.current.useCallback(e,t)};je.useContext=function(e){return Dt.current.useContext(e)};je.useDebugValue=function(){};je.useDeferredValue=function(e){return Dt.current.useDeferredValue(e)};je.useEffect=function(e,t){return Dt.current.useEffect(e,t)};je.useId=function(){return Dt.current.useId()};je.useImperativeHandle=function(e,t,n){return Dt.current.useImperativeHandle(e,t,n)};je.useInsertionEffect=function(e,t){return Dt.current.useInsertionEffect(e,t)};je.useLayoutEffect=function(e,t){return Dt.current.useLayoutEffect(e,t)};je.useMemo=function(e,t){return Dt.current.useMemo(e,t)};je.useReducer=function(e,t,n){return Dt.current.useReducer(e,t,n)};je.useRef=function(e){return Dt.current.useRef(e)};je.useState=function(e){return Dt.current.useState(e)};je.useSyncExternalStore=function(e,t,n){return Dt.current.useSyncExternalStore(e,t,n)};je.useTransition=function(){return Dt.current.useTransition()};je.version="18.3.1";Db.exports=je;var p=Db.exports;const H=Oi(p),sg=AT({__proto__:null,default:H},[p]);/** 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 QT=p,ZT=Symbol.for("react.element"),XT=Symbol.for("react.fragment"),JT=Object.prototype.hasOwnProperty,e2=QT.__SECRET_INT
vendor: 8,822 bytes, lines 18-34
18ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,t2={key:!0,ref:!0,__self:!0,__source:!0};function Wb(e,t,n){var r,s={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)JT.call(t,r)&&!t2.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:ZT,type:e,key:i,ref:o,props:s,_owner:e2.current}}md.Fragment=XT;md.jsx=Wb;md.jsxs=Wb;Mb.exports=md;var l=Mb.exports,qb={exports:{}},fn={},Kb={exports:{}},Gb={};/** 19 * @license React 20 * scheduler.production.min.js 21 * 22 * Copyright (c) Facebook, Inc. and its affiliates. 23 * 24 * This source code is licensed under the MIT license found in the 25 * LICENSE file in the root directory of this source tree. 26 */(function(e){function t(D,O){var E=D.length;D.push(O);e:for(;0<E;){var B=E-1>>>1,I=D[B];if(0<s(I,O))D[B]=O,D[E]=I,E=B;else break e}}function n(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var O=D[0],E=D.pop();if(E!==O){D[0]=E;e:for(var B=0,I=D.length,S=I>>>1;B<S;){var q=2*(B+1)-1,Z=D[q],te=q+1,re=D[te];if(0>s(Z,E))te<I&&0>s(re,Z)?(D[B]=re,D[te]=E,B=te):(D[B]=Z,D[q]=E,B=q);else if(te<I&&0>s(re,E))D[B]=re,D[te]=E,B=te;else break e}}return O}function s(D,O){var E=D.sortIndex-O.sortIndex;return E!==0?E:D.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var c=[],u=[],d=1,f=null,m=3,h=!1,y=!1,g=!1,w=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(D){for(var O=n(u);O!==null;){if(O.callback===null)r(u);else if(O.startTime<=D)r(u),O.sortIndex=O.expirationTime,t(c,O);else break;O=n(u)}}function _(D){if(g=!1,b(D),!y)if(n(c)!==null)y=!0,U(j);else{var O=n(u);O!==null&&V(_,O.startTime-D)}}function j(D,O){y=!1,g&&(g=!1,v(N),N=-1),h=!0;var E=m;try{for(b(O),f=n(c);f!==null&&(!(f.expirationTime>O)||D&&!M());){var B=f.callback;if(typeof B=="function"){f.callback=null,m=f.priorityLevel;var I=B(f.expirationTime<=O);O=e.unstable_now(),typeof I=="function"?f.callback=I:f===n(c)&&r(c),b(O)}else r(c);f=n(c)}if(f!==null)var S=!0;else{var q=n(u);q!==null&&V(_,q.startTime-O),S=!1}return S}finally{f=null,m=E,h=!1}}var k=!1,C=null,N=-1,T=5,A=-1;function M(){return!(e.unstable_now()-A<T)}function P(){if(C!==null){var D=e.unstable_now();A=D;var O=!0;try{O=C(!0,D)}finally{O?L():(k=!1,C=null)}}else k=!1}var L;if(typeof x=="function")L=function(){x(P)};else if(typeof MessageChannel<"u"){var R=new MessageChannel,z=R.port2;R.port1.onmessage=P,L=function(){z.postMessage(null)}}else L=function(){w(P,0)};function U(D){C=D,k||(k=!0,L())}function V(D,O){N=w(function(){D(e.unstable_now())},O)}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(D){D.callback=null},e.unstable_continueExecution=function(){y||h||(y=!0,U(j))},e.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<D?Math.floor(1e3/D):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(D){switch(m){case 1:case 2:case 3:var O=3;break;default:O=m}var E=m;m=O;try{return D()}finally{m=E}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(D,O){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var E=m;m=D;try{return O()}finally{m=E}},e.unstable_scheduleCallback=function(D,O,E){var B=e.unstable_now();switch(typeof E=="object"&&E!==null?(E=E.delay,E=typeof E=="number"&&0<E?B+E:B):E=B,D){case 1:var I=-1;break;case 2:I=250;break;case 5:I=1073741823;break;case 4:I=1e4;break;default:I=5e3}return I=E+I,D={id:d++,callback:O,priorityLevel:D,startTime:E,expirationTime:I,sortIndex:-1},E>B?(D.sortIndex=E,t(u,D),n(c)===null&&D===n(u)&&(g?(v(N),N=-1):g=!0,V(_,E-B))):(D.sortIndex=I,t(c,D),y||h||(y=!0,U(j))),D},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(D){var O=m;return function(){var E=m;m=O;try{return D.apply(this,arguments)}finally{m=E}}}})(Gb);Kb.exports=Gb;var n2=Kb.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 r2=p,un=n2;function K(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Yb=new Set,ol={};function Mi(e,t){$o(e,t),$o(e+"Capture",t)}function $o(e,t){for(ol[e]=t,e=0;e<t.length;e++)Yb.add(t[e])}var Fr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Zh=Object.prototype.hasOwnProperty,s2=/^[: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]*$/,Iv={},Av={};function i2(e){return Zh.call(Av,e)?!0:Zh.call(Iv,e)?!1:s2.test(e)?Av[e]=!0:(Iv[e]=!0,!1)}function o2(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function a2(e,t,n,r){if(t===null||typeof t>"u"||o2(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Lt(e,t,n,r,s,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var vt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){vt[e]=new Lt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];vt[t]=new Lt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){vt[e]=new Lt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){vt[e]=new Lt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){vt[e]=new Lt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){vt[e]=new Lt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){vt[e]=new Lt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){vt[e]=new Lt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){vt[e]=new Lt(e,5,!1,e.toLowerCase(),null,!1,!1)});var ig=/[\-:]([a-z])/g;function og(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode
34-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ig,og);vt[t]=new Lt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ig,og);vt[t]=new Lt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ig,og);vt[t]=new Lt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){vt[e]=new Lt(e,1,!1,e.toLowerCase(),null,!1,!1)});vt.xlinkHref=new Lt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){vt[e]=new Lt(e,1,!1,e.toLowerCase(),null,!0,!0)});function ag(e,t,n,r){var s=vt.hasOwnProperty(t)?vt[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(a2(t,n,s,r)&&(n=null),r||s===null?i2(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Kr=r2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,gc=Symbol.for("react.element"),so=Symbol.for("react.portal"),io=Symbol.for("react.fragment"),lg=Symbol.for("react.strict_mode"),Xh=Symbol.for("react.profiler"),Qb=Symbol.for("react.provider"),Zb=Symbol.for("react.context"),cg=Symbol.for("react.forward_ref"),Jh=Symbol.for("react.suspense"),ep=Symbol.for("react.suspense_list"),ug=Symbol.for("react.memo"),us=Symbol.for("react.lazy"),Xb=Symbol.for("react.offscreen"),Ov=Symbol.iterator;function va(e){return e===null||typeof e!="object"?null:(e=Ov&&e[Ov]||e["@@iterator"],typeof e=="function"?e:null)}var Qe=Object.assign,jf;function Ma(e){if(jf===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);jf=t&&t[1]||""}return` 35`+jf+e}var Cf=!1;function Nf(e,t){if(!e||Cf)return"";Cf=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var s=u.stack.split(` 36`),i=r.stack.split(` 37`),o=s.length-1,a=i.length-1;1<=o&&0<=a&&s[o]!==i[a];)a--;for(;1<=o&&0<=a;o--,a--)if(s[o]!==i[a]){if(o!==1||a!==1)do if(o--,a--,0>a||s[o]!==i[a]){var c=` 38`+s[o].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=o&&0<=a);break}}}finally{Cf=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ma(e):""}function l2(e){switch(e.tag){case 5:return Ma(e.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return e=Nf(e.type,!1),e;case 11:return e=Nf(e.type.render,!1),e;case 1:return e=Nf(e.type,!0),e;default:return""}}function tp(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case io:return"Fragment";case so:return"Portal";case Xh:return"Profiler";case lg:return"StrictMode";case Jh:return"Suspense";case ep:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Zb:return(e.displayName||"Context")+".Consumer";case Qb:return(e._context.displayName||"Context")+".Provider";case cg:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ug:return t=e.displayName||null,t!==null?t:tp(e.type)||"Memo";case us:t=e._payload,e=e._init;try{return tp(e(t))}catch{}}return null}function c2(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return tp(t);case 8:return t===lg?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Us(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Jb(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function u2(e){var t=Jb(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yc(e){e._valueTracker||(e._valueTracker=u2(e))}function e1(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Jb(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function bu(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function np(e,t){var n=t.checked;return Qe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Mv(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Us(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}
vendor: 4,651 bytes, line 38
38function t1(e,t){t=t.checked,t!=null&&ag(e,"checked",t,!1)}function rp(e,t){t1(e,t);var n=Us(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?sp(e,t.type,n):t.hasOwnProperty("defaultValue")&&sp(e,t.type,Us(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Dv(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function sp(e,t,n){(t!=="number"||bu(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Da=Array.isArray;function yo(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Us(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function ip(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(K(91));return Qe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Lv(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(K(92));if(Da(n)){if(1<n.length)throw Error(K(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Us(n)}}function n1(e,t){var n=Us(t.value),r=Us(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function $v(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function r1(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function op(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?r1(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var vc,s1=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(vc=vc||document.createElement("div"),vc.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=vc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function al(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ba={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},d2=["Webkit","ms","Moz","O"];Object.keys(Ba).forEach(function(e){d2.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ba[t]=Ba[e]})});function i1(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ba.hasOwnProperty(e)&&Ba[e]?(""+t).trim():t+"px"}function o1(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=i1(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var f2=Qe({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 ap(e,t){if(t){if(f2[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(K(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(K(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(K(61))}if(t.style!=null&&typeof t.style!="object")throw Error(K(62))}}function lp(e,t){if(e.indexOf("-")===-1)return typeof t.is=="str
38ing";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var cp=null;function dg(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var up=null,vo=null,xo=null;function zv(e){if(e=Kl(e)){if(typeof up!="function")throw Error(K(280));var t=e.stateNode;t&&(t=wd(t),up(e.stateNode,e.type,t))}}function a1(e){vo?xo?xo.push(e):xo=[e]:vo=e}function l1(){if(vo){var e=vo,t=xo;if(xo=vo=null,zv(e),t)for(e=0;e<t.length;e++)zv(t[e])}}function c1(e,t){return e(t)}function u1(){}var Tf=!1;function d1(e,t,n){if(Tf)return e(t,n);Tf=!0;try{return c1(e,t,n)}finally{Tf=!1,(vo!==null||xo!==null)&&(u1(),l1())}}function ll(e,t){var n=e.stateNode;if(n===null)return null;var r=wd(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(K(231,t,typeof n));return n}var dp=!1;if(Fr)try{var xa={};Object.defineProperty(xa,"passive",{get:function(){dp=!0}}),window.addEventListener("test",xa,xa),window.removeEventListener("test",xa,xa)}catch{dp=!1}function h2(e,t,n,r,s,i,o,a,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var Ha=!1,_u=null,ku=!1,fp=null,p2={onError:function(e){Ha=!0,_u=e}};function m2(e,t,n,r,s,i,o,a,c){Ha=!1,_u=null,h2.apply(p2,arguments)}function g2(e,t,n,r,s,i,o,a,c){if(m2.apply(this,arguments),Ha){if(Ha){var u=_u;Ha=!1,_u=null}else throw Error(K(198));ku||(ku=!0,fp=u)}}function Di(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function f1(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Fv(e){if(Di(e)!==e)throw Error(K(188))}function y2(e){var t=e.alternate;if(!t){if(t=Di(e),t===null)throw Error(K(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var i=s.alternate;if(i===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===n)return Fv(s),e;if(i===r)return Fv(s),t;i=i.sibling}throw Error(K(188))}if(n.return!==r.return)n=s,r=i;else{for(var o=!1,a=s.child;a;){if(a===n){o=!0,n=s,r=i;break}if(a===r){o=!0,r=s,n=i;break}a=a.sibling}if(!o){for(a=i.child;a;){if(a===n){o=!0,n=i,r=s;break}if(a===r){o=!0,r=i,n=s;break}a=a.sibling}if(!o)throw Error(K(189))}}if(n.alternate!==r)throw Error(K(190))}if(n.tag!==3)throw Error(K(188));return n.stateNode.current===n?e:t}function h1(e){return e=y2(e),e!==null?p1(e):null}function p1(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=p1(e);if(t!==null)return t;e=e.sibling}return null}var m1=un.unstable_scheduleCallback,Uv=un.unstable_cancelCallback,v2=un.unstable_shouldYield,x2=un.unstable_requestPaint,nt=un.unstable_now,w2=un.unstable_getCurrentPriorityLevel,fg=un.unstable_ImmediatePriority,g1=un.unstable_UserBlockingPriority,Su=un.unstable_NormalPriority,b2=un.unstable_LowPriority,y1=un.unstable_IdlePriority,gd=null,yr=null;function _2(e){if(yr&&typeof yr.onCommitFiberRoot=="function")try{yr.onCommitFiberRoot(gd,e,void 0,(e.current.flags&128)===128)}catch{}}var Kn=Math.clz32?Math.clz32:E2,k2=Math.log,S2=Math.LN2;function E2(e){return e>>>=0,e===0?32:31-(k2(e)/S2|0)|0}var xc=64,wc=4194304;function La(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Eu(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~s;a!==0?r=La(a):(i&=o,i!==0&&(r=La(i)))}else o=n&~s,o!==0?r=La(o):i!==0&&(r=La(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,i=t&-t,s>=i||s===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Kn(t),s=1<<n,r|=e[n],t&=~s;return r}function j2(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function C2(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-Kn(i),a=1<<o,c=s[o];c===-1?(!(a&n)||a&r)&&(s[o]=j2(a,t)):c<=t&&(e.expiredLanes|=a),i&=~a}}function hp(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function v1(){var e=xc;return xc<<=1,!(xc&4194240)&&(xc=64),e}function Pf(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Wl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Kn(t),e[t]=n}function N2(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var s=31-Kn(n),i=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~i}}function hg(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Kn(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var De=0;function x1(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var w1,pg,b1,_1,k1,pp=!1,bc=[],Ns=null,Ts=null,Ps=null,cl=new Map,ul=new Map,hs=[],T2="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 Bv(e,t){switch(e){case"focusin":case"focusout":Ns=null;break;case"dragenter":case"dragleave":Ts=null;break;case"mouseover":case"mouseout":Ps=null;break;case"pointerover":case"pointerout":cl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ul.delete(t.pointerId)}}function wa(e,t,n,r,s,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[s]},t!==null&&(t=Kl(t),t!==null&&pg(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}
vendor: 4,092 bytes, line 38
38function P2(e,t,n,r,s){switch(t){case"focusin":return Ns=wa(Ns,e,t,n,r,s),!0;case"dragenter":return Ts=wa(Ts,e,t,n,r,s),!0;case"mouseover":return Ps=wa(Ps,e,t,n,r,s),!0;case"pointerover":var i=s.pointerId;return cl.set(i,wa(cl.get(i)||null,e,t,n,r,s)),!0;case"gotpointercapture":return i=s.pointerId,ul.set(i,wa(ul.get(i)||null,e,t,n,r,s)),!0}return!1}function S1(e){var t=ui(e.target);if(t!==null){var n=Di(t);if(n!==null){if(t=n.tag,t===13){if(t=f1(n),t!==null){e.blockedOn=t,k1(e.priority,function(){b1(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Zc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=mp(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);cp=r,n.target.dispatchEvent(r),cp=null}else return t=Kl(n),t!==null&&pg(t),e.blockedOn=n,!1;t.shift()}return!0}function Hv(e,t,n){Zc(e)&&n.delete(t)}function R2(){pp=!1,Ns!==null&&Zc(Ns)&&(Ns=null),Ts!==null&&Zc(Ts)&&(Ts=null),Ps!==null&&Zc(Ps)&&(Ps=null),cl.forEach(Hv),ul.forEach(Hv)}function ba(e,t){e.blockedOn===t&&(e.blockedOn=null,pp||(pp=!0,un.unstable_scheduleCallback(un.unstable_NormalPriority,R2)))}function dl(e){function t(s){return ba(s,e)}if(0<bc.length){ba(bc[0],e);for(var n=1;n<bc.length;n++){var r=bc[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Ns!==null&&ba(Ns,e),Ts!==null&&ba(Ts,e),Ps!==null&&ba(Ps,e),cl.forEach(t),ul.forEach(t),n=0;n<hs.length;n++)r=hs[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<hs.length&&(n=hs[0],n.blockedOn===null);)S1(n),n.blockedOn===null&&hs.shift()}var wo=Kr.ReactCurrentBatchConfig,ju=!0;function I2(e,t,n,r){var s=De,i=wo.transition;wo.transition=null;try{De=1,mg(e,t,n,r)}finally{De=s,wo.transition=i}}function A2(e,t,n,r){var s=De,i=wo.transition;wo.transition=null;try{De=4,mg(e,t,n,r)}finally{De=s,wo.transition=i}}function mg(e,t,n,r){if(ju){var s=mp(e,t,n,r);if(s===null)Ff(e,t,r,Cu,n),Bv(e,r);else if(P2(s,e,t,n,r))r.stopPropagation();else if(Bv(e,r),t&4&&-1<T2.indexOf(e)){for(;s!==null;){var i=Kl(s);if(i!==null&&w1(i),i=mp(e,t,n,r),i===null&&Ff(e,t,r,Cu,n),i===s)break;s=i}s!==null&&r.stopPropagation()}else Ff(e,t,r,null,n)}}var Cu=null;function mp(e,t,n,r){if(Cu=null,e=dg(r),e=ui(e),e!==null)if(t=Di(e),t===null)e=null;else if(n=t.tag,n===13){if(e=f1(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Cu=e,null}function E1(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(w2()){case fg:return 1;case g1:return 4;case Su:case b2:return 16;case y1:return 536870912;default:return 16}default:return 16}}var Ss=null,gg=null,Xc=null;function j1(){if(Xc)return Xc;var e,t=gg,n=t.length,r,s="value"in Ss?Ss.value:Ss.textContent,i=s.length;for(e=0;e<n&&t[e]===s[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===s[i-r];r++);return Xc=s.slice(e,1<r?1-r:void 0)}
vendor: 6,339 bytes, line 38
38function Jc(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function _c(){return!0}function Vv(){return!1}function hn(e){function t(n,r,s,i,o){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?_c:Vv,this.isPropagationStopped=Vv,this}return Qe(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=_c)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=_c)},persist:function(){},isPersistent:_c}),t}var na={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},yg=hn(na),ql=Qe({},na,{view:0,detail:0}),O2=hn(ql),Rf,If,_a,yd=Qe({},ql,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vg,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==_a&&(_a&&e.type==="mousemove"?(Rf=e.screenX-_a.screenX,If=e.screenY-_a.screenY):If=Rf=0,_a=e),Rf)},movementY:function(e){return"movementY"in e?e.movementY:If}}),Wv=hn(yd),M2=Qe({},yd,{dataTransfer:0}),D2=hn(M2),L2=Qe({},ql,{relatedTarget:0}),Af=hn(L2),$2=Qe({},na,{animationName:0,elapsedTime:0,pseudoElement:0}),z2=hn($2),F2=Qe({},na,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),U2=hn(F2),B2=Qe({},na,{data:0}),qv=hn(B2),H2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},V2={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"},W2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function q2(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=W2[e])?!!t[e]:!1}function vg(){return q2}var K2=Qe({},ql,{key:function(e){if(e.key){var t=H2[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Jc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?V2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:vg,charCode:function(e){return e.type==="keypress"?Jc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Jc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),G2=hn(K2),Y2=Qe({},yd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Kv=hn(Y2),Q2=Qe({},ql,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vg}),Z2=hn(Q2),X2=Qe({},na,{propertyName:0,elapsedTime:0,pseudoElement:0}),J2=hn(X2),eP=Qe({},yd,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),tP=hn(eP),nP=[9,13,27,32],xg=Fr&&"CompositionEvent"in window,Va=null;Fr&&"documentMode"in document&&(Va=document.documentMode);var rP=Fr&&"TextEvent"in window&&!Va,C1=Fr&&(!xg||Va&&8<Va&&11>=Va),Gv=" ",Yv=!1;function N1(e,t){switch(e){case"keyup":return nP.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function T1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var oo=!1;function sP(e,t){switch(e){case"compositionend":return T1(t);case"keypress":return t.which!==32?null:(Yv=!0,Gv);case"textInput":return e=t.data,e===Gv&&Yv?null:e;default:return null}}function iP(e,t){if(oo)return e==="compositionend"||!xg&&N1(e,t)?(e=j1(),Xc=gg=Ss=null,oo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return C1&&t.locale!=="ko"?null:t.data;default:return null}}var oP={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 Qv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!oP[e.type]:t==="textarea"}function P1(e,t,n,r){a1(r),t=Nu(t,"onChange"),0<t.length&&(n=new yg("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Wa=null,fl=null;function aP(e){U1(e,0)}function vd(e){var t=co(e);if(e1(t))return e}function lP(e,t){if(e==="change")return t}var R1=!1;if(Fr){var Of;if(Fr){var Mf="oninput"in document;if(!Mf){var Zv=document.createElement("div");Zv.setAttribute("oninput","return;"),Mf=typeof Zv.oninput=="function"}Of=Mf}else Of=!1;R1=Of&&(!document.documentMode||9<document.documentMode)}function Xv(){Wa&&(Wa.detachEvent("onpropertychange",I1),fl=Wa=null)}function I1(e){if(e.propertyName==="value"&&vd(fl)){var t=[];P1(t,fl,e,dg(e)),d1(aP,t)}}function cP(e,t,n){e==="focusin"?(Xv(),Wa=t,fl=n,Wa.attachEvent("onpropertychange",I1)):e==="focusout"&&Xv()}function uP(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return vd(fl)}function dP(e,t){if(e==="click")return vd(t)}function fP(e,t){if(e==="input"||e==="change")return vd(t)}function hP(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Yn=typeof Object.is=="function"?Object.is:hP;function hl(e,t){if(Yn(e,t))return!0;
vendor: 4,808 bytes, line 38
38if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!Zh.call(t,s)||!Yn(e[s],t[s]))return!1}return!0}function Jv(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ex(e,t){var n=Jv(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Jv(n)}}function A1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?A1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function O1(){for(var e=window,t=bu();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=bu(e.document)}return t}function wg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function pP(e){var t=O1(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&A1(n.ownerDocument.documentElement,n)){if(r!==null&&wg(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=n.textContent.length,i=Math.min(r.start,s);r=r.end===void 0?i:Math.min(r.end,s),!e.extend&&i>r&&(s=r,r=i,i=s),s=ex(n,i);var o=ex(n,r);s&&o&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mP=Fr&&"documentMode"in document&&11>=document.documentMode,ao=null,gp=null,qa=null,yp=!1;function tx(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;yp||ao==null||ao!==bu(r)||(r=ao,"selectionStart"in r&&wg(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),qa&&hl(qa,r)||(qa=r,r=Nu(gp,"onSelect"),0<r.length&&(t=new yg("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ao)))}function kc(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var lo={animationend:kc("Animation","AnimationEnd"),animationiteration:kc("Animation","AnimationIteration"),animationstart:kc("Animation","AnimationStart"),transitionend:kc("Transition","TransitionEnd")},Df={},M1={};Fr&&(M1=document.createElement("div").style,"AnimationEvent"in window||(delete lo.animationend.animation,delete lo.animationiteration.animation,delete lo.animationstart.animation),"TransitionEvent"in window||delete lo.transitionend.transition);function xd(e){if(Df[e])return Df[e];if(!lo[e])return e;var t=lo[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in M1)return Df[e]=t[n];return e}var D1=xd("animationend"),L1=xd("animationiteration"),$1=xd("animationstart"),z1=xd("transitionend"),F1=new Map,nx="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 Gs(e,t){F1.set(e,t),Mi(t,[e])}for(var Lf=0;Lf<nx.length;Lf++){var $f=nx[Lf],gP=$f.toLowerCase(),yP=$f[0].toUpperCase()+$f.slice(1);Gs(gP,"on"+yP)}Gs(D1,"onAnimationEnd");Gs(L1,"onAnimationIteration");Gs($1,"onAnimationStart");Gs("dblclick","onDoubleClick");Gs("focusin","onFocus");Gs("focusout","onBlur");Gs(z1,"onTransitionEnd");$o("onMouseEnter",["mouseout","mouseover"]);$o("onMouseLeave",["mouseout","mouseover"]);$o("onPointerEnter",["pointerout","pointerover"]);$o("onPointerLeave",["pointerout","pointerover"]);Mi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));
vendor: 4,442 bytes, line 38
38Mi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Mi("onBeforeInput",["compositionend","keypress","textInput","paste"]);Mi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Mi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Mi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var $a="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(" "),vP=new Set("cancel close invalid load scroll toggle".split(" ").concat($a));function rx(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,g2(r,t,void 0,e),e.currentTarget=null}function U1(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],c=a.instance,u=a.currentTarget;if(a=a.listener,c!==i&&s.isPropagationStopped())break e;rx(s,a,u),i=c}else for(o=0;o<r.length;o++){if(a=r[o],c=a.instance,u=a.currentTarget,a=a.listener,c!==i&&s.isPropagationStopped())break e;rx(s,a,u),i=c}}}if(ku)throw e=fp,ku=!1,fp=null,e}function Ve(e,t){var n=t[_p];n===void 0&&(n=t[_p]=new Set);var r=e+"__bubble";n.has(r)||(B1(t,e,2,!1),n.add(r))}function zf(e,t,n){var r=0;t&&(r|=4),B1(n,e,r,t)}var Sc="_reactListening"+Math.random().toString(36).slice(2);function pl(e){if(!e[Sc]){e[Sc]=!0,Yb.forEach(function(n){n!=="selectionchange"&&(vP.has(n)||zf(n,!1,e),zf(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Sc]||(t[Sc]=!0,zf("selectionchange",!1,t))}}function B1(e,t,n,r){switch(E1(t)){case 1:var s=I2;break;case 4:s=A2;break;default:s=mg}n=s.bind(null,t,n,e),s=void 0,!dp||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function Ff(e,t,n,r,s){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;if(a===s||a.nodeType===8&&a.parentNode===s)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&(c=o.stateNode.containerInfo,c===s||c.nodeType===8&&c.parentNode===s))return;o=o.return}for(;a!==null;){if(o=ui(a),o===null)return;if(c=o.tag,c===5||c===6){r=i=o;continue e}a=a.parentNode}}r=r.return}d1(function(){var u=i,d=dg(n),f=[];e:{var m=F1.get(e);if(m!==void 0){var h=yg,y=e;switch(e){case"keypress":if(Jc(n)===0)break e;case"keydown":case"keyup":h=G2;break;case"focusin":y="focus",h=Af;break;case"focusout":y="blur",h=Af;break;case"beforeblur":case"afterblur":h=Af;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=Wv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=D2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=Z2;break;case D1:case L1:case $1:h=z2;break;case z1:h=J2;break;case"scroll":h=O2;break;case"wheel":h=tP;break;case"copy":case"cut":case"paste":h=U2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Kv}var g=(t&4)!==0,w=!g&&e==="scroll",v=g?m!==null?m+"Capture":null:m;g=[];for(var x=u,b;x!==null;){b=x;var _=b.stateNode;if(b.tag===5&&_!==null&&(b=_,v!==null&&(_=ll(x,v),_!=null&&g.push(ml(x,_,b)))),w)break;x=x.return}0<g.length&&(m=new h(m,y,null,n,d),f.push({event:m,listeners:g}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",m&&n!==cp&&(y=n.relatedTarget||n.fromElement)&&(ui(y)||y[Ur]))break e;if((h||m)&&(m=d.window===d?d:(m=d.ownerDocument)?m.defaultView||m.parentWindow:window,h?(y=n.relatedTarget||n.toElement,h=u,y=y?ui(y):null,y!==null&&(w=Di(y),y!==w||y.tag!==5&&y.tag!==6)&&(y=null)):(h=null,y=u),h!==y)){if(g=Wv,_="onMouseLeave",v="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(g=Kv,_="onPointerLeave",v="onPointerEnter",x="pointer"),w=h==null?m:co(h),b=y==null?m:co(y),m=new g(_,x+"leave",h,n,d),m.target=w,m.relatedTarget=b,_=null,ui(d)===u&&(g=ne
vendor: 4,958 bytes, lines 38-39
38w g(v,x+"enter",y,n,d),g.target=b,g.relatedTarget=w,_=g),w=_,h&&y)t:{for(g=h,v=y,x=0,b=g;b;b=Bi(b))x++;for(b=0,_=v;_;_=Bi(_))b++;for(;0<x-b;)g=Bi(g),x--;for(;0<b-x;)v=Bi(v),b--;for(;x--;){if(g===v||v!==null&&g===v.alternate)break t;g=Bi(g),v=Bi(v)}g=null}else g=null;h!==null&&sx(f,m,h,g,!1),y!==null&&w!==null&&sx(f,w,y,g,!0)}}e:{if(m=u?co(u):window,h=m.nodeName&&m.nodeName.toLowerCase(),h==="select"||h==="input"&&m.type==="file")var j=lP;else if(Qv(m))if(R1)j=fP;else{j=uP;var k=cP}else(h=m.nodeName)&&h.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(j=dP);if(j&&(j=j(e,u))){P1(f,j,n,d);break e}k&&k(e,m,u),e==="focusout"&&(k=m._wrapperState)&&k.controlled&&m.type==="number"&&sp(m,"number",m.value)}switch(k=u?co(u):window,e){case"focusin":(Qv(k)||k.contentEditable==="true")&&(ao=k,gp=u,qa=null);break;case"focusout":qa=gp=ao=null;break;case"mousedown":yp=!0;break;case"contextmenu":case"mouseup":case"dragend":yp=!1,tx(f,n,d);break;case"selectionchange":if(mP)break;case"keydown":case"keyup":tx(f,n,d)}var C;if(xg)e:{switch(e){case"compositionstart":var N="onCompositionStart";break e;case"compositionend":N="onCompositionEnd";break e;case"compositionupdate":N="onCompositionUpdate";break e}N=void 0}else oo?N1(e,n)&&(N="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(N="onCompositionStart");N&&(C1&&n.locale!=="ko"&&(oo||N!=="onCompositionStart"?N==="onCompositionEnd"&&oo&&(C=j1()):(Ss=d,gg="value"in Ss?Ss.value:Ss.textContent,oo=!0)),k=Nu(u,N),0<k.length&&(N=new qv(N,e,null,n,d),f.push({event:N,listeners:k}),C?N.data=C:(C=T1(n),C!==null&&(N.data=C)))),(C=rP?sP(e,n):iP(e,n))&&(u=Nu(u,"onBeforeInput"),0<u.length&&(d=new qv("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:u}),d.data=C))}U1(f,t)})}function ml(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Nu(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=ll(e,n),i!=null&&r.unshift(ml(e,i,s)),i=ll(e,t),i!=null&&r.push(ml(e,i,s))),e=e.return}return r}function Bi(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function sx(e,t,n,r,s){for(var i=t._reactName,o=[];n!==null&&n!==r;){var a=n,c=a.alternate,u=a.stateNode;if(c!==null&&c===r)break;a.tag===5&&u!==null&&(a=u,s?(c=ll(n,i),c!=null&&o.unshift(ml(n,c,a))):s||(c=ll(n,i),c!=null&&o.push(ml(n,c,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var xP=/\r\n?/g,wP=/\u0000|\uFFFD/g;function ix(e){return(typeof e=="string"?e:""+e).replace(xP,` 39`).replace(wP,"")}function Ec(e,t,n){if(t=ix(t),ix(e)!==t&&n)throw Error(K(425))}function Tu(){}var vp=null,xp=null;function wp(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var bp=typeof setTimeout=="function"?setTimeout:void 0,bP=typeof clearTimeout=="function"?clearTimeout:void 0,ox=typeof Promise=="function"?Promise:void 0,_P=typeof queueMicrotask=="function"?queueMicrotask:typeof ox<"u"?function(e){return ox.resolve(null).then(e).catch(kP)}:bp;function kP(e){setTimeout(function(){throw e})}function Uf(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),dl(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);dl(t)}function Rs(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function ax(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var ra=Math.random().toString(36).slice(2),hr="__reactFiber$"+ra,gl="__reactProps$"+ra,Ur="__reactContainer$"+ra,_p="__reactEvents$"+ra,SP="__reactListeners$"+ra,EP="__reactHandles$"+ra;function ui(e){var t=e[hr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ur]||n[hr]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ax(e);e!==null;){if(n=e[hr])return n;e=ax(e)}return t}e=n,n=e.parentNode}return null}function Kl(e){return e=e[hr]||e[Ur],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function co(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(K(33))}function wd(e){return e[gl]||null}var kp=[],uo=-1;function Ys(e){return{current:e}}function We(e){0>uo||(e.current=kp[uo],kp[uo]=null,uo--)}function Fe(e,t){uo++,kp[uo]=e.current,e.current=t}var Bs={},Nt=Ys(Bs),Wt=Ys(!1),ki=Bs;function zo(e,t){var n=e.type.contextTypes;if(!n)return Bs;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in n)s[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function qt(e){return e=e.childContextTypes,e!=null}
vendor: 4,672 bytes, line 39
39function Pu(){We(Wt),We(Nt)}function lx(e,t,n){if(Nt.current!==Bs)throw Error(K(168));Fe(Nt,t),Fe(Wt,n)}function H1(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(K(108,c2(e)||"Unknown",s));return Qe({},n,r)}function Ru(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Bs,ki=Nt.current,Fe(Nt,e),Fe(Wt,Wt.current),!0}function cx(e,t,n){var r=e.stateNode;if(!r)throw Error(K(169));n?(e=H1(e,t,ki),r.__reactInternalMemoizedMergedChildContext=e,We(Wt),We(Nt),Fe(Nt,e)):We(Wt),Fe(Wt,n)}var Or=null,bd=!1,Bf=!1;function V1(e){Or===null?Or=[e]:Or.push(e)}function jP(e){bd=!0,V1(e)}function Qs(){if(!Bf&&Or!==null){Bf=!0;var e=0,t=De;try{var n=Or;for(De=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Or=null,bd=!1}catch(s){throw Or!==null&&(Or=Or.slice(e+1)),m1(fg,Qs),s}finally{De=t,Bf=!1}}return null}var fo=[],ho=0,Iu=null,Au=0,xn=[],wn=0,Si=null,Lr=1,$r="";function si(e,t){fo[ho++]=Au,fo[ho++]=Iu,Iu=e,Au=t}function W1(e,t,n){xn[wn++]=Lr,xn[wn++]=$r,xn[wn++]=Si,Si=e;var r=Lr;e=$r;var s=32-Kn(r)-1;r&=~(1<<s),n+=1;var i=32-Kn(t)+s;if(30<i){var o=s-s%5;i=(r&(1<<o)-1).toString(32),r>>=o,s-=o,Lr=1<<32-Kn(t)+s|n<<s|r,$r=i+e}else Lr=1<<i|n<<s|r,$r=e}function bg(e){e.return!==null&&(si(e,1),W1(e,1,0))}function _g(e){for(;e===Iu;)Iu=fo[--ho],fo[ho]=null,Au=fo[--ho],fo[ho]=null;for(;e===Si;)Si=xn[--wn],xn[wn]=null,$r=xn[--wn],xn[wn]=null,Lr=xn[--wn],xn[wn]=null}var an=null,sn=null,Ke=!1,Wn=null;function q1(e,t){var n=_n(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function ux(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,an=e,sn=Rs(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,an=e,sn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Si!==null?{id:Lr,overflow:$r}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=_n(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,an=e,sn=null,!0):!1;default:return!1}}function Sp(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Ep(e){if(Ke){var t=sn;if(t){var n=t;if(!ux(e,t)){if(Sp(e))throw Error(K(418));t=Rs(n.nextSibling);var r=an;t&&ux(e,t)?q1(r,n):(e.flags=e.flags&-4097|2,Ke=!1,an=e)}}else{if(Sp(e))throw Error(K(418));e.flags=e.flags&-4097|2,Ke=!1,an=e}}}function dx(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;an=e}function jc(e){if(e!==an)return!1;if(!Ke)return dx(e),Ke=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!wp(e.type,e.memoizedProps)),t&&(t=sn)){if(Sp(e))throw K1(),Error(K(418));for(;t;)q1(e,t),t=Rs(t.nextSibling)}if(dx(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(K(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){sn=Rs(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}sn=null}}else sn=an?Rs(e.stateNode.nextSibling):null;return!0}function K1(){for(var e=sn;e;)e=Rs(e.nextSibling)}function Fo(){sn=an=null,Ke=!1}function kg(e){Wn===null?Wn=[e]:Wn.push(e)}var CP=Kr.ReactCurrentBatchConfig;function ka(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(K(309));var r=n.stateNode}if(!r)throw Error(K(147,e));var s=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var a=s.refs;o===null?delete a[i]:a[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(K(284));if(!n._owner)throw Error(K(290,e))}return e}function Cc(e,t){throw e=Object.prototype.toString.call(t),Error(K(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function fx(e){var t=e._init;return t(e._payload)}function G1(e){function t(v,x){if(e){var b=v.deletions;b===null?(v.deletions=[x],v.flags|=16):b.push(x)}}function n(v,x){if(!e)return null;for(;x!==null;)t(v,x),x=x.sibling;return null}function r(v,x){for(v=new Map;x!==null;)x.key!==null?v.set(x.key,x):v.set(x.index,x),x=x.sibling;return v}function s(v,x){return v=Ms(v,x),v.index=0,v.sibling=null,v}function i(v,x,b){return v.index=b,e?(b=v.alternate,b!==null?(b=b.index,b<x?(v.flags|=2,x):b):(v.flags|=2,x)):(v.flags|=1048576,x)}function o(v){return e&&v.alternate===null&&(v.flags|=2),v}function a(v,x,b,_){return x===null||x.tag!==6?(x=Yf(b,v.mode,_),x.return=v,x):(x=s(x,b),x.return=v,x)}function c(v,x,b,_){var j=b.type;
vendor: 4,094 bytes, line 39
39return j===io?d(v,x,b.props.children,_,b.key):x!==null&&(x.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===us&&fx(j)===x.type)?(_=s(x,b.props),_.ref=ka(v,x,b),_.return=v,_):(_=ou(b.type,b.key,b.props,null,v.mode,_),_.ref=ka(v,x,b),_.return=v,_)}function u(v,x,b,_){return x===null||x.tag!==4||x.stateNode.containerInfo!==b.containerInfo||x.stateNode.implementation!==b.implementation?(x=Qf(b,v.mode,_),x.return=v,x):(x=s(x,b.children||[]),x.return=v,x)}function d(v,x,b,_,j){return x===null||x.tag!==7?(x=_i(b,v.mode,_,j),x.return=v,x):(x=s(x,b),x.return=v,x)}function f(v,x,b){if(typeof x=="string"&&x!==""||typeof x=="number")return x=Yf(""+x,v.mode,b),x.return=v,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case gc:return b=ou(x.type,x.key,x.props,null,v.mode,b),b.ref=ka(v,null,x),b.return=v,b;case so:return x=Qf(x,v.mode,b),x.return=v,x;case us:var _=x._init;return f(v,_(x._payload),b)}if(Da(x)||va(x))return x=_i(x,v.mode,b,null),x.return=v,x;Cc(v,x)}return null}function m(v,x,b,_){var j=x!==null?x.key:null;if(typeof b=="string"&&b!==""||typeof b=="number")return j!==null?null:a(v,x,""+b,_);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case gc:return b.key===j?c(v,x,b,_):null;case so:return b.key===j?u(v,x,b,_):null;case us:return j=b._init,m(v,x,j(b._payload),_)}if(Da(b)||va(b))return j!==null?null:d(v,x,b,_,null);Cc(v,b)}return null}function h(v,x,b,_,j){if(typeof _=="string"&&_!==""||typeof _=="number")return v=v.get(b)||null,a(x,v,""+_,j);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case gc:return v=v.get(_.key===null?b:_.key)||null,c(x,v,_,j);case so:return v=v.get(_.key===null?b:_.key)||null,u(x,v,_,j);case us:var k=_._init;return h(v,x,b,k(_._payload),j)}if(Da(_)||va(_))return v=v.get(b)||null,d(x,v,_,j,null);Cc(x,_)}return null}function y(v,x,b,_){for(var j=null,k=null,C=x,N=x=0,T=null;C!==null&&N<b.length;N++){C.index>N?(T=C,C=null):T=C.sibling;var A=m(v,C,b[N],_);if(A===null){C===null&&(C=T);break}e&&C&&A.alternate===null&&t(v,C),x=i(A,x,N),k===null?j=A:k.sibling=A,k=A,C=T}if(N===b.length)return n(v,C),Ke&&si(v,N),j;if(C===null){for(;N<b.length;N++)C=f(v,b[N],_),C!==null&&(x=i(C,x,N),k===null?j=C:k.sibling=C,k=C);return Ke&&si(v,N),j}for(C=r(v,C);N<b.length;N++)T=h(C,v,N,b[N],_),T!==null&&(e&&T.alternate!==null&&C.delete(T.key===null?N:T.key),x=i(T,x,N),k===null?j=T:k.sibling=T,k=T);return e&&C.forEach(function(M){return t(v,M)}),Ke&&si(v,N),j}function g(v,x,b,_){var j=va(b);if(typeof j!="function")throw Error(K(150));if(b=j.call(b),b==null)throw Error(K(151));for(var k=j=null,C=x,N=x=0,T=null,A=b.next();C!==null&&!A.done;N++,A=b.next()){C.index>N?(T=C,C=null):T=C.sibling;var M=m(v,C,A.value,_);if(M===null){C===null&&(C=T);break}e&&C&&M.alternate===null&&t(v,C),x=i(M,x,N),k===null?j=M:k.sibling=M,k=M,C=T}if(A.done)return n(v,C),Ke&&si(v,N),j;if(C===null){for(;!A.done;N++,A=b.next())A=f(v,A.value,_),A!==null&&(x=i(A,x,N),k===null?j=A:k.sibling=A,k=A);return Ke&&si(v,N),j}for(C=r(v,C);!A.done;N++,A=b.next())A=h(C,v,N,A.value,_),A!==null&&(e&&A.alternate!==null&&C.delete(A.key===null?N:A.key),x=i(A,x,N),k===null?j=A:k.sibling=A,k=A);return e&&C.forEach(function(P){return t(v,P)}),Ke&&si(v,N),j}function w(v,x,b,_){if(typeof b=="object"&&b!==null&&b.type===io&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case gc:e:{for(var j=b.key,k=x;k!==null;){if(k.key===j){if(j=b.type,j===io){if(k.tag===7){n(v,k.sibling),x=s(k,b.props.children),x.return=v,v=x;break e}}else if(k.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===us&&fx(j)===k.type){n(v,k.sibling),x=s(k,b.props),x.ref=ka(v,k,b),x.return=v,v=x;break e}n(v,k);break}else t(v,k);k=k.sibling}b.type===io?(x=_i(b.props.children,v.mode,_,b.key),x.return=v,v=x):(_=ou(b.type,b.key,b.props,null,v.mode,_),_.ref=ka(v,x,b),_.return=v,v=_)}return o(v);case so:e:{for(k=b.key;x!==null;){if(x.key===k)if(x.tag===4&&x.stateNode.containerInfo===b.containerInfo&&x.stateNode.implementation===b.implementation){n(v,x.sibling),x=s(x,b.children||[]),x.return=v,v=x;break e}else{n(v,x);break}else t(v,x);x=x.sibling}
vendor: 17,091 bytes, lines 39-41
39x=Qf(b,v.mode,_),x.return=v,v=x}return o(v);case us:return k=b._init,w(v,x,k(b._payload),_)}if(Da(b))return y(v,x,b,_);if(va(b))return g(v,x,b,_);Cc(v,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,x!==null&&x.tag===6?(n(v,x.sibling),x=s(x,b),x.return=v,v=x):(n(v,x),x=Yf(b,v.mode,_),x.return=v,v=x),o(v)):n(v,x)}return w}var Uo=G1(!0),Y1=G1(!1),Ou=Ys(null),Mu=null,po=null,Sg=null;function Eg(){Sg=po=Mu=null}function jg(e){var t=Ou.current;We(Ou),e._currentValue=t}function jp(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function bo(e,t){Mu=e,Sg=po=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Vt=!0),e.firstContext=null)}function jn(e){var t=e._currentValue;if(Sg!==e)if(e={context:e,memoizedValue:t,next:null},po===null){if(Mu===null)throw Error(K(308));po=e,Mu.dependencies={lanes:0,firstContext:e}}else po=po.next=e;return t}var di=null;function Cg(e){di===null?di=[e]:di.push(e)}function Q1(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,Cg(t)):(n.next=s.next,s.next=n),t.interleaved=n,Br(e,r)}function Br(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ds=!1;function Ng(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Z1(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function zr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Is(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Te&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,Br(e,n)}return s=r.interleaved,s===null?(t.next=t,Cg(r)):(t.next=s.next,s.next=t),r.interleaved=t,Br(e,n)}function eu(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,hg(e,n)}}function hx(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?s=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?s=i=t:i=i.next=t}else s=i=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Du(e,t,n,r){var s=e.updateQueue;ds=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var c=a,u=c.next;c.next=null,o===null?i=u:o.next=u,o=c;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==o&&(a===null?d.firstBaseUpdate=u:a.next=u,d.lastBaseUpdate=c))}if(i!==null){var f=s.baseState;o=0,d=u=c=null,a=i;do{var m=a.lane,h=a.eventTime;if((r&m)===m){d!==null&&(d=d.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var y=e,g=a;switch(m=t,h=n,g.tag){case 1:if(y=g.payload,typeof y=="function"){f=y.call(h,f,m);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=g.payload,m=typeof y=="function"?y.call(h,f,m):y,m==null)break e;f=Qe({},f,m);break e;case 2:ds=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,m=s.effects,m===null?s.effects=[a]:m.push(a))}else h={eventTime:h,lane:m,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(u=d=h,c=f):d=d.next=h,o|=m;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;m=a,a=m.next,m.next=null,s.lastBaseUpdate=m,s.shared.pending=null}}while(!0);if(d===null&&(c=f),s.baseState=c,s.firstBaseUpdate=u,s.lastBaseUpdate=d,t=s.shared.interleaved,t!==null){s=t;do o|=s.lane,s=s.next;while(s!==t)}else i===null&&(s.shared.lanes=0);ji|=o,e.lanes=o,e.memoizedState=f}}function px(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(K(191,s));s.call(r)}}}var Gl={},vr=Ys(Gl),yl=Ys(Gl),vl=Ys(Gl);function fi(e){if(e===Gl)throw Error(K(174));return e}function Tg(e,t){switch(Fe(vl,t),Fe(yl,e),Fe(vr,Gl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:op(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=op(t,e)}We(vr),Fe(vr,t)}function Bo(){We(vr),We(yl),We(vl)}function X1(e){fi(vl.current);var t=fi(vr.current),n=op(t,e.type);t!==n&&(Fe(yl,e),Fe(vr,n))}function Pg(e){yl.current===e&&(We(vr),We(yl))}var Ge=Ys(0);function Lu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Hf=[];function Rg(){for(var e=0;e<Hf.length;e++)Hf[e]._workInProgressVersionPrimary=null;Hf.length=0}var tu=Kr.ReactCurrentDispatcher,Vf=Kr.ReactCurrentBatchConfig,Ei=0,Ye=null,ut=null,pt=null,$u=!1,Ka=!1,xl=0,NP=0;function bt(){throw Error(K(321))}function Ig(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Yn(e[n],t[n]))return!1;return!0}function Ag(e,t,n,r,s,i){if(Ei=i,Ye=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,tu.current=e===null||e.memoizedState===null?IP:AP,e=n(r,s),Ka){i=0;do{if(Ka=!1,xl=0,25<=i)throw Error(K(301));i+=1,pt=ut=null,t.updateQueue=null,tu.current=OP,e=n(r,s)}while(Ka)}if(tu.current=zu,t=ut!==null&&ut.next!==null,Ei=0,pt=ut=Ye=null,$u=!1,t)throw Error(K(300));return e}function Og(){var e=xl!==0;return xl=0,e}function or(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return pt===null?Ye.memoizedState=pt=e:pt=pt.next=e,pt}function Cn(){if(ut===null){var e=Ye.alternate;e=e!==null?e.memoizedState:null}else e=ut.next;var t=pt===null?Ye.memoizedState:pt.next;if(t!==null)pt=t,ut=e;else{if(e===null)throw Error(K(310));ut=e,e={memoizedState:ut.memoizedState,baseState:ut.baseState,baseQueue:ut.baseQueue,queue:ut.queue,next:null},pt===null?Ye.memoizedState=pt=e:pt=pt.next=e}return pt}function wl(e,t){return typeof t=="function"?t(e):t}function Wf(e){var t=Cn(),n=t.queue;if(n===null)throw Error(K(311));n.lastRenderedReducer=e;var r=ut,s=r.baseQueue,i=n.pending;if(i!==null){if(s!==null){var o=s.next;s.next=i.next,i.next=o}r.baseQueue=s=i,n.pending=null}if(s!==null){i=s.next,r=r.baseState;var a=o=null,c=null,u=i;do{var d=u.lane;if((Ei&d)===d)c!==null&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};c===null?(a=c=f,o=r):c=c.next=f,Ye.lanes|=d,ji|=d}u=u.next}while(u!==null&&u!==i);c===null?o=r:c.next=a,Yn(r,t.memoizedState)||(Vt=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=c,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do i=s.lane,Ye.lanes|=i,ji|=i,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function qf(e){var t=Cn(),n=t.queue;if(n===null)throw Error(K(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,i=t.memoizedState;if(s!==null){n.pending=null;var o=s=s.next;do i=e(i,o.action),o=o.next;while(o!==s);Yn(i,t.memoizedState)||(Vt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function J1(){}function e_(e,t){var n=Ye,r=Cn(),s=t(),i=!Yn(r.memoizedState,s);if(i&&(r.memoizedState=s,Vt=!0),r=r.queue,Mg(r_.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||pt!==null&&pt.memoizedState.tag&1){if(n.flags|=2048,bl(9,n_.bind(null,n,r,s,t),void 0,null),mt===null)throw Error(K(349));Ei&30||t_(n,t,s)}return s}function t_(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ye.updateQueue,t===null?(t={lastEffect:null,stores:null},Ye.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function n_(e,t,n,r){t.value=n,t.getSnapshot=r,s_(t)&&i_(e)}function r_(e,t,n){return n(function(){s_(t)&&i_(e)})}function s_(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Yn(e,n)}catch{return!0}}function i_(e){var t=Br(e,1);t!==null&&Gn(t,e,1,-1)}function mx(e){var t=or();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wl,lastRenderedState:e},t.queue=e,e=e.dispatch=RP.bind(null,Ye,e),[t.memoizedState,e]}function bl(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Ye.updateQueue,t===null?(t={lastEffect:null,stores:null},Ye.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function o_(){return Cn().memoizedState}function nu(e,t,n,r){var s=or();Ye.flags|=e,s.memoizedState=bl(1|t,n,void 0,r===void 0?null:r)}function _d(e,t,n,r){var s=Cn();r=r===void 0?null:r;var i=void 0;if(ut!==null){var o=ut.memoizedState;if(i=o.destroy,r!==null&&Ig(r,o.deps)){s.memoizedState=bl(t,n,i,r);return}}Ye.flags|=e,s.memoizedState=bl(1|t,n,i,r)}function gx(e,t){return nu(8390656,8,e,t)}function Mg(e,t){return _d(2048,8,e,t)}function a_(e,t){return _d(4,2,e,t)}function l_(e,t){return _d(4,4,e,t)}function c_(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function u_(e,t,n){return n=n!=null?n.concat([e]):null,_d(4,4,c_.bind(null,t,e),n)}function Dg(){}function d_(e,t){var n=Cn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ig(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function f_(e,t){var n=Cn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ig(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function h_(e,t,n){return Ei&21?(Yn(n,t)||(n=v1(),Ye.lanes|=n,ji|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Vt=!0),e.memoizedState=n)}function TP(e,t){var n=De;De=n!==0&&4>n?n:4,e(!0);var r=Vf.transition;Vf.transition={};try{e(!1),t()}finally{De=n,Vf.transition=r}}function p_(){return Cn().memoizedState}function PP(e,t,n){var r=Os(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},m_(e))g_(t,n);else if(n=Q1(e,t,n,r),n!==null){var s=Mt();Gn(n,e,r,s),y_(n,t,r)}}function RP(e,t,n){var r=Os(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(m_(e))g_(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,a=i(o,n);if(s.hasEagerState=!0,s.eagerState=a,Yn(a,o)){var c=t.interleaved;c===null?(s.next=s,Cg(t)):(s.next=c.next,c.next=s),t.interleaved=s;return}}catch{}finally{}n=Q1(e,t,s,r),n!==null&&(s=Mt(),Gn(n,e,r,s),y_(n,t,r))}}function m_(e){var t=e.alternate;return e===Ye||t!==null&&t===Ye}function g_(e,t){Ka=$u=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function y_(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,hg(e,n)}}var zu={readContext:jn,useCallback:bt,useContext:bt,useEffect:bt,useImperativeHandle:bt,useInsertionEffect:bt,useLayoutEffect:bt,useMemo:bt,useReducer:bt,useRef:bt,useState:bt,useDebugValue:bt,useDeferredValue:bt,useTransition:bt,useMutableSource:bt,useSyncExternalStore:bt,useId:bt,unstable_isNewReconciler:!1},IP={readContext:jn,useCallback:function(e,t){return or().memoizedState=[e,t===void 0?null:t],e},useContext:jn,useEffect:gx,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,nu(4194308,4,c_.bind(null,t,e),n)},useLayoutEffect:function(e,t){return nu(4194308,4,e,t)},useInsertionEffect:function(e,t){return nu(4,2,e,t)},useMemo:function(e,t){var n=or();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=or();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=PP.bind(null,Ye,e),[r.memoizedState,e]},useRef:function(e){var t=or();return e={current:e},t.memoizedState=e},useState:mx,useDebugValue:Dg,useDeferredValue:function(e){return or().memoizedState=e},useTransition:function(){var e=mx(!1),t=e[0];return e=TP.bind(null,e[1]),or().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ye,s=or();if(Ke){if(n===void 0)throw Error(K(407));n=n()}else{if(n=t(),mt===null)throw Error(K(349));Ei&30||t_(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,gx(r_.bind(null,r,i,e),[e]),r.flags|=2048,bl(9,n_.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=or(),t=mt.identifierPrefix;if(Ke){var n=$r,r=Lr;n=(r&~(1<<32-Kn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=xl++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=NP++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},AP={readContext:jn,useCallback:d_,useContext:jn,useEffect:Mg,useImperativeHandle:u_,useInsertionEffect:a_,useLayoutEffect:l_,useMemo:f_,useReducer:Wf,useRef:o_,useState:function(){return Wf(wl)},useDebugValue:Dg,useDeferredValue:function(e){var t=Cn();return h_(t,ut.memoizedState,e)},useTransition:function(){var e=Wf(wl)[0],t=Cn().memoizedState;return[e,t]},useMutableSource:J1,useSyncExternalStore:e_,useId:p_,unstable_isNewReconciler:!1},OP={readContext:jn,useCallback:d_,useContext:jn,useEffect:Mg,useImperativeHandle:u_,useInsertionEffect:a_,useLayoutEffect:l_,useMemo:f_,useReducer:qf,useRef:o_,useState:function(){return qf(wl)},useDebugValue:Dg,useDeferredValue:function(e){var t=Cn();return ut===null?t.memoizedState=e:h_(t,ut.memoizedState,e)},useTransition:function(){var e=qf(wl)[0],t=Cn().memoizedState;return[e,t]},useMutableSource:J1,useSyncExternalStore:e_,useId:p_,unstable_isNewReconciler:!1};function zn(e,t){if(e&&e.defaultProps){t=Qe({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Cp(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Qe({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var kd={isMounted:function(e){return(e=e._reactInternals)?Di(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Mt(),s=Os(e),i=zr(r,s);i.payload=t,n!=null&&(i.callback=n),t=Is(e,i,s),t!==null&&(Gn(t,e,s,r),eu(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Mt(),s=Os(e),i=zr(r,s);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Is(e,i,s),t!==null&&(Gn(t,e,s,r),eu(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Mt(),r=Os(e),s=zr(n,r);s.tag=2,t!=null&&(s.callback=t),t=Is(e,s,r),t!==null&&(Gn(t,e,r,n),eu(t,e,r))}};function yx(e,t,n,r,s,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,o):t.prototype&&t.prototype.isPureReactComponent?!hl(n,r)||!hl(s,i):!0}function v_(e,t,n){var r=!1,s=Bs,i=t.contextType;return typeof i=="object"&&i!==null?i=jn(i):(s=qt(t)?ki:Nt.current,r=t.contextTypes,i=(r=r!=null)?zo(e,s):Bs),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=kd,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=i),t}function vx(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&kd.enqueueReplaceState(t,t.state,null)}function Np(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},Ng(e);var i=t.contextType;typeof i=="object"&&i!==null?s.context=jn(i):(i=qt(t)?ki:Nt.current,s.context=zo(e,i)),s.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Cp(e,t,i,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&kd.enqueueReplaceState(s,s.state,null),Du(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function Ho(e,t){try{var n="",r=t;do n+=l2(r),r=r.return;while(r);var s=n}catch(i){s=` 40Error generating stack: `+i.message+` 41`+i.stack}return{value:e,source:t,stack:s,digest:null}}function Kf(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Tp(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var MP=typeof WeakMap=="function"?WeakMap:Map;function x_(e,t,n){n=zr(-1,n),n.tag=3,n.payload={element:null};var r=t.value;
vendor: 6,145 bytes, line 41
41return n.callback=function(){Uu||(Uu=!0,zp=r),Tp(e,t)},n}function w_(e,t,n){n=zr(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){Tp(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Tp(e,t),typeof r!="function"&&(As===null?As=new Set([this]):As.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function xx(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new MP;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=YP.bind(null,e,t,n),t.then(e,e))}function wx(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function bx(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=zr(-1,1),t.tag=2,Is(n,t,1))),n.lanes|=1),e)}var DP=Kr.ReactCurrentOwner,Vt=!1;function At(e,t,n,r){t.child=e===null?Y1(t,null,n,r):Uo(t,e.child,n,r)}function _x(e,t,n,r,s){n=n.render;var i=t.ref;return bo(t,s),r=Ag(e,t,n,r,i,s),n=Og(),e!==null&&!Vt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Hr(e,t,s)):(Ke&&n&&bg(t),t.flags|=1,At(e,t,r,s),t.child)}function kx(e,t,n,r,s){if(e===null){var i=n.type;return typeof i=="function"&&!Vg(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,b_(e,t,i,r,s)):(e=ou(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&s)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:hl,n(o,r)&&e.ref===t.ref)return Hr(e,t,s)}return t.flags|=1,e=Ms(i,r),e.ref=t.ref,e.return=t,t.child=e}function b_(e,t,n,r,s){if(e!==null){var i=e.memoizedProps;if(hl(i,r)&&e.ref===t.ref)if(Vt=!1,t.pendingProps=r=i,(e.lanes&s)!==0)e.flags&131072&&(Vt=!0);else return t.lanes=e.lanes,Hr(e,t,s)}return Pp(e,t,n,r,s)}function __(e,t,n){var r=t.pendingProps,s=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Fe(go,nn),nn|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Fe(go,nn),nn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Fe(go,nn),nn|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Fe(go,nn),nn|=r;return At(e,t,s,n),t.child}function k_(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Pp(e,t,n,r,s){var i=qt(n)?ki:Nt.current;return i=zo(t,i),bo(t,s),n=Ag(e,t,n,r,i,s),r=Og(),e!==null&&!Vt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Hr(e,t,s)):(Ke&&r&&bg(t),t.flags|=1,At(e,t,n,s),t.child)}function Sx(e,t,n,r,s){if(qt(n)){var i=!0;Ru(t)}else i=!1;if(bo(t,s),t.stateNode===null)ru(e,t),v_(t,n,r),Np(t,n,r,s),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var c=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=jn(u):(u=qt(n)?ki:Nt.current,u=zo(t,u));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||c!==u)&&vx(t,o,r,u),ds=!1;var m=t.memoizedState;o.state=m,Du(t,r,o,s),c=t.memoizedState,a!==r||m!==c||Wt.current||ds?(typeof d=="function"&&(Cp(t,n,d,r),c=t.memoizedState),(a=ds||yx(t,n,a,r,m,c,u))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=u,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Z1(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:zn(t.type,a),o.props=u,f=t.pendingProps,m=o.context,c=n.contextType,typeof c=="object"&&c!==null?c=jn(c):(c=qt(n)?ki:Nt.current,c=zo(t,c));var h=n.getDerivedStateFromProps;(d=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==f||m!==c)&&vx(t,o,r,c),ds=!1,m=t.memoizedState,o.state=m,Du(t,r,o,s);var y=t.memoizedState;a!==f||m!==y||Wt.current||ds?(typeof h=="function"&&(Cp(t,n,h,r),y=t.memoizedState),(u=ds||yx(t,n,u,r,m,y,c)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,y,c),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,y,c)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),o.props=r,o.state=y,o.context=c,r=u):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return Rp(e,t,n,r,i,s)}function Rp(e,t,n,r,s,i){k_(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return s&&cx(t,n,!1),Hr(e,t,i);r=t.stateNode,DP.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Uo(t,e.child,null,i),t.child=Uo(t,null,a,i)):At(e,t,a,i),t.memoizedState=r.state,s&&cx(t,n,!0),t.child}function S_(e){var t=e.stateNode;t.pendingContext?lx(e,t.pendingContext,t.pendingContext!==t.context):t.context&&lx(e,t.context,!1),Tg(e,t.containerInfo)}
vendor: 8,684 bytes, line 41
41function Ex(e,t,n,r,s){return Fo(),kg(s),t.flags|=256,At(e,t,n,r),t.child}var Ip={dehydrated:null,treeContext:null,retryLane:0};function Ap(e){return{baseLanes:e,cachePool:null,transitions:null}}function E_(e,t,n){var r=t.pendingProps,s=Ge.current,i=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(s&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),Fe(Ge,s&1),e===null)return Ep(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,i?(r=t.mode,i=t.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=jd(o,r,0,null),e=_i(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Ap(n),t.memoizedState=Ip,e):Lg(t,o));if(s=e.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return LP(e,t,o,r,a,s,n);if(i){i=r.fallback,o=t.mode,s=e.child,a=s.sibling;var c={mode:"hidden",children:r.children};return!(o&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=Ms(s,c),r.subtreeFlags=s.subtreeFlags&14680064),a!==null?i=Ms(a,i):(i=_i(i,o,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,o=e.child.memoizedState,o=o===null?Ap(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=Ip,r}return i=e.child,e=i.sibling,r=Ms(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Lg(e,t){return t=jd({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Nc(e,t,n,r){return r!==null&&kg(r),Uo(t,e.child,null,n),e=Lg(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function LP(e,t,n,r,s,i,o){if(n)return t.flags&256?(t.flags&=-257,r=Kf(Error(K(422))),Nc(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,s=t.mode,r=jd({mode:"visible",children:r.children},s,0,null),i=_i(i,s,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Uo(t,e.child,null,o),t.child.memoizedState=Ap(o),t.memoizedState=Ip,i);if(!(t.mode&1))return Nc(e,t,o,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(K(419)),r=Kf(i,r,void 0),Nc(e,t,o,r)}if(a=(o&e.childLanes)!==0,Vt||a){if(r=mt,r!==null){switch(o&-o){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|o)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,Br(e,s),Gn(r,e,s,-1))}return Hg(),r=Kf(Error(K(421))),Nc(e,t,o,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=QP.bind(null,e),s._reactRetry=t,null):(e=i.treeContext,sn=Rs(s.nextSibling),an=t,Ke=!0,Wn=null,e!==null&&(xn[wn++]=Lr,xn[wn++]=$r,xn[wn++]=Si,Lr=e.id,$r=e.overflow,Si=t),t=Lg(t,r.children),t.flags|=4096,t)}function jx(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),jp(e.return,t,n)}function Gf(e,t,n,r,s){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=s)}function j_(e,t,n){var r=t.pendingProps,s=r.revealOrder,i=r.tail;if(At(e,t,r.children,n),r=Ge.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&jx(e,n,t);else if(e.tag===19)jx(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Fe(Ge,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&Lu(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Gf(t,!1,s,n,i);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Lu(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Gf(t,!0,n,null,i);break;case"together":Gf(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ru(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Hr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ji|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(K(153));if(t.child!==null){for(e=t.child,n=Ms(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ms(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function $P(e,t,n){switch(t.tag){case 3:S_(t),Fo();break;case 5:X1(t);break;case 1:qt(t.type)&&Ru(t);break;case 4:Tg(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;Fe(Ou,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Fe(Ge,Ge.current&1),t.flags|=128,null):n&t.child.childLanes?E_(e,t,n):(Fe(Ge,Ge.current&1),e=Hr(e,t,n),e!==null?e.sibling:null);Fe(Ge,Ge.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return j_(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Fe(Ge,Ge.current),r)break;return null;case 22:case 23:return t.lanes=0,__(e,t,n)}return Hr(e,t,n)}var C_,Op,N_,T_;C_=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Op=function(){};N_=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,fi(vr.current);var i=null;switch(n){case"input":s=np(e,s),r=np(e,r),i=[];break;case"select":s=Qe({},s,{value:void 0}),r=Qe({},r,{value:void 0}),i=[];break;case"textarea":s=ip(e,s),r=ip(e,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Tu)}ap(n,r);var o;n=null;for(u in s)if(!r.hasOwnProperty(u)&&s.hasOwnProperty(u)&&s[u]!=null)if(u==="style"){var a=s[u];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(ol.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var c=r[u];if(a=s!=null?s[u]:void 0,r.hasOwnProperty(u)&&c!==a&&(c!=null||a!=null))if(u==="style")if(a){for(o in a)!a.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&a[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(i||(i=[]),i.push(u,n)),n=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,a=a?a.__html:void 0,c!=null&&a!==c&&(i=i||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(ol.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&Ve("scroll",e),i||a===c||(i=[])):(i=i||[]).push(u,c))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};T_=function(e,t,n,r){n!==r&&(t.flags|=4)};function Sa(e,t){if(!Ke)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function _t(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function zP(e,t,n){var r=t.pendingProps;switch(_g(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _t(t),null;case 1:return qt(t.type)&&Pu(),_t(t),null;case 3:return r=t.stateNode,Bo(),We(Wt),We(Nt),Rg(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(jc(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Wn!==null&&(Bp(Wn),Wn=null))),Op(e,t),_t(t),null;case 5:Pg(t);var s=fi(vl.current);
vendor: 3,642 bytes, line 41
41if(n=t.type,e!==null&&t.stateNode!=null)N_(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(K(166));return _t(t),null}if(e=fi(vr.current),jc(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[hr]=t,r[gl]=i,e=(t.mode&1)!==0,n){case"dialog":Ve("cancel",r),Ve("close",r);break;case"iframe":case"object":case"embed":Ve("load",r);break;case"video":case"audio":for(s=0;s<$a.length;s++)Ve($a[s],r);break;case"source":Ve("error",r);break;case"img":case"image":case"link":Ve("error",r),Ve("load",r);break;case"details":Ve("toggle",r);break;case"input":Mv(r,i),Ve("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Ve("invalid",r);break;case"textarea":Lv(r,i),Ve("invalid",r)}ap(n,i),s=null;for(var o in i)if(i.hasOwnProperty(o)){var a=i[o];o==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&Ec(r.textContent,a,e),s=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&Ec(r.textContent,a,e),s=["children",""+a]):ol.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&Ve("scroll",r)}switch(n){case"input":yc(r),Dv(r,i,!0);break;case"textarea":yc(r),$v(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Tu)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=r1(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[hr]=t,e[gl]=r,C_(e,t,!1,!1),t.stateNode=e;e:{switch(o=lp(n,r),n){case"dialog":Ve("cancel",e),Ve("close",e),s=r;break;case"iframe":case"object":case"embed":Ve("load",e),s=r;break;case"video":case"audio":for(s=0;s<$a.length;s++)Ve($a[s],e);s=r;break;case"source":Ve("error",e),s=r;break;case"img":case"image":case"link":Ve("error",e),Ve("load",e),s=r;break;case"details":Ve("toggle",e),s=r;break;case"input":Mv(e,r),s=np(e,r),Ve("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=Qe({},r,{value:void 0}),Ve("invalid",e);break;case"textarea":Lv(e,r),s=ip(e,r),Ve("invalid",e);break;default:s=r}ap(n,s),a=s;for(i in a)if(a.hasOwnProperty(i)){var c=a[i];i==="style"?o1(e,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&s1(e,c)):i==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&al(e,c):typeof c=="number"&&al(e,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(ol.hasOwnProperty(i)?c!=null&&i==="onScroll"&&Ve("scroll",e):c!=null&&ag(e,i,c,o))}switch(n){case"input":yc(e),Dv(e,r,!1);break;case"textarea":yc(e),$v(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Us(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?yo(e,!!r.multiple,i,!1):r.defaultValue!=null&&yo(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=Tu)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return _t(t),null;case 6:if(e&&t.stateNode!=null)T_(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(K(166));if(n=fi(vl.current),fi(vr.current),jc(t)){if(r=t.stateNode,n=t.memoizedProps,r[hr]=t,(i=r.nodeValue!==n)&&(e=an,e!==null))switch(e.tag){case 3:Ec(r.nodeValue,n,(e.mode&1)!==0);break;
vendor: 29,678 bytes, line 41
41case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ec(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[hr]=t,t.stateNode=r}return _t(t),null;case 13:if(We(Ge),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ke&&sn!==null&&t.mode&1&&!(t.flags&128))K1(),Fo(),t.flags|=98560,i=!1;else if(i=jc(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(K(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(K(317));i[hr]=t}else Fo(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;_t(t),i=!1}else Wn!==null&&(Bp(Wn),Wn=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Ge.current&1?dt===0&&(dt=3):Hg())),t.updateQueue!==null&&(t.flags|=4),_t(t),null);case 4:return Bo(),Op(e,t),e===null&&pl(t.stateNode.containerInfo),_t(t),null;case 10:return jg(t.type._context),_t(t),null;case 17:return qt(t.type)&&Pu(),_t(t),null;case 19:if(We(Ge),i=t.memoizedState,i===null)return _t(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)Sa(i,!1);else{if(dt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Lu(e),o!==null){for(t.flags|=128,Sa(i,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Fe(Ge,Ge.current&1|2),t.child}e=e.sibling}i.tail!==null&&nt()>Vo&&(t.flags|=128,r=!0,Sa(i,!1),t.lanes=4194304)}else{if(!r)if(e=Lu(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Sa(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!Ke)return _t(t),null}else 2*nt()-i.renderingStartTime>Vo&&n!==1073741824&&(t.flags|=128,r=!0,Sa(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=nt(),t.sibling=null,n=Ge.current,Fe(Ge,r?n&1|2:n&1),t):(_t(t),null);case 22:case 23:return Bg(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?nn&1073741824&&(_t(t),t.subtreeFlags&6&&(t.flags|=8192)):_t(t),null;case 24:return null;case 25:return null}throw Error(K(156,t.tag))}function FP(e,t){switch(_g(t),t.tag){case 1:return qt(t.type)&&Pu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Bo(),We(Wt),We(Nt),Rg(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Pg(t),null;case 13:if(We(Ge),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(K(340));Fo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return We(Ge),null;case 4:return Bo(),null;case 10:return jg(t.type._context),null;case 22:case 23:return Bg(),null;case 24:return null;default:return null}}var Tc=!1,Et=!1,UP=typeof WeakSet=="function"?WeakSet:Set,oe=null;function mo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Je(e,t,r)}else n.current=null}function Mp(e,t,n){try{n()}catch(r){Je(e,t,r)}}var Cx=!1;function BP(e,t){if(vp=ju,e=O1(),wg(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var s=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,a=-1,c=-1,u=0,d=0,f=e,m=null;t:for(;;){for(var h;f!==n||s!==0&&f.nodeType!==3||(a=o+s),f!==i||r!==0&&f.nodeType!==3||(c=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(h=f.firstChild)!==null;)m=f,f=h;for(;;){if(f===e)break t;if(m===n&&++u===s&&(a=o),m===i&&++d===r&&(c=o),(h=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=h}n=a===-1||c===-1?null:{start:a,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(xp={focusedElem:e,selectionRange:n},ju=!1,oe=t;oe!==null;)if(t=oe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,oe=e;else for(;oe!==null;){t=oe;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var g=y.memoizedProps,w=y.memoizedState,v=t.stateNode,x=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:zn(t.type,g),w);v.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(K(163))}}catch(_){Je(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,oe=e;break}oe=t.return}return y=Cx,Cx=!1,y}function Ga(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var i=s.destroy;s.destroy=void 0,i!==void 0&&Mp(t,n,i)}s=s.next}while(s!==r)}}function Sd(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Dp(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function P_(e){var t=e.alternate;t!==null&&(e.alternate=null,P_(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[hr],delete t[gl],delete t[_p],delete t[SP],delete t[EP])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function R_(e){return e.tag===5||e.tag===3||e.tag===4}function Nx(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||R_(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Lp(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Tu));else if(r!==4&&(e=e.child,e!==null))for(Lp(e,t,n),e=e.sibling;e!==null;)Lp(e,t,n),e=e.sibling}function $p(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for($p(e,t,n),e=e.sibling;e!==null;)$p(e,t,n),e=e.sibling}var gt=null,Hn=!1;function ns(e,t,n){for(n=n.child;n!==null;)I_(e,t,n),n=n.sibling}function I_(e,t,n){if(yr&&typeof yr.onCommitFiberUnmount=="function")try{yr.onCommitFiberUnmount(gd,n)}catch{}switch(n.tag){case 5:Et||mo(n,t);case 6:var r=gt,s=Hn;gt=null,ns(e,t,n),gt=r,Hn=s,gt!==null&&(Hn?(e=gt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):gt.removeChild(n.stateNode));break;case 18:gt!==null&&(Hn?(e=gt,n=n.stateNode,e.nodeType===8?Uf(e.parentNode,n):e.nodeType===1&&Uf(e,n),dl(e)):Uf(gt,n.stateNode));break;case 4:r=gt,s=Hn,gt=n.stateNode.containerInfo,Hn=!0,ns(e,t,n),gt=r,Hn=s;break;case 0:case 11:case 14:case 15:if(!Et&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var i=s,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Mp(n,t,o),s=s.next}while(s!==r)}ns(e,t,n);break;case 1:if(!Et&&(mo(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Je(n,t,a)}ns(e,t,n);break;case 21:ns(e,t,n);break;case 22:n.mode&1?(Et=(r=Et)||n.memoizedState!==null,ns(e,t,n),Et=r):ns(e,t,n);break;default:ns(e,t,n)}}function Tx(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new UP),t.forEach(function(r){var s=ZP.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function Mn(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var i=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:gt=a.stateNode,Hn=!1;break e;case 3:gt=a.stateNode.containerInfo,Hn=!0;break e;case 4:gt=a.stateNode.containerInfo,Hn=!0;break e}a=a.return}if(gt===null)throw Error(K(160));I_(i,o,s),gt=null,Hn=!1;var c=s.alternate;c!==null&&(c.return=null),s.return=null}catch(u){Je(s,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)A_(t,e),t=t.sibling}function A_(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Mn(t,e),rr(e),r&4){try{Ga(3,e,e.return),Sd(3,e)}catch(g){Je(e,e.return,g)}try{Ga(5,e,e.return)}catch(g){Je(e,e.return,g)}}break;case 1:Mn(t,e),rr(e),r&512&&n!==null&&mo(n,n.return);break;case 5:if(Mn(t,e),rr(e),r&512&&n!==null&&mo(n,n.return),e.flags&32){var s=e.stateNode;try{al(s,"")}catch(g){Je(e,e.return,g)}}if(r&4&&(s=e.stateNode,s!=null)){var i=e.memoizedProps,o=n!==null?n.memoizedProps:i,a=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&t1(s,i),lp(a,o);var u=lp(a,i);for(o=0;o<c.length;o+=2){var d=c[o],f=c[o+1];d==="style"?o1(s,f):d==="dangerouslySetInnerHTML"?s1(s,f):d==="children"?al(s,f):ag(s,d,f,u)}switch(a){case"input":rp(s,i);break;case"textarea":n1(s,i);break;case"select":var m=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var h=i.value;h!=null?yo(s,!!i.multiple,h,!1):m!==!!i.multiple&&(i.defaultValue!=null?yo(s,!!i.multiple,i.defaultValue,!0):yo(s,!!i.multiple,i.multiple?[]:"",!1))}s[gl]=i}catch(g){Je(e,e.return,g)}}break;case 6:if(Mn(t,e),rr(e),r&4){if(e.stateNode===null)throw Error(K(162));s=e.stateNode,i=e.memoizedProps;try{s.nodeValue=i}catch(g){Je(e,e.return,g)}}break;case 3:if(Mn(t,e),rr(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{dl(t.containerInfo)}catch(g){Je(e,e.return,g)}break;case 4:Mn(t,e),rr(e);break;case 13:Mn(t,e),rr(e),s=e.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(Fg=nt())),r&4&&Tx(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Et=(u=Et)||d,Mn(t,e),Et=u):Mn(t,e),rr(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(oe=e,d=e.child;d!==null;){for(f=oe=d;oe!==null;){switch(m=oe,h=m.child,m.tag){case 0:case 11:case 14:case 15:Ga(4,m,m.return);break;case 1:mo(m,m.return);var y=m.stateNode;if(typeof y.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(g){Je(r,n,g)}}break;case 5:mo(m,m.return);break;case 22:if(m.memoizedState!==null){Rx(f);continue}}h!==null?(h.return=m,oe=h):Rx(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{s=f.stateNode,u?(i=s.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=f.stateNode,c=f.memoizedProps.style,o=c!=null&&c.hasOwnProperty("display")?c.display:null,a.style.display=i1("display",o))}catch(g){Je(e,e.return,g)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(g){Je(e,e.return,g)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Mn(t,e),rr(e),r&4&&Tx(e);break;case 21:break;default:Mn(t,e),rr(e)}}function rr(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(R_(n)){var r=n;break e}n=n.return}throw Error(K(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(al(s,""),r.flags&=-33);var i=Nx(e);$p(e,i,s);break;case 3:case 4:var o=r.stateNode.containerInfo,a=Nx(e);Lp(e,a,o);break;default:throw Error(K(161))}}catch(c){Je(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function HP(e,t,n){oe=e,O_(e)}function O_(e,t,n){for(var r=(e.mode&1)!==0;oe!==null;){var s=oe,i=s.child;if(s.tag===22&&r){var o=s.memoizedState!==null||Tc;if(!o){var a=s.alternate,c=a!==null&&a.memoizedState!==null||Et;a=Tc;var u=Et;if(Tc=o,(Et=c)&&!u)for(oe=s;oe!==null;)o=oe,c=o.child,o.tag===22&&o.memoizedState!==null?Ix(s):c!==null?(c.return=o,oe=c):Ix(s);for(;i!==null;)oe=i,O_(i),i=i.sibling;oe=s,Tc=a,Et=u}Px(e)}else s.subtreeFlags&8772&&i!==null?(i.return=s,oe=i):Px(e)}}function Px(e){for(;oe!==null;){var t=oe;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Et||Sd(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Et)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:zn(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&px(t,i,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}px(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&dl(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(K(163))}Et||t.flags&512&&Dp(t)}catch(m){Je(t,t.return,m)}}if(t===e){oe=null;break}if(n=t.sibling,n!==null){n.return=t.return,oe=n;break}oe=t.return}}function Rx(e){for(;oe!==null;){var t=oe;if(t===e){oe=null;break}var n=t.sibling;if(n!==null){n.return=t.return,oe=n;break}oe=t.return}}function Ix(e){for(;oe!==null;){var t=oe;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Sd(4,t)}catch(c){Je(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(c){Je(t,s,c)}}var i=t.return;try{Dp(t)}catch(c){Je(t,i,c)}break;case 5:var o=t.return;try{Dp(t)}catch(c){Je(t,o,c)}}}catch(c){Je(t,t.return,c)}if(t===e){oe=null;break}var a=t.sibling;if(a!==null){a.return=t.return,oe=a;break}oe=t.return}}var VP=Math.ceil,Fu=Kr.ReactCurrentDispatcher,$g=Kr.ReactCurrentOwner,kn=Kr.ReactCurrentBatchConfig,Te=0,mt=null,ot=null,yt=0,nn=0,go=Ys(0),dt=0,_l=null,ji=0,Ed=0,zg=0,Ya=null,Bt=null,Fg=0,Vo=1/0,Ir=null,Uu=!1,zp=null,As=null,Pc=!1,Es=null,Bu=0,Qa=0,Fp=null,su=-1,iu=0;function Mt(){return Te&6?nt():su!==-1?su:su=nt()}function Os(e){return e.mode&1?Te&2&&yt!==0?yt&-yt:CP.transition!==null?(iu===0&&(iu=v1()),iu):(e=De,e!==0||(e=window.event,e=e===void 0?16:E1(e.type)),e):1}function Gn(e,t,n,r){if(50<Qa)throw Qa=0,Fp=null,Error(K(185));Wl(e,n,r),(!(Te&2)||e!==mt)&&(e===mt&&(!(Te&2)&&(Ed|=n),dt===4&&ps(e,yt)),Kt(e,r),n===1&&Te===0&&!(t.mode&1)&&(Vo=nt()+500,bd&&Qs()))}function Kt(e,t){var n=e.callbackNode;C2(e,t);var r=Eu(e,e===mt?yt:0);if(r===0)n!==null&&Uv(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Uv(n),t===1)e.tag===0?jP(Ax.bind(null,e)):V1(Ax.bind(null,e)),_P(function(){!(Te&6)&&Qs()}),n=null;else{switch(x1(r)){case 1:n=fg;break;case 4:n=g1;break;case 16:n=Su;break;case 536870912:n=y1;break;default:n=Su}n=B_(n,M_.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function M_(e,t){if(su=-1,iu=0,Te&6)throw Error(K(327));var n=e.callbackNode;if(_o()&&e.callbackNode!==n)return null;var r=Eu(e,e===mt?yt:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Hu(e,r);else{t=r;var s=Te;Te|=2;var i=L_();(mt!==e||yt!==t)&&(Ir=null,Vo=nt()+500,bi(e,t));do try{KP();break}catch(a){D_(e,a)}while(!0);Eg(),Fu.current=i,Te=s,ot!==null?t=0:(mt=null,yt=0,t=dt)}if(t!==0){if(t===2&&(s=hp(e),s!==0&&(r=s,t=Up(e,s))),t===1)throw n=_l,bi(e,0),ps(e,r),Kt(e,nt()),n;if(t===6)ps(e,r);else{if(s=e.current.alternate,!(r&30)&&!WP(s)&&(t=Hu(e,r),t===2&&(i=hp(e),i!==0&&(r=i,t=Up(e,i))),t===1))throw n=_l,bi(e,0),ps(e,r),Kt(e,nt()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(K(345));case 2:ii(e,Bt,Ir);break;case 3:if(ps(e,r),(r&130023424)===r&&(t=Fg+500-nt(),10<t)){if(Eu(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){Mt(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=bp(ii.bind(null,e,Bt,Ir),t);break}ii(e,Bt,Ir);break;case 4:if(ps(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var o=31-Kn(r);i=1<<o,o=t[o],o>s&&(s=o),r&=~i}if(r=s,r=nt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*VP(r/1960))-r,10<r){e.timeoutHandle=bp(ii.bind(null,e,Bt,Ir),r);break}ii(e,Bt,Ir);break;case 5:ii(e,Bt,Ir);break;default:throw Error(K(329))}}}return Kt(e,nt()),e.callbackNode===n?M_.bind(null,e):null}function Up(e,t){var n=Ya;return e.current.memoizedState.isDehydrated&&(bi(e,t).flags|=256),e=Hu(e,t),e!==2&&(t=Bt,Bt=n,t!==null&&Bp(t)),e}function Bp(e){Bt===null?Bt=e:Bt.push.apply(Bt,e)}function WP(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var s=n[r],i=s.getSnapshot;s=s.value;try{if(!Yn(i(),s))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ps(e,t){for(t&=~zg,t&=~Ed,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Kn(t),r=1<<n;e[n]=-1,t&=~r}}function Ax(e){if(Te&6)throw Error(K(327));_o();var t=Eu(e,0);if(!(t&1))return Kt(e,nt()),null;var n=Hu(e,t);if(e.tag!==0&&n===2){var r=hp(e);r!==0&&(t=r,n=Up(e,r))}if(n===1)throw n=_l,bi(e,0),ps(e,t),Kt(e,nt()),n;if(n===6)throw Error(K(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ii(e,Bt,Ir),Kt(e,nt()),null}function Ug(e,t){var n=Te;Te|=1;try{return e(t)}finally{Te=n,Te===0&&(Vo=nt()+500,bd&&Qs())}}function Ci(e){Es!==null&&Es.tag===0&&!(Te&6)&&_o();var t=Te;Te|=1;var n=kn.transition,r=De;try{if(kn.transition=null,De=1,e)return e()}finally{De=r,kn.transition=n,Te=t,!(Te&6)&&Qs()}}function Bg(){nn=go.current,We(go)}function bi(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,bP(n)),ot!==null)for(n=ot.return;n!==null;){var r=n;switch(_g(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Pu();break;case 3:Bo(),We(Wt),We(Nt),Rg();break;case 5:Pg(r);break;case 4:Bo();break;case 13:We(Ge);break;case 19:We(Ge);break;case 10:jg(r.type._context);break;case 22:case 23:Bg()}n=n.return}if(mt=e,ot=e=Ms(e.current,null),yt=nn=t,dt=0,_l=null,zg=Ed=ji=0,Bt=Ya=null,di!==null){for(t=0;t<di.length;t++)if(n=di[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,i=n.pending;if(i!==null){var o=i.next;i.next=s,r.next=o}n.pending=r}di=null}return e}function D_(e,t){do{var n=ot;try{if(Eg(),tu.current=zu,$u){for(var r=Ye.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}$u=!1}if(Ei=0,pt=ut=Ye=null,Ka=!1,xl=0,$g.current=null,n===null||n.return===null){dt=1,_l=t,ot=null;break}e:{var i=e,o=n.return,a=n,c=t;if(t=yt,a.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c,d=a,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var m=d.alternate;m?(d.updateQueue=m.updateQueue,d.memoizedState=m.memoizedState,d.lanes=m.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=wx(o);if(h!==null){h.flags&=-257,bx(h,o,a,i,t),h.mode&1&&xx(i,u,t),t=h,c=u;var y=t.updateQueue;if(y===null){var g=new Set;g.add(c),t.updateQueue=g}else y.add(c);break e}else{if(!(t&1)){xx(i,u,t),Hg();break e}c=Error(K(426))}}else if(Ke&&a.mode&1){var w=wx(o);if(w!==null){!(w.flags&65536)&&(w.flags|=256),bx(w,o,a,i,t),kg(Ho(c,a));break e}}i=c=Ho(c,a),dt!==4&&(dt=2),Ya===null?Ya=[i]:Ya.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var v=x_(i,c,t);hx(i,v);break e;case 1:a=c;var x=i.type,b=i.stateNode;if(!(i.flags&128)&&(typeof x.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(As===null||!As.has(b)))){i.flags|=65536,t&=-t,i.lanes|=t;var _=w_(i,a,t);hx(i,_);break e}}i=i.return}while(i!==null)}z_(n)}catch(j){t=j,ot===n&&n!==null&&(ot=n=n.return);continue}break}while(!0)}function L_(){var e=Fu.current;return Fu.current=zu,e===null?zu:e}function Hg(){(dt===0||dt===3||dt===2)&&(dt=4),mt===null||!(ji&268435455)&&!(Ed&268435455)||ps(mt,yt)}function Hu(e,t){var n=Te;Te|=2;var r=L_();(mt!==e||yt!==t)&&(Ir=null,bi(e,t));do try{qP();break}catch(s){D_(e,s)}while(!0);if(Eg(),Te=n,Fu.current=r,ot!==null)throw Error(K(261));return mt=null,yt=0,dt}function qP(){for(;ot!==null;)$_(ot)}function KP(){for(;ot!==null&&!v2();)$_(ot)}function $_(e){var t=U_(e.alternate,e,nn);e.memoizedProps=e.pendingProps,t===null?z_(e):ot=t,$g.current=null}function z_(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=FP(n,t),n!==null){n.flags&=32767,ot=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{dt=6,ot=null;return}}else if(n=zP(n,t,nn),n!==null){ot=n;return}if(t=t.sibling,t!==null){ot=t;return}ot=t=e}while(t!==null);dt===0&&(dt=5)}function ii(e,t,n){var r=De,s=kn.transition;try{kn.transition=null,De=1,GP(e,t,n,r)}finally{kn.transition=s,De=r}return null}function GP(e,t,n,r){do _o();while(Es!==null);if(Te&6)throw Error(K(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(K(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(N2(e,i),e===mt&&(ot=mt=null,yt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Pc||(Pc=!0,B_(Su,function(){return _o(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=kn.transition,kn.transition=null;var o=De;De=1;var a=Te;Te|=4,$g.current=null,BP(e,n),A_(n,e),pP(xp),ju=!!vp,xp=vp=null,e.current=n,HP(n),x2(),Te=a,De=o,kn.transition=i}else e.current=n;if(Pc&&(Pc=!1,Es=e,Bu=s),i=e.pendingLanes,i===0&&(As=null),_2(n.stateNode),Kt(e,nt()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(Uu)throw Uu=!1,e=zp,zp=null,e;return Bu&1&&e.tag!==0&&_o(),i=e.pendingLanes,i&1?e===Fp?Qa++:(Qa=0,Fp=e):Qa=0,Qs(),null}function _o(){if(Es!==null){var e=x1(Bu),t=kn.transition,n=De;try{if(kn.transition=null,De=16>e?16:e,Es===null)var r=!1;else{if(e=Es,Es=null,Bu=0,Te&6)throw Error(K(331));var s=Te;for(Te|=4,oe=e.current;oe!==null;){var i=oe,o=i.child;if(oe.flags&16){var a=i.deletions;if(a!==null){for(var c=0;c<a.length;c++){var u=a[c];for(oe=u;oe!==null;){var d=oe;switch(d.tag){case 0:case 11:case 15:Ga(8,d,i)}var f=d.child;if(f!==null)f.return=d,oe=f;else for(;oe!==null;){d=oe;var m=d.sibling,h=d.return;if(P_(d),d===u){oe=null;break}if(m!==null){m.return=h,oe=m;break}oe=h}}}var y=i.alternate;if(y!==null){var g=y.child;if(g!==null){y.child=null;do{var w=g.sibling;g.sibling=null,g=w}while(g!==null)}}oe=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,oe=o;else e:for(;oe!==null;){if(i=oe,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Ga(9,i,i.return)}var v=i.sibling;if(v!==null){v.return=i.return,oe=v;break e}oe=i.return}}var x=e.current;for(oe=x;oe!==null;){o=oe;var b=o.child;if(o.subtreeFlags&2064&&b!==null)b.return=o,oe=b;else e:for(o=x;oe!==null;){if(a=oe,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Sd(9,a)}}catch(j){Je(a,a.return,j)}if(a===o){oe=null;break e}var _=a.sibling;if(_!==null){_.return=a.return,oe=_;break e}oe=a.return}}if(Te=s,Qs(),yr&&typeof yr.onPostCommitFiberRoot=="function")try{yr.onPostCommitFiberRoot(gd,e)}catch{}r=!0}return r}finally{De=n,kn.transition=t}}return!1}function Ox(e,t,n){t=Ho(n,t),t=x_(e,t,1),e=Is(e,t,1),t=Mt(),e!==null&&(Wl(e,1,t),Kt(e,t))}function Je(e,t,n){if(e.tag===3)Ox(e,e,n);else for(;t!==null;){if(t.tag===3){Ox(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(As===null||!As.has(r))){e=Ho(n,e),e=w_(t,e,1),t=Is(t,e,1),e=Mt(),t!==null&&(Wl(t,1,e),Kt(t,e));break}}t=t.return}}function YP(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Mt(),e.pingedLanes|=e.suspendedLanes&n,mt===e&&(yt&n)===n&&(dt===4||dt===3&&(yt&130023424)===yt&&500>nt()-Fg?bi(e,0):zg|=n),Kt(e,t)}function F_(e,t){t===0&&(e.mode&1?(t=wc,wc<<=1,!(wc&130023424)&&(wc=4194304)):t=1);var n=Mt();e=Br(e,t),e!==null&&(Wl(e,t,n),Kt(e,n))}function QP(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),F_(e,n)}function ZP(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(K(314))}r!==null&&r.delete(t),F_(e,n)}var U_;U_=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Wt.current)Vt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Vt=!1,$P(e,t,n);Vt=!!(e.flags&131072)}else Vt=!1,Ke&&t.flags&1048576&&W1(t,Au,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ru(e,t),e=t.pendingProps;var s=zo(t,Nt.current);bo(t,n),s=Ag(null,t,r,e,s,n);var i=Og();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,qt(r)?(i=!0,Ru(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,Ng(t),s.updater=kd,t.stateNode=s,s._reactInternals=t,Np(t,r,e,n),t=Rp(null,t,r,!0,i,n)):(t.tag=0,Ke&&i&&bg(t),At(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ru(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=JP(r),e=zn(r,e),s){case 0:t=Pp(null,t,r,e,n);break e;case 1:t=Sx(null,t,r,e,n);break e;case 11:t=_x(null,t,r,e,n);break e;case 14:t=kx(null,t,r,zn(r.type,e),n);break e}throw Error(K(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:zn(r,s),Pp(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:zn(r,s),Sx(e,t,r,s,n);case 3:e:{if(S_(t),e===null)throw Error(K(387));r=t.pendingProps,i=t.memoizedState,s=i.element,Z1(e,t),Du(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){s=Ho(Error(K(423)),t),t=Ex(e,t,r,n,s);break e}else if(r!==s){s=Ho(Error(K(424)),t),t=Ex(e,t,r,n,s);break e}else for(sn=Rs(t.stateNode.containerInfo.firstChild),an=t,Ke=!0,Wn=null,n=Y1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Fo(),r===s){t=Hr(e,t,n);break e}At(e,t,r,n)}t=t.child}return t;case 5:return X1(t),e===null&&Ep(t),r=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,o=s.children,wp(r,s)?o=null:i!==null&&wp(r,i)&&(t.flags|=32),k_(e,t),At(e,t,o,n),t.child;case 6:return e===null&&Ep(t),null;case 13:return E_(e,t,n);case 4:return Tg(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Uo(t,null,r,n):At(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:zn(r,s),_x(e,t,r,s,n);case 7:return At(e,t,t.pendingProps,n),t.child;case 8:return At(e,t,t.pendingProps.children,n),t.child;case 12:return At(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,i=t.memoizedProps,o=s.value,Fe(Ou,r._currentValue),r._currentValue=o,i!==null)if(Yn(i.value,o)){if(i.children===s.children&&!Wt.current){t=Hr(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){o=i.child;for(var c=a.firstContext;c!==null;){if(c.context===r){if(i.tag===1){c=zr(-1,n&-n),c.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),jp(i.return,n,t),a.lanes|=n;break}c=c.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(K(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),jp(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}At(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,bo(t,n),s=jn(s),r=r(s),t.flags|=1,At(e,t,r,n),t.child;case 14:return r=t.type,s=zn(r,t.pendingProps),s=zn(r.type,s),kx(e,t,r,s,n);case 15:return b_(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:zn(r,s),ru(e,t),t.tag=1,qt(r)?(e=!0,Ru(t)):e=!1,bo(t,n),v_(t,r,s),Np(t,r,s,n),Rp(null,t,r,!0,e,n);case 19:return j_(e,t,n);case 22:return __(e,t,n)}throw Error(K(156,t.tag))};function B_(e,t){return m1(e,t)}function XP(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _n(e,t,n,r){return new XP(e,t,n,r)}function Vg(e){return e=e.prototype,!(!e||!e.isReactComponent)}function JP(e){if(typeof e=="function")return Vg(e)?1:0;if(e!=null){if(e=e.$$typeof,e===cg)return 11;if(e===ug)return 14}return 2}function Ms(e,t){var n=e.alternate;return n===null?(n=_n(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deleti
vendor: 4,322 bytes, line 41
41ons=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ou(e,t,n,r,s,i){var o=2;if(r=e,typeof e=="function")Vg(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case io:return _i(n.children,s,i,t);case lg:o=8,s|=8;break;case Xh:return e=_n(12,n,t,s|2),e.elementType=Xh,e.lanes=i,e;case Jh:return e=_n(13,n,t,s),e.elementType=Jh,e.lanes=i,e;case ep:return e=_n(19,n,t,s),e.elementType=ep,e.lanes=i,e;case Xb:return jd(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Qb:o=10;break e;case Zb:o=9;break e;case cg:o=11;break e;case ug:o=14;break e;case us:o=16,r=null;break e}throw Error(K(130,e==null?e:typeof e,""))}return t=_n(o,n,t,s),t.elementType=e,t.type=r,t.lanes=i,t}function _i(e,t,n,r){return e=_n(7,e,r,t),e.lanes=n,e}function jd(e,t,n,r){return e=_n(22,e,r,t),e.elementType=Xb,e.lanes=n,e.stateNode={isHidden:!1},e}function Yf(e,t,n){return e=_n(6,e,null,t),e.lanes=n,e}function Qf(e,t,n){return t=_n(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function eR(e,t,n,r,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Pf(0),this.expirationTimes=Pf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Pf(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function Wg(e,t,n,r,s,i,o,a,c){return e=new eR(e,t,n,a,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=_n(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ng(i),e}function tR(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:so,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function H_(e){if(!e)return Bs;e=e._reactInternals;e:{if(Di(e)!==e||e.tag!==1)throw Error(K(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(qt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(K(171))}if(e.tag===1){var n=e.type;if(qt(n))return H1(e,n,t)}return t}function V_(e,t,n,r,s,i,o,a,c){return e=Wg(n,r,!0,e,s,i,o,a,c),e.context=H_(null),n=e.current,r=Mt(),s=Os(n),i=zr(r,s),i.callback=t??null,Is(n,i,s),e.current.lanes=s,Wl(e,s,r),Kt(e,r),e}function Cd(e,t,n,r){var s=t.current,i=Mt(),o=Os(s);return n=H_(n),t.context===null?t.context=n:t.pendingContext=n,t=zr(i,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Is(s,t,o),e!==null&&(Gn(e,s,o,i),eu(e,s,o)),o}function Vu(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Mx(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function qg(e,t){Mx(e,t),(e=e.alternate)&&Mx(e,t)}function nR(){return null}var W_=typeof reportError=="function"?reportError:function(e){console.error(e)};function Kg(e){this._internalRoot=e}Nd.prototype.render=Kg.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(K(409));Cd(e,t,null,null)};Nd.prototype.unmount=Kg.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ci(function(){Cd(null,e,null,null)}),t[Ur]=null}};function Nd(e){this._internalRoot=e}Nd.prototype.unstable_scheduleHydration=function(e){if(e){var t=_1();e={blockedOn:null,target:e,priority:t};for(var n=0;n<hs.length&&t!==0&&t<hs[n].priority;n++);hs.splice(n,0,e),n===0&&S1(e)}};function Gg(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Td(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Dx(){}
vendor: 5,083 bytes, line 41
41function rR(e,t,n,r,s){if(s){if(typeof r=="function"){var i=r;r=function(){var u=Vu(o);i.call(u)}}var o=V_(t,r,e,0,null,!1,!1,"",Dx);return e._reactRootContainer=o,e[Ur]=o.current,pl(e.nodeType===8?e.parentNode:e),Ci(),o}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var a=r;r=function(){var u=Vu(c);a.call(u)}}var c=Wg(e,0,!1,null,null,!1,!1,"",Dx);return e._reactRootContainer=c,e[Ur]=c.current,pl(e.nodeType===8?e.parentNode:e),Ci(function(){Cd(t,c,n,r)}),c}function Pd(e,t,n,r,s){var i=n._reactRootContainer;if(i){var o=i;if(typeof s=="function"){var a=s;s=function(){var c=Vu(o);a.call(c)}}Cd(t,o,e,s)}else o=rR(n,t,e,s,r);return Vu(o)}w1=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=La(t.pendingLanes);n!==0&&(hg(t,n|1),Kt(t,nt()),!(Te&6)&&(Vo=nt()+500,Qs()))}break;case 13:Ci(function(){var r=Br(e,1);if(r!==null){var s=Mt();Gn(r,e,1,s)}}),qg(e,1)}};pg=function(e){if(e.tag===13){var t=Br(e,134217728);if(t!==null){var n=Mt();Gn(t,e,134217728,n)}qg(e,134217728)}};b1=function(e){if(e.tag===13){var t=Os(e),n=Br(e,t);if(n!==null){var r=Mt();Gn(n,e,t,r)}qg(e,t)}};_1=function(){return De};k1=function(e,t){var n=De;try{return De=e,t()}finally{De=n}};up=function(e,t,n){switch(t){case"input":if(rp(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var s=wd(r);if(!s)throw Error(K(90));e1(r),rp(r,s)}}}break;case"textarea":n1(e,n);break;case"select":t=n.value,t!=null&&yo(e,!!n.multiple,t,!1)}};c1=Ug;u1=Ci;var sR={usingClientEntryPoint:!1,Events:[Kl,co,wd,a1,l1,Ug]},Ea={findFiberByHostInstance:ui,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},iR={bundleType:Ea.bundleType,version:Ea.version,rendererPackageName:Ea.rendererPackageName,rendererConfig:Ea.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Kr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=h1(e),e===null?null:e.stateNode},findFiberByHostInstance:Ea.findFiberByHostInstance||nR,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 Rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Rc.isDisabled&&Rc.supportsFiber)try{gd=Rc.inject(iR),yr=Rc}catch{}}fn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sR;fn.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Gg(t))throw Error(K(200));return tR(e,t,null,n)};fn.createRoot=function(e,t){if(!Gg(e))throw Error(K(299));var n=!1,r="",s=W_;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=Wg(e,1,!1,null,null,n,!1,r,s),e[Ur]=t.current,pl(e.nodeType===8?e.parentNode:e),new Kg(t)};fn.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(K(188)):(e=Object.keys(e).join(","),Error(K(268,e)));return e=h1(t),e=e===null?null:e.stateNode,e};fn.flushSync=function(e){return Ci(e)};fn.hydrate=function(e,t,n){if(!Td(t))throw Error(K(200));return Pd(null,e,t,!0,n)};fn.hydrateRoot=function(e,t,n){if(!Gg(e))throw Error(K(405));var r=n!=null&&n.hydratedSources||null,s=!1,i="",o=W_;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=V_(t,null,e,1,n??null,s,!1,i,o),e[Ur]=t.current,pl(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new Nd(t)};fn.render=function(e,t,n){if(!Td(t))throw Error(K(200));return Pd(null,e,t,!1,n)};fn.unmountComponentAtNode=function(e){if(!Td(e))throw Error(K(40));return e._reactRootContainer?(Ci(function(){Pd(null,null,e,!1,function(){e._reactRootContainer=null,e[Ur]=null})}),!0):!1};fn.unstable_batchedUpdates=Ug;fn.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Td(n))throw Error(K(200));if(e==null||e._reactInternals===void 0)throw Error(K(38));return Pd(e,t,n,!1,r)};fn.version="18.3.1-next-f1338f8080-20240426";function q_(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(q_)}catch(e){console.error(e)}}q_(),qb.exports=fn;var Yl=qb.exports;const K_=Oi(Yl);var G_,Lx=Yl;G_=Lx.createRoot,Lx.hydrateRoot;var oR=typeof Element<"u",aR=typeof Map=="function",lR=typeof Set=="function",cR=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function au(e,t){if(e===t)return!0;
41if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,s;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!au(e[r],t[r]))return!1;return!0}var i;if(aR&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!au(r.value[1],t.get(r.value[0])))return!1;return!0}if(lR&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(cR&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[r]))return!1;if(oR&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((s[r]==="_owner"||s[r]==="__v"||s[r]==="__o")&&e.$$typeof)&&!au(e[s[r]],t[s[r]]))return!1;return!0}return e!==e&&t!==t}var uR=function(t,n){try{return au(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const dR=Oi(uR);var fR=function(e,t,n,r,s,i,o,a){if(!e){var c;if(t===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,s,i,o,a],d=0;c=new Error(t.replace(/%s/g,function(){return u[d++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}},hR=fR;const $x=Oi(hR);var pR=function(t,n,r,s){var i=r?r.call(s,t,n):void 0;if(i!==void 0)return!!i;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var o=Object.keys(t),a=Object.keys(n);if(o.length!==a.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(n),u=0;u<o.length;u++){var d=o[u];if(!c(d))return!1;var f=t[d],m=n[d];if(i=r?r.call(s,f,m,d):void 0,i===!1||i===void 0&&f!==m)return!1}return!0};const mR=Oi(pR);var Y_=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(Y_||{}),Zf={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},zx=Object.values(Y_),Yg={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},gR=Object.entries(Yg).reduce((e,[t,n])=>(e[n]=t,e),{}),qn="data-rh",ko={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},So=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},yR=e=>{let t=So(e,"title");const n=So(e,ko.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=So(e,ko.DEFAULT_TITLE);return t||r||void 0},vR=e=>So(e,ko.ON_CHANGE_CLIENT_STATE)||(()=>{}),Xf=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),xR=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const s=Object.keys(r);for(let i=0;i<s.length;i+=1){const a=s[i].toLowerCase();if(e.indexOf(a)!==-1&&r[a])return n.concat(r)}}return n},[]),wR=e=>console&&typeof console.warn=="function"&&console.warn(e),ja=(e,t,n)=>{const r={};return n.filter(s=>Array.isArray(s[e])?!0:(typeof s[e]<"u"&&wR(`Helmet: ${e} should be of type "Array". Instead found type "${typeof s[e]}"`),!1)).map(s=>s[e]).reverse().reduce((s,i)=>{const o={};i.filter(c=>{let u;const d=Object.keys(c);for(let m=0;m<d.length;m+=1){const h=d[m],y=h.toLowerCase();t.indexOf(y)!==-1&&!(u==="rel"&&c[u].toLowerCase()==="canonical")&&!(y==="rel"&&c[y].toLowerCase()==="stylesheet")&&(u=y),t.indexOf(h)!==-1&&(h==="innerHTML"||h==="cssText"||h==="itemprop")&&(u=h)}if(!u||!c[u])return!1;const f=c[u].toLowerCase();return r[u]||(r[u]={}),o[u]||(o[u]={}),r[u][f]?!1:(o[u][f]=!0,!0)}
41).reverse().forEach(c=>s.push(c));const a=Object.keys(o);for(let c=0;c<a.length;c+=1){const u=a[c],d={...r[u],...o[u]};r[u]=d}return s},[]).reverse()},bR=(e,t)=>{if(Array.isArray(e)&&e.length){for(let n=0;n<e.length;n+=1)if(e[n][t])return!0}return!1},_R=e=>({baseTag:xR(["href"],e),bodyAttributes:Xf("bodyAttributes",e),defer:So(e,ko.DEFER),encode:So(e,ko.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Xf("htmlAttributes",e),linkTags:ja("link",["rel","href"],e),metaTags:ja("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:ja("noscript",["innerHTML"],e),onChangeClientState:vR(e),scriptTags:ja("script",["src","innerHTML"],e),styleTags:ja("style",["cssText"],e),title:yR(e),titleAttributes:Xf("titleAttributes",e),prioritizeSeoTags:bR(e,ko.PRIORITIZE_SEO_TAGS)}),Q_=e=>Array.isArray(e)?e.join(""):e,kR=(e,t)=>{const n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1},Jf=(e,t)=>Array.isArray(e)?e.reduce((n,r)=>(kR(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},Fx=(e,t)=>({...e,[t]:void 0}),SR=["noscript","script","style"],Hp=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),Z_=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),ER=(e,t,n,r)=>{const s=Z_(n),i=Q_(t);return s?`<${e} ${qn}="true" ${s}>${Hp(i,r)}</${e}>`:`<${e} ${qn}="true">${Hp(i,r)}</${e}>`},jR=(e,t,n=!0)=>t.reduce((r,s)=>{const i=s,o=Object.keys(i).filter(u=>!(u==="innerHTML"||u==="cssText")).reduce((u,d)=>{const f=typeof i[d]>"u"?d:`${d}="${Hp(i[d],n)}"`;return u?`${u} ${f}`:f},""),a=i.innerHTML||i.cssText||"",c=SR.indexOf(e)===-1;return`${r}<${e} ${qn}="true" ${o}${c?"/>":`>${a}</${e}>`}`},""),X_=(e,t={})=>Object.keys(e).reduce((n,r)=>{const s=Yg[r];return n[s||r]=e[r],n},t),CR=(e,t,n)=>{const r={key:t,[qn]:!0},s=X_(n,r);return[H.createElement("title",s,t)]},lu=(e,t)=>t.map((n,r)=>{const s={key:r,[qn]:!0};return Object.keys(n).forEach(i=>{const a=Yg[i]||i;if(a==="innerHTML"||a==="cssText"){const c=n.innerHTML||n.cssText;s.dangerouslySetInnerHTML={__html:c}}else s[a]=n[i]}),H.createElement(e,s)}),gn=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>CR(e,t.title,t.titleAttributes),toString:()=>ER(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>X_(t),toString:()=>Z_(t)};default:return{toComponent:()=>lu(e,t),toString:()=>jR(e,t,n)}}},NR=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const s=Jf(e,Zf.meta),i=Jf(t,Zf.link),o=Jf(n,Zf.script);return{priorityMethods:{toComponent:()=>[...lu("meta",s.priority),...lu("link",i.priority),...lu("script",o.priority)],toString:()=>`${gn("meta",s.priority,r)} ${gn("link",i.priority,r)} ${gn("script",o.priority,r)}`},metaTags:s.default,linkTags:i.default,scriptTags:o.default}},TR=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:s,noscriptTags:i,styleTags:o,title:a="",titleAttributes:c,prioritizeSeoTags:u}=e;let{linkTags:d,metaTags:f,scriptTags:m}=e,h={toComponent:()=>{},toString:()=>""};return u&&({priorityMethods:h,linkTags:d,metaTags:f,scriptTags:m}=NR(e)),{priority:h,base:gn("base",t,r),bodyAttributes:gn("bodyAttributes",n,r),htmlAttributes:gn("htmlAttributes",s,r),link:gn("link",d,r),meta:gn("meta",f,r),noscript:gn("noscript",i,r),script:gn("script",m,r),style:gn("style",o,r),title:gn("title",{title:a,titleAttributes:c},r)}},Vp=TR,Ic=[],J_=!!(typeof window<"u"&&window.document&&window.document.createElement),Wp=class{constructor(e,t){nr(this,"instances",[]);nr(this,"canUseDOM",J_);nr(this,"context");nr(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?Ic:this.instances,add:e=>{(this.canUseDOM?Ic:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?Ic:this.instances).indexOf(e);(this.canUseDOM?Ic:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=Vp({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},PR={},ek=H.createContext(PR),pi,tk=(pi=class extends p.Component{constructor(n){super(n);nr(this,"helmetData");this.helmetData=new Wp(this.props.context||{},pi.canUseDOM)}render(){return H.createElement(ek.Provider,{value:this.helmetData.value},this.props.children)}},nr(pi,"canUseDOM",J_),pi),Hi=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${qn}]`),s=[].slice.call(r),i=[];let o;return t&&t.length&&t.forEach(a=>{const c=document.createElement(e);for(const u in a)if(Object.prototype.hasOwnProperty.call(a,u))if(u==="innerHTML")c.innerHTML=a.innerHTML;else if(u==="cssText")c.styleSheet?c.styleSheet.cssText=a.cssText:c.appendChild(document.createTextNode(a.cssText));else{const d=u,f=typeof a[d]>"u"?"":a[d];c.setAttribute(u,f)}c.setAttribute(qn,"true"),s.some((u,d)=>(o=d,c.isEqualNode(u)))?s.splice(o,1):i.push(c)}
41),s.forEach(a=>{var c;return(c=a.parentNode)==null?void 0:c.removeChild(a)}),i.forEach(a=>n.appendChild(a)),{oldTags:s,newTags:i}},qp=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(qn),s=r?r.split(","):[],i=[...s],o=Object.keys(t);for(const a of o){const c=t[a]||"";n.getAttribute(a)!==c&&n.setAttribute(a,c),s.indexOf(a)===-1&&s.push(a);const u=i.indexOf(a);u!==-1&&i.splice(u,1)}for(let a=i.length-1;a>=0;a-=1)n.removeAttribute(i[a]);s.length===i.length?n.removeAttribute(qn):n.getAttribute(qn)!==o.join(",")&&n.setAttribute(qn,o.join(","))},RR=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=Q_(e)),qp("title",t)},Ux=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:s,linkTags:i,metaTags:o,noscriptTags:a,onChangeClientState:c,scriptTags:u,styleTags:d,title:f,titleAttributes:m}=e;qp("body",r),qp("html",s),RR(f,m);const h={baseTag:Hi("base",n),linkTags:Hi("link",i),metaTags:Hi("meta",o),noscriptTags:Hi("noscript",a),scriptTags:Hi("script",u),styleTags:Hi("style",d)},y={},g={};Object.keys(h).forEach(w=>{const{newTags:v,oldTags:x}=h[w];v.length&&(y[w]=v),x.length&&(g[w]=h[w].oldTags)}),t&&t(),c(e,y,g)},Ca=null,IR=e=>{Ca&&cancelAnimationFrame(Ca),e.defer?Ca=requestAnimationFrame(()=>{Ux(e,()=>{Ca=null})}):(Ux(e),Ca=null)},AR=IR,Bx=class extends p.Component{constructor(){super(...arguments);nr(this,"rendered",!1)}shouldComponentUpdate(t){return!mR(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:n}=this.props.context;let r=null;const s=_R(t.get().map(i=>{const o={...i.props};return delete o.context,o}));tk.canUseDOM?AR(s):Vp&&(r=Vp(s)),n(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},Qh,OR=(Qh=class extends p.Component{shouldComponentUpdate(e){return!dR(Fx(this.props,"helmetData"),Fx(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(r=>{n={...n,[r]:e[r]}}),n}warnOnInvalidChildren(e,t){return $x(zx.some(n=>e.type===n),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${zx.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),$x(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return H.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:s,...i}=r.props,o=Object.keys(i).reduce((c,u)=>(c[gR[u]||u]=i[u],c),{});let{type:a}=r;
41switch(typeof a=="symbol"?a=a.toString():this.warnOnInvalidChildren(r,s),a){case"Symbol(react.fragment)":t=this.mapChildrenToProps(s,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,o,s);break;default:t=this.mapObjectTypeChildren(r,t,o,s);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof Wp)){const s=r;r=new Wp(s.context,!0),delete n.helmetData}return r?H.createElement(Bx,{...n,context:r.value}):H.createElement(ek.Consumer,null,s=>H.createElement(Bx,{...n,context:s}))}},nr(Qh,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),Qh);const MR="modulepreload",DR=function(e){return"/"+e},Hx={},W=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));s=Promise.allSettled(n.map(c=>{if(c=DR(c),c in Hx)return;Hx[c]=!0;const u=c.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${d}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":MR,u||(f.as="script"),f.crossOrigin="",f.href=c,a&&f.setAttribute("nonce",a),document.head.appendChild(f),u)return new Promise((m,h)=>{f.addEventListener("load",m),f.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return s.then(o=>{for(const a of o||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})},LR=1,$R=1e6;let eh=0;function zR(){return eh=(eh+1)%Number.MAX_SAFE_INTEGER,eh.toString()}const th=new Map,Vx=e=>{if(th.has(e))return;const t=setTimeout(()=>{th.delete(e),Za({type:"REMOVE_TOAST",toastId:e})},$R);th.set(e,t)},FR=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,LR)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Vx(n):e.toasts.forEach(r=>{Vx(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},cu=[];let uu={toasts:[]};function Za(e){uu=FR(uu,e),cu.forEach(t=>{t(uu)})}function UR({...e}){const t=zR(),n=s=>Za({type:"UPDATE_TOAST",toast:{...s,id:t}}),r=()=>Za({type:"DISMISS_TOAST",toastId:t});return Za({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:s=>{s||r()}}}),{id:t,dismiss:r,update:n}}function Gr(){const[e,t]=p.useState(uu);return p.useEffect(()=>(cu.push(t),()=>{const n=cu.indexOf(t);n>-1&&cu.splice(n,1)}),[e]),{...e,toast:UR,dismiss:n=>Za({type:"DISMISS_TOAST",toastId:n})}}function ne(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 Wx(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Vr(...e){return t=>{let n=!1;const r=e.map(s=>{const i=Wx(s,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():Wx(e[s],null)}}}}function Ne(...e){return p.useCallback(Vr(...e),e)}function BR(e,t){const n=p.createContext(t),r=i=>{const{children:o,...a}=i,c=p.useMemo(()=>a,Object.values(a));return l.jsx(n.Provider,{value:c,children:o})};r.displayName=e+"Provider";function s(i){const o=p.useContext(n);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,s]}function Yt(e,t=[]){let n=[];function r(i,o){const a=p.createContext(o),c=n.length;n=[...n,o];const u=f=>{var v;const{scope:m,children:h,...y}=f,g=((v=m==null?void 0:m[e])==null?void 0:v[c])||a,w=p.useMemo(()=>y,Object.values(y));return l.jsx(g.Provider,{value:w,children:h})};u.displayName=i+"Provider";function d(f,m){var g;const h=((g=m==null?void 0:m[e])==null?void 0:g[c])||a,y=p.useContext(h);if(y)return y;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[u,d]}const s=()=>{const i=n.map(o=>p.createContext(o));return function(a){const c=(a==null?void 0:a[e])||i;return p.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return s.scopeName=e,[r,HR(s,...t)]}function HR(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((a,{useScope:c,scopeName:u})=>{const f=c(i)[`__scope${u}`];return{...a,...f}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function Wo(e){const t=VR(e),n=p.forwardRef((r,s)=>{const{children:i,...o}=r,a=p.Children.toArray(i),c=a.find(qR);if(c){const u=c.props.children,d=a.map(f=>f===c?p.Children.count(u)>1?p.Children.only(null):p.isValidElement(u)?u.props.children:null:f);return l.jsx(t,{...o,ref:s,children:p.isValidElement(u)?p.cloneElement(u,void 0,d):null})}return l.jsx(t,{...o,ref:s,children:i})});return n.displayName=`${e}.Slot`,n}var sa=Wo("Slot");function VR(e){const t=p.forwardRef((n,r)=>{const{children:s,...i}=n;
vendor: 9,423 bytes, line 41
41if(p.isValidElement(s)){const o=GR(s),a=KR(i,s.props);return s.type!==p.Fragment&&(a.ref=r?Vr(r,o):o),p.cloneElement(s,a)}return p.Children.count(s)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var nk=Symbol("radix.slottable");function WR(e){const t=({children:n})=>l.jsx(l.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=nk,t}function qR(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===nk}function KR(e,t){const n={...t};for(const r in t){const s=e[r],i=t[r];/^on[A-Z]/.test(r)?s&&i?n[r]=(...a)=>{const c=i(...a);return s(...a),c}:s&&(n[r]=s):r==="style"?n[r]={...s,...i}:r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return{...e,...n}}function GR(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(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)}function Ql(e){const t=e+"CollectionProvider",[n,r]=Yt(t),[s,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=g=>{const{scope:w,children:v}=g,x=H.useRef(null),b=H.useRef(new Map).current;return l.jsx(s,{scope:w,itemMap:b,collectionRef:x,children:v})};o.displayName=t;const a=e+"CollectionSlot",c=Wo(a),u=H.forwardRef((g,w)=>{const{scope:v,children:x}=g,b=i(a,v),_=Ne(w,b.collectionRef);return l.jsx(c,{ref:_,children:x})});u.displayName=a;const d=e+"CollectionItemSlot",f="data-radix-collection-item",m=Wo(d),h=H.forwardRef((g,w)=>{const{scope:v,children:x,...b}=g,_=H.useRef(null),j=Ne(w,_),k=i(d,v);return H.useEffect(()=>(k.itemMap.set(_,{ref:_,...b}),()=>void k.itemMap.delete(_))),l.jsx(m,{[f]:"",ref:j,children:x})});h.displayName=d;function y(g){const w=i(e+"CollectionConsumer",g);return H.useCallback(()=>{const x=w.collectionRef.current;if(!x)return[];const b=Array.from(x.querySelectorAll(`[${f}]`));return Array.from(w.itemMap.values()).sort((k,C)=>b.indexOf(k.ref.current)-b.indexOf(C.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:o,Slot:u,ItemSlot:h},y,r]}var YR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ue=YR.reduce((e,t)=>{const n=Wo(`Primitive.${t}`),r=p.forwardRef((s,i)=>{const{asChild:o,...a}=s,c=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(c,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Qg(e,t){e&&Yl.flushSync(()=>e.dispatchEvent(t))}function at(e){const t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function QR(e,t=globalThis==null?void 0:globalThis.document){const n=at(e);p.useEffect(()=>{const r=s=>{s.key==="Escape"&&n(s)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var ZR="DismissableLayer",Kp="dismissableLayer.update",XR="dismissableLayer.pointerDownOutside",JR="dismissableLayer.focusOutside",qx,rk=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Zl=p.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...c}=e,u=p.useContext(rk),[d,f]=p.useState(null),m=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=p.useState({}),y=Ne(t,C=>f(C)),g=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=g.indexOf(w),x=d?g.indexOf(d):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,_=x>=v,j=tI(C=>{const N=C.target,T=[...u.branches].some(A=>A.contains(N));!_||T||(s==null||s(C),o==null||o(C),C.defaultPrevented||a==null||a())},m),k=nI(C=>{const N=C.target;[...u.branches].some(A=>A.contains(N))||(i==null||i(C),o==null||o(C),C.defaultPrevented||a==null||a())},m);return QR(C=>{x===u.layers.size-1&&(r==null||r(C),!C.defaultPrevented&&a&&(C.preventDefault(),a()))},m),p.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(qx=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Kx(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=qx)}},[d,m,n,u]),p.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Kx())},[d,u]),p.useEffect(()=>{const C=()=>h({});return document.addEventListener(Kp,C),()=>document.removeEventListener(Kp,C)},[]),l.jsx(ue.div,{...c,ref:y,style:{pointerEvents:b?_?"auto":"none":void 0,...e.style},onFocusCapture:ne(e.onFocusCapture,k.onFocusCapture),onBlurCapture:ne(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:ne(e.onPointerDownCapture,j.onPointerDownCapture)})});Zl.displayName=ZR;var eI="DismissableLayerBranch",sk=p.forwardRef((e,t)=>{const n=p.useContext(rk),r=p.useRef(null),s=Ne(t,r);return p.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),l.jsx(ue.div,{...e,ref:s})});sk.displayName=eI;function tI(e,t=globalThis==null?void 0:globalThis.document){const n=at(e),r=p.useRef(!1),s=p.useRef(()=>{});return p.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let c=function(){ik(XR,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=c,t.addEventListener("click",s.current,{once:!0})):c()}else t.removeEventListener("click",s.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function nI(e,t=globalThis==null?void 0:globalThis.document){const n=at(e),r=p.useRef(!1);return p.useEffect(()=>{const s=i=>{i.target&&!r.current&&ik(JR,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Kx(){const e=new CustomEvent(Kp);document.dispatchEvent(e)}function ik(e,t,n,{discrete:r}){const s=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?Qg(s,i):s.dispatchEvent(i)}var rI=Zl,sI=sk,Qn=globalThis!=null&&globalThis.document?p.useLayoutEffect:()=>{},iI="Portal",Rd=p.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[s,i]=p.useState(!1);Qn(()=>i(!0),[]);const o=n||s&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?K_.createPortal(l.jsx(ue.div,{...r,ref:t}),o):null});Rd.displayName=iI;function oI(e,t){return p.useReducer((n,r)=>t[n][r]??n,e)}var Tt=e=>{const{present:t,children:n}=e,r=aI(t),s=typeof n=="function"?n({present:r.isPresent}):p.Children.only(n),i=Ne(r.ref,lI(s));return typeof n=="function"||r.isPresent?p.cloneElement(s,{ref:i}):null};Tt.displayName="Presence";function aI(e){const[t,n]=p.useState(),r=p.useRef(null),s=p.useRef(e),i=p.useRef("none"),o=e?"mounted":"unmounted",[a,c]=oI(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const u=Ac(r.current);i.current=a==="mounted"?u:"none"},[a]),Qn(()=>{const u=r.current,d=s.current;if(d!==e){const m=i.current,h=Ac(u);e?c("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(d&&m!==h?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,c]),Qn(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,f=h=>{const g=Ac(r.current).includes(h.animationName);if(h.target===t&&g&&(c("ANIMATION_END"),!s.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},m=h=>{h.target===t&&(i.current=Ac(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:p.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Ac(e){return(e==null?void 0:e.animationName)||"none"}function lI(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(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 cI=sg[" useInsertionEffect ".trim().toString()]||Qn;function kr({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[s,i,o]=uI({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:s;{const d=p.useRef(e!==void 0);p.useEffect(()=>{const f=d.current;f!==a&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,r])}const u=p.useCallback(d=>{var f;if(a){const m=dI(d)?d(e):d;
41m!==e&&((f=o.current)==null||f.call(o,m))}else i(d)},[a,e,i,o]);return[c,u]}function uI({defaultProp:e,onChange:t}){const[n,r]=p.useState(e),s=p.useRef(n),i=p.useRef(t);return cI(()=>{i.current=t},[t]),p.useEffect(()=>{var o;s.current!==n&&((o=i.current)==null||o.call(i,n),s.current=n)},[n,s]),[n,r,i]}function dI(e){return typeof e=="function"}var fI=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),hI="VisuallyHidden",Id=p.forwardRef((e,t)=>l.jsx(ue.span,{...e,ref:t,style:{...fI,...e.style}}));Id.displayName=hI;var pI=Id,Zg="ToastProvider",[Xg,mI,gI]=Ql("Toast"),[ok,W7]=Yt("Toast",[gI]),[yI,Ad]=ok(Zg),ak=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:s="right",swipeThreshold:i=50,children:o}=e,[a,c]=p.useState(null),[u,d]=p.useState(0),f=p.useRef(!1),m=p.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Zg}\`. Expected non-empty \`string\`.`),l.jsx(Xg.Provider,{scope:t,children:l.jsx(yI,{scope:t,label:n,duration:r,swipeDirection:s,swipeThreshold:i,toastCount:u,viewport:a,onViewportChange:c,onToastAdd:p.useCallback(()=>d(h=>h+1),[]),onToastRemove:p.useCallback(()=>d(h=>h-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:m,children:o})})};ak.displayName=Zg;var lk="ToastViewport",vI=["F8"],Gp="toast.viewportPause",Yp="toast.viewportResume",ck=p.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=vI,label:s="Notifications ({hotkey})",...i}=e,o=Ad(lk,n),a=mI(n),c=p.useRef(null),u=p.useRef(null),d=p.useRef(null),f=p.useRef(null),m=Ne(t,f,o.onViewportChange),h=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),y=o.toastCount>0;p.useEffect(()=>{const w=v=>{var b;r.length!==0&&r.every(_=>v[_]||v.code===_)&&((b=f.current)==null||b.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[r]),p.useEffect(()=>{const w=c.current,v=f.current;if(y&&w&&v){const x=()=>{if(!o.isClosePausedRef.current){const k=new CustomEvent(Gp);v.dispatchEvent(k),o.isClosePausedRef.current=!0}},b=()=>{if(o.isClosePausedRef.current){const k=new CustomEvent(Yp);v.dispatchEvent(k),o.isClosePausedRef.current=!1}},_=k=>{!w.contains(k.relatedTarget)&&b()},j=()=>{w.contains(document.activeElement)||b()};return w.addEventListener("focusin",x),w.addEventListener("focusout",_),w.addEventListener("pointermove",x),w.addEventListener("pointerleave",j),window.addEventListener("blur",x),window.addEventListener("focus",b),()=>{w.removeEventListener("focusin",x),w.removeEventListener("focusout",_),w.removeEventListener("pointermove",x),w.removeEventListener("pointerleave",j),window.removeEventListener("blur",x),window.removeEventListener("focus",b)}}},[y,o.isClosePausedRef]);const g=p.useCallback(({tabbingDirection:w})=>{const x=a().map(b=>{const _=b.ref.current,j=[_,...RI(_)];return w==="forwards"?j:j.reverse()});return(w==="forwards"?x.reverse():x).flat()},[a]);return p.useEffect(()=>{const w=f.current;if(w){const v=x=>{var j,k,C;const b=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!b){const N=document.activeElement,T=x.shiftKey;if(x.target===w&&T){(j=u.current)==null||j.focus();return}const P=g({tabbingDirection:T?"backwards":"forwards"}),L=P.findIndex(R=>R===N);nh(P.slice(L+1))?x.preventDefault():T?(k=u.current)==null||k.focus():(C=d.current)==null||C.focus()}};return w.addEventListener("keydown",v),()=>w.removeEventListener("keydown",v)}},[a,g]),l.jsxs(sI,{ref:c,role:"region","aria-label":s.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:y?void 0:"none"},children:[y&&l.jsx(Qp,{ref:u,onFocusFromOutsideViewport:()=>{const w=g({tabbingDirection:"forwards"});nh(w)}}),l.jsx(Xg.Slot,{scope:n,children:l.jsx(ue.ol,{tabIndex:-1,...i,ref:m})}),y&&l.jsx(Qp,{ref:d,onFocusFromOutsideViewport:()=>{const w=g({tabbingDirection:"backwards"});nh(w)}})]})});ck.displayName=lk;var uk="ToastFocusProxy",Qp=p.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...s}=e,i=Ad(uk,n);return l.jsx(Id,{"aria-hidden":!0,tabIndex:0,...s,ref:t,style:{position:"fixed"},onFocus:o=>{var u;const a=o.relatedTarget;!((u=i.viewport)!=null&&u.contains(a))&&r()}})});Qp.displayName=uk;var Xl="Toast",xI="toast.swipeStart",wI="toast.swipeMove",bI="toast.swipeCancel",_I="toast.swipeEnd",dk=p.forwardRef((e,t)=>
41{const{forceMount:n,open:r,defaultOpen:s,onOpenChange:i,...o}=e,[a,c]=kr({prop:r,defaultProp:s??!0,onChange:i,caller:Xl});return l.jsx(Tt,{present:n||a,children:l.jsx(EI,{open:a,...o,ref:t,onClose:()=>c(!1),onPause:at(e.onPause),onResume:at(e.onResume),onSwipeStart:ne(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ne(e.onSwipeMove,u=>{const{x:d,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:ne(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ne(e.onSwipeEnd,u=>{const{x:d,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),c(!1)})})})});dk.displayName=Xl;var[kI,SI]=ok(Xl,{onClose(){}}),EI=p.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:s,open:i,onClose:o,onEscapeKeyDown:a,onPause:c,onResume:u,onSwipeStart:d,onSwipeMove:f,onSwipeCancel:m,onSwipeEnd:h,...y}=e,g=Ad(Xl,n),[w,v]=p.useState(null),x=Ne(t,R=>v(R)),b=p.useRef(null),_=p.useRef(null),j=s||g.duration,k=p.useRef(0),C=p.useRef(j),N=p.useRef(0),{onToastAdd:T,onToastRemove:A}=g,M=at(()=>{var z;(w==null?void 0:w.contains(document.activeElement))&&((z=g.viewport)==null||z.focus()),o()}),P=p.useCallback(R=>{!R||R===1/0||(window.clearTimeout(N.current),k.current=new Date().getTime(),N.current=window.setTimeout(M,R))},[M]);p.useEffect(()=>{const R=g.viewport;if(R){const z=()=>{P(C.current),u==null||u()},U=()=>{const V=new Date().getTime()-k.current;C.current=C.current-V,window.clearTimeout(N.current),c==null||c()};return R.addEventListener(Gp,U),R.addEventListener(Yp,z),()=>{R.removeEventListener(Gp,U),R.removeEventListener(Yp,z)}}},[g.viewport,j,c,u,P]),p.useEffect(()=>{i&&!g.isClosePausedRef.current&&P(j)},[i,j,g.isClosePausedRef,P]),p.useEffect(()=>(T(),()=>A()),[T,A]);const L=p.useMemo(()=>w?vk(w):null,[w]);return g.viewport?l.jsxs(l.Fragment,{children:[L&&l.jsx(jI,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:L}),l.jsx(kI,{scope:n,onClose:M,children:Yl.createPortal(l.jsx(Xg.ItemSlot,{scope:n,children:l.jsx(rI,{asChild:!0,onEscapeKeyDown:ne(a,()=>{g.isFocusedToastEscapeKeyDownRef.current||M(),g.isFocusedToastEscapeKeyDownRef.current=!1}),children:l.jsx(ue.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":g.swipeDirection,...y,ref:x,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ne(e.onKeyDown,R=>{R.key==="Escape"&&(a==null||a(R.nativeEvent),R.nativeEvent.defaultPrevented||(g.isFocusedToastEscapeKeyDownRef.current=!0,M()))}),onPointerDown:ne(e.onPointerDown,R=>{R.button===0&&(b.current={x:R.clientX,y:R.clientY})}),onPointerMove:ne(e.onPointerMove,R=>{if(!b.current)return;const z=R.clientX-b.current.x,U=R.clientY-b.current.y,V=!!_.current,D=["left","right"].includes(g.swipeDirection),O=["left","up"].includes(g.swipeDirection)?Math.min:Math.max,E=D?O(0,z):0,B=D?0:O(0,U),I=R.pointerType==="touch"?10:2,S={x:E,y:B},q={originalEvent:R,delta:S};V?(_.current=S,Oc(wI,f,q,{discrete:!1})):Gx(S,g.swipeDirection,I)?(_.current=S,Oc(xI,d,q,{discrete:!1}),R.target.setPointerCapture(R.pointerId)):(Math.abs(z)>I||Math.abs(U)>I)&&(b.current=null)}),onPointerUp:ne(e.onPointerUp,R=>{const z=_.current,U=R.target;if(U.hasPointerCapture(R.pointerId)&&U.releasePointerCapture(R.pointerId),_.current=null,b.current=null,z){const V=R.currentTarget,D={originalEvent:R,delta:z};Gx(z,g.swipeDirection,g.swipeThreshold)?Oc(_I,h,D,{discrete:!0}):Oc(bI,m,D,{discrete:!0}),V.addEventListener("click",O=>O.preventDefault(),{once:!0})}})})})}),g.viewport)})]}):null}),jI=e=>{const{__scopeToast:t,children:n,...r}=e,s=Ad(Xl,t),[i,o]=p.useState(!1),[a,c]=p.useState(!1);return TI(()=>o(!0)),p.useEffect(()=>{const u=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:l.jsx(Rd,{asChild:!0,children:l.jsx(Id,{...r,children:i&&l.jsxs(l.Fragment,{children:[s.label," ",n]})})})},CI="ToastTitle",fk=p.forwardRef((e,t)=>
vendor: 4,742 bytes, lines 41-61
41{const{__scopeToast:n,...r}=e;return l.jsx(ue.div,{...r,ref:t})});fk.displayName=CI;var NI="ToastDescription",hk=p.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return l.jsx(ue.div,{...r,ref:t})});hk.displayName=NI;var pk="ToastAction",mk=p.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?l.jsx(yk,{altText:n,asChild:!0,children:l.jsx(Jg,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${pk}\`. Expected non-empty \`string\`.`),null)});mk.displayName=pk;var gk="ToastClose",Jg=p.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,s=SI(gk,n);return l.jsx(yk,{asChild:!0,children:l.jsx(ue.button,{type:"button",...r,ref:t,onClick:ne(e.onClick,s.onClose)})})});Jg.displayName=gk;var yk=p.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...s}=e;return l.jsx(ue.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...s,ref:t})});function vk(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),PI(r)){const s=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!s)if(i){const o=r.dataset.radixToastAnnounceAlt;o&&t.push(o)}else t.push(...vk(r))}}),t}function Oc(e,t,n,{discrete:r}){const s=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?Qg(s,i):s.dispatchEvent(i)}var Gx=(e,t,n=0)=>{const r=Math.abs(e.x),s=Math.abs(e.y),i=r>s;return t==="left"||t==="right"?i&&r>n:!i&&s>n};function TI(e=()=>{}){const t=at(e);Qn(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function PI(e){return e.nodeType===e.ELEMENT_NODE}function RI(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function nh(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var II=ak,xk=ck,wk=dk,bk=fk,_k=hk,kk=mk,Sk=Jg;function Ek(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=Ek(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function jk(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=Ek(e))&&(r&&(r+=" "),r+=t);return r}const Yx=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Qx=jk,ia=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Qx(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:i}=t,o=Object.keys(s).map(u=>{const d=n==null?void 0:n[u],f=i==null?void 0:i[u];if(d===null)return null;const m=Yx(d)||Yx(f);return s[u][m]}),a=n&&Object.entries(n).reduce((u,d)=>{let[f,m]=d;return m===void 0||(u[f]=m),u},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:f,className:m,...h}=d;return Object.entries(h).every(y=>{let[g,w]=y;return Array.isArray(w)?w.includes({...i,...a}[g]):{...i,...a}[g]===w})?[...u,f,m]:u},[]);return Qx(e,o,c,n==null?void 0:n.class,n==null?void 0:n.className)};/** 42 * @license lucide-react v0.462.0 - ISC 43 * 44 * This source code is licensed under the ISC license. 45 * See the LICENSE file in the root directory of this source tree. 46 */const AI=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ck=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** 47 * @license lucide-react v0.462.0 - ISC 48 * 49 * This source code is licensed under the ISC license. 50 * See the LICENSE file in the root directory of this source tree. 51 */var OI={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** 52 * @license lucide-react v0.462.0 - ISC 53 * 54 * This source code is licensed under the ISC license. 55 * See the LICENSE file in the root directory of this source tree. 56 */const MI=p.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:i,iconNode:o,...a},c)=>p.createElement("svg",{ref:c,...OI,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Ck("lucide",s),...a},[...o.map(([u,d])=>p.createElement(u,d)),...Array.isArray(i)?i:[i]]));/** 57 * @license lucide-react v0.462.0 - ISC 58 * 59 * This source code is licensed under the ISC license. 60 * See the LICENSE file in the root directory of this source tree. 61 */const ee=(e,t)=>
61{const n=p.forwardRef(({className:r,...s},i)=>p.createElement(MI,{ref:i,iconNode:t,className:Ck(`lucide-${AI(e)}`,r),...s}));return n.displayName=`${e}`,n};/** 62 * @license lucide-react v0.462.0 - ISC 63 * 64 * This source code is licensed under the ISC license. 65 * See the LICENSE file in the root directory of this source tree. 66 */const ey=ee("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** 67 * @license lucide-react v0.462.0 - ISC 68 * 69 * This source code is licensed under the ISC license. 70 * See the LICENSE file in the root directory of this source tree. 71 */const Nk=ee("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/** 72 * @license lucide-react v0.462.0 - ISC 73 * 74 * This source code is licensed under the ISC license. 75 * See the LICENSE file in the root directory of this source tree. 76 */const DI=ee("Bone",[["path",{d:"M17 10c.7-.7 1.69 0 2.5 0a2.5 2.5 0 1 0 0-5 .5.5 0 0 1-.5-.5 2.5 2.5 0 1 0-5 0c0 .81.7 1.8 0 2.5l-7 7c-.7.7-1.69 0-2.5 0a2.5 2.5 0 0 0 0 5c.28 0 .5.22.5.5a2.5 2.5 0 1 0 5 0c0-.81-.7-1.8 0-2.5Z",key:"w610uw"}]]);/** 77 * @license lucide-react v0.462.0 - ISC 78 * 79 * This source code is licensed under the ISC license. 80 * See the LICENSE file in the root directory of this source tree. 81 */const LI=ee("BookMarked",[["path",{d:"M10 2v8l3-3 3 3V2",key:"sqw3rj"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]]);/** 82 * @license lucide-react v0.462.0 - ISC 83 * 84 * This source code is licensed under the ISC license. 85 * See the LICENSE file in the root directory of this source tree. 86 */const Od=ee("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/** 87 * @license lucide-react v0.462.0 - ISC 88 * 89 * This source code is licensed under the ISC license. 90 * See the LICENSE file in the root directory of this source tree. 91 */const Tk=ee("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/** 92 * @license lucide-react v0.462.0 - ISC 93 * 94 * This source code is licensed under the ISC license. 95 * See the LICENSE file in the root directory of this source tree. 96 */const Xa=ee("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/** 97 * @license lucide-react v0.462.0 - ISC 98 * 99 * This source code is licensed under the ISC license. 100 * See the LICENSE file in the root directory of this source tree. 101 */const Jl=ee("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/** 102 * @license lucide-react v0.462.0 - ISC 103 * 104 * This source code is licensed under the ISC license. 105 * See the LICENSE file in the root directory of this source tree. 106 */const Pk=ee("Calculator",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]]);/** 107 * @license lucide-react v0.462.0 - ISC 108 * 109 * This source code is licensed under the ISC license. 110 * See the LICENSE file in the root directory of this source tree. 111 */const Rk=ee("CalendarCheck",[["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"}]]);/** 112 * @license lucide-react v0.462.0 - ISC 113 * 114 * This source code is licensed under the ISC license. 115 * See the LICENSE file in the root directory of this source tree. 116 */const Zp=ee("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/** 117 * @license lucide-react v0.462.0 - ISC 118 * 119 * This source code is licensed under the ISC license. 120 * See the LICENSE file in the root directory of this source tree. 121 */const ty=ee("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/** 122 * @license lucide-react v0.462.0 - ISC 123 * 124 * This source code is licensed under the ISC license. 125 * See the LICENSE file in the root directory of this source tree. 126 */const kl=ee("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** 127 * @license lucide-react v0.462.0 - ISC 128 * 129 * This source code is licensed under the ISC license. 130 * See the LICENSE file in the root directory of this source tree. 131 */const du=ee("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 132 * @license lucide-react v0.462.0 - ISC 133 * 134 * This source code is licensed under the ISC license. 135 * See the LICENSE file in the root directory of this source tree. 136 */const $I=ee("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** 137 * @license lucide-react v0.462.0 - ISC 138 * 139 * This source code is licensed under the ISC license. 140 * See the LICENSE file in the root directory of this source tree. 141 */const ny=ee("Chrome",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["line",{x1:"21.17",x2:"12",y1:"8",y2:"8",key:"a0cw5f"}],["line",{x1:"3.95",x2:"8.54",y1:"6.06",y2:"14",key:"1kftof"}],["line",{x1:"10.88",x2:"15.46",y1:"21.94",y2:"14",key:"1ymyh8"}]]);/** 142 * @license lucide-react v0.462.0 - ISC 143 * 144 * This source code is licensed under the ISC license. 145 * See the LICENSE file in the root directory of this source tree. 146 */const zI=ee("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/** 147 * @license lucide-react v0.462.0 - ISC 148 * 149 * This source code is licensed under the ISC license. 150 * See the LICENSE file in the root directory of this source tree. 151 */const Dr=ee("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** 152 * @license lucide-react v0.462.0 - ISC 153 * 154 * This source code is licensed under the ISC license. 155 * See the LICENSE file in the root directory of this source tree. 156 */const FI=ee("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 157 * @license lucide-react v0.462.0 - ISC 158 * 159 * This source code is licensed under the ISC license. 160 * See the LICENSE file in the root directory of this source tree. 161 */const Xp=ee("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** 162 * @license lucide-react v0.462.0 - ISC 163 * 164 * This source code is licensed under the ISC license. 165 * See the LICENSE file in the root directory of this source tree. 166 */const UI=ee("CircleUser",[["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"}]]);/** 167 * @license lucide-react v0.462.0 - ISC 168 * 169 * This source code is licensed under the ISC license. 170 * See the LICENSE file in the root directory of this source tree. 171 */const Ik=ee("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** 172 * @license lucide-react v0.462.0 - ISC 173 * 174 * This source code is licensed under the ISC license. 175 * See the LICENSE file in the root directory of this source tree. 176 */const oa=ee("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** 177 * @license lucide-react v0.462.0 - ISC 178 * 179 * This source code is licensed under the ISC license. 180 * See the LICENSE file in the root directory of this source tree.
181 */const BI=ee("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);/** 182 * @license lucide-react v0.462.0 - ISC 183 * 184 * This source code is licensed under the ISC license. 185 * See the LICENSE file in the root directory of this source tree. 186 */const fu=ee("Crown",[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]]);/** 187 * @license lucide-react v0.462.0 - ISC 188 * 189 * This source code is licensed under the ISC license. 190 * See the LICENSE file in the root directory of this source tree. 191 */const HI=ee("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);/** 192 * @license lucide-react v0.462.0 - ISC 193 * 194 * This source code is licensed under the ISC license. 195 * See the LICENSE file in the root directory of this source tree. 196 */const VI=ee("EllipsisVertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]);/** 197 * @license lucide-react v0.462.0 - ISC 198 * 199 * This source code is licensed under the ISC license. 200 * See the LICENSE file in the root directory of this source tree. 201 */const WI=ee("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/** 202 * @license lucide-react v0.462.0 - ISC 203 * 204 * This source code is licensed under the ISC license. 205 * See the LICENSE file in the root directory of this source tree. 206 */const qI=ee("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/** 207 * @license lucide-react v0.462.0 - ISC 208 * 209 * This source code is licensed under the ISC license. 210 * See the LICENSE file in the root directory of this source tree. 211 */const KI=ee("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/** 212 * @license lucide-react v0.462.0 - ISC 213 * 214 * This source code is licensed under the ISC license. 215 * See the LICENSE file in the root directory of this source tree. 216 */const GI=ee("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** 217 * @license lucide-react v0.462.0 - ISC 218 * 219 * This source code is licensed under the ISC license. 220 * See the LICENSE file in the root directory of this source tree. 221 */const YI=ee("FileSearch",[["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M4.268 21a2 2 0 0 0 1.727 1H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"ms7g94"}],["path",{d:"m9 18-1.5-1.5",key:"1j6qii"}],["circle",{cx:"5",cy:"14",r:"3",key:"ufru5t"}]]);/** 222 * @license lucide-react v0.462.0 - ISC 223 * 224 * This source code is licensed under the ISC license. 225 * See the LICENSE file in the root directory of this source tree. 226 */const Sl=ee("FileText",[["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"}]]);/** 227 * @license lucide-react v0.462.0 - ISC 228 * 229 * This source code is licensed under the ISC license. 230 * See the LICENSE file in the root directory of this source tree. 231 */const QI=ee("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/** 232 * @license lucide-react v0.462.0 - ISC 233 * 234 * This source code is licensed under the ISC license. 235 * See the LICENSE file in the root directory of this source tree. 236 */const Ak=ee("GraduationCap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]);/** 237 * @license lucide-react v0.462.0 - ISC 238 * 239 * This source code is licensed under the ISC license. 240 * See the LICENSE file in the root directory of this source tree. 241 */const ZI=ee("Hand",[["path",{d:"M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2",key:"1fvzgz"}],["path",{d:"M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2",key:"1kc0my"}],["path",{d:"M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8",key:"10h0bg"}],["path",{d:"M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15",key:"1s1gnw"}]]);/** 242 * @license lucide-react v0.462.0 - ISC 243 * 244 * This source code is licensed under the ISC license. 245 * See the LICENSE file in the root directory of this source tree. 246 */const XI=ee("House",[["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"}]]);/** 247 * @license lucide-react v0.462.0 - ISC 248 * 249 * This source code is licensed under the ISC license. 250 * See the LICENSE file in the root directory of this source tree. 251 */const Ok=ee("Landmark",[["line",{x1:"3",x2:"21",y1:"22",y2:"22",key:"j8o0r"}],["line",{x1:"6",x2:"6",y1:"18",y2:"11",key:"10tf0k"}],["line",{x1:"10",x2:"10",y1:"18",y2:"11",key:"54lgf6"}],["line",{x1:"14",x2:"14",y1:"18",y2:"11",key:"380y"}],["line",{x1:"18",x2:"18",y1:"18",y2:"11",key:"1kevvc"}],["polygon",{points:"12 2 20 7 4 7",key:"jkujk7"}]]);/** 252 * @license lucide-react v0.462.0 - ISC 253 * 254 * This source code is licensed under the ISC license. 255 * See the LICENSE file in the root directory of this source tree.
256 */const Mk=ee("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/** 257 * @license lucide-react v0.462.0 - ISC 258 * 259 * This source code is licensed under the ISC license. 260 * See the LICENSE file in the root directory of this source tree. 261 */const Dk=ee("Library",[["path",{d:"m16 6 4 14",key:"ji33uf"}],["path",{d:"M12 6v14",key:"1n7gus"}],["path",{d:"M8 8v12",key:"1gg7y9"}],["path",{d:"M4 4v16",key:"6qkkli"}]]);/** 262 * @license lucide-react v0.462.0 - ISC 263 * 264 * This source code is licensed under the ISC license. 265 * See the LICENSE file in the root directory of this source tree. 266 */const JI=ee("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/** 267 * @license lucide-react v0.462.0 - ISC 268 * 269 * This source code is licensed under the ISC license. 270 * See the LICENSE file in the root directory of this source tree. 271 */const Lk=ee("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);/** 272 * @license lucide-react v0.462.0 - ISC 273 * 274 * This source code is licensed under the ISC license. 275 * See the LICENSE file in the root directory of this source tree. 276 */const El=ee("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** 277 * @license lucide-react v0.462.0 - ISC 278 * 279 * This source code is licensed under the ISC license. 280 * See the LICENSE file in the root directory of this source tree. 281 */const Jp=ee("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/** 282 * @license lucide-react v0.462.0 - ISC 283 * 284 * This source code is licensed under the ISC license. 285 * See the LICENSE file in the root directory of this source tree. 286 */const eA=ee("LogIn",[["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"}]]);/** 287 * @license lucide-react v0.462.0 - ISC 288 * 289 * This source code is licensed under the ISC license. 290 * See the LICENSE file in the root directory of this source tree. 291 */const tA=ee("LogOut",[["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"}]]);/** 292 * @license lucide-react v0.462.0 - ISC 293 * 294 * This source code is licensed under the ISC license. 295 * See the LICENSE file in the root directory of this source tree. 296 */const Ds=ee("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** 297 * @license lucide-react v0.462.0 - ISC 298 * 299 * This source code is licensed under the ISC license. 300 * See the LICENSE file in the root directory of this source tree. 301 */const $k=ee("Megaphone",[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]]);/** 302 * @license lucide-react v0.462.0 - ISC 303 * 304 * This source code is licensed under the ISC license. 305 * See the LICENSE file in the root directory of this source tree. 306 */const nA=ee("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/** 307 * @license lucide-react v0.462.0 - ISC 308 * 309 * This source code is licensed under the ISC license. 310 * See the LICENSE file in the root directory of this source tree. 311 */const jl=ee("MessageSquare",[["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"}]]);/** 312 * @license lucide-react v0.462.0 - ISC 313 * 314 * This source code is licensed under the ISC license. 315 * See the LICENSE file in the root directory of this source tree. 316 */const Zx=ee("MicOff",[["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}],["path",{d:"M18.89 13.23A7.12 7.12 0 0 0 19 12v-2",key:"80xlxr"}],["path",{d:"M5 10v2a7 7 0 0 0 12 5",key:"p2k8kg"}],["path",{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33",key:"1gzdoj"}],["path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12",key:"r2i35w"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}]]);/** 317 * @license lucide-react v0.462.0 - ISC 318 * 319 * This source code is licensed under the ISC license. 320 * See the LICENSE file in the root directory of this source tree. 321 */const em=ee("Mic",[["path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z",key:"131961"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}]]);/** 322 * @license lucide-react v0.462.0 - ISC 323 * 324 * This source code is licensed under the ISC license. 325 * See the LICENSE file in the root directory of this source tree. 326 */const rA=ee("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/** 327 * @license lucide-react v0.462.0 - ISC 328 * 329 * This source code is licensed under the ISC license. 330 * See the LICENSE file in the root directory of this source tree. 331 */const sA=ee("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/** 332 * @license lucide-react v0.462.0 - ISC 333 * 334 * This source code is licensed under the ISC license. 335 * See the LICENSE file in the root directory of this source tree. 336 */const iA=ee("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/** 337 * @license lucide-react v0.462.0 - ISC 338 * 339 * This source code is licensed under the ISC license. 340 * See the LICENSE file in the root directory of this source tree. 341 */const Xx=ee("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/** 342 * @license lucide-react v0.462.0 - ISC 343 * 344 * This source code is licensed under the ISC license. 345 * See the LICENSE file in the root directory of this source tree. 346 */const oA=ee("Plug",[["path",{d:"M12 22v-5",key:"1ega77"}
346],["path",{d:"M9 8V2",key:"14iosj"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z",key:"osxo6l"}]]);/** 347 * @license lucide-react v0.462.0 - ISC 348 * 349 * This source code is licensed under the ISC license. 350 * See the LICENSE file in the root directory of this source tree. 351 */const zk=ee("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/** 352 * @license lucide-react v0.462.0 - ISC 353 * 354 * This source code is licensed under the ISC license. 355 * See the LICENSE file in the root directory of this source tree. 356 */const aA=ee("Rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]);/** 357 * @license lucide-react v0.462.0 - ISC 358 * 359 * This source code is licensed under the ISC license. 360 * See the LICENSE file in the root directory of this source tree. 361 */const Md=ee("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** 362 * @license lucide-react v0.462.0 - ISC 363 * 364 * This source code is licensed under the ISC license. 365 * See the LICENSE file in the root directory of this source tree. 366 */const ry=ee("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/** 367 * @license lucide-react v0.462.0 - ISC 368 * 369 * This source code is licensed under the ISC license. 370 * See the LICENSE file in the root directory of this source tree. 371 */const lA=ee("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** 372 * @license lucide-react v0.462.0 - ISC 373 * 374 * This source code is licensed under the ISC license. 375 * See the LICENSE file in the root directory of this source tree. 376 */const cA=ee("ShieldCheck",[["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",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 377 * @license lucide-react v0.462.0 - ISC 378 * 379 * This source code is licensed under the ISC license. 380 * See the LICENSE file in the root directory of this source tree. 381 */const sy=ee("Shield",[["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",key:"oel41y"}]]);/** 382 * @license lucide-react v0.462.0 - ISC 383 * 384 * This source code is licensed under the ISC license. 385 * See the LICENSE file in the root directory of this source tree. 386 */const uA=ee("SkipForward",[["polygon",{points:"5 4 15 12 5 20 5 4",key:"16p6eg"}],["line",{x1:"19",x2:"19",y1:"5",y2:"19",key:"futhcm"}]]);/** 387 * @license lucide-react v0.462.0 - ISC 388 * 389 * This source code is licensed under the ISC license. 390 * See the LICENSE file in the root directory of this source tree. 391 */const Fk=ee("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/** 392 * @license lucide-react v0.462.0 - ISC 393 * 394 * This source code is licensed under the ISC license. 395 * See the LICENSE file in the root directory of this source tree. 396 */const dA=ee("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/** 397 * @license lucide-react v0.462.0 - ISC 398 * 399 * This source code is licensed under the ISC license. 400 * See the LICENSE file in the root directory of this source tree. 401 */const iy=ee("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/** 402 * @license lucide-react v0.462.0 - ISC 403 * 404 * This source code is licensed under the ISC license. 405 * See the LICENSE file in the root directory of this source tree. 406 */const fA=ee("TrendingDown",[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]]);/** 407 * @license lucide-react v0.462.0 - ISC 408 * 409 * This source code is licensed under the ISC license. 410 * See the LICENSE file in the root directory of this source tree. 411 */const Ni=ee("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/** 412 * @license lucide-react v0.462.0 - ISC 413 * 414 * This source code is licensed under the ISC license. 415 * See the LICENSE file in the root directory of this source tree. 416 */const oy=ee("TriangleAlert",[["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"}]]);/** 417 * @license lucide-react v0.462.0 - ISC 418 * 419 * This source code is licensed under the ISC license. 420 * See the LICENSE file in the root directory of this source tree. 421 */const hA=ee("Twitter",[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]]);/** 422 * @license lucide-react v0.462.0 - ISC 423 * 424 * This source code is licensed under the ISC license. 425 * See the LICENSE file in the root directory of this source tree. 426 */const Jx=ee("UserPlus",[["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"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]);/** 427 * @license lucide-react v0.462.0 - ISC 428 * 429 * This source code is licensed under the ISC license. 430 * See the LICENSE file in the root directory of this source tree. 431 */const Ls=ee("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/** 432 * @license lucide-react v0.462.0 - ISC 433 * 434 * This source code is licensed under the ISC license. 435 * See the LICENSE file in the root directory of this source tree. 436 */const Ti=ee("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/** 437 * @license lucide-react v0.462.0 - ISC 438 * 439 * This source code is licensed under the ISC license. 440 * See the LICENSE file in the root directory of this source tree. 441 */const ew=ee("Volume2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]);/** 442 * @license lucide-react v0.462.0 - ISC 443 * 444 * This source code is licensed under the ISC license. 445 * See the LICENSE file in the root directory of this source tree. 446 */const ln=ee("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 9,474 bytes, lines 446-451
446],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** 447 * @license lucide-react v0.462.0 - ISC 448 * 449 * This source code is licensed under the ISC license. 450 * See the LICENSE file in the root directory of this source tree. 451 */const Dd=ee("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),ay="-",pA=e=>{const t=gA(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const a=o.split(ay);return a[0]===""&&a.length!==1&&a.shift(),Uk(a,t)||mA(o)},getConflictingClassGroupIds:(o,a)=>{const c=n[o]||[];return a&&r[o]?[...c,...r[o]]:c}}},Uk=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?Uk(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const i=e.join(ay);return(o=t.validators.find(({validator:a})=>a(i)))==null?void 0:o.classGroupId},tw=/^\[(.+)\]$/,mA=e=>{if(tw.test(e)){const t=tw.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},gA=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return vA(Object.entries(e.classGroups),n).forEach(([i,o])=>{tm(o,r,i,t)}),r},tm=(e,t,n,r)=>{e.forEach(s=>{if(typeof s=="string"){const i=s===""?t:nw(t,s);i.classGroupId=n;return}if(typeof s=="function"){if(yA(s)){tm(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([i,o])=>{tm(o,nw(t,i),n,r)})})},nw=(e,t)=>{let n=e;return t.split(ay).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},yA=e=>e.isThemeGetter,vA=(e,t)=>t?e.map(([n,r])=>{const s=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,a])=>[t+o,a])):i);return[n,s]}):e,xA=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const s=(i,o)=>{n.set(i,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let o=n.get(i);if(o!==void 0)return o;if((o=r.get(i))!==void 0)return s(i,o),o},set(i,o){n.has(i)?n.set(i,o):s(i,o)}}},Bk="!",wA=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,s=t[0],i=t.length,o=a=>{const c=[];let u=0,d=0,f;for(let w=0;w<a.length;w++){let v=a[w];if(u===0){if(v===s&&(r||a.slice(w,w+i)===t)){c.push(a.slice(d,w)),d=w+i;continue}if(v==="/"){f=w;continue}}v==="["?u++:v==="]"&&u--}const m=c.length===0?a:a.substring(d),h=m.startsWith(Bk),y=h?m.substring(1):m,g=f&&f>d?f-d:void 0;return{modifiers:c,hasImportantModifier:h,baseClassName:y,maybePostfixModifierPosition:g}};return n?a=>n({className:a,parseClassName:o}):o},bA=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},_A=e=>({cache:xA(e.cacheSize),parseClassName:wA(e),...pA(e)}),kA=/\s+/,SA=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=t,i=[],o=e.trim().split(kA);let a="";for(let c=o.length-1;c>=0;c-=1){const u=o[c],{modifiers:d,hasImportantModifier:f,baseClassName:m,maybePostfixModifierPosition:h}=n(u);let y=!!h,g=r(y?m.substring(0,h):m);if(!g){if(!y){a=u+(a.length>0?" "+a:a);continue}if(g=r(m),!g){a=u+(a.length>0?" "+a:a);continue}y=!1}const w=bA(d).join(":"),v=f?w+Bk:w,x=v+g;if(i.includes(x))continue;i.push(x);const b=s(g,y);for(let _=0;_<b.length;++_){const j=b[_];i.push(v+j)}a=u+(a.length>0?" "+a:a)}return a};function EA(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Hk(t))&&(r&&(r+=" "),r+=n);return r}const Hk=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Hk(e[r]))&&(n&&(n+=" "),n+=t);return n};function jA(e,...t){let n,r,s,i=o;function o(c){const u=t.reduce((d,f)=>f(d),e());return n=_A(u),r=n.cache.get,s=n.cache.set,i=a,a(c)}function a(c){const u=r(c);if(u)return u;const d=SA(c,n);return s(c,d),d}return function(){return i(EA.apply(null,arguments))}}const He=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Vk=/^\[(?:([a-z-]+):)?(.+)\]$/i,CA=/^\d+\/\d+$/,NA=new Set(["px","full","screen"]),TA=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,PA=/\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$/,RA=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,IA=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,AA=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Pr=e=>Eo(e)||NA.has(e)||CA.test(e),rs=e=>aa(e,"length",UA),Eo=e=>!!e&&!Number.isNaN(Number(e)),rh=e=>aa(e,"number",Eo),Na=e=>!!e&&Number.isInteger(Number(e)),OA=e=>e.endsWith("%")&&Eo(e.slice(0,-1)),be=e=>Vk.test(e),ss=e=>TA.test(e),MA=new Set(["length","size","percentage"]),DA=e=>aa(e,MA,Wk),LA=e=>aa(e,"position",Wk),$A=new Set(["image","url"]),zA=e=>aa(e,$A,HA),FA=e=>aa(e,"",BA),Ta=()=>!0,aa=(e,t,n)=>{const r=Vk.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},UA=e=>PA.test(e)&&!RA.test(e),Wk=()=>!1,BA=e=>IA.test(e),HA=e=>AA.test(e),VA=()=>{const e=He("colors"),t=He("spacing"),n=He("blur"),r=He("brightness"),s=He("borderColor"),i=He("borderRadius"),o=He("borderSpacing"),a=He("borderWidth"),c=He("contrast"),u=He("grayscale"),d=He("hueRotate"),f=He("invert"),m=He("gap"),h=He("gradientColorStops"),y=He("gradientColorStopPositions"),g=He("inset"),w=He("margin"),v=He("opacity"),x=He("padding"),b=He("saturate"),_=He("scale"),j=He("sepia"),k=He("skew"),C=He("space"),N=He("translate"),T=()=>["auto","contain","none"],A=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto",be,t],P=()=>[be,t],L=()=>["",Pr,rs],R=()=>["auto",Eo,be],z=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],U=()=>["solid","dashed","dotted","double","none"],V=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],D=()=>["start","end","center","between","around","evenly","stretch"],O=()=>["","0",be],E=()=>["auto","avoid","all","avoid-page","page","left","right","column"],B=()=>[Eo,be];return{cacheSize:500,separator:":",theme:{colors:[Ta],spacing:[Pr,rs],blur:["none","",ss,be],brightness:B(),borderColor:[e],borderRadius:["none","","full",ss,be],borderSpacing:P(),borderWidth:L(),contrast:B(),grayscale:O(),hueRotate:B(),invert:O(),gap:P(),gradientColorStops:[e],gradientColorStopPositions:[OA,rs],inset:M(),margin:M(),opacity:B(),padding:P(),saturate:B(),scale:B(),sepia:O(),skew:B(),space:P(),translate:P()},classGroups:{aspect:[{aspect:["auto","square","video",be]}],container:["container"],columns:[{columns:[ss]}],"break-after":[{"break-after":E()}],"break-before":[{"break-before":E()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...z(),be]}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Na,be]}],basis:[{basis:M()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",be]}],grow:[{grow:O()}],shrink:[{shrink:O()}],order:[{order:["first","last","none",Na,be]}],"grid-cols":[{"grid-cols":[Ta]}],"col-start-end":[{col:["auto",{span:["full",Na,be]},be]}],"col-start":[{"col-start":R()}],"col-end":[{"col-end":R()}],"grid-rows":[{"grid-rows":[Ta]}],"row-start-end":[{row:["auto",{span:[Na,be]},be]}],"row-start":[{"row-start":R()}],"row-end":[{"row-end":R()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",be]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",be]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...D()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...D(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...D(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}
vendor: 8,339 bytes, line 451
451],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[C]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[C]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",be,t]}],"min-w":[{"min-w":[be,t,"min","max","fit"]}],"max-w":[{"max-w":[be,t,"none","full","min","max","fit","prose",{screen:[ss]},ss]}],h:[{h:[be,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[be,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[be,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[be,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ss,rs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",rh]}],"font-family":[{font:[Ta]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",be]}],"line-clamp":[{"line-clamp":["none",Eo,rh]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Pr,be]}],"list-image":[{"list-image":["none",be]}],"list-style-type":[{list:["none","disc","decimal",be]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...U(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Pr,rs]}],"underline-offset":[{"underline-offset":["auto",Pr,be]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",be]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",be]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...z(),LA]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",DA]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},zA]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...U(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:U()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...U()]}],"outline-offset":[{"outline-offset":[Pr,be]}],"outline-w":[{outline:[Pr,rs]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:L()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[Pr,rs]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ss,FA]}],"shadow-color":[{shadow:[Ta]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...V(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":V()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",ss,be]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[b]}],sepia:[{sepia:[j]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[j]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",be]}],duration:[{duration:B()}],ease:[{ease:["linear","in","out","in-out",be]}],delay:[{delay:B()}],animate:[{animate:["none","spin","ping","pulse","bounce",be]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[Na,be]}],"translate-x":[{"translate-x":[N]}],"translate-y":[{"translate-y":[N]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",be]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",be]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"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"]}
451],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",be]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Pr,rs,rh]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},WA=jA(VA);function X(...e){return WA(jk(e))}const qA=II,qk=p.forwardRef(({className:e,...t},n)=>l.jsx(xk,{ref:n,className:X("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));qk.displayName=xk.displayName;const KA=ia("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"}}),Kk=p.forwardRef(({className:e,variant:t,...n},r)=>l.jsx(wk,{ref:r,className:X(KA({variant:t}),e),...n}));Kk.displayName=wk.displayName;const GA=p.forwardRef(({className:e,...t},n)=>l.jsx(kk,{ref:n,className:X("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));GA.displayName=kk.displayName;const Gk=p.forwardRef(({className:e,...t},n)=>l.jsx(Sk,{ref:n,className:X("absolute right-2 top-2 rounded-md p-1 text-foreground
451/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:l.jsx(ln,{className:"h-4 w-4"})}));Gk.displayName=Sk.displayName;const Yk=p.forwardRef(({className:e,...t},n)=>l.jsx(bk,{ref:n,className:X("text-sm font-semibold",e),...t}));Yk.displayName=bk.displayName;const Qk=p.forwardRef(({className:e,...t},n)=>l.jsx(_k,{ref:n,className:X("text-sm opacity-90",e),...t}));Qk.displayName=_k.displayName;function YA(){const{toasts:e}=Gr();return l.jsxs(qA,{children:[e.map(function({id:t,title:n,description:r,action:s,...i}){return l.jsxs(Kk,{...i,children:[l.jsxs("div",{className:"grid gap-1",children:[n&&l.jsx(Yk,{children:n}),r&&l.jsx(Qk,{children:r})]}),s,l.jsx(Gk,{})]},t)}),l.jsx(qk,{})]})}var rw=["light","dark"],QA="(prefers-color-scheme: dark)",ZA=p.createContext(void 0),XA={setTheme:e=>{},themes:[]},JA=()=>{var e;return(e=p.useContext(ZA))!=null?e:XA};p.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:s,defaultTheme:i,value:o,attrs:a,nonce:c})=>{let u=i==="system",d=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(y=>`'${y}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,f=s?rw.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",m=(y,g=!1,w=!0)=>{let v=o?o[y]:y,x=g?y+"|| ''":`'${v}'`,b="";return s&&w&&!g&&rw.includes(y)&&(b+=`d.style.colorScheme = '${y}';`),n==="class"?g||v?b+=`c.add(${x})`:b+="null":v&&(b+=`d[s](n,${x})`),b},h=e?`!function(){${d}${m(e)}}()`:r?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${QA}',m=window.matchMedia(t);if(m.media!==t||m.matches){${m("dark")}}else{${m("light")}}}else if(e){${o?`var x=${JSON.stringify(o)};`:""}${m(o?"x[e]":"e",!0)}}${u?"":"else{"+m(i,!1,!1)+"}"}${f}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${m(o?"x[e]":"e",!0)}}else{${m(i,!1,!1)};}${f}}catch(t){}}();`;return p.createElement("script",{nonce:c,dangerouslySetInnerHTML:{__html:h}})});var eO=e=>{switch(e){case"success":return rO;case"info":return iO;case"warning":return sO;case"error":return oO;default:return null}},tO=Array(12).fill(0),nO=({visible:e,className:t})=>H.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},H.createElement("div",{className:"sonner-spinner"},tO.map((n,r)=>H.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),rO=H.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},H.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),sO=H.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},H.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),iO=H.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},H.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),oO=H.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},H.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),aO=H.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},H.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),H.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),lO=()=>{let[e,t]=H.useState(document.hidden);return H.useEffect(()=>{let n=()=>{t(document.hidden)};
451return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},nm=1,cO=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,s=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:nm++,i=this.toasts.find(a=>a.id===s),o=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),i?this.toasts=this.toasts.map(a=>a.id===s?(this.publish({...a,...e,id:s,title:n}),{...a,...e,id:s,dismissible:o,title:n}):a):this.addToast({title:n,...r,dismissible:o,id:s}),s},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
451this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),s=n!==void 0,i,o=r.then(async c=>{if(i=["resolve",c],H.isValidElement(c))s=!1,this.create({id:n,type:"default",message:c});else if(dO(c)&&!c.ok){s=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${c.status}`):t.error,d=typeof t.description=="function"?await t.description(`HTTP error! status: ${c.status}`):t.description;this.create({id:n,type:"error",message:u,description:d})}else if(t.success!==void 0){s=!1;let u=typeof t.success=="function"?await t.success(c):t.success,d=typeof t.description=="function"?await t.description(c):t.description;this.create({id:n,type:"success",message:u,description:d})}}).catch(async c=>{if(i=["reject",c],t.error!==void 0){s=!1;let u=typeof t.error=="function"?await t.error(c):t.error,d=typeof t.description=="function"?await t.description(c):t.description;this.create({id:n,type:"error",message:u,description:d})}}).finally(()=>{var c;s&&(this.dismiss(n),n=void 0),(c=t.finally)==null||c.call(t)}),a=()=>new Promise((c,u)=>o.then(()=>i[0]==="reject"?u(i[1]):c(i[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:a}:Object.assign(n,{unwrap:a})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||nm++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Ut=new cO,uO=(e,t)=>{let n=(t==null?void 0:t.id)||nm++;return Ut.addToast({title:e,...t,id:n}),n},dO=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",fO=uO,hO=()=>Ut.toasts,pO=()=>Ut.getActiveToasts(),sh=Object.assign(fO,{success:Ut.success,info:Ut.info,warning:Ut.warning,error:Ut.error,custom:Ut.custom,message:Ut.message,promise:Ut.promise,dismiss:Ut.dismiss,loading:Ut.loading},{getHistory:hO,getToasts:pO});function mO(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}mO(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
451left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
451:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
451--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} 452`);function Mc(e){return e.label!==void 0}var gO=3,yO="32px",vO="16px",sw=4e3,xO=356,wO=14,bO=20,_O=200;function Dn(...e){return e.filter(Boolean).join(" ")}function kO(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var SO=e=>{var t,n,r,s,i,o,a,c,u,d,f;let{invert:m,toast:h,unstyled:y,interacting:g,setHeights:w,visibleToasts:v,heights:x,index:b,toasts:_,expanded:j,removeToast:k,defaultRichColors:C,closeButton:N,style:T,cancelButtonStyle:A,actionButtonStyle:M,className:P="",descriptionClassName:L="",duration:R,position:z,gap:U,loadingIcon:V,expandByDefault:D,classNames:O,icons:E,closeButtonAriaLabel:B="Close toast",pauseWhenPageIsHidden:I}=e,[S,q]=H.useState(null),[Z,te]=H.useState(null),[re,Ce]=H.useState(!1),[he,Be]=H.useState(!1),[xt,Pn]=H.useState(!1),[Xt,J]=H.useState(!1),[ge,Rt]=H.useState(!1),[Cr,Qr]=H.useState(0),[Nr,ya]=H.useState(0),ei=H.useRef(h.duration||R||sw),hc=H.useRef(null),Tr=H.useRef(null),bf=b===0,_f=b+1<=v,$=h.type,Q=h.dism
452issible!==!1,fe=h.className||"",Ee=h.descriptionClassName||"",Re=H.useMemo(()=>x.findIndex(ye=>ye.toastId===h.id)||0,[x,h.id]),Jt=H.useMemo(()=>{var ye;return(ye=h.closeButton)!=null?ye:N},[h.closeButton,N]),tr=H.useMemo(()=>h.duration||R||sw,[h.duration,R]),en=H.useRef(0),pn=H.useRef(0),Zr=H.useRef(0),rt=H.useRef(null),[Xr,Rn]=z.split("-"),jv=H.useMemo(()=>x.reduce((ye,Le,qe)=>qe>=Re?ye:ye+Le.height,0),[x,Re]),Cv=lO(),TT=h.invert||m,kf=$==="loading";pn.current=H.useMemo(()=>Re*U+jv,[Re,jv]),H.useEffect(()=>{ei.current=tr},[tr]),H.useEffect(()=>{Ce(!0)},[]),H.useEffect(()=>{let ye=Tr.current;if(ye){let Le=ye.getBoundingClientRect().height;return ya(Le),w(qe=>[{toastId:h.id,height:Le,position:h.position},...qe]),()=>w(qe=>qe.filter(In=>In.toastId!==h.id))}},[w,h.id]),H.useLayoutEffect(()=>{if(!re)return;let ye=Tr.current,Le=ye.style.height;ye.style.height="auto";let qe=ye.getBoundingClientRect().height;ye.style.height=Le,ya(qe),w(In=>In.find(An=>An.toastId===h.id)?In.map(An=>An.toastId===h.id?{...An,height:qe}:An):[{toastId:h.id,height:qe,position:h.position},...In])},[re,h.title,h.description,w,h.id]);let Jr=H.useCallback(()=>{Be(!0),Qr(pn.current),w(ye=>ye.filter(Le=>Le.toastId!==h.id)),setTimeout(()=>{k(h)},_O)},[h,k,w,pn]);H.useEffect(()=>{if(h.promise&&$==="loading"||h.duration===1/0||h.type==="loading")return;let ye;return j||g||I&&Cv?(()=>{if(Zr.current<en.current){let Le=new Date().getTime()-en.current;ei.current=ei.current-Le}Zr.current=new Date().getTime()})():ei.current!==1/0&&(en.current=new Date().getTime(),ye=setTimeout(()=>{var Le;(Le=h.onAutoClose)==null||Le.call(h,h),Jr()},ei.current)),()=>clearTimeout(ye)},[j,g,h,$,I,Cv,Jr]),H.useEffect(()=>{h.delete&&Jr()},[Jr,h.delete]);function PT(){var ye,Le,qe;return E!=null&&E.loading?H.createElement("div",{className:Dn(O==null?void 0:O.loader,(ye=h==null?void 0:h.classNames)==null?void 0:ye.loader,"sonner-loader"),"data-visible":$==="loading"},E.loading):V?H.createElement("div",{className:Dn(O==null?void 0:O.loader,(Le=h==null?void 0:h.classNames)==null?void 0:Le.loader,"sonner-loader"),"data-visible":$==="loading"},V):H.createElement(nO,{className:Dn(O==null?void 0:O.loader,(qe=h==null?void 0:h.classNames)==null?void 0:qe.loader),visible:$==="loading"})}return H.createElement("li",{tabIndex:0,ref:Tr,className:Dn(P,fe,O==null?void 0:O.toast,(t=h==null?void 0:h.classNames)==null?void 0:t.toast,O==null?void 0:O.default,O==null?void 0:O[$],(n=h==null?void 0:h.classNames)==null?void 0:n[$]),"data-sonner-toast":"","data-rich-colors":(r=h.richColors)!=null?r:C,"data-styled":!(h.jsx||h.unstyled||y),"data-mounted":re,"data-
452promise":!!h.promise,"data-swiped":ge,"data-removed":he,"data-visible":_f,"data-y-position":Xr,"data-x-position":Rn,"data-index":b,"data-front":bf,"data-swiping":xt,"data-dismissible":Q,"data-type":$,"data-invert":TT,"data-swipe-out":Xt,"data-swipe-direction":Z,"data-expanded":!!(j||D&&re),style:{"--index":b,"--toasts-before":b,"--z-index":_.length-b,"--offset":`${he?Cr:pn.current}px`,"--initial-height":D?"auto":`${Nr}px`,...T,...h.style},onDragEnd:()=>{Pn(!1),q(null),rt.current=null},onPointerDown:ye=>{kf||!Q||(hc.current=new Date,Qr(pn.current),ye.target.setPointerCapture(ye.pointerId),ye.target.tagName!=="BUTTON"&&(Pn(!0),rt.current={x:ye.clientX,y:ye.clientY}))},onPointerUp:()=>{var ye,Le,qe,In;if(Xt||!Q)return;rt.current=null;let An=Number(((ye=Tr.current)==null?void 0:ye.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),es=Number(((Le=Tr.current)==null?void 0:Le.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ti=new Date().getTime()-((qe=hc.current)==null?void 0:qe.getTime()),On=S==="x"?An:es,ts=Math.abs(On)/ti;if(Math.abs(On)>=bO||ts>.11){Qr(pn.current),(In=h.onDismiss)==null||In.call(h,h),te(S==="x"?An>0?"right":"left":es>0?"down":"up"),Jr(),J(!0),Rt(!1);return}Pn(!1),q(null)},onPointerMove:ye=>{var Le,qe,In,An;
452if(!rt.current||!Q||((Le=window.getSelection())==null?void 0:Le.toString().length)>0)return;let es=ye.clientY-rt.current.y,ti=ye.clientX-rt.current.x,On=(qe=e.swipeDirections)!=null?qe:kO(z);!S&&(Math.abs(ti)>1||Math.abs(es)>1)&&q(Math.abs(ti)>Math.abs(es)?"x":"y");let ts={x:0,y:0};S==="y"?(On.includes("top")||On.includes("bottom"))&&(On.includes("top")&&es<0||On.includes("bottom")&&es>0)&&(ts.y=es):S==="x"&&(On.includes("left")||On.includes("right"))&&(On.includes("left")&&ti<0||On.includes("right")&&ti>0)&&(ts.x=ti),(Math.abs(ts.x)>0||Math.abs(ts.y)>0)&&Rt(!0),(In=Tr.current)==null||In.style.setProperty("--swipe-amount-x",`${ts.x}px`),(An=Tr.current)==null||An.style.setProperty("--swipe-amount-y",`${ts.y}px`)}},Jt&&!h.jsx?H.createElement("button",{"aria-label":B,"data-disabled":kf,"data-close-button":!0,onClick:kf||!Q?()=>{}:()=>{var ye;Jr(),(ye=h.onDismiss)==null||ye.call(h,h)},className:Dn(O==null?void 0:O.closeButton,(s=h==null?void 0:h.classNames)==null?void 0:s.closeButton)},(i=E==null?void 0:E.close)!=null?i:aO):null,h.jsx||p.isValidElement(h.title)?h.jsx?h.jsx:typeof h.title=="function"?h.title():h.title:H.createElement(H.Fragment,null,$||h.icon||h.promise?H.createElement("div",{"data-icon":"",className:Dn(O==null?void 0:O.icon,(o=h==null?void 0:h.classNames)==null?void 0:o.icon)},h.promise||h.type==="loading"&&!h.icon?h.icon||PT():null,h.type!=="loading"?h.icon||(E==null?void 0:E[$])||eO($):null):null,H.createElement("div",{"data-content":"",className:Dn(O==null?void 0:O.content,(a=h==null?void 0:h.classNames)==null?void 0:a.content)},H.createElement("div",{"data-title":"",className:Dn(O==null?void 0:O.title,(c=h==null?void 0:h.classNames)==null?void 0:c.title)},typeof h.title=="function"?h.title():h.title),h.description?H.createElement("div",{"data-description":"",className:Dn(L,Ee,O==null?void 0:O.description,(u=h==null?void 0:h.classNames)==null?void 0:u.description)},typeof h.description=="function"?h.description():h.description):null),p.isValidElement(h.cancel)?h.cancel:h.cancel&&Mc(h.cancel)?H.createElement("button",{"data-button":!0,"data-cancel":!0,style:h.cancelButtonStyle||A,onClick:ye=>{var Le,qe;Mc(h.cancel)&&Q&&((qe=(Le=h.cancel).onClick)==null||qe.call(Le,ye),Jr())},className:Dn(O==null?void 0:O.cancelButton,(d=h==null?void 0:h.classNames)==null?void 0:d.cancelButton)},h.cancel.label):null,p.isValidElement(h.action)?h.action:h.action&&Mc(h.action)?H.createElement("button",{"data-button":!0,"data-action":!0,style:h.actionButtonStyle||M,onClick:ye=>{var Le,qe;Mc(h.action)&&((qe=(Le=h.action).onClick)==null||qe.call(Le,ye),!ye.defaultPrevented&&Jr())},className:Dn(O==null?void 0:O.actionButton,(f=h==null?void 0:h.classNames)==null?void 0:f.actionButton)},h.action.label):null))};function iw(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function EO(e,t){let n={};return[e,t].forEach((r,s)=>{let i=s===1,o=i?"--mobile-offset":"--offset",a=i?vO:yO;function c(u){["top","right","bottom","left"].forEach(d=>{n[`${o}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?c(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${o}-${u}`]=a:n[`${o}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):c(a)}),n}var jO=p.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:s=["altKey","KeyT"],expand:i,closeButton:o,className:a,offset:c,mobileOffset:u,theme:d="light",richColors:f,duration:m,style:h,visibleToasts:y=gO,toastOptions:g,dir:w=iw(),gap:v=wO,loadingIcon:x,icons:b,containerAriaLabel:_="Notifications",pauseWhenPageIsHidden:j}=e,[k,C]=H.useState([]),N=H.useMemo(()=>Array.from(new Set([r].concat(k.filter(I=>I.position).map(I=>I.position)))),[k,r]),[T,A]=H.useState([]),[M,P]=H.useState(!1),[L,R]=H.useState(!1),[z,U]=H.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),V=H.useRef(null),D=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),O=H.useRef(null),E=H.useRef(!1),B=H.useCallback(I=>{C(S=>{var q;return(q=S.find(Z=>Z.id===I.id))!=null&&q.delete||Ut.dismiss(I.id),S.filter(({id:Z})=>Z!==I.id)})},[]);return H.useEffect(()=>Ut.subscribe(I=>{if(I.dismiss){C(S=>S.map(q=>q.id===I.id?{...q,delete:!0}:q));return}setTimeout(()=>{K_.flushSync(()=>{C(S=>{let q=S.findIndex(Z=>Z.id===I.id);return q!==-1?[...S.slice(0,q),{...S[q],...I},...S.slice(q+1)]:[I,...S]})})})}),[]),H.useEffect(()=>{if(d!=="system"){U(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?U("dark"):U("light")),typeof window>"u")return;let I=window.matchMedia("(prefers-color-scheme: dark)");try{I.addEventListener("change",({matches:S})=>{U(S?"dark":"light")})}catch{I.addListener(({matches:q})=>{try{U(q?"dark":"light")}catch(Z){console.error(Z)}})}},[d]),H.useEffect(()=>{k.length<=1&&P(!1)},[k]),H.useEffect(()=>{let I=S=>{var q,Z;s.every(te=>
452S[te]||S.code===te)&&(P(!0),(q=V.current)==null||q.focus()),S.code==="Escape"&&(document.activeElement===V.current||(Z=V.current)!=null&&Z.contains(document.activeElement))&&P(!1)};return document.addEventListener("keydown",I),()=>document.removeEventListener("keydown",I)},[s]),H.useEffect(()=>{if(V.current)return()=>{O.current&&(O.current.focus({preventScroll:!0}),O.current=null,E.current=!1)}},[V.current]),H.createElement("section",{ref:t,"aria-label":`${_} ${D}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},N.map((I,S)=>{var q;let[Z,te]=I.split("-");return k.length?H.createElement("ol",{key:I,dir:w==="auto"?iw():w,tabIndex:-1,ref:V,className:a,"data-sonner-toaster":!0,"data-theme":z,"data-y-position":Z,"data-lifted":M&&k.length>1&&!i,"data-x-position":te,style:{"--front-toast-height":`${((q=T[0])==null?void 0:q.height)||0}px`,"--width":`${xO}px`,"--gap":`${v}px`,...h,...EO(c,u)},onBlur:re=>{E.current&&!re.currentTarget.contains(re.relatedTarget)&&(E.current=!1,O.current&&(O.current.focus({preventScroll:!0}),O.current=null))},onFocus:re=>{re.target instanceof HTMLElement&&re.target.dataset.dismissible==="false"||E.current||(E.current=!0,O.current=re.relatedTarget)},onMouseEnter:()=>P(!0),onMouseMove:()=>P(!0),onMouseLeave:()=>{L||P(!1)},onDragEnd:()=>P(!1),onPointerDown:re=>{re.target instanceof HTMLElement&&re.target.dataset.dismissible==="false"||R(!0)},onPointerUp:()=>R(!1)},k.filter(re=>!re.position&&S===0||re.position===I).map((re,Ce)=>{var he,Be;return H.createElement(SO,{key:re.id,icons:b,index:Ce,toast:re,defaultRichColors:f,duration:(he=g==null?void 0:g.duration)!=null?he:m,className:g==null?void 0:g.className,descriptionClassName:g==null?void 0:g.descriptionClassName,invert:n,visibleToasts:y,closeButton:(Be=g==null?void 0:g.closeButton)!=null?Be:o,interacting:L,position:I,style:g==null?void 0:g.style,unstyled:g==null?void 0:g.unstyled,classNames:g==null?void 0:g.classNames,cancelButtonStyle:g==null?void 0:g.cancelButtonStyle,actionButtonStyle:g==null?void 0:g.actionButtonStyle,removeToast:B,toasts:k.filter(xt=>xt.position==re.position),heights:T.filter(xt=>xt.position==re.position),setHeights:A,expandByDefault:i,gap:v,loadingIcon:x,expanded:M,pauseWhenPageIsHidden:j,swipeDirections:e.swipeDirections})})):null}))});const CO=({...e})=>{const{theme:t="system"}=JA();return l.jsx(jO,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};var NO=sg[" useId ".trim().toString()]||(()=>{}),TO=0;function jt(e){const[t,n]=p.useState(NO());return Qn(()=>{n(r=>r??String(TO++))},[e]),t?`radix-${t}`:""}const PO=["top","right","bottom","left"],Hs=Math.min,rn=Math.max,Wu=Math.round,Dc=Math.floor,xr=e=>({x:e,y:e}),RO={left:"right",right:"left",bottom:"top",top:"bottom"},IO={start:"end",end:"start"};function rm(e,t,n){return rn(e,Hs(t,n))}function Wr(e,t){return typeof e=="function"?e(t):e}function qr(e){return e.split("-")[0]}function la(e){return e.split("-")[1]}function ly(e){return e==="x"?"y":"x"}function cy(e){return e==="y"?"height":"width"}const AO=new Set(["top","bottom"]);function gr(e){return AO.has(qr(e))?"y":"x"}function uy(e){return ly(gr(e))}function OO(e,t,n){n===void 0&&(n=!1);const r=la(e),s=uy(e),i=cy(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=qu(o)),[o,qu(o)]}function MO(e){const t=qu(e);return[sm(e),t,sm(t)]}function sm(e){return e.replace(/start|end/g,t=>IO[t])}const ow=["left","right"],aw=["right","left"],DO=["top","bottom"],LO=["bottom","top"];function $O(e,t,n){switch(e){case"top":case"bottom":return n?t?aw:ow:t?ow:aw;case"left":case"right":return t?DO:LO;default:return[]}}function zO(e,t,n,r){const s=la(e);let i=$O(qr(e),n==="start",r);return s&&(i=i.map(o=>o+"-"+s),t&&(i=i.concat(i.map(sm)))),i}function qu(e){return e.replace(/left|right|bottom|top/g,t=>RO[t])}function FO(e){return{top:0,right:0,bottom:0,left:0,...e}}function Zk(e){return typeof e!="number"?FO(e):{top:e,right:e,bottom:e,left:e}}function Ku(e){const{x:t,y:n,width:r,height:s}=e;return{width:r,height:s,top:n,left:t,right:t+r,bottom:n+s,x:t,y:n}}
vendor: 17,889 bytes, line 452
452function lw(e,t,n){let{reference:r,floating:s}=e;const i=gr(t),o=uy(t),a=cy(o),c=qr(t),u=i==="y",d=r.x+r.width/2-s.width/2,f=r.y+r.height/2-s.height/2,m=r[a]/2-s[a]/2;let h;switch(c){case"top":h={x:d,y:r.y-s.height};break;case"bottom":h={x:d,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-s.width,y:f};break;default:h={x:r.x,y:r.y}}switch(la(t)){case"start":h[o]-=m*(n&&u?-1:1);break;case"end":h[o]+=m*(n&&u?-1:1);break}return h}const UO=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:o}=n,a=i.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:d,y:f}=lw(u,r,c),m=r,h={},y=0;for(let g=0;g<a.length;g++){const{name:w,fn:v}=a[g],{x,y:b,data:_,reset:j}=await v({x:d,y:f,initialPlacement:r,placement:m,strategy:s,middlewareData:h,rects:u,platform:o,elements:{reference:e,floating:t}});d=x??d,f=b??f,h={...h,[w]:{...h[w],..._}},j&&y<=50&&(y++,typeof j=="object"&&(j.placement&&(m=j.placement),j.rects&&(u=j.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:s}):j.rects),{x:d,y:f}=lw(u,m,c)),g=-1)}return{x:d,y:f,placement:m,strategy:s,middlewareData:h}};async function Cl(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:i,rects:o,elements:a,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:m=!1,padding:h=0}=Wr(t,e),y=Zk(h),w=a[m?f==="floating"?"reference":"floating":f],v=Ku(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(w)))==null||n?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:c})),x=f==="floating"?{x:r,y:s,width:o.floating.width,height:o.floating.height}:o.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),_=await(i.isElement==null?void 0:i.isElement(b))?await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1}:{x:1,y:1},j=Ku(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:b,strategy:c}):x);return{top:(v.top-j.top+y.top)/_.y,bottom:(j.bottom-v.bottom+y.bottom)/_.y,left:(v.left-j.left+y.left)/_.x,right:(j.right-v.right+y.right)/_.x}}const BO=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:i,platform:o,elements:a,middlewareData:c}=t,{element:u,padding:d=0}=Wr(e,t)||{};if(u==null)return{};const f=Zk(d),m={x:n,y:r},h=uy(s),y=cy(h),g=await o.getDimensions(u),w=h==="y",v=w?"top":"left",x=w?"bottom":"right",b=w?"clientHeight":"clientWidth",_=i.reference[y]+i.reference[h]-m[h]-i.floating[y],j=m[h]-i.reference[h],k=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let C=k?k[b]:0;(!C||!await(o.isElement==null?void 0:o.isElement(k)))&&(C=a.floating[b]||i.floating[y]);const N=_/2-j/2,T=C/2-g[y]/2-1,A=Hs(f[v],T),M=Hs(f[x],T),P=A,L=C-g[y]-M,R=C/2-g[y]/2+N,z=rm(P,R,L),U=!c.arrow&&la(s)!=null&&R!==z&&i.reference[y]/2-(R<P?A:M)-g[y]/2<0,V=U?R<P?R-P:R-L:0;return{[h]:m[h]+V,data:{[h]:z,centerOffset:R-z-V,...U&&{alignmentOffset:V}},reset:U}}}),HO=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:i,rects:o,initialPlacement:a,platform:c,elements:u}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:m,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:g=!0,...w}=Wr(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const v=qr(s),x=gr(a),b=qr(a)===a,_=await(c.isRTL==null?void 0:c.isRTL(u.floating)),j=m||(b||!g?[qu(a)]:MO(a)),k=y!=="none";!m&&k&&j.push(...zO(a,g,y,_));const C=[a,...j],N=await Cl(t,w),T=[];let A=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&T.push(N[v]),f){const R=OO(s,o,_);T.push(N[R[0]],N[R[1]])}if(A=[...A,{placement:s,overflows:T}],!T.every(R=>R<=0)){var M,P;const R=(((M=i.flip)==null?void 0:M.index)||0)+1,z=C[R];if(z&&(!(f==="alignment"?x!==gr(z):!1)||A.every(D=>D.overflows[0]>0&&gr(D.placement)===x)))return{data:{index:R,overflows:A},reset:{placement:z}};let U=(P=A.filter(V=>V.overflows[0]<=0).sort((V,D)=>V.overflows[1]-D.overflows[1])[0])==null?void 0:P.placement;if(!U)switch(h){case"bestFit":{var L;const V=(L=A.filter(D=>{if(k){const O=gr(D.placement);return O===x||O==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(O=>O>0).reduce((O,E)=>O+E,0)]).sort((D,O)=>D[1]-O[1])[0])==null?void 0:L[0];V&&(U=V);break}case"initialPlacement":U=a;break}if(s!==U)return{reset:{placement:U}}}return{}}}};function cw(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function uw(e){return PO.some(t=>e[t]>=0)}const VO=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...s}=Wr(e,t);switch(r){case"referenceHidden":{const i=await Cl(t,{...s,elementContext:"reference"}),o=cw(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:uw(o)}}}case"escaped":{const i=await Cl(t,{...s,altBoundary:!0}),o=cw(i,n.floating);return{data:{escapedOffsets:o,escaped:uw(o)}}}default:return{}}}}},Xk=new Set(["left","top"]);async function WO(e,t){const{placement:n,platform:r,elements:s}=e,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=qr(n),a=la(n),c=gr(n)==="y",u=Xk.has(o)?-1:1,d=i&&c?-1:1,f=Wr(t,e);let{mainAxis:m,crossAxis:h,alignmentAxis:y}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof y=="number"&&(h=a==="end"?y*-1:y),c?{x:h*d,y:m*u}:{x:m*u,y:h*d}}const qO=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:i,placement:o,middlewareData:a}=t,c=await WO(t,e);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:s+c.x,y:i+c.y,data:{...c,placement:o}}}}},KO=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:a={fn:w=>{let{x:v,y:x}=w;return{x:v,y:x}}},...c}=Wr(e,t),u={x:n,y:r},d=await Cl(t,c),f=gr(qr(s)),m=ly(f);let h=u[m],y=u[f];if(i){const w=m==="y"?"top":"left",v=m==="y"?"bottom":"right",x=h+d[w],b=h-d[v];h=rm(x,h,b)}if(o){const w=f==="y"?"top":"left",v=f==="y"?"bottom":"right",x=y+d[w],b=y-d[v];y=rm(x,y,b)}const g=a.fn({...t,[m]:h,[f]:y});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[m]:i,[f]:o}}}}}},GO=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:s,rects:i,middlewareData:o}=t,{offset:a=0,mainAxis:c=!0,crossAxis:u=!0}=Wr(e,t),d={x:n,y:r},f=gr(s),m=ly(f);let h=d[m],y=d[f];const g=Wr(a,t),w=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(c){const b=m==="y"?"height":"width",_=i.reference[m]-i.floating[b]+w.mainAxis,j=i.reference[m]+i.reference[b]-w.mainAxis;h<_?h=_:h>j&&(h=j)}if(u){var v,x;const b=m==="y"?"width":"height",_=Xk.has(qr(s)),j=i.reference[f]-i.floating[b]+(_&&((v=o.offset)==null?void 0:v[f])||0)+(_?0:w.crossAxis),k=i.reference[f]+i.reference[b]+(_?0:((x=o.offset)==null?void 0:x[f])||0)-(_?w.crossAxis:0);y<j?y=j:y>k&&(y=k)}return{[m]:h,[f]:y}}}},YO=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:s,rects:i,platform:o,elements:a}=t,{apply:c=()=>{},...u}=Wr(e,t),d=await Cl(t,u),f=qr(s),m=la(s),h=gr(s)==="y",{width:y,height:g}=i.floating;let w,v;f==="top"||f==="bottom"?(w=f,v=m===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(v=f,w=m==="end"?"top":"bottom");const x=g-d.top-d.bottom,b=y-d.left-d.right,_=Hs(g-d[w],x),j=Hs(y-d[v],b),k=!t.middlewareData.shift;let C=_,N=j;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(N=b),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=x),k&&!m){const A=rn(d.left,0),M=rn(d.right,0),P=rn(d.top,0),L=rn(d.bottom,0);h?N=y-2*(A!==0||M!==0?A+M:rn(d.left,d.right)):C=g-2*(P!==0||L!==0?P+L:rn(d.top,d.bottom))}await c({...t,availableWidth:N,availableHeight:C});const T=await o.getDimensions(a.floating);return y!==T.width||g!==T.height?{reset:{rects:!0}}:{}}}};function Ld(){return typeof window<"u"}function ca(e){return Jk(e)?(e.nodeName||"").toLowerCase():"#document"}function cn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Sr(e){var t;return(t=(Jk(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Jk(e){return Ld()?e instanceof Node||e instanceof cn(e).Node:!1}function Zn(e){return Ld()?e instanceof Element||e instanceof cn(e).Element:!1}function br(e){return Ld()?e instanceof HTMLElement||e instanceof cn(e).HTMLElement:!1}function dw(e){return!Ld()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof cn(e).ShadowRoot}const QO=new Set(["inline","contents"]);function ec(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=Xn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!QO.has(s)}const ZO=new Set(["table","td","th"]);function XO(e){return ZO.has(ca(e))}const JO=[":popover-open",":modal"];function $d(e){return JO.some(t=>{try{return e.matches(t)}catch{return!1}})}const eM=["transform","translate","scale","rotate","perspective"],tM=["transform","translate","scale","rotate","perspective","filter"],nM=["paint","layout","strict","content"];function dy(e){const t=fy(),n=Zn(e)?Xn(e):e;return eM.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||tM.some(r=>(n.willChange||"").includes(r))||nM.some(r=>(n.contain||"").includes(r))}function rM(e){let t=Vs(e);for(;br(t)&&!qo(t);){if(dy(t))return t;if($d(t))return null;t=Vs(t)}return null}function fy(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const sM=new Set(["html","body","#document"]);function qo(e){return sM.has(ca(e))}function Xn(e){return cn(e).getComputedStyle(e)}function zd(e){return Zn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Vs(e){if(ca(e)==="html")return e;const t=e.assignedSlot||e.parentNode||dw(e)&&e.host||Sr(e);return dw(t)?t.host:t}function eS(e){const t=Vs(e);return qo(t)?e.ownerDocument?e.ownerDocument.body:e.body:br(t)&&ec(t)?t:eS(t)}function Nl(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=eS(e),i=s===((r=e.ownerDocument)==null?void 0:r.body),o=cn(s);if(i){const a=im(o);return t.concat(o,o.visualViewport||[],ec(s)?s:[],a&&n?Nl(a):[])}return t.concat(s,Nl(s,[],n))}function im(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function tS(e){const t=Xn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=br(e),i=s?e.offsetWidth:n,o=s?e.offsetHeight:r,a=Wu(n)!==i||Wu(r)!==o;return a&&(n=i,r=o),{width:n,height:r,$:a}}function hy(e){return Zn(e)?e:e.contextElement}function jo(e){const t=hy(e);if(!br(t))return xr(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:i}=tS(t);let o=(i?Wu(n.width):n.width)/r,a=(i?Wu(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const iM=xr(0);function nS(e){const t=cn(e);return!fy()||!t.visualViewport?iM:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function oM(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==cn(e)?!1:t}function Pi(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),i=hy(e);let o=xr(1);t&&(r?Zn(r)&&(o=jo(r)):o=jo(e));const a=oM(i,n,r)?nS(i):xr(0);let c=(s.left+a.x)/o.x,u=(s.top+a.y)/o.y,d=s.width/o.x,f=s.height/o.y;if(i){const m=cn(i),h=r&&Zn(r)?cn(r):r;let y=m,g=im(y);for(;g&&r&&h!==y;){const w=jo(g),v=g.getBoundingClientRect(),x=Xn(g),b=v.left+(g.clientLeft+parseFloat(x.paddingLeft))*w.x,_=v.top+(g.clientTop+parseFloat(x.paddingTop))*w.y;c*=w.x,u*=w.y,d*=w.x,f*=w.y,c+=b,u+=_,y=cn(g),g=im(y)}}return Ku({width:d,height:f,x:c,y:u})}function py(e,t){const n=zd(e).scrollLeft;return t?t.left+n:Pi(Sr(e)).left+n}function rS(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=r.left+t.scrollLeft-(n?0:py(e,r)),i=r.top+t.scrollTop;return{x:s,y:i}}function aM(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const i=s==="fixed",o=Sr(r),a=t?$d(t.floating):!1;if(r===o||a&&i)return n;let c={scrollLeft:0,scrollTop:0},u=xr(1);const d=xr(0),f=br(r);if((f||!f&&!i)&&((ca(r)!=="body"||ec(o))&&(c=zd(r)),br(r))){const h=Pi(r);u=jo(r),d.x=h.x+r.clientLeft,d.y=h.y+r.clientTop}const m=o&&!f&&!i?rS(o,c,!0):xr(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x+m.x,y:n.y*u.y-c.scrollTop*u.y+d.y+m.y}}function lM(e){return Array.from(e.getClientRects())}function cM(e){const t=Sr(e),n=zd(e),r=e.ownerDocument.body,s=rn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=rn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+py(e);const a=-n.scrollTop;return Xn(r).direction==="rtl"&&(o+=rn(t.clientWidth,r.clientWidth)-s),{width:s,height:i,x:o,y:a}}function uM(e,t){const n=cn(e),r=Sr(e),s=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,a=0,c=0;if(s){i=s.width,o=s.height;const u=fy();(!u||u&&t==="fixed")&&(a=s.offsetLeft,c=s.offsetTop)}return{width:i,height:o,x:a,y:c}}const dM=new Set(["absolute","fixed"]);function fM(e,t){const n=Pi(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,i=br(e)?jo(e):xr(1),o=e.clientWidth*i.x,a=e.clientHeight*i.y,c=s*i.x,u=r*i.y;return{width:o,height:a,x:c,y:u}}function fw(e,t,n){let r;if(t==="viewport")r=uM(e,n);else if(t==="document")r=cM(Sr(e));else if(Zn(t))r=fM(t,n);else{const s=nS(e);r={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return Ku(r)}function sS(e,t){const n=Vs(e);return n===t||!Zn(n)||qo(n)?!1:Xn(n).position==="fixed"||sS(n,t)}function hM(e,t){const n=t.get(e);if(n)return n;let r=Nl(e,[],!1).filter(a=>Zn(a)&&ca(a)!=="body"),s=null;const i=Xn(e).position==="fixed";let o=i?Vs(e):e;for(;Zn(o)&&!qo(o);){const a=Xn(o),c=dy(o);!c&&a.position==="fixed"&&(s=null),(i?!c&&!s:!c&&a.position==="static"&&!!s&&dM.has(s.position)||ec(o)&&!c&&sS(e,o))?r=r.filter(d=>d!==o):s=a,o=Vs(o)}return t.set(e,r),r}function pM(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const o=[...n==="clippingAncestors"?$d(t)?[]:hM(t,this._c):[].concat(n),r],a=o[0],c=o.reduce((u,d)=>{const f=fw(t,d,s);return u.top=rn(f.top,u.top),u.right=Hs(f.right,u.right),u.bottom=Hs(f.bottom,u.bottom),u.left=rn(f.left,u.left),u},fw(t,a,s));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function mM(e){const{width:t,height:n}=tS(e);return{width:t,height:n}}function gM(e,t,n){const r=br(t),s=Sr(t),i=n==="fixed",o=Pi(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=xr(0);function u(){c.x=py(s)}if(r||!r&&!i)if((ca(t)!=="body"||ec(s))&&(a=zd(t)),r){const h=Pi(t,!0,i,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else s&&u();i&&!r&&s&&u();const d=s&&!r&&!i?rS(s,a):xr(0),f=o.left+a.scrollLeft-c.x-d.x,m=o.top+a.scrollTop-c.y-d.y;return{x:f,y:m,width:o.width,height:o.height}}function ih(e){return Xn(e).position==="static"}function hw(e,t){if(!br(e)||Xn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Sr(e)===n&&(n=n.ownerDocument.body),n}function iS(e,t){const n=cn(e);if($d(e))return n;if(!br(e)){let s=Vs(e);for(;s&&!qo(s);){if(Zn(s)&&!ih(s))return s;s=Vs(s)}return n}let r=hw(e,t);for(;r&&XO(r)&&ih(r);)r=hw(r,t);return r&&qo(r)&&ih(r)&&!dy(r)?n:r||rM(e)||n}const yM=async function(e){const t=this.getOffsetParent||iS,n=this.getDimensions,r=await n(e.floating);return{reference:gM(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function vM(e){return Xn(e).direction==="rtl"}const xM={convertOffsetParentRelativeRectToViewportRelativeRect:aM,getDocumentElement:Sr,getClippingRect:pM,getOffsetParent:iS,getElementRects:yM,getClientRects:lM,getDimensions:mM,getScale:jo,isElement:Zn,isRTL:vM};function oS(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function wM(e,t){let n=null,r;const s=Sr(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function o(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const u=e.getBoundingClientRect(),{left:d,top:f,width:m,height:h}=u;if(a||t(),!m||!h)return;const y=Dc(f),g=Dc(s.clientWidth-(d+m)),w=Dc(s.clientHeight-(f+h)),v=Dc(d),b={rootMargin:-y+"px "+-g+"px "+-w+"px "+-v+"px",threshold:rn(0,Hs(1,c))||1};let _=!0;function j(k){const C=k[0].intersectionRatio;if(C!==c){if(!_)return o();C?o(!1,C):r=setTimeout(()=>{o(!1,1e-7)},1e3)}C===1&&!oS(u,e.getBoundingClientRect())&&o(),_=!1}try{n=new IntersectionObserver(j,{...b,root:s.ownerDocument})}catch{n=new IntersectionObserver(j,b)}n.observe(e)}return o(!0),i}function bM(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=hy(e),d=s||i?[...u?Nl(u):[],...Nl(t)]:[];d.forEach(v=>{s&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const f=u&&a?wM(u,n):null;let m=-1,h=null;o&&(h=new ResizeObserver(v=>{let[x]=v;x&&x.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var b;(b=h)==null||b.observe(t)})),n()}),u&&!c&&h.observe(u),h.observe(t));let y,g=c?Pi(e):null;c&&w();function w(){const v=Pi(e);g&&!oS(g,v)&&n(),g=v,y=requestAnimationFrame(w)}return n(),()=>{var v;d.forEach(x=>{s&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),f==null||f(),(v=h)==null||v.disconnect(),h=null,c&&cancelAnimationFrame(y)}}const _M=qO,kM=KO,SM=HO,EM=YO,jM=VO,pw=BO,CM=GO,NM=(e,t,n)=>{const r=new Map,s={platform:xM,...n},i={...s.platform,_c:r};return UO(e,t,{...s,platform:i})};var TM=typeof document<"u",PM=function(){},hu=TM?p.useLayoutEffect:PM;function Gu(e,t){if(e===t)return!0;
vendor: 2,982 bytes, line 452
452if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Gu(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const i=s[r];if(!(i==="_owner"&&e.$$typeof)&&!Gu(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function aS(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function mw(e,t){const n=aS(e);return Math.round(t*n)/n}function oh(e){const t=p.useRef(e);return hu(()=>{t.current=e}),t}function RM(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:c,open:u}=e,[d,f]=p.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=p.useState(r);Gu(m,r)||h(r);const[y,g]=p.useState(null),[w,v]=p.useState(null),x=p.useCallback(D=>{D!==k.current&&(k.current=D,g(D))},[]),b=p.useCallback(D=>{D!==C.current&&(C.current=D,v(D))},[]),_=i||y,j=o||w,k=p.useRef(null),C=p.useRef(null),N=p.useRef(d),T=c!=null,A=oh(c),M=oh(s),P=oh(u),L=p.useCallback(()=>{if(!k.current||!C.current)return;const D={placement:t,strategy:n,middleware:m};M.current&&(D.platform=M.current),NM(k.current,C.current,D).then(O=>{const E={...O,isPositioned:P.current!==!1};R.current&&!Gu(N.current,E)&&(N.current=E,Yl.flushSync(()=>{f(E)}))})},[m,t,n,M,P]);hu(()=>{u===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,f(D=>({...D,isPositioned:!1})))},[u]);const R=p.useRef(!1);hu(()=>(R.current=!0,()=>{R.current=!1}),[]),hu(()=>{if(_&&(k.current=_),j&&(C.current=j),_&&j){if(A.current)return A.current(_,j,L);L()}},[_,j,L,A,T]);const z=p.useMemo(()=>({reference:k,floating:C,setReference:x,setFloating:b}),[x,b]),U=p.useMemo(()=>({reference:_,floating:j}),[_,j]),V=p.useMemo(()=>{const D={position:n,left:0,top:0};if(!U.floating)return D;const O=mw(U.floating,d.x),E=mw(U.floating,d.y);return a?{...D,transform:"translate("+O+"px, "+E+"px)",...aS(U.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:O,top:E}},[n,a,U.floating,d.x,d.y]);return p.useMemo(()=>({...d,update:L,refs:z,elements:U,floatingStyles:V}),[d,L,z,U,V])}const IM=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:s}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?pw({element:r.current,padding:s}).fn(n):{}:r?pw({element:r,padding:s}).fn(n):{}}}},AM=(e,t)=>({..._M(e),options:[e,t]}),OM=(e,t)=>({...kM(e),options:[e,t]}),MM=(e,t)=>({...CM(e),options:[e,t]}),DM=(e,t)=>({...SM(e),options:[e,t]}),LM=(e,t)=>({...EM(e),options:[e,t]}),$M=(e,t)=>({...jM(e),options:[e,t]}),zM=(e,t)=>({...IM(e),options:[e,t]});var FM="Arrow",lS=p.forwardRef((e,t)=>{const{children:n,width:r=10,height:s=5,...i}=e;
vendor: 5,371 bytes, line 452
452return l.jsx(ue.svg,{...i,ref:t,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:l.jsx("polygon",{points:"0,0 30,0 15,10"})})});lS.displayName=FM;var UM=lS;function cS(e){const[t,n]=p.useState(void 0);return Qn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const i=s[0];let o,a;if("borderBoxSize"in i){const c=i.borderBoxSize,u=Array.isArray(c)?c[0]:c;o=u.inlineSize,a=u.blockSize}else o=e.offsetWidth,a=e.offsetHeight;n({width:o,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var my="Popper",[uS,Fd]=Yt(my),[BM,dS]=uS(my),fS=e=>{const{__scopePopper:t,children:n}=e,[r,s]=p.useState(null);return l.jsx(BM,{scope:t,anchor:r,onAnchorChange:s,children:n})};fS.displayName=my;var hS="PopperAnchor",pS=p.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...s}=e,i=dS(hS,n),o=p.useRef(null),a=Ne(t,o);return p.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||o.current)}),r?null:l.jsx(ue.div,{...s,ref:a})});pS.displayName=hS;var gy="PopperContent",[HM,VM]=uS(gy),mS=p.forwardRef((e,t)=>{var re,Ce,he,Be,xt,Pn;const{__scopePopper:n,side:r="bottom",sideOffset:s=0,align:i="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:m=!1,updatePositionStrategy:h="optimized",onPlaced:y,...g}=e,w=dS(gy,n),[v,x]=p.useState(null),b=Ne(t,Xt=>x(Xt)),[_,j]=p.useState(null),k=cS(_),C=(k==null?void 0:k.width)??0,N=(k==null?void 0:k.height)??0,T=r+(i!=="center"?"-"+i:""),A=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},M=Array.isArray(u)?u:[u],P=M.length>0,L={padding:A,boundary:M.filter(qM),altBoundary:P},{refs:R,floatingStyles:z,placement:U,isPositioned:V,middlewareData:D}=RM({strategy:"fixed",placement:T,whileElementsMounted:(...Xt)=>bM(...Xt,{animationFrame:h==="always"}),elements:{reference:w.anchor},middleware:[AM({mainAxis:s+N,alignmentAxis:o}),c&&OM({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?MM():void 0,...L}),c&&DM({...L}),LM({...L,apply:({elements:Xt,rects:J,availableWidth:ge,availableHeight:Rt})=>{const{width:Cr,height:Qr}=J.reference,Nr=Xt.floating.style;Nr.setProperty("--radix-popper-available-width",`${ge}px`),Nr.setProperty("--radix-popper-available-height",`${Rt}px`),Nr.setProperty("--radix-popper-anchor-width",`${Cr}px`),Nr.setProperty("--radix-popper-anchor-height",`${Qr}px`)}}),_&&zM({element:_,padding:a}),KM({arrowWidth:C,arrowHeight:N}),m&&$M({strategy:"referenceHidden",...L})]}),[O,E]=vS(U),B=at(y);Qn(()=>{V&&(B==null||B())},[V,B]);const I=(re=D.arrow)==null?void 0:re.x,S=(Ce=D.arrow)==null?void 0:Ce.y,q=((he=D.arrow)==null?void 0:he.centerOffset)!==0,[Z,te]=p.useState();return Qn(()=>{v&&te(window.getComputedStyle(v).zIndex)},[v]),l.jsx("div",{ref:R.setFloating,"data-radix-popper-content-wrapper":"",style:{...z,transform:V?z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Z,"--radix-popper-transform-origin":[(Be=D.transformOrigin)==null?void 0:Be.x,(xt=D.transformOrigin)==null?void 0:xt.y].join(" "),...((Pn=D.hide)==null?void 0:Pn.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsx(HM,{scope:n,placedSide:O,onArrowChange:j,arrowX:I,arrowY:S,shouldHideArrow:q,children:l.jsx(ue.div,{"data-side":O,"data-align":E,...g,ref:b,style:{...g.style,animation:V?void 0:"none"}})})})});mS.displayName=gy;var gS="PopperArrow",WM={top:"bottom",right:"left",bottom:"top",left:"right"},yS=p.forwardRef(function(t,n){const{__scopePopper:r,...s}=t,i=VM(gS,r),o=WM[i.placedSide];return l.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:l.jsx(UM,{...s,ref:n,style:{...s.style,display:"block"}})})});yS.displayName=gS;function qM(e){return e!==null}var KM=e=>({name:"transformOrigin",options:e,fn(t){var w,v,x;const{placement:n,rects:r,middlewareData:s}=t,o=((w=s.arrow)==null?void 0:w.centerOffset)!==0,a=o?0:e.arrowWidth,c=o?0:e.arrowHeight,[u,d]=vS(n),f={start:"0%",center:"50%",end:"100%"}[d],m=(((v=s.arrow)==null?void 0:v.x)??0)+a/2,h=(((x=s.arrow)==null?void 0:x.y)??0)+c/2;let y="",g="";return u==="bottom"?(y=o?f:`${m}px`,g=`${-c}px`):u==="top"?(y=o?f:`${m}px`,g=`${r.floating.height+c}px`):u==="right"?(y=`${-c}px`,g=o?f:`${h}px`):u==="left"&&(y=`${r.floating.width+c}px`,g=o?f:`${h}px`),{data:{x:y,y:g}}}});function vS(e){const[t,n="center"]=e.split("-");return[t,n]}var xS=fS,wS=pS,bS=mS,_S=yS,[Ud,q7]=Yt("Tooltip",[Fd]),Bd=Fd(),kS="TooltipProvider",GM=700,om="tooltip.open",[YM,yy]=Ud(kS),SS=e=>{const{__scopeTooltip:t,delayDuration:n=GM,skipDelayDuration:r=300,disableHoverableContent:s=!1,children:i}=e,o=p.useRef(!0),a=p.useRef(!1),c=p.useRef(0);return p.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),l.jsx(YM,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:p.useCallback(()=>{window.clearTimeout(c.current),o.current=!1},[]),onClose:p.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>
vendor: 5,049 bytes, line 452
452o.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:p.useCallback(u=>{a.current=u},[]),disableHoverableContent:s,children:i})};SS.displayName=kS;var Tl="Tooltip",[QM,Hd]=Ud(Tl),ES=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:s,onOpenChange:i,disableHoverableContent:o,delayDuration:a}=e,c=yy(Tl,e.__scopeTooltip),u=Bd(t),[d,f]=p.useState(null),m=jt(),h=p.useRef(0),y=o??c.disableHoverableContent,g=a??c.delayDuration,w=p.useRef(!1),[v,x]=kr({prop:r,defaultProp:s??!1,onChange:C=>{C?(c.onOpen(),document.dispatchEvent(new CustomEvent(om))):c.onClose(),i==null||i(C)},caller:Tl}),b=p.useMemo(()=>v?w.current?"delayed-open":"instant-open":"closed",[v]),_=p.useCallback(()=>{window.clearTimeout(h.current),h.current=0,w.current=!1,x(!0)},[x]),j=p.useCallback(()=>{window.clearTimeout(h.current),h.current=0,x(!1)},[x]),k=p.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{w.current=!0,x(!0),h.current=0},g)},[g,x]);return p.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),l.jsx(xS,{...u,children:l.jsx(QM,{scope:t,contentId:m,open:v,stateAttribute:b,trigger:d,onTriggerChange:f,onTriggerEnter:p.useCallback(()=>{c.isOpenDelayedRef.current?k():_()},[c.isOpenDelayedRef,k,_]),onTriggerLeave:p.useCallback(()=>{y?j():(window.clearTimeout(h.current),h.current=0)},[j,y]),onOpen:_,onClose:j,disableHoverableContent:y,children:n})})};ES.displayName=Tl;var am="TooltipTrigger",jS=p.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=Hd(am,n),i=yy(am,n),o=Bd(n),a=p.useRef(null),c=Ne(t,a,s.onTriggerChange),u=p.useRef(!1),d=p.useRef(!1),f=p.useCallback(()=>u.current=!1,[]);return p.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),l.jsx(wS,{asChild:!0,...o,children:l.jsx(ue.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...r,ref:c,onPointerMove:ne(e.onPointerMove,m=>{m.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(s.onTriggerEnter(),d.current=!0)}),onPointerLeave:ne(e.onPointerLeave,()=>{s.onTriggerLeave(),d.current=!1}),onPointerDown:ne(e.onPointerDown,()=>{s.open&&s.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:ne(e.onFocus,()=>{u.current||s.onOpen()}),onBlur:ne(e.onBlur,s.onClose),onClick:ne(e.onClick,s.onClose)})})});jS.displayName=am;var ZM="TooltipPortal",[K7,XM]=Ud(ZM,{forceMount:void 0}),Ko="TooltipContent",CS=p.forwardRef((e,t)=>{const n=XM(Ko,e.__scopeTooltip),{forceMount:r=n.forceMount,side:s="top",...i}=e,o=Hd(Ko,e.__scopeTooltip);return l.jsx(Tt,{present:r||o.open,children:o.disableHoverableContent?l.jsx(NS,{side:s,...i,ref:t}):l.jsx(JM,{side:s,...i,ref:t})})}),JM=p.forwardRef((e,t)=>{const n=Hd(Ko,e.__scopeTooltip),r=yy(Ko,e.__scopeTooltip),s=p.useRef(null),i=Ne(t,s),[o,a]=p.useState(null),{trigger:c,onClose:u}=n,d=s.current,{onPointerInTransitChange:f}=r,m=p.useCallback(()=>{a(null),f(!1)},[f]),h=p.useCallback((y,g)=>{const w=y.currentTarget,v={x:y.clientX,y:y.clientY},x=sD(v,w.getBoundingClientRect()),b=iD(v,x),_=oD(g.getBoundingClientRect()),j=lD([...b,..._]);a(j),f(!0)},[f]);return p.useEffect(()=>()=>m(),[m]),p.useEffect(()=>{if(c&&d){const y=w=>h(w,d),g=w=>h(w,c);return c.addEventListener("pointerleave",y),d.addEventListener("pointerleave",g),()=>{c.removeEventListener("pointerleave",y),d.removeEventListener("pointerleave",g)}}},[c,d,h,m]),p.useEffect(()=>{if(o){const y=g=>{const w=g.target,v={x:g.clientX,y:g.clientY},x=(c==null?void 0:c.contains(w))||(d==null?void 0:d.contains(w)),b=!aD(v,o);x?m():b&&(m(),u())};return document.addEventListener("pointermove",y),()=>document.removeEventListener("pointermove",y)}},[c,d,o,u,m]),l.jsx(NS,{...e,ref:i})}),[eD,tD]=Ud(Tl,{isInside:!1}),nD=WR("TooltipContent"),NS=p.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":s,onEscapeKeyDown:i,onPointerDownOutside:o,...a}=e,c=Hd(Ko,n),u=Bd(n),{onClose:d}=c;return p.useEffect(()=>(document.addEventListener(om,d),()=>document.removeEventListener(om,d)),[d]),p.useEffect(()=>{if(c.trigger){const f=m=>{const h=m.target;h!=null&&h.contains(c.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[c.trigger,d]),l.jsx(Zl,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:l.jsxs(bS,{"data-state":c.stateAttribute,...u,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[l.jsx(nD,{children:r}),l.jsx(eD,{scope:n,isInside:!0,children:l.jsx(pI,{id:c.contentId,role:"tooltip",children:s||r})})]})})});CS.displayName=Ko;var TS="TooltipArrow",rD=p.forwardRef((e,t)=>
452{const{__scopeTooltip:n,...r}=e,s=Bd(n);return tD(TS,n).isInside?null:l.jsx(_S,{...s,...r,ref:t})});rD.displayName=TS;function sD(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,s,i)){case i:return"left";case s:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function iD(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function oD(e){const{top:t,right:n,bottom:r,left:s}=e;return[{x:s,y:t},{x:n,y:t},{x:n,y:r},{x:s,y:r}]}function aD(e,t){const{x:n,y:r}=e;let s=!1;for(let i=0,o=t.length-1;i<t.length;o=i++){const a=t[i],c=t[o],u=a.x,d=a.y,f=c.x,m=c.y;d>r!=m>r&&n<(f-u)*(r-d)/(m-d)+u&&(s=!s)}return s}function lD(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),cD(t)}function cD(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const s=e[r];for(;t.length>=2;){const i=t[t.length-1],o=t[t.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))t.pop();else break}t.push(s)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const s=e[r];for(;n.length>=2;){const i=n[n.length-1],o=n[n.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))n.pop();else break}n.push(s)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var uD=SS,dD=ES,fD=jS,PS=CS;const hD=uD,pD=dD,mD=fD,RS=p.forwardRef(({className:e,sideOffset:t=4,...n},r)=>l.jsx(PS,{ref:r,sideOffset:t,className:X("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));RS.displayName=PS.displayName;var Vd=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(){}},Wd=typeof window>"u"||"Deno"in globalThis;function Fn(){}function gD(e,t){return typeof e=="function"?e(t):e}function yD(e){return typeof e=="number"&&e>=0&&e!==1/0}function vD(e,t){return Math.max(e+(t||0)-Date.now(),0)}function lm(e,t){return typeof e=="function"?e(t):e}function xD(e,t){return typeof e=="function"?e(t):e}function gw(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:o,stale:a}=e;if(o){if(r){if(t.queryHash!==vy(o,t.options))return!1}else if(!Rl(t.queryKey,o))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||s&&s!==t.state.fetchStatus||i&&!i(t))}function yw(e,t){const{exact:n,status:r,predicate:s,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Pl(t.options.mutationKey)!==Pl(i))return!1}else if(!Rl(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function vy(e,t){return((t==null?void 0:t.queryKeyHashFn)||Pl)(e)}function Pl(e){return JSON.stringify(e,(t,n)=>cm(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function Rl(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Rl(e[n],t[n])):!1}function IS(e,t){if(e===t)return e;const n=vw(e)&&vw(t);if(n||cm(e)&&cm(t)){const r=n?e:Object.keys(e),s=r.length,i=n?t:Object.keys(t),o=i.length,a=n?[]:{},c=new Set(r);let u=0;for(let d=0;d<o;d++){const f=n?d:i[d];(!n&&c.has(f)||n)&&e[f]===void 0&&t[f]===void 0?(a[f]=void 0,u++):(a[f]=IS(e[f],t[f]),a[f]===e[f]&&e[f]!==void 0&&u++)}return s===o&&u===s?e:a}return t}function G7(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 vw(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function cm(e){if(!xw(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!xw(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function xw(e){return Object.prototype.toString.call(e)==="[object Object]"}function wD(e){return new Promise(t=>{setTimeout(t,e)})}function bD(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?IS(e,t):t}function _D(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function kD(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var xy=Symbol();function AS(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===xy?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Y7(e,t){return typeof e=="function"?e(...t):!!e}var mi,xs,Po,Cb,SD=(Cb=class extends Vd{constructor(){super();Ie(this,mi);Ie(this,xs);Ie(this,Po);ve(this,Po,t=>{if(!Wd&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){F(this,xs)||this.setEventListener(F(this,Po))}onUnsubscribe(){var t;this.hasListeners()||((t=F(this,xs))==null||t.call(this),ve(this,xs,void 0))}setEventListener(t){var n;ve(this,Po,t),(n=F(this,xs))==null||n.call(this),ve(this,xs,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){F(this,mi)!==t&&(ve(this,mi,t),this.onFocus())}onFocus(){const t=this.isFocused();
vendor: 4,924 bytes, line 452
452this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof F(this,mi)=="boolean"?F(this,mi):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},mi=new WeakMap,xs=new WeakMap,Po=new WeakMap,Cb),OS=new SD,Ro,ws,Io,Nb,ED=(Nb=class extends Vd{constructor(){super();Ie(this,Ro,!0);Ie(this,ws);Ie(this,Io);ve(this,Io,t=>{if(!Wd&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){F(this,ws)||this.setEventListener(F(this,Io))}onUnsubscribe(){var t;this.hasListeners()||((t=F(this,ws))==null||t.call(this),ve(this,ws,void 0))}setEventListener(t){var n;ve(this,Io,t),(n=F(this,ws))==null||n.call(this),ve(this,ws,t(this.setOnline.bind(this)))}setOnline(t){F(this,Ro)!==t&&(ve(this,Ro,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return F(this,Ro)}},Ro=new WeakMap,ws=new WeakMap,Io=new WeakMap,Nb),Yu=new ED;function jD(){let e,t;const n=new Promise((s,i)=>{e=s,t=i});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),e(s)},n.reject=s=>{r({status:"rejected",reason:s}),t(s)},n}function CD(e){return Math.min(1e3*2**e,3e4)}function MS(e){return(e??"online")==="online"?Yu.isOnline():!0}var DS=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function ah(e){return e instanceof DS}function LS(e){let t=!1,n=0,r=!1,s;const i=jD(),o=g=>{var w;r||(m(new DS(g)),(w=e.abort)==null||w.call(e))},a=()=>{t=!0},c=()=>{t=!1},u=()=>OS.isFocused()&&(e.networkMode==="always"||Yu.isOnline())&&e.canRun(),d=()=>MS(e.networkMode)&&e.canRun(),f=g=>{var w;r||(r=!0,(w=e.onSuccess)==null||w.call(e,g),s==null||s(),i.resolve(g))},m=g=>{var w;r||(r=!0,(w=e.onError)==null||w.call(e,g),s==null||s(),i.reject(g))},h=()=>new Promise(g=>{var w;s=v=>{(r||u())&&g(v)},(w=e.onPause)==null||w.call(e)}).then(()=>{var g;s=void 0,r||(g=e.onContinue)==null||g.call(e)}),y=()=>{if(r)return;let g;const w=n===0?e.initialPromise:void 0;try{g=w??e.fn()}catch(v){g=Promise.reject(v)}Promise.resolve(g).then(f).catch(v=>{var k;if(r)return;const x=e.retry??(Wd?0:3),b=e.retryDelay??CD,_=typeof b=="function"?b(n,v):b,j=x===!0||typeof x=="number"&&n<x||typeof x=="function"&&x(n,v);if(t||!j){m(v);return}n++,(k=e.onFail)==null||k.call(e,n,v),wD(_).then(()=>u()?void 0:h()).then(()=>{t?m(v):y()})})};return{promise:i,cancel:o,continue:()=>(s==null||s(),i),cancelRetry:a,continueRetry:c,canStart:d,start:()=>(d()?y():h().then(y),i)}}var ND=e=>setTimeout(e,0);function TD(){let e=[],t=0,n=a=>{a()},r=a=>{a()},s=ND;const i=a=>{t?e.push(a):s(()=>{n(a)})},o=()=>{const a=e;e=[],a.length&&s(()=>{r(()=>{a.forEach(c=>{n(c)})})})};return{batch:a=>{let c;t++;try{c=a()}finally{t--,t||o()}return c},batchCalls:a=>(...c)=>{i(()=>{a(...c)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{s=a}}}var Ot=TD(),gi,Tb,$S=(Tb=class{constructor(){Ie(this,gi)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),yD(this.gcTime)&&ve(this,gi,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Wd?1/0:5*60*1e3))}clearGcTimeout(){F(this,gi)&&(clearTimeout(F(this,gi)),ve(this,gi,void 0))}},gi=new WeakMap,Tb),Ao,yi,yn,vi,kt,Bl,xi,Un,Rr,Pb,PD=(Pb=class extends $S{constructor(t){super();Ie(this,Un);Ie(this,Ao);Ie(this,yi);Ie(this,yn);Ie(this,vi);Ie(this,kt);Ie(this,Bl);Ie(this,xi);ve(this,xi,!1),ve(this,Bl,t.defaultOptions),this.setOptions(t.options),this.observers=[],ve(this,vi,t.client),ve(this,yn,F(this,vi).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ve(this,Ao,ID(this.options)),this.state=t.state??F(this,Ao),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=F(this,kt))==null?void 0:t.promise}setOptions(t){this.options={...F(this,Bl),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&F(this,yn).remove(this)}setData(t,n){const r=bD(this.state.data,t,this.options);return wt(this,Un,Rr).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){wt(this,Un,Rr).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,s;const n=(r=F(this,kt))==null?void 0:r.promise;return(s=F(this,kt))==null||s.cancel(t),n?n.then(Fn).catch(Fn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(F(this,Ao))}isActive(){return this.observers.some(t=>xD(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===xy||this.state.dataUpdateCount+this.state.errorUpdate
vendor: 1,274 bytes, line 452
452Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>lm(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:!vD(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=F(this,kt))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=F(this,kt))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),F(this,yn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(F(this,kt)&&(F(this,xi)?F(this,kt).cancel({revert:!0}):F(this,kt).cancelRetry()),this.scheduleGc()),F(this,yn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||wt(this,Un,Rr).call(this,{type:"invalidate"})}
vendor: 4,428 bytes, line 452
452fetch(t,n){var u,d,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(F(this,kt))return F(this,kt).continueRetry(),F(this,kt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const m=this.observers.find(h=>h.options.queryFn);m&&this.setOptions(m.options)}const r=new AbortController,s=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(ve(this,xi,!0),r.signal)})},i=()=>{const m=AS(this.options,n),y=(()=>{const g={client:F(this,vi),queryKey:this.queryKey,meta:this.meta};return s(g),g})();return ve(this,xi,!1),this.options.persister?this.options.persister(m,y,this):m(y)},a=(()=>{const m={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:F(this,vi),state:this.state,fetchFn:i};return s(m),m})();(u=this.options.behavior)==null||u.onFetch(a,this),ve(this,yi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=a.fetchOptions)==null?void 0:d.meta))&&wt(this,Un,Rr).call(this,{type:"fetch",meta:(f=a.fetchOptions)==null?void 0:f.meta});const c=m=>{var h,y,g,w;ah(m)&&m.silent||wt(this,Un,Rr).call(this,{type:"error",error:m}),ah(m)||((y=(h=F(this,yn).config).onError)==null||y.call(h,m,this),(w=(g=F(this,yn).config).onSettled)==null||w.call(g,this.state.data,m,this)),this.scheduleGc()};return ve(this,kt,LS({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:m=>{var h,y,g,w;if(m===void 0){c(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(m)}catch(v){c(v);return}(y=(h=F(this,yn).config).onSuccess)==null||y.call(h,m,this),(w=(g=F(this,yn).config).onSettled)==null||w.call(g,m,this.state.error,this),this.scheduleGc()},onError:c,onFail:(m,h)=>{wt(this,Un,Rr).call(this,{type:"failed",failureCount:m,error:h})},onPause:()=>{wt(this,Un,Rr).call(this,{type:"pause"})},onContinue:()=>{wt(this,Un,Rr).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),F(this,kt).start()}},Ao=new WeakMap,yi=new WeakMap,yn=new WeakMap,vi=new WeakMap,kt=new WeakMap,Bl=new WeakMap,xi=new WeakMap,Un=new WeakSet,Rr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...RD(r.data,this.options),fetchMeta:t.meta??null};case"success":return ve(this,yi,void 0),{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=t.error;return ah(s)&&s.revert&&F(this,yi)?{...F(this,yi),fetchStatus:"idle"}:{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Ot.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),F(this,yn).notify({query:this,type:"updated",action:t})})},Pb);function RD(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:MS(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function ID(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var ur,Rb,AD=(Rb=class extends Vd{constructor(t={}){super();Ie(this,ur);this.config=t,ve(this,ur,new Map)}build(t,n,r){const s=n.queryKey,i=n.queryHash??vy(s,n);let o=this.get(i);return o||(o=new PD({client:t,queryKey:s,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(o)),o}add(t){F(this,ur).has(t.queryHash)||(F(this,ur).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=F(this,ur).get(t.queryHash);n&&(t.destroy(),n===t&&F(this,ur).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ot.batch(()=>
452{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return F(this,ur).get(t)}getAll(){return[...F(this,ur).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>gw(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>gw(t,r)):n}notify(t){Ot.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ot.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ot.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},ur=new WeakMap,Rb),dr,It,wi,fr,as,Ib,OD=(Ib=class extends $S{constructor(t){super();Ie(this,fr);Ie(this,dr);Ie(this,It);Ie(this,wi);this.mutationId=t.mutationId,ve(this,It,t.mutationCache),ve(this,dr,[]),this.state=t.state||MD(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){F(this,dr).includes(t)||(F(this,dr).push(t),this.clearGcTimeout(),F(this,It).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ve(this,dr,F(this,dr).filter(n=>n!==t)),this.scheduleGc(),F(this,It).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){F(this,dr).length||(this.state.status==="pending"?this.scheduleGc():F(this,It).remove(this))}continue(){var t;return((t=F(this,wi))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,a,c,u,d,f,m,h,y,g,w,v,x,b,_,j,k,C,N;const n=()=>{wt(this,fr,as).call(this,{type:"continue"})};ve(this,wi,LS({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(T,A)=>{wt(this,fr,as).call(this,{type:"failed",failureCount:T,error:A})},onPause:()=>{wt(this,fr,as).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>F(this,It).canRun(this)}));const r=this.state.status==="pending",s=!F(this,wi).canStart();try{if(r)n();else{wt(this,fr,as).call(this,{type:"pending",variables:t,isPaused:s}),await((o=(i=F(this,It).config).onMutate)==null?void 0:o.call(i,t,this));const A=await((c=(a=this.options).onMutate)==null?void 0:c.call(a,t));A!==this.state.context&&wt(this,fr,as).call(this,{type:"pending",context:A,variables:t,isPaused:s})}const T=await F(this,wi).start();return await((d=(u=F(this,It).config).onSuccess)==null?void 0:d.call(u,T,t,this.state.context,this)),await((m=(f=this.options).onSuccess)==null?void 0:m.call(f,T,t,this.state.context)),await((y=(h=F(this,It).config).onSettled)==null?void 0:y.call(h,T,null,this.state.variables,this.state.context,this)),await((w=(g=this.options).onSettled)==null?void 0:w.call(g,T,null,t,this.state.context)),wt(this,fr,as).call(this,{type:"success",data:T}),T}catch(T){try{throw await((x=(v=F(this,It).config).onError)==null?void 0:x.call(v,T,t,this.state.context,this)),await((_=(b=this.options).onError)==null?void 0:_.call(b,T,t,this.state.context)),await((k=(j=F(this,It).config).onSettled)==null?void 0:k.call(j,void 0,T,this.state.variables,this.state.context,this)),await((N=(C=this.options).onSettled)==null?void 0:N.call(C,void 0,T,t,this.state.context)),T}finally{wt(this,fr,as).call(this,{type:"error",error:T})}}finally{F(this,It).runNext(this)}}},dr=new WeakMap,It=new WeakMap,wi=new WeakMap,fr=new WeakSet,as=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Ot.batch(()=>{F(this,dr).forEach(r=>{r.onMutationUpdate(t)}),F(this,It).notify({mutation:this,type:"updated",action:t})})},Ib);function MD(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Mr,Bn,Hl,Ab,DD=(Ab=class extends Vd{constructor(t={}){super();Ie(this,Mr);Ie(this,Bn);Ie(this,Hl);this.config=t,ve(this,Mr,new Set),ve(this,Bn,new Map),ve(this,Hl,0)}build(t,n,r){const s=new OD({mutationCache:this,mutationId:++pc(this,Hl)._,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){F(this,Mr).add(t);const n=Lc(t);if(typeof n=="string"){const r=F(this,Bn).get(n);r?r.push(t):F(this,Bn).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(F(this,Mr).delete(t)){const n=Lc(t);if(typeof n=="string"){const r=F(this,Bn).get(n);if(r)if(r.length>1){const s=r.indexOf(t);s!==-1&&r.splice(s,1)}else r[0]===t&&F(this,Bn).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Lc(t);if(typeof n=="string"){const r=F(this,Bn).get(n),s=r==null?void 0:r.find(i=>i.state.status==="pending");return!s||s===t}else return!0}runNext(t){var r;const n=Lc(t);if(typeof n=="string"){const s=(r=F(this,Bn).get(n))==null?void 0:r.find(i=>
vendor: 4,094 bytes, line 452
452i!==t&&i.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ot.batch(()=>{F(this,Mr).forEach(t=>{this.notify({type:"removed",mutation:t})}),F(this,Mr).clear(),F(this,Bn).clear()})}getAll(){return Array.from(F(this,Mr))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>yw(n,r))}findAll(t={}){return this.getAll().filter(n=>yw(t,n))}notify(t){Ot.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Ot.batch(()=>Promise.all(t.map(n=>n.continue().catch(Fn))))}},Mr=new WeakMap,Bn=new WeakMap,Hl=new WeakMap,Ab);function Lc(e){var t;return(t=e.options.scope)==null?void 0:t.id}function ww(e){return{onFetch:(t,n)=>{var d,f,m,h,y;const r=t.options,s=(m=(f=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:f.fetchMore)==null?void 0:m.direction,i=((h=t.state.data)==null?void 0:h.pages)||[],o=((y=t.state.data)==null?void 0:y.pageParams)||[];let a={pages:[],pageParams:[]},c=0;const u=async()=>{let g=!1;const w=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},v=AS(t.options,t.fetchOptions),x=async(b,_,j)=>{if(g)return Promise.reject();if(_==null&&b.pages.length)return Promise.resolve(b);const C=(()=>{const M={client:t.client,queryKey:t.queryKey,pageParam:_,direction:j?"backward":"forward",meta:t.options.meta};return w(M),M})(),N=await v(C),{maxPages:T}=t.options,A=j?kD:_D;return{pages:A(b.pages,N,T),pageParams:A(b.pageParams,_,T)}};if(s&&i.length){const b=s==="backward",_=b?LD:bw,j={pages:i,pageParams:o},k=_(r,j);a=await x(j,k,b)}else{const b=e??i.length;do{const _=c===0?o[0]??r.initialPageParam:bw(r,a);if(c>0&&_==null)break;a=await x(a,_),c++}while(c<b)}return a};t.options.persister?t.fetchFn=()=>{var g,w;return(w=(g=t.options).persister)==null?void 0:w.call(g,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function bw(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function LD(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Ze,bs,_s,Oo,Mo,ks,Do,Lo,Ob,$D=(Ob=class{constructor(e={}){Ie(this,Ze);Ie(this,bs);Ie(this,_s);Ie(this,Oo);Ie(this,Mo);Ie(this,ks);Ie(this,Do);Ie(this,Lo);ve(this,Ze,e.queryCache||new AD),ve(this,bs,e.mutationCache||new DD),ve(this,_s,e.defaultOptions||{}),ve(this,Oo,new Map),ve(this,Mo,new Map),ve(this,ks,0)}mount(){pc(this,ks)._++,F(this,ks)===1&&(ve(this,Do,OS.subscribe(async e=>{e&&(await this.resumePausedMutations(),F(this,Ze).onFocus())})),ve(this,Lo,Yu.subscribe(async e=>{e&&(await this.resumePausedMutations(),F(this,Ze).onOnline())})))}unmount(){var e,t;pc(this,ks)._--,F(this,ks)===0&&((e=F(this,Do))==null||e.call(this),ve(this,Do,void 0),(t=F(this,Lo))==null||t.call(this),ve(this,Lo,void 0))}isFetching(e){return F(this,Ze).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return F(this,bs).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=F(this,Ze).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=F(this,Ze).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(lm(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return F(this,Ze).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=F(this,Ze).get(r.queryHash),i=s==null?void 0:s.state.data,o=gD(t,i);if(o!==void 0)return F(this,Ze).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return Ot.batch(()=>F(this,Ze).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=F(this,Ze).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=F(this,Ze);Ot.batch(()=>
452{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=F(this,Ze);return Ot.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Ot.batch(()=>F(this,Ze).findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(Fn).catch(Fn)}invalidateQueries(e,t={}){return Ot.batch(()=>(F(this,Ze).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Ot.batch(()=>F(this,Ze).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let i=s.fetch(void 0,n);return n.throwOnError||(i=i.catch(Fn)),s.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Fn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=F(this,Ze).build(this,t);return n.isStaleByTime(lm(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Fn).catch(Fn)}fetchInfiniteQuery(e){return e.behavior=ww(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Fn).catch(Fn)}ensureInfiniteQueryData(e){return e.behavior=ww(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Yu.isOnline()?F(this,bs).resumePausedMutations():Promise.resolve()}getQueryCache(){return F(this,Ze)}getMutationCache(){return F(this,bs)}getDefaultOptions(){return F(this,_s)}setDefaultOptions(e){ve(this,_s,e)}setQueryDefaults(e,t){F(this,Oo).set(Pl(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...F(this,Oo).values()],n={};return t.forEach(r=>{Rl(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){F(this,Mo).set(Pl(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...F(this,Mo).values()],n={};return t.forEach(r=>{Rl(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...F(this,_s).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=vy(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===xy&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...F(this,_s).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){F(this,Ze).clear(),F(this,bs).clear()}},Ze=new WeakMap,bs=new WeakMap,_s=new WeakMap,Oo=new WeakMap,Mo=new WeakMap,ks=new WeakMap,Do=new WeakMap,Lo=new WeakMap,Ob),zS=p.createContext(void 0),Q7=e=>{const t=p.useContext(zS);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},zD=({client:e,children:t})=>(p.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),l.jsx(zS.Provider,{value:e,children:t}));/** 453 * @remix-run/router v1.23.0 454 * 455 * Copyright (c) Remix Software Inc. 456 * 457 * This source code is licensed under the MIT license found in the 458 * LICENSE.md file in the root directory of this source tree. 459 * 460 * @license MIT 461 */function Il(){return Il=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Il.apply(this,arguments)}var js;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(js||(js={}));const _w="popstate";function FD(e){e===void 0&&(e={});function t(r,s){let{pathname:i,search:o,hash:a}=r.location;return um("",{pathname:i,search:o,hash:a},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(r,s){return typeof s=="string"?s:Qu(s)}return BD(t,n,null,e)}function lt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function FS(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function UD(){return Math.random().toString(36).substr(2,8)}function kw(e,t){return{usr:e.state,key:e.key,idx:t}}function um(e,t,n,r){return n===void 0&&(n=null),Il({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ua(t):t,{state:n,key:t&&t.key||r||UD()})}function Qu(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function ua(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function BD(e,t,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:i=!1}=r,o=s.history,a=js.Pop,c=null,u=d();u==null&&(u=0,o.replaceState(Il({},o.state,{idx:u}),""));function d(){return(o.state||{idx:null}).idx}function f(){a=js.Pop;let w=d(),v=w==null?null:w-u;u=w,c&&c({action:a,location:g.location,delta:v})}function m(w,v){a=js.Push;let x=um(g.location,w,v);u=d()+1;let b=kw(x,u),_=g.createHref(x);try{o.pushState(b,"",_)}catch(j){if(j instanceof DOMException&&j.name==="DataCloneError")throw j;s.location.assign(_)}i&&c&&c({action:a,location:g.location,delta:1})}function h(w,v){a=js.Replace;let x=um(g.location,w,v);u=d();let b=kw(x,u),_=g.createHref(x);o.replaceState(b,"",_),i&&c&&c({action:a,location:g.location,delta:0})}function y(w){let v=s.location.origin!=="null"?s.location.origin:s.location.href,x=typeof w=="string"?w:Qu(w);return x=x.replace(/ $/,"%20"),lt(v,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,v)}let g={get action(){return a},get location(){return e(s,o)},listen(w){if(c)throw new Error("A history only accepts one active listener");return s.addEventListener(_w,f),c=w,()=>{s.removeEventListener(_w,f),c=null}},createHref(w){return t(s,w)},createURL:y,encodeLocation(w){let v=y(w);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:m,replace:h,go(w){return o.go(w)}};return g}var Sw;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Sw||(Sw={}));
vendor: 11,782 bytes, lines 461-470
461function HD(e,t,n){return n===void 0&&(n="/"),VD(e,t,n,!1)}function VD(e,t,n,r){let s=typeof t=="string"?ua(t):t,i=wy(s.pathname||"/",n);if(i==null)return null;let o=US(e);WD(o);let a=null;for(let c=0;a==null&&c<o.length;++c){let u=nL(i);a=eL(o[c],u,r)}return a}function US(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let s=(i,o,a)=>{let c={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};c.relativePath.startsWith("/")&&(lt(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let u=$s([r,c.relativePath]),d=n.concat(c);i.children&&i.children.length>0&&(lt(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),US(i.children,t,d,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:XD(u,i.index),routesMeta:d})};return e.forEach((i,o)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))s(i,o);else for(let c of BS(i.path))s(i,o,c)}),t}function BS(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,s=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return s?[i,""]:[i];let o=BS(r.join("/")),a=[];return a.push(...o.map(c=>c===""?i:[i,c].join("/"))),s&&a.push(...o),a.map(c=>e.startsWith("/")&&c===""?"/":c)}function WD(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:JD(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const qD=/^:[\w-]+$/,KD=3,GD=2,YD=1,QD=10,ZD=-2,Ew=e=>e==="*";function XD(e,t){let n=e.split("/"),r=n.length;return n.some(Ew)&&(r+=ZD),t&&(r+=GD),n.filter(s=>!Ew(s)).reduce((s,i)=>s+(qD.test(i)?KD:i===""?YD:QD),r)}function JD(e,t){return e.length===t.length&&e.slice(0,-1).every((r,s)=>r===t[s])?e[e.length-1]-t[t.length-1]:0}function eL(e,t,n){let{routesMeta:r}=e,s={},i="/",o=[];for(let a=0;a<r.length;++a){let c=r[a],u=a===r.length-1,d=i==="/"?t:t.slice(i.length)||"/",f=jw({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},d),m=c.route;if(!f&&u&&n&&!r[r.length-1].route.index&&(f=jw({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},d)),!f)return null;Object.assign(s,f.params),o.push({params:s,pathname:$s([i,f.pathname]),pathnameBase:oL($s([i,f.pathnameBase])),route:m}),f.pathnameBase!=="/"&&(i=$s([i,f.pathnameBase]))}return o}function jw(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=tL(e.path,e.caseSensitive,e.end),s=t.match(n);if(!s)return null;let i=s[0],o=i.replace(/(.)\/+$/,"$1"),a=s.slice(1);return{params:r.reduce((u,d,f)=>{let{paramName:m,isOptional:h}=d;if(m==="*"){let g=a[f]||"";o=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const y=a[f];return h&&!y?u[m]=void 0:u[m]=(y||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:o,pattern:e}}function tL(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),FS(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,c)=>(r.push({paramName:a,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),r]}function nL(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return FS(!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 wy(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function rL(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:s=""}=typeof e=="string"?ua(e):e;return{pathname:n?n.startsWith("/")?n:sL(n,t):t,search:aL(r),hash:lL(s)}}function sL(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 lh(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function iL(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function HS(e,t){let n=iL(e);return t?n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function VS(e,t,n,r){r===void 0&&(r=!1);let s;typeof e=="string"?s=ua(e):(s=Il({},e),lt(!s.pathname||!s.pathname.includes("?"),lh("?","pathname","search",s)),lt(!s.pathname||!s.pathname.includes("#"),lh("#","pathname","hash",s)),lt(!s.search||!s.search.includes("#"),lh("#","search","hash",s)));let i=e===""||s.pathname==="",o=i?"/":s.pathname,a;if(o==null)a=n;else{let f=t.length-1;if(!r&&o.startsWith("..")){let m=o.split("/");for(;m[0]==="..";)m.shift(),f-=1;s.pathname=m.join("/")}a=f>=0?t[f]:"/"}let c=rL(s,a),u=o&&o!=="/"&&o.endsWith("/"),d=(i||o===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}const $s=e=>e.join("/").replace(/\/\/+/g,"/"),oL=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),aL=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,lL=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function cL(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const WS=["post","put","patch","delete"];new Set(WS);const uL=["get",...WS];new Set(uL);/** 462 * React Router v6.30.1 463 * 464 * Copyright (c) Remix Software Inc. 465 * 466 * This source code is licensed under the MIT license found in the 467 * LICENSE.md file in the root directory of this source tree. 468 * 469 * @license MIT 470 */function Al(){return Al=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Al.apply(this,arguments)}const by=p.createContext(null),dL=p.createContext(null),Li=p.createContext(null),qd=p.createContext(null),Zs=p.createContext({outlet:null,matches:[],isDataRoute:!1}),qS=p.createContext(null);function fL(e,t){let{relative:n}=t===void 0?{}:t;tc()||lt(!1);let{basename:r,navigator:s}=p.useContext(Li),{hash:i,pathname:o,search:a}=GS(e,{relative:n}),c=o;return r!=="/"&&(c=o==="/"?r:$s([r,o])),s.createHref({pathname:c,search:a,hash:i})}function tc(){return p.useContext(qd)!=null}function Yr(){return tc()||lt(!1),p.useContext(qd).location}function KS(e){p.useContext(Li).static||p.useLayoutEffect(e)}function Er(){let{isDataRoute:e}=p.useContext(Zs);return e?EL():hL()}function hL(){tc()||lt(!1);let e=p.useContext(by),{basename:t,future:n,navigator:r}=p.useContext(Li),{matches:s}=p.useContext(Zs),{pathname:i}=Yr(),o=JSON.stringify(HS(s,n.v7_relativeSplatPath)),a=p.useRef(!1);return KS(()=>{a.current=!0}),p.useCallback(function(u,d){if(d===void 0&&(d={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let f=VS(u,JSON.parse(o),i,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:$s([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,o,i,e])}function Z7(){let{matches:e}=p.useContext(Zs),t=e[e.length-1];return t?t.params:{}}function GS(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=p.useContext(Li),{matches:s}=p.useContext(Zs),{pathname:i}=Yr(),o=JSON.stringify(HS(s,r.v7_relativeSplatPath));return p.useMemo(()=>VS(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function pL(e,t){return mL(e,t)}function mL(e,t,n,r){tc()||lt(!1);let{navigator:s}=p.useContext(Li),{matches:i}=p.useContext(Zs),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let c=o?o.pathnameBase:"/";o&&o.route;let u=Yr(),d;if(t){var f;let w=typeof t=="string"?ua(t):t;c==="/"||(f=w.pathname)!=null&&f.startsWith(c)||lt(!1),d=w}else d=u;let m=d.pathname||"/",h=m;if(c!=="/"){let w=c.replace(/^\//,"").split("/");h="/"+m.replace(/^\//,"").split("/").slice(w.length).join("/")}let y=HD(e,{pathname:h}),g=wL(y&&y.map(w=>Object.assign({},w,{params:Object.assign({},a,w.params),pathname:$s([c,s.encodeLocation?s.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?c:$s([c,s.encodeLocation?s.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),i,n,r);return t&&g?p.createElement(qd.Provider,{value:{location:Al({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:js.Pop}},g):g}function gL(){let e=SL(),t=cL(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 p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),n?p.createElement("pre",{style:s},n):null,null)}const yL=p.createElement(gL,null);class vL extends p.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?p.createElement(Zs.Provider,{value:this.props.routeContext},p.createElement(qS.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function xL(e){let{routeContext:t,match:n,children:r}=e,s=p.useContext(by);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),p.createElement(Zs.Provider,{value:t},r)}function wL(e,t,n,r){var s;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,a=(s=n)==null?void 0:s.errors;if(a!=null){let d=o.findIndex(f=>f.route.id&&(a==null?void 0:a[f.route.id])!==void 0);d>=0||lt(!1),o=o.slice(0,Math.min(o.length,d+1))}let c=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<o.length;d++){let f=o[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(u=d),f.route.id){let{loaderData:m,errors:h}=n,y=f.route.loader&&m[f.route.id]===void 0&&(!h||h[f.route.id]===void 0);if(f.route.lazy||y){c=!0,u>=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((d,f,m)=>{let h,y=!1,g=null,w=null;n&&(h=a&&f.route.id?a[f.route.id]:void 0,g=f.route.errorElement||yL,c&&(u<0&&m===0?(y=!0,w=null):u===m&&(y=!0,w=f.route.hydrateFallbackElement||null)));let v=t.concat(o.slice(0,m+1)),x=()=>{let b;return h?b=g:y?b=w:f.route.Component?b=p.createElement(f.route.Component,null):f.route.element?b=f.route.element:b=d,p.createElement(xL,{match:f,routeContext:{outlet:d,matches:v,isDataRoute:n!=null},children:b})};return n&&(f.route.ErrorBoundary||f.route.errorElement||m===0)?p.createElement(vL,{location:n.location,revalidation:n.revalidation,component:g,error:h,children:x(),routeC
470ontext:{outlet:null,matches:v,isDataRoute:!0}}):x()},null)}var YS=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(YS||{}),Zu=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}(Zu||{});function bL(e){let t=p.useContext(by);return t||lt(!1),t}function _L(e){let t=p.useContext(dL);return t||lt(!1),t}function kL(e){let t=p.useContext(Zs);return t||lt(!1),t}function QS(e){let t=kL(),n=t.matches[t.matches.length-1];return n.route.id||lt(!1),n.route.id}function SL(){var e;let t=p.useContext(qS),n=_L(Zu.UseRouteError),r=QS(Zu.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function EL(){let{router:e}=bL(YS.UseNavigateStable),t=QS(Zu.UseNavigateStable),n=p.useRef(!1);return KS(()=>{n.current=!0}),p.useCallback(function(s,i){i===void 0&&(i={}),n.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,Al({fromRouteId:t},i)))},[e,t])}function jL(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function se(e){lt(!1)}function CL(e){let{basename:t="/",children:n=null,location:r,navigationType:s=js.Pop,navigator:i,static:o=!1,future:a}=e;tc()&<(!1);let c=t.replace(/^\/*/,"/"),u=p.useMemo(()=>({basename:c,navigator:i,static:o,future:Al({v7_relativeSplatPath:!1},a)}),[c,a,i,o]);typeof r=="string"&&(r=ua(r));let{pathname:d="/",search:f="",hash:m="",state:h=null,key:y="default"}=r,g=p.useMemo(()=>{let w=wy(d,c);return w==null?null:{location:{pathname:w,search:f,hash:m,state:h,key:y},navigationType:s}},[c,d,f,m,h,y,s]);return g==null?null:p.createElement(Li.Provider,{value:u},p.createElement(qd.Provider,{children:n,value:g}))}function NL(e){let{children:t,location:n}=e;return pL(dm(t),n)}new Promise(()=>{});function dm(e,t){t===void 0&&(t=[]);let n=[];return p.Children.forEach(e,(r,s)=>{if(!p.isValidElement(r))return;let i=[...t,s];if(r.type===p.Fragment){n.push.apply(n,dm(r.props.children,i));return}r.type!==se&<(!1),!r.props.index||!r.props.children||lt(!1);let o={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=dm(r.props.children,i)),n.push(o)}),n}/** 471 * React Router DOM v6.30.1 472 * 473 * Copyright (c) Remix Software Inc. 474 * 475 * This source code is licensed under the MIT license found in the 476 * LICENSE.md file in the root directory of this source tree. 477 * 478 * @license MIT 479 */function fm(){return fm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fm.apply(this,arguments)}function TL(e,t){if(e==null)return{};var n={},r=Object.keys(e),s,i;for(i=0;i<r.length;i++)s=r[i],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}function PL(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function RL(e,t){return e.button===0&&(!t||t==="_self")&&!PL(e)}function hm(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(s=>[n,s]):[[n,r]])},[]))}function IL(e,t){let n=hm(e);return t&&t.forEach((r,s)=>{n.has(s)||t.getAll(s).forEach(i=>{n.append(s,i)})}),n}const AL=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],OL="6";try{window.__reactRouterVersion=OL}catch{}const ML="startTransition",Cw=sg[ML];function DL(e){let{basename:t,children:n,future:r,window:s}=e,i=p.useRef();i.current==null&&(i.current=FD({window:s,v5Compat:!0}));let o=i.current,[a,c]=p.useState({action:o.action,location:o.location}),{v7_startTransition:u}=r||{},d=p.useCallback(f=>{u&&Cw?Cw(()=>c(f)):c(f)},[c,u]);return p.useLayoutEffect(()=>o.listen(d),[o,d]),p.useEffect(()=>jL(r),[r]),p.createElement(CL,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:o,future:r})}const LL=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",$L=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,tt
479=p.forwardRef(function(t,n){let{onClick:r,relative:s,reloadDocument:i,replace:o,state:a,target:c,to:u,preventScrollReset:d,viewTransition:f}=t,m=TL(t,AL),{basename:h}=p.useContext(Li),y,g=!1;if(typeof u=="string"&&$L.test(u)&&(y=u,LL))try{let b=new URL(window.location.href),_=u.startsWith("//")?new URL(b.protocol+u):new URL(u),j=wy(_.pathname,h);_.origin===b.origin&&j!=null?u=j+_.search+_.hash:g=!0}catch{}let w=fL(u,{relative:s}),v=zL(u,{replace:o,state:a,target:c,preventScrollReset:d,relative:s,viewTransition:f});function x(b){r&&r(b),b.defaultPrevented||v(b)}return p.createElement("a",fm({},m,{href:y||w,onClick:g||i?r:x,ref:n,target:c}))});var Nw;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Nw||(Nw={}));var Tw;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Tw||(Tw={}));function zL(e,t){let{target:n,replace:r,state:s,preventScrollReset:i,relative:o,viewTransition:a}=t===void 0?{}:t,c=Er(),u=Yr(),d=GS(e,{relative:o});return p.useCallback(f=>{if(RL(f,n)){f.preventDefault();let m=r!==void 0?r:Qu(u)===Qu(d);c(e,{replace:m,state:s,preventScrollReset:i,relative:o,viewTransition:a})}},[u,c,d,r,s,n,e,i,o,a])}function ZS(e){let t=p.useRef(hm(e)),n=p.useRef(!1),r=Yr(),s=p.useMemo(()=>IL(r.search,n.current?null:t.current),[r.search]),i=Er(),o=p.useCallback((a,c)=>{const u=hm(typeof a=="function"?a(s):a);n.current=!0,i("?"+u,c)},[i,s]);return[s,o]}const FL=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>W(async()=>{const{default:r}=await Promise.resolve().then(()=>da);return{default:r}},void 0).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)};class _y extends Error{constructor(t,n="FunctionsError",r){super(t),this.name=n,this.context=r}}class Pw extends _y{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class Rw extends _y{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class Iw extends _y{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var pm;(function(e){e.Any="any",e.ApNortheast1="ap-northeast-1",e.ApNortheast2="ap-northeast-2",e.ApSouth1="ap-south-1",e.ApSoutheast1="ap-southeast-1",e.ApSoutheast2="ap-southeast-2",e.CaCentral1="ca-central-1",e.EuCentral1="eu-central-1",e.EuWest1="eu-west-1",e.EuWest2="eu-west-2",e.EuWest3="eu-west-3",e.SaEast1="sa-east-1",e.UsEast1="us-east-1",e.UsWest1="us-west-1",e.UsWest2="us-west-2"})(pm||(pm={}));var UL=function(e,t,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(d){try{u(r.next(d))}catch(f){o(f)}}function c(d){try{u(r.throw(d))}catch(f){o(f)}}function u(d){d.done?i(d.value):s(d.value).then(a,c)}u((r=r.apply(e,t||[])).next())})};class BL{constructor(t,{headers:n={},customFetch:r,region:s=pm.Any}={}){this.url=t,this.headers=n,this.region=s,this.fetch=FL(r)}
479setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t,n={}){var r;return UL(this,void 0,void 0,function*(){try{const{headers:s,method:i,body:o,signal:a}=n;let c={},{region:u}=n;u||(u=this.region);const d=new URL(`${this.url}/${t}`);u&&u!=="any"&&(c["x-region"]=u,d.searchParams.set("forceFunctionRegion",u));let f;o&&(s&&!Object.prototype.hasOwnProperty.call(s,"Content-Type")||!s)&&(typeof Blob<"u"&&o instanceof Blob||o instanceof ArrayBuffer?(c["Content-Type"]="application/octet-stream",f=o):typeof o=="string"?(c["Content-Type"]="text/plain",f=o):typeof FormData<"u"&&o instanceof FormData?f=o:(c["Content-Type"]="application/json",f=JSON.stringify(o)));const m=yield this.fetch(d.toString(),{method:i||"POST",headers:Object.assign(Object.assign(Object.assign({},c),this.headers),s),body:f,signal:a}).catch(w=>{throw w.name==="AbortError"?w:new Pw(w)}),h=m.headers.get("x-relay-error");if(h&&h==="true")throw new Rw(m);if(!m.ok)throw new Iw(m);let y=((r=m.headers.get("Content-Type"))!==null&&r!==void 0?r:"text/plain").split(";")[0].trim(),g;return y==="application/json"?g=yield m.json():y==="application/octet-stream"?g=yield m.blob():y==="text/event-stream"?g=m:y==="multipart/form-data"?g=yield m.formData():g=yield m.text(),{data:g,error:null,response:m}}catch(s){return s instanceof Error&&s.name==="AbortError"?{data:null,error:new Pw(s)}:{data:null,error:s,response:s instanceof Iw||s instanceof Rw?s.context:void 0}}})}}var Ht={},ky={},Kd={},nc={},Gd={},Yd={},HL=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")},Go=HL();const VL=Go.fetch,XS=Go.fetch.bind(Go),JS=Go.Headers,WL=Go.Request,qL=Go.Response,da=Object.freeze(Object.defineProperty({__proto__:null,Headers:JS,Request:WL,Response:qL,default:XS,fetch:VL},Symbol.toStringTag,{value:"Module"})),KL=OT(da);var Qd={};Object.defineProperty(Qd,"__esModule",{value:!0});let GL=class extends Error{constructor(t){super(t.message),this.name="PostgrestError",this.details=t.details,this.hint=t.hint,this.co
479de=t.code}};Qd.default=GL;var eE=Ct&&Ct.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Yd,"__esModule",{value:!0});const YL=eE(KL),QL=eE(Qd);let ZL=class{constructor(t){var n,r;this.shouldThrowOnError=!1,this.method=t.method,this.url=t.url,this.headers=new Headers(t.headers),this.schema=t.schema,this.body=t.body,this.shouldThrowOnError=(n=t.shouldThrowOnError)!==null&&n!==void 0?n:!1,this.signal=t.signal,this.isMaybeSingle=(r=t.isMaybeSingle)!==null&&r!==void 0?r:!1,t.fetch?this.fetch=t.fetch:typeof fetch>"u"?this.fetch=YL.default:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(t,n){return this.headers=new Headers(this.headers),this.headers.set(t,n),this}then(t,n){this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json");const r=this.fetch;let s=r(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async i=>{var o,a,c,u;let d=null,f=null,m=null,h=i.status,y=i.statusText;if(i.ok){if(this.method!=="HEAD"){const x=await i.text();x===""||(this.headers.get("Accept")==="text/csv"||this.headers.get("Accept")&&(!((o=this.headers.get("Accept"))===null||o===void 0)&&o.includes("application/vnd.pgrst.plan+text"))?f=x:f=JSON.parse(x))}const w=(a=this.headers.get("Prefer"))===null||a===void 0?void 0:a.match(/count=(exact|planned|estimated)/),v=(c=i.headers.get("content-range"))===null||c===void 0?void 0:c.split("/");w&&v&&v.length>1&&(m=parseInt(v[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(f)&&(f.length>1?(d={code:"PGRST116",details:`Results contain ${f.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},f=null,m=null,h=406,y="Not Acceptable"):f.length===1?f=f[0]:f=null)}else{const w=await i.text();try{d=JSON.parse(w),Array.isArray(d)&&i.status===404&&(f=[],d=null,h=200,y="OK")}catch{i.status===404&&w===""?(h=204,y="No Content"):d={message:w}}if(d&&this.isMaybeSingle&&(!((u=d==null?void 0:d.details)===null||u===void 0)&&u.includes("0 rows"))&&(d=null,h=200,y="OK"),d&&this.shouldThrowOnError)throw new QL.default(d)}return{error:d,data:f,count:m,status:h,statusText:y}});return this.shouldThrowOnError||(s=s.catch(i=>{var o,a,c;return{error:{message:`${(o=i==null?void 0:i.name)!==null&&o!==void 0?o:"FetchError"}: ${i==null?void 0:i.message}`,details:`${(a=i==null?void 0:i.stack)!==null&&a!==void 0?a:""}`,hint:"",code:`${(c=i==null?void 0:i.code)!==null&&c!==void 0?c:""}`},data:null,count:null,status:0,statusText:""}})),s.then(t,n)}returns(){return this}overrideTypes(){return this}};Yd.default=ZL;var XL=Ct&&Ct.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Gd,"__esModule",{value:!0});const JL=XL(Yd);let e4=class extends JL.default{select(t){let n=!1;const r=(t??"*").split("").map(s=>/\s/.test(s)&&!n?"":(s==='"'&&(n=!n),s)).join("");return this.url.searchParams.set("select",r),this.headers.append("Prefer","return=representation"),this}order(t,{ascending:n=!0,nullsFirst:r,foreignTable:s,referencedTable:i=s}={}){const o=i?`${i}.order`:"order",a=this.url.searchParams.get(o);return this.url.searchParams.set(o,`${a?`${a},`:""}${t}.${n?"asc":"desc"}${r===void 0?"":r?".nullsfirst":".nullslast"}`),this}limit(t,{foreignTable:n,referencedTable:r=n}={}){const s=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(s,`${t}`),this}range(t,n,{foreignTable:r,referencedTable:s=r}={}){const i=typeof s>"u"?"offset":`${s}.offset`,o=typeof s>"u"?"limit":`${s}.limit`;return this.url.searchParams.set(i,`${t}`),this.url.searchParams.set(o,`${n-t+1}`),this}abortSignal(t){return this.signal=t,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.method==="GET"?this.headers.set("Accept","application/json"):this.headers.set("Accept","application/vnd.pgrst.object+json"),this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}
479explain({analyze:t=!1,verbose:n=!1,settings:r=!1,buffers:s=!1,wal:i=!1,format:o="text"}={}){var a;const c=[t?"analyze":null,n?"verbose":null,r?"settings":null,s?"buffers":null,i?"wal":null].filter(Boolean).join("|"),u=(a=this.headers.get("Accept"))!==null&&a!==void 0?a:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${o}; for="${u}"; options=${c};`),o==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(t){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${t}`),this}};Gd.default=e4;var t4=Ct&&Ct.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(nc,"__esModule",{value:!0});const n4=t4(Gd);let r4=class extends n4.default{eq(t,n){return this.url.searchParams.append(t,`eq.${n}`),this}neq(t,n){return this.url.searchParams.append(t,`neq.${n}`),this}gt(t,n){return this.url.searchParams.append(t,`gt.${n}`),this}gte(t,n){return this.url.searchParams.append(t,`gte.${n}`),this}lt(t,n){return this.url.searchParams.append(t,`lt.${n}`),this}lte(t,n){return this.url.searchParams.append(t,`lte.${n}`),this}like(t,n){return this.url.searchParams.append(t,`like.${n}`),this}likeAllOf(t,n){return this.url.searchParams.append(t,`like(all).{${n.join(",")}}`),this}likeAnyOf(t,n){return this.url.searchParams.append(t,`like(any).{${n.join(",")}}`),this}ilike(t,n){return this.url.searchParams.append(t,`ilike.${n}`),this}ilikeAllOf(t,n){return this.url.searchParams.append(t,`ilike(all).{${n.join(",")}}`),this}ilikeAnyOf(t,n){return this.url.searchParams.append(t,`ilike(any).{${n.join(",")}}`),this}is(t,n){return this.url.searchParams.append(t,`is.${n}`),this}in(t,n){const r=Array.from(new Set(n)).map(s=>typeof s=="string"&&new RegExp("[,()]").test(s)?`"${s}"`:`${s}`).join(",");return this.url.searchParams.append(t,`in.(${r})`),this}contains(t,n){return typeof n=="string"?this.url.searchParams.append(t,`cs.${n}`):Array.isArray(n)?this.url.searchParams.append(t,`cs.{${n.join(",")}}`):this.url.searchParams.append(t,`cs.${JSON.stringify(n)}`),this}containedBy(t,n){return typeof n=="string"?this.url.searchParams.append(t,`cd.${n}`):Array.isArray(n)?this.url.searchParams.append(t,`cd.{${n.join(",")}}`):this.url.searchParams.append(t,`cd.${JSON.stringify(n)}`),this}rangeGt(t,n){return this.url.searchParams.append(t,`sr.${n}`),this}rangeGte(t,n){return this.url.searchParams.append(t,`nxl.${n}`),this}rangeLt(t,n){return this.url.searchParams.append(t,`sl.${n}`),this}rangeLte(t,n){return this.url.searchParams.append(t,`nxr.${n}`),this}rangeAdjacent(t,n){return this.url.searchParams.append(t,`adj.${n}`),this}overlaps(t,n){return typeof n=="string"?this.url.searchParams.append(t,`ov.${n}`):this.url.searchParams.append(t,`ov.{${n.join(",")}}`),this}textSearch(t,n,{config:r,type:s}={}){let i="";s==="plain"?i="pl":s==="phrase"?i="ph":s==="websearch"&&(i="w");const o=r===void 0?"":`(${r})`;return this.url.searchParams.append(t,`${i}fts${o}.${n}`),this}match(t){return Object.entries(t).forEach(([n,r])=>{this.url.searchParams.append(n,`eq.${r}`)}),this}not(t,n,r){return this.url.searchParams.append(t,`not.${n}.${r}`),this}or(t,{foreignTable:n,referencedTable:r=n}={}){const s=r?`${r}.or`:"or";return this.url.searchParams.append(s,`(${t})`),this}filter(t,n,r){return this.url.searchParams.append(t,`${n}.${r}`),this}};nc.default=r4;var s4=Ct&&Ct.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Kd,"__esModule",{value:!0});const Pa=s4(nc);let i4=class{constructor(t,{headers:n={},schema:r,fetch:s}){this.url=t,this.headers=new Headers(n),this.schema=r,this.fetch=s}select(t,{head:n=!1,count:r}={}){const s=n?"HEAD":"GET";let i=!1;const o=(t??"*").split("").map(a=>/\s/.test(a)&&!i?"":(a==='"'&&(i=!i),a)).join("");return this.url.searchParams.set("select",o),r&&this.headers.append("Prefer",`count=${r}`),new Pa.default({method:s,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch})}insert(t,{count:n,defaultToNull:r=!0}={}){var s;const i="POST";if(n&&this.headers.append("Prefer",`count=${n}`),r||this.headers.append("Prefer","missing=default"),Array.isArray(t)){const o=t.reduce((a,c)=>a.concat(Object.keys(c)),[]);if(o.length>0){const a=[...new Set(o)].map(c=>`"${c}"`);this.url.searchParams.set("columns",a.join(","))}}return new Pa.default({method:i,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:(s=this.fetch)!==null&&s!==void 0?s:fetch})}upsert(t,{onConflict:n,ignoreDuplicates:r=!1,count:s,defaultToNull:i=!0}={}){var o;const a="POST";if(this.headers.append("Prefer",`resolution=${r?"ignore":"merge"}-duplicates`),n!==void 0&&this.url.searchParams.set("on_conflict",n),s&&this.headers.append("Prefer",`count=${s}`),i||this.headers.append("Prefer","missing=default"),Array.isArray(t)){const c=t.reduce((u,d)=>u.concat(Object.keys(d)),[]);if(c.length>0){const u=[...new Set(c)].map(d=>`"${d}"`);this.url.searchParams.set("columns",u.join(","))}}return new Pa.default({method:a,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch})}update(t,{count:n}={}){var r;const s="PATCH";return n&&this.headers.append("Prefer",`count=${n}`),new Pa.default({method:s,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch})}delete({count:t}={}){var n;const r="DELETE";return t&&this.headers.append("Prefer",`count=${t}`),new Pa.default({method:r,url:this.url,headers:this.headers,schema:this.schema,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch})}};Kd.default=i4;
479var tE=Ct&&Ct.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ky,"__esModule",{value:!0});const o4=tE(Kd),a4=tE(nc);let l4=class nE{constructor(t,{headers:n={},schema:r,fetch:s}={}){this.url=t,this.headers=new Headers(n),this.schemaName=r,this.fetch=s}from(t){const n=new URL(`${this.url}/${t}`);return new o4.default(n,{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch})}schema(t){return new nE(this.url,{headers:this.headers,schema:t,fetch:this.fetch})}rpc(t,n={},{head:r=!1,get:s=!1,count:i}={}){var o;let a;const c=new URL(`${this.url}/rpc/${t}`);let u;r||s?(a=r?"HEAD":"GET",Object.entries(n).filter(([f,m])=>m!==void 0).map(([f,m])=>[f,Array.isArray(m)?`{${m.join(",")}}`:`${m}`]).forEach(([f,m])=>{c.searchParams.append(f,m)})):(a="POST",u=n);const d=new Headers(this.headers);return i&&d.set("Prefer",`count=${i}`),new a4.default({method:a,url:c,headers:d,schema:this.schemaName,body:u,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch})}};ky.default=l4;var fa=Ct&&Ct.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ht,"__esModule",{value:!0});Ht.PostgrestError=Ht.PostgrestBuilder=Ht.PostgrestTransformBuilder=Ht.PostgrestFilterBuilder=Ht.PostgrestQueryBuilder=Ht.PostgrestClient=void 0;const rE=fa(ky);Ht.PostgrestClient=rE.default;const sE=fa(Kd);Ht.PostgrestQueryBuilder=sE.default;const iE=fa(nc);Ht.PostgrestFilterBuilder=iE.default;const oE=fa(Gd);Ht.PostgrestTransformBuilder=oE.default;const aE=fa(Yd);Ht.PostgrestBuilder=aE.default;const lE=fa(Qd);Ht.PostgrestError=lE.default;var c4=Ht.default={PostgrestClient:rE.default,PostgrestQueryBuilder:sE.default,PostgrestFilterBuilder:iE.default,PostgrestTransformBuilder:oE.default,PostgrestBuilder:aE.default,PostgrestError:lE.default};const{PostgrestClient:u4,PostgrestQueryBuilder:rq,PostgrestFilterBuilder:sq,PostgrestTransformBuilder:iq,PostgrestBuilder:oq,PostgrestError:aq}=c4;class d4{static detectEnvironment(){var t;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((t=navigator.userAgent)===null||t===void 0)&&t.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};if(typeof process<"u"){const n=process.versions;if(n&&n.node){const r=n.node,s=parseInt(r.replace(/^v/,"").split(".")[0]);return s>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${s} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${s} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option: 480import ws from "ws" 481new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const t=this.detectEnvironment();if(t.constructor)return t.constructor;let n=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(n+=` 482 483Suggested solution: ${t.workaround}`),new Error(n)}static createWebSocket(t,n){const r=this.getWebSocketConstructor();return new r(t,n)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const f4="2.15.5",h4=`realtime-js/${f4}`,p4="1.0.0",mm=1e4,m4=1e3,g4=100;var Ja;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(Ja||(Ja={}));var ct;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(ct||(ct={}));var Vn;(function(e){e.close="phx_close",e.error="phx_error",e.join="phx_join",e.reply="phx_reply",e.leave="phx_leave",e.access_token="access_token"})(Vn||(Vn={}));var gm;(function(e){e.websocket="websocket"})(gm||(gm={}));var ai;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(ai||(ai={}));class y4{constructor(){this.HEADER_LENGTH=1}decode(t,n){return t.constructor===ArrayBuffer?n(this._binaryDecode(t)):n(typeof t=="string"?JSON.parse(t):{})}_binaryDecode(t){const n=new DataView(t),r=new TextDecoder;return this._decodeBroadcast(t,n,r)}_decodeBroadcast(t,n,r){const s=n.getUint8(1),i=n.getUint8(2);let o=this.HEADER_LENGTH+2;const a=r.decode(t.slice(o,o+s));o=o+s;const c=r.decode(t.slice(o,o+i));o=o+i;const u=JSON.parse(r.decode(t.slice(o,t.byteLength)));return{ref:null,topic:a,event:c,payload:u}}}class cE{constructor(t,n){this.callback=t,this.timerCalc=n,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=n}reset(){this.tries=0,clearTimeout(this.timer),this.timer=void 0}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var $e;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})($e||($e={}));const Aw=(e,t,n={})=>{var r;const s=(r=n.skipTypes)!==null&&r!==void 0?r:[];return Object.keys(t).reduce((i,o)=>(i[o]=v4(o,e,t,s),i),{})},v4=(e,t,n,r)=>{const s=t.find(a=>a.name===e),i=s==null?void 0:s.type,o=n[e];
483return i&&!r.includes(i)?uE(i,o):ym(o)},uE=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return _4(t,n)}switch(e){case $e.bool:return x4(t);case $e.float4:case $e.float8:case $e.int2:case $e.int4:case $e.int8:case $e.numeric:case $e.oid:return w4(t);case $e.json:case $e.jsonb:return b4(t);case $e.timestamp:return k4(t);case $e.abstime:case $e.date:case $e.daterange:case $e.int4range:case $e.int8range:case $e.money:case $e.reltime:case $e.text:case $e.time:case $e.timestamptz:case $e.timetz:case $e.tsrange:case $e.tstzrange:return ym(t);default:return ym(t)}},ym=e=>e,x4=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},w4=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},b4=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch(t){return console.log(`JSON parse error: ${t}`),e}return e},_4=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,r=e[n];if(e[0]==="{"&&r==="}"){let i;const o=e.slice(1,n);try{i=JSON.parse("["+o+"]")}catch{i=o?o.split(","):[]}return i.map(a=>uE(t,a))}return e},k4=e=>typeof e=="string"?e.replace(" ","T"):e,dE=e=>{let t=e;return t=t.replace(/^ws/i,"http"),t=t.replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,""),t.replace(/\/+$/,"")+"/api/broadcast"};class ch{constructor(t,n,r={},s=mm){this.channel=t,this.event=n,this.payload=r,this.timeout=s,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(t){this.timeout=t,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(t){this.payload=Object.assign(Object.assign({},this.payload),t)}receive(t,n){var r;return this._hasReceived(t)&&n((r=this.receivedResp)===null||r===void 0?void 0:r.response),this.recHooks.push({status:t,callback:n}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=n=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=n,this._matchReceive(n)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,n){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,response:n})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:t,response:n}){this.recHooks.filter(r=>r.status===t).forEach(r=>r.callback(n))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var Ow;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(Ow||(Ow={}));class el{constructor(t,n){this.channel=t,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const r=(n==null?void 0:n.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(r.state,{},s=>{const{onJoin:i,onLeave:o,onSync:a}=this.caller;this.joinRef=this.channel._joinRef(),this.state=el.syncState(this.state,s,i,o),this.pendingDiffs.forEach(c=>{this.state=el.syncDiff(this.state,c,i,o)}),this.pendingDiffs=[],a()}),this.channel._on(r.diff,{},s=>{const{onJoin:i,onLeave:o,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(s):(this.state=el.syncDiff(this.state,s,i,o),a())}),this.onJoin((s,i,o)=>{this.channel._trigger("presence",{event:"join",key:s,currentPresences:i,newPresences:o})}),this.onLeave((s,i,o)=>{this.channel._trigger("presence",{event:"leave",key:s,currentPresences:i,leftPresences:o})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,n,r,s){const i=this.cloneDeep(t),o=this.transformState(n),a={},c={};return this.map(i,(u,d)=>{o[u]||(c[u]=d)}),this.map(o,(u,d)=>{const f=i[u];if(f){const m=d.map(w=>w.presence_ref),h=f.map(w=>w.presence_ref),y=d.filter(w=>h.indexOf(w.presence_ref)<0),g=f.filter(w=>m.indexOf(w.presence_ref)<0);y.length>0&&(a[u]=y),g.length>0&&(c[u]=g)}else a[u]=d}),this.syncDiff(i,{joins:a,leaves:c},r,s)}static syncDiff(t,n,r,s){const{joins:i,leaves:o}={joins:this.transformState(n.joins),leaves:this.transformState(n.leaves)};return r||(r=()=>{}),s||(s=()=>{}),this.map(i,(a,c)=>{var u;
483const d=(u=t[a])!==null&&u!==void 0?u:[];if(t[a]=this.cloneDeep(c),d.length>0){const f=t[a].map(h=>h.presence_ref),m=d.filter(h=>f.indexOf(h.presence_ref)<0);t[a].unshift(...m)}r(a,d,c)}),this.map(o,(a,c)=>{let u=t[a];if(!u)return;const d=c.map(f=>f.presence_ref);u=u.filter(f=>d.indexOf(f.presence_ref)<0),t[a]=u,s(a,u,c),u.length===0&&delete t[a]}),t}static map(t,n){return Object.getOwnPropertyNames(t).map(r=>n(r,t[r]))}static transformState(t){return t=this.cloneDeep(t),Object.getOwnPropertyNames(t).reduce((n,r)=>{const s=t[r];return"metas"in s?n[r]=s.metas.map(i=>(i.presence_ref=i.phx_ref,delete i.phx_ref,delete i.phx_ref_prev,i)):n[r]=s,n},{})}static cloneDeep(t){return JSON.parse(JSON.stringify(t))}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var Mw;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(Mw||(Mw={}));var tl;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(tl||(tl={}));var Ar;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(Ar||(Ar={}));class Sy{constructor(t,n={config:{}},r){this.topic=t,this.params=n,this.socket=r,this.bindings={},this.state=ct.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},n.config),this.timeout=this.socket.timeout,this.joinPush=new ch(this,Vn.join,this.params,this.timeout),this.rejoinTimer=new cE(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=ct.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(s=>s.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=ct.closed,this.socket._remove(this)}),this._onError(s=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,s),this.state=ct.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=ct.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",s=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,s),this.state=ct.errored,this.rejoinTimer.scheduleTimeout())}),this._on(Vn.reply,{},(s,i)=>{this._trigger(this._replyEventName(i),s)}),this.presence=new el(this),this.broadcastEndpointURL=dE(this.socket.endPoint),this.private=this.params.config.private||!1}subscribe(t,n=this.timeout){var r,s,i;if(this.socket.isConnected()||this.socket.connect(),this.state==ct.closed){const{config:{broadcast:o,presence:a,private:c}}=this.params,u=(s=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(h=>h.filter))!==null&&s!==void 0?s:[],d=!!this.bindings[tl.PRESENCE]&&this.bindings[tl.PRESENCE].length>0||((i=this.params.config.presence)===null||i===void 0?void 0:i.enabled)===!0,f={},m={broadcast:o,presence:Object.assign(Object.assign({},a),{enabled:d}),postgres_changes:u,private:c};this.socket.accessTokenValue&&(f.access_token=this.socket.accessTokenValue),this._onError(h=>t==null?void 0:t(Ar.CHANNEL_ERROR,h)),this._onClose(()=>t==null?void 0:t(Ar.CLOSED)),this.updateJoinPayload(Object.assign({config:m},f)),this.joinedOnce=!0,this._rejoin(n),this.joinPush.receive("ok",async({postgres_changes:h})=>{var y;if(this.socket.setAuth(),h===void 0){t==null||t(Ar.SUBSCRIBED);return}else{const g=this.bindings.postgres_changes,w=(y=g==null?void 0:g.length)!==null&&y!==void 0?y:0,v=[];for(let x=0;x<w;x++){const b=g[x],{filter:{event:_,schema:j,table:k,filter:C}}=b,N=h&&h[x];if(N&&N.event===_&&N.schema===j&&N.table===k&&N.filter===C)v.push(Object.assign(Object.assign({},b),{id:N.id}));else{this.unsubscribe(),this.state=ct.errored,t==null||t(Ar.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=v,t&&t(Ar.SUBSCRIBED);return}}).receive("error",h=>{this.state=ct.errored,t==null||t(Ar.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(h).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(Ar.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(t,n={}){return await this.send({type:"presence",event:"track",payload:t},n.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,n,r){return this.state===ct.joined&&t===tl.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(()=>this.subscribe())),this._on(t,n,r)}async send(t,n={}){var r,s;if(!this._canPush()&&t.type==="broadcast"){const{event:i,payload:o}=t,c={method:"POST",headers:{Authorization:this.socket.accessTokenValue?`Bearer ${this.socket.accessTokenValue}`:"",apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:i,payload:o,private:this.private}]})};try{const u=await this._fetchWithTimeout(this.broadcastEndpointURL,c,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((s=u.body)===null||s===void 0?void 0:s.cancel()),u.ok?"ok":"error"}catch(u){return u.name==="AbortError"?"timed out":"error"}}else return new Promise(i=>{var o,a,c;const u=this._push(t.type,t,n.timeout||this.timeout);t.type==="broadcast"&&!(!((c=(a=(o=this.params)===null||o===void 0?void 0:o.config)===null||a===void 0?void 0:a.broadcast)===null||c===void 0)&&c.ack)&&i("ok"),u.receive("ok",()=>i("ok")),u.receive("error",()=>i("error")),u.receive("timeout",()=>i("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=ct.leaving;const n=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(Vn.close,"leave",this._joinRef())};this.joinPush.destroy();let r=null;return new Promise(s=>{r=new ch(this,Vn.leave,{},t),r.receive("ok",()=>{n(),s("ok")}).receive("timeout",()=>{n(),s("timed out")}).receive("error",()=>{s("error")}),r.send(),this._canPush()||r.trigger("ok",{})}).finally(()=>{r==null||r.destroy()})}teardown(){this.pushBuffer.forEach(t=>t.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=ct.closed,this.bindings={}}async _fetchWithTimeout(t,n,r){const s=new AbortController,i=setTimeout(()=>s.abort(),r),o=await this.socket.fetch(t,Object.assign(Object.assign({},n),{signal:s.signal}));return clearTimeout(i),o}_push(t,n,r=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let s=new ch(this,t,n,r);return this._canPush()?s.send():this._addToPushBuffer(s),s}_addToPushBuffer(t){if(t.startTimeout(),this.pushBuffer.push(t),this.pushBuffer.length>g4){const n=this.pushBuffer.shift();n&&(n.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${n.event}`,n.payload))}}_onMessage(t,n,r){return n}_isMember(t){return this.topic===t}_joinRef(){return this.joinPush.ref}_trigger(t,n,r){var s,i;const o=t.toLocaleLowerCase(),{close:a,error:c,leave:u,join:d}=Vn;if(r&&[a,c,u,d].indexOf(o)>=0&&r!==this._joinRef())return;let m=this._onMessage(o,n,r);if(n&&!m)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(o)?(s=this.bindings.postgres_changes)===null||s===void 0||s.filter(h=>{var y,g,w;return((y=h.filter)===null||y===void 0?void 0:y.event)==="*"||((w=(g=h.filter)===null||g===void 0?void 0:g.event)===null||w===void 0?void 0:w.toLocaleLowerCase())===o}).map(h=>h.callback(m,r)):(i=this.bindings[o])===null||i===void 0||i.filter(h=>{var y,g,w,v,x,b;if(["broadcast","presence","postgres_changes"].includes(o))if("id"in h){const _=h.id,j=(y=
483h.filter)===null||y===void 0?void 0:y.event;return _&&((g=n.ids)===null||g===void 0?void 0:g.includes(_))&&(j==="*"||(j==null?void 0:j.toLocaleLowerCase())===((w=n.data)===null||w===void 0?void 0:w.type.toLocaleLowerCase()))}else{const _=(x=(v=h==null?void 0:h.filter)===null||v===void 0?void 0:v.event)===null||x===void 0?void 0:x.toLocaleLowerCase();return _==="*"||_===((b=n==null?void 0:n.event)===null||b===void 0?void 0:b.toLocaleLowerCase())}else return h.type.toLocaleLowerCase()===o}).map(h=>{if(typeof m=="object"&&"ids"in m){const y=m.data,{schema:g,table:w,commit_timestamp:v,type:x,errors:b}=y;m=Object.assign(Object.assign({},{schema:g,table:w,commit_timestamp:v,eventType:x,new:{},old:{},errors:b}),this._getPayloadRecords(y))}h.callback(m,r)})}_isClosed(){return this.state===ct.closed}_isJoined(){return this.state===ct.joined}_isJoining(){return this.state===ct.joining}_isLeaving(){return this.state===ct.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,n,r){const s=t.toLocaleLowerCase(),i={type:s,filter:n,callback:r};return this.bindings[s]?this.bindings[s].push(i):this.bindings[s]=[i],this}_off(t,n){const r=t.toLocaleLowerCase();return this.bindings[r]&&(this.bindings[r]=this.bindings[r].filter(s=>{var i;return!(((i=s.type)===null||i===void 0?void 0:i.toLocaleLowerCase())===r&&Sy.isEqual(s.filter,n))})),this}static isEqual(t,n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(const r in t)if(t[r]!==n[r])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(Vn.close,{},t)}_onError(t){this._on(Vn.error,{},n=>t(n))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=ct.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=Aw(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=Aw(t.columns,t.old_record)),n}}const uh=()=>{},$c={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},S4=[1e3,2e3,5e3,1e4],E4=1e4,j4=` 484 addEventListener("message", (e) => { 485 if (e.data.event === "start") { 486 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 487 } 488 });`;class C4{constructor(t,n){var r;if(this.accessTokenValue=null,this.apiKey=null,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=mm,this.transport=null,this.heartbeatIntervalMs=$c.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=uh,this.ref=0,this.reconnectTimer=null,this.logger=uh,this.conn=null,this.sendBuffer=[],this.serializer=new y4,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._resolveFetch=s=>{let i;return s?i=s:typeof fetch>"u"?i=(...o)=>W(async()=>{const{default:a}=await Promise.resolve().then(()=>da);return{default:a}},void 0).then(({default:a})=>a(...o)).catch(a=>{throw new Error(`Failed to load @supabase/node-fetch: ${a.message}. This is required for HTTP requests in Node.js environments without native fetch.`)}):i=fetch,(...o)=>i(...o)},!(!((r=n==null?void 0:n.params)===null||r===void 0)&&r.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=n.params.apikey,this.endPoint=`${t}/${gm.websocket}`,this.httpEndpoint=dE(t),this._initializeOptions(n),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(n==null?void 0:n.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.conn!==null&&this.isConnected())){if(this._setConnectionState("connecting"),this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=d4.createWebSocket(this.endpointURL())}catch(t){this._setConnectionState("disconnected");const n=t.message;throw n.includes("Node.js")?new Error(`${n} 489 490To use Realtime in Node.js, you need to provide a WebSocket implementation: 491 492Option 1: Use Node.js 22+ which has native WebSocket support 493Option 2: Install and provide the "ws" package: 494 495 npm install ws 496 497 import ws from "ws" 498 const client = new RealtimeClient(url, { 499 ...options, 500 transport: ws 501 })`):new Error(`WebSocket not available: ${n}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:p4}))}disconnect(t,n){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const r=setTimeout(()=>{this._setConnectionState("disconnected")},100);
501this.conn.onclose=()=>{clearTimeout(r),this._setConnectionState("disconnected")},t?this.conn.close(t,n??""):this.conn.close(),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(t){const n=await t.unsubscribe();return this.channels.length===0&&this.disconnect(),n}async removeAllChannels(){const t=await Promise.all(this.channels.map(n=>n.unsubscribe()));return this.channels=[],this.disconnect(),t}log(t,n,r){this.logger(t,n,r)}connectionState(){switch(this.conn&&this.conn.readyState){case Ja.connecting:return ai.Connecting;case Ja.open:return ai.Open;case Ja.closing:return ai.Closing;default:return ai.Closed}}isConnected(){return this.connectionState()===ai.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(t,n={config:{}}){const r=`realtime:${t}`,s=this.getChannels().find(i=>i.topic===r);if(s)return s;{const i=new Sy(`realtime:${t}`,n,this);return this.channels.push(i),i}}push(t){const{topic:n,event:r,payload:s,ref:i}=t,o=()=>{this.encode(t,a=>{var c;(c=this.conn)===null||c===void 0||c.send(a)})};this.log("push",`${n} ${r} (${i})`,s),this.isConnected()?o():this.sendBuffer.push(o)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}async sendHeartbeat(){var t;if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(n){this.log("error","error in heartbeat callback",n)}return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(n){this.log("error","error in heartbeat callback",n)}this._wasManualDisconnect=!1,(t=this.conn)===null||t===void 0||t.close(m4,"heartbeat timeout"),setTimeout(()=>{var n;this.isConnected()||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout()},$c.HEARTBEAT_TIMEOUT_FALLBACK);return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(n){this.log("error","error in heartbeat callback",n)}this._setAuthSafely("heartbeat")}onHeartbeat(t){this.heartbeatCallback=t}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}_makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}_leaveOpenTopic(t){let n=this.channels.find(r=>r.topic===t&&(r._isJoined()||r._isJoining()));n&&(this.log("transport",`leaving duplicate topic "${t}"`),n.unsubscribe())}_remove(t){this.channels=this.channels.filter(n=>n.topic!==t.topic)}_onConnMessage(t){this.decode(t.data,n=>{if(n.topic==="phoenix"&&n.event==="phx_reply")try{this.heartbeatCallback(n.payload.status==="ok"?"ok":"error")}catch(u){this.log("error","error in heartbeat callback",u)}n.ref&&n.ref===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null);const{topic:r,event:s,payload:i,ref:o}=n,a=o?`(${o})`:"",c=i.status||"";this.log("receive",`${c} ${r} ${s} ${a}`.trim(),i),this.channels.filter(u=>u._isMember(r)).forEach(u=>u._trigger(s,i,o)),this._triggerStateCallbacks("message",n)})}_clearTimer(t){var n;t==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):t==="reconnect"&&((n=this.reconnectTimer)===null||n===void 0||n.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=t=>this._onConnError(t),this.conn.onmessage=t=>this._onConnMessage(t),this.conn.onclose=t=>this._onConnClose(t))}_teardownConnection(){this.conn&&(this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null),this._clearAllTimers(),this.channels.forEach(t=>t.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),this.flushSendBuffer(),this._clearTimer("reconnect"),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this._triggerStateCallbacks("open")}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=n=>{this.log("worker","worker error",n.message),this.workerRef.terminate()},this.workerRef.onmessage=n=>{n.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_onConnClose(t){var n;this._setConnectionState("disconnected"),this.log("transport","close",t),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout(),this._triggerStateCallbacks("close",t)}_onConnError(t){this._setConnectionState("disconnected"),this.log("transport",`${t}`),this._triggerChanError(),this._triggerStateCallbacks("error",t)}
501_triggerChanError(){this.channels.forEach(t=>t._trigger(Vn.error))}_appendParams(t,n){if(Object.keys(n).length===0)return t;const r=t.match(/\?/)?"&":"?",s=new URLSearchParams(n);return`${t}${r}${s}`}_workerObjectUrl(t){let n;if(t)n=t;else{const r=new Blob([j4],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}_setConnectionState(t,n=!1){this._connectionState=t,t==="connecting"?this._wasManualDisconnect=!1:t==="disconnecting"&&(this._wasManualDisconnect=n)}async _performAuth(t=null){let n;t?n=t:this.accessToken?n=await this.accessToken():n=this.accessTokenValue,this.accessTokenValue!=n&&(this.accessTokenValue=n,this.channels.forEach(r=>{const s={access_token:n,version:h4};n&&r.updateJoinPayload(s),r.joinedOnce&&r._isJoined()&&r._push(Vn.access_token,{access_token:n})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this.setAuth().catch(n=>{this.log("error",`error setting auth in ${t}`,n)})}_triggerStateCallbacks(t,n){try{this.stateChangeCallbacks[t].forEach(r=>{try{r(n)}catch(s){this.log("error",`error in ${t} callback`,s)}})}catch(r){this.log("error",`error triggering ${t} callbacks`,r)}}_setupReconnectionTimer(){this.reconnectTimer=new cE(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},$c.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(t){var n,r,s,i,o,a,c,u,d;if(this.transport=(n=t==null?void 0:t.transport)!==null&&n!==void 0?n:null,this.timeout=(r=t==null?void 0:t.timeout)!==null&&r!==void 0?r:mm,this.heartbeatIntervalMs=(s=t==null?void 0:t.heartbeatIntervalMs)!==null&&s!==void 0?s:$c.HEARTBEAT_INTERVAL,this.worker=(i=t==null?void 0:t.worker)!==null&&i!==void 0?i:!1,this.accessToken=(o=t==null?void 0:t.accessToken)!==null&&o!==void 0?o:null,this.heartbeatCallback=(a=t==null?void 0:t.heartbeatCallback)!==null&&a!==void 0?a:uh,t!=null&&t.params&&(this.params=t.params),t!=null&&t.logger&&(this.logger=t.logger),(t!=null&&t.logLevel||t!=null&&t.log_level)&&(this.logLevel=t.logLevel||t.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),this.reconnectAfterMs=(c=t==null?void 0:t.reconnectAfterMs)!==null&&c!==void 0?c:f=>S4[f-1]||E4,this.encode=(u=t==null?void 0:t.encode)!==null&&u!==void 0?u:(f,m)=>m(JSON.stringify(f)),this.decode=(d=t==null?void 0:t.decode)!==null&&d!==void 0?d:this.serializer.decode.bind(this.serializer),this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t==null?void 0:t.workerUrl}}}class Ey extends Error{constructor(t){super(t),this.__isStorageError=!0,this.name="StorageError"}}function it(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}class N4 extends Ey{constructor(t,n,r){super(t),this.name="StorageApiError",this.status=n,this.statusCode=r}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}}class vm extends Ey{constructor(t,n){super(t),this.name="StorageUnknownError",this.originalError=n}}var T4=function(e,t,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(d){try{u(r.next(d))}catch(f){o(f)}}function c(d){try{u(r.throw(d))}catch(f){o(f)}}function u(d){d.done?i(d.value):s(d.value).then(a,c)}u((r=r.apply(e,t||[])).next())})};const fE=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>W(async()=>{const{default:r}=await Promise.resolve().then(()=>da);return{default:r}},void 0).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)},P4=()=>T4(void 0,void 0,void 0,function*(){return typeof Response>"u"?(yield W(()=>Promise.resolve().then(()=>da),void 0)).Response:Response}),xm=e=>{if(Array.isArray(e))return e.map(n=>xm(n));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([n,r])=>{const s=n.replace(/([-_][a-z])/gi,i=>i.toUpperCase().replace(/[-_]/g,""));t[s]=xm(r)}),t},R4=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)};var $i=function(e,t,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}
501return new(n||(n=Promise))(function(i,o){function a(d){try{u(r.next(d))}catch(f){o(f)}}function c(d){try{u(r.throw(d))}catch(f){o(f)}}function u(d){d.done?i(d.value):s(d.value).then(a,c)}u((r=r.apply(e,t||[])).next())})};const dh=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),I4=(e,t,n)=>$i(void 0,void 0,void 0,function*(){const r=yield P4();e instanceof r&&!(n!=null&&n.noResolveJson)?e.json().then(s=>{const i=e.status||500,o=(s==null?void 0:s.statusCode)||i+"";t(new N4(dh(s),i,o))}).catch(s=>{t(new vm(dh(s),s))}):t(new vm(dh(e),e))}),A4=(e,t,n,r)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"||!r?s:(R4(r)?(s.headers=Object.assign({"Content-Type":"application/json"},t==null?void 0:t.headers),s.body=JSON.stringify(r)):s.body=r,t!=null&&t.duplex&&(s.duplex=t.duplex),Object.assign(Object.assign({},s),n))};function rc(e,t,n,r,s,i){return $i(this,void 0,void 0,function*(){return new Promise((o,a)=>{e(n,A4(t,r,s,i)).then(c=>{if(!c.ok)throw c;return r!=null&&r.noResolveJson?c:c.json()}).then(c=>o(c)).catch(c=>I4(c,a,r))})})}function Xu(e,t,n,r){return $i(this,void 0,void 0,function*(){return rc(e,"GET",t,n,r)})}function ar(e,t,n,r,s){return $i(this,void 0,void 0,function*(){return rc(e,"POST",t,r,s,n)})}function wm(e,t,n,r,s){return $i(this,void 0,void 0,function*(){return rc(e,"PUT",t,r,s,n)})}function O4(e,t,n,r){return $i(this,void 0,void 0,function*(){return rc(e,"HEAD",t,Object.assign(Object.assign({},n),{noResolveJson:!0}),r)})}function hE(e,t,n,r,s){return $i(this,void 0,void 0,function*(){return rc(e,"DELETE",t,r,s,n)})}var M4=function(e,t,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(d){try{u(r.next(d))}catch(f){o(f)}}function c(d){try{u(r.throw(d))}catch(f){o(f)}}function u(d){d.done?i(d.value):s(d.value).then(a,c)}u((r=r.apply(e,t||[])).next())})};class D4{constructor(t,n){this.downloadFn=t,this.shouldThrowOnError=n}then(t,n){return this.execute().then(t,n)}execute(){return M4(this,void 0,void 0,function*(){try{return{data:(yield this.downloadFn()).body,error:null}}catch(t){if(this.shouldThrowOnError)throw t;if(it(t))return{data:null,error:t};throw t}})}}var L4=function(e,t,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(d){try{u(r.next(d))}catch(f){o(f)}}function c(d){try{u(r.throw(d))}catch(f){o(f)}}function u(d){d.done?i(d.value):s(d.value).then(a,c)}u((r=r.apply(e,t||[])).next())})};class $4{constructor(t,n){this.downloadFn=t,this.shouldThrowOnError=n}asStream(){return new D4(this.downloadFn,this.shouldThrowOnError)}then(t,n){return this.execute().then(t,n)}execute(){return L4(this,void 0,void 0,function*(){try{return{data:yield(yield this.downloadFn()).blob(),error:null}}catch(t){if(this.shouldThrowOnError)throw t;if(it(t))return{data:null,error:t};throw t}})}}var zt=function(e,t,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(d){try{u(r.next(d))}catch(f){o(f)}}function c(d){try{u(r.throw(d))}catch(f){o(f)}}function u(d){d.done?i(d.value):s(d.value).then(a,c)}u((r=r.apply(e,t||[])).next())})};const z4={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Dw={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class F4{constructor(t,n={},r,s){this.shouldThrowOnError=!1,this.url=t,this.headers=n,this.bucketId=r,this.fetch=fE(s)}throwOnError(){return this.shouldThrowOnError=!0,this}uploadOrUpdate(t,n,r,s){return zt(this,void 0,void 0,function*(){try{let i;const o=Object.assign(Object.assign({},Dw),s);let a=Object.assign(Object.assign({},this.headers),t==="POST"&&{"x-upsert":String(o.upsert)});const c=o.metadata;typeof Blob<"u"&&r instanceof Blob?(i=new FormData,i.append("cacheControl",o.cacheControl),c&&i.append("metadata",this.encodeMetadata(c)),i.append("",r)):typeof FormData<"u"&&r instanceof FormData?(i=r,i.append("cacheControl",o.cacheControl),c&&i.append("metadata",this.encodeMetadata(c))):(i=r,a["cache-control"]=`max-age=${o.cacheControl}`,a["content-type"]=o.contentType,c&&(a["x-metadata"]=this.toBase64(this.encodeMetadata(c)))),s!=null&&s.headers&&(a=Object.assign(Object.assign({},a),s.headers));const u=this._removeEmptyFolders(n),d=this._getFinalPath(u),f=yield(t=="PUT"?wm:ar)(this.fetch,`${this.url}/object/${d}`,i,Object.assign({headers:a},o!=null&&o.duplex?{duplex:o.duplex}:{}));return{data:{path:u,id:f.Id,fullPath:f.Key},error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(it(i))return{data:null,error:i};throw i}})}upload(t,n,r){return zt(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",t,n,r)})}uploadToSignedUrl(t,n,r,s){return zt(this,void 0,void 0,function*(){const i=this._removeEmptyFolders(t),o=this._getFinalPath(i),a=new URL(this.url+`/object/upload/sign/${o}`);a.searchParams.set("token",n);try{let c;const u=Object.assign({upsert:Dw.upsert},s),d=Object.assign(Object.assign({},this.headers),{"x-upsert":String(u.upsert)});typeof Blob<"u"&&r instanceof Blob?(c=new FormData,c.append("cacheControl",u.cacheControl),c.append("",r)):typeof FormData<"u"&&r instanceof FormData?(c=r,c.append("cacheControl",u.cacheControl)):(c=r,d["cache-control"]=`max-age=${u.cacheControl}`,d["content-type"]=u.contentType);const f=yield wm(this.fetch,a.toString(),c,{headers:d});return{data:{path:i,fullPath:f.Key},error:null}}catch(c){if(this.shouldThrowOnError)throw c;if(it(c))return{data:null,error:c};throw c}})}createSignedUploadUrl(t,n){return zt(this,void 0,void 0,function*(){try{let r=this._getFinalPath(t);const s=Object.assign({},this.headers);n!=null&&n.upsert&&(s["x-upsert"]="true");const i=yield ar(this.fetch,`${this.url}/object/upload/sign/${r}`,{},{headers:s}),o=new URL(this.url+i.url),a=o.searchParams.get("token");if(!a)throw new Ey("No token returned by API");return{data:{signedUrl:o.toString(),path:t,token:a},error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(it(r))return{data:null,error:r};throw r}})}update(t,n,r){return zt(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",t,n,r)})}move(t,n,r){return zt(this,void 0,void 0,function*(){try{return{data:yield ar(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:t,destinationKey:n,destinationBucket:r==null?void 0:r.destinationBucket},{headers:this.headers}),error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(it(s))return{data:null,error:s};throw s}})}copy(t,n,r){return zt(this,void 0,void 0,function*(){try{return{data:{path:(yield ar(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:t,destinationKey:n,destinationBucket:r==null?void 0:r.destinationBucket},{headers:this.headers})).Key},error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(it(s))return{data:null,error:s};throw s}})}createSignedUrl(t,n,r){return zt(this,void 0,void 0,function*(){try{let s=this._getFinalPath(t),i=yield ar(this.fetch,`${this.url}/object/sign/${s}
501`,Object.assign({expiresIn:n},r!=null&&r.transform?{transform:r.transform}:{}),{headers:this.headers});const o=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return i={signedUrl:encodeURI(`${this.url}${i.signedURL}${o}`)},{data:i,error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(it(s))return{data:null,error:s};throw s}})}createSignedUrls(t,n,r){return zt(this,void 0,void 0,function*(){try{const s=yield ar(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:n,paths:t},{headers:this.headers}),i=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return{data:s.map(o=>Object.assign(Object.assign({},o),{signedUrl:o.signedURL?encodeURI(`${this.url}${o.signedURL}${i}`):null})),error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(it(s))return{data:null,error:s};throw s}})}download(t,n){const s=typeof(n==null?void 0:n.transform)<"u"?"render/image/authenticated":"object",i=this.transformOptsToQueryString((n==null?void 0:n.transform)||{}),o=i?`?${i}`:"",a=this._getFinalPath(t),c=()=>Xu(this.fetch,`${this.url}/${s}/${a}${o}`,{headers:this.headers,noResolveJson:!0});return new $4(c,this.shouldThrowOnError)}info(t){return zt(this,void 0,void 0,function*(){const n=this._getFinalPath(t);try{const r=yield Xu(this.fetch,`${this.url}/object/info/${n}`,{headers:this.headers});return{data:xm(r),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(it(r))return{data:null,error:r};throw r}})}exists(t){return zt(this,void 0,void 0,function*(){const n=this._getFinalPath(t);try{return yield O4(this.fetch,`${this.url}/object/${n}`,{headers:this.headers}),{data:!0,error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(it(r)&&r instanceof vm){const s=r.originalError;if([400,404].includes(s==null?void 0:s.status))return{data:!1,error:r}}throw r}})}getPublicUrl(t,n){const r=this._getFinalPath(t),s=[],i=n!=null&&n.download?`download=${n.download===!0?"":n.download}`:"";i!==""&&s.push(i);const a=typeof(n==null?void 0:n.transform)<"u"?"render/image":"object",c=this.transformOptsToQueryString((n==null?void 0:n.transform)||{});c!==""&&s.push(c);let u=s.join("&");return u!==""&&(u=`?${u}`),{data:{publicUrl:encodeURI(`${this.url}/${a}/public/${r}${u}`)}}}remove(t){return zt(this,void 0,void 0,function*(){try{return{data:yield hE(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:t},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(it(n))return{data:null,error:n};throw n}})}list(t,n,r){return zt(this,void 0,void 0,function*(){try{const s=Object.assign(Object.assign(Object.assign({},z4),n),{prefix:t||""});return{data:yield ar(this.fetch,`${this.url}/object/list/${this.bucketId}`,s,{headers:this.headers},r),error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(it(s))return{data:null,error:s};throw s}})}listV2(t,n){return zt(this,void 0,void 0,function*(){try{const r=Object.assign({},t);return{data:yield ar(this.fetch,`${this.url}/object/list-v2/${this.bucketId}`,r,{headers:this.headers},n),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(it(r))return{data:null,error:r};throw r}})}encodeMetadata(t){return JSON.stringify(t)}toBase64(t){return typeof Buffer<"u"?Buffer.from(t).toString("base64"):btoa(t)}_getFinalPath(t){return`${this.bucketId}/${t.replace(/^\/+/,"")}`}_removeEmptyFolders(t){return t.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(t){const n=[];return t.width&&n.push(`width=${t.width}`),t.height&&n.push(`height=${t.height}`),t.resize&&n.push(`resize=${t.resize}`),t.format&&n.push(`format=${t.format}`),t.quality&&n.push(`quality=${t.quality}`),n.join("&")}}const U4="2.12.2",B4={"X-Client-Info":`storage-js/${U4}`};var Vi=function(e,t,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(d){try{u(r.next(d))}catch(f){o(f)}}function c(d){try{u(r.throw(d))}catch(f){o(f)}}function u(d){d.done?i(d.value):s(d.value).then(a,c)}u((r=r.apply(e,t||[])).next())})};class H4{constructor(t,n={},r,s){this.shouldThrowOnError=!1;const i=new URL(t);s!=null&&s.useNewHostname&&/supabase\.(co|in|red)$/.test(i.hostname)&&!i.hostname.includes("storage.supabase.")&&(i.hostname=i.hostname.replace("supabase.","storage.supabase.")),this.url=i.href,this.headers=Object.assign(Object.assign({},B4),n),this.fetch=fE(r)}throwOnError(){return this.shouldThrowOnError=!0,this}listBuckets(){return Vi(this,void 0,void 0,function*(){try{return{data:yield Xu(this.fetch,`${this.url}/bucket`,{headers:this.headers}),error:null}}catch(t){if(this.shouldThrowOnError)throw t;if(it(t))return{data:null,error:t};throw t}})}getBucket(t){return Vi(this,void 0,void 0,function*(){try{return{data:yield Xu(this.fetch,`${this.url}/bucket/${t}`,{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(it(n))return{data:null,error:n};throw n}})}createBucket(t,n={public:!1}){return Vi(this,void 0,void 0,function*(){try{return{data:yield ar(this.fetch,`${this.url}/bucket`,{id:t,name:t,type:n.type,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(it(r))return{data:null,error:r};throw r}})}updateBucket(t,n){return Vi(this,void 0,void 0,function*(){try{return{data:yield wm(this.fetch,`${this.url}/bucket/${t}`,{id:t,name:t,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(it(r))return{data:null,error:r};throw r}})}emptyBucket(t){return Vi(this,void 0,void 0,function*(){try{return{data:yield ar(this.fetch,`${this.url}/bucket/${t}/empty`,{},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(it(n))return{data:null,error:n};throw n}})}deleteBucket(t){return Vi(this,void 0,void 0,function*(){try{return{data:yield hE(this.fetch,`${this.url}/bucket/${t}`,{},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(it(n))return{data:null,error:n};throw n}})}}class V4 extends H4{constructor(t,n={},r,s){super(t,n,r,s)}from(t){return new F4(this.url,this.headers,t,this.fetch)}}const W4="2.58.0";let za="";
501typeof Deno<"u"?za="deno":typeof document<"u"?za="web":typeof navigator<"u"&&navigator.product==="ReactNative"?za="react-native":za="node";const q4={"X-Client-Info":`supabase-js-${za}/${W4}`},K4={headers:q4},G4={schema:"public"},Y4={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},Q4={};var Z4=function(e,t,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(d){try{u(r.next(d))}catch(f){o(f)}}function c(d){try{u(r.throw(d))}catch(f){o(f)}}function u(d){d.done?i(d.value):s(d.value).then(a,c)}u((r=r.apply(e,t||[])).next())})};const X4=e=>{let t;return e?t=e:typeof fetch>"u"?t=XS:t=fetch,(...n)=>t(...n)},J4=()=>typeof Headers>"u"?JS:Headers,e5=(e,t,n)=>{const r=X4(n),s=J4();return(i,o)=>Z4(void 0,void 0,void 0,function*(){var a;const c=(a=yield t())!==null&&a!==void 0?a:e;let u=new s(o==null?void 0:o.headers);return u.has("apikey")||u.set("apikey",e),u.has("Authorization")||u.set("Authorization",`Bearer ${c}`),r(i,Object.assign(Object.assign({},o),{headers:u}))})};var t5=function(e,t,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(d){try{u(r.next(d))}catch(f){o(f)}}function c(d){try{u(r.throw(d))}catch(f){o(f)}}function u(d){d.done?i(d.value):s(d.value).then(a,c)}u((r=r.apply(e,t||[])).next())})};function n5(e){return e.endsWith("/")?e:e+"/"}function r5(e,t){var n,r;const{db:s,auth:i,realtime:o,global:a}=e,{db:c,auth:u,realtime:d,global:f}=t,m={db:Object.assign(Object.assign({},c),s),auth:Object.assign(Object.assign({},u),i),realtime:Object.assign(Object.assign({},d),o),storage:{},global:Object.assign(Object.assign(Object.assign({},f),a),{headers:Object.assign(Object.assign({},(n=f==null?void 0:f.headers)!==null&&n!==void 0?n:{}),(r=a==null?void 0:a.headers)!==null&&r!==void 0?r:{})}),accessToken:()=>t5(this,void 0,void 0,function*(){return""})};return e.accessToken?m.accessToken=e.accessToken:delete m.accessToken,m}function s5(e){const t=e==null?void 0:e.trim();if(!t)throw new Error("supabaseUrl is required.");if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(n5(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}const pE="2.72.0",Ji=30*1e3,bm=3,fh=bm*Ji,i5="http://localhost:9999",o5="supabase.auth.token",a5={"X-Client-Info":`gotrue-js/${pE}`},_m="X-Supabase-Api-Version",mE={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},l5=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,c5=10*60*1e3;class jy extends Error{constructor(t,n,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}}function xe(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class u5 extends jy{constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function d5(e){return xe(e)&&e.name==="AuthApiError"}class gE extends jy{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class Xs extends jy{constructor(t,n,r,s){super(t,r,s),this.name=n,this.status=r}}class ls extends Xs{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function f5(e){return xe(e)&&e.name==="AuthSessionMissingError"}class Ra extends Xs{constructor(){super("Auth session or user missing","AuthInvalidToken
501ResponseError",500,void 0)}}class zc extends Xs{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class Fc extends Xs{constructor(t,n=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function h5(e){return xe(e)&&e.name==="AuthImplicitGrantRedirectError"}class Lw extends Xs{constructor(t,n=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class km extends Xs{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function hh(e){return xe(e)&&e.name==="AuthRetryableFetchError"}class $w extends Xs{constructor(t,n,r){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}class Sm extends Xs{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const Ju="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),zw=` 502\r=`.split(""),p5=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<zw.length;t+=1)e[zw[t].charCodeAt(0)]=-2;for(let t=0;t<Ju.length;t+=1)e[Ju[t].charCodeAt(0)]=t;return e})();function Fw(e,t,n){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(Ju[r]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(Ju[r]),t.queuedBits-=6}}function yE(e,t,n){const r=p5[e];if(r>-1)for(t.queue=t.queue<<6|r,t.queuedBits+=6;t.queuedBits>=8;)n(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(r===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function Uw(e){const t=[],n=o=>{t.push(String.fromCodePoint(o))},r={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},i=o=>{y5(o,r,n)};for(let o=0;o<e.length;o+=1)yE(e.charCodeAt(o),s,i);return t.join("")}function m5(e,t){if(e<=127){t(e);return}else if(e<=2047){t(192|e>>6),t(128|e&63);return}else if(e<=65535){t(224|e>>12),t(128|e>>6&63),t(128|e&63);return}else if(e<=1114111){t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),t(128|e&63);return}throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function g5(e,t){for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);if(r>55295&&r<=56319){const s=(r-55296)*1024&65535;r=(e.charCodeAt(n+1)-56320&65535|s)+65536,n+=1}m5(r,t)}}function y5(e,t,n){if(t.utf8seq===0){if(e<=127){n(e);return}for(let r=1;r<6;r+=1)if(!(e>>7-r&1)){t.utf8seq=r;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&n(t.codepoint)}}function v5(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};for(let s=0;s<e.length;s+=1)yE(e.charCodeAt(s),n,r);return new Uint8Array(t)}function x5(e){const t=[];return g5(e,n=>t.push(n)),new Uint8Array(t)}function w5(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};return e.forEach(s=>Fw(s,n,r)),Fw(null,n,r),t.join("")}function b5(e){return Math.round(Date.now()/1e3)+e}function _5(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}const mn=()=>typeof window<"u"&&typeof document<"u",ni={tested:!1,writable:!1},vE=()=>{if(!mn())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(ni.tested)return ni.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),ni.tested=!0,ni.writable=!0}catch{ni.tested=!0,ni.writable=!1}return ni.writable};function k5(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((s,i)=>{t[i]=s})}catch{}return n.searchParams.forEach((r,s)=>{t[s]=r}),t}const xE=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>W(async()=>{const{default:r}=await Promise.resolve().then(()=>da);return{default:r}},void 0).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)},S5=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",eo=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},ri=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},is=async(e,t)=>{await e.removeItem(t)};class Zd{constructor(){this.promise=new Zd.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}Zd.promiseConstructor=Promise;function ph(e){const t=e.split(".");if(t.length!==3)throw new Sm("Invalid JWT structure");for(let r=0;r<t.length;r++)if(!l5.test(t[r]))throw new Sm("JWT not in base64url format");return{header:JSON.parse(Uw(t[0])),payload:JSON.parse(Uw(t[1])),signature:v5(t[2]),raw:{header:t[0],payload:t[1]}}}async function E5(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function j5(e,t){return new Promise((r,s)=>{(async()=>{for(let i=0;i<1/0;i++)try{const o=await e(i);if(!t(i,null,o)){r(o);return}}catch(o){if(!t(i,o)){s(o);return}}})()})}function C5(e){return("0"+e.toString(16)).substr(-2)}function N5(){const t=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let s="";for(let i=0;i<56;i++)s+=n.charAt(Math.floor(Math.random()*r));return s}return crypto.getRandomValues(t),Array.from(t,C5).join("")}async function T5(e){const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",
502n),s=new Uint8Array(r);return Array.from(s).map(i=>String.fromCharCode(i)).join("")}async function P5(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const n=await T5(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function Wi(e,t,n=!1){const r=N5();let s=r;n&&(s+="/PASSWORD_RECOVERY"),await eo(e,`${t}-code-verifier`,s);const i=await P5(r);return[i,r===i?"plain":"s256"]}const R5=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function I5(e){const t=e.headers.get(_m);if(!t||!t.match(R5))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function A5(e){if(!e)throw new Error("Missing exp claim");const t=Math.floor(Date.now()/1e3);if(e<=t)throw new Error("JWT has expired")}function O5(e){switch(e){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const M5=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function qi(e){if(!M5.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function mh(){const e={};return new Proxy(e,{get:(t,n)=>{if(n==="__isUserNotAvailableProxy")return!0;if(typeof n=="symbol"){const r=n.toString();if(r==="Symbol(Symbol.toPrimitive)"||r==="Symbol(Symbol.toStringTag)"||r==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${n}" property of the session object is not supported. Please use getUser() instead.`)},set:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function Bw(e){return JSON.parse(JSON.stringify(e))}var D5=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n};const oi=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),L5=[502,503,504];async function Hw(e){var t;if(!S5(e))throw new km(oi(e),0);if(L5.includes(e.status))throw new km(oi(e),e.status);let n;try{n=await e.json()}catch(i){throw new gE(oi(i),i)}let r;const s=I5(e);if(s&&s.getTime()>=mE["2024-01-01"].timestamp&&typeof n=="object"&&n&&typeof n.code=="string"?r=n.code:typeof n=="object"&&n&&typeof n.error_code=="string"&&(r=n.error_code),r){if(r==="weak_password")throw new $w(oi(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(r==="session_not_found")throw new ls}else if(typeof n=="object"&&n&&typeof n.weak_password=="object"&&n.weak_password&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.reasons.reduce((i,o)=>i&&typeof o=="string",!0))throw new $w(oi(n),e.status,n.weak_password.reasons);throw new u5(oi(n),e.status||500,r)}const $5=(e,t,n,r)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),s.body=JSON.stringify(r),Object.assign(Object.assign({},s),n))};async function ke(e,t,n,r){var s;const i=Object.assign({},r==null?void 0:r.headers);i[_m]||(i[_m]=mE["2024-01-01"].name),r!=null&&r.jwt&&(i.Authorization=`Bearer ${r.jwt}`);const o=(s=r==null?void 0:r.query)!==null&&s!==void 0?s:{};r!=null&&r.redirectTo&&(o.redirect_to=r.redirectTo);const a=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",c=await z5(e,t,n+a,{headers:i,noResolveJson:r==null?void 0:r.noResolveJson},{},r==null?void 0:r.body);return r!=null&&r.xform?r==null?void 0:r.xform(c):{data:Object.assign({},c),error:null}}async function z5(e,t,n,r,s,i){const o=$5(t,r,s,i);let a;try{a=await e(n,Object.assign({},o))}catch(c){throw console.error(c),new km(oi(c),0)}if(a.ok||await Hw(a),r!=null&&r.noResolveJson)return a;try{return await a.json()}catch(c){await Hw(c)}}function ir(e){var t;let n=null;H5(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=b5(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:r},error:null}}function Vw(e){const t=ir(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((n,r)=>n&&typeof r=="string",!0)&&(t.data.weak_password=e.weak_password),t}function ms(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function F5(e){return{data:e,error:null}}function U5(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i}=e,o=D5(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i},c=Object.assign({},o);return{data:{properties:a,user:c},error:null}}function B5(e){return e}function H5(e){return e.access_token&&e.refresh_token&&e.expires_in}const gh=["global","local","others"];var V5=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n};class W5{constructor({url:t="",headers:n={},fetch:r}){this.url=t,this.headers=n,this.fetch=xE(r),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)}}async signOut(t,n=gh[0]){if(gh.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${gh.join(", ")}`);try{return await ke(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(r){if(xe(r))return{data:null,error:r};throw r}}async inviteUserByEmail(t,n={}){try{return await ke(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:ms})}catch(r){if(xe(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:n}=t,r=V5(t,["options"]),s=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(s.new_email=r==null?void 0:r.newEmail,delete s.newEmail),await ke(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:s,headers:this.headers,xform:U5,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(xe(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(t){try{return await ke(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:ms})}catch(n){if(xe(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,r,s,i,o,a,c;try{const u={nextPage:null,lastPage:0,total:0},d=await ke(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(i=(s=t==null?void 0:t.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:B5});if(d.error)throw d.error;const f=await d.json(),m=(o=d.headers.get("x-total-count"))!==null&&o!==void 0?o:0,h=(c=(a=d.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&c!==void 0?c:[];return h.length>
5020&&(h.forEach(y=>{const g=parseInt(y.split(";")[0].split("=")[1].substring(0,1)),w=JSON.parse(y.split(";")[1].split("=")[1]);u[`${w}Page`]=g}),u.total=parseInt(m)),{data:Object.assign(Object.assign({},f),u),error:null}}catch(u){if(xe(u))return{data:{users:[]},error:u};throw u}}async getUserById(t){qi(t);try{return await ke(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:ms})}catch(n){if(xe(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){qi(t);try{return await ke(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:ms})}catch(r){if(xe(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,n=!1){qi(t);try{return await ke(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:ms})}catch(r){if(xe(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){qi(t.userId);try{const{data:n,error:r}=await ke(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:s=>({data:{factors:s},error:null})});return{data:n,error:r}}catch(n){if(xe(n))return{data:null,error:n};throw n}}async _deleteFactor(t){qi(t.userId),qi(t.id);try{return{data:await ke(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(xe(n))return{data:null,error:n};throw n}}}function Ww(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}function q5(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}const Ki={debug:!!(globalThis&&vE()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};
502class wE extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class K5 extends wE{}async function G5(e,t,n){Ki.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const r=new globalThis.AbortController;return t>0&&setTimeout(()=>{r.abort(),Ki.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async s=>{if(s){Ki.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,s.name);try{return await n()}finally{Ki.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,s.name)}}else{if(t===0)throw Ki.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new K5(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(Ki.debug)try{const i=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(i,null," "))}catch(i){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",i)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await n()}}))}function bE(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}" is invalid.`);return e.toLowerCase()}function Y5(e){return parseInt(e,16)}function Q5(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,r=>r.toString(16).padStart(2,"0")).join("")}function Z5(e){var t;const{chainId:n,domain:r,expirationTime:s,issuedAt:i=new Date,nonce:o,notBefore:a,requestId:c,resources:u,scheme:d,uri:f,version:m}=e;{if(!Number.isInteger(n))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${n}`);if(!r)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(o&&o.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${o}`);if(!f)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(m!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${m}`);if(!((t=e.statement)===null||t===void 0)&&t.includes(` 503`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const h=bE(e.address),y=d?`${d}://${r}
503`:r,g=e.statement?`${e.statement} 504`:"",w=`${y} wants you to sign in with your Ethereum account: 505${h} 506 507${g}`;let v=`URI: ${f} 508Version: ${m} 509Chain ID: ${n}${o?` 510Nonce: ${o}`:""} 511Issued At: ${i.toISOString()}`;if(s&&(v+=` 512Expiration Time: ${s.toISOString()}`),a&&(v+=` 513Not Before: ${a.toISOString()}`),c&&(v+=` 514Request ID: ${c}`),u){let x=` 515Resources:`;for(const b of u){if(!b||typeof b!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${b}`);x+=` 516- ${b}`}v+=x}return`${w} 517${v}`}q5();const X5={url:i5,storageKey:o5,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:a5,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1};async function qw(e,t,n){return await n()}const Gi={};class Ol{constructor(t){var n,r;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log,this.instanceID=Ol.nextInstanceID,Ol.nextInstanceID+=1,this.instanceID>0&&mn()&&console.warn("Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.");const s=Object.assign(Object.assign({},X5),t);if(this.logDebugMessages=!!s.debug,typeof s.debug=="function"&&(this.logger=s.debug),this.persistSession=s.persistSession,this.storageKey=s.storageKey,this.autoRefreshToken=s.autoRefreshToken,this.admin=new W5({url:s.url,headers:s.headers,fetch:s.fetch}),this.url=s.url,this.headers=s.headers,this.fetch=xE(s.fetch),this.lock=s.lock||qw,this.detectSessionInUrl=s.detectSessionInUrl,this.flowType=s.flowType,this.hasCustomAuthorizationHeader=s.hasCustomAuthorizationHeader,s.lock?this.lock=s.lock:mn()&&(!((n=globalThis==null?void 0:globalThis.navigator)===null||n===void 0)&&n.locks)?this.lock=G5:this.lock=qw,this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this)},this.persistSession?(s.storage?this.storage=s.storage:vE()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=Ww(this.memoryStorage)),s.userStorage&&(this.userStorage=s.userStorage)):(this.memoryStorage={},this.storage=Ww(this.memoryStorage)),mn()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(i){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",i)}(r=this.broadcastChannel)===null||r===void 0||r.addEventListener("message",async i=>{this._debug("received broadcast notification from other tab or client",i),await this._notifyAllSubscribers(i.data.event,i.data.session,!1)})}this.initialize()}get jwks(){var t,n;return(n=(t=Gi[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(t){Gi[this.storageKey]=Object.assign(Object.assign({},Gi[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,n;return(n=(t=Gi[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){Gi[this.storageKey]=Object.assign(Object.assign({},Gi[this.storageKey]),{cachedAt:t})}_debug(...t){return this.logDebugMessages&&this.logger(`GoTrueClient@${this.instanceID} (${pE}) ${new Date().toISOString()}`,...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{const n=k5(window.location.href);let r="none";if(this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce"),mn()&&this.detectSessionInUrl&&r!=="none"){const{data:s,error:i}=await this._getSessionFromURL(n,r);if(i){if(this._debug("#_initialize()","error detecting session from URL",i),h5(i)){const c=(t=i.details)===null||t===void 0?void 0:t.code;if(c==="identity_already_exists"||c==="identity_not_found"||c==="single_identity_not_deletable")return{error:i}}return await this._removeSession(),{error:i}}const{session:o,redirectType:a}=s;return this._debug("#_initialize()","detected session in URL",o,"redirect type",a),await this._saveSession(o),setTimeout(async()=>{a==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",o):await this._notifyAllSubscribers("SIGNED_IN",o)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return xe(n)?{error:n}
517:{error:new gE("Unexpected error during initialization",n)}}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,r,s;try{const i=await ke(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(s=t==null?void 0:t.options)===null||s===void 0?void 0:s.captchaToken}},xform:ir}),{data:o,error:a}=i;if(a||!o)return{data:{user:null,session:null},error:a};const c=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",c)),{data:{user:u,session:c},error:null}}catch(i){if(xe(i))return{data:{user:null,session:null},error:i};throw i}}async signUp(t){var n,r,s;try{let i;if("email"in t){const{email:d,password:f,options:m}=t;let h=null,y=null;this.flowType==="pkce"&&([h,y]=await Wi(this.storage,this.storageKey)),i=await ke(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:m==null?void 0:m.emailRedirectTo,body:{email:d,password:f,data:(n=m==null?void 0:m.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:m==null?void 0:m.captchaToken},code_challenge:h,code_challenge_method:y},xform:ir})}else if("phone"in t){const{phone:d,password:f,options:m}=t;i=await ke(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:d,password:f,data:(r=m==null?void 0:m.data)!==null&&r!==void 0?r:{},channel:(s=m==null?void 0:m.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:m==null?void 0:m.captchaToken}},xform:ir})}else throw new zc("You must provide either an email or phone number and a password");const{data:o,error:a}=i;if(a||!o)return{data:{user:null,session:null},error:a};const c=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",c)),{data:{user:u,session:c},error:null}}catch(i){if(xe(i))return{data:{user:null,session:null},error:i};throw i}}async signInWithPassword(t){try{let n;if("email"in t){const{email:i,password:o,options:a}=t;n=await ke(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:i,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:Vw})}else if("phone"in t){const{phone:i,password:o,options:a}=t;n=await ke(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:i,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:Vw})}else throw new zc("You must provide either an email or phone number and a password");const{data:r,error:s}=n;return s?{data:{user:null,session:null},error:s}:!r||!r.session||!r.user?{data:{user:null,session:null},error:new Ra}:(r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),{data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:s})}catch(n){if(xe(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOAuth(t){var n,r,s,i;return await this._handleProviderSignIn(t.provider,{redirectTo:(n=t.options)===null||n===void 0?void 0:n.redirectTo,scopes:(r=t.options)===null||r===void 0?void 0:r.scopes,queryParams:(s=t.options)===null||s===void 0?void 0:s.queryParams,skipBrowserRedirect:(i=t.options)===null||i===void 0?void 0:i.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(t))}async signInWithWeb3(t){const{chain:n}=t;switch(n){case"ethereum":return await this.signInWithEthereum(t);case"solana":return await this.signInWithSolana(t);default:throw new Error(`@supabase/auth-js: Unsupported chain "${n}"`)}}async signInWithEthereum(t){var n,r,s,i,o,a,c,u,d,f,m;let h,y;if("message"in t)h=t.message,y=t.signature;else{const{chain:g,wallet:w,statement:v,options:x}=t;let b;if(mn())if(typeof w=="object")b=w;else{const T=window;if("ethereum"in T&&typeof T.ethereum=="object"&&"request"in T.ethereum&&typeof T.ethereum.request=="function")b=T.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof w!="object"||!(x!=null&&x.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");b=w}const _=new URL((n=x==null?void 0:x.url)!==null&&n!==void 0?n:window.location.href),j=await b.request({method:"eth_requestAccounts"}).then(T=>T).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!j||j.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const k=bE(j[0]);let C=(r=x==null?void 0:x.signInWithEthereum)===null||r===void 0?void 0:r.chainId;if(!C){const T=await b.request({method:"eth_chainId"});C=Y5(T)}const N={domain:_.host,address:k,statement:v,uri:_.href,version:"1",chainId:C,nonce:(s=x==null?void 0:x.signInWithEthereum)===null||s===void 0?void 0:s.nonce,issuedAt:(o=(i=x==null?void 0:x.signInWithEthereum)===null||i===void 0?void 0:i.issuedAt)!==null&&o!==void 0?o:new Date,expirationTime:(a=x==null?void 0:x.signInWithEthereum)===null||a===void 0?void 0:a.expirationTime,notBefore:(c=x==null?void 0:x.signInWithEthereum)===null||c===void 0?void 0:c.notBefore,requestId:(u=x==null?void 0:x.signInWithEthereum)===null||u===void 0?void 0:u.requestId,resources:(d=x==null?void 0:x.signInWithEthereum)===null||d===void 0?void 0:d.resources};h=Z5(N),y=await b.request({method:"personal_sign",params:[Q5(h),k]})}try{const{data:g,error:w}=await ke(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:h,signature:y},!((f=t.options)===null||f===void 0)&&f.captchaToken?{gotrue_meta_security:{captcha_token:(m=t.options)===null||m===void 0?void 0:m.captchaToken}}:null),xform:ir});if(w)throw w;return!g||!g.session||!g.user?{data:{user:null,session:null},error:new Ra}:(g.session&&(await this._saveSession(g.session),await this._notifyAllSubscribers("SIGNED_IN",g.session)),{data:Object.assign({},g),error:w})}catch(g){if(xe(g))return{data:{user:null,session:null},error:g};throw g}}async signInWithSolana(t){var n,r,s,i,o,a,c,u,d,f,m,h;let y,g;if("message"in t)y=t.message,g=t.signature;else{const{chain:w,wallet:v,statement:x,options:b}=t;let _;if(mn())if(typeof v=="object")_=v;
517else{const k=window;if("solana"in k&&typeof k.solana=="object"&&("signIn"in k.solana&&typeof k.solana.signIn=="function"||"signMessage"in k.solana&&typeof k.solana.signMessage=="function"))_=k.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof v!="object"||!(b!=null&&b.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");_=v}const j=new URL((n=b==null?void 0:b.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in _&&_.signIn){const k=await _.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},b==null?void 0:b.signInWithSolana),{version:"1",domain:j.host,uri:j.href}),x?{statement:x}:null));let C;if(Array.isArray(k)&&k[0]&&typeof k[0]=="object")C=k[0];else if(k&&typeof k=="object"&&"signedMessage"in k&&"signature"in k)C=k;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in C&&"signature"in C&&(typeof C.signedMessage=="string"||C.signedMessage instanceof Uint8Array)&&C.signature instanceof Uint8Array)y=typeof C.signedMessage=="string"?C.signedMessage:new TextDecoder().decode(C.signedMessage),g=C.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in _)||typeof _.signMessage!="function"||!("publicKey"in _)||typeof _!="object"||!_.publicKey||!("toBase58"in _.publicKey)||typeof _.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");y=[`${j.host} wants you to sign in with your Solana account:`,_.publicKey.toBase58(),...x?["",x,""]:[""],"Version: 1",`URI: ${j.href}`,`Issued At: ${(s=(r=b==null?void 0:b.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&s!==void 0?s:new Date().toISOString()}`,...!((i=b==null?void 0:b.signInWithSolana)===null||i===void 0)&&i.notBefore?[`Not Before: ${b.signInWithSolana.notBefore}`]:[],...!((o=b==null?void 0:b.signInWithSolana)===null||o===void 0)&&o.expirationTime?[`Expiration Time: ${b.signInWithSolana.expirationTime}`]:[],...!((a=b==null?void 0:b.signInWithSolana)===null||a===void 0)&&a.chainId?[`Chain ID: ${b.signInWithSolana.chainId}`]:[],...!((c=b==null?void 0:b.signInWithSolana)===null||c===void 0)&&c.nonce?[`Nonce: ${b.signInWithSolana.nonce}`]:[],...!((u=b==null?void 0:b.signInWithSolana)===null||u===void 0)&&u.requestId?[`Request ID: ${b.signInWithSolana.requestId}`]:[],...!((f=(d=b==null?void 0:b.signInWithSolana)===null||d===void 0?void 0:d.resources)===null||f===void 0)&&f.length?["Resources",...b.signInWithSolana.resources.map(C=>`- ${C}`)]:[]].join(` 518`);const k=await _.signMessage(new TextEncoder().encode(y),"utf8");if(!k||!(k instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");g=k}}try{const{data:w,error:v}=await ke(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:y,signature:w5(g)},!((m=t.options)===null||m===void 0)&&m.captchaToken?{gotrue_meta_security:{captcha_token:(h=t.options)===null||h===void 0?void 0:h.captchaToken}}:null),xform:ir});if(v)throw v;return!w||!w.session||!w.user?{data:{user:null,session:null},error:new Ra}:(w.session&&(await this._saveSession(w.session),await this._notifyAllSubscribers("SIGNED_IN",w.session)),{data:Object.assign({},w),error:v})}catch(w){if(xe(w))return{data:{user:null,session:null},error:w};throw w}}async _exchangeCodeForSession(t){const n=await ri(this.storage,`${this.storageKey}-code-verifier`),[r,s]=(n??"").split("/");try{const{data:i,error:o}=await ke(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:ir});if(await is(this.storage,`${this.storageKey}-code-verifier`),o)throw o;return!i||!i.session||!i.user?{data:{user:null,session:null,redirectType:null},error:new Ra}:(i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",i.session)),{data:Object.assign(Object.assign({},i),{redirectType:s??null}),error:o})}catch(i){if(xe(i))return{data:{user:null,session:null,redirectType:null},error:i};throw i}}async signInWithIdToken(t){try{const{options:n,provider:r,token:s,access_token:i,nonce:o}=t,a=await ke(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:s,access_token:i,nonce:o,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:ir}),{data:c,error:u}=a;return u?{data:{user:null,session:null},error:u}:!c||!c.session||!c.user?{data:{user:null,session:null},error:new Ra}:(c.session&&(await this._saveSession(c.session),await this._notifyAllSubscribers("SIGNED_IN",c.session)),{data:c,error:u})}catch(n){if(xe(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOtp(t){var n,r,s,i,o;try{if("email"in t){const{email:a,options:c}=t;let u=null,d=null;this.flowType==="pkce"&&([u,d]=await Wi(this.storage,this.storageKey));const{error:f}=await ke(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:a,data:(n=c==null?void 0:c.data)!==null&&n!==void 0?n:{},create_user:(r=c==null?void 0:c.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:c==null?void 0:c.captchaToken},code_challenge:u,code_challenge_method:d},redirectTo:c==null?void 0:c.emailRedirectTo});return{data:{user:null,session:null},error:f}}if("phone"in t){const{phone:a,options:c}=t,{data:u,error:d}=await ke(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(s=c==null?void 0:c.data)!==null&&s!==void 0?s:{},create_user:(i=c==null?void 0:c.shouldCreateUser)!==null&&i!==void 0?i:!0,gotrue_meta_security:{captcha_token:c==null?void 0:c.captchaToken},channel:(o=c==null?void 0:c.channel)!==null&&o!==void 0?o:"sms"}});return{data:{user:null,session:null,messageId:u==null?void 0:u.message_id},error:d}}throw new zc("You must provide either an email or phone number.")}catch(a){if(xe(a))return{data:{user:null,session:null},error:a};throw a}}async verifyOtp(t){var n,r;try{let s,i;"options"in t&&(s=(n=t.options)===null||n===void 0?void 0:n.redirectTo,i=(r=t.options)===null||r===void 0?void 0:r.captchaToken);const{data:o,error:a}=await ke(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:i}}),redirectTo:s,xform:ir});if(a)throw a;if(!o)throw new Error("An error occurred on token verification.");const c=o.session,u=o.user;return c!=null&&c.access_token&&(await this._saveSession(c),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",c)),{data:{user:u,session:c},error:null}}catch(s){if(xe(s))return{data:{user:null,session:null},error:s};throw s}}async signInWithSSO(t){var n,r,s;try{let i=null,o=null;return this.flowType==="pkce"&&([i,o]=await Wi(this.storage,this.storageKey)),await ke(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(r=(n=t.options)===null||n===void 0?void 0:n.redirectTo)!==null&&r!==void 0?r:void 0}),!((s=t==null?void 0:t.options)===null||s===void 0)&&s.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:i,code_challenge_method:o}),headers:this.headers,xform:F5})}catch(i){if(xe(i))return{data:null,error:i};throw i}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)throw r;if(!n)throw new ls;const{error:s}=await ke(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return{data:{user:null,session:null},error:s}})}catch(t){if(xe(t))return{data:{user:null,session:null},error:t};throw t}}async resend(t){try{const n=`${this.url}/resend`;if("email"in t){const{email:r,type:s,options:i}=t,{error:o}=await ke(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}},redirectTo:i==null?void 0:i.emailRedirectTo});return{data:{user:null,session:null},error:o}}else if("phone"in t){const{phone:r,type:s,options:i}=t,{data:o,error:a}=await ke(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}}});return{data:{user:null,session:null,messageId:o==null?void 0:o.message_id},error:a}}throw new zc("You must provide either an email or phone number and a type")}catch(n){if(xe(n))return{data:{user:null,session:null},error:n};throw n}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,async()=>this._useSession(async n=>n))}async _acquireLock(t,n){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const r=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),s=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await s}catch{}})()),s}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const r=n();for(this.pendingInLock.push((async()=>{try{await r}catch{}})()),await r;this.pendingInLock.length;){const s=[...this.pendingInLock];await Promise.all(s),this.pendingInLock.splice(0,s.length)}return await r}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await t(n)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const n=await ri(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?t=n:(this._debug("#getSession()","session from storage is not val
518id"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at*1e3-Date.now()<fh:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.userStorage){const o=await ri(this.userStorage,this.storageKey+"-user");o!=null&&o.user?t.user=o.user:t.user=mh()}if(this.storage.isServer&&t.user){let o=this.suppressGetSessionWarning;t=new Proxy(t,{get:(c,u,d)=>(!o&&u==="user"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),o=!0,this.suppressGetSessionWarning=!0),Reflect.get(c,u,d))})}return{data:{session:t},error:null}}const{session:s,error:i}=await this._callRefreshToken(t.refresh_token);return i?{data:{session:null},error:i}:{data:{session:s},error:null}}finally{this._debug("#__loadSession()","end")}}async getUser(t){return t?await this._getUser(t):(await this.initializePromise,await this._acquireLock(-1,async()=>await this._getUser()))}async _getUser(t){try{return t?await ke(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:ms}):await this._useSession(async n=>{var r,s,i;const{data:o,error:a}=n;if(a)throw a;return!(!((r=o.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new ls}:await ke(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(i=(s=o.session)===null||s===void 0?void 0:s.access_token)!==null&&i!==void 0?i:void 0,xform:ms})})}catch(n){if(xe(n))return f5(n)&&(await this._removeSession(),await is(this.storage,`${this.storageKey}-code-verifier`)),{data:{user:null},error:n};throw n}}async updateUser(t,n={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(t,n))}async _updateUser(t,n={}){try{return await this._useSession(async r=>{const{data:s,error:i}=r;if(i)throw i;if(!s.session)throw new ls;const o=s.session;let a=null,c=null;this.flowType==="pkce"&&t.email!=null&&([a,c]=await Wi(this.storage,this.storageKey));const{data:u,error:d}=await ke(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n==null?void 0:n.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:a,code_challenge_method:c}),jwt:o.access_token,xform:ms});if(d)throw d;return o.user=u.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),{data:{user:o.user},error:null}})}catch(r){if(xe(r))return{data:{user:null},error:r};throw r}}async setSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new ls;const n=Date.now()/1e3;let r=n,s=!0,i=null;const{payload:o}=ph(t.access_token);if(o.exp&&(r=o.exp,s=r<=n),s){const{session:a,error:c}=await this._callRefreshToken(t.refresh_token);if(c)return{data:{user:null,session:null},error:c};if(!a)return{data:{user:null,session:null},error:null};i=a}else{const{data:a,error:c}=await this._getUser(t.access_token);if(c)throw c;i={access_token:t.access_token,refresh_token:t.refresh_token,user:a.user,token_type:"bearer",expires_in:r-n,expires_at:r},await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)}return{data:{user:i.user,session:i},error:null}}catch(n){if(xe(n))return{data:{session:null,user:null},error:n};throw n}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async n=>{var r;if(!t){const{data:o,error:a}=n;if(a)throw a;t=(r=o.session)!==null&&r!==void 0?r:void 0}if(!(t!=null&&t.refresh_token))throw new ls;const{session:s,error:i}=await this._callRefreshToken(t.refresh_token);return i?{data:{user:null,session:null},error:i}:s?{data:{user:s.user,session:s},error:null}:{data:{user:null,session:null},error:null}})}catch(n){if(xe(n))return{data:{user:null,session:null},error:n};throw n}}async _getSessionFromURL(t,n){try{if(!mn())throw new Fc("No browser detected.");
518if(t.error||t.error_description||t.error_code)throw new Fc(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new Lw("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Fc("Not a valid implicit grant flow url.");break;default:}if(n==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new Lw("No code detected.");const{data:x,error:b}=await this._exchangeCodeForSession(t.code);if(b)throw b;const _=new URL(window.location.href);return _.searchParams.delete("code"),window.history.replaceState(window.history.state,"",_.toString()),{data:{session:x.session,redirectType:null},error:null}}const{provider_token:r,provider_refresh_token:s,access_token:i,refresh_token:o,expires_in:a,expires_at:c,token_type:u}=t;if(!i||!a||!o||!u)throw new Fc("No session defined in URL");const d=Math.round(Date.now()/1e3),f=parseInt(a);let m=d+f;c&&(m=parseInt(c));const h=m-d;h*1e3<=Ji&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${h}s, should have been closer to ${f}s`);const y=m-f;d-y>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",y,m,d):d-y<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",y,m,d);const{data:g,error:w}=await this._getUser(i);if(w)throw w;const v={provider_token:r,provider_refresh_token:s,access_token:i,expires_in:f,expires_at:m,refresh_token:o,token_type:u,user:g.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),{data:{session:v,redirectType:t.type},error:null}}catch(r){if(xe(r))return{data:{session:null,redirectType:null},error:r};throw r}}_isImplicitGrantCallback(t){return!!(t.access_token||t.error_description)}async _isPKCECallback(t){const n=await ri(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&n)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async n=>{var r;const{data:s,error:i}=n;if(i)return{error:i};const o=(r=s.session)===null||r===void 0?void 0:r.access_token;if(o){const{error:a}=await this.admin.signOut(o,t);if(a&&!(d5(a)&&(a.status===404||a.status===401||a.status===403)))return{error:a}}return t!=="others"&&(await this._removeSession(),await is(this.storage,`${this.storageKey}-code-verifier`)),{error:null}})}onAuthStateChange(t){const n=_5(),r={id:n,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",n),this.stateChangeEmitters.delete(n)}};return this._debug("#onAuthStateChange()","registered callback with id",n),this.stateChangeEmitters.set(n,r),(async()=>(await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(n)})))(),{data:{subscription:r}}}async _emitInitialSession(t){return await this._useSession(async n=>{var r,s;try{const{data:{session:i},error:o}=n;if(o)throw o;await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",i)),this._debug("INITIAL_SESSION","callback id",t,"session",i)}catch(i){await((s=this.stateChangeEmitters.get(t))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",i),console.error(i)}})}async resetPasswordForEmail(t,n={}){let r=null,s=null;this.flowType==="pkce"&&([r,s]=await Wi(this.storage,this.storageKey,!0));try{return await ke(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:r,code_challenge_method:s,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(i){if(xe(i))return{data:null,error:i};throw i}}async getUserIdentities(){var t;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return{data:{identities:(t=n.user.identities)!==null&&t!==void 0?t:[]},error:null}}catch(n){if(xe(n))return{data:null,error:n};throw n}}async linkIdentity(t){var n;try{const{data:r,error:s}=await this._useSession(async i=>{var o,a,c,u,d;const{data:f,error:m}=i;if(m)throw m;const h=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(o=t.options)===null||o===void 0?void 0:o.redirectTo,scopes:(a=t.options)===null||a===void 0?void 0:a.scopes,queryParams:(c=t.options)===null||c===void 0?void 0:c.queryParams,skipBrowserRedirect:!0});return await ke(this.fetch,"GET",h,{headers:this.headers,jwt:(d=(u=f.session)===null||u===void 0?void 0:u.access_token)!==null&&d!==void 0?d:void 0})});if(s)throw s;return mn()&&!(!((n=t.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r==null?void 0:r.url),{data:{provider:t.provider,url:r==null?void 0:r.url},error:null}}catch(r){if(xe(r))return{data:{provider:t.provider,url:null},error:r};throw r}}async unlinkIdentity(t){try{return await this._useSession(async n=>{var r,s;const{data:i,error:o}=n;
518if(o)throw o;return await ke(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(s=(r=i.session)===null||r===void 0?void 0:r.access_token)!==null&&s!==void 0?s:void 0})})}catch(n){if(xe(n))return{data:null,error:n};throw n}}async _refreshAccessToken(t){const n=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(n,"begin");try{const r=Date.now();return await j5(async s=>(s>0&&await E5(200*Math.pow(2,s-1)),this._debug(n,"refreshing attempt",s),await ke(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:ir})),(s,i)=>{const o=200*Math.pow(2,s);return i&&hh(i)&&Date.now()+o-r<Ji})}catch(r){if(this._debug(n,"error",r),xe(r))return{data:{session:null,user:null},error:r};throw r}finally{this._debug(n,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,n){const r=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",n,"url",r),mn()&&!n.skipBrowserRedirect&&window.location.assign(r),{data:{provider:t,url:r},error:null}}async _recoverAndRefresh(){var t,n;const r="#_recoverAndRefresh()";this._debug(r,"begin");try{const s=await ri(this.storage,this.storageKey);if(s&&this.userStorage){let o=await ri(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!o&&(o={user:s.user},await eo(this.userStorage,this.storageKey+"-user",o)),s.user=(t=o==null?void 0:o.user)!==null&&t!==void 0?t:mh()}else if(s&&!s.user&&!s.user){const o=await ri(this.storage,this.storageKey+"-user");o&&(o!=null&&o.user)?(s.user=o.user,await is(this.storage,this.storageKey+"-user"),await eo(this.storage,this.storageKey,s)):s.user=mh()}if(this._debug(r,"session from storage",s),!this._isValidSession(s)){this._debug(r,"session is not valid"),s!==null&&await this._removeSession();return}const i=((n=s.expires_at)!==null&&n!==void 0?n:1/0)*1e3-Date.now()<fh;if(this._debug(r,`session has${i?"":" not"} expired with margin of ${fh}s`),i){if(this.autoRefreshToken&&s.refresh_token){const{error:o}=await this._callRefreshToken(s.refresh_token);o&&(console.error(o),hh(o)||(this._debug(r,"refresh failed with a non-retryable error, removing the session",o),await this._removeSession()))}}else if(s.user&&s.user.__isUserNotAvailableProxy===!0)try{const{data:o,error:a}=await this._getUser(s.access_token);!a&&(o!=null&&o.user)?(s.user=o.user,await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)):this._debug(r,"could not get user data, skipping SIGNED_IN notification")}catch(o){console.error("Error getting user data:",o),this._debug(r,"error getting user data, skipping SIGNED_IN notification",o)}else await this._notifyAllSubscribers("SIGNED_IN",s)}catch(s){this._debug(r,"error",s),console.error(s);return}finally{this._debug(r,"end")}}async _callRefreshToken(t){var n,r;if(!t)throw new ls;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const s=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(s,"begin");try{this.refreshingDeferred=new Zd;const{data:i,error:o}=await this._refreshAccessToken(t);if(o)throw o;if(!i.session)throw new ls;await this._saveSession(i.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",i.session);const a={session:i.session,error:null};return this.refreshingDeferred.resolve(a),a}catch(i){if(this._debug(s,"error",i),xe(i)){const o={session:null,error:i};return hh(i)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(o),o}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(i),i}finally{this.refreshingDeferred=null,this._debug(s,"end")}}async _notifyAllSubscribers(t,n,r=!0){const s=`#_notifyAllSubscribers(${t})`;this._debug(s,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:t,session:n});const i=[],o=Array.from(this.stateChangeEmitters.values()).map(async a=>{try{await a.callback(t,n)}catch(c){i.push(c)}});if(await Promise.all(o),i.length>0){for(let a=0;a<i.length;a+=1)console.error(i[a]);throw i[0]}}finally{this._debug(s,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0;const n=Object.assign({},t),r=n.user&&n.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!r&&n.user&&await eo(this.userStorage,this.storageKey+"-user",{user:n.user});const s=Object.assign({},n);delete s.user;const i=Bw(s);await eo(this.storage,this.storageKey,i)}else{const s=Bw(n);await eo(this.storage,this.storageKey,s)}}async _removeSession(){this._debug("#_removeSession()"),await is(this.storage,this.storageKey),await is(this.storage,this.storageKey+"-code-verifier"),await is(this.storage,this.storageKey+"-user"),this.userStorage&&await is(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&mn()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}
518catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),Ji);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async n=>{const{data:{session:r}}=n;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const s=Math.floor((r.expires_at*1e3-t)/Ji);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${Ji}ms, refresh threshold is ${bm} ticks`),s<=bm&&await this._callRefreshToken(r.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof wE)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!mn()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const n=`#_onVisibilityChanged(${t})`;this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(-1,async()=>{if(document.visibilityState!=="visible"){this._debug(n,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,n,r){const s=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&s.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&s.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[i,o]=await Wi(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(i)}`,code_challenge_method:`${encodeURIComponent(o)}`});s.push(a.toString())}if(r!=null&&r.queryParams){const i=new URLSearchParams(r.queryParams);s.push(i.toString())}return r!=null&&r.skipBrowserRedirect&&s.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${t}?${s.join("&")}`}async _unenroll(t){try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;return i?{data:null,error:i}:await ke(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(xe(n))return{data:null,error:n};throw n}}async _enroll(t){try{return await this._useSession(async n=>{var r,s;const{data:i,error:o}=n;if(o)return{data:null,error:o};const a=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:{issuer:t.issuer}),{data:c,error:u}=await ke(this.fetch,"POST",`${this.url}/factors`,{body:a,headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token});return u?{data:null,error:u}:(t.factorType==="totp"&&(!((s=c==null?void 0:c.totp)===null||s===void 0)&&s.qr_code)&&(c.totp.qr_code=`data:image/svg+xml;utf-8,${c.totp.qr_code}`),{data:c,error:null})})}catch(n){if(xe(n))return{data:null,error:n};throw n}}async _verify(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;if(i)return{data:null,error:i};const{data:o,error:a}=await ke(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:{code:t.code,challenge_id:t.challengeId},headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});return a?{data:null,error:a}:(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+o.expires_in},o)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",o),{data:o,error:a})})}catch(n){if(xe(n))return{data:null,error:n};throw n}})}async _challenge(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;return i?{data:null,error:i}:await ke(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:{channel:t.channel},headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(xe(n))return{data:null,error:n};throw n}})}async _challengeAndVerify(t){const{data:n,error:r}=await this._challenge({factorId:t.factorId});return r?{data:null,error:r}:await this._verify({factorId:t.factorId,challengeId:n.id,code:t.code})}async _listFactors(){const{data:{user:t},error:n}=await this.getUser();if(n)return{data:null,error:n};const r=(t==null?void 0:t.factors)||[],s=r.filter(o=>o.factor_type==="totp"&&o.status==="verified"),i=r.filter(o=>o.factor_type==="phone"&&o.status==="verified");return{data:{all:r,totp:s,phone:i},error:null}}async _getAuthenticatorAssuranceLevel(){return this._acquireLock(-1,async()=>await this._useSession(async t=>{var n,r;const{data:{session:s},error:i}=t;if(i)return{data:null,error:i};if(!s)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:o}=ph(s.access_token);let a=null;o.aal&&(a=o.aal);let c=a;((r=(n=s.user.factors)===null||n===void 0?void 0:n.filter(f=>f.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(c="aal2");const d=o.amr||[];return{data:{currentLevel:a,nextLevel:c,currentAuthenticationMethods:d},error:null}}))}async fetchJwk(t,n={keys:[]}){let r=n.keys.find(a=>a.kid===t);if(r)return r;const s=Date.now();if(r=this.jwks.keys.find(a=>a.kid===t),r&&this.jwks_cached_at+c5>s)return r;const{data:i,error:o}=await ke(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(o)throw o;return!i.keys||i.keys.length===0||(this.jwks=i,this.jwks_cached_at=s,r=i.keys.find(a=>a.kid===t),!r)?null:r}async getClaims(t,n={}){try{let r=t;if(!r){const{data:h,error:y}
518=await this.getSession();if(y||!h.session)return{data:null,error:y};r=h.session.access_token}const{header:s,payload:i,signature:o,raw:{header:a,payload:c}}=ph(r);n!=null&&n.allowExpired||A5(i.exp);const u=!s.alg||s.alg.startsWith("HS")||!s.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(s.kid,n!=null&&n.keys?{keys:n.keys}:n==null?void 0:n.jwks);if(!u){const{error:h}=await this.getUser(r);if(h)throw h;return{data:{claims:i,header:s,signature:o},error:null}}const d=O5(s.alg),f=await crypto.subtle.importKey("jwk",u,d,!0,["verify"]);if(!await crypto.subtle.verify(d,f,o,x5(`${a}.${c}`)))throw new Sm("Invalid JWT signature");return{data:{claims:i,header:s,signature:o},error:null}}catch(r){if(xe(r))return{data:null,error:r};throw r}}}Ol.nextInstanceID=0;const J5=Ol;class e$ extends J5{constructor(t){super(t)}}var t$=function(e,t,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(d){try{u(r.next(d))}catch(f){o(f)}}function c(d){try{u(r.throw(d))}catch(f){o(f)}}function u(d){d.done?i(d.value):s(d.value).then(a,c)}u((r=r.apply(e,t||[])).next())})};class n${constructor(t,n,r){var s,i,o;this.supabaseUrl=t,this.supabaseKey=n;const a=s5(t);if(!n)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",a),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",a),this.storageUrl=new URL("storage/v1",a),this.functionsUrl=new URL("functions/v1",a);const c=`sb-${a.hostname.split(".")[0]}-auth-token`,u={db:G4,realtime:Q4,auth:Object.assign(Object.assign({},Y4),{storageKey:c}),global:K4},d=r5(r??{},u);this.storageKey=(s=d.auth.storageKey)!==null&&s!==void 0?s:"",this.headers=(i=d.global.headers)!==null&&i!==void 0?i:{},d.accessToken?(this.accessToken=d.accessToken,this.auth=new Proxy({},{get:(f,m)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(m)} is not possible`)}})):this.auth=this._initSupabaseAuthClient((o=d.auth)!==null&&o!==void 0?o:{},this.headers,d.global.fetch),this.fetch=e5(n,this._getAccessToken.bind(this),d.global.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers,accessToken:this._getAccessToken.bind(this)},d.realtime)),this.rest=new u4(new URL("rest/v1",a).href,{headers:this.headers,schema:d.db.schema,fetch:this.fetch}),this.storage=new V4(this.storageUrl.href,this.headers,this.fetch,r==null?void 0:r.storage),d.accessToken||this._listenForAuthEvents()}get functions(){return new BL(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(t){return this.rest.from(t)}schema(t){return this.rest.schema(t)}rpc(t,n={},r={}){return this.rest.rpc(t,n,r)}channel(t,n={config:{}}){return this.realtime.channel(t,n)}getChannels(){return this.realtime.getChannels()}removeChannel(t){return this.realtime.removeChannel(t)}removeAllChannels(){return this.realtime.removeAllChannels()}_getAccessToken(){var t,n;return t$(this,void 0,void 0,function*(){if(this.accessToken)return yield this.accessToken();const{data:r}=yield this.auth.getSession();return(n=(t=r.session)===null||t===void 0?void 0:t.access_token)!==null&&n!==void 0?n:this.supabaseKey})}_initSupabaseAuthClient({autoRefreshToken:t,persistSession:n,detectSessionInUrl:r,storage:s,userStorage:i,storageKey:o,flowType:a,lock:c,debug:u},d,f){const m={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new e$({url:this.authUrl.href,headers:Object.assign(Object.assign({},m),d),storageKey:o,autoRefreshToken:t,persistSession:n,detectSessionInUrl:r,storage:s,userStorage:i,flowType:a,lock:c,debug:u,fetch:f,hasCustomAuthorizationHeader:Object.keys(this.headers).some(h=>h.toLowerCase()==="authorization")})}_initRealtimeClient(t){return new C4(this.realtimeUrl.href,Object.assign(Object.assign({},t),{params:Object.assign({apikey:this.supabaseKey},t==null?void 0:t.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((n,r)=>{this._handleTokenChanged(n,"CLIENT",r==null?void 0:r.access_token)})}_handleTokenChanged(t,n,r){(t==="TOKEN_REFRESHED"||t==="SIGNED_IN")&&this.changedAccessToken!==r?(this.changedAccessToken=r,this.realtime.setAuth(r)):t==="SIGNED_OUT"&&(this.realtime.setAuth(),n=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}}const r$=(e,t,n)=>new n$(e,t,n);function s$(){if(typeof window<"u"||typeof process>"u")return!1;const e=process.version;if(e==null)return!1;const t=e.match(/^v(\d+)\./);return t?parseInt(t[1],10)<=18:!1}s$()&&console.warn("â ï¸ Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to N
518ode.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");function i$(){var w,v;if(typeof window>"u")return;const e=location.hostname,n=["lovableproject.com","lovableproject-dev.com","lovable.app","gpt-eng.com","gptengineer.run"].some(x=>e===x||e.endsWith("."+x)),r="[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",s=n?((w=e.match(new RegExp("^(?:id-preview(?:-[a-z0-9]+)?|project)--("+r+")(?:-dev)?(?=\\.|$)","i")))==null?void 0:w[1])??((v=e.match(new RegExp("^("+r+")(?=[.-])","i")))==null?void 0:v[1]):void 0,i=window.parent&&window.parent!==window;if(!s||!i)return localStorage;const o=e.endsWith(".lovableproject-dev.com")||e.endsWith(".gpt-eng.com"),a=o?/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$|^http:\/\/localhost:3000$/:/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$/,c=location.ancestorOrigins&&location.ancestorOrigins[0]||(document.referrer?new URL(document.referrer).origin:""),u=c&&a.test(c)?[c]:o?["https://lovable.dev","http://localhost:3000"]:["https://lovable.dev"],d="lovable-preview-auth:result",f=2e3,m=()=>Math.random().toString(36).slice(2)+Date.now().toString(36),h=(x,b,_)=>new Promise(j=>{const k=m();let C=!1,N;const T=P=>{C||(C=!0,clearTimeout(N),window.removeEventListener("message",A),j(P))},A=P=>{if(u.indexOf(P.origin)<0)return;const L=P.data;L&&L.type===d&&L.requestId===k&&T(L)};window.addEventListener("message",A);const M={type:x,requestId:k,projectId:s,key:b};_!==void 0&&(M.value=_);for(const P of u)window.parent.postMessage(M,P);N=setTimeout(()=>T(null),f)});let y=!0;const g=250;return{getItem:async x=>{let b=await h("lovable-preview-auth:get",x);return!b&&y&&(await new Promise(_=>setTimeout(_,g)),b=await h("lovable-preview-auth:get",x)),y=!1,b&&b.ok&&typeof b.value=="string"?b.value===""?(localStorage.removeItem(x),null):b.value:localStorage.getItem(x)},setItem:(x,b)=>(localStorage.setItem(x,b),h("lovable-preview-auth:set",x,b).then(()=>{})),removeItem:x=>(localStorage.removeItem(x),h("lovable-preview-auth:remove",x).then(()=>{}))}}const o$="https://zjksbbrwtkfqfkczuyfm.supabase.co",a$="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Inpqa3NiYnJ3dGtmcWZrY3p1eWZtIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTk0MTQyODgsImV4cCI6MjA3NDk5MDI4OH0.rMN6xaBNrynnXHmc5d_2Vzw_olzRK2nPVx7X1awQkgo",ce=r$(o$,a$,{auth:{storage:i$(),persistSession:!0,autoRefreshToken:!0}}),l$=Object.freeze(Object.defineProperty({__proto__:null,supabase:ce},Symbol.toStringTag,{value:"Module"})),_E=p.createContext(void 0),yh={starter:{context_lookups:50,ai_agent_runs:5},professional:{context_lookups:500,ai_agent_runs:50},enterprise:{context_lookups:-1,ai_agent_runs:-1}},c$={starter:["prospects","organizations","contacts","tasks","deals","email_tracking","basic_analytics","ai_email_drafting","basic_meeting_prep","basic_deal_scoring","ai_agents_basic","digital_business_card","business_card_scanner","qr_code_sharing"],professional:["prospects","organizations","contacts","tasks","deals","email_tracking","basic_analytics","ai_email_drafting","basic_meeting_prep","basic_deal_scoring","ai_agents_basic","digital_business_card","business_card_scanner","qr_code_sharing","scout_ai","proposal_builder","quote_builder","vanity_share_links","event_builder","email_templates","calendar_integrations","linkedin_outreach","contact_enrichment","send_time_optimization","task_automation","battle_cards","competitor_alerts","deal_thermometer","win_loss_analysis","campaign_launcher","campaign_builder","ai_agents_pro","funding_alerts","intent_signals","subject_line_testing"],enterprise:["prospects","organizations","contacts","tasks","deals","email_tracking","basic_analytics","ai_email_drafting","basic_meeting_prep","basic_deal_scoring","ai_agents_basic","digital_business_card","business_card_scanner","qr_code_sharing","scout_ai","proposal_builder","quote_builder","vanity_share_links","event_builder","email_templates","calendar_integrations","linkedin_outreach","contact_enrichment","send_time_optimization","task_automation","battle_cards","competitor_alerts","deal_thermometer","win_loss_analysis","campaign_launcher","campaign_builder","ai_agents_pro","funding_alerts","intent_signals","subject_line_testing","ai_personalization","advanced_meeting_prep","sales_coach","zoom_sidebar","ai_network_intelligence","ai_learning_system","nightly_intelligence","cold_prospect_detection","job_change_tracking","rfp_tracker","smart_cadence","playbooks","automated_enrichment","user_management","bulk_user_upload","organization_assignment","team_analytics","usage_analytics","webhook_integrations","api_access","crm_integrations","advanced_crm_sync","revenue_forecasting","roi_calculator","account_plays","pipeline_customization","k12_legislative_tracker","ai_agents_unlimited","white_label_events","custom_api_integrations"]},u$=({children:e})=>{const t=()=>{const h=new Date;return`${h.getFullYear()}
518-${String(h.getMonth()+1).padStart(2,"0")}`},[n,r]=p.useState({tier:"starter",product_id:null,context_lookups_limit:yh.starter.context_lookups,subscription_end:null,is_trial:!1,trial_expired:!1,trial_ends_at:null}),[s,i]=p.useState({context_lookups:0,month_year:t()}),[o,a]=p.useState(!0),{toast:c}=Gr(),u=async()=>{var h,y,g;try{const{data:{session:w}}=await ce.auth.getSession();if(!w){a(!1);return}const[v,x,b]=await Promise.all([ce.functions.invoke("check-subscription").catch(()=>({data:null,error:"failed"})),ce.from("subscription_tiers").select("tier_name, product_id, subscription_end, context_lookups_limit").eq("user_id",w.user.id).maybeSingle(),ce.from("usage_tracking").select("*").eq("user_id",w.user.id).eq("month_year",t()).maybeSingle()]);let _="starter",j=null,k=null,C=!1,N=!1;if(v.data&&v.data.tier)_=v.data.tier||"starter",j=v.data.product_id||null,k=v.data.subscription_end||null,C=v.data.is_trial===!0,N=v.data.stripe_confirmed===!0;else if(x.data){const z=x.data;(!z.subscription_end||new Date(z.subscription_end).getTime()>Date.now())&&z.tier_name&&(_=z.tier_name,j=z.product_id||null,k=z.subscription_end||null)}const{data:T}=await ce.from("profiles").select("trial_started_at, trial_ends_at").eq("id",w.user.id).maybeSingle();let A=(T==null?void 0:T.trial_ends_at)||null,M=!1;const P=k||((h=x.data)==null?void 0:h.subscription_end)||null,L=(!!((y=x.data)!=null&&y.tier_name)||!!((g=v.data)!=null&&g.tier))&&(!P||new Date(P).getTime()>Date.now()),{data:R}=await ce.from("user_roles").select("role").eq("user_id",w.user.id).in("role",["admin","super_admin","uber_admin"]).maybeSingle();R||L?(M=!1,L&&P&&(A=P),C=!N&&!R&&!!A):!N&&A&&(M=new Date(A).getTime()<Date.now(),C=!M),r({tier:_,product_id:j,context_lookups_limit:yh[_].context_lookups,subscription_end:k,is_trial:C,trial_expired:M,trial_ends_at:A}),b.data&&i({context_lookups:b.data.context_lookups||0,month_year:b.data.month_year})}catch(w){console.error("Subscription refresh error:",w)}finally{a(!1)}};p.useEffect(()=>{let h=!0;(async()=>{const{data:{session:w}}=await ce.auth.getSession();w&&h?await u():a(!1)})();const{data:g}=ce.auth.onAuthStateChange(w=>{h&&(w==="SIGNED_IN"?setTimeout(()=>{h&&u()},0):w==="SIGNED_OUT"&&(r({tier:"starter",product_id:null,context_lookups_limit:yh.starter.context_lookups,subscription_end:null,is_trial:!1,trial_expired:!1,trial_ends_at:null}),i({context_lookups:0,month_year:t()}),a(!1)))});return()=>{h=!1,g.subscription.unsubscribe()}},[]);const d=h=>c$[n.tier].includes(h),f=()=>n.tier==="enterprise"?!0:s.context_lookups<n.context_lookups_limit,m=async h=>{if(!f())throw c({title:"Usage Limit Reached",description:`You've used all ${n.context_lookups_limit} context lookups this month. Upgrade your plan to continue.`,variant:"destructive"}),new Error("Usage limit exceeded");try{const{data:{session:y}}=await ce.auth.getSession();if(!y)return;const g=t(),{data:w}=await ce.from("usage_tracking").select("*").eq("user_id",y.user.id).eq("month_year",g).maybeSingle();if(w){const{error:v}=await ce.from("usage_tracking").update({context_lookups:w.context_lookups+1}).eq("id",w.id);v||i({context_lookups:w.context_lookups+1,month_year:g})}else{const{error:v}=await ce.from("usage_tracking").insert({user_id:y.user.id,month_year:g,context_lookups:1});v||i({context_lookups:1,month_year:g})}}catch(y){throw console.error("Usage increment error:",y),y.message!=="Usage limit exceeded"&&c({title:"Error",description:"Failed to track usage",variant:"destructive"}),y}};return l.jsx(_E.Provider,{value:{tier:n,usage:s,loading:!1,isTrialUser:n.is_trial,isTrialExpired:n.trial_expired,hasFeatureAccess:d,canUseContextLookup:f,incrementUsage:m,refreshSubscription:u},children:e})},Cy=()=>{const e=p.useContext(_E);if(!e)throw new Error("useSubscription must be used within SubscriptionProvider");return e},kE=p.createContext(null),lq=()=>{const e=p.useContext(kE);if(!e)throw new Error("useBackgroundTasks must be used within BackgroundTaskProvider");return e},d$=({children:e})=>{const[t,n]=p.useState([]),r=async(o,a,c,u)=>{try{const{data:{user:d}}=await ce.auth.getUser();if(!d)return;await ce.from("user_activity_log").insert({user_id:d.id,action_type:`background_${o}`,action_description:`${c==="started"?"Started":c==="completed"?"Completed":"Failed"}: ${a}
518`,page_url:window.location.pathname,component_name:"BackgroundTask",metadata:{task_type:o,task_label:a,task_status:c,...u,timestamp:new Date().toISOString()}})}catch{}},s=p.useCallback(async(o,a,c,u)=>{const d=crypto.randomUUID(),f={id:d,type:o,label:a,status:"running",startedAt:new Date().toISOString(),metadata:u};n(m=>[...m,f]),sh.info(`${a} started â you can navigate away safely.`),r(o,a,"started",u),c().then(()=>{n(m=>m.map(h=>h.id===d?{...h,status:"completed",completedAt:new Date().toISOString()}:h)),sh.success(`${a} completed!`),r(o,a,"completed",u)}).catch(m=>{n(h=>h.map(y=>y.id===d?{...y,status:"failed",completedAt:new Date().toISOString()}:y)),sh.error(`${a} failed: ${(m==null?void 0:m.message)||"Unknown error"}`),r(o,a,"failed",{...u,error:m==null?void 0:m.message})})},[]),i=t.filter(o=>o.status==="running");return l.jsx(kE.Provider,{value:{tasks:t,runInBackground:s,activeTasks:i},children:e})},f$=()=>l.jsx("div",{className:"flex items-center justify-center min-h-screen bg-background",children:l.jsxs("div",{className:"flex flex-col items-center gap-4",children:[l.jsx(El,{className:"h-12 w-12 animate-spin text-primary"}),l.jsx("p",{className:"text-muted-foreground",children:"Loading..."})]})}),h$=ia("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 shadow-md hover:shadow-lg",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",hero:"bg-gradient-to-r from-accent to-accent/90 text-accent-foreground hover:shadow-[var(--shadow-glow)] hover:scale-[1.02] font-semibold",glass:"bg-card/60 backdrop-blur-sm border border-border/50 hover:bg-card/80 text-card-foreground"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-12 rounded-lg px-8 text-base",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),we=p.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...s},i)=>{const o=r?sa:"button";return l.jsx(o,{className:X(h$({variant:t,size:n,className:e})),ref:i,...s})});we.displayName="Button";const p$=()=>{const[e,t]=p.useState(!1),[n,r]=p.useState(!1);p.useEffect(()=>{if(!("serviceWorker"in navigator))return;(async()=>{try{const a=await navigator.serviceWorker.getRegistration();if(!a)return;a.addEventListener("updatefound",()=>{const c=a.installing;c&&c.addEventListener("statechange",()=>{c.state==="installed"&&navigator.serviceWorker.controller&&t(!0)})}),a.update().catch(()=>{})}catch(a){console.log("SW update check failed:",a)}})();const o=setInterval(()=>{navigator.serviceWorker.getRegistration().then(a=>a==null?void 0:a.update()).catch(()=>{})},5*60*1e3);return()=>clearInterval(o)},[]);const s=()=>{r(!0),navigator.serviceWorker.getRegistration().then(i=>{i!=null&&i.waiting&&i.waiting.postMessage({type:"SKIP_WAITING"})}),setTimeout(()=>window.location.reload(),500)};return e?l.jsx("div",{className:"fixed top-0 left-0 right-0 z-[100] bg-primary text-primary-foreground px-4 py-3 shadow-lg animate-in slide-in-from-top duration-300",children:l.jsxs("div",{className:"container mx-auto flex items-center justify-between gap-3",children:[l.jsxs("div",{className:"flex items-center gap-2 text-sm font-medium",children:[l.jsx(zk,{className:"h-4 w-4"}),l.jsx("span",{children:"A new version of ReplyHounds is available!"})]}),l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx(we,{size:"sm",variant:"secondary",onClick:s,disabled:n,className:"text-xs",children:n?"Updating...":"Update Now"}),l.jsx("button",{onClick:()=>t(!1),className:"p-1 hover:opacity-70",children:l.jsx(ln,{className:"h-4 w-4"})})]})]})}):null},cq=async()=>
518{if(!("serviceWorker"in navigator))return!1;try{const e=await navigator.serviceWorker.getRegistration();return e?(await e.update(),!!e.waiting):!1}catch{return!1}},uq=async()=>{if(!("serviceWorker"in navigator)){window.location.reload();return}try{const e=await navigator.serviceWorker.getRegistration();e!=null&&e.waiting?(e.waiting.postMessage({type:"SKIP_WAITING"}),setTimeout(()=>window.location.reload(),500)):window.location.reload()}catch{window.location.reload()}},vn=p.forwardRef(({className:e,type:t,...n},r)=>l.jsx("input",{type:t,className:X("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));vn.displayName="Input";var m$=p.createContext(void 0);function ha(e){const t=p.useContext(m$);return e||t||"ltr"}function Ny(e,[t,n]){return Math.min(n,Math.max(t,e))}function g$(e,t){return p.useReducer((n,r)=>t[n][r]??n,e)}var Ty="ScrollArea",[SE,dq]=Yt(Ty),[y$,Nn]=SE(Ty),EE=p.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:s,scrollHideDelay:i=600,...o}=e,[a,c]=p.useState(null),[u,d]=p.useState(null),[f,m]=p.useState(null),[h,y]=p.useState(null),[g,w]=p.useState(null),[v,x]=p.useState(0),[b,_]=p.useState(0),[j,k]=p.useState(!1),[C,N]=p.useState(!1),T=Ne(t,M=>c(M)),A=ha(s);return l.jsx(y$,{scope:n,type:r,dir:A,scrollHideDelay:i,scrollArea:a,viewport:u,onViewportChange:d,content:f,onContentChange:m,scrollbarX:h,onScrollbarXChange:y,scrollbarXEnabled:j,onScrollbarXEnabledChange:k,scrollbarY:g,onScrollbarYChange:w,scrollbarYEnabled:C,onScrollbarYEnabledChange:N,onCornerWidthChange:x,onCornerHeightChange:_,children:l.jsx(ue.div,{dir:A,...o,ref:T,style:{position:"relative","--radix-scroll-area-corner-width":v+"px","--radix-scroll-area-corner-height":b+"px",...e.style}})})});EE.displayName=Ty;var jE="ScrollAreaViewport",CE=p.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:s,...i}=e,o=Nn(jE,n),a=p.useRef(null),c=Ne(t,a,o.onViewportChange);return l.jsxs(l.Fragment,{children:[l.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),l.jsx(ue.div,{"data-radix-scroll-area-viewport":"",...i,ref:c,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...e.style},children:l.jsx("div",{ref:o.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});CE.displayName=jE;var jr="ScrollAreaScrollbar",Py=p.forwardRef((e,t)=>{const{forceMount:n,...r}=e,s=Nn(jr,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:o}=s,a=e.orientation==="horizontal";return p.useEffect(()=>(a?i(!0):o(!0),()=>{a?i(!1):o(!1)}),[a,i,o]),s.type==="hover"?l.jsx(v$,{...r,ref:t,forceMount:n}):s.type==="scroll"?l.jsx(x$,{...r,ref:t,forceMount:n}):s.type==="auto"?l.jsx(NE,{...r,ref:t,forceMount:n}):s.type==="always"?l.jsx(Ry,{...r,ref:t}):null});Py.displayName=jr;var v$=p.forwardRef((e,t)=>{const{forceMount:n,...r}=e,s=Nn(jr,e.__scopeScrollArea),[i,o]=p.useState(!1);return p.useEffect(()=>{const a=s.scrollArea;let c=0;if(a){const u=()=>{window.clearTimeout(c),o(!0)},d=()=>{c=window.setTimeout(()=>o(!1),s.scrollHideDelay)};return a.addEventListener("pointerenter",u),a.addEventListener("pointerleave",d),()=>{window.clearTimeout(c),a.removeEventListener("pointerenter",u),a.removeEventListener("pointerleave",d)}}},[s.scrollArea,s.scrollHideDelay]),l.jsx(Tt,{present:n||i,children:l.jsx(NE,{"data-state":i?"visible":"hidden",...r,ref:t})})}),x$=p.forwardRef((e,t)=>{const{forceMount:n,...r}=e,s=Nn(jr,e.__scopeScrollArea),i=e.orientation==="horizontal",o=Jd(()=>c("SCROLL_END"),100),[a,c]=g$("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return p.useEffect(()=>{if(a==="idle"){const u=window.setTimeout(()=>c("HIDE"),s.scrollHideDelay);return()=>window.clearTimeout(u)}},[a,s.scrollHideDelay,c]),p.useEffect(()=>{const u=s.viewport,d=i?"scrollLeft":"scrollTop";if(u){let f=u[d];const m=()=>{const h=u[d];
vendor: 14,250 bytes, line 518
518f!==h&&(c("SCROLL"),o()),f=h};return u.addEventListener("scroll",m),()=>u.removeEventListener("scroll",m)}},[s.viewport,i,c,o]),l.jsx(Tt,{present:n||a!=="hidden",children:l.jsx(Ry,{"data-state":a==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:ne(e.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:ne(e.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),NE=p.forwardRef((e,t)=>{const n=Nn(jr,e.__scopeScrollArea),{forceMount:r,...s}=e,[i,o]=p.useState(!1),a=e.orientation==="horizontal",c=Jd(()=>{if(n.viewport){const u=n.viewport.offsetWidth<n.viewport.scrollWidth,d=n.viewport.offsetHeight<n.viewport.scrollHeight;o(a?u:d)}},10);return Yo(n.viewport,c),Yo(n.content,c),l.jsx(Tt,{present:r||i,children:l.jsx(Ry,{"data-state":i?"visible":"hidden",...s,ref:t})})}),Ry=p.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,s=Nn(jr,e.__scopeScrollArea),i=p.useRef(null),o=p.useRef(0),[a,c]=p.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=AE(a.viewport,a.content),d={...r,sizes:a,onSizesChange:c,hasThumb:u>0&&u<1,onThumbChange:m=>i.current=m,onThumbPointerUp:()=>o.current=0,onThumbPointerDown:m=>o.current=m};function f(m,h){return E$(m,o.current,a,h)}return n==="horizontal"?l.jsx(w$,{...d,ref:t,onThumbPositionChange:()=>{if(s.viewport&&i.current){const m=s.viewport.scrollLeft,h=Kw(m,a,s.dir);i.current.style.transform=`translate3d(${h}px, 0, 0)`}},onWheelScroll:m=>{s.viewport&&(s.viewport.scrollLeft=m)},onDragScroll:m=>{s.viewport&&(s.viewport.scrollLeft=f(m,s.dir))}}):n==="vertical"?l.jsx(b$,{...d,ref:t,onThumbPositionChange:()=>{if(s.viewport&&i.current){const m=s.viewport.scrollTop,h=Kw(m,a);i.current.style.transform=`translate3d(0, ${h}px, 0)`}},onWheelScroll:m=>{s.viewport&&(s.viewport.scrollTop=m)},onDragScroll:m=>{s.viewport&&(s.viewport.scrollTop=f(m))}}):null}),w$=p.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...s}=e,i=Nn(jr,e.__scopeScrollArea),[o,a]=p.useState(),c=p.useRef(null),u=Ne(t,c,i.onScrollbarXChange);return p.useEffect(()=>{c.current&&a(getComputedStyle(c.current))},[c]),l.jsx(PE,{"data-orientation":"horizontal",...s,ref:u,sizes:n,style:{bottom:0,left:i.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:i.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Xd(n)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.x),onDragScroll:d=>e.onDragScroll(d.x),onWheelScroll:(d,f)=>{if(i.viewport){const m=i.viewport.scrollLeft+d.deltaX;e.onWheelScroll(m),ME(m,f)&&d.preventDefault()}},onResize:()=>{c.current&&i.viewport&&o&&r({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:td(o.paddingLeft),paddingEnd:td(o.paddingRight)}})}})}),b$=p.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...s}=e,i=Nn(jr,e.__scopeScrollArea),[o,a]=p.useState(),c=p.useRef(null),u=Ne(t,c,i.onScrollbarYChange);return p.useEffect(()=>{c.current&&a(getComputedStyle(c.current))},[c]),l.jsx(PE,{"data-orientation":"vertical",...s,ref:u,sizes:n,style:{top:0,right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Xd(n)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.y),onDragScroll:d=>e.onDragScroll(d.y),onWheelScroll:(d,f)=>{if(i.viewport){const m=i.viewport.scrollTop+d.deltaY;e.onWheelScroll(m),ME(m,f)&&d.preventDefault()}},onResize:()=>{c.current&&i.viewport&&o&&r({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:td(o.paddingTop),paddingEnd:td(o.paddingBottom)}})}})}),[_$,TE]=SE(jr),PE=p.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:s,onThumbChange:i,onThumbPointerUp:o,onThumbPointerDown:a,onThumbPositionChange:c,onDragScroll:u,onWheelScroll:d,onResize:f,...m}=e,h=Nn(jr,n),[y,g]=p.useState(null),w=Ne(t,T=>g(T)),v=p.useRef(null),x=p.useRef(""),b=h.viewport,_=r.content-r.viewport,j=at(d),k=at(c),C=Jd(f,10);function N(T){if(v.current){const A=T.clientX-v.current.left,M=T.clientY-v.current.top;u({x:A,y:M})}}return p.useEffect(()=>{const T=A=>{const M=A.target;(y==null?void 0:y.contains(M))&&j(A,_)};return document.addEventListener("wheel",T,{passive:!1}),()=>document.removeEventListener("wheel",T,{passive:!1})},[b,y,_,j]),p.useEffect(k,[r,k]),Yo(y,C),Yo(h.content,C),l.jsx(_$,{scope:n,scrollbar:y,hasThumb:s,onThumbChange:at(i),onThumbPointerUp:at(o),onThumbPositionChange:k,onThumbPointerDown:at(a),children:l.jsx(ue.div,{...m,ref:w,style:{position:"absolute",...m.style},onPointerDown:ne(e.onPointerDown,T=>{T.button===0&&(T.target.setPointerCapture(T.pointerId),v.current=y.getBoundingClientRect(),x.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",h.viewport&&(h.viewport.style.scrollBehavior="auto"),N(T))}),onPointerMove:ne(e.onPointerMove,N),onPointerUp:ne(e.onPointerUp,T=>{const A=T.target;A.hasPointerCapture(T.pointerId)&&A.releasePointerCapture(T.pointerId),document.body.style.webkitUserSelect=x.current,h.viewport&&(h.viewport.style.scrollBehavior=""),v.current=null})})})}),ed="ScrollAreaThumb",RE=p.forwardRef((e,t)=>{const{forceMount:n,...r}=e,s=TE(ed,e.__scopeScrollArea);return l.jsx(Tt,{present:n||s.hasThumb,children:l.jsx(k$,{ref:t,...r})})}),k$=p.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...s}=e,i=Nn(ed,n),o=TE(ed,n),{onThumbPositionChange:a}=o,c=Ne(t,f=>o.onThumbChange(f)),u=p.useRef(void 0),d=Jd(()=>{u.current&&(u.current(),u.current=void 0)},100);return p.useEffect(()=>{const f=i.viewport;if(f){const m=()=>{if(d(),!u.current){const h=j$(f,a);u.current=h,a()}};return a(),f.addEventListener("scroll",m),()=>f.removeEventListener("scroll",m)}},[i.viewport,d,a]),l.jsx(ue.div,{"data-state":o.hasThumb?"visible":"hidden",...s,ref:c,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:ne(e.onPointerDownCapture,f=>{const h=f.target.getBoundingClientRect(),y=f.clientX-h.left,g=f.clientY-h.top;o.onThumbPointerDown({x:y,y:g})}),onPointerUp:ne(e.onPointerUp,o.onThumbPointerUp)})});RE.displayName=ed;var Iy="ScrollAreaCorner",IE=p.forwardRef((e,t)=>{const n=Nn(Iy,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?l.jsx(S$,{...e,ref:t}):null});IE.displayName=Iy;var S$=p.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,s=Nn(Iy,n),[i,o]=p.useState(0),[a,c]=p.useState(0),u=!!(i&&a);return Yo(s.scrollbarX,()=>{var f;const d=((f=s.scrollbarX)==null?void 0:f.offsetHeight)||0;s.onCornerHeightChange(d),c(d)}),Yo(s.scrollbarY,()=>{var f;const d=((f=s.scrollbarY)==null?void 0:f.offsetWidth)||0;s.onCornerWidthChange(d),o(d)}),u?l.jsx(ue.div,{...r,ref:t,style:{width:i,height:a,position:"absolute",right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function td(e){return e?parseInt(e,10):0}function AE(e,t){const n=e/t;return isNaN(n)?0:n}function Xd(e){const t=AE(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function E$(e,t,n,r="ltr"){const s=Xd(n),i=s/2,o=t||i,a=s-o,c=n.scrollbar.paddingStart+o,u=n.scrollbar.size-n.scrollbar.paddingEnd-a,d=n.content-n.viewport,f=r==="ltr"?[0,d]:[d*-1,0];return OE([c,u],f)(e)}function Kw(e,t,n="ltr"){const r=Xd(t),s=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-s,o=t.content-t.viewport,a=i-r,c=n==="ltr"?[0,o]:[o*-1,0],u=Ny(e,c);return OE([0,o],[0,a])(u)}function OE(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function ME(e,t){return e>0&&e<t}var j$=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function s(){const i={left:e.scrollLeft,top:e.scrollTop},o=n.left!==i.left,a=n.top!==i.top;(o||a)&&t(),n=i,r=window.requestAnimationFrame(s)}(),()=>window.cancelAnimationFrame(r)};function Jd(e,t){const n=at(e),r=p.useRef(0);return p.useEffect(()=>()=>window.clearTimeout(r.current),[]),p.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function Yo(e,t){const n=at(t);Qn(()=>{let r=0;if(e){const s=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return s.observe(e),()=>{window.cancelAnimationFrame(r),s.unobserve(e)}}},[e,n])}var DE=EE,C$=CE,N$=IE;const Ml=p.forwardRef(({className:e,children:t,...n},r)=>l.jsxs(DE,{ref:r,className:X("relative overflow-hidden",e),...n,children:[l.jsx(C$,{className:"h-full w-full rounded-[inherit]",children:t}),l.jsx(LE,{}),l.jsx(N$,{})]}));Ml.displayName=DE.displayName;const LE=p.forwardRef(({className:e,orientation:t="vertical",...n},r)=>l.jsx(Py,{ref:r,orientation:t,className:X("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...n,children:l.jsx(RE,{className:"relative flex-1 rounded-full bg-border"})}));LE.displayName=Py.displayName;var vh=0;function $E(){p.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Gw()),document.body.insertAdjacentElement("beforeend",e[1]??Gw()),vh++,()=>{vh===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),vh--}},[])}function Gw(){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 xh="focusScope.autoFocusOnMount",wh="focusScope.autoFocusOnUnmount",Yw={bubbles:!1,cancelable:!0},T$="FocusScope",Ay=p.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...o}=e,[a,c]=p.useState(null),u=at(s),d=at(i),f=p.useRef(null),m=Ne(t,g=>c(g)),h=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(r){let g=function(b){if(h.paused||!a)return;const _=b.target;a.contains(_)?f.current=_:cs(f.current,{select:!0})},w=function(b){if(h.paused||!a)return;const _=b.relatedTarget;_!==null&&(a.contains(_)||cs(f.current,{select:!0}))},v=function(b){if(document.activeElement===document.body)for(const j of b)j.removedNodes.length>0&&cs(a)};document.addEventListener("focusin",g),document.addEventListener("focusout",w);const x=new MutationObserver(v);return a&&x.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",w),x.disconnect()}}},[r,a,h.paused]),p.useEffect(()=>{if(a){Zw.add(h);const g=document.activeElement;if(!a.contains(g)){const v=new CustomEvent(xh,Yw);a.addEventListener(xh,u),a.dispatchEvent(v),v.defaultPrevented||(P$(M$(zE(a)),{select:!0}),document.activeElement===g&&cs(a))}return()=>{a.removeEventListener(xh,u),setTimeout(()=>{const v=new CustomEvent(wh,Yw);a.addEventListener(wh,d),a.dispatchEvent(v),v.defaultPrevented||cs(g??document.body,{select:!0}),a.removeEventListener(wh,d),Zw.remove(h)},0)}}},[a,u,d,h]);const y=p.useCallback(g=>{if(!n&&!r||h.paused)return;const w=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,v=document.activeElement;if(w&&v){const x=g.currentTarget,[b,_]=R$(x);b&&_?!g.shiftKey&&v===_?(g.preventDefault(),n&&cs(b,{select:!0})):g.shiftKey&&v===b&&(g.preventDefault(),n&&cs(_,{select:!0})):v===x&&g.preventDefault()}},[n,r,h.paused]);return l.jsx(ue.div,{tabIndex:-1,...o,ref:m,onKeyDown:y})});Ay.displayName=T$;function P$(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(cs(r,{select:t}),document.activeElement!==n)return}function R$(e){const t=zE(e),n=Qw(t,e),r=Qw(t.reverse(),e);return[n,r]}function zE(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Qw(e,t){for(const n of e)if(!I$(n,{upTo:t}))return n}function I$(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 A$(e){return e instanceof HTMLInputElement&&"select"in e}function cs(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&A$(e)&&t&&e.select()}}var Zw=O$();function O$(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Xw(e,t),e.unshift(t)},remove(t){var n;e=Xw(e,t),(n=e[0])==null||n.resume()}}}function Xw(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function M$(e){return e.filter(t=>t.tagName!=="A")}var bh="rovingFocusGroup.onEntryFocus",D$={bubbles:!1,cancelable:!0},sc="RovingFocusGroup",[Em,FE,L$]=Ql(sc),[$$,ef]=Yt(sc,[L$]),[z$,F$]=$$(sc),UE=p.forwardRef((e,t)=>l.jsx(Em.Provider,{scope:e.__scopeRovingFocusGroup,children:l.jsx(Em.Slot,{scope:e.__scopeRovingFocusGroup,children:l.jsx(U$,{...e,ref:t})})}));UE.displayName=sc;var U$=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:s=!1,dir:i,currentTabStopId:o,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...f}=e,m=p.useRef(null),h=Ne(t,m),y=ha(i),[g,w]=kr({prop:o,defaultProp:a??null,onChange:c,caller:sc}),[v,x]=p.useState(!1),b=at(u),_=FE(n),j=p.useRef(!1),[k,C]=p.useState(0);return p.useEffect(()=>{const N=m.current;if(N)return N.addEventListener(bh,b),()=>N.removeEventListener(bh,b)},[b]),l.jsx(z$,{scope:n,orientation:r,dir:y,loop:s,currentTabStopId:g,onItemFocus:p.useCallback(N=>w(N),[w]),onItemShiftTab:p.useCallback(()=>x(!0),[]),onFocusableItemAdd:p.useCallback(()=>C(N=>N+1),[]),onFocusableItemRemove:p.useCallback(()=>C(N=>N-1),[]),children:l.jsx(ue.div,{tabIndex:v||k===0?-1:0,"data-orientation":r,...f,ref:h,style:{outline:"none",...e.style},onMouseDown:ne(e.onMouseDown,()=>{j.current=!0}),onFocus:ne(e.onFocus,N=>{const T=!j.current;if(N.target===N.currentTarget&&T&&!v){const A=new CustomEvent(bh,D$);if(N.currentTarget.dispatchEvent(A),!A.defaultPrevented){const M=_().filter(U=>U.focusable),P=M.find(U=>U.active),L=M.find(U=>
vendor: 4,296 bytes, line 518
518U.id===g),z=[P,L,...M].filter(Boolean).map(U=>U.ref.current);VE(z,d)}}j.current=!1}),onBlur:ne(e.onBlur,()=>x(!1))})})}),BE="RovingFocusGroupItem",HE=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:s=!1,tabStopId:i,children:o,...a}=e,c=jt(),u=i||c,d=F$(BE,n),f=d.currentTabStopId===u,m=FE(n),{onFocusableItemAdd:h,onFocusableItemRemove:y,currentTabStopId:g}=d;return p.useEffect(()=>{if(r)return h(),()=>y()},[r,h,y]),l.jsx(Em.ItemSlot,{scope:n,id:u,focusable:r,active:s,children:l.jsx(ue.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...a,ref:t,onMouseDown:ne(e.onMouseDown,w=>{r?d.onItemFocus(u):w.preventDefault()}),onFocus:ne(e.onFocus,()=>d.onItemFocus(u)),onKeyDown:ne(e.onKeyDown,w=>{if(w.key==="Tab"&&w.shiftKey){d.onItemShiftTab();return}if(w.target!==w.currentTarget)return;const v=V$(w,d.orientation,d.dir);if(v!==void 0){if(w.metaKey||w.ctrlKey||w.altKey||w.shiftKey)return;w.preventDefault();let b=m().filter(_=>_.focusable).map(_=>_.ref.current);if(v==="last")b.reverse();else if(v==="prev"||v==="next"){v==="prev"&&b.reverse();const _=b.indexOf(w.currentTarget);b=d.loop?W$(b,_+1):b.slice(_+1)}setTimeout(()=>VE(b))}}),children:typeof o=="function"?o({isCurrentTabStop:f,hasTabStop:g!=null}):o})})});HE.displayName=BE;var B$={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function H$(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function V$(e,t,n){const r=H$(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return B$[r]}function VE(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function W$(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var WE=UE,qE=HE,q$=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Yi=new WeakMap,Uc=new WeakMap,Bc={},_h=0,KE=function(e){return e&&(e.host||KE(e.parentNode))},K$=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=KE(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},G$=function(e,t,n,r){var s=K$(t,Array.isArray(e)?e:[e]);Bc[n]||(Bc[n]=new WeakMap);var i=Bc[n],o=[],a=new Set,c=new Set(s),u=function(f){!f||a.has(f)||(a.add(f),u(f.parentNode))};s.forEach(u);var d=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(m){if(a.has(m))d(m);else try{var h=m.getAttribute(r),y=h!==null&&h!=="false",g=(Yi.get(m)||0)+1,w=(i.get(m)||0)+1;Yi.set(m,g),i.set(m,w),o.push(m),g===1&&y&&Uc.set(m,!0),w===1&&m.setAttribute(n,"true"),y||m.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",m,v)}})};return d(t),a.clear(),_h++,function(){o.forEach(function(f){var m=Yi.get(f)-1,h=i.get(f)-1;Yi.set(f,m),i.set(f,h),m||(Uc.has(f)||f.removeAttribute(r),Uc.delete(f)),h||f.removeAttribute(n)}),_h--,_h||(Yi=new WeakMap,Yi=new WeakMap,Uc=new WeakMap,Bc={})}},GE=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),s=q$(e);return s?(r.push.apply(r,Array.from(s.querySelectorAll("[aria-live]"))),G$(r,s,n,"aria-hidden")):function(){return null}},pr=function(){return pr=Object.assign||function(t){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},pr.apply(this,arguments)};function YE(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n}function Y$(e,t,n){if(n||arguments.length===2)for(var r=0,s=t.length,i;r<s;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var pu="right-scroll-bar-position",mu="width-before-scroll-bar",Q$="with-scroll-bars-hidden",Z$="--removed-body-scroll-bar-size";function kh(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}
vendor: 2,083 bytes, line 518
518function X$(e,t){var n=p.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var s=n.value;s!==r&&(n.value=r,n.callback(r,s))}}}})[0];return n.callback=t,n.facade}var J$=typeof window<"u"?p.useLayoutEffect:p.useEffect,Jw=new WeakMap;function e3(e,t){var n=X$(null,function(r){return e.forEach(function(s){return kh(s,r)})});return J$(function(){var r=Jw.get(n);if(r){var s=new Set(r),i=new Set(e),o=n.current;s.forEach(function(a){i.has(a)||kh(a,null)}),i.forEach(function(a){s.has(a)||kh(a,o)})}Jw.set(n,e)},[e]),n}function t3(e){return e}function n3(e,t){t===void 0&&(t=t3);var n=[],r=!1,s={read:function(){if(r)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(i){var o=t(i,r);return n.push(o),function(){n=n.filter(function(a){return a!==o})}},assignSyncMedium:function(i){for(r=!0;n.length;){var o=n;n=[],o.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var o=[];if(n.length){var a=n;n=[],a.forEach(i),o=n}var c=function(){var d=o;o=[],d.forEach(i)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(d){o.push(d),u()},filter:function(d){return o=o.filter(d),n}}}};return s}function r3(e){e===void 0&&(e={});var t=n3(null);return t.options=pr({async:!0,ssr:!1},e),t}var QE=function(e){var t=e.sideCar,n=YE(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return p.createElement(r,pr({},n))};QE.isSideCarExport=!0;function s3(e,t){return e.useMedium(t),QE}var ZE=r3(),Sh=function(){},tf=p.forwardRef(function(e,t){var n=p.useRef(null),r=p.useState({onScrollCapture:Sh,onWheelCapture:Sh,onTouchMoveCapture:Sh}),s=r[0],i=r[1],o=e.forwardProps,a=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,m=e.sideCar,h=e.noRelative,y=e.noIsolation,g=e.inert,w=e.allowPinchZoom,v=e.as,x=v===void 0?"div":v,b=e.ga
vendor: 1,913 bytes, line 518
518pMode,_=YE(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=m,k=e3([n,t]),C=pr(pr({},_),s);return p.createElement(p.Fragment,null,d&&p.createElement(j,{sideCar:ZE,removeScrollBar:u,shards:f,noRelative:h,noIsolation:y,inert:g,setCallbacks:i,allowPinchZoom:!!w,lockRef:n,gapMode:b}),o?p.cloneElement(p.Children.only(a),pr(pr({},C),{ref:k})):p.createElement(x,pr({},C,{className:c,ref:k}),a))});tf.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};tf.classNames={fullWidth:mu,zeroRight:pu};var i3=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function o3(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=i3();return t&&e.setAttribute("nonce",t),e}function a3(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function l3(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var c3=function(){var e=0,t=null;return{add:function(n){e==0&&(t=o3())&&(a3(t,n),l3(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},u3=function(){var e=c3();return function(t,n){p.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},XE=function(){var e=u3(),t=function(n){var r=n.styles,s=n.dynamic;return e(r,s),null};return t},d3={left:0,top:0,right:0,gap:0},Eh=function(e){return parseInt(e||"",10)||0},f3=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[Eh(n),Eh(r),Eh(s)]},h3=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return d3;var t=f3(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}}
vendor: 4,393 bytes, lines 518-558
518,p3=XE(),Co="data-scroll-locked",m3=function(e,t,n,r){var s=e.left,i=e.top,o=e.right,a=e.gap;return n===void 0&&(n="margin"),` 519 .`.concat(Q$,` { 520 overflow: hidden `).concat(r,`; 521 padding-right: `).concat(a,"px ").concat(r,`; 522 } 523 body[`).concat(Co,`] { 524 overflow: hidden `).concat(r,`; 525 overscroll-behavior: contain; 526 `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` 527 padding-left: `.concat(s,`px; 528 padding-top: `).concat(i,`px; 529 padding-right: `).concat(o,`px; 530 margin-left:0; 531 margin-top:0; 532 margin-right: `).concat(a,"px ").concat(r,`; 533 `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),` 534 } 535 536 .`).concat(pu,` { 537 right: `).concat(a,"px ").concat(r,`; 538 } 539 540 .`).concat(mu,` { 541 margin-right: `).concat(a,"px ").concat(r,`; 542 } 543 544 .`).concat(pu," .").concat(pu,` { 545 right: 0 `).concat(r,`; 546 } 547 548 .`).concat(mu," .").concat(mu,` { 549 margin-right: 0 `).concat(r,`; 550 } 551 552 body[`).concat(Co,`] { 553 `).concat(Z$,": ").concat(a,`px; 554 } 555`)},e0=function(){var e=parseInt(document.body.getAttribute(Co)||"0",10);return isFinite(e)?e:0},g3=function(){p.useEffect(function(){return document.body.setAttribute(Co,(e0()+1).toString()),function(){var e=e0()-1;e<=0?document.body.removeAttribute(Co):document.body.setAttribute(Co,e.toString())}},[])},y3=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,s=r===void 0?"margin":r;g3();var i=p.useMemo(function(){return h3(s)},[s]);return p.createElement(p3,{styles:m3(i,!t,s,n?"":"!important")})},jm=!1;if(typeof window<"u")try{var Hc=Object.defineProperty({},"passive",{get:function(){return jm=!0,!0}});window.addEventListener("test",Hc,Hc),window.removeEventListener("test",Hc,Hc)}catch{jm=!1}var Qi=jm?{passive:!1}:!1,v3=function(e){return e.tagName==="TEXTAREA"},JE=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!v3(e)&&n[t]==="visible")},x3=function(e){return JE(e,"overflowY")},w3=function(e){return JE(e,"overflowX")},t0=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var s=ej(e,r);if(s){var i=tj(e,r),o=i[1],a=i[2];if(o>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},b3=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},_3=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},ej=function(e,t){return e==="v"?x3(t):w3(t)},tj=function(e,t){return e==="v"?b3(t):_3(t)},k3=function(e,t){return e==="h"&&t==="rtl"?-1:1},S3=function(e,t,n,r,s){var i=k3(e,window.getComputedStyle(t).direction),o=i*r,a=n.target,c=t.contains(a),u=!1,d=o>0,f=0,m=0;do{if(!a)break;var h=tj(e,a),y=h[0],g=h[1],w=h[2],v=g-w-i*y;(y||v)&&ej(e,a)&&(f+=v,m+=y);var x=a.parentNode;a=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(d&&(Math.abs(f)<1||!s)||!d&&(Math.abs(m)<1||!s))&&(u=!0),u},Vc=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},n0=function(e){return[e.deltaX,e.deltaY]},r0=function(e){return e&&"current"in e?e.current:e},E3=function(e,t){return e[0]===t[0]&&e[1]===t[1]},j3=function(e){return` 556 .block-interactivity-`.concat(e,` {pointer-events: none;} 557 .allow-interactivity-`).concat(e,` {pointer-events: all;} 558`)},C3=0,Zi=[];function N3(e){var t=p.useRef([]),n=p.useRef([0,0]),r=p.useRef(),s=p.useState(C3++)[0],i=p.useState(XE)[0],o=p.useRef(e);p.useEffect(function(){o.current=e},[e]),p.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var g=Y$([e.lockRef.current],(e.shards||[]).map(r0),!0).filter(Boolean);return g.forEach(function(w){return w.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),g.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var a=p.useCallback(function(g,w){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!o.current.allowPinchZoom;var v=Vc(g),x=n.current,b="deltaX"in g?g.deltaX:x[0]-v[0],_="deltaY"in g?g.deltaY:x[1]-v[1],j,k=g.target,C=Math.abs(b)>Math.abs(_)?"h":"v";if("touches"in g&&C==="h"&&k.type==="range")return!1;var N=t0(C,k);if(!N)return!0;
vendor: 4,249 bytes, line 558
558if(N?j=C:(j=C==="v"?"h":"v",N=t0(C,k)),!N)return!1;if(!r.current&&"changedTouches"in g&&(b||_)&&(r.current=j),!j)return!0;var T=r.current||j;return S3(T,w,g,T==="h"?b:_,!0)},[]),c=p.useCallback(function(g){var w=g;if(!(!Zi.length||Zi[Zi.length-1]!==i)){var v="deltaY"in w?n0(w):Vc(w),x=t.current.filter(function(j){return j.name===w.type&&(j.target===w.target||w.target===j.shadowParent)&&E3(j.delta,v)})[0];if(x&&x.should){w.cancelable&&w.preventDefault();return}if(!x){var b=(o.current.shards||[]).map(r0).filter(Boolean).filter(function(j){return j.contains(w.target)}),_=b.length>0?a(w,b[0]):!o.current.noIsolation;_&&w.cancelable&&w.preventDefault()}}},[]),u=p.useCallback(function(g,w,v,x){var b={name:g,delta:w,target:v,should:x,shadowParent:T3(v)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(_){return _!==b})},1)},[]),d=p.useCallback(function(g){n.current=Vc(g),r.current=void 0},[]),f=p.useCallback(function(g){u(g.type,n0(g),g.target,a(g,e.lockRef.current))},[]),m=p.useCallback(function(g){u(g.type,Vc(g),g.target,a(g,e.lockRef.current))},[]);p.useEffect(function(){return Zi.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:m}),document.addEventListener("wheel",c,Qi),document.addEventListener("touchmove",c,Qi),document.addEventListener("touchstart",d,Qi),function(){Zi=Zi.filter(function(g){return g!==i}),document.removeEventListener("wheel",c,Qi),document.removeEventListener("touchmove",c,Qi),document.removeEventListener("touchstart",d,Qi)}},[]);var h=e.removeScrollBar,y=e.inert;return p.createElement(p.Fragment,null,y?p.createElement(i,{styles:j3(s)}):null,h?p.createElement(y3,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function T3(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const P3=s3(ZE,N3);var Oy=p.forwardRef(function(e,t){return p.createElement(tf,pr({},e,{ref:t,sideCar:P3}))});Oy.classNames=tf.classNames;var Cm=["Enter"," "],R3=["ArrowDown","PageUp","Home"],nj=["ArrowUp","PageDown","End"],I3=[...R3,...nj],A3={ltr:[...Cm,"ArrowRight"],rtl:[...Cm,"ArrowLeft"]},O3={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ic="Menu",[Dl,M3,D3]=Ql(ic),[zi,rj]=Yt(ic,[D3,Fd,ef]),nf=Fd(),sj=ef(),[L3,Fi]=zi(ic),[$3,oc]=zi(ic),ij=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:s,onOpenChange:i,modal:o=!0}=e,a=nf(t),[c,u]=p.useState(null),d=p.useRef(!1),f=at(i),m=ha(s);return p.useEffect(()=>{const h=()=>{d.current=!0,document.addEventListener("pointerdown",y,{capture:!0,once:!0}),document.addEventListener("pointermove",y,{capture:!0,once:!0})},y=()=>d.current=!1;return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",y,{capture:!0}),document.removeEventListener("pointermove",y,{capture:!0})}},[]),l.jsx(xS,{...a,children:l.jsx(L3,{scope:t,open:n,onOpenChange:f,content:c,onContentChange:u,children:l.jsx($3,{scope:t,onClose:p.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:d,dir:m,modal:o,children:r})})})};ij.displayName=ic;var z3="MenuAnchor",My=p.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,s=nf(n);return l.jsx(wS,{...s,...r,ref:t})});My.displayName=z3;var Dy="MenuPortal",[F3,oj]=zi(Dy,{forceMount:void 0}),aj=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:s}=e,i=Fi(Dy,t);return l.jsx(F3,{scope:t,forceMount:n,children:l.jsx(Tt,{present:n||i.open,children:l.jsx(Rd,{asChild:!0,container:s,children:r})})})};aj.displayName=Dy;var Sn="MenuContent",[U3,Ly]=zi(Sn),lj=p.forwardRef((e,t)=>{const n=oj(Sn,e.__scopeMenu),{forceMount:r=n.forceMount,...s}=e,i=Fi(Sn,e.__scopeMenu),o=oc(Sn,e.__scopeMenu);return l.jsx(Dl.Provider,{scope:e.__scopeMenu,children:l.jsx(Tt,{present:r||i.open,children:l.jsx(Dl.Slot,{scope:e.__scopeMenu,children:o.modal?l.jsx(B3,{...s,ref:t}):l.jsx(H3,{...s,ref:t})})})})}),B3=p.forwardRef((e,t)=>{const n=Fi(Sn,e.__scopeMenu),r=p.useRef(null),s=Ne(t,r);return p.useEffect(()=>{const i=r.current;if(i)return GE(i)},[]),l.jsx($y,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:ne(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),H3=p.forwardRef((e,t)=>
vendor: 12,705 bytes, line 558
558{const n=Fi(Sn,e.__scopeMenu);return l.jsx($y,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),V3=Wo("MenuContent.ScrollLock"),$y=p.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:s,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:a,onEntryFocus:c,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:m,onDismiss:h,disableOutsideScroll:y,...g}=e,w=Fi(Sn,n),v=oc(Sn,n),x=nf(n),b=sj(n),_=M3(n),[j,k]=p.useState(null),C=p.useRef(null),N=Ne(t,C,w.onContentChange),T=p.useRef(0),A=p.useRef(""),M=p.useRef(0),P=p.useRef(null),L=p.useRef("right"),R=p.useRef(0),z=y?Oy:p.Fragment,U=y?{as:V3,allowPinchZoom:!0}:void 0,V=O=>{var re,Ce;const E=A.current+O,B=_().filter(he=>!he.disabled),I=document.activeElement,S=(re=B.find(he=>he.ref.current===I))==null?void 0:re.textValue,q=B.map(he=>he.textValue),Z=nz(q,E,S),te=(Ce=B.find(he=>he.textValue===Z))==null?void 0:Ce.ref.current;(function he(Be){A.current=Be,window.clearTimeout(T.current),Be!==""&&(T.current=window.setTimeout(()=>he(""),1e3))})(E),te&&setTimeout(()=>te.focus())};p.useEffect(()=>()=>window.clearTimeout(T.current),[]),$E();const D=p.useCallback(O=>{var B,I;return L.current===((B=P.current)==null?void 0:B.side)&&sz(O,(I=P.current)==null?void 0:I.area)},[]);return l.jsx(U3,{scope:n,searchRef:A,onItemEnter:p.useCallback(O=>{D(O)&&O.preventDefault()},[D]),onItemLeave:p.useCallback(O=>{var E;D(O)||((E=C.current)==null||E.focus(),k(null))},[D]),onTriggerLeave:p.useCallback(O=>{D(O)&&O.preventDefault()},[D]),pointerGraceTimerRef:M,onPointerGraceIntentChange:p.useCallback(O=>{P.current=O},[]),children:l.jsx(z,{...U,children:l.jsx(Ay,{asChild:!0,trapped:s,onMountAutoFocus:ne(i,O=>{var E;O.preventDefault(),(E=C.current)==null||E.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:l.jsx(Zl,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:m,onDismiss:h,children:l.jsx(WE,{asChild:!0,...b,dir:v.dir,orientation:"vertical",loop:r,currentTabStopId:j,onCurrentTabStopIdChange:k,onEntryFocus:ne(c,O=>{v.isUsingKeyboardRef.current||O.preventDefault()}),preventScrollOnEntryFocus:!0,children:l.jsx(bS,{role:"menu","aria-orientation":"vertical","data-state":Sj(w.open),"data-radix-menu-content":"",dir:v.dir,...x,...g,ref:N,style:{outline:"none",...g.style},onKeyDown:ne(g.onKeyDown,O=>{const B=O.target.closest("[data-radix-menu-content]")===O.currentTarget,I=O.ctrlKey||O.altKey||O.metaKey,S=O.key.length===1;B&&(O.key==="Tab"&&O.preventDefault(),!I&&S&&V(O.key));const q=C.current;if(O.target!==q||!I3.includes(O.key))return;O.preventDefault();const te=_().filter(re=>!re.disabled).map(re=>re.ref.current);nj.includes(O.key)&&te.reverse(),ez(te)}),onBlur:ne(e.onBlur,O=>{O.currentTarget.contains(O.target)||(window.clearTimeout(T.current),A.current="")}),onPointerMove:ne(e.onPointerMove,Ll(O=>{const E=O.target,B=R.current!==O.clientX;if(O.currentTarget.contains(E)&&B){const I=O.clientX>R.current?"right":"left";L.current=I,R.current=O.clientX}}))})})})})})})});lj.displayName=Sn;var W3="MenuGroup",zy=p.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return l.jsx(ue.div,{role:"group",...r,ref:t})});zy.displayName=W3;var q3="MenuLabel",cj=p.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return l.jsx(ue.div,{...r,ref:t})});cj.displayName=q3;var nd="MenuItem",s0="menu.itemSelect",rf=p.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...s}=e,i=p.useRef(null),o=oc(nd,e.__scopeMenu),a=Ly(nd,e.__scopeMenu),c=Ne(t,i),u=p.useRef(!1),d=()=>{const f=i.current;if(!n&&f){const m=new CustomEvent(s0,{bubbles:!0,cancelable:!0});f.addEventListener(s0,h=>r==null?void 0:r(h),{once:!0}),Qg(f,m),m.defaultPrevented?u.current=!1:o.onClose()}};return l.jsx(uj,{...s,ref:c,disabled:n,onClick:ne(e.onClick,d),onPointerDown:f=>{var m;(m=e.onPointerDown)==null||m.call(e,f),u.current=!0},onPointerUp:ne(e.onPointerUp,f=>{var m;u.current||(m=f.currentTarget)==null||m.click()}),onKeyDown:ne(e.onKeyDown,f=>{const m=a.searchRef.current!=="";n||m&&f.key===" "||Cm.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});rf.displayName=nd;var uj=p.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:s,...i}=e,o=Ly(nd,n),a=sj(n),c=p.useRef(null),u=Ne(t,c),[d,f]=p.useState(!1),[m,h]=p.useState("");return p.useEffect(()=>{const y=c.current;y&&h((y.textContent??"").trim())},[i.children]),l.jsx(Dl.ItemSlot,{scope:n,disabled:r,textValue:s??m,children:l.jsx(qE,{asChild:!0,...a,focusable:!r,children:l.jsx(ue.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...i,ref:u,onPointerMove:ne(e.onPointerMove,Ll(y=>{r?o.onItemLeave(y):(o.onItemEnter(y),y.defaultPrevented||y.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:ne(e.onPointerLeave,Ll(y=>o.onItemLeave(y))),onFocus:ne(e.onFocus,()=>f(!0)),onBlur:ne(e.onBlur,()=>f(!1))})})})}),K3="MenuCheckboxItem",dj=p.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...s}=e;return l.jsx(gj,{scope:e.__scopeMenu,checked:n,children:l.jsx(rf,{role:"menuitemcheckbox","aria-checked":rd(n)?"mixed":n,...s,ref:t,"data-state":Uy(n),onSelect:ne(s.onSelect,()=>r==null?void 0:r(rd(n)?!0:!n),{checkForDefaultPrevented:!1})})})});dj.displayName=K3;var fj="MenuRadioGroup",[G3,Y3]=zi(fj,{value:void 0,onValueChange:()=>{}}),hj=p.forwardRef((e,t)=>{const{value:n,onValueChange:r,...s}=e,i=at(r);return l.jsx(G3,{scope:e.__scopeMenu,value:n,onValueChange:i,children:l.jsx(zy,{...s,ref:t})})});hj.displayName=fj;var pj="MenuRadioItem",mj=p.forwardRef((e,t)=>{const{value:n,...r}=e,s=Y3(pj,e.__scopeMenu),i=n===s.value;return l.jsx(gj,{scope:e.__scopeMenu,checked:i,children:l.jsx(rf,{role:"menuitemradio","aria-checked":i,...r,ref:t,"data-state":Uy(i),onSelect:ne(r.onSelect,()=>{var o;return(o=s.onValueChange)==null?void 0:o.call(s,n)},{checkForDefaultPrevented:!1})})})});mj.displayName=pj;var Fy="MenuItemIndicator",[gj,Q3]=zi(Fy,{checked:!1}),yj=p.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...s}=e,i=Q3(Fy,n);return l.jsx(Tt,{present:r||rd(i.checked)||i.checked===!0,children:l.jsx(ue.span,{...s,ref:t,"data-state":Uy(i.checked)})})});yj.displayName=Fy;var Z3="MenuSeparator",vj=p.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return l.jsx(ue.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});vj.displayName=Z3;var X3="MenuArrow",xj=p.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,s=nf(n);return l.jsx(_S,{...s,...r,ref:t})});xj.displayName=X3;var J3="MenuSub",[fq,wj]=zi(J3),Fa="MenuSubTrigger",bj=p.forwardRef((e,t)=>{const n=Fi(Fa,e.__scopeMenu),r=oc(Fa,e.__scopeMenu),s=wj(Fa,e.__scopeMenu),i=Ly(Fa,e.__scopeMenu),o=p.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:c}=i,u={__scopeMenu:e.__scopeMenu},d=p.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);return p.useEffect(()=>d,[d]),p.useEffect(()=>{const f=a.current;return()=>{window.clearTimeout(f),c(null)}},[a,c]),l.jsx(My,{asChild:!0,...u,children:l.jsx(uj,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":s.contentId,"data-state":Sj(n.open),...e,ref:Vr(t,s.onTriggerChange),onClick:f=>{var m;(m=e.onClick)==null||m.call(e,f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:ne(e.onPointerMove,Ll(f=>{i.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!n.open&&!o.current&&(i.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100))})),onPointerLeave:ne(e.onPointerLeave,Ll(f=>{var h,y;d();const m=(h=n.content)==null?void 0:h.getBoundingClientRect();if(m){const g=(y=n.content)==null?void 0:y.dataset.side,w=g==="right",v=w?-5:5,x=m[w?"left":"right"],b=m[w?"right":"left"];i.onPointerGraceIntentChange({area:[{x:f.clientX+v,y:f.clientY},{x,y:m.top},{x:b,y:m.top},{x:b,y:m.bottom},{x,y:m.bottom}],side:g}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(f),f.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:ne(e.onKeyDown,f=>{var h;const m=i.searchRef.current!=="";e.disabled||m&&f.key===" "||A3[r.dir].includes(f.key)&&(n.onOpenChange(!0),(h=n.content)==null||h.focus(),f.preventDefault())})})})});bj.displayName=Fa;var _j="MenuSubContent",kj=p.forwardRef((e,t)=>{const n=oj(Sn,e.__scopeMenu),{forceMount:r=n.forceMount,...s}=e,i=Fi(Sn,e.__scopeMenu),o=oc(Sn,e.__scopeMenu),a=wj(_j,e.__scopeMenu),c=p.useRef(null),u=Ne(t,c);return l.jsx(Dl.Provider,{scope:e.__scopeMenu,children:l.jsx(Tt,{present:r||i.open,children:l.jsx(Dl.Slot,{scope:e.__scopeMenu,children:l.jsx($y,{id:a.contentId,"aria-labelledby":a.triggerId,...s,ref:u,align:"start",side:o.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{var f;o.isUsingKeyboardRef.current&&((f=c.current)==null||f.focus()),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:ne(e.onFocusOutside,d=>{d.target!==a.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:ne(e.onEscapeKeyDown,d=>{o.onClose(),d.preventDefault()}),onKeyDown:ne(e.onKeyDown,d=>{var h;const f=d.currentTarget.contains(d.target),m=O3[o.dir].includes(d.key);f&&m&&(i.onOpenChange(!1),(h=a.trigger)==null||h.focus(),d.preventDefault())})})})})})});kj.displayName=_j;function Sj(e){return e?"open":"closed"}function rd(e){return e==="indeterminate"}function Uy(e){return rd(e)?"indeterminate":e?"checked":"unchecked"}function ez(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function tz(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function nz(e,t,n){const s=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let o=tz(e,Math.max(i,0));s.length===1&&(o=o.filter(u=>u!==n));const c=o.find(u=>u.toLowerCase().startsWith(s.toLowerCase()));return c!==n?c:void 0}function rz(e,t){const{x:n,y:r}=e;let s=!1;for(let i=0,o=t.length-1;i<t.length;o=i++){const a=t[i],c=t[o],u=a.x,d=a.y,f=c.x,m=c.y;d>r!=m>r&&n<(f-u)*(r-d)/(m-d)+u&&(s=!s)}return s}function sz(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return rz(n,t)}function Ll(e){return t=>t.pointerType==="mouse"?e(t):void 0}var iz=ij,oz=My,az=aj,lz=lj,cz=zy,uz=cj,dz=rf,fz=dj,hz=hj,pz=mj,mz=yj,gz=vj,yz=xj,vz=bj,xz=kj,sf="DropdownMenu",[wz,hq]=Yt(sf,[rj]),$t=rj(),[bz,Ej]=wz(sf),jj=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:s,defaultOpen:i,onOpenChange:o,modal:a=!0}=e,c=$t(t),u=p.useRef(null),[d,f]=kr({prop:s,defaultProp:i??!1,onChange:o,caller:sf});return l.jsx(bz,{scope:t,triggerId:jt(),triggerRef:u,contentId:jt(),open:d,onOpenChange:f,onOpenToggle:p.useCallback(()=>f(m=>!m),[f]),modal:a,children:l.jsx(iz,{...c,open:d,onOpenChange:f,dir:r,modal:a,children:n})})};jj.displayName=sf;var Cj="DropdownMenuTrigger",Nj=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...s}=e,i=Ej(Cj,n),o=$t(n);return l.jsx(oz,{asChild:!0,...o,children:l.jsx(ue.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...s,ref:Vr(t,i.triggerRef),onPointerDown:ne(e.onPointerDown,a=>{!r&&a.button===0&&a.ctrlKey===!1&&(i.onOpenToggle(),i.open||a.preventDefault())}),onKeyDown:ne(e.onKeyDown,a=>{r||(["Enter"," "].includes(a.key)&&i.onOpenToggle(),a.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});Nj.displayName=Cj;var _z="DropdownMenuPortal",Tj=e=>{const{__scopeDropdownMenu:t,...n}=e,r=$t(t);return l.jsx(az,{...r,...n})};Tj.displayName=_z;var Pj="DropdownMenuContent",Rj=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=Ej(Pj,n),i=$t(n),o=p.useRef(!1);return l.jsx(lz,{id:s.contentId,"aria-labelledby":s.triggerId,...i,...r,ref:t,onCloseAutoFocus:ne(e.onCloseAutoFocus,a=>{var c;o.current||(c=s.triggerRef.current)==null||c.focus(),o.current=!1,a.preventDefault()}),onInteractOutside:ne(e.onInteractOutside,a=>{const c=a.detail.originalEvent,u=c.button===0&&c.ctrlKey===!0,d=c.button===2||u;(!s.modal||d)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Rj.displayName=Pj;var kz="DropdownMenuGroup",Sz=p.forwardRef((e,t)=>
558{const{__scopeDropdownMenu:n,...r}=e,s=$t(n);return l.jsx(cz,{...s,...r,ref:t})});Sz.displayName=kz;var Ez="DropdownMenuLabel",Ij=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=$t(n);return l.jsx(uz,{...s,...r,ref:t})});Ij.displayName=Ez;var jz="DropdownMenuItem",Aj=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=$t(n);return l.jsx(dz,{...s,...r,ref:t})});Aj.displayName=jz;var Cz="DropdownMenuCheckboxItem",Oj=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=$t(n);return l.jsx(fz,{...s,...r,ref:t})});Oj.displayName=Cz;var Nz="DropdownMenuRadioGroup",Tz=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=$t(n);return l.jsx(hz,{...s,...r,ref:t})});Tz.displayName=Nz;var Pz="DropdownMenuRadioItem",Mj=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=$t(n);return l.jsx(pz,{...s,...r,ref:t})});Mj.displayName=Pz;var Rz="DropdownMenuItemIndicator",Dj=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=$t(n);return l.jsx(mz,{...s,...r,ref:t})});Dj.displayName=Rz;var Iz="DropdownMenuSeparator",Lj=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=$t(n);return l.jsx(gz,{...s,...r,ref:t})});Lj.displayName=Iz;var Az="DropdownMenuArrow",Oz=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=$t(n);return l.jsx(yz,{...s,...r,ref:t})});Oz.displayName=Az;var Mz="DropdownMenuSubTrigger",$j=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=$t(n);return l.jsx(vz,{...s,...r,ref:t})});$j.displayName=Mz;var Dz="DropdownMenuSubContent",zj=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=$t(n);return l.jsx(xz,{...s,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});zj.displayName=Dz;var Lz=jj,$z=Nj,zz=Tj,Fj=Rj,Uj=Ij,Bj=Aj,Hj=Oj,Vj=Mj,Wj=Dj,qj=Lj,Kj=$j,Gj=zj;const By=Lz,Hy=$z,Fz=p.forwardRef(({className:e,inset:t,children:n,...r},s)=>l.jsxs(Kj,{ref:s,className:X("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[state=open]:bg-accent focus:bg-accent",t&&"pl-8",e),...r,children:[n,l.jsx($I,{className:"ml-auto h-4 w-4"})]}));Fz.displayName=Kj.displayName;const Uz=p.forwardRef(({className:e,...t},n)=>l.jsx(Gj,{ref:n,className:X("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Uz.displayName=Gj.displayName;const of=p.forwardRef(({className:e,sideOffset:t=4,...n},r)=>l.jsx(zz,{children:l.jsx(Fj,{ref:r,sideOffset:t,className:X("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));of.displayName=Fj.displayName;const $l=p.forwardRef(({className:e,inset:t,...n},r)=>l.jsx(Bj,{ref:r,className:X("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",t&&"pl-8",e),...n}));$l.displayName=Bj.displayName;const Bz=p.forwardRef(({className:e,children:t,checked:n,...r},s)=>l.jsxs(Hj,{ref:s,className:X("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),checked:n,...r,children:[l.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:l.jsx(Wj,{children:l.jsx(kl,{className:"h-4 w-4"})})}),t]}));Bz.displayName=Hj.displayName;const Hz=p.forwardRef(({className:e,children:t,...n},r)=>l.jsxs(Vj,{ref:r,className:X("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),...n,children:[l.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:l.jsx(Wj,{children:l.jsx(Ik,{className:"h-2 w-2 fill-current"})})}),t]}));Hz.displayName=Vj.displayName;const Vz=p.forwardRef(({className:e,inset:t,...n},r)=>l.jsx(Uj,{ref:r,className:X("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));Vz.displayName=Uj.displayName;const Wz=p.forwardRef(({className:e,...t},n)=>l.jsx(qj,{ref:n,className:X("-mx-1 my-1 h-px bg-muted",e),...t}));Wz.displayName=qj.displayName;function qz(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Kz=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Gz=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Yz={};function i0(e,t){return(Yz.jsx?Gz:Kz).test(e)}const Qz=/[ \t\n\f\r]/g;function Zz(e){return typeof e=="object"?e.type==="text"?o0(e.value):!1:o0(e)}function o0(e){return e.replace(Qz,"")===""}class ac{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}ac.prototype.normal={};ac.prototype.property={};ac.prototype.space=void 0;function Yj(e,t){const n={},r={};for(const s of e)Object.assign(n,s.property),Object.assign(r,s.normal);return new ac(n,r,t)}function Nm(e){return e.toLowerCase()}class Qt{constructor(t,n){this.attribute=n,this.property=t}}Qt.prototype.attribute="";Qt.prototype.booleanish=!1;Qt.prototype.boolean=!1;Qt.prototype.commaOrSpaceSeparated=!1;Qt.prototype.commaSeparated=!1;Qt.prototype.defined=!1;Qt.prototype.mustUseProperty=!1;Qt.prototype.number=!1;Qt.prototype.overloadedBoolean=!1;Qt.prototype.property="";Qt.prototype.spaceSeparated=!1;Qt.prototype.space=void 0;let Xz=0;const _e=Ui(),st=Ui(),Tm=Ui(),G=Ui(),ze=Ui(),No=Ui(),tn=Ui();function Ui(){return 2**++Xz}const Pm=Object.freeze(Object.defineProperty({__proto__:null,boolean:_e,booleanish:st,commaOrSpaceSeparated:tn,commaSeparated:No,number:G,overloadedBoolean:Tm,spaceSeparated:ze},Symbol.toStringTag,{value:"Module"})),jh=Object.keys(Pm);class Vy extends Qt{constructor(t,n,r,s){let i=-1;
vendor: 4,243 bytes, line 558
558if(super(t,n),a0(this,"space",s),typeof r=="number")for(;++i<jh.length;){const o=jh[i];a0(this,jh[i],(r&Pm[o])===Pm[o])}}}Vy.prototype.defined=!0;function a0(e,t,n){n&&(e[t]=n)}function pa(e){const t={},n={};for(const[r,s]of Object.entries(e.properties)){const i=new Vy(r,e.transform(e.attributes||{},r),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[Nm(r)]=r,n[Nm(i.attribute)]=r}return new ac(t,n,e.space)}const Qj=pa({properties:{ariaActiveDescendant:null,ariaAtomic:st,ariaAutoComplete:null,ariaBusy:st,ariaChecked:st,ariaColCount:G,ariaColIndex:G,ariaColSpan:G,ariaControls:ze,ariaCurrent:null,ariaDescribedBy:ze,ariaDetails:null,ariaDisabled:st,ariaDropEffect:ze,ariaErrorMessage:null,ariaExpanded:st,ariaFlowTo:ze,ariaGrabbed:st,ariaHasPopup:null,ariaHidden:st,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ze,ariaLevel:G,ariaLive:null,ariaModal:st,ariaMultiLine:st,ariaMultiSelectable:st,ariaOrientation:null,ariaOwns:ze,ariaPlaceholder:null,ariaPosInSet:G,ariaPressed:st,ariaReadOnly:st,ariaRelevant:null,ariaRequired:st,ariaRoleDescription:ze,ariaRowCount:G,ariaRowIndex:G,ariaRowSpan:G,ariaSelected:st,ariaSetSize:G,ariaSort:null,ariaValueMax:G,ariaValueMin:G,ariaValueNow:G,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Zj(e,t){return t in e?e[t]:t}function Xj(e,t){return Zj(e,t.toLowerCase())}const Jz=pa({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:No,acceptCharset:ze,accessKey:ze,action:null,allow:null,allowFullScreen:_e,allowPaymentRequest:_e,allowUserMedia:_e,alt:null,as:null,async:_e,autoCapitalize:null,autoComplete:ze,autoFocus:_e,autoPlay:_e,blocking:ze,capture:null,charSet:null,checked:_e,cite:null,className:ze,cols:G,colSpan:null,content:null,contentEditable:st,controls:_e,controlsList:ze,coords:G|No,crossOrigin:null,data:null,dateTime:null,decoding:null,default:_e,defer:_e,dir:null,dirName:null,disabled:_e,download:Tm,draggable:st,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:_e,formTarget:null,headers:ze,height:G,hidden:Tm,high:G,href:null,hrefLang:null,htmlFor:ze,httpEquiv:ze,id:null,imageSizes:null,imageSrcSet:null,inert:_e,inputMode:null,integrity:null,is:null,isMap:_e,itemId:null,itemProp:ze,itemRef:ze,itemScope:_e,itemType:ze,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:_e,low:G,manifest:null,max:null,maxLength:G,media:null,method:null,min:null,minLength:G,multiple:_e,muted:_e,name:null,nonce:null,noModule:_e,noValidate:_e,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:_e,optimum:G,pattern:null,ping:ze,placeholder:null,playsInl
558ine:_e,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:_e,referrerPolicy:null,rel:ze,required:_e,reversed:_e,rows:G,rowSpan:G,sandbox:ze,scope:null,scoped:_e,seamless:_e,selected:_e,shadowRootClonable:_e,shadowRootDelegatesFocus:_e,shadowRootMode:null,shape:null,size:G,sizes:null,slot:null,span:G,spellCheck:st,src:null,srcDoc:null,srcLang:null,srcSet:null,start:G,step:null,style:null,tabIndex:G,target:null,title:null,translate:null,type:null,typeMustMatch:_e,useMap:null,value:st,width:G,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ze,axis:null,background:null,bgColor:null,border:G,borderColor:null,bottomMargin:G,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:_e,declare:_e,event:null,face:null,frame:null,frameBorder:null,hSpace:G,leftMargin:G,link:null,longDesc:null,lowSrc:null,marginHeight:G,marginWidth:G,noResize:_e,noHref:_e,noShade:_e,noWrap:_e,object:null,profile:null,prompt:null,rev:null,rightMargin:G,rules:null,scheme:null,scrolling:st,standby:null,summary:null,text:null,topMargin:G,valueType:null,version:null,vAlign:null,vLink:null,vSpace:G,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:_e,disableRemotePlayback:_e,prefix:null,property:null,results:G,security:null,unselectable:null},space:"html",transform:Xj}),eF=pa({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",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",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
558-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:tn,accentHeight:G,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:G,amplitude:G,arabicForm:null,ascent:G,attributeName:null,attributeType:null,azimuth:G,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:G,by:null,calcMode:null,capHeight:G,className:ze,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:G,diffuseConstant:G,direction:null,display:null,dur:null,divisor:G,dominantBaseline:null,download:_e,dx:null,dy:null,edgeMode:null,editable:null,elevation:G,enableBackground:null,end:null,event:null,exponent:G,externalResourcesRequired:null,fill:null,fillOpacity:G,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:No,g2:No,glyphName:No,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:G,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:G,horizOriginX:G,horizOriginY:G,id:null,ideographic:G,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:G,k:G,k1:G,k2:G,k3:G,k4:G,kernelMatrix:tn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:G,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:G,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,on
vendor: 5,275 bytes, lines 558-559
558Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:G,overlineThickness:G,paintOrder:null,panose1:null,path:null,pathLength:G,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ze,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:G,pointsAtY:G,pointsAtZ:G,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:tn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:tn,rev:tn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:tn,requiredFeatures:tn,requiredFonts:tn,requiredFormats:tn,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:G,specularExponent:G,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:G,strikethroughThickness:G,string:null,stroke:null,strokeDashArray:tn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:G,strokeOpacity:G,strokeWidth:null,style:null,surfaceScale:G,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:tn,tabIndex:G,tableValues:null,target:null,targetX:G,targetY:G,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:tn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:G,underlineThickness:G,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:G,values:null,vAlphabetic:G,vMathematical:G,vectorEffect:null,vHanging:G,vIdeographic:G,version:null,vertAdvY:G,vertOriginX:G,vertOriginY:G,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:G,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Zj}),Jj=pa({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),eC=pa({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Xj}),tC=pa({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),tF={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"},nF=/[A-Z]/g,l0=/-[a-z]/g,rF=/^data[-\w.:]+$/i;function sF(e,t){const n=Nm(t);let r=t,s=Qt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&rF.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(l0,oF);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!l0.test(i)){let o=i.replace(nF,iF);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}s=Vy}return new s(r,t)}function iF(e){return"-"+e.toLowerCase()}function oF(e){return e.charAt(1).toUpperCase()}const aF=Yj([Qj,Jz,Jj,eC,tC],"html"),Wy=Yj([Qj,eF,Jj,eC,tC],"svg");function lF(e){return e.join(" ").trim()}var qy={},c0=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,cF=/\n/g,uF=/^\s*/,dF=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,fF=/^:\s*/,hF=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,pF=/^[;\s]*/,mF=/^\s+|\s+$/g,gF=` 559`,u0="/",d0="*",li="",yF="comment",vF="declaration";function xF(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function s(y){var g=y.match(cF);g&&(n+=g.length);var w=y.lastIndexOf(gF);r=~w?y.length-w:r+y.length}function i(){var y={line:n,column:r};return function(g){return g.position=new o(y),u(),g}}function o(y){this.start=y,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function a(y){var g=new Error(t.source+":"+n+":"+r+": "+y);if(g.reason=y,g.filename=t.source,g.line=n,g.column=r,g.source=e,!t.silent)throw g}function c(y){var g=y.exec(e);if(g){var w=g[0];return s(w),e=e.slice(w.length),g}}function u(){c(uF)}function d(y){var g;for(y=y||[];g=f();)g!==!1&&y.push(g);return y}function f(){var y=i();if(!(u0!=e.charAt(0)||d0!=e.charAt(1))){for(var g=2;li!=e.charAt(g)&&(d0!=e.charAt(g)||u0!=e.charAt(g+1));)++g;if(g+=2,li===e.charAt(g-1))return a("End of comment missing");var w=e.slice(2,g-2);return r+=2,s(w),e=e.slice(g),r+=2,y({type:yF,comment:w})}}function m(){var y=i(),g=c(dF);if(g){if(f(),!c(fF))return a("property missing ':'");var w=c(hF),v=y({type:vF,property:f0(g[0].replace(c0,li)),value:w?f0(w[0].replace(c0,li)):li});return c(pF),v}}function h(){var y=[];d(y);for(var g;g=m();)g!==!1&&(y.push(g),d(y));return y}return u(),h()}function f0(e){return e?e.replace(mF,li):li}var wF=xF,bF=Ct&&Ct.__importDefault||function(e){return e&&e.__esMo
vendor: 3,641 bytes, line 559
559dule?e:{default:e}};Object.defineProperty(qy,"__esModule",{value:!0});qy.default=kF;const _F=bF(wF);function kF(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,_F.default)(e),s=typeof t=="function";return r.forEach(i=>{if(i.type!=="declaration")return;const{property:o,value:a}=i;s?t(o,a,i):a&&(n=n||{},n[o]=a)}),n}var af={};Object.defineProperty(af,"__esModule",{value:!0});af.camelCase=void 0;var SF=/^--[a-zA-Z0-9_-]+$/,EF=/-([a-z])/g,jF=/^[^-]+$/,CF=/^-(webkit|moz|ms|o|khtml)-/,NF=/^-(ms)-/,TF=function(e){return!e||jF.test(e)||SF.test(e)},PF=function(e,t){return t.toUpperCase()},h0=function(e,t){return"".concat(t,"-")},RF=function(e,t){return t===void 0&&(t={}),TF(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(NF,h0):e=e.replace(CF,h0),e.replace(EF,PF))};af.camelCase=RF;var IF=Ct&&Ct.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},AF=IF(qy),OF=af;function Rm(e,t){var n={};return!e||typeof e!="string"||(0,AF.default)(e,function(r,s){r&&s&&(n[(0,OF.camelCase)(r,t)]=s)}),n}Rm.default=Rm;var MF=Rm;const DF=Oi(MF),nC=rC("end"),Ky=rC("start");function rC(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function LF(e){const t=Ky(e),n=nC(e);if(t&&n)return{start:t,end:n}}function nl(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?p0(e.position):"start"in e||"end"in e?p0(e):"line"in e||"column"in e?Im(e):""}function Im(e){return m0(e&&e.line)+":"+m0(e&&e.column)}function p0(e){return Im(e&&e.start)+"-"+Im(e&&e.end)}function m0(e){return e&&typeof e=="number"?e:1}class Pt extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let s="",i={},o=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?s=t:!i.cause&&t&&(o=!0,s=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const c=r.indexOf(":");c===-1?i.ruleId=r:(i.source=r.slice(0,c),i.ruleId=r.slice(c+1))}if(!i.place&&i.ancestors&&i.ancestors){const c=i.ancestors[i.ancestors.length-1];c&&(i.place=c.position)}const a=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=a?a.line:void 0,this.name=nl(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Pt.prototype.file="";Pt.prototype.name="";Pt.prototype.reason="";Pt.prototype.message="";Pt.prototype.stack="";Pt.prototype.column=void 0;Pt.prototype.line=void 0;Pt.prototype.ancestors=void 0;Pt.prototype.cause=void 0;Pt.prototype.fatal=void 0;Pt.prototype.place=void 0;Pt.prototype.ruleId=void 0;Pt.prototype.source=void 0;const Gy={}.hasOwnProperty,$F=new Map,zF=/[A-Z]/g,FF=new Set(["table","tbody","thead","tfoot","tr"]),UF=new Set(["td","th"]),sC="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function BF(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=QF(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");
vendor: 6,016 bytes, line 559
559if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=YF(n,t.jsx,t.jsxs)}const s={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,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"?Wy:aF,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=iC(s,e,void 0);return i&&typeof i!="string"?i:s.create(e,s.Fragment,{children:i||void 0},void 0)}function iC(e,t,n){if(t.type==="element")return HF(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return VF(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return qF(e,t,n);if(t.type==="mdxjsEsm")return WF(e,t);if(t.type==="root")return KF(e,t,n);if(t.type==="text")return GF(e,t)}function HF(e,t,n){const r=e.schema;let s=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(s=Wy,e.schema=s),e.ancestors.push(t);const i=aC(e,t.tagName,!1),o=ZF(e,t);let a=Qy(e,t);return FF.has(t.tagName)&&(a=a.filter(function(c){return typeof c=="string"?!Zz(c):!0})),oC(e,o,i,t),Yy(o,a),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}function VF(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}zl(e,t.position)}function WF(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);zl(e,t.position)}function qF(e,t,n){const r=e.schema;let s=r;t.name==="svg"&&r.space==="html"&&(s=Wy,e.schema=s),e.ancestors.push(t);const i=t.name===null?e.Fragment:aC(e,t.name,!0),o=XF(e,t),a=Qy(e,t);return oC(e,o,i,t),Yy(o,a),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}function KF(e,t,n){const r={};return Yy(r,Qy(e,t)),e.create(t,e.Fragment,r,n)}function GF(e,t){return t.value}function oC(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Yy(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function YF(e,t,n){return r;function r(s,i,o,a){const u=Array.isArray(o.children)?n:t;return a?u(i,o,a):u(i,o)}}function QF(e,t){return n;function n(r,s,i,o){const a=Array.isArray(i.children),c=Ky(r);return t(s,i,o,a,{columnNumber:c?c.column-1:void 0,fileName:e,lineNumber:c?c.line:void 0},void 0)}}function ZF(e,t){const n={};let r,s;for(s in t.properties)if(s!=="children"&&Gy.call(t.properties,s)){const i=JF(e,s,t.properties[s]);if(i){const[o,a]=i;e.tableCellAlignToStyle&&o==="align"&&typeof a=="string"&&UF.has(t.tagName)?r=a:n[o]=a}}if(r){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function XF(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const i=r.data.estree.body[0];i.type;const o=i.expression;o.type;const a=o.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else zl(e,t.position);else{const s=r.name;let i;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,i=e.evaluater.evaluateExpression(a.expression)}else zl(e,t.position);else i=r.value===null?!0:r.value;n[s]=i}return n}function Qy(e,t){const n=[];let r=-1;const s=e.passKeys?new Map:$F;for(;++r<t.children.length;){const i=t.children[r];let o;if(e.passKeys){const c=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(c){const u=s.get(c)||0;o=c+"-"+u,s.set(c,u+1)}}const a=iC(e,i,o);a!==void 0&&n.push(a)}return n}function JF(e,t,n){const r=sF(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?qz(n):lF(n)),r.property==="style"){let s=typeof n=="object"?n:e6(e,String(n));return e.stylePropertyNameCase==="css"&&(s=t6(s)),["style",s]}return[e.elementAttributeNameCase==="react"&&r.space?tF[r.property]||r.property:r.attribute,n]}}function e6(e,t){try{return DF(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,s=new Pt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=e.filePath||void 0,s.url=sC+"#cannot-parse-style-attribute",s}}function aC(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const s=t.split(".");let i=-1,o;for(;++i<s.length;){const a=i0(s[i])?{type:"Identifier",name:s[i]}:{type:"Literal",value:s[i]};o=o?{type:"MemberExpression",object:o,property:a,computed:!!(i&&a.type==="Literal"),optional:!1}:a}r=o}else r=i0(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const s=r.value;return Gy.call(e.components,s)?e.components[s]:s}if(e.evaluater)return e.evaluater.evaluateExpression(r);zl(e)}function zl(e,t){const n=new Pt("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=sC+"#cannot-handle-mdx-estrees-without-createevaluater",n}function t6(e){const t={};let n;for(n in e)Gy.call(e,n)&&(t[n6(n)]=e[n]);return t}function n6(e){let t=e.replace(zF,r6);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function r6(e){return"-"+e.toLowerCase()}const Ch={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"]},s6={};function i6(e,t){const n=s6,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,s=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return lC(e,r,s)}function lC(e,t,n){if(o6(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 g0(e.children,t,n)}
vendor: 15,035 bytes, line 559
559return Array.isArray(e)?g0(e,t,n):""}function g0(e,t,n){const r=[];let s=-1;for(;++s<e.length;)r[s]=lC(e[s],t,n);return r.join("")}function o6(e){return!!(e&&typeof e=="object")}const y0=document.createElement("i");function Zy(e){const t="&"+e+";";y0.innerHTML=t;const n=y0.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function _r(e,t,n,r){const s=e.length;let i=0,o;if(t<0?t=-t>s?0:s+t:t=t>s?s:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);i<r.length;)o=r.slice(i,i+1e4),o.unshift(t,0),e.splice(...o),i+=1e4,t+=1e4}function bn(e,t){return e.length>0?(_r(e,e.length,0,t),e):t}const v0={}.hasOwnProperty;function a6(e){const t={};let n=-1;for(;++n<e.length;)l6(t,e[n]);return t}function l6(e,t){let n;for(n in t){const s=(v0.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let o;if(i)for(o in i){v0.call(s,o)||(s[o]=[]);const a=i[o];c6(s[o],Array.isArray(a)?a:a?[a]:[])}}}function c6(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);_r(e,0,0,r)}function cC(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 To(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const mr=Js(/[A-Za-z]/),on=Js(/[\dA-Za-z]/),u6=Js(/[#-'*+\--9=?A-Z^-~]/);function Am(e){return e!==null&&(e<32||e===127)}const Om=Js(/\d/),d6=Js(/[\dA-Fa-f]/),f6=Js(/[!-/:-@[-`{-~]/);function de(e){return e!==null&&e<-2}function Gt(e){return e!==null&&(e<0||e===32)}function Me(e){return e===-2||e===-1||e===32}const h6=Js(new RegExp("\\p{P}|\\p{S}","u")),p6=Js(/\s/);function Js(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function ma(e){const t=[];let n=-1,r=0,s=0;for(;++n<e.length;){const i=e.charCodeAt(n);let o="";if(i===37&&on(e.charCodeAt(n+1))&&on(e.charCodeAt(n+2)))s=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(o=String.fromCharCode(i));else if(i>55295&&i<57344){const a=e.charCodeAt(n+1);i<56320&&a>56319&&a<57344?(o=String.fromCharCode(i,a),s=1):o="�"}else o=String.fromCharCode(i);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+s+1,o=""),s&&(n+=s,s=0)}return t.join("")+e.slice(r)}function Ue(e,t,n,r){const s=r?r-1:Number.POSITIVE_INFINITY;let i=0;return o;function o(c){return Me(c)?(e.enter(n),a(c)):t(c)}function a(c){return Me(c)&&i++<s?(e.consume(c),a):(e.exit(n),t(c))}}const m6={tokenize:g6};function g6(e){const t=e.attempt(this.parser.constructs.contentInitial,r,s);let n;return t;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),Ue(e,t,"linePrefix")}function s(a){return e.enter("paragraph"),i(a)}function i(a){const c=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=c),n=c,o(a)}function o(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return de(a)?(e.consume(a),e.exit("chunkText"),i):(e.consume(a),o)}}const y6={tokenize:v6},x0={tokenize:x6};function v6(e){const t=this,n=[];let r=0,s,i,o;return a;function a(b){if(r<n.length){const _=n[r];return t.containerState=_[1],e.attempt(_[0].continuation,c,u)(b)}return u(b)}function c(b){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,s&&x();const _=t.events.length;let j=_,k;for(;j--;)if(t.events[j][0]==="exit"&&t.events[j][1].type==="chunkFlow"){k=t.events[j][1].end;break}v(r);let C=_;for(;C<t.events.length;)t.events[C][1].end={...k},C++;return _r(t.events,j+1,0,t.events.slice(_)),t.events.length=C,u(b)}return a(b)}function u(b){if(r===n.length){if(!s)return m(b);if(s.currentConstruct&&s.currentConstruct.concrete)return y(b);t.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(x0,d,f)(b)}function d(b){return s&&x(),v(r),m(b)}function f(b){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,y(b)}function m(b){return t.containerState={},e.attempt(x0,h,y)(b)}function h(b){return r++,n.push([t.currentConstruct,t.containerState]),m(b)}function y(b){if(b===null){s&&x(),v(0),e.consume(b);return}return s=s||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:i}),g(b)}function g(b){if(b===null){w(e.exit("chunkFlow"),!0),v(0),e.consume(b);return}return de(b)?(e.consume(b),w(e.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(e.consume(b),g)}function w(b,_){const j=t.sliceStream(b);if(_&&j.push(null),b.previous=i,i&&(i.next=b),i=b,s.defineSkip(b.start),s.write(j),t.parser.lazy[b.start.line]){let k=s.events.length;for(;k--;)if(s.events[k][1].start.offset<o&&(!s.events[k][1].end||s.events[k][1].end.offset>o))return;const C=t.events.length;let N=C,T,A;for(;N--;)if(t.events[N][0]==="exit"&&t.events[N][1].type==="chunkFlow"){if(T){A=t.events[N][1].end;break}T=!0}for(v(r),k=C;k<t.events.length;)t.events[k][1].end={...A},k++;_r(t.events,N+1,0,t.events.slice(C)),t.events.length=k}}function v(b){let _=n.length;for(;_-- >b;){const j=n[_];t.containerState=j[1],j[0].exit.call(t,e)}n.length=b}function x(){s.write([null]),i=void 0,s=void 0,t.containerState._closeFlow=void 0}}function x6(e,t,n){return Ue(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function w0(e){if(e===null||Gt(e)||p6(e))return 1;if(h6(e))return 2}function Xy(e,t,n){const r=[];let s=-1;for(;++s<e.length;){const i=e[s].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const Mm={name:"attention",resolveAll:w6,tokenize:b6};function w6(e,t){let n=-1,r,s,i,o,a,c,u,d;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f={...e[r][1].end},m={...e[n][1].start};b0(f,-c),b0(m,c),o={type:c>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},a={type:c>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:m},i={type:c>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},s={type:c>1?"strong":"emphasis",start:{...o.start},end:{...a.end}},e[r][1].end={...o.start},e[n][1].start={...a.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=bn(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=bn(u,[["enter",s,t],["enter",o,t],["exit",o,t],["enter",i,t]]),u=bn(u,Xy(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=bn(u,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",s,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,u=bn(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,_r(e,r-1,n-r+3,u),n=r+u.length-d-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function b6(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,s=w0(r);let i;return o;function o(c){return i=c,e.enter("attentionSequence"),a(c)}function a(c){if(c===i)return e.consume(c),a;const u=e.exit("attentionSequence"),d=w0(c),f=!d||d===2&&s||n.includes(c),m=!s||s===2&&d||n.includes(r);return u._open=!!(i===42?f:f&&(s||!m)),u._close=!!(i===42?m:m&&(d||!f)),t(c)}}function b0(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const _6={name:"autolink",tokenize:k6};function k6(e,t,n){let r=0;return s;function s(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(h){return mr(h)?(e.consume(h),o):h===64?n(h):u(h)}function o(h){return h===43||h===45||h===46||on(h)?(r=1,a(h)):u(h)}function a(h){return h===58?(e.consume(h),r=0,c):(h===43||h===45||h===46||on(h))&&r++<32?(e.consume(h),a):(r=0,u(h))}function c(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||Am(h)?n(h):(e.consume(h),c)}function u(h){return h===64?(e.consume(h),d):u6(h)?(e.consume(h),u):n(h)}function d(h){return on(h)?f(h):n(h)}function f(h){return h===46?(e.consume(h),r=0,d):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):m(h)}function m(h){if((h===45||on(h))&&r++<63){const y=h===45?m:f;return e.consume(h),y}return n(h)}}const lf={partial:!0,tokenize:S6};function S6(e,t,n){return r;function r(i){return Me(i)?Ue(e,s,"linePrefix")(i):s(i)}function s(i){return i===null||de(i)?t(i):n(i)}}const uC={continuation:{tokenize:j6},exit:C6,name:"blockQuote",tokenize:E6};function E6(e,t,n){const r=this;return s;function s(o){if(o===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),i}return n(o)}function i(o){return Me(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function j6(e,t,n){const r=this;return s;function s(o){return Me(o)?Ue(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):i(o)}function i(o){return e.attempt(uC,t,n)(o)}}function C6(e){e.exit("blockQuote")}const dC={name:"characterEscape",tokenize:N6};function N6(e,t,n){return r;function r(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),s}function s(i){return f6(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}const fC={name:"characterReference",tokenize:T6};function T6(e,t,n){const r=this;let s=0,i,o;return a;function a(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),c}function c(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),i=31,o=on,d(f))}function u(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=d6,d):(e.enter("characterReferenceValue"),i=7,o=Om,d(f))}function d(f){if(f===59&&s){const m=e.exit("characterReferenceValue");return o===on&&!Zy(r.sliceSerialize(m))?n(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(f)&&s++<i?(e.consume(f),d):n(f)}}const _0={partial:!0,tokenize:R6},k0={concrete:!0,name:"codeFenced",tokenize:P6};function P6(e,t,n){const r=this,s={partial:!0,tokenize:j};let i=0,o=0,a;return c;function c(k){return u(k)}function u(k){const C=r.events[r.events.length-1];return i=C&&C[1].type==="linePrefix"?C[2].sliceSerialize(C[1],!0).length:0,a=k,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(k)}function d(k){return k===a?(o++,e.consume(k),d):o<3?n(k):(e.exit("codeFencedFenceSequence"),Me(k)?Ue(e,f,"whitespace")(k):f(k))}function f(k){return k===null||de(k)?(e.exit("codeFencedFence"),r.interrupt?t(k):e.check(_0,g,_)(k)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),m(k))}function m(k){return k===null||de(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(k)):Me(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Ue(e,h,"whitespace")(k)):k===96&&k===a?n(k):(e.consume(k),m)}function h(k){return k===null||de(k)?f(k):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),y(k))}function y(k){return k===null||de(k)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(k)):k===96&&k===a?n(k):(e.consume(k),y)}function g(k){return e.attempt(s,_,w)(k)}function w(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),v}function v(k){return i>0&&Me(k)?Ue(e,x,"linePrefix",i+1)(k):x(k)}function x(k){return k===null||de(k)?e.check(_0,g,_)(k):(e.enter("codeFlowValue"),b(k))}function b(k){return k===null||de(k)?(e.exit("codeFlowValue"),x(k)):(e.consume(k),b)}function _(k){return e.exit("codeFenced"),t(k)}function j(k,C,N){let T=0;return A;function A(z){return k.enter("lineEnding"),k.consume(z),k.exit("lineEnding"),M}function M(z){return k.enter("codeFencedFence"),Me(z)?Ue(k,P,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(z):P(z)}function P(z){return z===a?(k.enter("codeFencedFenceSequence"),L(z)):N(z)}function L(z){return z===a?(T++,k.consume(z),L):T>=o?(k.exit("codeFencedFenceSequence"),Me(z)?Ue(k,R,"whitespace")(z):R(z)):N(z)}function R(z){return z===null||de(z)?(k.exit("codeFencedFence"),C(z)):N(z)}}}function R6(e,t,n){const r=this;return s;function s(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const Nh={name:"codeIndented",tokenize:A6},I6={partial:!0,tokenize:O6};function A6(e,t,n){const r=this;return s;function s(u){return e.enter("codeIndented"),Ue(e,i,"linePrefix",5)(u)}function i(u){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?o(u):n(u)}function o(u){return u===null?c(u):de(u)?e.attempt(I6,o,c)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||de(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),a)}function c(u){return e.exit("codeIndented"),t(u)}}function O6(e,t,n){const r=this;return s;function s(o){return r.parser.lazy[r.now().line]?n(o):de(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),s):Ue(e,i,"linePrefix",5)(o)}function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(o):de(o)?s(o):n(o)}}const M6={name:"codeText",previous:L6,resolve:D6,tokenize:$6};function D6(e){let t=e.length-4,n=3,r,s;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)s===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(s=r):(r===t||e[r][1].type==="lineEnding")&&(e[s][1].type="codeTextData",r!==s+2&&(e[s][1].end=e[r-1][1].end,e.splice(s+2,r-s-2),t-=r-s-2,r=s+2),s=void 0);return e}function L6(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function $6(e,t,n){let r=0,s,i;return o;function o(f){return e.enter("codeText"),e.enter("codeTextSequence"),a(f)}function a(f){return f===96?(e.consume(f),r++,a):(e.exit("codeTextSequence"),c(f))}function c(f){return f===null?n(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),c):f===96?(i=e.enter("co
559deTextSequence"),s=0,d(f)):de(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):(e.enter("codeTextData"),u(f))}function u(f){return f===null||f===32||f===96||de(f)?(e.exit("codeTextData"),c(f)):(e.consume(f),u)}function d(f){return f===96?(e.consume(f),s++,d):s===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(i.type="codeTextData",u(f))}}class z6{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 r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const s=n||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return r&&Ia(this.left,r),i.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),Ia(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ia(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);Ia(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Ia(this.left,n.reverse())}}}function Ia(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 hC(e){const t={};let n=-1,r,s,i,o,a,c,u;const d=new z6(e);for(;++n<d.length;){for(;n in t;)n=t[n];if(r=d.get(n),n&&r[1].type==="chunkFlow"&&d.get(n-1)[1].type==="listItemPrefix"&&(c=r[1]._tokenizer.events,i=0,i<c.length&&c[i][1].type==="lineEndingBlank"&&(i+=2),i<c.length&&c[i][1].type==="content"))for(;++i<c.length&&c[i][1].type!=="content";)c[i][1].type==="chunkText"&&(c[i][1]._isInFirstContentOfListItem=!0,i++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,F6(d,n)),n=t[n],u=!0);else if(r[1]._container){for(i=n,s=void 0;i--;)if(o=d.get(i),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(s&&(d.get(s)[1].type="lineEndingBlank"),o[1].type="lineEnding",s=i);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;s&&(r[1].end={...d.get(s)[1].start},a=d.slice(s,n),a.unshift(r),d.splice(s,n-s+1,a))}}return _r(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!u}function F6(e,t){const n=e.get(t)[1],r=e.get(t)[2];let s=t-1;const i=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const a=o.events,c=[],u={};let d,f,m=-1,h=n,y=0,g=0;const w=[g];for(;h;){for(;e.get(++s)[1]!==h;);i.push(s),h._tokenizer||(d=r.sliceStream(h),h.next||d.push(null),f&&o.defineSkip(h.start),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(d),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),f=h,h=h.next}for(h=n;++m<a.length;)a[m][0]==="exit"&&a[m-1][0]==="enter"&&a[m][1].type===a[m-1][1].type&&a[m][1].start.line!==a[m][1].end.line&&(g=m+1,w.push(g),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(o.events=[],h?(h._tokenizer=void 0,h.previous=void 0):w.pop(),m=w.length;m--;){const v=a.slice(w[m],w[m+1]),x=i.pop();c.push([x,x+v.length-1]),e.splice(x,2,v)}for(c.reverse(),m=-1;++m<c.length;)u[y+c[m][0]]=y+c[m][1],y+=c[m][1]-c[m][0]-1;return u}const U6={resolve:H6,tokenize:V6},B6={partial:!0,tokenize:W6};function H6(e){return hC(e),e}function V6(e,t){let n;return r;function r(a){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),s(a)}function s(a){return a===null?i(a):de(a)?e.check(B6,o,i)(a):(e.consume(a),s)}function i(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function o(a){return e.consume(a),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,s}}
vendor: 17,419 bytes, line 559
559function W6(e,t,n){const r=this;return s;function s(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Ue(e,i,"linePrefix")}function i(o){if(o===null||de(o))return n(o);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function pC(e,t,n,r,s,i,o,a,c){const u=c||Number.POSITIVE_INFINITY;let d=0;return f;function f(v){return v===60?(e.enter(r),e.enter(s),e.enter(i),e.consume(v),e.exit(i),m):v===null||v===32||v===41||Am(v)?n(v):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),g(v))}function m(v){return v===62?(e.enter(i),e.consume(v),e.exit(i),e.exit(s),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),h(v))}function h(v){return v===62?(e.exit("chunkString"),e.exit(a),m(v)):v===null||v===60||de(v)?n(v):(e.consume(v),v===92?y:h)}function y(v){return v===60||v===62||v===92?(e.consume(v),h):h(v)}function g(v){return!d&&(v===null||v===41||Gt(v))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),t(v)):d<u&&v===40?(e.consume(v),d++,g):v===41?(e.consume(v),d--,g):v===null||v===32||v===40||Am(v)?n(v):(e.consume(v),v===92?w:g)}function w(v){return v===40||v===41||v===92?(e.consume(v),g):g(v)}}function mC(e,t,n,r,s,i){const o=this;let a=0,c;return u;function u(h){return e.enter(r),e.enter(s),e.consume(h),e.exit(s),e.enter(i),d}function d(h){return a>999||h===null||h===91||h===93&&!c||h===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?n(h):h===93?(e.exit(i),e.enter(s),e.consume(h),e.exit(s),e.exit(r),t):de(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||de(h)||a++>999?(e.exit("chunkString"),d(h)):(e.consume(h),c||(c=!Me(h)),h===92?m:f)}function m(h){return h===91||h===92||h===93?(e.consume(h),a++,f):f(h)}}function gC(e,t,n,r,s,i){let o;return a;function a(m){return m===34||m===39||m===40?(e.enter(r),e.enter(s),e.consume(m),e.exit(s),o=m===40?41:m,c):n(m)}function c(m){return m===o?(e.enter(s),e.consume(m),e.exit(s),e.exit(r),t):(e.enter(i),u(m))}function u(m){return m===o?(e.exit(i),c(o)):m===null?n(m):de(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),Ue(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(m))}function d(m){return m===o||m===null||de(m)?(e.exit("chunkString"),u(m)):(e.consume(m),m===92?f:d)}function f(m){return m===o||m===92?(e.consume(m),d):d(m)}}function rl(e,t){let n;return r;function r(s){return de(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n=!0,r):Me(s)?Ue(e,r,n?"linePrefix":"lineSuffix")(s):t(s)}}const q6={name:"definition",tokenize:G6},K6={partial:!0,tokenize:Y6};function G6(e,t,n){const r=this;let s;return i;function i(h){return e.enter("definition"),o(h)}function o(h){return mC.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return s=To(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),c):n(h)}function c(h){return Gt(h)?rl(e,u)(h):u(h)}function u(h){return pC(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function d(h){return e.attempt(K6,f,f)(h)}function f(h){return Me(h)?Ue(e,m,"whitespace")(h):m(h)}function m(h){return h===null||de(h)?(e.exit("definition"),r.parser.defined.push(s),t(h)):n(h)}}function Y6(e,t,n){return r;function r(a){return Gt(a)?rl(e,s)(a):n(a)}function s(a){return gC(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function i(a){return Me(a)?Ue(e,o,"whitespace")(a):o(a)}function o(a){return a===null||de(a)?t(a):n(a)}}const Q6={name:"hardBreakEscape",tokenize:Z6};function Z6(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),s}function s(i){return de(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const X6={name:"headingAtx",resolve:J6,tokenize:eU};function J6(e,t){let n=e.length-2,r=3,s,i;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(s={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},_r(e,r,n-r+1,[["enter",s,t],["enter",i,t],["exit",i,t],["exit",s,t]])),e}function eU(e,t,n){let r=0;return s;function s(d){return e.enter("atxHeading"),i(d)}function i(d){return e.enter("atxHeadingSequence"),o(d)}function o(d){return d===35&&r++<6?(e.consume(d),o):d===null||Gt(d)?(e.exit("atxHeadingSequence"),a(d)):n(d)}function a(d){return d===35?(e.enter("atxHeadingSequence"),c(d)):d===null||de(d)?(e.exit("atxHeading"),t(d)):Me(d)?Ue(e,a,"whitespace")(d):(e.enter("atxHeadingText"),u(d))}function c(d){return d===35?(e.consume(d),c):(e.exit("atxHeadingSequence"),a(d))}function u(d){return d===null||d===35||Gt(d)?(e.exit("atxHeadingText"),a(d)):(e.consume(d),u)}}const tU=["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"],S0=["pre","script","style","textarea"],nU={concrete:!0,name:"htmlFlow",resolveTo:iU,tokenize:oU},rU={partial:!0,tokenize:lU},sU={partial:!0,tokenize:aU};function iU(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 oU(e,t,n){const r=this;let s,i,o,a,c;return u;function u(S){return d(S)}function d(S){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(S),f}function f(S){return S===33?(e.consume(S),m):S===47?(e.consume(S),i=!0,g):S===63?(e.consume(S),s=3,r.interrupt?t:E):mr(S)?(e.consume(S),o=String.fromCharCode(S),w):n(S)}function m(S){return S===45?(e.consume(S),s=2,h):S===91?(e.consume(S),s=5,a=0,y):mr(S)?(e.consume(S),s=4,r.interrupt?t:E):n(S)}function h(S){return S===45?(e.consume(S),r.interrupt?t:E):n(S)}function y(S){const q="CDATA[";return S===q.charCodeAt(a++)?(e.consume(S),a===q.length?r.interrupt?t:P:y):n(S)}function g(S){return mr(S)?(e.consume(S),o=String.fromCharCode(S),w):n(S)}function w(S){if(S===null||S===47||S===62||Gt(S)){const q=S===47,Z=o.toLowerCase();return!q&&!i&&S0.includes(Z)?(s=1,r.interrupt?t(S):P(S)):tU.includes(o.toLowerCase())?(s=6,q?(e.consume(S),v):r.interrupt?t(S):P(S)):(s=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(S):i?x(S):b(S))}return S===45||on(S)?(e.consume(S),o+=String.fromCharCode(S),w):n(S)}function v(S){return S===62?(e.consume(S),r.interrupt?t:P):n(S)}function x(S){return Me(S)?(e.consume(S),x):A(S)}function b(S){return S===47?(e.consume(S),A):S===58||S===95||mr(S)?(e.consume(S),_):Me(S)?(e.consume(S),b):A(S)}function _(S){return S===45||S===46||S===58||S===95||on(S)?(e.consume(S),_):j(S)}function j(S){return S===61?(e.consume(S),k):Me(S)?(e.consume(S),j):b(S)}function k(S){return S===null||S===60||S===61||S===62||S===96?n(S):S===34||S===39?(e.consume(S),c=S,C):Me(S)?(e.consume(S),k):N(S)}function C(S){return S===c?(e.consume(S),c=null,T):S===null||de(S)?n(S):(e.consume(S),C)}function N(S){return S===null||S===34||S===39||S===47||S===60||S===61||S===62||S===96||Gt(S)?j(S):(e.consume(S),N)}function T(S){return S===47||S===62||Me(S)?b(S):n(S)}function A(S){return S===62?(e.consume(S),M):n(S)}function M(S){return S===null||de(S)?P(S):Me(S)?(e.consume(S),M):n(S)}function P(S){return S===45&&s===2?(e.consume(S),U):S===60&&s===1?(e.consume(S),V):S===62&&s===4?(e.consume(S),B):S===63&&s===3?(e.consume(S),E):S===93&&s===5?(e.consume(S),O):de(S)&&(s===6||s===7)?(e.exit("htmlFlowData"),e.check(rU,I,L)(S)):S===null||de(S)?(e.exit("htmlFlowData"),L(S)):(e.consume(S),P)}function L(S){return e.check(sU,R,I)(S)}function R(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),z}function z(S){return S===null||de(S)?L(S):(e.enter("htmlFlowData"),P(S))}function U(S){return S===45?(e.consume(S),E):P(S)}function V(S){return S===47?(e.consume(S),o="",D):P(S)}function D(S){if(S===62){const q=o.toLowerCase();return S0.includes(q)?(e.consume(S),B):P(S)}return mr(S)&&o.length<8?(e.consume(S),o+=String.fromCharCode(S),D):P(S)}function O(S){return S===93?(e.consume(S),E):P(S)}function E(S){return S===62?(e.consume(S),B):S===45&&s===2?(e.consume(S),E):P(S)}function B(S){return S===null||de(S)?(e.exit("htmlFlowData"),I(S)):(e.consume(S),B)}function I(S){return e.exit("htmlFlow"),t(S)}}function aU(e,t,n){const r=this;return s;function s(o){return de(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):n(o)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function lU(e,t,n){return r;function r(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(lf,t,n)}}const cU={name:"htmlText",tokenize:uU};function uU(e,t,n){const r=this;let s,i,o;return a;function a(E){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(E),c}function c(E){return E===33?(e.consume(E),u):E===47?(e.consume(E),j):E===63?(e.consume(E),b):mr(E)?(e.consume(E),N):n(E)}function u(E){return E===45?(e.consume(E),d):E===91?(e.consume(E),i=0,y):mr(E)?(e.consume(E),x):n(E)}function d(E){return E===45?(e.consume(E),h):n(E)}function f(E){return E===null?n(E):E===45?(e.consume(E),m):de(E)?(o=f,V(E)):(e.consume(E),f)}function m(E){return E===45?(e.consume(E),h):f(E)}function h(E){return E===62?U(E):E===45?m(E):f(E)}function y(E){const B="CDATA[";return E===B.charCodeAt(i++)?(e.consume(E),i===B.length?g:y):n(E)}function g(E){return E===null?n(E):E===93?(e.consume(E),w):de(E)?(o=g,V(E)):(e.consume(E),g)}function w(E){return E===93?(e.consume(E),v):g(E)}function v(E){return E===62?U(E):E===93?(e.consume(E),v):g(E)}function x(E){return E===null||E===62?U(E):de(E)?(o=x,V(E)):(e.consume(E),x)}function b(E){return E===null?n(E):E===63?(e.consume(E),_):de(E)?(o=b,V(E)):(e.consume(E),b)}function _(E){return E===62?U(E):b(E)}function j(E){return mr(E)?(e.consume(E),k):n(E)}function k(E){return E===45||on(E)?(e.consume(E),k):C(E)}function C(E){return de(E)?(o=C,V(E)):Me(E)?(e.consume(E),C):U(E)}function N(E){return E===45||on(E)?(e.consume(E),N):E===47||E===62||Gt(E)?T(E):n(E)}function T(E){return E===47?(e.consume(E),U):E===58||E===95||mr(E)?(e.consume(E),A):de(E)?(o=T,V(E)):Me(E)?(e.consume(E),T):U(E)}function A(E){return E===45||E===46||E===58||E===95||on(E)?(e.consume(E),A):M(E)}function M(E){return E===61?(e.consume(E),P):de(E)?(o=M,V(E)):Me(E)?(e.consume(E),M):T(E)}function P(E){return E===null||E===60||E===61||E===62||E===96?n(E):E===34||E===39?(e.consume(E),s=E,L):de(E)?(o=P,V(E)):Me(E)?(e.consume(E),P):(e.consume(E),R)}function L(E){return E===s?(e.consume(E),s=void 0,z):E===null?n(E):de(E)?(o=L,V(E)):(e.consume(E),L)}function R(E){return E===null||E===34||E===39||E===60||E===61||E===96?n(E):E===47||E===62||Gt(E)?T(E):(e.consume(E),R)}function z(E){return E===47||E===62||Gt(E)?T(E):n(E)}function U(E){return E===62?(e.consume(E),e.exit("htmlTextData"),e.exit("htmlText"),t):n(E)}function V(E){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),D}function D(E){return Me(E)?Ue(e,O,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):O(E)}function O(E){return e.enter("htmlTextData"),o(E)}}const Jy={name:"labelEnd",resolveAll:pU,resolveTo:mU,tokenize:gU},dU={tokenize:yU},fU={tokenize:vU},hU={tokenize:xU};function pU(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const s=r.type==="labelImage"?4:2;r.type="data",t+=s}}return e.length!==n.length&&_r(e,0,e.length,n),e}function mU(e,t){let n=e.length,r=0,s,i,o,a;for(;n--;)if(s=e[n][1],i){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;e[n][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(i=n,s.type!=="labelLink")){r=2;break}}else s.type==="labelEnd"&&(o=n);const c={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[i][1].start},end:{...e[o][1].end}},d={type:"labelText",start:{...e[i+r+2][1].end},end:{...e[o-2][1].start}};return a=[["enter",c,t],["enter",u,t]],a=bn(a,e.slice(i+1,i+r+3)),a=bn(a,[["enter",d,t]]),a=bn(a,Xy(t.parser.constructs.insideSpan.null,e.slice(i+r+4,o-3),t)),a=bn(a,[["exit",d,t],e[o-2],e[o-1],["exit",u,t]]),a=bn(a,e.slice(o+1)),a=bn(a,[["exit",c,t]]),_r(e,i,e.length,a),e}function gU(e,t,n){const r=this;let s=r.events.length,i,o;for(;s--;)if((r.events[s][1].type==="labelImage"||r.events[s][1].type==="labelLink")&&!r.events[s][1]._balanced){i=r.events[s][1];break}return a;function a(m){return i?i._inactive?f(m):(o=r.parser.defined.includes(To(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(m),e.exit("labelMarker"),e.exit("labelEnd"),c):n(m)}function c(m){return m===40?e.attempt(dU,d,o?d:f)(m):m===91?e.attempt(fU,d,o?u:f)(m):o?d(m):f(m)}function u(m){return e.attempt(hU,d,f)(m)}function d(m){return t(m)}function f(m){return i._balanced=!0,n(m)}}function yU(e,t,n){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),s}function s(f){return Gt(f)?rl(e,i)(f):i(f)}function i(f){return f===41?d(f):pC(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function o(f){return Gt(f)?rl(e,c)(f):d(f)}function a(f){return n(f)}function c(f){return f===34||f===39||f===40?gC(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):d(f)}function u(f){return Gt(f)?rl(e,d)(f):d(f)}function d(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):n(f)}}function vU(e,t,n){const r=this;return s;function s(a){return mC.call(r,e,i,o,"reference","referenceMarker","referenceString")(a)}function i(a){return r.parser.defined.includes(To(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function o(a){return n(a)}}function xU(e,t,n){return r;function r(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),s}function s(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}const wU={name:"labelStartImage",resolveAll:Jy.resolveAll,tokenize:bU};function bU(e,t,n){const r=this;return s;function s(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),i}function i(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),o):n(a)}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const _U={name:"labelStartLink",resolveAll:Jy.resolveAll,tokenize:kU};function kU(e,t,n){const r=this;return s;function s(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),i}function i(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const Th={name:"lineEnding",tokenize:SU};function SU(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Ue(e,t,"linePrefix")}}const gu={name:"thematicBreak",tokenize:EU};function EU(e,t,n){let r=0,s;return i;function i(u){return e.enter("thematicBreak"),o(u)}function o(u){return s=u,a(u)}function a(u){return u===s?(e.enter("thematicBreakSequence"),c(u)):r>=3&&(u===null||de(u))?(e.exit("thematicBreak"),t(u)):n(u)}function c(u){return u===s?(e.consume(u),r++,c):(e.exit("thematicBreakSequence"),Me(u)?Ue(e,a,"whitespace")(u):a(u))}}const Ft={continuation:{tokenize:TU},exit:RU,name:"list",tokenize:NU},jU={partial:!0,tokenize:IU},CU={partial:!0,tokenize:PU};function NU(e,t,n){const r=this,s=r.events[r.events.length-1];let i=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,o=0;return a;function a(h){const y=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:Om(h)){if(r.containerState.type||(r.containerState.type=y,e.enter(y,{_container:!0})),y==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(gu,n,u)(h):u(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(h)}return n(h)}function c(h){return Om(h)&&++o<10?(e.consume(h),c):(!r.interrupt||o<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):n(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(lf,r.interrupt?n:d,e.attempt(jU,m,f))}
vendor: 5,359 bytes, line 559
559function d(h){return r.containerState.initialBlankLine=!0,i++,m(h)}function f(h){return Me(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),m):n(h)}function m(h){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function TU(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(lf,s,i);function s(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Ue(e,t,"listItemIndent",r.containerState.size+1)(a)}function i(a){return r.containerState.furtherBlankLines||!Me(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(CU,t,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,Ue(e,e.attempt(Ft,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function PU(e,t,n){const r=this;return Ue(e,s,"listItemIndent",r.containerState.size+1);function s(i){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(i):n(i)}}function RU(e){e.exit(this.containerState.type)}function IU(e,t,n){const r=this;return Ue(e,s,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(i){const o=r.events[r.events.length-1];return!Me(i)&&o&&o[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const E0={name:"setextUnderline",resolveTo:AU,tokenize:OU};function AU(e,t){let n=e.length,r,s,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(s=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[s][1].type="setextHeadingText",i?(e.splice(s,0,["enter",o,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end={...e[i][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function OU(e,t,n){const r=this;let s;return i;function i(u){let d=r.events.length,f;for(;d--;)if(r.events[d][1].type!=="lineEnding"&&r.events[d][1].type!=="linePrefix"&&r.events[d][1].type!=="content"){f=r.events[d][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),s=u,o(u)):n(u)}function o(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===s?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),Me(u)?Ue(e,c,"lineSuffix")(u):c(u))}function c(u){return u===null||de(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const MU={tokenize:DU};function DU(e){const t=this,n=e.attempt(lf,r,e.attempt(this.parser.constructs.flowInitial,s,Ue(e,e.attempt(this.parser.constructs.flow,s,e.attempt(U6,s)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function s(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const LU={resolveAll:vC()},$U=yC("string"),zU=yC("text");function yC(e){return{resolveAll:vC(e==="text"?FU:void 0),tokenize:t};function t(n){const r=this,s=this.parser.constructs[e],i=n.attempt(s,o,a);return o;function o(d){return u(d)?i(d):a(d)}function a(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),c}function c(d){return u(d)?(n.exit("data"),i(d)):(n.consume(d),c)}function u(d){if(d===null)return!0;const f=s[d];let m=-1;if(f)for(;++m<f.length;){const h=f[m];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function vC(e){return t;function t(n,r){let s=-1,i;for(;++s<=n.length;)i===void 0?n[s]&&n[s][1].type==="data"&&(i=s,s++):(!n[s]||n[s][1].type!=="data")&&(s!==i+2&&(n[i][1].end=n[s-1][1].end,n.splice(i+2,s-i-2),s=i+2),i=void 0);return e?e(n,r):n}}function FU(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 r=e[n-1][1],s=t.sliceStream(r);let i=s.length,o=-1,a=0,c;for(;i--;){const u=s[i];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)a++,o--;if(o)break;o=-1}else if(u===-2)c=!0,a++;else if(u!==-1){i++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(a=0),a){const u={type:n===e.length||c||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?o:r.start._bufferIndex+o,_index:r.start._index+i,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const UU={42:Ft,43:Ft,45:Ft,48:Ft,49:Ft,50:Ft,51:Ft,52:Ft,53:Ft,54:Ft,55:Ft,56:Ft,57:Ft,62:uC},BU={91:q6},HU={[-2]:Nh,[-1]:Nh,32:Nh},VU={35:X6,42:gu,45:[E0,gu],60:nU,61:E0,95:gu,96:k0,126:k0},WU={38:fC,92:dC},qU={[-5]:Th,[-4]:Th,[-3]:Th,33:wU,38:fC,42:Mm,60:[_6,cU],91:_U,92:[Q6,dC],93:Jy,95:Mm,96:M6},KU={null:[Mm,LU]},GU={null:[42,95]},YU={null:[]},QU=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:GU,contentInitial:BU,disable:YU,document:UU,flow:VU,flowInitial:HU,insideSpan:KU,string:WU,text:qU},Symbol.toStringTag,{value:"Module"}));function ZU(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,c
vendor: 13,157 bytes, lines 559-561
559olumn:n&&n.column||1,offset:n&&n.offset||0};const s={},i=[];let o=[],a=[];const c={attempt:C(j),check:C(k),consume:x,enter:b,exit:_,interrupt:C(k,{interrupt:!0})},u={code:null,containerState:{},defineSkip:g,events:[],now:y,parser:e,previous:null,sliceSerialize:m,sliceStream:h,write:f};let d=t.tokenize.call(u,c);return t.resolveAll&&i.push(t),u;function f(M){return o=bn(o,M),w(),o[o.length-1]!==null?[]:(N(t,0),u.events=Xy(i,u.events,u),u.events)}function m(M,P){return JU(h(M),P)}function h(M){return XU(o,M)}function y(){const{_bufferIndex:M,_index:P,line:L,column:R,offset:z}=r;return{_bufferIndex:M,_index:P,line:L,column:R,offset:z}}function g(M){s[M.line]=M.column,A()}function w(){let M;for(;r._index<o.length;){const P=o[r._index];if(typeof P=="string")for(M=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===M&&r._bufferIndex<P.length;)v(P.charCodeAt(r._bufferIndex));else v(P)}}function v(M){d=d(M)}function x(M){de(M)?(r.line++,r.column=1,r.offset+=M===-3?2:1,A()):M!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=M}function b(M,P){const L=P||{};return L.type=M,L.start=y(),u.events.push(["enter",L,u]),a.push(L),L}function _(M){const P=a.pop();return P.end=y(),u.events.push(["exit",P,u]),P}function j(M,P){N(M,P.from)}function k(M,P){P.restore()}function C(M,P){return L;function L(R,z,U){let V,D,O,E;return Array.isArray(R)?I(R):"tokenize"in R?I([R]):B(R);function B(te){return re;function re(Ce){const he=Ce!==null&&te[Ce],Be=Ce!==null&&te.null,xt=[...Array.isArray(he)?he:he?[he]:[],...Array.isArray(Be)?Be:Be?[Be]:[]];return I(xt)(Ce)}}function I(te){return V=te,D=0,te.length===0?U:S(te[D])}function S(te){return re;function re(Ce){return E=T(),O=te,te.partial||(u.currentConstruct=te),te.name&&u.parser.constructs.disable.null.includes(te.name)?Z():te.tokenize.call(P?Object.assign(Object.create(u),P):u,c,q,Z)(Ce)}}function q(te){return M(O,E),z}function Z(te){return E.restore(),++D<V.length?S(V[D]):U}}}function N(M,P){M.resolveAll&&!i.includes(M)&&i.push(M),M.resolve&&_r(u.events,P,u.events.length-P,M.resolve(u.events.slice(P),u)),M.resolveTo&&(u.events=M.resolveTo(u.events,u))}function T(){const M=y(),P=u.previous,L=u.currentConstruct,R=u.events.length,z=Array.from(a);return{from:R,restore:U};function U(){r=M,u.previous=P,u.currentConstruct=L,u.events.length=R,a=z,A()}}function A(){r.line in s&&r.column<2&&(r.column=s[r.line],r.offset+=s[r.line]-1)}}function XU(e,t){const n=t.start._index,r=t.start._bufferIndex,s=t.end._index,i=t.end._bufferIndex;let o;if(n===s)o=[e[n].slice(r,i)];else{if(o=e.slice(n,s),r>-1){const a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}i>0&&o.push(e[s].slice(0,i))}return o}function JU(e,t){let n=-1;const r=[];let s;for(;++n<e.length;){const i=e[n];let o;if(typeof i=="string")o=i;else switch(i){case-5:{o="\r";break}case-4:{o=` 560`;break}case-3:{o=`\r 561`;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&s)continue;o=" ";break}default:o=String.fromCharCode(i)}s=i===-2,r.push(o)}return r.join("")}function eB(e){const r={constructs:a6([QU,...(e||{}).extensions||[]]),content:s(m6),defined:[],document:s(y6),flow:s(MU),lazy:{},string:s($U),text:s(zU)};return r;function s(i){return o;function o(a){return ZU(r,i,a)}}}function tB(e){for(;!hC(e););return e}const j0=/[\0\t\n\r]/g;function nB(){let e=1,t="",n=!0,r;return s;function s(i,o,a){const c=[];let u,d,f,m,h;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(o||void 0).decode(i)),f=0,t="",n&&(i.charCodeAt(0)===65279&&f++,n=void 0);f<i.length;){if(j0.lastIndex=f,u=j0.exec(i),m=u&&u.index!==void 0?u.index:i.length,h=i.charCodeAt(m),!u){t=i.slice(f);break}if(h===10&&f===m&&r)c.push(-3),r=void 0;else switch(r&&(c.push(-5),r=void 0),f<m&&(c.push(i.slice(f,m)),e+=m-f),h){case 0:{c.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,c.push(-2);e++<d;)c.push(-1);break}case 10:{c.push(-4),e=1;break}default:r=!0,e=1}f=m+1}return a&&(r&&c.push(-5),t&&c.push(t),c.push(null)),c}}const rB=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function sB(e){return e.replace(rB,iB)}function iB(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const s=n.charCodeAt(1),i=s===120||s===88;return cC(n.slice(i?2:1),i?16:10)}return Zy(n)||e}const xC={}.hasOwnProperty;function oB(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),aB(n)(tB(eB(n).document().write(nB()(e,t,!0))))}function aB(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(Nr),autolinkProtocol:T,autolinkEmail:T,atxHeading:i(ge),blockQuote:i(Be),characterEscape:T,characterReference:T,codeFenced:i(xt),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:i(xt,o),codeText:i(Pn,o),codeTextData:T,data:T,codeFlowValue:T,definition:i(Xt),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:i(J),hardBreakEscape:i(Rt),hardBreakTrailing:i(Rt),htmlFlow:i(Cr,o),htmlFlowData:T,htmlText:i(Cr,o),htmlTextData:T,image:i(Qr),label:o,link:i(Nr),listItem:i(ei),listItemValue:m,listOrdered:i(ya,f),listUnordered:i(ya),paragraph:i(hc),reference:S,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:i(ge),strong:i(Tr),thematicBreak:i(_f)},exit:{atxHeading:c(),atxHeadingSequence:j,autolink:c(),autolinkEmail:he,autolinkProtocol:Ce,blockQuote:c(),characterEscapeValue:A,characterReferenceMarkerHexadecimal:Z,characterReferenceMarkerNumeric:Z,characterReferenceValue:te,characterReference:re,codeFenced:c(w),codeFencedFence:g,codeFencedFenceInfo:h,codeFencedFenceMeta:y,codeFlowValue:A,codeIndented:c(v),codeText:c(z),codeTextData:A,data:A,definition:c(),definitionDestinationString:_,definitionLabelString:x,definitionTitleString:b,emphasis:c(),hardBreakEscape:c(P),hardBreakTrailing:c(P),htmlFlow:c(L),htmlFlowData:A,htmlText:c(R),htmlTextData:A,image:c(V),label:O,labelText:D,lineEnding:M,link:c(U),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:q,resourceDestinationString:E,resourceTitleString:B,resource:I,setextHeading:c(N),setextHeadingLineSequence:C,setextHeadingText:k,strong:c(),thematicBreak:c()}};wC(t,(e||{}).mdastExtensions||[]);const n={};return r;function r($){let Q={type:"root",children:[]};const fe={stack:[Q],tokenStack:[],config:t,enter:a,exit:u,buffer:o,resume:d,data:n},Ee=[];let Re=-1;for(;++Re<$.length;)if($[Re][1].type==="listOrdered"||$[Re][1].type==="listUnordered")if($[Re][0]==="enter")Ee.push(Re);else{const Jt=Ee.pop();Re=s($,Jt,Re)}for(Re=-1;++Re<$.length;){const Jt=t[$[Re][0]];xC.call(Jt,$[Re][1].type)&&Jt[$[Re][1].type].call(Object.assign({sliceSerialize:$[Re][2].sliceSerialize},fe),$[Re][1])}if(fe.tokenStack.length>0){const Jt=fe.tokenStack[fe.tokenStack.length-1];(Jt[1]||C0).call(fe,void 0,Jt[0])}for(Q.position={start:os($.length>0?$[0][1].start:{line:1,column:1,offset:0}),end:os($.length>0?$[$.length-2][1].end:{line:1,column:1,offset:0})},Re=-1;++Re<t.transforms.length;)Q=t.transforms[Re](Q)||Q;return Q}function s($,Q,fe){let Ee=Q-1,Re=-1,Jt=!1,tr,en,pn,Zr;for(;++Ee<=fe;){const rt=$[Ee];switch(rt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{rt[0]==="enter"?Re++:Re--,Zr=void 0;break}case"lineEndingBlank":{rt[0]==="enter"&&(tr&&!Zr&&!Re&&!pn&&(pn=Ee),Zr=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Zr=void 0}if(!Re&&rt[0]==="enter"&&rt[1].type==="listItemPrefix"||Re===-1&&rt[0]==="exit"&&(rt[1].type==="listUnordered"||rt[1].type==="listOrdered")){if(tr){let Xr=Ee;for(en=void 0;Xr--;){const Rn=$[Xr];if(Rn[1].type==="lineEnding"||Rn[1].type==="lineEndingBlank"){if(Rn[0]==="exit")continue;en&&($[en][1].type="lineEndingBlank",Jt=!0),Rn[1].type="lineEnding",en=Xr}else if(!(Rn[1].type==="linePrefix"||Rn[1].type==="blockQuotePrefix"||Rn[1].type==="blockQuotePrefixWhitespace"||Rn[1].type==="blockQuoteMarker"||Rn[1].type==="listItemIndent"))break}pn&&(!en||pn<en)&&(tr._spread=!0),tr.end=Object.assign({},en?$[en][1].start:rt[1].end),$.splice(en||Ee,0,["exit",tr,rt[2]]),Ee++,fe++}if(rt[1].type==="listItemPrefix"){const Xr={type:"listItem",_spread:!1,start:Object.assign({},rt[1].start),end:void 0};tr=Xr,$.splice(Ee,0,["enter",Xr,rt[2]]),Ee++,fe++,pn=void 0,Zr=!0}}}return $[Q][1]._spread=Jt,fe}function i($,Q){return fe;function fe(Ee){a.call(this,$(Ee),Ee),Q&&Q.call(this,Ee)}}function o(){this.stack.push({type:"fragment",children:[]})}function a($,Q,fe){this.stack[this.stack.length-1].children.push($),this.stack.push($),this.tokenStack.push([Q,fe||void 0]),$.position={start:os(Q.start),end:void 0}}function c($){return Q;function Q(fe){$&&$.call(this,fe),u.call(this,fe)}}function u($,Q){const fe=this.stack.pop(),Ee=this.tokenStack.pop();if(Ee)Ee[0].type!==$.type&&(Q?Q.call(this,$,Ee[0]):(Ee[1]||C0).call(this,$,Ee[0]));else throw new Error("Cannot close `"+$.type+"` ("+nl({start:$.start,end:$.end})+"): itâs not open");fe.position.end=os($.end)}function d(){return i6(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function m($){if(this.data.expectingFirstListItemValue){const Q=this.stack[this.stack.length-2];Q.start=Number.parseInt(this.sliceSerialize($),10),this.data.expectingFirstListItemValue=void 0}}function h(){const $=this.resume(),Q=this.stack[this.stack.length-1];Q.lang=$}function y(){const $=this.resume(),Q=this.stack[this.stack.length-1];Q.meta=$}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function w(){const $=this.resume(),Q=this.stack[this.stack.length-1];Q.value=$.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function v(){const $=this.resume(),Q=this.stack[this.stack.length-1];Q.value=$.replace(/(\r?\n|\r)$/g,"")}function x($){const Q=this.resume(),fe=this.stack[this.stack.length-1];fe.label=Q,fe.identifier=To(this.sliceSerialize($)).toLowerCase()}function b(){const $=this.resume(),Q=this.stack[this.stack.length-1];Q.title=$}function _(){const $=this.resume(),Q=this.stack[this.stack.length-1];Q.url=$}function j($){const Q=this.stack[this.stack.length-1];if(!Q.depth){const fe=this.sliceSerialize($).length;Q.depth=fe}}function k(){this.data.setextHeadingSlurpLineEnding=!0}function C($){const Q=this.stack[this.stack.length-1];Q.depth=this.sliceSerialize($).codePointAt(0)===61?1:2}function N(){this.data.setextHeadingSlurpLineEnding=void 0}function T($){const fe=this.stack[this.stack.length-1].children;let Ee=fe[fe.length-1];(!Ee||Ee.type!=="text")&&(Ee=bf(),Ee.position={start:os($.start),end:void 0},fe.push(Ee)),this.stack.push(Ee)}function A($){const Q=this.stack.pop();Q.value+=this.sliceSerialize($),Q.position.end=os($.end)}function M($){const Q=this.stack[this.stack.length-1];if(this.data.atHardBreak){const fe=Q.children[Q.children.length-1];fe.position.end=os($.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(Q.type)&&(T.call(this,$),A.call(this,$))}function P(){this.data.atHardBreak=!0}function L(){const $=this.resume(),Q=this.stack[this.stack.length-1];Q.value=$}function R(){const $=this.resume(),Q=this.stack[this.stack.length-1];Q.value=$}function z(){const $=this.resume(),Q=this.stack[this.stack.length-1];Q.value=$}function U(){const $=this.stack[this.stack.length-1];if(this.data.inReference){const Q=this.data.referenceType||"shortcut";$.type+="Reference",$.referenceType=Q,delete $.url,delete $.title}else delete $.identifier,delete $.label;this.data.referenceType=void 0}function V(){const $=this.stack[this.stack.length-1];if(this.data.inReference){const Q=this.data.referenceType||"shortcut";$.type+="Reference",$.referenceType=Q,delete $.url,delete $.title}else delete $.identifier,delete $.label;this.data.referenceType=void 0}function D($){const Q=this.sliceSerialize($),fe=this.stack[this.stack.length-2];fe.label=sB(Q),fe.identifier=To(Q).toLowerCase()}function O(){const $=this.stack[this.stack.length-1],Q=this.resume(),fe=this.stack[this.stack.length-1];if(this.data.inReference=!0,fe.type==="link"){const Ee=$.children;fe.children=Ee}else fe.alt=Q}function E(){const $=this.resume(),Q=this.stack[this.stack.length-1];Q.url=$}function B(){const $=this.resume(),Q=this.stack[this.stack.length-1];Q.title=$}function I(){this.data.inReference=void 0}function S(){this.data.referenceType="collapsed"}function q($){const Q=this.resume(),fe=this.stack[this.stack.length-1];fe.label=Q,fe.identifier=To(this.sliceSerialize($)).toLowerCase(),this.data.referenceType="full"}function Z($){this.data.characterReferenceType=$.type}function te($){const Q=this.sliceSerialize($),fe=this.data.characterReferenceType;let Ee;fe?(Ee=cC(Q,fe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ee=Zy(Q);const Re=this.stack[this.stack.length-1];Re.value+=Ee}function re($){const Q=this.stack.pop();Q.position.end=os($.end)}function Ce($){A.call(this,$);const Q=this.stack[this.stack.length-1];Q.url=this.sliceSerialize($)}function he($){A.call(this,$);const Q=this.stack[this.stack.length-1];Q.url="mailto:"+this.sliceSerialize($)}function Be(){return{type:"blockquote",children:[]}}
vendor: 13,602 bytes, lines 561-566
561function xt(){return{type:"code",lang:null,meta:null,value:""}}function Pn(){return{type:"inlineCode",value:""}}function Xt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function J(){return{type:"emphasis",children:[]}}function ge(){return{type:"heading",depth:0,children:[]}}function Rt(){return{type:"break"}}function Cr(){return{type:"html",value:""}}function Qr(){return{type:"image",title:null,url:"",alt:null}}function Nr(){return{type:"link",title:null,url:"",children:[]}}function ya($){return{type:"list",ordered:$.type==="listOrdered",start:null,spread:$._spread,children:[]}}function ei($){return{type:"listItem",spread:$._spread,checked:null,children:[]}}function hc(){return{type:"paragraph",children:[]}}function Tr(){return{type:"strong",children:[]}}function bf(){return{type:"text",value:""}}function _f(){return{type:"thematicBreak"}}}function os(e){return{line:e.line,column:e.column,offset:e.offset}}function wC(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?wC(e,r):lB(e,r)}}function lB(e,t){let n;for(n in t)if(xC.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function C0(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+nl({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+nl({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+nl({start:t.start,end:t.end})+") is still open")}function cB(e){const t=this;t.parser=n;function n(r){return oB(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function uB(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 dB(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:` 562`}]}function fB(e,t){const n=t.value?t.value+` 563`:"",r={},s=t.lang?t.lang.split(/\s+/):[];s.length>0&&(r.className=["language-"+s[0]]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function hB(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function pB(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function mB(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),s=ma(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let o,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=i+1,a+=1,e.footnoteCounts.set(r,a);const c={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+s,id:n+"fnref-"+s+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,c);const u={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(t,u),e.applyData(t,u)}function gB(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 yB(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function bC(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const s=e.all(t),i=s[0];i&&i.type==="text"?i.value="["+i.value:s.unshift({type:"text",value:"["});const o=s[s.length-1];return o&&o.type==="text"?o.value+=r:s.push({type:"text",value:r}),s}function vB(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return bC(e,t);const s={src:ma(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(s.title=r.title);const i={type:"element",tagName:"img",properties:s,children:[]};return e.patch(t,i),e.applyData(t,i)}function xB(e,t){const n={src:ma(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 r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function wB(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function bB(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return bC(e,t);const s={href:ma(r.url||"")};r.title!==null&&r.title!==void 0&&(s.title=r.title);const i={type:"element",tagName:"a",properties:s,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function _B(e,t){const n={href:ma(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function kB(e,t,n){const r=e.all(t),s=n?SB(n):_C(t),i={},o=[];if(typeof t.checked=="boolean"){const d=r[0];let f;d&&d.type==="element"&&d.tagName==="p"?f=d:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const d=r[a];(s||a!==0||d.type!=="element"||d.tagName!=="p")&&o.push({type:"text",value:` 564`}),d.type==="element"&&d.tagName==="p"&&!s?o.push(...d.children):o.push(d)}const c=r[r.length-1];c&&(s||c.type!=="element"||c.tagName!=="p")&&o.push({type:"text",value:` 565`});const u={type:"element",tagName:"li",properties:i,children:o};return e.patch(t,u),e.applyData(t,u)}function SB(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=_C(n[r])}return t}function _C(e){const t=e.spread;return t??e.children.length>1}function EB(e,t){const n={},r=e.all(t);let s=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++s<r.length;){const o=r[s];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)}function jB(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function CB(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function NB(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function TB(e,t){const n=e.all(t),r=n.shift(),s=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],o),s.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=Ky(t.children[1]),c=nC(t.children[t.children.length-1]);a&&c&&(o.position={start:a,end:c}),s.push(o)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(s,!0)};return e.patch(t,i),e.applyData(t,i)}function PB(e,t,n){const r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,a=o?o.length:t.children.length;let c=-1;const u=[];for(;++c<a;){const f=t.children[c],m={},h=o?o[c]:void 0;h&&(m.align=h);let y={type:"element",tagName:i,properties:m,children:[]};f&&(y.children=e.all(f),e.patch(f,y),y=e.applyData(f,y)),u.push(y)}const d={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,d),e.applyData(t,d)}function RB(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const N0=9,T0=32;function IB(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),s=0;const i=[];for(;r;)i.push(P0(t.slice(s,r.index),s>0,!0),r[0]),s=r.index+r[0].length,r=n.exec(t);return i.push(P0(t.slice(s),s>0,!1)),i.join("")}function P0(e,t,n){let r=0,s=e.length;if(t){let i=e.codePointAt(r);for(;i===N0||i===T0;)r++,i=e.codePointAt(r)}if(n){let i=e.codePointAt(s-1);for(;i===N0||i===T0;)s--,i=e.codePointAt(s-1)}return s>r?e.slice(r,s):""}function AB(e,t){const n={type:"text",value:IB(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function OB(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const MB={blockquote:uB,break:dB,code:fB,delete:hB,emphasis:pB,footnoteReference:mB,heading:gB,html:yB,imageReference:vB,image:xB,inlineCode:wB,linkReference:bB,link:_B,listItem:kB,list:EB,paragraph:jB,root:CB,strong:NB,table:TB,tableCell:RB,tableRow:PB,text:AB,thematicBreak:OB,toml:Wc,yaml:Wc,definition:Wc,footnoteDefinition:Wc};function Wc(){}const kC=-1,cf=0,sl=1,sd=2,ev=3,tv=4,nv=5,rv=6,SC=7,EC=8,R0=typeof self=="object"?self:globalThis,DB=(e,t)=>{const n=(s,i)=>(e.set(i,s),s),r=s=>{if(e.has(s))return e.get(s);const[i,o]=t[s];switch(i){case cf:case kC:return n(o,s);case sl:{const a=n([],s);for(const c of o)a.push(r(c));return a}case sd:{const a=n({},s);for(const[c,u]of o)a[r(c)]=r(u);return a}case ev:return n(new Date(o),s);case tv:{const{source:a,flags:c}=o;return n(new RegExp(a,c),s)}case nv:{const a=n(new Map,s);for(const[c,u]of o)a.set(r(c),r(u));return a}case rv:{const a=n(new Set,s);for(const c of o)a.add(r(c));return a}case SC:{const{name:a,message:c}=o;return n(new R0[a](c),s)}case EC:return n(BigInt(o),s);case"BigInt":return n(Object(BigInt(o)),s);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:a}=new Uint8Array(o);return n(new DataView(a),o)}}return n(new R0[i](o),s)};return r},I0=e=>DB(new Map,e)(0),Xi="",{toString:LB}={},{keys:$B}=Object,Aa=e=>{const t=typeof e;if(t!=="object"||!e)return[cf,t];const n=LB.call(e).slice(8,-1);switch(n){case"Array":return[sl,Xi];case"Object":return[sd,Xi];case"Date":return[ev,Xi];case"RegExp":return[tv,Xi];case"Map":return[nv,Xi];case"Set":return[rv,Xi];case"DataView":return[sl,n]}return n.includes("Array")?[sl,n]:n.includes("Error")?[SC,n]:[sd,n]},qc=([e,t])=>e===cf&&(t==="function"||t==="symbol"),zB=(e,t,n,r)=>{const s=(o,a)=>{const c=r.push(o)-1;return n.set(a,c),c},i=o=>{if(n.has(o))return n.get(o);let[a,c]=Aa(o);switch(a){case cf:{let d=o;switch(c){case"bigint":a=EC,d=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+c);d=null;break;case"undefined":return s([kC],o)}return s([a,d],o)}case sl:{if(c){let m=o;return c==="DataView"?m=new Uint8Array(o.buffer):c==="ArrayBuffer"&&(m=new Uint8Array(o)),s([c,[...m]],o)}const d=[],f=s([a,d],o);for(const m of o)d.push(i(m));return f}case sd:{if(c)switch(c){case"BigInt":return s([c,o.toString()],o);case"Boolean":case"Number":case"String":return s([c,o.valueOf()],o)}if(t&&"toJSON"in o)return i(o.toJSON());const d=[],f=s([a,d],o);for(const m of $B(o))(e||!qc(Aa(o[m])))&&d.push([i(m),i(o[m])]);return f}case ev:return s([a,o.toISOString()],o);case tv:{const{source:d,flags:f}=o;return s([a,{source:d,flags:f}],o)}case nv:{const d=[],f=s([a,d],o);for(const[m,h]of o)(e||!(qc(Aa(m))||qc(Aa(h))))&&d.push([i(m),i(h)]);return f}case rv:{const d=[],f=s([a,d],o);for(const m of o)(e||!qc(Aa(m)))&&d.push(i(m));return f}}const{message:u}=o;return s([a,{name:c,message:u}],o)};return i},A0=(e,{json:t,lossy:n}={})=>{const r=[];return zB(!(t||n),!!t,new Map,r)(e),r},id=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?I0(A0(e,t)):structuredClone(e):(e,t)=>I0(A0(e,t));function FB(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 UB(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function BB(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||FB,r=e.options.footnoteBackLabel||UB,s=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let c=-1;for(;++c<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[c]);if(!u)continue;const d=e.all(u),f=String(u.identifier).toUpperCase(),m=ma(f.toLowerCase());let h=0;const y=[],g=e.footnoteCounts.get(f);for(;g!==void 0&&++h<=g;){y.length>0&&y.push({type:"text",value:" "});let x=typeof n=="string"?n:n(c,h);typeof x=="string"&&(x={type:"text",value:x}),y.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+m+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(c,h),className:["data-footnote-backref"]},children:Array.isArray(x)?x:[x]})}const w=d[d.length-1];if(w&&w.type==="element"&&w.tagName==="p"){const x=w.children[w.children.length-1];x&&x.type==="text"?x.value+=" ":w.children.push({type:"text",value:" "}),w.children.push(...y)}else d.push(...y);const v={type:"element",tagName:"li",properties:{id:t+"fn-"+m},children:e.wrap(d,!0)};e.patch(u,v),a.push(v)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...id(o),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:` 566`},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)}
vendor: 14,943 bytes, lines 566-571
566,{type:"text",value:` 567`}]}}const jC=function(e){if(e==null)return qB;if(typeof e=="function")return uf(e);if(typeof e=="object")return Array.isArray(e)?HB(e):VB(e);if(typeof e=="string")return WB(e);throw new Error("Expected function, string, or object as test")};function HB(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=jC(e[n]);return uf(r);function r(...s){let i=-1;for(;++i<t.length;)if(t[i].apply(this,s))return!0;return!1}}function VB(e){const t=e;return uf(n);function n(r){const s=r;let i;for(i in e)if(s[i]!==t[i])return!1;return!0}}function WB(e){return uf(t);function t(n){return n&&n.type===e}}function uf(e){return t;function t(n,r,s){return!!(KB(n)&&e.call(this,n,typeof r=="number"?r:void 0,s||void 0))}}function qB(){return!0}function KB(e){return e!==null&&typeof e=="object"&&"type"in e}const CC=[],GB=!0,O0=!1,YB="skip";function QB(e,t,n,r){let s;typeof t=="function"&&typeof n!="function"?(r=n,n=t):s=t;const i=jC(s),o=r?-1:1;a(e,void 0,[])();function a(c,u,d){const f=c&&typeof c=="object"?c:{};if(typeof f.type=="string"){const h=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(m,"name",{value:"node ("+(c.type+(h?"<"+h+">":""))+")"})}return m;function m(){let h=CC,y,g,w;if((!t||i(c,u,d[d.length-1]||void 0))&&(h=ZB(n(c,d)),h[0]===O0))return h;if("children"in c&&c.children){const v=c;if(v.children&&h[0]!==YB)for(g=(r?v.children.length:-1)+o,w=d.concat(v);g>-1&&g<v.children.length;){const x=v.children[g];if(y=a(x,g,w)(),y[0]===O0)return y;g=typeof y[1]=="number"?y[1]:g+o}}return h}}}function ZB(e){return Array.isArray(e)?e:typeof e=="number"?[GB,e]:e==null?CC:[e]}function NC(e,t,n,r){let s,i,o;typeof t=="function"&&typeof n!="function"?(i=void 0,o=t,s=n):(i=t,o=n,s=r),QB(e,i,a,s);function a(c,u){const d=u[u.length-1],f=d?d.children.indexOf(c):void 0;return o(c,f,d)}}const Dm={}.hasOwnProperty,XB={};function JB(e,t){const n=t||XB,r=new Map,s=new Map,i=new Map,o={...MB,...n.handlers},a={all:u,applyData:t8,definitionById:r,footnoteById:s,footnoteCounts:i,footnoteOrder:[],handlers:o,one:c,options:n,patch:e8,wrap:r8};return NC(e,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const f=d.type==="definition"?r:s,m=String(d.identifier).toUpperCase();f.has(m)||f.set(m,d)}}),a;function c(d,f){const m=d.type,h=a.handlers[m];if(Dm.call(a.handlers,m)&&h)return h(a,d,f);if(a.options.passThrough&&a.options.passThrough.includes(m)){if("children"in d){const{children:g,...w}=d,v=id(w);return v.children=a.all(d),v}return id(d)}return(a.options.unknownHandler||n8)(a,d,f)}function u(d){const f=[];if("children"in d){const m=d.children;let h=-1;for(;++h<m.length;){const y=a.one(m[h],d);if(y){if(h&&m[h-1].type==="break"&&(!Array.isArray(y)&&y.type==="text"&&(y.value=M0(y.value)),!Array.isArray(y)&&y.type==="element")){const g=y.children[0];g&&g.type==="text"&&(g.value=M0(g.value))}Array.isArray(y)?f.push(...y):f.push(y)}}}return f}}function e8(e,t){e.position&&(t.position=LF(e))}function t8(e,t){let n=t;if(e&&e.data){const r=e.data.hName,s=e.data.hChildren,i=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const o="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:o}}n.type==="element"&&i&&Object.assign(n.properties,id(i)),"children"in n&&n.children&&s!==null&&s!==void 0&&(n.children=s)}return n}function n8(e,t){const n=t.data||{},r="value"in t&&!(Dm.call(n,"hProperties")||Dm.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function r8(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:` 568`});++r<e.length;)r&&n.push({type:"text",value:` 569`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:` 570`}),n}function M0(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function D0(e,t){const n=JB(e,t),r=n.one(e,void 0),s=BB(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return s&&i.children.push({type:"text",value:` 571`},s),i}function s8(e,t){return e&&"run"in e?async function(n,r){const s=D0(n,{file:r,...t});await e.run(s,r)}:function(n,r){return D0(n,{file:r,...e||t})}}function L0(e){if(e)throw e}var yu=Object.prototype.hasOwnProperty,TC=Object.prototype.toString,$0=Object.defineProperty,z0=Object.getOwnPropertyDescriptor,F0=function(t){return typeof Array.isArray=="function"?Array.isArray(t):TC.call(t)==="[object Array]"},U0=function(t){if(!t||TC.call(t)!=="[object Object]")return!1;var n=yu.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&yu.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var s;for(s in t);return typeof s>"u"||yu.call(t,s)},B0=function(t,n){$0&&n.name==="__proto__"?$0(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},H0=function(t,n){if(n==="__proto__")if(yu.call(t,n)){if(z0)return z0(t,n).value}else return;return t[n]},i8=function e(){var t,n,r,s,i,o,a=arguments[0],c=1,u=arguments.length,d=!1;for(typeof a=="boolean"&&(d=a,a=arguments[1]||{},c=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});c<u;++c)if(t=arguments[c],t!=null)for(n in t)r=H0(a,n),s=H0(t,n),a!==s&&(d&&s&&(U0(s)||(i=F0(s)))?(i?(i=!1,o=r&&F0(r)?r:[]):o=r&&U0(r)?r:{},B0(a,{name:n,newValue:e(d,o,s)})):typeof s<"u"&&B0(a,{name:n,newValue:s}));return a};const Ph=Oi(i8);function Lm(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 o8(){const e=[],t={run:n,use:r};return t;function n(...s){let i=-1;const o=s.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);a(null,...s);function a(c,...u){const d=e[++i];let f=-1;if(c){o(c);return}for(;++f<s.length;)(u[f]===null||u[f]===void 0)&&(u[f]=s[f]);s=u,d?a8(d,a)(...u):o(null,...u)}}function r(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return e.push(s),t}}function a8(e,t){let n;return r;function r(...o){const a=e.length>o.length;let c;a&&o.push(s);try{c=e.apply(this,o)}catch(u){const d=u;if(a&&n)throw d;return s(d)}a||(c&&c.then&&typeof c.then=="function"?c.then(i,s):c instanceof Error?s(c):i(c))}function s(o,...a){n||(n=!0,t(o,...a))}function i(o){s(null,o)}}const lr={basename:l8,dirname:c8,extname:u8,join:d8,sep:"/"};function l8(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');lc(e);let n=0,r=-1,s=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;s--;)if(e.codePointAt(s)===47){if(i){n=s+1;break}}else r<0&&(i=!0,r=s+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,a=t.length-1;for(;s--;)if(e.codePointAt(s)===47){if(i){n=s+1;break}}else o<0&&(i=!0,o=s+1),a>-1&&(e.codePointAt(s)===t.codePointAt(a--)?a<0&&(r=s):(a=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function c8(e){if(lc(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function u8(e){lc(e);let t=e.length,n=-1,r=0,s=-1,i=0,o;for(;t--;){const a=e.codePointAt(t);if(a===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),a===46?s<0?s=t:i!==1&&(i=1):s>-1&&(i=-1)}return s<0||n<0||i===0||i===1&&s===n-1&&s===r+1?"":e.slice(s,n)}function d8(...e){let t=-1,n;for(;++t<e.length;)lc(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":f8(n)}function f8(e){lc(e);const t=e.codePointAt(0)===47;let n=h8(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function h8(e,t){let n="",r=0,s=-1,i=0,o=-1,a,c;for(;++o<=e.length;){if(o<e.length)a=e.codePointAt(o);else{if(a===47)break;a=47}if(a===47){if(!(s===o-1||i===1))if(s!==o-1&&i===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf("/"),c!==n.length-1){c<0?(n="",r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf("/")),s=o,i=0;continue}}else if(n.length>0){n="",r=0,s=o,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(s+1,o):n=e.slice(s+1,o),r=o-s-1;s=o,i=0}else a===46&&i>-1?i++:i=-1}return n}function lc(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const p8={cwd:m8};function m8(){return"/"}function $m(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function g8(e){if(typeof e=="string")e=new URL(e);else if(!$m(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 y8(e)}function y8(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===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 Rh=["history","path","basename","stem","extname","dirname"];class PC{constructor(t){let n;t?$m(t)?n={path:t}:typeof t=="string"||v8(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":p8.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Rh.length;){const i=Rh[r];i in n&&n[i]!==void 0&&n[i]!==null&&(this[i]=i==="history"?[...n[i]]:n[i])}let s;for(s in n)Rh.includes(s)||(this[s]=n[s])}get basename(){return typeof this.path=="string"?lr.basename(this.path):void 0}set basename(t){Ah(t,"basename"),Ih(t,"basename"),this.path=lr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?lr.dirname(this.path):void 0}set dirname(t){V0(this.basename,"dirname"),this.path=lr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?lr.extname(this.path):void 0}set extname(t){if(Ih(t,"extname"),V0(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=lr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){$m(t)&&(t=g8(t)),Ah(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?lr.basename(this.path,this.extname):void 0}set stem(t){Ah(t,"stem"),Ih(t,"stem"),this.path=lr.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const s=this.message(t,n,r);throw s.fatal=!0,s}info(t,n,r){const s=this.message(t,n,r);return s.fatal=void 0,s}message(t,n,r){const s=new Pt(t,n,r);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 Ih(e,t){if(e&&e.includes(lr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+lr.sep+"`")}function Ah(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function V0(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function v8(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const x8=function(e){const r=this.constructor.prototype,s=r[e],i=function(){return s.apply(i,arguments)};return Object.setPrototypeOf(i,r),i},w8={}.hasOwnProperty;class sv extends x8{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=o8()}copy(){const t=new sv;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Ph(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Dh("data",this.frozen),this.namespace[t]=n,this):w8.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Dh("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,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const s=n.call(t,...r);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Kc(t),r=this.parser||this.Parser;return Oh("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Oh("process",this.parser||this.Parser),Mh("process",this.compiler||this.Compiler),n?s(void 0,n):new Promise(s);function s(i,o){const a=Kc(t),c=r.parse(a);r.run(c,a,function(d,f,m){if(d||!f||!m)return u(d);const h=f,y=r.stringify(h,m);k8(y)?m.value=y:m.result=y,u(d,m)});function u(d,f){d||!f?o(d):i?i(f):n(void 0,f)}}}processSync(t){let n=!1,r;return this.freeze(),Oh("processSync",this.parser||this.Parser),Mh("processSync",this.compiler||this.Compiler),this.process(t,s),q0("processSync","process",n),r;function s(i,o){n=!0,L0(i),r=o}}run(t,n,r){W0(t),this.freeze();const s=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?i(void 0,r):new Promise(i);function i(o,a){const c=Kc(n);s.run(t,c,u);function u(d,f,m){const h=f||t;d?a(d):o?o(h):r(void 0,h,m)}}}runSync(t,n){let r=!1,s;return this.run(t,n,i),q0("runSync","run",r),s;function i(o,a){L0(o),s=a,r=!0}}stringify(t,n){this.freeze();const r=Kc(n),s=this.compiler||this.Compiler;return Mh("stringify",s),W0(t),s(t,r)}use(t,...n){const r=this.attachers,s=this.namespace;if(Dh("use",this.frozen),t!=null)if(typeof t=="function")c(t,n);else if(typeof t=="object")Array.isArray(t)?a(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function i(u){if(typeof u=="function")c(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[d,...f]=u;c(d,f)}else o(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function o(u){if(!("plugins"in u)&&!("settings"in u))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");a(u.plugins),u.settings&&(s.settings=Ph(!0,s.settings,u.settings))}function a(u){let d=-1;if(u!=null)if(Array.isArray(u))for(;++d<u.length;){const f=u[d];i(f)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function c(u,d){let f=-1,m=-1;for(;++f<r.length;)if(r[f][0]===u){m=f;break}if(m===-1)r.push([u,...d]);else if(d.length>0){let[h,...y]=d;const g=r[m][1];Lm(g)&&Lm(h)&&(h=Ph(!0,g,h)),r[m]=[u,h,...y]}}}}
vendor: 4,769 bytes, line 571
571const b8=new sv().freeze();function Oh(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Mh(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Dh(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 W0(e){if(!Lm(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function q0(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Kc(e){return _8(e)?e:new PC(e)}function _8(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function k8(e){return typeof e=="string"||S8(e)}function S8(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const E8="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",K0=[],G0={allowDangerousHtml:!0},j8=/^(https?|ircs?|mailto|xmpp)$/i,C8=[{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:"className",id:"remove-classname"},{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 N8(e){const t=T8(e),n=P8(e);return R8(t.runSync(t.parse(n),n),e)}function T8(e){const t=e.rehypePlugins||K0,n=e.remarkPlugins||K0,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...G0}:G0;return b8().use(cB).use(n).use(s8,r).use(t)}function P8(e){const t=e.children||"",n=new PC;return typeof t=="string"&&(n.value=t),n}function R8(e,t){const n=t.allowedElements,r=t.allowElement,s=t.components,i=t.disallowedElements,o=t.skipHtml,a=t.unwrapDisallowed,c=t.urlTransform||I8;for(const d of C8)Object.hasOwn(t,d.from)&&(""+d.from+(d.to?"use `"+d.to+"` instead":"remove it")+E8+d.id,void 0);return NC(e,u),BF(e,{Fragment:l.Fragment,components:s,ignoreInvalidStyle:!0,jsx:l.jsx,jsxs:l.jsxs,passKeys:!0,passNode:!0});function u(d,f,m){if(d.type==="raw"&&m&&typeof f=="number")return o?m.children.splice(f,1):m.children[f]={type:"text",value:d.value},f;if(d.type==="element"){let h;for(h in Ch)if(Object.hasOwn(Ch,h)&&Object.hasOwn(d.properties,h)){const y=d.properties[h],g=Ch[h];(g===null||g.includes(d.tagName))&&(d.properties[h]=c(String(y||""),h,d))}}if(d.type==="element"){let h=n?!n.includes(d.tagName):i?i.includes(d.tagName):!1;if(!h&&r&&typeof f=="number"&&(h=!r(d,f,m)),h&&m&&typeof f=="number")return a&&d.children?m.children.splice(f,1,...d.children):m.children.splice(f,1),f}}}function I8(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),s=e.indexOf("/");return t===-1||s!==-1&&t>s||n!==-1&&t>n||r!==-1&&t>r||j8.test(e.slice(0,t))?e:""}const Lh="/assets/wilbur-the-replyhound-BXOYINkr.jpeg",A8="https://zjksbbrwtkfqfkczuyfm.supabase.co/functions/v1/wilbur-chat",O8=["/","/auth","/trial","/trial-signup","/welcome","/features","/pricing","/about","/api","/terms","/privacy","/data-retention-policy","/incident-response-policy","/infrastructure-policy","/security-compliance","/demo"],Y0={"event-pages":["How do I create an event?","How do event registrations work?","How do I share an event landing page?","How do events feed into my pipeline?"],inbox:["How does the unified inbox work?","What is AI-suggested response?","How do I label conversations?","How do I set a follow-up reminder?"],campaigns:["How do I create a campaign?","What are multi-step sequences?","How do I schedule campaign emails?","How do I track campaign performance?"],prospects:["How does AI contact scoring work?","How do I enrich a prospect?","How do I import prospects?","How do I use territory mapping?"],deals:["What are the deal stages?","How do I move a deal forward?","How does pipeline forecasting work?","How do I add a new deal?"],organizations:["How do I track an organization?","What is the org health score?","How do I see all c
571ontacts at an org?","How does org-level intelligence work?"],contacts:["How do I manage my connections?","How do mutual connections work?","How do I upload my network?","How do I get warm introductions?"],analytics:["What metrics are tracked?","How do I read the email performance chart?","What is open rate vs click rate?","How do I improve my reply rates?"],alerts:["What types of alerts are available?","How do I configure alert preferences?","What sources are monitored?","How do I act on an alert?"],"web-intel":["What is web intelligence?","How do I set up monitoring?","What sources are scanned?","How do I act on an alert?"],"knowledge-base":["What documents should I upload?","How does AI use my knowledge base?","How do I organize documents?","How does RAG personalization work?"],playbooks:["What is a playbook?","How do I create a playbook?","What are playbook steps?","How do I assign a playbook to a campaign?"],"battle-cards":["What are battle cards?","How do I create a battle card?","How are battle cards used in outreach?","How do I compare competitors?"],"k12-intel":["What K-12 data is available?","How do I find school districts?","How do I use budget data?","What are K-12 intent signals?"],"sales-tools":["How does the ROI calculator work?","How do I share the calculator?","What competitors are compared?","How do I customize the calculation?"]},Q0={"/dashboard":["How do I set up email tracking?","What's included in my plan?","How do proposals work?","How do I use Scout?"],"/profile":["How do I set up my email signature?","How do I switch between brands?","What are product keywords used for?","How do I change my password?"],"/settings":["How do I configure notifications?","How do I connect my CRM?","How do email tracking settings work?","How do I manage my team?"],"/playbooks":["What is a playbook?","How do I create a playbook?","What are playbook steps?","How do I assign a playbook to a campaign?"],"/proposals":["How do I create a proposal?","How do I share a proposal link?","Can I add a budget worksheet?","How do proposal analytics work?"],"/analytics":["What metrics are tracked?","How do I read the email performance chart?","What is open rate vs click rate?","How do I improve my reply rates?"],"/sales-cycle":["What are the deal stages?","How do I move a deal forward?","How does pipeline forecasting work?","How do I add a new deal?"],"/integrations":["Which CRMs can I connect?","How do I set up the Gmail integration?","How does calendar sync work?","How do I connect Zoom?"],"/competitors":["How does competitor tracking work?","What alerts will I get?","How do I add a competitor?","How are battlecards used?"],"/web-intelligence":["What is web intelligence?","How do I set up monitoring?","What sources are scanned?","How do I act on an alert?"],"/contact-finder":["How does Scout find contacts?","What data does Scout provide?","How do I export contacts?","How do I enrich a contact?"],"/mail-merge":["How do I send a mail merge?","What merge tags are available?","How do I personalize emails?","How do I schedule a campaign?"],"/email-optimization":["How does AI optimize my emails?","What does the subject line tester do?","How do I improve deliverability?","What is send-time optimization?"],"/mutual-connections":["How do mutual connections work?","How do I get warm introductions?","How is my network analyzed?","How do I upload my connections?"],"/intent-signals":["What are intent signals?","How is the intent score calculated?","How do I prioritize hot leads?","What sources feed intent data?"],"/network-map":["How does the network map work?","How do I find paths to prospects?","What does relationship strength mean?","How do I expand my network?"],"/sales-coaching":["How does AI coaching work?","What is the CPET framework?","How do I review a call recording?","How do I improve my pitch?"],"/zoom-meeting-prep":["How do I prep for a Zoom meeting?","What research is auto-generated?","How do I connect my calendar?","What are pre-call insights?"],"/k12-intelligence":["What K-12 data is available?","How do I find school districts?","How do I use budget data?","What are K-12 intent signals?"],"/k12-legislative-tracker":["How does legislative tracking work?","What states are covered?","How do I set up alerts?","How do I use legislation in outreach?"],"/marketing-content":["How does AI content generation work?","What types of content can I create?","How do I customize the tone?","How do I repurpose content?"],"/ai-agents":["What are AI agents?","How do I configure an agent?","What tasks can agents automate?","How do I review agent results?"],"/account-360":["What is Account 360?","How do I see all touchpoints?","How does org mapping work?","How do I track stakeholders?"],"/event-contacts":["How do I manage event contacts?","How do I follow up after an event?","How do I import event attendees?","How do I tag contacts by event?"],"/conference-cheat-sheet":["What is a conference cheat sheet?","How do I prep for a conference?","How do I find attendees to target?","How do I plan my booth visits?"],"/my-qr":["How do I share my QR code?","How do I customize my digital card?","How do I track who scans my QR?","What info is on my digital card?"],"/chrome-extension":["What does the Chrome extension do?","How do I install the extension?","How do I use it on LinkedIn?","How does email tracking work in Gmail?"]},M8=["How do I set up email tracking?","What's included in my plan?","How do proposals work?","How do I use Scout?"];function D8(){var N;const e=Yr(),[t,n]=p.useState(!1),[r,s]=p.useState([]),[i,o]=p.useState(""),[a,c]=p.useState(!1),[u,d]=p.useState(!1),[f,m]=p.useState(null),[h,y]=p.useState(null),g=p.useRef(null);p.useEffect(()=>{const T=()=>{const M=sessionStorage.getItem("wilbur_active_tab");y(M)};T();const A=setInterval(T,500);return()=>clearInterval(A)},[e.pathname]);const w=O8.some(T=>e.pathname===T)||e.pathname.startsWith("/events/")||e.pathname.startsWith("/card/")||e.pathname.startsWith("/p/")||e.pathname.startsWith("/prop
571osal/share/")||e.pathname.startsWith("/roi"),v="/"+e.pathname.split("/")[1],x=e.pathname==="/dashboard"&&h&&Y0[h]?Y0[h]:Q0[e.pathname]||Q0[v]||M8;p.useEffect(()=>{if(w)return;(async()=>{const{data:{session:A}}=await ce.auth.getSession();if(!(A!=null&&A.user)){m(!0);return}const{data:M}=await ce.from("profiles").select("show_wilbur").eq("id",A.user.id).maybeSingle();m((M==null?void 0:M.show_wilbur)===!1)})()},[w]),p.useEffect(()=>{sessionStorage.getItem("wilbur_dismissed")==="true"&&d(!0)},[]),p.useEffect(()=>{t||s([])},[e.pathname]),p.useEffect(()=>{g.current&&(g.current.scrollTop=g.current.scrollHeight)},[r]);const b=p.useCallback(async T=>{var M,P,L,R;c(!0);let A="";try{const z=await fetch(A8,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Inpqa3NiYnJ3dGtmcWZrY3p1eWZtIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTk0MTQyODgsImV4cCI6MjA3NDk5MDI4OH0.rMN6xaBNrynnXHmc5d_2Vzw_olzRK2nPVx7X1awQkgo"},body:JSON.stringify({messages:T})});if(!z.ok){const E=await z.json().catch(()=>({error:"Request failed"})),B=E.rateLimited?`ð You've reached your daily Wilbur limit (${E.limit} messages). Come back tomorrow, or upgrade your plan for more!`:E.error||"Something went wrong. Try again! ð";s(I=>[...I,{role:"assistant",content:B}]),c(!1);return}const U=(M=z.body)==null?void 0:M.getReader();if(!U)throw new Error("No response body");const V=new TextDecoder;let D="";const O=E=>{A+=E,s(B=>{const I=B[B.length-1];return(I==null?void 0:I.role)==="assistant"?B.map((S,q)=>q===B.length-1?{...S,content:A}:S):[...B,{role:"assistant",content:A}]})};for(;;){const{done:E,value:B}=await U.read();if(E)break;D+=V.decode(B,{stream:!0});let I;for(;(I=D.indexOf(` 572`))!==-1;){let S=D.slice(0,I);if(D=D.slice(I+1),S.endsWith("\r")&&(S=S.slice(0,-1)),!S.startsWith("data: "))continue;const q=S.slice(6).trim();if(q==="[DONE]")break;try{const te=(R=(L=(P=JSON.parse(q).choices)==null?void 0:P[0])==null?void 0:L.delta)==null?void 0:R.content;te&&O(te)}catch{}}}}catch(z){console.error("Wilbur chat error:",z),s(U=>[...U,{role:"assistant",content:"Woof! Something went wrong. Please try again. ð"}])}finally{c(!1)}},[]),_=async T=>{const A=T||i.trim();if(!A||a)return;const M={role:"user",content:A},P=[...r,M];s(P),o(""),await b(P)},j=()=>{d(!0),sessionStorage.setItem("wilbur_dismissed","true"),n(!1)},k=async()=>{m(!0),n(!1);const{data:{session:T}}=await ce.auth.getSession();T!=null&&T.user&&await ce.from("profiles").update({show_wilbur:!1}).eq("id",T.user.id)},C=()=>{d(!1),sessionStorage.removeItem("wilbur_dismissed")};return w||f===null||f?null:u?l.jsx("button",{onClick:C,className:"fixed bottom-6 right-6 z-50 w-8 h-8 rounded-full overflow-hidden shadow-md hover:shadow-lg transition-all hover:scale-110 opacity-40 hover:opacity-100 border-2 border-border",title:"Bring Wilbur back",children:l.jsx("img",{src:Lh,alt:"Wilbur the help agent mascot",className:"w-full h-full object-cover"})}):t?l.jsxs("div",{className:"fixed bottom-6 right-6 z-50 w-[380px] h-[520px] bg-background border border-border rounded-2xl shadow-2xl flex flex-col overflow-hidden",children:[l.jsxs("div",{className:"p-4 border-b bg-primary text-primary-foreground flex items-center justify-between rounded-t-2xl",children:[l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx("img",{src:Lh,alt:"Wilbur the help agent mascot",className:"w-8 h-8 rounded-full object-cover border-2 border-primary-foreground/30"}),l.jsxs("div",{children:[l.jsx("h3",{className:"font-semibold text-sm",children:"Wilbur"}),l.jsx("p",{className:"text-[10px] opacity-80",children:"Your ReplyHounds guide ð"})]})]}),l.jsxs("div",{className:"flex items-center gap-1",children:[l.jsxs(By,{children:[l.jsx(Hy,{asChild:!0,children:l.jsx(we,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0 text-primary-foreground hover:bg-primary-foreground/20",children:l.jsx(VI,{className:"w-4 h-4"})})}),l.jsxs(of,{align:"end",className:"w-48",children:[l.jsxs($l,{onClick:j,children:[l.jsx(ln,{className:"w-3.5 h-3.5 mr-2"}),"Hide for now"]}),l.jsxs($l,{onClick:k,className:"text-destructive focus:text-destructive",children:[l.jsx(KI,{className:"w-3.5 h-3.5 mr-2"}),"Don't show again"]})]})]}),l.jsx(we,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0 text-primary-foreground hover:bg-primary-foreground
572/20",onClick:()=>n(!1),children:l.jsx(ln,{className:"w-4 h-4"})})]})]}),l.jsxs(Ml,{className:"flex-1 p-4",ref:g,children:[r.length===0&&l.jsxs("div",{className:"space-y-4",children:[l.jsxs("div",{className:"bg-muted rounded-lg p-3 space-y-2",children:[l.jsxs("p",{className:"text-sm",children:["Hey there! ð I'm ",l.jsx("strong",{children:"Wilbur"}),", your ReplyHounds guide. Ask me anything about features, how-tos, or best practices!"]}),l.jsx("p",{className:"text-[10px] text-muted-foreground italic",children:"Want me to take a nap? Click the â® next to the â above."})]}),l.jsx("div",{className:"grid gap-2",children:x.map((T,A)=>l.jsx("button",{onClick:()=>_(T),className:"text-left text-xs p-2 rounded-lg border border-border hover:bg-muted/50 transition-colors",children:T},A))})]}),l.jsxs("div",{className:"space-y-3",children:[r.map((T,A)=>l.jsx("div",{className:`flex ${T.role==="user"?"justify-end":"justify-start"}`,children:l.jsx("div",{className:`max-w-[85%] rounded-lg p-3 text-sm ${T.role==="user"?"bg-primary text-primary-foreground":"bg-muted"}`,children:T.role==="assistant"?l.jsx("div",{className:"prose prose-sm max-w-none [&_ul]:list-disc [&_ul]:pl-4 [&_ol]:list-decimal [&_ol]:pl-4 [&_p]:my-1 [&_li]:my-0.5",children:l.jsx(N8,{children:T.content})}):l.jsx("p",{className:"whitespace-pre-wrap",children:T.content})})},A)),a&&((N=r[r.length-1])==null?void 0:N.role)!=="assistant"&&l.jsx("div",{className:"flex justify-start",children:l.jsx("div",{className:"bg-muted rounded-lg p-3",children:l.jsx(El,{className:"w-4 h-4 animate-spin text-muted-foreground"})})})]})]}),l.jsx("div",{className:"p-3 border-t",children:l.jsxs("div",{className:"flex gap-2",children:[l.jsx(vn,{value:i,onChange:T=>o(T.target.value),onKeyDown:T=>T.key==="Enter"&&!T.shiftKey&&_(),placeholder:"Ask Wilbur anything...",disabled:a,className:"text-sm"}),l.jsx(we,{size:"sm",onClick:()=>_(),disabled:a||!i.trim(),children:a?l.jsx(El,{className:"w-4 h-4 animate-spin"}):l.jsx(ry,{className:"w-4 h-4"})})]})})]}):l.jsxs("div",{className:"fixed bottom-6 right-6 z-50 flex items-center gap-1",children:[l.jsxs("button",{onClick:()=>n(!0),className:"flex items-center gap-2 bg-primary text-primary-foreground rounded-full pl-1.5 pr-4 py-1.5 shadow-lg hover:shadow-xl transition-all hover:scale-105 group",title:"Chat with Wilbur",children:[l.jsx("img",{src:Lh,alt:"Wilbur the help agent mascot",className:"w-9 h-9 rounded-full object-cover border-2 border-primary-foreground/30"}),l.jsx("span",{className:"text-sm font-medium hidden sm:inline",children:"Ask Wilbur"})]}),l.jsx("button",{onClick:j,className:"w-5 h-5 rounded-full bg-muted/80 hover:bg-destructive/20 flex items-center justify-center text-muted-foreground hover:text-destructive transition-colors -ml-2 mt-[-20px]",title:"Hide for now",children:l.jsx(ln,{className:"w-3 h-3"})})]})}const L8="/assets/replyhounds-icon-only-C5CYGJMH.png",$8=()=>{const[e,t]=p.useState(!1),[n,r]=p.useState(!1);p.useEffect(()=>{const i=()=>t(window.scrollY>60);return window.addEventListener("scroll",i,{passive:!0}),()=>window.removeEventListener("scroll",i)},[]);const s=[{label:"Features",href:"#features"},{label:"Scout",href:"#scout"},{label:"Pricing",href:"#pricing"},{label:"Demo",href:"/demo",isRoute:!0}];return l.jsxs("nav",{className:`fixed top-0 left-0 right-0 z-50 transition-all duration-300 ${e?"bg-background/95 backdrop-blur-md shadow-md border-b border-border":"bg-background/80 backdrop-blur-sm"}`,style:{paddingTop:"max(env(safe-area-inset-top), 0.75rem)"},children:[l.jsxs("div",{className:`container mx-auto px-4 sm:px-6 lg:px-8 flex items-center justify-between transition-all duration-300 ${e?"h-16":"h-20"} overflow-visible`,children:[l.jsxs("a",{href:"#",className:"flex items-center gap-2.5",children:[l.jsx("img",{src:L8,alt:"ReplyHounds sales intelligence logo",className:`transition-all duration-300 ${e?"h-10":"h-12"} w-auto`}),l.jsx("span",{className:`font-bold tracking-wide transition-all duration-300 text-foreground ${e?"text-lg":"text-xl"}`,children:"REPLYHOUNDS"})]}),l.jsxs("div",{className:"hidden md:flex items-center gap-6",children:[s.map(i=>i.isRoute?l.jsx(tt,{to:i.href,className:"text-sm font-medium text-foreground hover:text-primary transition-colors",children:i.label},i.label):l.jsx("a",{href:i.href,className:"text-sm font-medium text-foreground hover:text-primary transition-colors",children:i.label},i.label)),l.jsx(tt,{to:"/auth",className:"text-sm font-medium text-muted-foreground hover:text-foreground transition-colors",children:"Sign In"}),l.jsx(we,{variant:"hero",size:"sm",asChild:!0,children:l.jsx("a",{href:"#pricing",children:"Start Free Trial"})})]}),l.jsxs("div",{className:"md:hidden flex items-center gap-1",children:[l.jsx(tt,{to:"/auth",className:"text-sm font-semibold text-foreground px-3 py-2 rounded-md hover:bg-muted transition-colors",children:"Sign In"}),l.jsx("button",{className:"p-2 rounded-md hover:bg-muted transition-colors",onClick:()=>r(!n),"aria-label":"Toggle menu",children:n?l.jsx(ln,{className:"w-6 h-6 text-foreground"}):l.jsx(nA,{className:"w-6 h-6 text-foreground"})})]})]}),n&&l.jsxs("div",{className:"md:hidden bg-background/95 backdrop-blur-md border-b border-border px-4 pb-4 space-y-3",children:[s.map(i=>i.isRoute?l.jsx(tt,{to:i.href,className:"block text-sm font-medium text-foreground py-2",onClick:()=>r(!1),children:i.label},i.label):l.jsx("a",{href:i.href,className:"block text-sm font-medium text-foreground py-2",onClick:()=>r(!1),children:i.label},i.label)),l.jsx(tt,{to:"/auth",className:"block text-sm text-muted-foreground py-2",onClick:()=>r(!1),children:"Sign In"}),l.jsx(we,{variant:"hero",size:"sm",className:"w-full",asChild:!0,children:l.jsx("a",{href:"#pricing",children:"Start Free Trial"})})]})]})},z8="/assets/hero-bg-CjcKc9RS.jpg",df=()=>{const e=(m,h)=>{typeof window<"u"&&window.gtag&&(window.gtag("event",m,h),console.log(`[GA4] Event: ${m}`,h))};return{trackEvent:e,trackCTAClick:(m,h,y)=>{e("cta_click",{cta_name:m,cta_location:h,cta_destination:y})},trackTrialStarted:(m,h)=>
572{e("trial_started",{plan_name:m,source_location:h})},trackDemoInteraction:(m,h,y)=>{e("demo_interaction",{demo_action:m,demo_feature:h,demo_progress:y})},trackDemoCompleted:m=>{e("demo_completed",{industry_selected:m})},trackFeatureViewed:m=>{e("feature_viewed",{feature_name:m})},trackPricingViewed:()=>{e("pricing_viewed",{timestamp:new Date().toISOString()})},trackPlanSelected:(m,h,y)=>{e("plan_selected",{plan_name:m,billing_period:h,plan_price:y})},trackScrollDepth:(m,h)=>{e("scroll_depth",{scroll_percentage:m,current_section:h})},trackSectionViewed:m=>{e("section_viewed",{section_name:m})},trackOutboundClick:(m,h)=>{e("outbound_click",{outbound_url:m,link_text:h})},trackFormInteraction:(m,h)=>{e("form_interaction",{form_name:m,form_action:h})}}},F8=()=>{const{trackCTAClick:e,trackOutboundClick:t}=df(),n=()=>{e("start_free_trial","hero","#pricing")};return l.jsxs("header",{className:"relative min-h-[85vh] flex items-center justify-center overflow-hidden pt-16",children:[l.jsxs("div",{className:"absolute inset-0 z-0",children:[l.jsx("img",{src:z8,alt:"Professional sales environment",className:"w-full h-full object-cover",width:"1920",height:"1080",fetchPriority:"high",decoding:"async"}),l.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-primary/95 via-primary/90 to-accent/85"})]}),l.jsxs("div",{className:"absolute inset-0 z-0 overflow-hidden",children:[l.jsx("div",{className:"absolute top-1/4 -left-12 w-96 h-96 bg-accent/20 rounded-full blur-3xl animate-pulse"}),l.jsx("div",{className:"absolute bottom-1/4 -right-12 w-96 h-96 bg-primary/20 rounded-full blur-3xl animate-pulse",style:{animationDelay:"1s"}})]}),l.jsx("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8 relative z-10",children:l.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[l.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full bg-accent/20 backdrop-blur-sm border border-accent-foreground/20 text-accent-foreground animate-fade-in mb-6",children:[l.jsx(Fk,{className:"w-4 h-4"}),l.jsx("span",{className:"text-sm font-medium",children:"AI-Powered Sales Intelligence"})]}),l.jsxs("h1",{className:"text-3xl sm:text-5xl lg:text-6xl font-bold text-primary-foreground mb-6 animate-fade-in leading-tight",style:{animationDelay:"0.1s"},children:["Outreach Ends.",l.jsx("span",{className:"block bg-gradient-to-r from-accent-foreground to-accent-foreground/80 bg-clip-text text-transparent",children:"Intelligence Begins."})]}),l.jsx("p",{className:"text-lg sm:text-xl text-primary-foreground/90 mb-4 max-w-2xl mx-auto animate-fade-in",style:{animationDelay:"0.2s"},children:"Your deals have a scent. ReplyHounds never loses the trail."}),l.jsx("p",{className:"text-base text-primary-foreground/90 mb-4 max-w-xl mx-auto animate-fade-in",style:{animationDelay:"0.22s"},children:"AI agents find leads, research prospects, draft personalized emails, and track every signal â so you can focus on closing. Built for teams selling into K-12, higher ed, and beyond."}),l.jsxs("div",{className:"flex flex-wrap justify-center gap-4 sm:gap-6 mb-8 text-primary-foreground/90 text-sm animate-fade-in",style:{animationDelay:"0.25s"},children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-accent animate-pulse"}),l.jsx("span",{children:"Save 15+ hrs/week"})]}),l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-accent animate-pulse"}),l.jsx("span",{children:"3x reply rates"})]}),l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-accent animate-pulse"}),l.jsx("span",{children:"Closed-loop intelligence"})]})]}),l.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center items-center animate-fade-in",style:{animationDelay:"0.3s"},children:[l.jsx(we,{variant:"hero",size:"lg",className:"group text-base px-8",asChild:!0,onClick:n,children:l.jsxs(tt,{to:"/auth?tab=signup",children:["Start Free Trial",l.jsx(ey,{className:"w-5 h-5 group-hover:translate-x-1 transition-transform"})]})}),l.jsx(we,{variant:"glass",size:"lg",className:"text-base px-8",asChild:!0,children:l.jsx(tt,{to:"/demo",children:"See How It Works"})})]}
572),l.jsx("p",{className:"mt-8 text-primary-foreground/90 text-sm animate-fade-in",style:{animationDelay:"0.4s"},children:"14-day free trial · No credit card · Setup in 5 minutes"})]})})]})},Oe=p.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:X("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));Oe.displayName="Card";const gs=p.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:X("flex flex-col space-y-1.5 p-6",e),...t}));gs.displayName="CardHeader";const ys=p.forwardRef(({className:e,...t},n)=>l.jsx("h3",{ref:n,className:X("text-2xl font-semibold leading-none tracking-tight",e),...t}));ys.displayName="CardTitle";const RC=p.forwardRef(({className:e,...t},n)=>l.jsx("p",{ref:n,className:X("text-sm text-muted-foreground",e),...t}));RC.displayName="CardDescription";const St=p.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:X("p-6 pt-0",e),...t}));St.displayName="CardContent";const U8=p.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:X("flex items-center p-6 pt-0",e),...t}));U8.displayName="CardFooter";const B8=ia("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function zs({className:e,variant:t,...n}){return l.jsx("div",{className:X(B8({variant:t}),e),...n})}const sr=[{id:"input",label:"Inputs",icon:Dd,color:"hsl(var(--primary))",items:["Emails","Calls","Texts","Meetings","Events","Proposals"]},{id:"track",label:"Tracks",icon:GI,color:"hsl(var(--accent))",items:["Opens","Clicks","Replies","Views","Attendance","Job Changes"]},{id:"learn",label:"Learns",icon:Tk,color:"hsl(262, 83%, 58%)",items:["Win patterns","Best send times","Top tone","Signal weights"]},{id:"adapt",label:"Adapts",icon:Ni,color:"hsl(142, 71%, 45%)",items:["Health scores","Recommendations","Draft language","Priority ranking"]},{id:"act",label:"Acts",icon:Od,color:"hsl(25, 95%, 53%)",items:["Smarter emails","Better proposals","Agent priorities","Deal predictions"]}],H8=()=>{const[e,t]=p.useState(0),[n,r]=p.useState(!0),[s,i]=p.useState(0);p.useEffect(()=>{if(!n)return;const f=setInterval(()=>{t(m=>(m+1)%sr.length)},3e3);return()=>clearInterval(f)},[n]),p.useEffect(()=>{const f=setInterval(()=>{i(m=>(m+1)%sr.length)},600);return()=>clearInterval(f)},[]);const o=f=>{t(f),r(!1),setTimeout(()=>r(!0),8e3)},a=110,c=150,u=150,d=300;return l.jsxs("div",{className:"w-full",children:[l.jsxs("div",{className:"hidden md:block",children:[l.jsxs("div",{className:"relative w-full max-w-[280px] aspect-square mx-auto",children:[l.jsx("svg",{viewBox:`0 0 ${d} ${d}`,className:"absolute inset-0 w-full h-full",children:sr.map((f,m)=>{const h=m/sr.length*2*Math.PI-Math.PI/2,y=(m+1)/sr.length*2*Math.PI-Math.PI/2,g=c+a*Math.cos(h),w=u+a*Math.sin(h),v=c+a*Math.cos(y),x=u+a*Math.sin(y),b=(h+y)/2,_=c+(a+15)*Math.cos(b),j=u+(a+15)*Math.sin(b);return l.jsxs("g",{children:[l.jsx("path",{d:`M ${g} ${w} Q ${_} ${j} ${v} ${x}`,fill:"none",stroke:"hsl(var(--border))",strokeWidth:"2",strokeDasharray:"4 4"}),s===m&&l.jsx("circle",{r:"3",fill:"hsl(var(--primary))",opacity:"0.8",children:l.jsx("animateMotion",{dur:"0.6s",fill:"freeze",path:`M ${g} ${w} Q ${_} ${j} ${v} ${x}`})})]},m)})}),l.jsx("div",{className:"absolute inset-0 flex items-center justify-center pointer-events-none",children:l.jsxs("div",{className:"flex flex-col items-center",children:[l.jsx("img",{src:"/logo.png",alt:"ReplyHounds sales intelligence logo",className:"w-10 h-10 object-contain animate-[bounce_2s_ease-in-out_infinite]"}),l.jsx("span",{className:"text-[9px] font-bold text-primary mt-0.5",children:"Closed-Loop"}),l.jsx("span",{className:"text-[8px] text-muted-foreground",children:"Intelligence"})]})}),sr.map((f,m)=>{const h=m/sr.length*2*Math.PI-Math.PI/2,y=c+a*Math.cos(h),g=u+a*Math.sin(h),w=e===m;return l.jsxs("button",{onClick:()=>o(m),className:`absolute flex flex-col items-center gap-0.5 transition-all duration-300 -translate-x-1/2 -translate-y-1/2 ${w?"scale-110 z-10":"scale-100 opacity-70 hover:opacity-100 hover:scale-105"}`,style:{left:`${y/d*100}%`,top:`${g/d*100}%`},children:[l.jsx("div",{className:`w-10 h-10 rounded-full flex items-center justify-center transition-all duration-300 ${w?"shadow-lg ring-2 ring-offset-1 ring-offset-background":"shadow-sm"}`,style:{backgroundColor:w?f.color:"hsl(var(--muted))",boxShadow:w?`0 0 15px ${f.color}40`:void 0,"--tw-ring-color":f.color}
572,children:l.jsx(f.icon,{className:`w-4 h-4 ${w?"text-white":"text-muted-foreground"}`})}),l.jsx("span",{className:`text-[9px] font-bold whitespace-nowrap transition-colors ${w?"text-foreground":"text-muted-foreground"}`,children:f.label})]},f.id)})]}),l.jsx("div",{className:"mt-4",children:l.jsx(Z0,{node:sr[e]})})]}),l.jsxs("div",{className:"md:hidden space-y-3",children:[l.jsx("div",{className:"flex gap-2 overflow-x-auto pb-2",children:sr.map((f,m)=>l.jsxs("button",{onClick:()=>o(m),className:`flex items-center gap-1.5 px-3 py-1.5 rounded-full whitespace-nowrap transition-all text-xs font-medium ${e===m?"bg-primary text-primary-foreground shadow-md":"bg-muted text-muted-foreground"}`,children:[l.jsx(f.icon,{className:"w-3.5 h-3.5"}),f.label]},f.id))}),l.jsx(Z0,{node:sr[e]})]})]})};function Z0({node:e}){return l.jsxs("div",{className:"rounded-xl border border-border bg-card p-4 animate-fade-in",children:[l.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[l.jsx("div",{className:"w-8 h-8 rounded-lg flex items-center justify-center flex-shrink-0",style:{backgroundColor:`${e.color}20`},children:l.jsx(e.icon,{className:"w-4 h-4",style:{color:e.color}})}),l.jsxs("div",{className:"min-w-0",children:[l.jsxs("h4",{className:"font-bold text-sm text-foreground",children:["ReplyHounds ",e.label]}),l.jsxs("p",{className:"text-[10px] text-muted-foreground leading-tight",children:[e.id==="input"&&"Every interaction becomes a data point",e.id==="track"&&"Automatically captures engagement signals",e.id==="learn"&&"Discovers patterns from your wins & losses",e.id==="adapt"&&"Adjusts scores, weights & recommendations",e.id==="act"&&"Delivers smarter outputs across every tool"]})]})]}),l.jsx("div",{className:"grid grid-cols-3 gap-1.5",children:e.items.map((t,n)=>l.jsxs("div",{className:"flex items-center gap-1.5 p-1.5 rounded-lg bg-muted/50 border border-border/50 animate-fade-in",style:{animationDelay:`${n*.06}s`},children:[l.jsx(Dr,{className:"w-3 h-3 flex-shrink-0",style:{color:e.color}}),l.jsx("span",{className:"text-[10px] font-medium text-foreground truncate",children:t})]},t))}),e.id==="learn"&&l.jsx("div",{className:"mt-2 p-2 bg-primary/5 rounded-lg border border-primary/20",children:l.jsxs("p",{className:"text-[10px] text-muted-foreground",children:[l.jsx("span",{className:"font-semibold text-primary",children:"30-day signal decay"})," â Recent signals carry more weight automatically."]})}),e.id==="act"&&l.jsx("div",{className:"mt-2 p-2 bg-primary/5 rounded-lg border border-primary/20",children:l.jsxs("p",{className:"text-[10px] text-muted-foreground",children:[l.jsx("span",{className:"font-semibold text-primary",children:"The loop never stops"})," â Every action feeds back, making the next cycle smarter."]})})]},e.id)}const V8=[{icon:Sl,title:"AI Proposal Builder",description:"Interactive proposals & quotes with AI content generation and real-time chat refinement.",benefits:["AI drafts sections automatically","Multi-year budget worksheets","Shareable links"],badge:"NEW",gradient:"from-amber-500/20 to-orange-500/20"},{icon:Rk,title:"Event Builder",description:"Branded event pages with attendance tracking that auto-scores deal health.",benefits:["Registration page builder","Attendance boosts scores","Auto-sync to CRM"],badge:"Exclusive",gradient:"from-purple-500/20 to-pink-500/20"},{icon:Ok,title:"K-12 Legislative Tracker",description:"Real-time state funding alerts matched to your products â act before competitors.",benefits:["Multi-state monitoring","Auto-match products","Deal impact alerts"],badge:"Enterprise",gradient:"from-blue-500/20 to-cyan-500/20"},{icon:Od,title:"Always-On AI Agents",description:"Specialized agents find leads, scout legislation, hunt RFPs, and track competitors 24/7.",benefits:["7+ agent templates","Centralized results feed","Auto-create prospects"],badge:"NEW",gradient:"from-indigo-500/20 to-violet-500/20"}],W8=()=>{const[e,t]=p.useState(null),n=r=>{switch(r){case 0:return l.jsx("div",{className:"absolute inset-0 flex items-center justify-center pointer-events-none p-3",children:l.jsxs("div",{className:"relative w-full h-full bg-card/95 backdrop-blur-sm rounded-lg border border-border shadow-lg p-3 overflow-hidden",children:[l.jsxs("div",{className:"flex items-center gap-2 mb-2 pb-1.5 border-b border-border",children:[l.jsx(Sl,{className:"w-4 h-4 text-primary"}),l.jsx("span",{className:"text-xs font-semibold",children:"Proposal Builder"}),l.jsx("span",{className:"ml-auto text-[7px] bg-primary/10 text-primary px-1.5 py-0.5 rounded-full font-semibold",children:"AI-Powered"})]}),l.jsxs("div",{className:"grid grid-cols-2 gap-1.5 mb-2",children:[l.jsx("div",{className:"space-y-1",children:["Executive Summary","Strategic Case","Solution"].map((s,i)=>l.jsxs("div",{className:"flex items-center gap-1.5 p-1 bg-muted/50 rounded border border-border/50 animate-fade-in",style:{animationDelay:`${i*.15}s`},children:[l.jsx("div",{className:"w-1 h-1 rounded-full bg-primary"}),l.jsx("span",{className:"text-[8px] font-medium",children:s})]},i))}),l.jsxs("div",{className:"bg-primary/5 rounded border border-primary/20 p-1.5 animate-fade-in",style:{animationDelay:"0.3s"},children:[l.jsxs("div",{className:"flex items-center gap-1 mb-0.5",children:[l.jsx(jl,{className:"w-2.5 h-2.5 text-primary"}),l.jsx("span",{className:"text-[7px] font-semibold text-primary",children:"AI Chat"})]}),l.jsxs("div",{className:"space-y-0.5",children:[l.jsx("div",{className:"bg-muted/50 rounded p-0.5 text-[6px]",children:"Draft my summary..."}),l.jsx("div",{className:"bg-primary/10 rounded p-0.5 text-[6px] text-primary",children:"⨠Based on your proposal..."})]})]})]}),l.jsx("div",{className:"p-1.5 bg-accent/5 rounded border border-accent/20 animate-fade-in",style:{animationDelay:"0.5s"},children:l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsx("span",{className:"text-[7px] font-semibold",children:"4-Year: $1.2M"}),l.jsx("span",{className:"text-[6px] text-accent font-semibold",children:"15% discount"})]})})]})});case 1:return l.jsx("div",{className:"absolute inset-0 flex items-center justify-center pointer-events-none p-3",children:l.jsxs("div",{className:"relative w-full h-full bg-card/95 backdrop-blur-sm rounded-lg border border-border shadow-lg p-3 overflow-hidden",children:[l.jsxs("div",{className:"flex items-center gap-2 mb-2 pb-1.5 border-b border-border",children:[l.jsx(Rk,{className:"w-4 h-4 text-primary"}),l.jsx("span",{className:"text-xs font-semibold",children:"EdTech Summit 2026"})]}),l.jsx("div",{className:"grid grid-cols-3 gap-1.5 mb-2",children:[{label:"Registrants",value:"142",icon:Ti},{label:"Pipeline",value:"$2.1M",icon:HI},{label:"ROI",value:"340%",icon:ty}].map((s,i)=>l.jsxs("div",{className:"text-center p-1.5 bg-muted/50 rounded border border-border/50 animate-fade-in",style:{animationDelay:`${i*.15}s`},children:[l.jsx(s.icon,{className:"w-3 h-3 text-primary mx-auto mb-0.5"}),l.jsx("div",{className:"text-xs font-bold",children:s.value}),l.jsx("div",{className:"text-[6px] text-muted-foreground",children:s.label})]},i))}),l.jsx("div",{className:"space-y-1",children:[{name:"Dr. Sarah Chen",role:"Superintendent"},{name:"Marcus Webb",role:"CTO, Jefferson USD"}].map((s,i)=>l.jsxs("div",{className:"flex items-center gap-1.5 p-1 bg-primary/5 rounded border border-primary/20 animate-fade-in",style:{animationDelay:`${(i+2)*.15}s`},children:[l.jsx("div",{className:"w-5 h-5 rounded-full bg-primary/20 flex items-center justify-center",children:l.jsx("span",{className:"text-[7px] font-bold text-primary",children:s.name[0]})}),l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsx("div",{className:"text-[8px] font-semibold truncate",children:s.name}),l.jsx("div",{className:"text-[6px] text-muted-foreground truncate",children:s.role})]}),l.jsx(Dr,{className:"w-3 h-3 text-primary flex-shrink-0"})]},i))})]})});case 2:return l.jsx("div",{className:"absolute inset-0 flex items-center justify-center pointer-events-none p-3",children:l.jsxs("div",{className:"relative w-full h-full bg-card/95 backdrop-blur-sm rounded-lg border border-border shadow-lg p-3 overflow-hidden",children:[l.jsxs("div",{className:"flex items-center gap-2 mb-2 pb-1.5 border-b border-border",children:[l.jsx(Ok,{className:"w-4 h-4 text-primary"}),l.jsx("span",{className:"text-xs font-semibold",children:"Legislative Alerts"})]}),l.jsx("div",{className:"space-y-1.5",children:[{state:"KY",bill:"HB 247",title:"Digital Learning â $2.3M",match:!0}
572,{state:"TX",bill:"SB 1102",title:"EdTech Infrastructure Grant",match:!0},{state:"CA",bill:"AB 891",title:"Student Data Privacy",match:!1}].map((s,i)=>l.jsxs("div",{className:`flex items-start gap-2 p-1.5 rounded border animate-fade-in ${s.match?"bg-primary/5 border-primary/20":"bg-muted/50 border-border/50"}`,style:{animationDelay:`${i*.2}s`},children:[l.jsx("span",{className:"text-[8px] font-bold text-primary bg-primary/10 px-1 py-0.5 rounded",children:s.state}),l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsxs("div",{className:"flex items-center gap-1",children:[l.jsx("span",{className:"text-[8px] font-semibold",children:s.bill}),s.match&&l.jsx("span",{className:"text-[6px] font-bold bg-accent/20 text-accent px-1 rounded-full",children:"MATCH"})]}),l.jsx("p",{className:"text-[7px] text-muted-foreground truncate",children:s.title})]})]},i))}),l.jsx("div",{className:"mt-2 p-1.5 bg-accent/5 rounded border border-accent/20 animate-fade-in",style:{animationDelay:"0.6s"},children:l.jsxs("div",{className:"flex items-center gap-1",children:[l.jsx(oy,{className:"w-2.5 h-2.5 text-accent"}),l.jsx("span",{className:"text-[7px] font-semibold text-accent",children:"2 bills match your products"})]})})]})});case 3:return l.jsx("div",{className:"absolute inset-0 flex items-center justify-center pointer-events-none p-3",children:l.jsxs("div",{className:"relative w-full h-full bg-card/95 backdrop-blur-sm rounded-lg border border-border shadow-lg p-3",children:[l.jsxs("div",{className:"flex items-center gap-2 mb-2 pb-1.5 border-b border-border",children:[l.jsx(Od,{className:"w-4 h-4 text-primary"}),l.jsx("span",{className:"text-xs font-semibold",children:"AI Agents â 24/7"})]}),l.jsx("div",{className:"space-y-1.5",children:[{icon:sA,label:"Scanning LinkedIn",status:"complete"},{icon:Ni,label:"Detecting intent signals",status:"complete"},{icon:Tk,label:"Generating insights",status:"complete"},{icon:Ds,label:"Drafting email",status:"active"}].map((s,i)=>l.jsxs("div",{className:`flex items-center gap-2 rounded p-1.5 animate-fade-in border ${s.status==="active"?"bg-primary/10 border-primary":"bg-muted/50 border-border/50"}`,style:{animationDelay:`${i*.2}s`},children:[l.jsx("div",{className:`${s.status==="active"?"bg-primary":"bg-muted"} rounded p-1 flex-shrink-0`,children:l.jsx(s.icon,{className:`w-3 h-3 ${s.status==="active"?"text-primary-foreground animate-pulse":"text-muted-foreground"}`})}),l.jsx("span",{className:"text-[8px] font-medium flex-1",children:s.label}),s.status==="complete"&&l.jsx(Dr,{className:"w-3 h-3 text-[hsl(142,71%,45%)] flex-shrink-0"})]},i))})]})});default:return null}};return l.jsx("section",{className:"py-16 bg-gradient-to-b from-background to-muted/30","aria-labelledby":"why-different-heading",children:l.jsxs("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:[l.jsxs("div",{className:"text-center mb-10",children:[l.jsx(zs,{variant:"outline",className:"mb-3 text-sm font-semibold px-4 py-2",children:"What Makes Us Different"}),l.jsxs("h2",{id:"why-different-heading",className:"text-3xl sm:text-4xl lg:text-5xl font-bold text-foreground mb-3",children:["They sell tools."," ",l.jsx("span",{className:"italic bg-gradient-to-r from-primary to-accent bg-clip-text text-transparent",children:"We built the system."})]}),l.jsx("p",{className:"text-lg text-muted-foreground max-w-2xl mx-auto",children:"A closed-loop intelligence platform where every interaction trains the system â so your next best action is always obvious."})]}),l.jsxs("div",{className:"grid lg:grid-cols-2 gap-8 items-start max-w-7xl mx-auto",children:[l.jsxs("div",{className:"p-6 rounded-2xl bg-gradient-to-br from-primary/5 via-background to-accent/5 border border-primary/10 lg:sticky lg:top-24",children:[l.jsxs("div",{className:"text-center mb-4",children:[l.jsx(zs,{className:"mb-2 bg-primary/10 text-primary border-primary/20 font-bold text-xs",children:"Only Here"}),l.jsx("h3",{className:"text-xl font-bold text-foreground mb-1",children:"Closed-Loop Intelligence Engine"}),l.jsx("p",{className:"text-xs text-muted-foreground",children:"Click any no
572de to explore how ReplyHounds learns from your workflow"})]}),l.jsx(H8,{})]}),l.jsx("div",{className:"grid sm:grid-cols-2 gap-4",children:V8.map((r,s)=>l.jsxs(Oe,{className:`relative overflow-hidden p-5 hover:shadow-[var(--shadow-medium)] transition-all duration-300 border-border/50 hover:-translate-y-1 group bg-gradient-to-br ${r.gradient} cursor-pointer min-h-[220px]`,onMouseEnter:()=>t(s),onMouseLeave:()=>t(null),children:[e===s&&l.jsx("div",{className:"absolute inset-0 bg-background/95 backdrop-blur-sm z-10 animate-fade-in",children:n(s)}),l.jsxs("div",{className:`relative z-0 transition-opacity duration-300 ${e===s?"opacity-0":"opacity-100"}`,children:[l.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[l.jsx("div",{className:"p-2 rounded-lg bg-primary/10 group-hover:scale-110 transition-transform duration-300",children:l.jsx(r.icon,{className:"w-5 h-5 text-primary"})}),l.jsx(zs,{variant:"secondary",className:"text-[10px] font-semibold px-2 py-0.5",children:r.badge})]}),l.jsx("h3",{className:"text-base font-bold text-foreground mb-1.5",children:r.title}),l.jsx("p",{className:"text-sm text-muted-foreground mb-3 leading-relaxed",children:r.description}),l.jsx("ul",{className:"space-y-1.5",children:r.benefits.map(i=>l.jsxs("li",{className:"flex items-start gap-1.5",children:[l.jsx("div",{className:"w-1 h-1 rounded-full bg-primary mt-1.5 flex-shrink-0"}),l.jsx("span",{className:"text-xs text-foreground/80",children:i})]},i))})]})]},r.title))})]})]})})},q8=[{icon:Md,step:"1",title:"Find",description:"Scout discovers verified leads matching your ICPâjob titles, industries, districtsâwhile you sleep."},{icon:YI,step:"2",title:"Research",description:"AI enriches each lead with company news, funding signals, and personal context for warm outreach."}
572,{icon:Dr,step:"3",title:"Approve",description:"Review AI-drafted emails written in your voice. Edit, bulk-approve, or dismiss with one click."},{icon:ry,step:"4",title:"Send",description:"Emails send through your connected account with tracked links, meeting bookings, and follow-up cadences."}],K8=()=>l.jsx("section",{id:"scout",className:"py-20 bg-background","aria-label":"Scout AI Agent",children:l.jsxs("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:[l.jsxs("div",{className:"text-center max-w-3xl mx-auto mb-16",children:[l.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full bg-accent/10 border border-accent/20 text-accent mb-4",children:[l.jsx(Md,{className:"w-4 h-4"}),l.jsx("span",{className:"text-sm font-semibold",children:"Meet Scout"})]}),l.jsxs("h2",{className:"text-3xl sm:text-4xl lg:text-5xl font-bold text-foreground mb-4",children:["Your AI Sales Agent That"," ",l.jsx("span",{className:"bg-gradient-to-r from-accent to-primary bg-clip-text text-transparent",children:"Never Sleeps"})]}),l.jsx("p",{className:"text-lg text-muted-foreground",children:"From lead discovery to sent email in four stepsâfully automated, fully in your voice."})]}),l.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-4 gap-8 mb-12",children:q8.map(e=>l.jsxs("div",{className:"relative group text-center p-6 rounded-2xl border border-border bg-card hover:shadow-lg hover:border-accent/30 transition-all",children:[l.jsx("div",{className:"w-14 h-14 mx-auto mb-4 rounded-xl bg-accent/10 flex items-center justify-center group-hover:bg-accent/20 transition-colors",children:l.jsx(e.icon,{className:"w-7 h-7 text-accent"})}),l.jsxs("div",{className:"text-xs font-bold text-accent uppercase tracking-wider mb-1",children:["Step ",e.step]}),l.jsx("h3",{className:"text-xl font-bold text-foreground mb-2",children:e.title}),l.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:e.description})]},e.step))}),l.jsx("div",{className:"hidden lg:flex justify-center items-center gap-2 mb-12 -mt-8",children:[1,2,3].map(e=>l.jsxs("div",{className:"flex items-center",children:[l.jsx("div",{className:"w-24 h-0.5 bg-gradient-to-r from-accent/40 to-accent/20"}),l.jsx("div",{className:"w-2 h-2 rounded-full bg-accent/40"})]},e))}),l.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[l.jsx(we,{variant:"hero",size:"lg",asChild:!0,children:l.jsx("a",{href:"#pricing",children:"Try Scout Free for 14 Days"})}),l.jsx(we,{variant:"outline",size:"lg",asChild:!0,children:l.jsx(tt,{to:"/help/scout-ai-lead-discovery",children:"Learn More About Scout"})})]})]})}),G8=[{name:"Replyhounds",highlight:!0},{name:"Apollo.io"},{name:"Salesforce"},{name:"HubSpot"},{name:"Outreach"},{name:"Gong"}],X0=[{category:"Intelligence",feature:"Overnight Intent Scanning",values:[!0,!1,!1,!1,!1,!1],exclusive:!0},{category:"Intelligence",feature:"K-12 Legislative Tracker",values:[!0,!1,!1,!1,!1,!1],exclusive:!0},{category:"Intelligence",feature:"Always-On AI Agents (Scout)",values:[!0,!1,!1,!1,!1,!1],exclusive:!0},{category:"Intelligence",feature:"Network Intelligence Graph",values:[!0,!1,!1,!1,!1,!1],exclusive:!0},{category:"Intelligence",feature:"Web Intelligence Automation",values:[!0,!1,!1,!1,!1,!1],exclusive:!0},{category:"Intelligence",feature:"Competitor Battle Cards",values:[!0,!1,!1,!1,!1,"partial"]},{category:"Outreach",feature:"AI Email Personalization",values:[!0,!0,!1,"Basic","partial",!1]},{category:"Outreach",feature:"Multi-Step Campaign Builder",values:[!0,!0,"Add-on",!0,!0,!1]},{category:"Outreach",feature:"AI Proposal & Quote Builder",values:[!0,!1,"Add-on","Add-on",!1,!1]},{category:"Outreach",feature:"Vanity Share Links + View Tracking",values:[!0,!1,!1,!1,!1,!1],exclusive:!0},{category:"Outreach",feature:"Multi-Year Budget Worksheets",values:[!0,!1,!1,!1,!1,!1],exclusive:!0},{category:"Outreach",feature:"Unified Inbox (AI Priority)",values:[!0,"partial",!1,!0,!0,!1]},{category:"Outreach",feature:"Mail Merge",values:[!0,!0,!1,!0,!0,!1]},{category:"Outreach",feature:"Chrome Extension for Gmail",values:[!0,!0,!1,!0,!0,!1]},{category:"Coaching",feature:"Real-Time Call Coaching (CPET)",values:[!0,!1,
572!1,!1,!1,!0]},{category:"Coaching",feature:"Meeting Prep with AI Briefings",values:[!0,!1,!1,!1,!1,!1],exclusive:!0},{category:"Coaching",feature:"Win/Loss Pattern Analysis",values:[!0,!1,!1,!1,!1,!0]},{category:"Pipeline",feature:"Bi-Directional CRM Sync",values:[!0,!1,"Native",!0,!0,!1]},{category:"Pipeline",feature:"Account 360 with Health Scoring",values:[!0,!1,"partial","partial",!1,!1],exclusive:!0},{category:"Pipeline",feature:"AI Revenue Forecasting",values:[!0,!1,!0,!0,!1,!0]},{category:"Pipeline",feature:"Event Builder with ROI",values:[!0,!1,!1,"Basic",!1,!1],exclusive:!0},{category:"Networking",feature:"Digital Business Card + QR/NFC",values:[!0,!1,!1,!1,!1,!1],exclusive:!0},{category:"Networking",feature:"AI Business Card Scanner",values:[!0,!1,!1,!1,!1,!1],exclusive:!0},{category:"Networking",feature:"ROI Calculator (Shareable)",values:[!0,!1,!1,!1,!1,!1],exclusive:!0},{category:"Pricing",feature:"Starting Price / User / Month",values:["$49","$49","$25","$20","$65","$100"]},{category:"Pricing",feature:"Features at Base Tier",values:["All Core","Limited","Basic","Very Limited","Sequences Only","Recording Only"]}],Y8=(e,t)=>e===!0?l.jsx(kl,{className:`w-4 h-4 mx-auto ${t?"text-primary":"text-[hsl(142,71%,45%)]"}`}):e===!1?l.jsx(ln,{className:"w-4 h-4 mx-auto text-muted-foreground/30"}):e==="partial"?l.jsx(rA,{className:"w-4 h-4 mx-auto text-muted-foreground/50"}):l.jsx("span",{className:`text-xs font-medium ${t?"text-primary":"text-muted-foreground"}`,children:e}),Q8=()=>{const e=[...new Set(X0.map(t=>t.category))];return l.jsx("section",{className:"py-16 sm:py-24 bg-background","aria-labelledby":"comparison-heading-v2",children:l.jsxs("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:[l.jsxs("div",{className:"text-center mb-10 sm:mb-16 max-w-3xl mx-auto",children:[l.jsxs("h2",{id:"comparison-heading-v2",className:"text-3xl sm:text-4xl lg:text-5xl font-bold text-foreground mb-4",children:["Feature by feature."," ",l.jsx("span",{className:"italic bg-gradient-to-r from-primary to-accent bg-clip-text text-transparent",children:"No contest."})]}),l.jsxs("p",{className:"text-base sm:text-lg text-muted-foreground",children:["CRMs store data. Engagement platforms send emails. Coaching tools record calls. ReplyHounds is the first platform where intelligence, outreach, proposals, coaching, and pipeline ",l.jsx("em",{children:"talk to each other"})," â so nothing falls through the cracks."]})]}),l.jsxs("div",{className:"max-w-7xl mx-auto",children:[l.jsx(Oe,{className:"overflow-hidden shadow-[var(--shadow-large)]",children:l.jsx("div",{className:"overflow-x-auto",children:l.jsxs("table",{className:"w-full min-w-[800px]",children:[l.jsx("thead",{children:l.jsxs("tr",{className:"border-b",children:[l.jsx("th",{className:"p-3 sm:p-4 text-left text-xs font-semibold text-muted-foreground w-[28%] bg-muted/30",children:"Capability"}),G8.map(t=>l.jsx("th",{className:`p-3 sm:p-4 text-center text-xs font-semibold w-[12%] ${t.highlight?"bg-primary/10 text-primary border-b-2 border-primary":"text-muted-foreground"}`,children:t.name},t.name))]})}),l.jsx("tbody",{children:e.map(t=>l.jsxs(l.Fragment,{children:[l.jsx("tr",{className:"bg-muted/20",children:l.jsx("td",{colSpan:7,className:"px-4 py-2 text-xs font-bold text-muted-foreground uppercase tracking-wider",children:t})},`cat-${t}`),X0.filter(n=>n.category===t).map((n,r)=>l.jsxs("tr",{className:`border-b border-border/50 hover:bg-muted/20 transition-colors ${n.exclusive?"bg-primary/[0.02]":""}`,children:[l.jsx("td",{className:"p-3 sm:p-4",children:l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("span",{className:"text-xs sm:text-sm font-medium text-foreground",children:n.feature}),n.exclusive&&l.jsx("span",{className:"inline-flex px-1.5 py-0.5 rounded bg-primary/15 text-primary text-[9px] font-bold tracking-wide",children:"ONLY"})]})}),n.values.map((s,i)=>l.jsx("td",{className:`p-3 sm:p-4 text-center ${i===0?"bg-primary/5":""}`,children:Y8(s,i===0)},i))]},`${t}-${r}`))]}))})]})})}),l.jsxs("div",{className:"mt-8 sm:mt-12 grid grid-cols-2 md:grid-cols-4 gap-4 sm:gap-6 text-center",children:[l.jsxs(Oe,{className:"p-4 sm:p-6 bg-gradient-to-br from-primary/5 to-accent/5",children:[l.jsx("div",{className:"text-3xl sm:text-4xl font-bold text-primary mb-1",children:"50+"}),l.jsx("div",{className:"text-xs sm:text-sm text-muted-foreground",children:"Features built-in"})]}),l.jsxs(Oe,{className:"p-4 sm:p-6 bg-gradient-to-br from-accent/5 to-primary/5",children:[l.jsx("div",{className:"text-3xl sm:text-4xl font-bold text-primary mb-1",children:"15+"}),l.jsx("div",{className:"text-xs sm:text-sm text-muted-foreground",children:"Hours saved / week"})]}),l.jsxs(Oe,{className:"p-4 sm:p-6 bg-gradient-to-br from-primary/5 to-accent/5",children:[l.jsx("div",{className:"text-3xl sm:text-4xl font-bold text-primary mb-1",children:"3x"}),l.jsx("div",{className:"text-xs sm:text-sm text-muted-foreground",children:"Higher reply rates"})]}),l.jsxs(Oe,{className:"p-4 sm:p-6 bg-gradient-to-br from-accent/5 to-primary/5",children:[l.jsx("div",{className:"text-3xl sm:text-4xl font-bold text-primary mb-1",children:"80%"}),l.jsx("div",{className:"text-xs sm:text-sm text-muted-foreground",children:"Less than Salesforce"})]})]})]})]})})};function Z8(e){const t=p.useRef({value:e,previous:e});return p.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var IC=["PageUp","PageDown"],AC=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],OC={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},ga="Slider",[zm,X8,J8]=Ql(ga),[MC,pq]=Yt(ga,[J8]),[e9,ff]=MC(ga),DC=p.forwardRef((e,t)=>
572{const{name:n,min:r=0,max:s=100,step:i=1,orientation:o="horizontal",disabled:a=!1,minStepsBetweenThumbs:c=0,defaultValue:u=[r],value:d,onValueChange:f=()=>{},onValueCommit:m=()=>{},inverted:h=!1,form:y,...g}=e,w=p.useRef(new Set),v=p.useRef(0),b=o==="horizontal"?t9:n9,[_=[],j]=kr({prop:d,defaultProp:u,onChange:M=>{var L;(L=[...w.current][v.current])==null||L.focus(),f(M)}}),k=p.useRef(_);function C(M){const P=a9(_,M);A(M,P)}function N(M){A(M,v.current)}function T(){const M=k.current[v.current];_[v.current]!==M&&m(_)}function A(M,P,{commit:L}={commit:!1}){const R=d9(i),z=f9(Math.round((M-r)/i)*i+r,R),U=Ny(z,[r,s]);j((V=[])=>{const D=i9(V,U,P);if(u9(D,c*i)){v.current=D.indexOf(U);const O=String(D)!==String(V);return O&&L&&m(D),O?D:V}else return V})}return l.jsx(e9,{scope:e.__scopeSlider,name:n,disabled:a,min:r,max:s,valueIndexToChangeRef:v,thumbs:w.current,values:_,orientation:o,form:y,children:l.jsx(zm.Provider,{scope:e.__scopeSlider,children:l.jsx(zm.Slot,{scope:e.__scopeSlider,children:l.jsx(b,{"aria-disabled":a,"data-disabled":a?"":void 0,...g,ref:t,onPointerDown:ne(g.onPointerDown,()=>{a||(k.current=_)}),min:r,max:s,inverted:h,onSlideStart:a?void 0:C,onSlideMove:a?void 0:N,onSlideEnd:a?void 0:T,onHomeKeyDown:()=>!a&&A(r,0,{commit:!0}),onEndKeyDown:()=>!a&&A(s,_.length-1,{commit:!0}),onStepKeyDown:({event:M,direction:P})=>{if(!a){const z=IC.includes(M.key)||M.shiftKey&&AC.includes(M.key)?10:1,U=v.current,V=_[U],D=i*z*P;A(V+D,U,{commit:!0})}}})})})})});DC.displayName=ga;var[LC,$C]=MC(ga,{startEdge:"left",endEdge:"right",size:"width",direction:1}),t9=p.forwardRef((e,t)=>{const{min:n,max:r,dir:s,inverted:i,onSlideStart:o,onSlideMove:a,onSlideEnd:c,onStepKeyDown:u,...d}=e,[f,m]=p.useState(null),h=Ne(t,b=>m(b)),y=p.useRef(void 0),g=ha(s),w=g==="ltr",v=w&&!i||!w&&i;function x(b){const _=y.current||f.getBoundingClientRect(),j=[0,_.width],C=iv(j,v?[n,r]:[r,n]);return y.current=_,C(b-_.left)}return l.jsx(LC,{scope:e.__scopeSlider,startEdge:v?"left":"right",endEdge:v?"right":"left",direction:v?1:-1,size:"width",children:l.jsx(zC,{dir:g,"data-orientation":"horizontal",...d,ref:h,style:{...d.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:b=>{const _=x(b.clientX);o==null||o(_)},onSlideMove:b=>{const _=x(b.clientX);a==null||a(_)},onSlideEnd:()=>{y.current=void 0,c==null||c()},onStepKeyDown:b=>{const j=OC[v?"from-left":"from-right"].includes(b.key);u==null||u({event:b,direction:j?-1:1})}})})}),n9=p.forwardRef((e,t)=>{const{min:n,max:r,inverted:s,onSlideStart:i,onSlideMove:o,onSlideEnd:a,onStepKeyDown:c,...u}=e,d=p.useRef(null),f=Ne(t,d),m=p.useRef(void 0),h=!s;function y(g){const w=m.current||d.current.getBoundingClientRect(),v=[0,w.height],b=iv(v,h?[r,n]:[n,r]);return m.current=w,b(g-w.top)}return l.jsx(LC,{scope:e.__scopeSlider,startEdge:h?"bottom":"top",endEdge:h?"top":"bottom",size:"height",direction:h?1:-1,children:l.jsx(zC,{"data-orientation":"vertical",...u,ref:f,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:g=>{const w=y(g.clientY);i==null||i(w)},onSlideMove:g=>{const w=y(g.clientY);o==null||o(w)},onSlideEnd:()=>{m.current=void 0,a==null||a()},onStepKeyDown:g=>{const v=OC[h?"from-bottom":"from-top"].includes(g.key);c==null||c({event:g,direction:v?-1:1})}})})}),zC=p.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:s,onSlideEnd:i,onHomeKeyDown:o,onEndKeyDown:a,onStepKeyDown:c,...u}=e,d=ff(ga,n);
572return l.jsx(ue.span,{...u,ref:t,onKeyDown:ne(e.onKeyDown,f=>{f.key==="Home"?(o(f),f.preventDefault()):f.key==="End"?(a(f),f.preventDefault()):IC.concat(AC).includes(f.key)&&(c(f),f.preventDefault())}),onPointerDown:ne(e.onPointerDown,f=>{const m=f.target;m.setPointerCapture(f.pointerId),f.preventDefault(),d.thumbs.has(m)?m.focus():r(f)}),onPointerMove:ne(e.onPointerMove,f=>{f.target.hasPointerCapture(f.pointerId)&&s(f)}),onPointerUp:ne(e.onPointerUp,f=>{const m=f.target;m.hasPointerCapture(f.pointerId)&&(m.releasePointerCapture(f.pointerId),i(f))})})}),FC="SliderTrack",UC=p.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,s=ff(FC,n);return l.jsx(ue.span,{"data-disabled":s.disabled?"":void 0,"data-orientation":s.orientation,...r,ref:t})});UC.displayName=FC;var Fm="SliderRange",BC=p.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,s=ff(Fm,n),i=$C(Fm,n),o=p.useRef(null),a=Ne(t,o),c=s.values.length,u=s.values.map(m=>WC(m,s.min,s.max)),d=c>1?Math.min(...u):0,f=100-Math.max(...u);return l.jsx(ue.span,{"data-orientation":s.orientation,"data-disabled":s.disabled?"":void 0,...r,ref:a,style:{...e.style,[i.startEdge]:d+"%",[i.endEdge]:f+"%"}})});BC.displayName=Fm;var Um="SliderThumb",HC=p.forwardRef((e,t)=>{const n=X8(e.__scopeSlider),[r,s]=p.useState(null),i=Ne(t,a=>s(a)),o=p.useMemo(()=>r?n().findIndex(a=>a.ref.current===r):-1,[n,r]);return l.jsx(r9,{...e,ref:i,index:o})}),r9=p.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,name:s,...i}=e,o=ff(Um,n),a=$C(Um,n),[c,u]=p.useState(null),d=Ne(t,x=>u(x)),f=c?o.form||!!c.closest("form"):!0,m=cS(c),h=o.values[r],y=h===void 0?0:WC(h,o.min,o.max),g=o9(r,o.values.length),w=m==null?void 0:m[a.size],v=w?l9(w,y,a.direction):0;return p.useEffect(()=>{if(c)return o.thumbs.add(c),()=>{o.thumbs.delete(c)}},[c,o.thumbs]),l.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[a.startEdge]:`calc(${y}% + ${v}px)`},children:[l.jsx(zm.ItemSlot,{scope:e.__scopeSlider,children:l.jsx(ue.span,{role:"slider","aria-label":e["aria-label"]||g,"aria-valuemin":o.min,"aria-valuenow":h,"aria-valuemax":o.max,"aria-orientation":o.orientation,"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,tabIndex:o.disabled?void 0:0,...i,ref:d,style:h===void 0?{display:"none"}:e.style,onFocus:ne(e.onFocus,()=>{o.valueIndexToChangeRef.current=r})})}),f&&l.jsx(VC,{name:s??(o.name?o.name+(o.values.length>1?"[]":""):void 0),form:o.form,value:h},r)]})});HC.displayName=Um;var s9="RadioBubbleInput",VC=p.forwardRef(({__scopeSlider:e,value:t,...n},r)=>{const s=p.useRef(null),i=Ne(s,r),o=Z8(t);return p.useEffect(()=>{const a=s.current;if(!a)return;const c=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(c,"value").set;if(o!==t&&d){const f=new Event("input",{bubbles:!0});d.call(a,t),a.dispatchEvent(f)}},[o,t]),l.jsx(ue.input,{style:{display:"none"},...n,ref:i,defaultValue:t})});VC.displayName=s9;function i9(e=[],t,n){const r=[...e];return r[n]=t,r.sort((s,i)=>s-i)}function WC(e,t,n){const i=100/(n-t)*(e-t);return Ny(i,[0,100])}function o9(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function a9(e,t){if(e.length===1)return 0;const n=e.map(s=>Math.abs(s-t)),r=Math.min(...n);return n.indexOf(r)}function l9(e,t,n){const r=e/2,i=iv([0,50],[0,r]);return(r-i(t)*n)*n}function c9(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function u9(e,t){if(t>0){const n=c9(e);return Math.min(...n)>=t}return!0}function iv(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function d9(e){return(String(e).split(".")[1]||"").length}function f9(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var qC=DC,h9=UC,p9=BC,m9=HC;const KC=p.forwardRef(({className:e,...t},n)=>l.jsxs(qC,{ref:n,className:X("relative flex w-full touch-none select-none items-center",e),...t,children:[l.jsx(h9,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:l.jsx(p9,{className:"absolute h-full bg-primary"})}),l.jsx(m9,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"})]}));KC.displayName=qC.displayName;const J0=[{name:"CRM (Salesforce Pro)",perUser:75,pro:!0,ent:!0},{name:"Sales Engagement (Outreach)",perUser:100,pro:!0,ent:!0},{name:"Call Recording & Coaching (Gong)",perUser:100,pro:!1,ent:!0},{name:"Intent Data (6sense/Bombora)*",perUser:100,pro:!1,ent:!0},{name:"Proposal Builder (PandaDoc Business)",perUser:35,pro:!0,ent:!0},{name:"Digital Business Cards (HiHello)",perUser:8,pro:!0,ent:!0},{name:"Event Management (Cvent)*",perUser:50,pro:!0,ent:!0},{name:"Legislative Intelligence*",perUser:40,pro:!1,ent:!0},{name:"AI Agents / Web Intelligence*",perUser:60,pro:!1,ent:!0}],g9={professional:{label:"Professional",price:99,color:"primary"},enterprise:{label:"Enterprise",price:199,color:"primary"}},y9=()=>{const[e,t]=p.useState(5),[n,r]=p.useState("enterprise"),s=g9[n],i=J0.filter(f=>f[n==="professional"?"pro":"ent"]),o=i.reduce((f,m)=>
572f+m.perUser,0)*e,a=s.price*e,c=o-a,u=Math.round(c/o*100),d=J0.filter(f=>!f.pro);return l.jsx("section",{className:"py-16 sm:py-24 bg-muted/30","aria-labelledby":"calculator-heading",children:l.jsxs("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:[l.jsxs("div",{className:"text-center mb-10 sm:mb-14 max-w-3xl mx-auto",children:[l.jsxs("h2",{id:"calculator-heading",className:"text-3xl sm:text-4xl lg:text-5xl font-bold text-foreground mb-4",children:["What Are You"," ",l.jsx("span",{className:"italic bg-gradient-to-r from-destructive to-destructive/70 bg-clip-text text-transparent",children:"Really"})," ","Paying?"]}),l.jsx("p",{className:"text-base sm:text-lg text-muted-foreground",children:"Most teams cobble together 5â9 tools and still have gaps. See what that fragmented stack actually costs â then see ReplyHounds."})]}),l.jsxs("div",{className:"max-w-5xl mx-auto",children:[l.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-6 mb-8 sm:mb-10",children:[l.jsxs("div",{className:"flex items-center gap-2 bg-muted rounded-lg p-1",children:[l.jsx("button",{onClick:()=>r("professional"),className:`px-4 py-2 rounded-md text-sm font-medium transition-all ${n==="professional"?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"}`,children:"Professional ($99)"}),l.jsxs("button",{onClick:()=>r("enterprise"),className:`px-4 py-2 rounded-md text-sm font-medium transition-all flex items-center gap-1.5 ${n==="enterprise"?"bg-primary text-primary-foreground shadow-sm":"text-muted-foreground hover:text-foreground"}`,children:[l.jsx(fu,{className:"w-3.5 h-3.5"}),"Enterprise ($199)"]})]}),l.jsxs("div",{className:"flex items-center gap-3 min-w-[200px]",children:[l.jsxs("label",{className:"text-sm font-medium text-foreground whitespace-nowrap",children:["Team: ",l.jsx("span",{className:"text-primary font-bold",children:e})," ",e===1?"rep":"reps"]}),l.jsx(KC,{value:[e],onValueChange:f=>t(f[0]),min:1,max:25,step:1,className:"w-full"})]})]}),l.jsxs("div",{className:"grid md:grid-cols-2 gap-6 sm:gap-8",children:[l.jsxs(Oe,{className:"p-6 border-destructive/20 bg-destructive/[0.02]",children:[l.jsxs("div",{className:"flex items-center gap-2 mb-5",children:[l.jsx("div",{className:"w-8 h-8 rounded-full bg-destructive/10 flex items-center justify-center",children:l.jsx(ln,{className:"w-4 h-4 text-destructive"})}),l.jsx("h3",{className:"font-bold text-foreground",children:"The Fragmented Stack"})]}),l.jsx("div",{className:"space-y-3 mb-6",children:i.map(f=>l.jsxs("div",{className:"flex justify-between items-center text-sm",children:[l.jsx("span",{className:"text-muted-foreground",children:f.name}),l.jsxs("span",{className:"font-medium text-foreground",children:["$",f.perUser,"/user"]})]},f.name))}),l.jsxs("div",{className:"border-t pt-4",children:[l.jsxs("div",{className:"flex justify-between items-center",children:[l.jsx("span",{className:"text-sm font-semibold text-foreground",children:"Monthly Total"}),l.jsxs("span",{className:"text-2xl font-bold text-destructive",children:["$",o.toLocaleString()]})]}),l.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:["$",i.reduce((f,m)=>f+m.perUser,0),"/user à ",e," reps ⢠",i.length," different logins ⢠0 integration"]})]})]}),l.jsxs(Oe,{className:"p-6 border-primary/30 bg-primary/[0.03] ring-2 ring-primary/20",children:[l.jsxs("div",{className:"flex items-center gap-2 mb-5",children:[l.jsx("div",{className:"w-8 h-8 rounded-full bg-primary/10 flex items-center justify-center",children:l.jsx(kl,{className:"w-4 h-4 text-primary"})}),l.jsxs("h3",{className:"font-bold text-foreground",children:["ReplyHounds ",s.label]}),n==="enterprise"&&l.jsxs("span",{className:"ml-auto inline-flex items-center gap-1 px-2 py-0.5 rounded-full bg-primary/15 text-primary text-[10px] font-bold",children:[l.jsx(fu,{className:"w-3 h-3"})," BEST VALUE"]})]}),l.jsx("div",{className:"space-y-3 mb-6",children:i.map(f=>{const m=f.name.startsWith("CRM")?"Built-in CRM (syncs with SF/HS)":f.name.replace(/\s*\(.*?\)\s*/g,"").replace(/\*/g,"");return l.jsxs("div",{className:"flex justify-between items-center text-sm",children:[l.jsx("span",{className:"text-muted-foreground",children:m}),l.jsxs("span",{className:"text-primary font-medium flex items-center gap-1",children:[l.jsx(kl,{className:"w-3 h-3"})," Included"]})]},f.name)}
572)}),l.jsxs("div",{className:"border-t pt-4",children:[l.jsxs("div",{className:"flex justify-between items-center",children:[l.jsx("span",{className:"text-sm font-semibold text-foreground",children:"Monthly Total"}),l.jsxs("span",{className:"text-2xl font-bold text-primary",children:["$",a.toLocaleString()]})]}),l.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:["$",s.price,"/user à ",e," reps ⢠1 login ⢠Everything connected"]})]})]})]}),n==="professional"&&d.length>0&&l.jsx(Oe,{className:"mt-6 p-5 border-accent/20 bg-accent/[0.04]",children:l.jsxs("div",{className:"flex items-start gap-3",children:[l.jsx(fu,{className:"w-5 h-5 text-accent-foreground flex-shrink-0 mt-0.5"}),l.jsxs("div",{children:[l.jsxs("p",{className:"text-sm font-semibold text-foreground mb-2",children:["Upgrade to Enterprise for just $",100,"/user more and unlock:"]}),l.jsxs("div",{className:"grid sm:grid-cols-2 gap-1.5",children:[d.map(f=>l.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[l.jsx(ln,{className:"w-3 h-3 text-destructive/50"}),l.jsxs("span",{children:[f.name," ",l.jsxs("span",{className:"text-destructive text-xs",children:["($",f.perUser,"/user elsewhere)"]})]})]},f.name)),l.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[l.jsx(ln,{className:"w-3 h-3 text-destructive/50"}),l.jsxs("span",{children:["White-Label Branding ",l.jsx("span",{className:"text-destructive text-xs",children:"(Enterprise exclusive)"})]})]})]}),l.jsxs("p",{className:"text-xs text-primary mt-3 font-medium",children:["That's $",d.reduce((f,m)=>f+m.perUser,0),"/user in standalone tools â included free in Enterprise."]})]})]})}),l.jsx(Oe,{className:"mt-6 sm:mt-8 p-5 sm:p-6 bg-gradient-to-r from-primary/10 to-accent/10 border-primary/20",children:l.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-between gap-4",children:[l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx("div",{className:"w-10 h-10 rounded-full bg-primary/15 flex items-center justify-center",children:l.jsx(fA,{className:"w-5 h-5 text-primary"})}),l.jsxs("div",{children:[l.jsxs("div",{className:"text-xl sm:text-2xl font-bold text-foreground",children:["Save $",c.toLocaleString(),"/mo",l.jsxs("span",{className:"text-primary ml-2 text-base font-semibold",children:["(",u,"% less)"]})]}),l.jsx("p",{className:"text-sm text-muted-foreground",children:n==="enterprise"?"Every tool. Every integration. One invoice. Zero gaps.":"Great value â but Enterprise saves even more per tool replaced."})]})]}),l.jsx(we,{variant:"default",size:"lg",className:"whitespace-nowrap",asChild:!0,children:l.jsx(tt,{to:"/auth",children:"Start Free Trial"})})]})}),l.jsx("p",{className:"text-[10px] text-muted-foreground/60 text-center mt-4 max-w-2xl mx-auto",children:"* Competitor prices are based on publicly available pricing pages and third-party reports as of 2026. Items marked with * reflect estimated equivalent costs where public pricing is unavailable. Actual costs may vary by contract terms and team size."})]})]})})},v9={starter:{monthly:{price_id:"price_1SFEP8Fdd0WkYg5zDTDswCqT",product_id:"prod_TBbcQ23Y36zQoU"},annual:{price_id:"price_1SFEPIFdd0WkYg5za0jDRbQf",product_id:"prod_TBbcRJQMh9F1oC"}},professional:{monthly:{price_id:"price_1SFEPSFdd0WkYg5z5Rn8H5GO",product_id:"prod_TBbchNjPpU9DbV"},annual:{price_id:"price_1SFEPbFdd0WkYg5zWjktUeZd",product_id:"prod_TBbciTC5ZNHHlB"}},enterprise:{monthly:{price_id:"price_1SFEPjFdd0WkYg5zMxXFCtXy",product_id:"prod_TBbcoZqOoWeytc"},annual:{price_id:"price_1SFEPrFdd0WkYg5zbgWHF6am",product_id:"prod_TBbdGka19RLuhI"}}},x9=[{name:"Starter",monthlyPrice:"49",annualPrice:"39",tier:"starter",description:"Essential features for individual sales reps",features:["50 context lookups/month","Unlimited prospects & organizations","Email tracking (opens & clicks)","Contact management","Task & deal management","Basic analytics dashboard","AI email drafting","Basic meeting prep","Basic deal scoring","Digital business card & QR sharing","AI business card scanner","5 AI agent runs/month"],cta:"Start 14-Day Free Trial",popular:!1},{name:"Professional",monthlyPrice:"99",annualPrice:"79",tier:"professional",description:"Productivity & automation for sales teams",features:["500 context lookups/month","Everything in Starter, plus:","Scout â AI lead discovery agent","AI Proposal & Quote Builder","Multi-year budget worksheets & volume discounts","Vanity share links with view tracking","Event Builder with landing pages","Email templates library","Calendar integrations","Contact enrichment","Send time optimization","Battle cards & competitor alerts","Deal Thermometer & win/loss analysis","Campaign builder with branching logic","50 AI agent runs/month"],cta:"Start 14-Day Free Trial",popular:!1},{name:"Enterprise",monthlyPrice:"199",annualPrice:"159",tier:"enterprise",description:"AI-powered intelligence & team features",features:["Unlimited context lookups","Everything in Professional, plus:","K-12 Leg
572islative Tracker (50-state funding intelligence)","Live AI Sales Coach (real-time CPE-T coaching)","Zoom sidebar app (in-meeting intelligence)","AI Network Intelligence & network map","AI Learning System","Nightly Intelligence scanning","Advanced AI email personalization","Account 360 with health scoring","AI revenue forecasting","Smart cadence engine","CRM integrations (Salesforce, HubSpot)","Playbook library & team best practices","User management & team analytics","Unlimited AI agent runs","Web Intelligence Automation","White-label event pages","Custom API integrations & webhooks"],cta:"Start 14-Day Free Trial",popular:!0}],GC=()=>{const e=Er(),{toast:t}=Gr(),{trackPricingViewed:n,trackPlanSelected:r,trackTrialStarted:s}=df(),[i,o]=p.useState(null),[a,c]=p.useState("monthly"),[u,d]=p.useState(!1),f=p.useRef(null);p.useEffect(()=>{const h=new IntersectionObserver(y=>{y.forEach(g=>{g.isIntersecting&&!u&&(n(),d(!0))})},{threshold:.3});return f.current&&h.observe(f.current),()=>h.disconnect()},[u,n]);const m=async(h,y,g)=>{o(h),r(y,a,g),s(y,"pricing_section");try{const{data:{session:w}}=await ce.auth.getSession();if(!w){t({title:"Create an Account",description:"Sign up to start your 14-day free trial"}),e("/auth?tab=signup");return}const v=v9[h][a].price_id,{data:x,error:b}=await ce.functions.invoke("create-checkout",{body:{priceId:v}});if(b)throw b;x!=null&&x.url&&window.open(x.url,"_blank")}catch(w){console.error("Subscription error:",w),t({title:"Subscription Failed",description:w.message||"Failed to start subscription process",variant:"destructive"})}finally{o(null)}};return l.jsx("section",{id:"pricing",ref:f,className:"py-24 bg-secondary/30","aria-labelledby":"pricing-heading",children:l.jsxs("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:[l.jsxs("header",{className:"text-center mb-16",children:[l.jsx("h2",{id:"pricing-heading",className:"text-4xl sm:text-5xl font-bold text-foreground mb-4",children:"Choose Your ReplyHound Plan"}),l.jsx("p",{className:"text-xl text-muted-foreground max-w-2xl mx-auto",children:"All plans include a 14-day free trial. No credit card required."}),l.jsxs("div",{className:"flex items-center justify-center gap-4 mt-8",children:[l.jsx(we,{variant:a==="monthly"?"default":"outline",onClick:()=>c("monthly"),className:"min-w-[120px]",children:"Monthly"}),l.jsxs(we,{variant:a==="annual"?"default":"outline",onClick:()=>c("annual"),className:"min-w-[120px]",children:["Annual",l.jsx("span",{className:"ml-2 text-xs bg-primary-foreground/20 px-2 py-0.5 rounded-full",children:"Save 20%"})]})]})]}),l.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 max-w-6xl mx-auto",children:x9.map((h,y)=>l.jsxs(Oe,{className:`p-6 sm:p-8 relative ${h.popular?"border-2 border-primary shadow-[var(--shadow-large)] md:scale-105":"border-border/50"} hover:shadow-[var(--shadow-medium)] transition-all duration-300`,style:{animationDelay:`${y*.1}s`},children:[h.popular&&l.jsx("div",{className:"absolute -top-4 left-1/2 -translate-x-1/2 px-4 py-1 bg-gradient-to-r from-primary to-accent text-primary-foreground text-sm font-semibold rounded-full",children:"Most Popular"}),l.jsxs("div",{className:"text-center mb-6",children:[l.jsx("h3",{className:"text-2xl font-bold text-foreground mb-2",children:h.name}),l.jsx("p",{className:"text-muted-foreground text-sm mb-4",children:h.description}),l.jsxs("div",{className:"flex items-baseline justify-center gap-1",children:[l.jsxs("span",{className:"text-4xl font-bold text-foreground",children:["$",a==="monthly"?h.monthlyPrice:h.annualPrice]}),l.jsx("span",{className:"text-muted-foreground",children:"/user/month"})]}),a==="annual"&&l.jsxs("p",{className:"text-sm text-muted-foreground mt-2",children:["Billed annually at $",(parseFloat(h.annualPrice)*12).toFixed(0),"/year"]})]}),l.jsx("ul",{className:"space-y-3 mb-8",children:h.features.map(g=>l.jsxs("li",{className:"flex items-start gap-3",children:[l.jsx(kl,{className:"w-5 h-5 text-primary flex-shrink-0 mt-0.5"}),l.jsx("span",{className:"text-foreground",children:g})]},g))}),l.jsx(we,{variant:h.popular?"hero":"default",className:"w-full",size:"lg",onClick:()=>m(h.tier,h.name,a==="monthly"?h.monthlyPrice:h.annualPrice),disabled:i===h.tier,children:i===h.tier?"Loading...":h.cta})]},h.name))}),l.jsx("p",{className:"text-center text-muted-foreground mt-12",children:"All plans include 14-day free trial. Upgrade or downgrade anytime."}),l.jsx("p",{className:"text-center mt-4",children:l.jsx("a",{href:"#cost-calculator",className:"text-sm font-medium text-primary hover:text-primary/80 transition-colors underline underline-offset-4",children:"Already paying for Salesforce or HubSpot? See what that stack really costs â
572"})})]})})},w9=Object.freeze(Object.defineProperty({__proto__:null,Pricing:GC},Symbol.toStringTag,{value:"Module"}));var hf="Collapsible",[b9,YC]=Yt(hf),[_9,ov]=b9(hf),QC=p.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:s,disabled:i,onOpenChange:o,...a}=e,[c,u]=kr({prop:r,defaultProp:s??!1,onChange:o,caller:hf});return l.jsx(_9,{scope:n,disabled:i,contentId:jt(),open:c,onOpenToggle:p.useCallback(()=>u(d=>!d),[u]),children:l.jsx(ue.div,{"data-state":uv(c),"data-disabled":i?"":void 0,...a,ref:t})})});QC.displayName=hf;var ZC="CollapsibleTrigger",av=p.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,s=ov(ZC,n);return l.jsx(ue.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":uv(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...r,ref:t,onClick:ne(e.onClick,s.onOpenToggle)})});av.displayName=ZC;var lv="CollapsibleContent",cv=p.forwardRef((e,t)=>{const{forceMount:n,...r}=e,s=ov(lv,e.__scopeCollapsible);return l.jsx(Tt,{present:n||s.open,children:({present:i})=>l.jsx(k9,{...r,ref:t,present:i})})});cv.displayName=lv;var k9=p.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:s,...i}=e,o=ov(lv,n),[a,c]=p.useState(r),u=p.useRef(null),d=Ne(t,u),f=p.useRef(0),m=f.current,h=p.useRef(0),y=h.current,g=o.open||a,w=p.useRef(g),v=p.useRef(void 0);return p.useEffect(()=>{const x=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(x)},[]),Qn(()=>{const x=u.current;if(x){v.current=v.current||{transitionDuration:x.style.transitionDuration,animationName:x.style.animationName},x.style.transitionDuration="0s",x.style.animationName="none";const b=x.getBoundingClientRect();f.current=b.height,h.current=b.width,w.current||(x.style.transitionDuration=v.current.transitionDuration,x.style.animationName=v.current.animationName),c(r)}},[o.open,r]),l.jsx(ue.div,{"data-state":uv(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!g,...i,ref:d,style:{"--radix-collapsible-content-height":m?`${m}px`:void 0,"--radix-collapsible-content-width":y?`${y}px`:void 0,...e.style},children:g&&s})});function uv(e){return e?"open":"closed"}var XC=QC,S9=av,E9=cv,Jn="Accordion",j9=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[dv,C9,N9]=Ql(Jn),[pf,mq]=Yt(Jn,[N9,YC]),fv=YC(),JC=H.forwardRef((e,t)=>{const{type:n,...r}=e,s=r,i=r;return l.jsx(dv.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?l.jsx(I9,{...i,ref:t}):l.jsx(R9,{...s,ref:t})})});JC.displayName=Jn;var[eN,T9]=pf(Jn),[tN,P9]=pf(Jn,{collapsible:!1}),R9=H.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:s=()=>{},collapsible:i=!1,...o}=e,[a,c]=kr({prop:n,defaultProp:r??"",onChange:s,caller:Jn});return l.jsx(eN,{scope:e.__scopeAccordion,value:H.useMemo(()=>a?[a]:[],[a]),onItemOpen:c,onItemClose:H.useCallback(()=>i&&c(""),[i,c]),children:l.jsx(tN,{scope:e.__scopeAccordion,collapsible:i,children:l.jsx(nN,{...o,ref:t})})})}),I9=H.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:s=()=>{},...i}=e,[o,a]=kr({prop:n,defaultProp:r??[],onChange:s,caller:Jn}),c=H.useCallback(d=>a((f=[])=>[...f,d]),[a]),u=H.useCallback(d=>a((f=[])=>f.filter(m=>m!==d)),[a]);return l.jsx(eN,{scope:e.__scopeAccordion,value:o,onItemOpen:c,onItemClose:u,children:l.jsx(tN,{scope:e.__scopeAccordion,collapsible:!0,children:l.jsx(nN,{...i,ref:t})})})}),[A9,mf]=pf(Jn),nN=H.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:s,orientation:i="vertical",...o}=e,a=H.useRef(null),c=Ne(a,t),u=C9(n),f=ha(s)==="ltr",m=ne(e.onKeyDown,h=>{var N;if(!j9.includes(h.key))return;const y=h.target,g=u().filter(T=>{var A;return!((A=T.ref.current)!=null&&A.disabled)}),w=g.findIndex(T=>T.ref.current===y),v=g.length;if(w===-1)return;h.preventDefault();let x=w;const b=0,_=v-1,j=()=>{x=w+1,x>_&&(x=b)},k=()=>{x=w-1,x<b&&(x=_)};switch(h.key){case"Home":x=b;break;case"End":x=_;break;case"ArrowRight":i==="horizontal"&&(f?j():k());break;case"ArrowDown":i==="vertical"&&j();break;case"ArrowLeft":i==="horizontal"&&(f?k():j());break;case"ArrowUp":i==="vertical"&&k();break}const C=x%v;(N=g[C].ref.current)==null||N.focus()});return l.jsx(A9,{scope:n,disabled:r,direction:s,orientation:i,children:l.jsx(dv.Slot,{scope:n,children:l.jsx(ue.div,{...o,"data-orientation":i,ref:c,onKeyDown:r?void 0:m})})})}),od="AccordionItem",[O9,hv]=pf(od),rN=H.forwardRef((e,t)=>
572{const{__scopeAccordion:n,value:r,...s}=e,i=mf(od,n),o=T9(od,n),a=fv(n),c=jt(),u=r&&o.value.includes(r)||!1,d=i.disabled||e.disabled;return l.jsx(O9,{scope:n,open:u,disabled:d,triggerId:c,children:l.jsx(XC,{"data-orientation":i.orientation,"data-state":cN(u),...a,...s,ref:t,disabled:d,open:u,onOpenChange:f=>{f?o.onItemOpen(r):o.onItemClose(r)}})})});rN.displayName=od;var sN="AccordionHeader",iN=H.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,s=mf(Jn,n),i=hv(sN,n);return l.jsx(ue.h3,{"data-orientation":s.orientation,"data-state":cN(i.open),"data-disabled":i.disabled?"":void 0,...r,ref:t})});iN.displayName=sN;var Bm="AccordionTrigger",oN=H.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,s=mf(Jn,n),i=hv(Bm,n),o=P9(Bm,n),a=fv(n);return l.jsx(dv.ItemSlot,{scope:n,children:l.jsx(S9,{"aria-disabled":i.open&&!o.collapsible||void 0,"data-orientation":s.orientation,id:i.triggerId,...a,...r,ref:t})})});oN.displayName=Bm;var aN="AccordionContent",lN=H.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,s=mf(Jn,n),i=hv(aN,n),o=fv(n);return l.jsx(E9,{role:"region","aria-labelledby":i.triggerId,"data-orientation":s.orientation,...o,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});lN.displayName=aN;function cN(e){return e?"open":"closed"}var M9=JC,D9=rN,L9=iN,uN=oN,dN=lN;const $9=M9,fN=p.forwardRef(({className:e,...t},n)=>l.jsx(D9,{ref:n,className:X("border-b",e),...t}));fN.displayName="AccordionItem";const hN=p.forwardRef(({className:e,children:t,...n},r)=>l.jsx(L9,{className:"flex",children:l.jsxs(uN,{ref:r,className:X("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...n,children:[t,l.jsx(du,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));hN.displayName=uN.displayName;const pN=p.forwardRef(({className:e,children:t,...n},r)=>l.jsx(dN,{ref:r,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:l.jsx("div",{className:X("pb-4 pt-0",e),children:t})}));pN.displayName=dN.displayName;const z9=()=>{const e=[{question:"Does Replyhounds have AI-powered CRM integration?",answer:"Yes! We offer fully bi-directional CRM integration with embedded AI research. When you connect Salesforce or HubSpot, our AI automatically researches every contact synced from your CRM and pushes enriched insights back â including funding alerts, job changes, intent signals, and competitive intelligence â all without leaving your CRM workflow."},{question:"What is the AI Proposal & Quote Builder?",answer:"Replyhounds includes a full proposal and quote builder with two modes: Quote mode for quick pricing shares, and Proposal mode with a section-based narrative editor and AI chat assistant for drafting, tone refinement, and competitive positioning. The quote builder features multi-year budget worksheets (4-year projections), a scaling engine for new/renewal schools, volume discount tiers, optional line items, and inline editing. Proposals are shared via branded vanity URLs with view tracking."},{question:"How do volume discounts work in the Quote Builder?",answer:"You can create multi-tier volume discount schedules based on the number of units purchased. Discounts can be applied globally or targeted at specific products. The public-facing quote view clearly shows the discount tier breakdown so recipients understand exactly how their pricing was calculated, with separate Option 1 and Option 2 totals."},{question:"Is Replyhounds better than Reply.io or Saleshandy?",answer:"Replyhounds focuses on AI-powered sales enablement and context-driven personalization, not just cold email automation. We automatically research each prospect and insert relevant context about funding rounds, job changes, mutual connections, and industry news. Plus, we include proposal/quote building, deal pipeline management, sales coaching, and Account 360 views â tools those platforms don't offer."},{question:"What makes Replyhounds different from other cold email tools?",answer:"Most cold email platforms just automate sending. Replyhounds combines AI research, intent signal detection, job change monitoring, competitor battle cards, proposal building, revenue forecasting, and real-time sales coaching into a single platform. With 50+ features across intelligence, outreach, pipeline, and coaching, it's sales enablement â not just email automation."},{question:"How does the Account 360 view work?",answer:"Account 360 gives you a complete picture of every account with health scoring, organization hierarchy, activity timelines, stakeholder mapping, and linked proposals. When a prospect or organization is linked to a deal, all their latest intelligence â funding alerts, job changes, intent signals â appears instantly in one unified view."},{question:"What AI agents are available?",answer:"Replyhounds includes configurable autonomous AI agents like Scout for lead discovery, which automatically finds, researches, and surfaces new prospects matching your criteria. Agents run in the background and deliver results with one-click actions. Web Intelligence Automation continuously scans for prospect triggers, K-12 legislative changes, and industry-specific signals."},{question:"How does the multi-step campaign builder work?",answer:"Build up to 5-step follow-up sequences with hybrid branching logic based on engagement (no response, opened, clicked) or fixed timing. The AI Suggest Follow-Up feature uses research to recommend contextually relevant content and current industry articles, which you can add directly to email bodies as tracked link chips with one click."},{question:"Does Replyhounds support meeting prep and sales coaching?",answer:"Yes! The Meeting Bot uses the CPET framework for real-time call coaching with transcript analysis, glows/grows feedback, and performance scoring. Zoom Meeting Prep provides AI-powered pre-meeting briefings with prospect context, talking points, and agenda suggestions synced to your calendar."},{question:"What networking and event tools are included?",answer:"Replyhounds includes digital business cards with QR code and NFC sharing, an AI-powered business card scanner, event landing page builder with attendee tracking and conference cheat sheet generators, a network map with force-graph visualization, and a shareable ROI calculator â all built into the platform."},{question:"How does the AI-powered pipeline work?",answer:"Your pi
572peline features a visual Kanban board with drag-and-drop, deal scoring, stage history tracking, and probability management. Nightly syncs enrich every deal with intent signals, job changes, funding alerts, and competitor intelligence. AI revenue forecasting provides weighted pipeline analysis with seasonal adjustments and confidence intervals."},{question:"What's included in the free trial?",answer:"All plans include a 14-day free trial with no credit card required. You get full access to AI prospect research, intent signals, funding alerts, the proposal & quote builder, email optimization, campaign builder, and pipeline management. Try it risk-free and see the difference context makes."},{question:"How much does Replyhounds cost compared to other platforms?",answer:"Plans start at $49/user/month â less than Reply.io, Apollo, or Outreach.io. The Starter plan covers core outreach, AI research, and email tracking. Pro ($99/month) adds proposal building, Scout intelligence, legislative tracking, and advanced sales enablement tools. Enterprise ($199/month) includes everything plus unlimited lookups, CRM integrations, white-label branding, and full team collaboration."},{question:"Can I share proposals and quotes with prospects?",answer:"Absolutely! Proposals and quotes are shared via branded vanity URLs (e.g., /your-company/p/account-name). Every view is tracked and logged to your Account 360 health score. Recipients see a professional public view with clear Option 1 vs. Option 2 investment paths, volume discount breakdowns, and a validity notice. You can preview exactly what the recipient will see before sharing."},{question:"What is white-label branding and how do I get it?",answer:"Enterprise plan subscribers get full white-label branding â all customer-facing assets (shared proposals, digital business cards, event pages, and ROI calculators) display your company's branding with zero ReplyHounds mentions. Your shared links use branded vanity URLs like /your-company/p/proposal-name. White-labeling is automatically enabled on Enterprise plans."}];return l.jsx("section",{className:"py-24 bg-background","aria-labelledby":"faq-heading",children:l.jsxs("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8 max-w-4xl",children:[l.jsxs("header",{className:"text-center mb-12",children:[l.jsx("h2",{id:"faq-heading",className:"text-4xl sm:text-5xl font-bold text-foreground mb-4",children:"Frequently Asked Questions"}),l.jsx("p",{className:"text-xl text-muted-foreground",children:"Everything you need to know about the best cold email and sales enablement platform"})]}),l.jsx($9,{type:"single",collapsible:!0,className:"w-full",children:e.map((t,n)=>l.jsxs(fN,{value:`item-${n}`,children:[l.jsx(hN,{className:"text-left text-lg font-semibold",children:t.question}),l.jsx(pN,{className:"text-muted-foreground text-base leading-relaxed",children:t.answer})]},n))})]})})},F9=()=>{const{trackCTAClick:e,trackOutboundClick:t}=df(),n=()=>{e("get_started_free","final_cta","/auth")},r=()=>{e("schedule_demo","final_cta","calendar"),t("https://calendar.google.com/calendar/u/0/appointments/schedules/AcZssZ1twZ_mN9sx3AaIP-SHwYP7v3PPh_Etam_2SWvsVKt-H4GdznvVwFtyP39mlYG1obquCw9SjSvF","Schedule a Demo")};return l.jsxs("section",{className:"py-24 bg-gradient-to-br from-primary via-primary to-accent relative overflow-hidden",children:[l.jsxs("div",{className:"absolute inset-0 overflow-hidden opacity-20",children:[l.jsx("div",{className:"absolute top-0 left-1/4 w-96 h-96 bg-accent rounded-full blur-3xl"}),l.jsx("div",{className:"absolute bottom-0 right-1/4 w-96 h-96 bg-primary-foreground rounded-full blur-3xl"})]}),l.jsx("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8 relative z-10",children:l.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[l.jsx("h2",{className:"text-4xl sm:text-5xl font-bold text-primary-foreground mb-6",children:"Stop Wasting Hours on Manual Research"}),l.jsx("p",{className:"text-xl text-primary-foreground/90 mb-4",children:"While your competitors are still copying LinkedIn profiles, you'll have AI that scans the web overnight, learns what insights YOU value, and tells you exactly which deals are heating up and why."}
572),l.jsx("p",{className:"text-lg text-primary-foreground/80 mb-8",children:"Start your free 14-day trial today. No credit card required. Setup takes 5 minutes."}),l.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center items-center",children:[l.jsx(we,{variant:"hero",size:"lg",className:"group bg-accent-foreground text-white font-bold hover:bg-accent-foreground/90",asChild:!0,onClick:n,children:l.jsxs(tt,{to:"/auth",children:["Get Started Free",l.jsx(ey,{className:"w-5 h-5 group-hover:translate-x-1 transition-transform"})]})}),l.jsx(we,{variant:"glass",size:"lg",className:"text-primary-foreground border-primary-foreground/30",asChild:!0,onClick:r,children:l.jsx("a",{href:"https://calendar.google.com/calendar/u/0/appointments/schedules/AcZssZ1twZ_mN9sx3AaIP-SHwYP7v3PPh_Etam_2SWvsVKt-H4GdznvVwFtyP39mlYG1obquCw9SjSvF",target:"_blank",rel:"noopener noreferrer",children:"Schedule a Demo"})})]}),l.jsxs("div",{className:"mt-8 flex flex-wrap justify-center gap-6 text-primary-foreground/80 text-sm font-medium",children:[l.jsx("span",{children:"â 14-day free trial"}),l.jsx("span",{children:"â No credit card needed"}),l.jsx("span",{children:"â Cancel anytime"}),l.jsx("span",{children:"â Setup in 5 minutes"})]}),l.jsxs("div",{className:"mt-12 grid grid-cols-3 gap-4 sm:gap-8 max-w-3xl mx-auto",children:[l.jsxs("div",{className:"text-center",children:[l.jsx("div",{className:"text-2xl sm:text-4xl font-bold text-primary-foreground mb-1 sm:mb-2",children:"15+"}),l.jsx("div",{className:"text-sm text-primary-foreground/80",children:"Hours saved per week"})]}),l.jsxs("div",{className:"text-center",children:[l.jsx("div",{className:"text-2xl sm:text-4xl font-bold text-primary-foreground mb-1 sm:mb-2",children:"3x"}),l.jsx("div",{className:"text-sm text-primary-foreground/80",children:"Higher reply rates"})]}),l.jsxs("div",{className:"text-center",children:[l.jsx("div",{className:"text-2xl sm:text-4xl font-bold text-primary-foreground mb-1 sm:mb-2",children:"100%"}),l.jsx("div",{className:"text-sm text-primary-foreground/80",children:"Automated nightly scanning"})]})]})]})})]})},U9=()=>l.jsx("footer",{className:"bg-card border-t border-border",children:l.jsxs("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[l.jsxs("div",{className:"grid md:grid-cols-3 gap-8 mb-8",children:[l.jsxs("div",{children:[l.jsx("h3",{className:"font-bold text-foreground text-lg mb-4",children:"Product"}),l.jsxs("ul",{className:"space-y-2",children:[l.jsx("li",{children:l.jsx(tt,{to:"/features",className:"text-muted-foreground hover:text-foreground transition-colors",children:"Features"})}),l.jsx("li",{children:l.jsx(tt,{to:"/pricing",className:"text-muted-foreground hover:text-foreground transition-colors",children:"Pricing"})}),l.jsx("li",{children:l.jsx(tt,{to:"/competitors",className:"text-muted-foreground hover:text-foreground transition-colors",children:"vs Competitors"})}),l.jsx("li",{children:l.jsx(tt,{to:"/integrations",className:"text-muted-foreground hover:text-foreground transition-colors",children:"Integrations"})}),l.jsx("li",{children:l.jsx(tt,{to:"/api",className:"text-muted-foreground hover:text-foreground transition-colors",children:"API"})}),l.jsx("li",{children:l.jsx("a",{href:"https://chromewebstore.google.com/search/replyhounds",target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground hover:text-foreground transition-colors",children:"Gmail Extension"})})]})]}),l.jsxs("div",{children:[l.jsx("h3",{className:"font-bold text-foreground text-lg mb-4",children:"Company"}),l.jsxs("ul",{className:"space-y-2",children:[l.jsx("li",{children:l.jsx(tt,{to:"/about",className:"text-muted-foreground hover:text-foreground transition-colors",children:"About Us"})}),l.jsx("li",{children:l.jsx(tt,{to:"/help",className:"text-muted-foreground hover:text-foreground transition-colors",children:"Help & Docs"})}),l.jsx("li",{children:l.jsx(tt,{to:"/terms",className:"text-muted-foreground hover:text-foreground transition-colors",children:"Terms of Use"})}),l.jsx("li",{children:l.jsx(tt,{to:"/privacy",className:"text-muted-foreground hover:text-foreground transition-colors",children:"Privacy Policy"})})]})]}),l.jsxs("div",{children:[l.jsx("h3",{className:"font-bold text-foreground text-lg mb-4",children:"Connect"}),l.jsxs("div",{className:"flex gap-4",children:[l.jsx("a",{href:"#twitter",className:"p-2 rounded-lg bg-secondary hover:bg-secondary/80 text-foreground transition-colors",children:l.jsx(hA,{className:"w-5 h-5"})}),l.jsx("a",{href:"#linkedin",className:"p-2 rounded-lg bg-secondary hover:bg-secondary/80 text-foreground transition-colors",children:l.jsx(Lk,{className:"w-5 h-5"})}),l.jsx("a",{href:"mailto:[email protected]",className:"p-2 rounded-lg bg-secondary hover:bg-secondary/80 text-foreground transition-colors",children:l.jsx(Ds,{className:"w-5 h-5"})}),l.jsx("a",{href:"https://chromewebstore.google.com/search/replyhounds",target:"_blank",rel:"noopener noreferrer",className:"p-2 rounded-lg bg-secondary hover:bg-secondary/80 text-foreground transition-colors",children:l.jsx(ny,{className:"w-5 h-5"})})]})]})]}),l.jsxs("div",{className:"pt-8 border-t border-border flex flex-col md:flex-row justify-between items-center gap-4",children:[l.jsx("p",{className:"text-muted-foreground text-sm",children:"© 2025 Replyhound. All rights reserved."}),l.jsxs("div",{className:"flex gap-6 text-sm",children:[l.jsx(tt,{to:"/privacy",className:"text-muted-foreground hover:text-foreground transition-colors",children:"Privacy Policy"}),l.jsx(tt,{to:"/terms",className:"text-muted-foreground hover:text-foreground transition-colors",children:"Terms of Service"})]})]})]})}),B9=({title:e="Replyhounds | AI Sales Agents for EdTech",description:t="AI sales agents find leads, research prospects, draft personalized emails, and track signals. Save 15+ hrs/week. Built for K-12 and higher ed.",keywords:n="AI sales agents, AI sales intelligence, EdTech sales, K-12 sales, higher ed sales, deal intelligence, intent signals, prospect research, cold email automation, CRM intelligence, sales enablement, closed-loop intelligence",canonical:r,ogImage:s="https://replyhounds.lovable.app/logo.png",ogType:i="website",structuredData:o})=>{const a=Yr(),c=r??`https://replyhounds.lovable.app${a.pathname}`;return l.jsxs(OR,{children:[l.jsx("title",{children:e}),l.jsx("meta",{name:"title",content:e}),l.jsx("meta",{name:"description",content:t}),l.jsx("meta",{name:"keywords",content:n}),l.jsx("link",{rel:"canonical",href:c}),l.jsx("meta",{property:"og:type",content:i}),l.jsx("meta",{property:"og:url",content:c}),l.jsx("meta",{property:"og:title",content:e}),l.jsx("meta",{property:"og:description",content:t}),l.jsx("meta",{property:"og:image",content:s}),l.jsx("meta",{property:"og:site_name",content:"Replyhounds"}),l.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),l.jsx("meta",{name:"twitter:url",content:c}),l.jsx("meta",{name:"twitter:title",content:e}),l.jsx("meta",{name:"twitter:description",content:t}),l.jsx("meta",{name:"twitter:image",content:s}),o&&l.jsx("script",{type:"application/ld+json",children:JSON.stringify(o)})]})},H9=()=>{const{trackScrollDepth:e,trackSectionViewed:t}=df(),[n,r]=p.useState(new Set),[s,i]=p.useState(new Set),o=p.useRef({});p.useEffect(()=>{const c=()=>{const u=document.documentElement.scrollHeight-window.innerHeight,d=Math.round(window.scrollY/u*100);
572[25,50,75,100].forEach(m=>{d>=m&&!n.has(m)&&(e(m),r(h=>new Set([...h,m])))})};return window.addEventListener("scroll",c,{passive:!0}),()=>window.removeEventListener("scroll",c)},[n,e]),p.useEffect(()=>{const c=new IntersectionObserver(u=>{u.forEach(d=>{if(d.isIntersecting){const f=d.target.getAttribute("data-section");f&&!s.has(f)&&(t(f),i(m=>new Set([...m,f])))}})},{threshold:.3});return Object.values(o.current).forEach(u=>{u&&c.observe(u)}),()=>c.disconnect()},[s,t]);const a={"@context":"https://schema.org","@graph":[{"@type":"WebPage",name:"Replyhounds â AI Sales Agents for EdTech Sales Teams",description:"AI sales agents find leads, research prospects, draft personalized emails & track every signal. Built for K-12 & higher ed.",url:"https://replyhounds.lovable.app/"},{"@type":"SoftwareApplication",name:"Replyhounds",applicationCategory:"BusinessApplication",applicationSubCategory:"Sales Enablement Software",operatingSystem:"Web",image:"https://replyhounds.lovable.app/logo.png",description:"AI-powered cold email platform and sales enablement tool with automated prospect research, intent signals, and context-driven personalization.",offers:{"@type":"AggregateOffer",priceCurrency:"USD",lowPrice:"49",highPrice:"199",offerCount:"3"},aggregateRating:{"@type":"AggregateRating",ratingValue:"4.8",ratingCount:"127"}},{"@type":"Product",name:"Replyhounds Sales Enablement Platform",description:"Complete sales enablement solution with AI-powered prospect research, email personalization, and intent signal tracking.",image:"https://replyhounds.lovable.app/logo.png",brand:{"@type":"Brand",name:"Replyhounds"},aggregateRating:{"@type":"AggregateRating",ratingValue:"4.8",reviewCount:"127",bestRating:"5",worstRating:"1"},review:[{"@type":"Review",reviewRating:{"@type":"Rating",ratingValue:"5",bestRating:"5"},author:{"@type":"Person",name:"Sarah M."},reviewBody:"Replyhounds has transformed how our EdTech sales team researches and engages with K-12 prospects. The AI-driven personalization and intent signals save us hours every week."},{"@type":"Review",reviewRating:{"@type":"Rating",ratingValue:"5",bestRating:"5"},author:{"@type":"Person",name:"David L."},reviewBody:"The closed-loop intelligence and verified citations make Replyhounds far more reliable than generic AI tools. A must-have for higher-ed sales teams."}],offers:[{"@type":"Offer",name:"Starter Plan",price:"49",priceCurrency:"USD",availability:"https://schema.org/InStock",url:"https://replyhounds.lovable.app/#pricing",hasMerchantReturnPolicy:{"@type":"MerchantReturnPolicy",applicableCountry:"US",returnPolicyCategory:"https://schema.org/MerchantReturnFiniteReturnWindow",merchantReturnDays:14,returnMethod:"https://schema.org/ReturnByMail",returnFees:"https://schema.org/FreeReturn"},shippingDetails:{"@type":"OfferShippingDetails",shippingRate:{"@type":"MonetaryAmount",value:"0",currency:"USD"},shippingDestination:{"@type":"DefinedRegion",addressCountry:"US"},doesNotShip:!0}},{"@type":"Offer",name:"Professional Plan",price:"99",priceCurrency:"USD",availability:"https://schema.org/InStock",url:"https://replyhounds.lovable.app/#pricing",hasMerchantReturnPolicy:{"@type":"MerchantReturnPolicy",applicableCountry:"US",returnPolicyCategory:"https://schema.org/MerchantReturnFiniteReturnWindow",merchantReturnDays:14,returnMethod:"https://schema.org/ReturnByMail",returnFees:"https://schema.org/FreeReturn"},shippingDetails:{"@type":"OfferShippingDetails",shippingRate:{"@type":"MonetaryAmount",value:"0",currency:"USD"},shippingDestination:{"@type":"DefinedRegion",addressCountry:"US"},doesNotShip:!0}},{"@type":"Offer",name:"Enterprise Plan",price:"199",priceCurrency:"USD",availability:"https://schema.org/InStock",url:"https://replyhounds.lovable.app/#pricing",hasMerchantReturnPolicy:{"@type":"MerchantReturnPolicy",applicableCountry:"US",returnPolicyCategory:"https://schema.org/MerchantReturnFiniteReturnWindow",merchantReturnDays:14,returnMethod:"https://schema.org/ReturnByMail",returnFees:"https://schema.org/FreeReturn"},shippingDetails:{"@type":"OfferShippingDetails",shippingRate:{"@type":"MonetaryAmount",value:"
5720",currency:"USD"},shippingDestination:{"@type":"DefinedRegion",addressCountry:"US"},doesNotShip:!0}}]},{"@type":"FAQPage",mainEntity:[{"@type":"Question",name:"Is Replyhounds better than Reply.io or Saleshandy?",acceptedAnswer:{"@type":"Answer",text:"Replyhounds focuses on AI-powered sales enablement and context-driven personalization, not just cold email automation. We automatically research each prospect and insert relevant context about funding rounds, job changes, mutual connections, and industry news."}},{"@type":"Question",name:"What makes Replyhounds different from other cold email tools?",acceptedAnswer:{"@type":"Answer",text:"Most cold email platforms just automate sending. Replyhounds combines AI research, intent signal detection, job change monitoring, and competitive intelligence to give your sales team the context they need for every conversation."}},{"@type":"Question",name:"How much does Replyhounds cost compared to other platforms?",acceptedAnswer:{"@type":"Answer",text:"Plans start at $49/user/month. All plans include AI research, CRM integrations, and sales enablement tools. Enterprise plans with unlimited lookups are $199/month."}}]}]};return l.jsxs(l.Fragment,{children:[l.jsx(B9,{title:"Replyhounds â AI Sales Agents for EdTech Sales Teams",description:"AI sales agents find leads, research prospects, draft personalized emails & track every signal. Built for K-12 & higher ed. Free 14-day trial.",keywords:"AI sales agents, AI sales intelligence, EdTech sales, K-12 sales, higher ed sales, deal intelligence, intent signals, prospect research, cold email automation, CRM intelligence, sales enablement, closed-loop intelligence",canonical:"https://replyhounds.lovable.app/",ogImage:"https://replyhounds.lovable.app/logo.png",structuredData:a}),l.jsx($8,{}),l.jsxs("main",{className:"min-h-screen",itemScope:!0,itemType:"https://schema.org/WebPage",children:[l.jsx("div",{"data-section":"hero",ref:c=>o.current.hero=c,children:l.jsx(F8,{})}),l.jsx("div",{id:"features","data-section":"why-different",ref:c=>o.current["why-different"]=c,children:l.jsx(W8,{})}),l.jsx("div",{"data-section":"scout",ref:c=>o.current.scout=c,children:l.jsx(K8,{})}),l.jsx("section",{id:"pricing","aria-label":"Pricing Plans","data-section":"pricing",ref:c=>o.current.pricing=c,children:l.jsx(GC,{})}),l.jsx("div",{id:"cost-calculator","data-section":"cost-calculator",ref:c=>o.current["cost-calculator"]=c,children:l.jsx(y9,{})}),l.jsx("div",{"data-section":"competitor-comparison",ref:c=>o.current["competitor-comparison"]=c,children:l.jsx(Q8,{})}),l.jsx("section",{id:"faq","aria-label":"Frequently Asked Questions","data-section":"faq",ref:c=>o.current.faq=c,children:l.jsx(z9,{})}),l.jsx("div",{"data-section":"final-cta",ref:c=>o.current["final-cta"]=c,children:l.jsx(F9,{})}),l.jsx(U9,{})]})]})};var gf="Tabs",[V9,gq]=Yt(gf,[ef]),mN=ef(),[W9,pv]=V9(gf),gN=p.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:s,defaultValue:i,orientation:o="horizontal",dir:a,activationMode:c="automatic",...u}=e,d=ha(a),[f,m]=kr({prop:r,onChange:s,defaultProp:i??"",caller:gf});return l.jsx(W9,{scope:n,baseId:jt(),value:f,onValueChange:m,orientation:o,dir:d,activationMode:c,children:l.jsx(ue.div,{dir:d,"data-orientation":o,...u,ref:t})})});gN.displayName=gf;var yN="TabsList",vN=p.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...s}=e,i=pv(yN,n),o=mN(n);return l.jsx(WE,{asChild:!0,...o,orientation:i.orientation,dir:i.dir,loop:r,children:l.jsx(ue.div,{role:"tablist","aria-orientation":i.orientation,...s,ref:t})})});vN.displayName=yN;var xN="TabsTrigger",wN=p.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:s=!1,...i}=e,o=pv(xN,n),a=mN(n),c=kN(o.baseId,r),u=SN(o.baseId,r),d=r===o.value;return l.jsx(qE,{asChild:!0,...a,focusable:!s,active:d,children:l.jsx(ue.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":u,"data-state":d?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:c,...i,ref:t,onMouseDown:ne(e.onMouseDown,f=>{!s&&f.button===0&&f.ctrlKey===!1?o.onValueChange(r):f.preventDefault()}),onKeyDown:ne(e.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&o.onValueChange(r)}),onFocus:ne(e.onFocus,()=>{const f=o.activationMode!=="manual";!d&&!s&&f&&o.onValueChange(r)})})})});wN.displayName=xN;var bN="TabsContent",_N=p.forwardRef((e,t)=>
572{const{__scopeTabs:n,value:r,forceMount:s,children:i,...o}=e,a=pv(bN,n),c=kN(a.baseId,r),u=SN(a.baseId,r),d=r===a.value,f=p.useRef(d);return p.useEffect(()=>{const m=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(m)},[]),l.jsx(Tt,{present:s||d,children:({present:m})=>l.jsx(ue.div,{"data-state":d?"active":"inactive","data-orientation":a.orientation,role:"tabpanel","aria-labelledby":c,hidden:!m,id:u,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0},children:m&&i})})});_N.displayName=bN;function kN(e,t){return`${e}-trigger-${t}`}function SN(e,t){return`${e}-content-${t}`}var q9=gN,EN=vN,jN=wN,CN=_N;const ci=q9,vs=p.forwardRef(({className:e,...t},n)=>l.jsx(EN,{ref:n,className:X("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));vs.displayName=EN.displayName;const ft=p.forwardRef(({className:e,...t},n)=>l.jsx(jN,{ref:n,className:X("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",e),...t}));ft.displayName=jN.displayName;const ht=p.forwardRef(({className:e,...t},n)=>l.jsx(CN,{ref:n,className:X("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));ht.displayName=CN.displayName;var K9="Label",NN=p.forwardRef((e,t)=>l.jsx(ue.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())}}));NN.displayName=K9;var TN=NN;const G9=ia("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),cr=p.forwardRef(({className:e,...t},n)=>l.jsx(TN,{ref:n,className:X(G9(),e),...t}));cr.displayName=TN.displayName;var Ae;(function(e){e.assertEqual=s=>{};function t(s){}e.assertIs=t;function n(s){throw new Error}e.assertNever=n,e.arrayToEnum=s=>{const i={};for(const o of s)i[o]=o;return i},e.getValidEnumValues=s=>{const i=e.objectKeys(s).filter(a=>typeof s[s[a]]!="number"),o={};for(const a of i)o[a]=s[a];return e.objectValues(o)},e.objectValues=s=>e.objectKeys(s).map(function(i){return s[i]}),e.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const i=[];for(const o in s)Object.prototype.hasOwnProperty.call(s,o)&&i.push(o);return i},e.find=(s,i)=>{for(const o of s)if(i(o))return o},e.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&Number.isFinite(s)&&Math.floor(s)===s;function r(s,i=" | "){return s.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}e.joinValues=r,e.jsonStringifyReplacer=(s,i)=>typeof i=="bigint"?i.toString():i})(Ae||(Ae={}));var eb;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(eb||(eb={}));const ae=Ae.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),fs=e=>{switch(typeof e){case"undefined":return ae.undefined;case"string":return ae.string;case"number":return Number.isNaN(e)?ae.nan:ae.number;case"boolean":return ae.boolean;case"function":return ae.function;case"bigint":return ae.bigint;case"symbol":return ae.symbol;case"object":return Array.isArray(e)?ae.array:e===null?ae.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?ae.promise:typeof Map<"u"&&e instanceof Map?ae.map:typeof Set<"u"&&e instanceof Set?ae.set:typeof Date<"u"&&e instanceof Date?ae.date:ae.object;default:return ae.unknown}}
vendor: 4,365 bytes, line 572
572,Y=Ae.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class En extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(i){return i.message},r={_errors:[]},s=i=>{for(const o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(s);else if(o.code==="invalid_return_type")s(o.returnTypeError);else if(o.code==="invalid_arguments")s(o.argumentsError);else if(o.path.length===0)r._errors.push(n(o));else{let a=r,c=0;for(;c<o.path.length;){const u=o.path[c];c===o.path.length-1?(a[u]=a[u]||{_errors:[]},a[u]._errors.push(n(o))):a[u]=a[u]||{_errors:[]},a=a[u],c++}}};return s(this),r}static assert(t){if(!(t instanceof En))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Ae.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const s of this.issues)if(s.path.length>0){const i=s.path[0];n[i]=n[i]||[],n[i].push(t(s))}else r.push(t(s));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}En.create=e=>new En(e);const Hm=(e,t)=>{let n;switch(e.code){case Y.invalid_type:e.received===ae.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case Y.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Ae.jsonStringifyReplacer)}`;break;case Y.unrecognized_keys:n=`Unrecognized key(s) in object: ${Ae.joinValues(e.keys,", ")}`;break;case Y.invalid_union:n="Invalid input";break;case Y.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Ae.joinValues(e.options)}`;break;case Y.invalid_enum_value:n=`Invalid enum value. Expected ${Ae.joinValues(e.options)}, received '${e.received}'`;break;case Y.invalid_arguments:n="Invalid function arguments";break;case Y.invalid_return_type:n="Invalid function return type";break;case Y.invalid_date:n="Invalid date";break;case Y.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:Ae.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case Y.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case Y.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case Y.custom:n="Invalid input";break;
vendor: 7,530 bytes, line 572
572case Y.invalid_intersection_types:n="Intersection results could not be merged";break;case Y.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case Y.not_finite:n="Number must be finite";break;default:n=t.defaultError,Ae.assertNever(e)}return{message:n}};let Y9=Hm;function Q9(){return Y9}const Z9=e=>{const{data:t,path:n,errorMaps:r,issueData:s}=e,i=[...n,...s.path||[]],o={...s,path:i};if(s.message!==void 0)return{...s,path:i,message:s.message};let a="";const c=r.filter(u=>!!u).slice().reverse();for(const u of c)a=u(o,{data:t,defaultError:a}).message;return{...s,path:i,message:a}};function ie(e,t){const n=Q9(),r=Z9({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Hm?void 0:Hm].filter(s=>!!s)});e.common.issues.push(r)}class dn{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const s of n){if(s.status==="aborted")return pe;s.status==="dirty"&&t.dirty(),r.push(s.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const s of n){const i=await s.key,o=await s.value;r.push({key:i,value:o})}return dn.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const s of n){const{key:i,value:o}=s;if(i.status==="aborted"||o.status==="aborted")return pe;i.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||s.alwaysSet)&&(r[i.value]=o.value)}return{status:t.value,value:r}}}const pe=Object.freeze({status:"aborted"}),Ua=e=>({status:"dirty",value:e}),Tn=e=>({status:"valid",value:e}),tb=e=>e.status==="aborted",nb=e=>e.status==="dirty",Qo=e=>e.status==="valid",ad=e=>typeof Promise<"u"&&e instanceof Promise;var le;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(le||(le={}));class Ws{constructor(t,n,r,s){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=s}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const rb=(e,t)=>{if(Qo(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new En(e.common.issues);return this._error=n,this._error}}};function Se(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:s}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:s}:{errorMap:(o,a)=>{const{message:c}=e;return o.code==="invalid_enum_value"?{message:c??a.defaultError}:typeof a.data>"u"?{message:c??r??a.defaultError}:o.code!=="invalid_type"?{message:a.defaultError}:{message:c??n??a.defaultError}},description:s}}class Pe{get description(){return this._def.description}_getType(t){return fs(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:fs(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new dn,ctx:{common:t.parent.common,data:t.data,parsedType:fs(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(ad(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){const r={common:{issues:[],async:(n==null?void 0:n.async)??!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:fs(t)},s=this._parseSync({data:t,path:r.path,parent:r});return rb(r,s)}"~validate"(t){var r,s;const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:fs(t)};if(!this["~standard"].async)try{const i=this._parseSync({data:t,path:[],parent:n});return Qo(i)?{value:i.value}:{issues:n.common.issues}}catch(i){(s=(r=i==null?void 0:i.message)==null?void 0:r.toLowerCase())!=null&&s.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(i=>Qo(i)?{value:i.value}:{issues:n.common.issues})}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:fs(t)},s=this._parse({data:t,path:r.path,parent:r}),i=await(ad(s)?s:Promise.resolve(s));return rb(r,i)}refine(t,n){const r=s=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(s):n;return this._refinement((s,i)=>{const o=t(s),a=()=>i.addIssue({code:Y.custom,...r(s)});return typeof Promise<"u"&&o instanceof Promise?o.then(c=>c?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(t,n){return this._refinement((r,s)=>t(r)?!0:(s.addIssue(typeof n=="function"?n(r,s):n),!1))}_refinement(t){return new Jo({schema:this,typeName:me.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return Fs.create(this,this._def)}nullable(){return ea.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return wr.create(this)}promise(){return dd.create(this,this._def)}or(t){return cd.create([this,t],this._def)}and(t){return ud.create(this,t,this._def)}transform(t){return new Jo({...Se(this._def),schema:this,typeName:me.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new qm({...Se(this._def),innerType:this,defaultValue:n,typeName:me.ZodDefault})}brand(){return new wH({typeName:me.ZodBranded,type:this,...Se(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Km({...Se(this._def),innerType:this,catchValue:n,typeName:me.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return mv.create(this,t)}readonly(){return Gm.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const X9=/^c[^\s-]{8,}
vendor: 10,619 bytes, line 572
572$/i,J9=/^[0-9a-z]+$/,eH=/^[0-9A-HJKMNP-TV-Z]{26}$/i,tH=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,nH=/^[a-z0-9_-]{21}$/i,rH=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,sH=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,iH=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,oH="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let $h;const aH=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,lH=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,cH=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,uH=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,dH=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,fH=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,PN="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",hH=new RegExp(`^${PN}$`);function RN(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function pH(e){return new RegExp(`^${RN(e)}$`)}function mH(e){let t=`${PN}T${RN(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function gH(e,t){return!!((t==="v4"||!t)&&aH.test(e)||(t==="v6"||!t)&&cH.test(e))}function yH(e,t){if(!rH.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),s=JSON.parse(atob(r));return!(typeof s!="object"||s===null||"typ"in s&&(s==null?void 0:s.typ)!=="JWT"||!s.alg||t&&s.alg!==t)}catch{return!1}}function vH(e,t){return!!((t==="v4"||!t)&&lH.test(e)||(t==="v6"||!t)&&uH.test(e))}class Cs extends Pe{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==ae.string){const i=this._getOrReturnCtx(t);return ie(i,{code:Y.invalid_type,expected:ae.string,received:i.parsedType}),pe}const r=new dn;let s;for(const i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(s=this._getOrReturnCtx(t,s),ie(s,{code:Y.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="max")t.data.length>i.value&&(s=this._getOrReturnCtx(t,s),ie(s,{code:Y.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="length"){const o=t.data.length>i.value,a=t.data.length<i.value;(o||a)&&(s=this._getOrReturnCtx(t,s),o?ie(s,{code:Y.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):a&&ie(s,{code:Y.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),r.dirty())}else if(i.kind==="email")iH.test(t.data)||(s=this._getOrReturnCtx(t,s),ie(s,{validation:"email",code:Y.invalid_string,message:i.message}),r.dirty());else if(i.kind==="emoji")$h||($h=new RegExp(oH,"u")),$h.test(t.data)||(s=this._getOrReturnCtx(t,s),ie(s,{validation:"emoji",code:Y.invalid_string,message:i.message}),r.dirty());else if(i.kind==="uuid")tH.test(t.data)||(s=this._getOrReturnCtx(t,s),ie(s,{validation:"uuid",code:Y.invalid_string,message:i.message}),r.dirty());else if(i.kind==="nanoid")nH.test(t.data)||(s=this._getOrReturnCtx(t,s),ie(s,{validation:"nanoid",code:Y.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid")X9.test(t.data)||(s=this._getOrReturnCtx(t,s),ie(s,{validation:"cuid",code:Y.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid2")J9.test(t.data)||(s=this._getOrReturnCtx(t,s),ie(s,{validation:"cuid2",code:Y.invalid_string,message:i.message}),r.dirty());else if(i.kind==="ulid")eH.test(t.data)||(s=this._getOrReturnCtx(t,s),ie(s,{validation:"ulid",code:Y.invalid_string,message:i.message}),r.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{s=this._getOrReturnCtx(t,s),ie(s,{validation:"url",code:Y.invalid_string,message:i.message}),r.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(s=this._getOrReturnCtx(t,s),ie(s,{validation:"regex",code:Y.invalid_string,message:i.message}),r.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(s=this._getOrReturnCtx(t,s),ie(s,{code:Y.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),r.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(s=this._getOrReturnCtx(t,s),ie(s,{code:Y.invalid_string,validation:{startsWith:i.value},message:i.message}),r.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(s=this._getOrReturnCtx(t,s),ie(s,{code:Y.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty()):i.kind==="datetime"?mH(i).test(t.data)||(s=this._getOrReturnCtx(t,s),ie(s,{code:Y.invalid_string,validation:"datetime",message:i.message}),r.dirty()):i.kind==="date"?hH.test(t.data)||(s=this._getOrReturnCtx(t,s),ie(s,{code:Y.invalid_string,validation:"date",message:i.message}),r.dirty()):i.kind==="time"?pH(i).test(t.data)||(s=this._getOrReturnCtx(t,s),ie(s,{code:Y.invalid_string,validation:"time",message:i.message}),r.dirty()):i.kind==="duration"?sH.test(t.data)||(s=this._getOrReturnCtx(t,s),ie(s,{validation:"duration",code:Y.invalid_string,message:i.message}),r.dirty()):i.kind==="ip"?gH(t.data,i.version)||(s=this._getOrReturnCtx(t,s),ie(s,{validation:"ip",code:Y.invalid_string,message:i.message}),r.dirty()):i.kind==="jwt"?yH(t.data,i.alg)||(s=this._getOrReturnCtx(t,s),ie(s,{validation:"jwt",code:Y.invalid_string,message:i.message}),r.dirty()):i.kind==="cidr"?vH(t.data,i.version)||(s=this._getOrReturnCtx(t,s),ie(s,{validation:"cidr",code:Y.invalid_string,message:i.message}),r.dirty()):i.kind==="base64"?dH.test(t.data)||(s=this._getOrReturnCtx(t,s),ie(s,{validation:"base64",code:Y.invalid_string,message:i.message}),r.dirty()):i.kind==="base64url"?fH.test(t.data)||(s=this._getOrReturnCtx(t,s),ie(s,{validation:"base64url",code:Y.invalid_string,message:i.message}),r.dirty()):Ae.assertNever(i);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(s=>t.test(s),{validation:n,code:Y.invalid_string,...le.errToObj(r)})}_addCheck(t){return new Cs({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...le.errToObj(t)})}url(t){return this._addCheck({kind:"url",...le.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...le.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...le.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...le.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...le.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...le.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...le.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...le.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...le.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...le.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...le.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...le.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...le.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...le.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...le.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...le.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...le.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...le.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...le.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...le.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...le.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...le.errToObj(n)})}nonempty(t){return this.min(1,le.errToObj(t))}trim(){return new Cs({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Cs({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Cs({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}
vendor: 4,664 bytes, line 572
572get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Cs.create=e=>new Cs({checks:[],typeName:me.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...Se(e)});function xH(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,s=n>r?n:r,i=Number.parseInt(e.toFixed(s).replace(".","")),o=Number.parseInt(t.toFixed(s).replace(".",""));return i%o/10**s}class Zo extends Pe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==ae.number){const i=this._getOrReturnCtx(t);return ie(i,{code:Y.invalid_type,expected:ae.number,received:i.parsedType}),pe}let r;const s=new dn;for(const i of this._def.checks)i.kind==="int"?Ae.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{code:Y.invalid_type,expected:"integer",received:"float",message:i.message}),s.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),ie(r,{code:Y.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),ie(r,{code:Y.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):i.kind==="multipleOf"?xH(t.data,i.value)!==0&&(r=this._getOrReturnCtx(t,r),ie(r,{code:Y.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{code:Y.not_finite,message:i.message}),s.dirty()):Ae.assertNever(i);return{status:s.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,le.toString(n))}gt(t,n){return this.setLimit("min",t,!1,le.toString(n))}lte(t,n){return this.setLimit("max",t,!0,le.toString(n))}lt(t,n){return this.setLimit("max",t,!1,le.toString(n))}setLimit(t,n,r,s){return new Zo({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:le.toString(s)}]})}_addCheck(t){return new Zo({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:le.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:le.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:le.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:le.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:le.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:le.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:le.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:le.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:le.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&Ae.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}
vendor: 6,707 bytes, line 572
572}Zo.create=e=>new Zo({checks:[],typeName:me.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Se(e)});class Fl extends Pe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==ae.bigint)return this._getInvalidInput(t);let r;const s=new dn;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),ie(r,{code:Y.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),ie(r,{code:Y.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),ie(r,{code:Y.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):Ae.assertNever(i);return{status:s.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return ie(n,{code:Y.invalid_type,expected:ae.bigint,received:n.parsedType}),pe}gte(t,n){return this.setLimit("min",t,!0,le.toString(n))}gt(t,n){return this.setLimit("min",t,!1,le.toString(n))}lte(t,n){return this.setLimit("max",t,!0,le.toString(n))}lt(t,n){return this.setLimit("max",t,!1,le.toString(n))}setLimit(t,n,r,s){return new Fl({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:le.toString(s)}]})}_addCheck(t){return new Fl({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:le.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:le.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:le.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:le.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:le.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Fl.create=e=>new Fl({checks:[],typeName:me.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...Se(e)});class sb extends Pe{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==ae.boolean){const r=this._getOrReturnCtx(t);return ie(r,{code:Y.invalid_type,expected:ae.boolean,received:r.parsedType}),pe}return Tn(t.data)}}sb.create=e=>new sb({typeName:me.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Se(e)});class ld extends Pe{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==ae.date){const i=this._getOrReturnCtx(t);return ie(i,{code:Y.invalid_type,expected:ae.date,received:i.parsedType}),pe}if(Number.isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return ie(i,{code:Y.invalid_date}),pe}const r=new dn;let s;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(s=this._getOrReturnCtx(t,s),ie(s,{code:Y.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),r.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(s=this._getOrReturnCtx(t,s),ie(s,{code:Y.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):Ae.assertNever(i);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new ld({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:le.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:le.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}ld.create=e=>new ld({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:me.ZodDate,...Se(e)});class ib extends Pe{_parse(t){if(this._getType(t)!==ae.symbol){const r=this._getOrReturnCtx(t);return ie(r,{code:Y.invalid_type,expected:ae.symbol,received:r.parsedType}),pe}return Tn(t.data)}}ib.create=e=>new ib({typeName:me.ZodSymbol,...Se(e)});class ob extends Pe{_parse(t){if(this._getType(t)!==ae.undefined){const r=this._getOrReturnCtx(t);return ie(r,{code:Y.invalid_type,expected:ae.undefined,received:r.parsedType}),pe}return Tn(t.data)}}ob.create=e=>new ob({typeName:me.ZodUndefined,...Se(e)});class ab extends Pe{_parse(t){if(this._getType(t)!==ae.null){const r=this._getOrReturnCtx(t);return ie(r,{code:Y.invalid_type,expected:ae.null,received:r.parsedType}),pe}return Tn(t.data)}}ab.create=e=>new ab({typeName:me.ZodNull,...Se(e)});class lb extends Pe{constructor(){super(...arguments),this._any=!0}_parse(t){return Tn(t.data)}}lb.create=e=>new lb({typeName:me.ZodAny,...Se(e)});class cb extends Pe{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Tn(t.data)}}cb.create=e=>new cb({typeName:me.ZodUnknown,...Se(e)});class qs extends Pe{_parse(t){const n=this._getOrReturnCtx(t);return ie(n,{code:Y.invalid_type,expected:ae.never,received:n.parsedType}),pe}}qs.create=e=>new qs({typeName:me.ZodNever,...Se(e)});class ub extends Pe{_parse(t){if(this._getType(t)!==ae.undefined){const r=this._getOrReturnCtx(t);return ie(r,{code:Y.invalid_type,expected:ae.void,received:r.parsedType}),pe}return Tn(t.data)}}ub.create=e=>new ub({typeName:me.ZodVoid,...Se(e)});class wr extends Pe{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),s=this._def;if(n.parsedType!==ae.array)return ie(n,{code:Y.invalid_type,expected:ae.array,received:n.parsedType}),pe;if(s.exactLength!==null){const o=n.data.length>s.exactLength.value,a=n.data.length<s.exactLength.value;(o||a)&&(ie(n,{code:o?Y.too_big:Y.too_small,minimum:a?s.exactLength.value:void 0,maximum:o?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),r.dirty())}if(s.minLength!==null&&n.data.length<s.minLength.value&&(ie(n,{code:Y.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),r.dirty()),s.maxLength!==null&&n.data.length>s.maxLength.value&&(ie(n,{code:Y.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((o,a)=>s.type._parseAsync(new Ws(n,o,n.path,a)))).then(o=>dn.mergeArray(r,o));const i=[...n.data].map((o,a)=>s.type._parseSync(new Ws(n,o,n.path,a)));return dn.mergeArray(r,i)}
vendor: 5,224 bytes, line 572
572get element(){return this._def.type}min(t,n){return new wr({...this._def,minLength:{value:t,message:le.toString(n)}})}max(t,n){return new wr({...this._def,maxLength:{value:t,message:le.toString(n)}})}length(t,n){return new wr({...this._def,exactLength:{value:t,message:le.toString(n)}})}nonempty(t){return this.min(1,t)}}wr.create=(e,t)=>new wr({type:e,minLength:null,maxLength:null,exactLength:null,typeName:me.ZodArray,...Se(t)});function to(e){if(e instanceof Xe){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Fs.create(to(r))}return new Xe({...e._def,shape:()=>t})}else return e instanceof wr?new wr({...e._def,type:to(e.element)}):e instanceof Fs?Fs.create(to(e.unwrap())):e instanceof ea?ea.create(to(e.unwrap())):e instanceof Ri?Ri.create(e.items.map(t=>to(t))):e}class Xe extends Pe{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=Ae.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==ae.object){const u=this._getOrReturnCtx(t);return ie(u,{code:Y.invalid_type,expected:ae.object,received:u.parsedType}),pe}const{status:r,ctx:s}=this._processInputParams(t),{shape:i,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof qs&&this._def.unknownKeys==="strip"))for(const u in s.data)o.includes(u)||a.push(u);const c=[];for(const u of o){const d=i[u],f=s.data[u];c.push({key:{status:"valid",value:u},value:d._parse(new Ws(s,f,s.path,u)),alwaysSet:u in s.data})}if(this._def.catchall instanceof qs){const u=this._def.unknownKeys;if(u==="passthrough")for(const d of a)c.push({key:{status:"valid",value:d},value:{status:"valid",value:s.data[d]}});else if(u==="strict")a.length>0&&(ie(s,{code:Y.unrecognized_keys,keys:a}),r.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const d of a){const f=s.data[d];c.push({key:{status:"valid",value:d},value:u._parse(new Ws(s,f,s.path,d)),alwaysSet:d in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const u=[];for(const d of c){const f=await d.key,m=await d.value;u.push({key:f,value:m,alwaysSet:d.alwaysSet})}return u}).then(u=>dn.mergeObjectSync(r,u)):dn.mergeObjectSync(r,c)}get shape(){return this._def.shape()}strict(t){return le.errToObj,new Xe({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var i,o;const s=((o=(i=this._def).errorMap)==null?void 0:o.call(i,n,r).message)??r.defaultError;return n.code==="unrecognized_keys"?{message:le.errToObj(t).message??s}:{message:s}}}:{}})}strip(){return new Xe({...this._def,unknownKeys:"strip"})}passthrough(){return new Xe({...this._def,unknownKeys:"passthrough"})}extend(t){return new Xe({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Xe({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:me.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Xe({...this._def,catchall:t})}pick(t){const n={};for(const r of Ae.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new Xe({...this._def,shape:()=>n})}omit(t){const n={};for(const r of Ae.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new Xe({...this._def,shape:()=>n})}deepPartial(){return to(this)}partial(t){const n={};for(const r of Ae.objectKeys(this.shape)){const s=this.shape[r];t&&!t[r]?n[r]=s:n[r]=s.optional()}return new Xe({...this._def,shape:()=>n})}required(t){const n={};for(const r of Ae.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof Fs;)i=i._def.innerType;n[r]=i}return new Xe({...this._def,shape:()=>n})}keyof(){return IN(Ae.objectKeys(this.shape))}}Xe.create=(e,t)=>new Xe({shape:()=>e,unknownKeys:"strip",catchall:qs.create(),typeName:me.ZodObject,...Se(t)});Xe.strictCreate=(e,t)=>new Xe({shape:()=>e,unknownKeys:"strict",catchall:qs.create(),typeName:me.ZodObject,...Se(t)});Xe.lazycreate=(e,t)=>new Xe({shape:e,unknownKeys:"strip",catchall:qs.create(),typeName:me.ZodObject,...Se(t)});class cd extends Pe{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function s(i){for(const a of i)if(a.result.status==="valid")return a.result;for(const a of i)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;const o=i.map(a=>new En(a.ctx.common.issues));return ie(n,{code:Y.invalid_union,unionErrors:o}),pe}if(n.common.async)return Promise.all(r.map(async i=>{const o={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(s);{let i;const o=[];for(const c of r){const u={...n,common:{...n.common,issues:[]},parent:null},d=c._parseSync({data:n.data,path:n.path,parent:u});if(d.status==="valid")return d;d.status==="dirty"&&!i&&(i={result:d,ctx:u}),u.common.issues.length&&o.push(u.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;const a=o.map(c=>new En(c));return ie(n,{code:Y.invalid_union,unionErrors:a}),pe}}get options(){return this._def.options}}cd.create=(e,t)=>
vendor: 4,401 bytes, line 572
572new cd({options:e,typeName:me.ZodUnion,...Se(t)});function Vm(e,t){const n=fs(e),r=fs(t);if(e===t)return{valid:!0,data:e};if(n===ae.object&&r===ae.object){const s=Ae.objectKeys(t),i=Ae.objectKeys(e).filter(a=>s.indexOf(a)!==-1),o={...e,...t};for(const a of i){const c=Vm(e[a],t[a]);if(!c.valid)return{valid:!1};o[a]=c.data}return{valid:!0,data:o}}else if(n===ae.array&&r===ae.array){if(e.length!==t.length)return{valid:!1};const s=[];for(let i=0;i<e.length;i++){const o=e[i],a=t[i],c=Vm(o,a);if(!c.valid)return{valid:!1};s.push(c.data)}return{valid:!0,data:s}}else return n===ae.date&&r===ae.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class ud extends Pe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),s=(i,o)=>{if(tb(i)||tb(o))return pe;const a=Vm(i.value,o.value);return a.valid?((nb(i)||nb(o))&&n.dirty(),{status:n.value,value:a.data}):(ie(r,{code:Y.invalid_intersection_types}),pe)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([i,o])=>s(i,o)):s(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}ud.create=(e,t,n)=>new ud({left:e,right:t,typeName:me.ZodIntersection,...Se(n)});class Ri extends Pe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ae.array)return ie(r,{code:Y.invalid_type,expected:ae.array,received:r.parsedType}),pe;if(r.data.length<this._def.items.length)return ie(r,{code:Y.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),pe;!this._def.rest&&r.data.length>this._def.items.length&&(ie(r,{code:Y.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const i=[...r.data].map((o,a)=>{const c=this._def.items[a]||this._def.rest;return c?c._parse(new Ws(r,o,r.path,a)):null}).filter(o=>!!o);return r.common.async?Promise.all(i).then(o=>dn.mergeArray(n,o)):dn.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new Ri({...this._def,rest:t})}}Ri.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Ri({items:e,typeName:me.ZodTuple,rest:null,...Se(t)})};class db extends Pe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ae.map)return ie(r,{code:Y.invalid_type,expected:ae.map,received:r.parsedType}),pe;const s=this._def.keyType,i=this._def.valueType,o=[...r.data.entries()].map(([a,c],u)=>({key:s._parse(new Ws(r,a,r.path,[u,"key"])),value:i._parse(new Ws(r,c,r.path,[u,"value"]))}));if(r.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const c of o){const u=await c.key,d=await c.value;if(u.status==="aborted"||d.status==="aborted")return pe;(u.status==="dirty"||d.status==="dirty")&&n.dirty(),a.set(u.value,d.value)}return{status:n.value,value:a}})}else{const a=new Map;for(const c of o){const u=c.key,d=c.value;if(u.status==="aborted"||d.status==="aborted")return pe;(u.status==="dirty"||d.status==="dirty")&&n.dirty(),a.set(u.value,d.value)}return{status:n.value,value:a}}}}db.create=(e,t,n)=>new db({valueType:t,keyType:e,typeName:me.ZodMap,...Se(n)});class Ul extends Pe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ae.set)return ie(r,{code:Y.invalid_type,expected:ae.set,received:r.parsedType}),pe;const s=this._def;s.minSize!==null&&r.data.size<s.minSize.value&&(ie(r,{code:Y.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),n.dirty()),s.maxSize!==null&&r.data.size>s.maxSize.value&&(ie(r,{code:Y.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),n.dirty());const i=this._def.valueType;function o(c){const u=new Set;for(const d of c){if(d.status==="aborted")return pe;d.status==="dirty"&&n.dirty(),u.add(d.value)}return{status:n.value,value:u}}const a=[...r.data.values()].map((c,u)=>i._parse(new Ws(r,c,r.path,u)));return r.common.async?Promise.all(a).then(c=>o(c)):o(a)}min(t,n){return new Ul({...this._def,minSize:{value:t,message:le.toString(n)}})}max(t,n){return new Ul({...this._def,maxSize:{value:t,message:le.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Ul.create=(e,t)=>
vendor: 4,649 bytes, line 572
572new Ul({valueType:e,minSize:null,maxSize:null,typeName:me.ZodSet,...Se(t)});class fb extends Pe{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}fb.create=(e,t)=>new fb({getter:e,typeName:me.ZodLazy,...Se(t)});class Wm extends Pe{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return ie(n,{received:n.data,code:Y.invalid_literal,expected:this._def.value}),pe}return{status:"valid",value:t.data}}get value(){return this._def.value}}Wm.create=(e,t)=>new Wm({value:e,typeName:me.ZodLiteral,...Se(t)});function IN(e,t){return new Xo({values:e,typeName:me.ZodEnum,...Se(t)})}class Xo extends Pe{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return ie(n,{expected:Ae.joinValues(r),received:n.parsedType,code:Y.invalid_type}),pe}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return ie(n,{received:n.data,code:Y.invalid_enum_value,options:r}),pe}return Tn(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Xo.create(t,{...this._def,...n})}exclude(t,n=this._def){return Xo.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}Xo.create=IN;class hb extends Pe{_parse(t){const n=Ae.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==ae.string&&r.parsedType!==ae.number){const s=Ae.objectValues(n);return ie(r,{expected:Ae.joinValues(s),received:r.parsedType,code:Y.invalid_type}),pe}if(this._cache||(this._cache=new Set(Ae.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const s=Ae.objectValues(n);return ie(r,{received:r.data,code:Y.invalid_enum_value,options:s}),pe}return Tn(t.data)}get enum(){return this._def.values}}hb.create=(e,t)=>new hb({values:e,typeName:me.ZodNativeEnum,...Se(t)});class dd extends Pe{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ae.promise&&n.common.async===!1)return ie(n,{code:Y.invalid_type,expected:ae.promise,received:n.parsedType}),pe;const r=n.parsedType===ae.promise?n.data:Promise.resolve(n.data);return Tn(r.then(s=>this._def.type.parseAsync(s,{path:n.path,errorMap:n.common.contextualErrorMap})))}}dd.create=(e,t)=>new dd({type:e,typeName:me.ZodPromise,...Se(t)});class Jo extends Pe{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===me.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),s=this._def.effect||null,i={addIssue:o=>{ie(r,o),o.fatal?n.abort():n.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),s.type==="preprocess"){const o=s.transform(r.data,i);if(r.common.async)return Promise.resolve(o).then(async a=>{if(n.value==="aborted")return pe;const c=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return c.status==="aborted"?pe:c.status==="dirty"||n.value==="dirty"?Ua(c.value):c});{if(n.value==="aborted")return pe;const a=this._def.schema._parseSync({data:o,path:r.path,parent:r});return a.status==="aborted"?pe:a.status==="dirty"||n.value==="dirty"?Ua(a.value):a}}if(s.type==="refinement"){const o=a=>{const c=s.refinement(a,i);if(r.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?pe:(a.status==="dirty"&&n.dirty(),o(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>a.status==="aborted"?pe:(a.status==="dirty"&&n.dirty(),o(a.value).then(()=>({status:n.value,value:a.value}))))}if(s.type==="transform")if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Qo(o))return pe;const a=s.transform(o.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>Qo(o)?Promise.resolve(s.transform(o.value,i)).then(a=>({status:n.value,value:a})):pe);Ae.assertNever(s)}}
572Jo.create=(e,t,n)=>new Jo({schema:e,typeName:me.ZodEffects,effect:t,...Se(n)});Jo.createWithPreprocess=(e,t,n)=>new Jo({schema:t,effect:{type:"preprocess",transform:e},typeName:me.ZodEffects,...Se(n)});class Fs extends Pe{_parse(t){return this._getType(t)===ae.undefined?Tn(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Fs.create=(e,t)=>new Fs({innerType:e,typeName:me.ZodOptional,...Se(t)});class ea extends Pe{_parse(t){return this._getType(t)===ae.null?Tn(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}ea.create=(e,t)=>new ea({innerType:e,typeName:me.ZodNullable,...Se(t)});class qm extends Pe{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===ae.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}qm.create=(e,t)=>new qm({innerType:e,typeName:me.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Se(t)});class Km extends Pe{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},s=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return ad(s)?s.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new En(r.common.issues)},input:r.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new En(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Km.create=(e,t)=>new Km({innerType:e,typeName:me.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Se(t)});class pb extends Pe{_parse(t){if(this._getType(t)!==ae.nan){const r=this._getOrReturnCtx(t);return ie(r,{code:Y.invalid_type,expected:ae.nan,received:r.parsedType}),pe}return{status:"valid",value:t.data}}}pb.create=e=>new pb({typeName:me.ZodNaN,...Se(e)});class wH extends Pe{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class mv extends Pe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?pe:i.status==="dirty"?(n.dirty(),Ua(i.value)):this._def.out._parseAsync({data:i.value,path:r.path,parent:r})})();{const s=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?pe:s.status==="dirty"?(n.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:r.path,parent:r})}}static create(t,n){return new mv({in:t,out:n,typeName:me.ZodPipeline})}}class Gm extends Pe{_parse(t){const n=this._def.innerType._parse(t),r=s=>(Qo(s)&&(s.value=Object.freeze(s.value)),s);return ad(n)?n.then(s=>r(s)):r(n)}unwrap(){return this._def.innerType}}Gm.create=(e,t)=>new Gm({innerType:e,typeName:me.ZodReadonly,...Se(t)});Xe.lazycreate;var me;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(me||(me={}));const hi=Cs.create,yq=Zo.create;qs.create;wr.create;const gv=Xe.create;Xe.strictCreate;cd.create;ud.create;Ri.create;const vq=Wm.create;Xo.create;dd.create;Fs.create;ea.create;const fd="/assets/replyhound-logo-new-BDqyQsjl.png",bH=gv({email:hi().email("Invalid email address"),password:hi().min(6,"Password must be at least 6 characters"),fullName:hi().min(2,"Name must be at least 2 characters"),companyName:hi().optional()}),_H=gv({email:hi().email("Invalid email address"),password:hi().min(1,"Password is required")}),kH=gv({email:hi().email("Invalid email address")}),SH=()=>{const e=Er(),[t]=ZS(),{toast:n}=Gr(),[r,s]=p.useState(!1),[i,o]=p.useState(!1),a=t.get("tab")==="signup"?"signup":"signin",[c,u]=p.useState(""),[d,f]=p.useState(""),[m,h]=p.useState(""),[y,g]=p.useState(""),[w,v]=p.useState(""),[x,b]=p.useState(""),[_,j]=p.useState(""),k=new URLSearchParams(window.location.search).get("extension")==="true",C=t.get("next"),N=C&&C.startsWith("/")&&!C.startsWith("//")?C:null;p.useEffect(()=>{const P=R=>{var z,U;window.localStorage.setItem("rh_extension_token",R.access_token),window.localStorage.setItem("rh_extension_refresh",R.refresh_token||""),window.localStorage.setItem("rh_extension_email",((z=R.user)==null?void 0:z.email)||""),window.dispatchEvent(new CustomEvent("rh-extension-auth",{detail:{token:R.access_token,refresh:R.refresh_token||"",email:((U=R.user)==null?void 0:U.email)||""}})),o(!0)};ce.auth.getSession().then(({data:{session:R}})=>{R&&(k?P(R):e(N||"/dashboard"))});const{data:{subscription:L}}=ce.auth.onAuthStateChange((R,z)=>{R==="SIGNED_IN"&&z&&(k?P(z):N?e(N):t.get("tab")==="signup"?e("/welcome"):e("/dashboard"))});return()=>L.unsubscribe()},[e,k,N]);const T=async P=>{var L;P.preventDefault(),s(!0);try{const R=bH.parse({email:c,password:d,fullName:m,companyName:y}),z=`${window.location.origin}${N??"/dashboard"}`,{error:U}=await ce.auth.signUp({email:R.email,password:R.password,options:{emailRedirectTo:z,data:{full_name:R.fullName,company_name:R.companyName}}});if(U)throw U;n({title:"Account created!",description:"Welcome to the platform. Redirecting to dashboard..."})}catch(R){R instanceof En?n({title:"Validation Error",description:R.errors[0].message,variant:"destructive"}):(L=R.message)!=null&&L.includes("already registered")?n({title:"Account exists",description:"This email is already registered. Please sign in instead.",variant:"destructive"}):n({title:"Error",description:R.message||"Failed to create account",variant:"destructive"})}finally{s(!1)}},A=async P=>{var L;P.preventDefault(),s(!0);try{const R=_H.parse({email:w,password:x}),{error:z}=await ce.auth.signInWithPassword({email:R.email,password:R.password});if(z)throw z;n({title:"Welcome back!",description:"Successfully signed in."})}catch(R){R instanceof En?n({title:"Validation Error",description:R.errors[0].message,variant:"destructive"}):(L=R.message)!=null&&L.includes("Invalid login credentials")?n({title:"Invalid credentials",description:"The email or password you entered is incorrect.",variant:"destructive"}):n({title:"Error",description:R.message||"Failed to sign in",variant:"destructive"})}finally{s(!1)}},M=async P=>{P.preventDefault(),s(!0);try{const L=kH.parse({email:_}),{error:R}=await ce.auth.resetPasswordForEmail(L.email,{redirectTo:`${window.location.origin}/auth?reset=true`});if(R)throw R;n({title:"Check your email",description:"We've sent you a password reset link. Click it to set a new password."}),j("")}catch(L){L instanceof En?n({title:"Validation Error",description:L.errors[0].message,variant:"destructive"}):n({title:"Error",description:L.message||"Failed to send reset email",variant:"destructive"})}finally{s(!1)}};return k&&i?l.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-br from-primary via-primary to-accent p-4",children:l.jsxs(Oe,{className:"w-full max-w-md p-8 shadow-[var(--shadow-large)] text-center",children:[l.jsx("img",{src:fd,alt:"Replyhounds Logo",className:"w-48 h-auto mx-auto mb-4"}),l.jsxs("div",{className:"flex items-center justify-center gap-2 mb-4",children:[l.jsx("span",{className:"inline-block w-3 h-3 rounded-full bg-green-500"}),l.jsx("h1",{className:"text-2xl font-bold text-foreground",children:"Extension Connected!"})]}),l.jsx("p",{className:"text-muted-foreground mb-6",children:"Your ReplyHounds Chrome extension is now signed in. You can close this tab and open Gmail to start using it."}),l.jsx(we,{onClick:()=>window.close(),className:"w-full",children:"Close This Tab"})]})}):l.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-br from-primary via-primary to-accent p-4",children:l.jsxs(Oe,{className:"w-full max-w-md p-8 shadow-[var(--shadow-large)]",children:[l.jsxs("div",{className:"text-center mb-6",children:[l.jsx("img",{src:fd,alt:"Replyhounds Logo",className:"w-48 h-auto mx-auto mb-4"}),l.jsx("h1",{className:"text-3xl font-bold text-foreground mb-2",children:"Welcome to Replyhounds"}),l.jsx("p",{className:"text-muted-foreground",children:"AI that learns what insights YOU valueâevery ðð makes your deal intelligence smarter"})]}),l.jsxs(ci,{defaultValue:a,className:"w-full",children:[l.jsxs(vs,{className:"grid w-full grid-cols-3 mb-6",children:[l.jsx(ft,{value:"signin",children:"Sign In"}),l.jsx(ft,{value:"signup",children:"Sign Up"}),l.jsx(ft,{value:"reset",children:"Reset"})]}),l.jsx(ht,{value:"signin",children:l.jsxs("form",{onSubmit:A,className:"space-y-4",children:[l.jsxs("div",{className:"space-y-2",children:[l.jsx(cr,{htmlFor:"signin-email",children:"Email"}),l.jsxs("div",{className:"relative",children:[l.jsx(Ds,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),l.jsx(vn,{id:"signin-email",type:"email",placeholder:"[email protected]",value:w,onChange:P=>v(P.target.value),className:"pl-10",required:!0})]})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(cr,{htmlFor:"signin-password",children:"Password"}),l.jsxs("div",{className:"relative",children:[l.jsx(Jp,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),l.jsx(vn,{id:"signin-password",type:"password",placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢",value:x,onChange:P=>b(P.target.value),className:"pl-10",required:!0})]})]}),l.jsx(we,{type:"submit",variant:"hero",size:"lg",className:"w-full",disabled:r,children:r?"Signing in...":"Sign In"})]})}),l.jsx(ht,{value:"signup",children:l.jsxs("form",{onSubmit:T,className:"space-y-4",children:[l.jsxs("div",{className:"space-y-2",children:[l.jsx(cr,{htmlFor:"signup-name",children:"Full Name"}),l.jsxs("div",{className:"relative",children:[l.jsx(Ls,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),l.jsx(vn,{id:"signup-name",type:"text",placeholder:"John Doe",value:m,onChange:P=>h(P.target.value),className:"pl-10",required:!0})]})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(cr,{htmlFor:"signup-company",children:"Company Name (Optional)"}),l.jsxs("div",{className:"relative",children:[l.jsx(Jl,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),l.jsx(vn,{id:"signup-company",type:"text",placeholder:"Acme Inc",value:y,onChange:P=>g(P.target.value),className:"pl-10"})]})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(cr,{htmlFor:"signup-email",children:"Email"}),l.jsxs("div",{className:"relative",children:[l.jsx(Ds,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),l.jsx(vn,{id:"signup-email",type:"email",placeholder:"[email protected]",value:c,onChange:P=>u(P.target.value),className:"pl-10",required:!0})]})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(cr,{htmlFor:"signup-password",children:"Password"}),l.jsxs("div",{className:"relative",children:[l.jsx(Jp,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),l.jsx(vn,{id:"signup-password",type:"password",placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢",value:d,onChange:P=>f(P.target.value),className:"pl-10",required:!0})]}),l.jsx("p",{className:"text-xs text-muted-foreground",children:"Must be at least 6 characters"})]}),l.jsx(we,{type:"submit",variant:"hero",size:"lg",className:"w-full",disabled:r,children:r?"Creating account...":"Start Free 14-Day Trial"}),l.jsx("div",{className:"mt-4 p-3 bg-primary/5 rounded-lg border border-primary/20",children:l.jsx("p",{className:"text-xs text-muted-foreground text-center",children:"⨠Includes: AI Learning System ⢠Deal Thermometer ⢠Nightly Intelligence ⢠No credit card required"})})]})}),l.jsx(ht,{value:"reset",children:l.jsxs("form",{onSubmit:M,className:"space-y-4",children:[l.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Enter your email address and we'll send you a link to reset your password."}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(cr,{htmlFor:"reset-email",children:"Email"}),l.jsxs("div",{className:"relative",children:[l.jsx(Ds,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),l.jsx(vn,{id:"reset-email",type:"email",placeholder:"[email protected]",value:_,onCh
572ange:P=>j(P.target.value),className:"pl-10",required:!0})]})]}),l.jsx(we,{type:"submit",variant:"hero",size:"lg",className:"w-full",disabled:r,children:r?"Sending reset link...":"Send Reset Link"})]})})]}),l.jsx("p",{className:"text-center text-sm text-muted-foreground mt-6",children:"By continuing, you agree to our Terms of Service and Privacy Policy"})]})})},zh=()=>ce.auth.oauth;function EH(){var u,d;const[e]=ZS(),t=e.get("authorization_id")??"",[n,r]=p.useState(null),[s,i]=p.useState(null),[o,a]=p.useState(!1);p.useEffect(()=>{let f=!0;return(async()=>{if(!t){i("Missing authorization_id");return}const{data:m}=await ce.auth.getSession();if(!m.session){const w=window.location.pathname+window.location.search;window.location.href="/auth?next="+encodeURIComponent(w);return}const{data:h,error:y}=await zh().getAuthorizationDetails(t);if(!f)return;if(y){i(y.message);return}const g=(h==null?void 0:h.redirect_url)??(h==null?void 0:h.redirect_to);if(g&&!(h!=null&&h.client)){window.location.href=g;return}r(h)})(),()=>{f=!1}},[t]);async function c(f){a(!0);const{data:m,error:h}=f?await zh().approveAuthorization(t):await zh().denyAuthorization(t);if(h){a(!1),i(h.message);return}const y=(m==null?void 0:m.redirect_url)??(m==null?void 0:m.redirect_to);if(!y){a(!1),i("No redirect returned by the authorization server.");return}window.location.href=y}return l.jsx("main",{className:"min-h-screen flex items-center justify-center p-6 bg-background",children:l.jsx(Oe,{className:"w-full max-w-md p-8 space-y-6",children:s?l.jsxs(l.Fragment,{children:[l.jsx("h1",{className:"text-xl font-semibold",children:"Authorization failed"}),l.jsx("p",{className:"text-sm text-muted-foreground",children:s})]}):n?l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx(cA,{className:"h-6 w-6 text-primary"}),l.jsxs("h1",{className:"text-xl font-semibold",children:["Connect ",((u=n.client)==null?void 0:u.name)??"an app"," to ReplyHounds"]})]}),l.jsxs("p",{className:"text-sm text-muted-foreground",children:[((d=n.client)==null?void 0:d.name)??"This client"," will be able to read your prospects, organizations, deals and tasks, and create follow-up tasks as you."]}),l.jsxs("div",{className:"flex justify-end gap-2",children:[l.jsx(we,{variant:"outline",disabled:o,onClick:()=>c(!1),children:"Deny"}),l.jsxs(we,{disabled:o,onClick:()=>c(!0),children:[o&&l.jsx(El,{className:"mr-2 h-4 w-4 animate-spin"}),"Approve"]})]})]}):l.jsxs("div",{className:"flex items-center gap-3 text-muted-foreground",children:[l.jsx(El,{className:"h-5 w-5 animate-spin"}),l.jsx("span",{children:"Loading authorization requestâ¦"})]})})})}var mb=1,jH=.9,CH=.8,NH=.17,Fh=.1,Uh=.999,TH=.9999,PH=.99,RH=/[\\\/_+.#"@\[\(\{&]/,IH=/[\\\/_+.#"@\[\(\{&]/g,AH=/[\s-]/,AN=/[\s-]/g;function Ym(e,t,n,r,s,i,o){if(i===t.length)return s===e.length?mb:PH;var a=`${s},${i}`;if(o[a]!==void 0)return o[a];for(var c=r.charAt(i),u=n.indexOf(c,s),d=0,f,m,h,y;u>=0;)f=Ym(e,t,n,r,u+1,i+1,o),f>d&&(u===s?f*=mb:RH.test(e.charAt(u-1))?(f*=CH,h=e.slice(s,u-1).match(IH),h&&s>0&&(f*=Math.pow(Uh,h.length))):AH.test(e.charAt(u-1))?(f*=jH,y=e.slice(s,u-1).match(AN),y&&s>0&&(f*=Math.pow(Uh,y.length))):(f*=NH,s>0&&(f*=Math.pow(Uh,u-s))),e.charAt(u)!==t.charAt(i)&&(f*=TH)),(f<Fh&&n.charAt(u-1)===r.charAt(i+1)||r.charAt(i+1)===r.charAt(i)&&n.charAt(u-1)!==r.charAt(i))&&(m=Ym(e,t,n,r,u+1,i+2,o),m*Fh>f&&(f=m*Fh)),f>d&&(d=f),u=n.indexOf(c,u+1);return o[a]=d,d}function gb(e){return e.toLowerCase().replace(AN," ")}function OH(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,Ym(e,t,gb(e),gb(t),0,0,{})}var yf="Dialog",[ON,xq]=Yt(yf),[MH,er]=ON(yf),MN=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:s,onOpenChange:i,modal:o=!0}=e,a=p.useRef(null),c=p.useRef(null),[u,d]=kr({prop:r,defaultProp:s??!1,onChange:i,caller:yf});return l.jsx(MH,{scope:t,triggerRef:a,contentRef:c,contentId:jt(),titleId:jt(),descriptionId:jt(),open:u,onOpenChange:d,onOpenToggle:p.useCallback(()=>d(f=>!f),[d]),modal:o,children:n})};MN.displayName=yf;var DN="DialogTrigger",LN=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=er(DN,n),i=Ne(t,s.triggerRef);return l.jsx(ue.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":xv(s.open
vendor: 4,522 bytes, lines 572-576
572),...r,ref:i,onClick:ne(e.onClick,s.onOpenToggle)})});LN.displayName=DN;var yv="DialogPortal",[DH,$N]=ON(yv,{forceMount:void 0}),zN=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:s}=e,i=er(yv,t);return l.jsx(DH,{scope:t,forceMount:n,children:p.Children.map(r,o=>l.jsx(Tt,{present:n||i.open,children:l.jsx(Rd,{asChild:!0,container:s,children:o})}))})};zN.displayName=yv;var hd="DialogOverlay",FN=p.forwardRef((e,t)=>{const n=$N(hd,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,i=er(hd,e.__scopeDialog);return i.modal?l.jsx(Tt,{present:r||i.open,children:l.jsx($H,{...s,ref:t})}):null});FN.displayName=hd;var LH=Wo("DialogOverlay.RemoveScroll"),$H=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=er(hd,n);return l.jsx(Oy,{as:LH,allowPinchZoom:!0,shards:[s.contentRef],children:l.jsx(ue.div,{"data-state":xv(s.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Ii="DialogContent",UN=p.forwardRef((e,t)=>{const n=$N(Ii,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,i=er(Ii,e.__scopeDialog);return l.jsx(Tt,{present:r||i.open,children:i.modal?l.jsx(zH,{...s,ref:t}):l.jsx(FH,{...s,ref:t})})});UN.displayName=Ii;var zH=p.forwardRef((e,t)=>{const n=er(Ii,e.__scopeDialog),r=p.useRef(null),s=Ne(t,n.contentRef,r);return p.useEffect(()=>{const i=r.current;if(i)return GE(i)},[]),l.jsx(BN,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ne(e.onCloseAutoFocus,i=>{var o;i.preventDefault(),(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:ne(e.onPointerDownOutside,i=>{const o=i.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&i.preventDefault()}),onFocusOutside:ne(e.onFocusOutside,i=>i.preventDefault())})}),FH=p.forwardRef((e,t)=>{const n=er(Ii,e.__scopeDialog),r=p.useRef(!1),s=p.useRef(!1);return l.jsx(BN,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,a;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:i=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const o=i.target;((u=n.triggerRef.current)==null?void 0:u.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),BN=p.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,...o}=e,a=er(Ii,n),c=p.useRef(null),u=Ne(t,c);return $E(),l.jsxs(l.Fragment,{children:[l.jsx(Ay,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:i,children:l.jsx(Zl,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":xv(a.open),...o,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),l.jsxs(l.Fragment,{children:[l.jsx(UH,{titleId:a.titleId}),l.jsx(HH,{contentRef:c,descriptionId:a.descriptionId})]})]})}),vv="DialogTitle",HN=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=er(vv,n);return l.jsx(ue.h2,{id:s.titleId,...r,ref:t})});HN.displayName=vv;var VN="DialogDescription",WN=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=er(VN,n);return l.jsx(ue.p,{id:s.descriptionId,...r,ref:t})});WN.displayName=VN;var qN="DialogClose",KN=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=er(qN,n);return l.jsx(ue.button,{type:"button",...r,ref:t,onClick:ne(e.onClick,()=>s.onOpenChange(!1))})});KN.displayName=qN;function xv(e){return e?"open":"closed"}var GN="DialogTitleWarning",[wq,YN]=BR(GN,{contentName:Ii,titleName:vv,docsSlug:"dialog"}),UH=({titleId:e})=>{const t=YN(GN),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 573 574If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 575 576For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return p.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},BH="DialogDescriptionWarning",HH=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${YN(BH).contentName}}.`;return p.useEffect(()=>{var i;const s=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},wv=MN,QN=LN,bv=zN,cc=FN,uc=UN,vf=HN,xf=WN,ZN=KN,Oa='[cmdk-group=""]',Bh='[cmdk-group-items=""]',VH='[cmdk-group-heading=""]',XN='[cmdk-item=""]',yb=`${XN}
576:not([aria-disabled="true"])`,Qm="cmdk-item-select",no="data-value",WH=(e,t,n)=>OH(e,t,n),JN=p.createContext(void 0),dc=()=>p.useContext(JN),eT=p.createContext(void 0),_v=()=>p.useContext(eT),tT=p.createContext(void 0),nT=p.forwardRef((e,t)=>{let n=ro(()=>{var I,S;return{search:"",value:(S=(I=e.value)!=null?I:e.defaultValue)!=null?S:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=ro(()=>new Set),s=ro(()=>new Map),i=ro(()=>new Map),o=ro(()=>new Set),a=rT(e),{label:c,children:u,value:d,onValueChange:f,filter:m,shouldFilter:h,loop:y,disablePointerSelection:g=!1,vimBindings:w=!0,...v}=e,x=jt(),b=jt(),_=jt(),j=p.useRef(null),k=nV();Ai(()=>{if(d!==void 0){let I=d.trim();n.current.value=I,C.emit()}},[d]),Ai(()=>{k(6,L)},[]);let C=p.useMemo(()=>({subscribe:I=>(o.current.add(I),()=>o.current.delete(I)),snapshot:()=>n.current,setState:(I,S,q)=>{var Z,te,re,Ce;if(!Object.is(n.current[I],S)){if(n.current[I]=S,I==="search")P(),A(),k(1,M);else if(I==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let he=document.getElementById(_);he?he.focus():(Z=document.getElementById(x))==null||Z.focus()}if(k(7,()=>{var he;n.current.selectedItemId=(he=R())==null?void 0:he.id,C.emit()}),q||k(5,L),((te=a.current)==null?void 0:te.value)!==void 0){let he=S??"";(Ce=(re=a.current).onValueChange)==null||Ce.call(re,he);return}}C.emit()}},emit:()=>{o.current.forEach(I=>I())}}),[]),N=p.useMemo(()=>({value:(I,S,q)=>{var Z;S!==((Z=i.current.get(I))==null?void 0:Z.value)&&(i.current.set(I,{value:S,keywords:q}),n.current.filtered.items.set(I,T(S,q)),k(2,()=>{A(),C.emit()}))},item:(I,S)=>(r.current.add(I),S&&(s.current.has(S)?s.current.get(S).add(I):s.current.set(S,new Set([I]))),k(3,()=>{P(),A(),n.current.value||M(),C.emit()}),()=>{i.current.delete(I),r.current.delete(I),n.current.filtered.items.delete(I);let q=R();k(4,()=>{P(),(q==null?void 0:q.getAttribute("id"))===I&&M(),C.emit()})}),group:I=>(s.current.has(I)||s.current.set(I,new Set),()=>{i.current.delete(I),s.current.delete(I)}),filter:()=>a.current.shouldFilter,label:c||e["aria-label"],getDisablePointerSelection:()=>a.current.disablePointerSelection,listId:x,inputId:_,labelId:b,listInnerRef:j}),[]);function T(I,S){var q,Z;let te=(Z=(q=a.current)==null?void 0:q.filter)!=null?Z:WH;return I?te(I,n.current.search,S):0}function A(){if(!n.current.search||a.current.shouldFilter===!1)return;let I=n.current.filtered.items,S=[];n.current.filtered.groups.forEach(Z=>{let te=s.current.get(Z),re=0;te.forEach(Ce=>{let he=I.get(Ce);re=Math.max(he,re)}),S.push([Z,re])});let q=j.current;z().sort((Z,te)=>{var re,Ce;let he=Z.getAttribute("id"),Be=te.getAttribute("id");return((re=I.get(Be))!=null?re:0)-((Ce=I.get(he))!=null?Ce:0)}).forEach(Z=>{let te=Z.closest(Bh);te?te.appendChild(Z.parentElement===te?Z:Z.closest(`${Bh} > *`)):q.appendChild(Z.parentElement===q?Z:Z.closest(`${Bh} > *`))}),S.sort((Z,te)=>te[1]-Z[1]).forEach(Z=>{var te;let re=(te=j.current)==null?void 0:te.querySelector(`${Oa}[${no}="${encodeURIComponent(Z[0])}"]`);re==null||re.parentElement.appendChild(re)})}function M(){let I=z().find(q=>q.getAttribute("aria-disabled")!=="true"),S=I==null?void 0:I.getAttribute(no);C.setState("value",S||void 0)}function P(){var I,S,q,Z;if(!n.current.search||a.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let te=0;for(let re of r.current){let Ce=(S=(I=i.current.get(re))==null?void 0:I.value)!=null?S:"",he=(Z=(q=i.current.get(re))==null?void 0:q.keywords)!=null?Z:[],Be=T(Ce,he);n.current.filtered.items.set(re,Be),Be>0&&te++}for(let[re,Ce]of s.current)for(let he of Ce)if(n.current.filtered.items.get(he)>0){n.current.filtered.groups.add(re);break}n.current.filtered.count=te}function L(){var I,S,q;let Z=R();Z&&(((I=Z.parentElement)==null?void 0:I.firstChild)===Z&&((q=(S=Z.closest(Oa))==null?void 0:S.querySelector(VH))==null||q.scrollIntoView({block:"nearest"})),Z.scrollIntoView({block:"nearest"}))}function R(){var I;return(I=j.current)==null?void 0:I.querySelector(`${XN}[aria-selected="true"]`)}function z(){var I;return Array.from(((I=j.current)==null?void 0:I.querySelectorAll(yb))||[])}function U(I){let S=z()[I];S&&C.setState("value",S.getAttribute(no))}function V(I){var S;let q=R(),Z=z(),te=Z.findIndex(Ce=>Ce===q),re=Z[te+I];(S=a.current)!=null&&S.loop&&(re=te+I<0?Z[Z.length-1]:te+I===Z.length?Z[0]:Z[te+I]),re&&C.setState("value",re.getAttribute(no))}function D(I){let S=R(),q=S==null?void 0:S.closest(Oa),Z;for(;q&&!Z;)q=I>0?eV(q,Oa):tV(q,Oa),Z=q==null?void 0:q.querySelector(yb);Z?C.setState("value",Z.getAttribute(no)):V(I)}let O=()=>U(z().length-1),E=I=>{I.preventDefault(),I.metaKey?O():I.altKey?D(1):V(1)},B=I=>{I.preventDefault(),I.metaKey?U(0):I.altKey?D(-1):V(-1)};return p.createElement(ue.div,{ref:t,tabIndex:-1,...v,"cmdk-root":"",onKeyDown:I=>{var S;(S=v.onKeyDown)==null||S.call(v,I);let q=I.nativeEvent.isComposing||I.keyCode===229;if(!(I.defaultPrevented||q))switch(I.key){case"n":case"j":{w&&I.ctrlKey&&E(I);break}case"ArrowDown":{E(I);break}case"p":case"k":{w&&I.ctrlKey&&B(I);break}case"ArrowUp":{B(I);break}case"Home":{I.preventDefault(),U(0);break}case"End":{I.preventDefault(),O();break}case"Enter":{I.preventDefault();let Z=R();if(Z){let te=new Event(Qm);Z.dispatchEvent(te)}}}}},p.createElement("label",{"cmdk-label":"",htmlFor:N.inputId,id:N.labelId,style:sV},c),wf(e,I=>p.createElement(eT.Provider,{value:C},p.createElement(JN.Provider,{value:N},I))))}),qH=p.forwardRef((e,t)=>
vendor: 4,471 bytes, line 576
576{var n,r;let s=jt(),i=p.useRef(null),o=p.useContext(tT),a=dc(),c=rT(e),u=(r=(n=c.current)==null?void 0:n.forceMount)!=null?r:o==null?void 0:o.forceMount;Ai(()=>{if(!u)return a.item(s,o==null?void 0:o.id)},[u]);let d=sT(s,i,[e.value,e.children,i],e.keywords),f=_v(),m=Ks(k=>k.value&&k.value===d.current),h=Ks(k=>u||a.filter()===!1?!0:k.search?k.filtered.items.get(s)>0:!0);p.useEffect(()=>{let k=i.current;if(!(!k||e.disabled))return k.addEventListener(Qm,y),()=>k.removeEventListener(Qm,y)},[h,e.onSelect,e.disabled]);function y(){var k,C;g(),(C=(k=c.current).onSelect)==null||C.call(k,d.current)}function g(){f.setState("value",d.current,!0)}if(!h)return null;let{disabled:w,value:v,onSelect:x,forceMount:b,keywords:_,...j}=e;return p.createElement(ue.div,{ref:Vr(i,t),...j,id:s,"cmdk-item":"",role:"option","aria-disabled":!!w,"aria-selected":!!m,"data-disabled":!!w,"data-selected":!!m,onPointerMove:w||a.getDisablePointerSelection()?void 0:g,onClick:w?void 0:y},e.children)}),KH=p.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:s,...i}=e,o=jt(),a=p.useRef(null),c=p.useRef(null),u=jt(),d=dc(),f=Ks(h=>s||d.filter()===!1?!0:h.search?h.filtered.groups.has(o):!0);Ai(()=>d.group(o),[]),sT(o,a,[e.value,e.heading,c]);let m=p.useMemo(()=>({id:o,forceMount:s}),[s]);return p.createElement(ue.div,{ref:Vr(a,t),...i,"cmdk-group":"",role:"presentation",hidden:f?void 0:!0},n&&p.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),wf(e,h=>p.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},p.createElement(tT.Provider,{value:m},h))))}),GH=p.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,s=p.useRef(null),i=Ks(o=>!o.search);return!n&&!i?null:p.createElement(ue.div,{ref:Vr(s,t),...r,"cmdk-separator":"",role:"separator"})}),YH=p.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,s=e.value!=null,i=_v(),o=Ks(u=>u.search),a=Ks(u=>u.selectedItemId),c=dc();return p.useEffect(()=>{e.value!=null&&i.setState("search",e.value)},[e.value]),p.createElement(ue.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":a,id:c.inputId,type:"text",value:s?e.value:o,onChange:u=>{s||i.setState("search",u.target.value),n==null||n(u.target.value)}})}),QH=p.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...s}=e,i=p.useRef(null),o=p.useRef(null),a=Ks(u=>u.selectedItemId),c=dc();return p.useEffect(()=>{if(o.current&&i.current){let u=o.current,d=i.current,f,m=new ResizeObserver(()=>{f=requestAnimationFrame(()=>{let h=u.offsetHeight;d.style.setProperty("--cmdk-list-height",h.toFixed(1)+"px")})});return m.observe(u),()=>{cancelAnimationFrame(f),m.unobserve(u)}}},[]),p.createElement(ue.div,{ref:Vr(i,t),...s,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":a,"aria-label":r,id:c.listId},wf(e,u=>p.createElement("div",{ref:Vr(o,c.listInnerRef),"cmdk-list-sizer":""},u)))}),ZH=p.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:s,contentClassName:i,container:o,...a}=e;return p.createElement(wv,{open:n,onOpenChange:r},p.createElement(bv,{container:o},p.createElement(cc,{"cmdk-overlay":"",className:s}),p.createElement(uc,{"aria-label":e.label,"cmdk-dialog":"",className:i},p.createElement(nT,{ref:t,...a}))))}),XH=p.forwardRef((e,t)=>Ks(n=>n.filtered.count===0)?p.createElement(ue.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),JH=p.forwardRef((e,t)=>{let{progress:n,children:r,label:s="Loading...",...i}=e;return p.createElement(ue.div,{ref:t,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":s},wf(e,o=>p.createElement("div",{"aria-hidden":!0},o)))}),Zt=Object.assign(nT,{List:QH,Item:qH,Input:YH,Group:KH,Separator:GH,Dialog:ZH,Empty:XH,Loading:JH});function eV(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function tV(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function rT(e){let t=p.useRef(e);return Ai(()=>{t.current=e}),t}var Ai=typeof window>"u"?p.useEffect:p.useLayoutEffect;function ro(e){let t=p.useRef();return t.current===void 0&&(t.current=e()),t}function Ks(e){let t=_v(),n=()=>e(t.snapshot());return p.useSyncExternalStore(t.subscribe,n,n)}function sT(e,t,n,r=[]){let s=p.useRef(),i=dc();return Ai(()=>{var o;let a=(()=>{var u;
576for(let d of n){if(typeof d=="string")return d.trim();if(typeof d=="object"&&"current"in d)return d.current?(u=d.current.textContent)==null?void 0:u.trim():s.current}})(),c=r.map(u=>u.trim());i.value(e,a,c),(o=t.current)==null||o.setAttribute(no,a),s.current=a}),s}var nV=()=>{let[e,t]=p.useState(),n=ro(()=>new Map);return Ai(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,s)=>{n.current.set(r,s),t({})}};function rV(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function wf({asChild:e,children:t},n){return e&&p.isValidElement(t)?p.cloneElement(rV(t),{ref:t.ref},n(t.props.children)):n(t)}var sV={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const iV=wv,bq=QN,oV=bv,iT=p.forwardRef(({className:e,...t},n)=>l.jsx(cc,{ref:n,className:X("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}));iT.displayName=cc.displayName;const oT=p.forwardRef(({className:e,children:t,...n},r)=>l.jsxs(oV,{children:[l.jsx(iT,{}),l.jsxs(uc,{ref:r,className:X("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-6 border bg-background p-8 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:rounded-lg overflow-hidden",e),...n,children:[t,l.jsxs(ZN,{className:"absolute right-6 top-6 z-10 rounded-md bg-muted/80 p-2 text-muted-foreground transition-all hover:bg-muted hover:text-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[l.jsx(ln,{className:"h-5 w-5"}),l.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));oT.displayName=uc.displayName;const aV=({className:e,...t})=>l.jsx("div",{className:X("flex flex-col space-y-3 text-center sm:text-left -mx-8 -mt-8 pt-6 px-8 pb-5 bg-muted/30 border-b",e),...t});aV.displayName="DialogHeader";const lV=({className:e,...t})=>l.jsx("div",{className:X("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-3 pt-4",e),...t});lV.displayName="DialogFooter";const cV=p.forwardRef(({className:e,...t},n)=>l.jsx(vf,{ref:n,className:X("text-xl font-semibold leading-tight tracking-tight pr-8",e),...t}));cV.displayName=vf.displayName;const uV=p.forwardRef(({className:e,...t},n)=>l.jsx(xf,{ref:n,className:X("text-sm text-muted-foreground mt-2",e),...t}));uV.displayName=xf.displayName;const aT=p.forwardRef(({className:e,...t},n)=>l.jsx(Zt,{ref:n,className:X("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));aT.displayName=Zt.displayName;const dV=({children:e,...t})=>l.jsx(iV,{...t,children:l.jsx(oT,{className:"overflow-hidden p-0 shadow-lg",children:l.jsx(aT,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),lT=p.forwardRef(({className:e,...t},n)=>l.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[l.jsx(Md,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),l.jsx(Zt.Input,{ref:n,className:X("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));lT.displayName=Zt.Input.displayName;const cT=p.forwardRef(({className:e,...t},n)=>l.jsx(Zt.List,{ref:n,className:X("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));
576cT.displayName=Zt.List.displayName;const uT=p.forwardRef((e,t)=>l.jsx(Zt.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));uT.displayName=Zt.Empty.displayName;const Zm=p.forwardRef(({className:e,...t},n)=>l.jsx(Zt.Group,{ref:n,className:X("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));Zm.displayName=Zt.Group.displayName;const fV=p.forwardRef(({className:e,...t},n)=>l.jsx(Zt.Separator,{ref:n,className:X("-mx-1 h-px bg-border",e),...t}));fV.displayName=Zt.Separator.displayName;const Xm=p.forwardRef(({className:e,...t},n)=>l.jsx(Zt.Item,{ref:n,className:X("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50",e),...t}));Xm.displayName=Zt.Item.displayName;function vb(){const[e,t]=p.useState(!1),[n,r]=p.useState(""),[s,i]=p.useState([]),[o,a]=p.useState([]),c=Er();Gr(),p.useEffect(()=>{const f=m=>{m.key==="k"&&(m.metaKey||m.ctrlKey)&&(m.preventDefault(),t(h=>!h))};return document.addEventListener("keydown",f),()=>document.removeEventListener("keydown",f)},[]),p.useEffect(()=>
576{e&&u()},[e]),p.useEffect(()=>{n.length>1?d(n):i([])},[n]);const u=async()=>{try{const{data:{user:f}}=await ce.auth.getUser();if(!f)return;const{data:m}=await ce.from("prospects").select("id, full_name, email, company").eq("user_id",f.id).order("updated_at",{ascending:!1}).limit(3),h=(m||[]).map(y=>({id:y.id,type:"prospect",title:y.full_name||y.email,subtitle:y.company||void 0,icon:Ls,action:()=>{c(`/dashboard?tab=prospects&id=${y.id}`),t(!1)}}));a(h)}catch(f){console.error("Error fetching recent items:",f)}},d=async f=>{try{const{data:{user:m}}=await ce.auth.getUser();if(!m)return;const h=[],[{data:y},{data:g},{data:w}]=await Promise.all([ce.from("prospects").select("id, full_name, email, company, job_title").eq("user_id",m.id).or(`full_name.ilike.%${f}%,email.ilike.%${f}%,company.ilike.%${f}%`).limit(5),ce.from("organizations").select("id, name, industry, website").eq("user_id",m.id).ilike("name",`%${f}%`).limit(5),ce.from("my_contacts").select("id, contact_name, last_name, contact_email, company, contact_title").eq("user_id",m.id).or(`contact_name.ilike.%${f}%,last_name.ilike.%${f}%,contact_email.ilike.%${f}%,company.ilike.%${f}%`).limit(5)]);(y||[]).forEach(v=>{h.push({id:v.id,type:"prospect",title:v.full_name||v.email,subtitle:`${v.job_title||""} ${v.company?`at ${v.company}`:""}`.trim(),icon:Ls,action:()=>{c(`/dashboard?tab=prospects&id=${v.id}`),t(!1)}})}),(g||[]).forEach(v=>{h.push({id:v.id,type:"organization",title:v.name,subtitle:v.industry||v.website||void 0,icon:Jl,action:()=>{c(`/dashboard?tab=organizations&id=${v.id}`),t(!1)}})}),(w||[]).forEach(v=>{const x=[v.contact_name,v.last_name].filter(Boolean).join(" ");h.push({id:v.id,type:"prospect",title:x||v.contact_email||"Unknown",subtitle:`${v.contact_title||""} ${v.company?`at ${v.company}`:""}`.trim(),icon:Ls,action:()=>{c("/dashboard?tab=contacts"),t(!1)}})}),i(h)}catch(m){console.error("Error searching:",m)}};return l.jsxs(l.Fragment,{children:[l.jsxs("button",{onClick:()=>t(!0),className:"flex items-center gap-2 px-3 py-2 text-sm text-muted-foreground border rounded-md hover:bg-muted/50 transition-colors w-full md:w-64",children:[l.jsx(Md,{className:"h-4 w-4"}),l.jsx("span",{children:"Search..."}),l.jsxs("kbd",{className:"ml-auto pointer-events-none inline-flex h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[10px] font-medium text-muted-foreground",children:[l.jsx("span",{className:"text-xs",children:"â"}),"K"]})]}),l.jsxs(dV,{open:e,onOpenChange:t,children:[l.jsx(lT,{placeholder:"Search prospects, organizations, emails, notes...",value:n,onValueChange:r}),l.jsxs(cT,{children:[l.jsx(uT,{children:"No results found."}),s.length>0&&l.jsx(Zm,{heading:"Results",children:s.map(f=>l.jsxs(Xm,{onSelect:f.action,className:"flex items-center gap-3",children:[l.jsx(f.icon,{className:"h-4 w-4"}),l.jsxs("div",{className:"flex-1",children:[l.jsx("div",{className:"font-medium",children:f.title}),f.subtitle&&l.jsx("div",{className:"text-xs text-muted-foreground",children:f.subtitle})]})]},`${f.type}-${f.id}`))}),n.length<=1&&o.length>0&&l.jsx(Zm,{heading:"Recent",children:o.map(f=>l.jsxs(Xm,{onSelect:f.action,className:"flex items-center gap-3",children:[l.jsx(oa,{className:"h-4 w-4"}),l.jsxs("div",{className:"flex-1",children:[l.jsx("div",{className:"font-medium",children:f.title}),f.subtitle&&l.jsx("div",{className:"text-xs text-muted-foreground",children:f.subtitle})]})]},`recent-${f.id}`))})]})]})]})}const hV=({showDashboardLink:e=!0})=>{const t=Er(),n=Yr(),r=n.pathname==="/dashboard",s=()=>{t("/dashboard"),window.location.href="/dashboard"};return n.pathname==="/"?null:l.jsx("div",{className:"fixed top-0 right-0 z-40 p-4 flex gap-2",style:{paddingTop:"calc(env(safe-area-inset-top) + 1rem)",paddingRight:"calc(env(safe-area-inset-right) + 1rem)"},children:e&&!r&&l.jsxs(we,{onClick:s,variant:"ghost",size:"sm",className:"flex items-center gap-2 bg-card/80 backdrop-blur-sm hover:bg-card shadow-lg",children:[l.jsx(XI,{className:"h-4 w-4"}),l.jsx("span",{className:"hidden sm:inline",children:"Dashboard"})]})})},Hh=768;function kv(){const[e,t]=p.useState(void 0);return p.useEffect(()=>{const n=window.matchMedia(`(max-width: ${Hh-1}px)`),r=()=>{t(window.innerWidth<Hh)};return n.addEventListener("change",r),t(window.innerWidth<Hh),()=>n.removeEventListener("change",r)},[]),!!e}var pV="Separator",xb="horizontal",mV=["horizontal","vertical"],dT=p.forwardRef((e,t)=>
576{const{decorative:n,orientation:r=xb,...s}=e,i=gV(r)?r:xb,a=n?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return l.jsx(ue.div,{"data-orientation":i,...a,...s,ref:t})});dT.displayName=pV;function gV(e){return mV.includes(e)}var fT=dT;const hT=p.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},s)=>l.jsx(fT,{ref:s,decorative:n,orientation:t,className:X("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));hT.displayName=fT.displayName;const yV=wv,_q=QN,vV=bv,pT=p.forwardRef(({className:e,...t},n)=>l.jsx(cc,{className:X("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,ref:n}));pT.displayName=cc.displayName;const xV=ia("fixed z-50 gap-6 bg-background p-8 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),mT=p.forwardRef(({side:e="right",className:t,children:n,...r},s)=>l.jsxs(vV,{children:[l.jsx(pT,{}),l.jsxs(uc,{ref:s,className:X(xV({side:e}),t),...r,children:[n,l.jsxs(ZN,{className:"absolute right-4 top-4 roun
576ded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-secondary hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[l.jsx(ln,{className:"h-4 w-4"}),l.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));mT.displayName=uc.displayName;const wV=({className:e,...t})=>l.jsx("div",{className:X("flex flex-col space-y-3 text-center sm:text-left",e),...t});wV.displayName="SheetHeader";const bV=p.forwardRef(({className:e,...t},n)=>l.jsx(vf,{ref:n,className:X("text-xl font-semibold text-foreground leading-tight",e),...t}));bV.displayName=vf.displayName;const _V=p.forwardRef(({className:e,...t},n)=>l.jsx(xf,{ref:n,className:X("text-sm text-muted-foreground mt-2 leading-relaxed",e),...t}));_V.displayName=xf.displayName;function il({className:e,...t}){return l.jsx("div",{className:X("animate-pulse rounded-md bg-muted",e),...t})}const kV="sidebar:state",SV=60*60*24*7,EV="16rem",jV="18rem",CV="3rem",NV="b",gT=p.createContext(null);function fc(){const e=p.useContext(gT);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const yT=p.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:s,children:i,...o},a)=>{const c=kv(),[u,d]=p.useState(!1),[f,m]=p.useState(e),h=t??f,y=p.useCallback(x=>{const b=typeof x=="function"?x(h):x;n?n(b):m(b),document.cookie=`${kV}=${b}; path=/; max-age=${SV}`},[n,h]),g=p.useCallback(()=>c?d(x=>!x):y(x=>!x),[c,y,d]);p.useEffect(()=>{const x=b=>{b.key===NV&&(b.metaKey||b.ctrlKey)&&(b.preventDefault(),g())};return window.addEventListener("keydown",x),()=>window.removeEventListener("keydown",x)},[g]);const w=h?"expanded":"collapsed",v=p.useMemo(()=>({state:w,open:h,setOpen:y,isMobile:c,openMobile:u,setOpenMobile:d,toggleSidebar:g}),[w,h,y,c,u,d,g]);return l.jsx(gT.Provider,{value:v,children:l.jsx("div",{style:{"--sidebar-width":EV,"--sidebar-width-icon":CV,...s},className:X("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",r),ref:a,...o,children:i})})});yT.displayName="SidebarProvider";const vT=p.forwardRef(({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:s,...i},o)=>{const{isMobile:a,state:c,openMobile:u,setOpenMobile:d}=fc();return n==="none"?l.jsx("div",{className:X("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",r),ref:o,...i,children:s}):a?l.jsx(yV,{open:u,onOpenChange:d,...i,children:l.jsx(mT,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":jV},side:e,children:l.jsx("div",{className:"flex h-full w-full flex-col",children:s})})}):l.jsxs("div",{ref:o,className:"group peer hidden text-sidebar-foreground md:block","data-state":c,"data-collapsible":c==="collapsed"?n:"","data-variant":t,"data-side":e,children:[l.jsx("div",{className:X("relative h-svh w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),l.jsx("div",{className:X("fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...i,children:l.jsx("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:s})})]})});vT.displayName="Sidebar";const xT=p.forwardRef(({className:e,onClick:t,...n},r)=>{const{toggleSidebar:s}=fc();return l.jsxs(we,{ref:r,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:X("h-7 w-7",e),onClick:i=>{t==null||t(i),s()},...n,children:[l.jsx(iA,{}),l.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});xT.displayName="SidebarTrigger";const TV=p.forwardRef(({className:e,...t},n)=>{const{toggleSidebar:r}=fc();return l.jsx("button",{ref:n,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:X("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] group-data-[side=left]:-right-4 group-data-[side=right]:left-0 hover:after:bg-sidebar-border sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});TV.displayName="SidebarRail";const wT=p.forwardRef(({className:e,...t},n)=>l.jsx("main",{ref:n,className:X("relative flex min-h-svh flex-1 flex-col bg-background","peer-data-[variant=inset]:min-
576h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t}));wT.displayName="SidebarInset";const PV=p.forwardRef(({className:e,...t},n)=>l.jsx(vn,{ref:n,"data-sidebar":"input",className:X("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));PV.displayName="SidebarInput";const bT=p.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,"data-sidebar":"header",className:X("flex flex-col gap-2 p-2",e),...t}));bT.displayName="SidebarHeader";const RV=p.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,"data-sidebar":"footer",className:X("flex flex-col gap-2 p-2",e),...t}));RV.displayName="SidebarFooter";const IV=p.forwardRef(({className:e,...t},n)=>l.jsx(hT,{ref:n,"data-sidebar":"separator",className:X("mx-2 w-auto bg-sidebar-border",e),...t}));IV.displayName="SidebarSeparator";const _T=p.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,"data-sidebar":"content",className:X("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));_T.displayName="SidebarContent";const vu=p.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,"data-sidebar":"group",className:X("relative flex w-full min-w-0 flex-col p-2",e),...t}));vu.displayName="SidebarGroup";const Jm=p.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const s=t?sa:"div";return l.jsx(s,{ref:r,"data-sidebar":"group-label",className:X("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...n})});Jm.displayName="SidebarGroupLabel";const AV=p.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const s=t?sa:"button";return l.jsx(s,{ref:r,"data-sidebar":"group-action",className:X("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...n})});AV.displayName="SidebarGroupAction";const xu=p.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,"data-sidebar":"group-content",className:X("w-full text-sm",e),...t}));xu.displayName="SidebarGroupContent";const wu=p.forwardRef(({className:e,...t},n)=>l.jsx("ul",{ref:n,"data-sidebar":"menu",className:X("flex w-full min-w-0 flex-col gap-1",e),...t}));wu.displayName="SidebarMenu";const Ln=p.forwardRef(({className:e,...t},n)=>l.jsx("li",{ref:n,"data-sidebar":"menu-item",className:X("group/menu-item relative",e),...t}));Ln.displayName="SidebarMenuItem";const OV=ia("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),$n=p.forwardRef(({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:s,className:i,...o},a)=>{const c=e?sa:"button",{isMobile:u,state:d}=fc(),f=l.jsx(c,{ref:a,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:X(OV({variant:n,size:r}),i),...o});return s?(typeof s=="string"&&(s={children:s}),l.jsxs(pD,{children:[l.jsx(mD,{asChild:!0,children:f}),l.jsx(RS,{side:"right",align:"center",hidden:d!=="collapsed"||u,...s})]})):f});$n.displayName="SidebarMenuButton";const MV=p.forwardRef(({className:e,asChild:t=!1,showOnHover:n=!1,...r},s)=>{const i=t?sa:"button";return l.jsx(i,{ref:s,"data-sidebar":"menu-action",className:X("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform peer-hover/menu-button:text-sidebar-accent-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",n&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...r})});MV.displayName="SidebarMenuAction";const DV=p.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,"data-sidebar":"menu-badge",className:X("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));DV.displayName="SidebarMenuBadge";const LV=p.forwardRef(({className:e,showIcon:t=!1,...n},r)=>{const s=p.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return l.jsxs("div",{ref:r,"data-sidebar":"menu-skeleton",className:X("flex h-8 items-center gap-2 rounded-md px-2",e),...n,children:[t&&l.jsx(il,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),l.jsx(il,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":s}})]})});LV.displayName="SidebarMenuSkeleton";const $V=p.forwardRef(({className:e,...t},n)=>l.jsx("ul",{ref:n,"data-sidebar":"menu-sub",className:X("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));$V.displayName="SidebarMenuSub";const zV=p.forwardRef(({...e},t)=>l.jsx("li",{ref:t,...e}));zV.displayName="SidebarMenuSubItem";const FV=p.forwardRef(({asChild:e=!1,size:t="md",isActive:n,className:r,...s},i)=>{const o=e?sa:"a";return l.jsx(o,{ref:i,"data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:X("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring aria-disabled:pointer-events-none aria-disabled:opacity-50 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",r),...s})});FV.displayName="SidebarMenuSubButton";
576const Vh=XC,Wh=av,qh=cv,UV=[{group:"Work",items:[{title:"Home",value:"overview",icon:Mk},{title:"Inbox",value:"inbox",icon:Ds},{title:"Calendar",value:"calendar",icon:Zp},{title:"Tasks",value:"tasks",icon:oa},{title:"Knowledge Base",value:"knowledge-base",icon:Dk}]},{group:"Sell",items:[{title:"Scout",value:"sales-autopilot",icon:DI},{title:"Pipeline",value:"deals",icon:Xa},{title:"Account 360",value:"account-360",icon:Dd,link:"/account-360"},{title:"Proposal/Quote Builder",value:"proposals",icon:Sl,link:"/proposals"},{title:"Campaigns",value:"campaigns",icon:$k},{title:"Campaign HQ",value:"campaign-command",icon:aA,link:"/campaign-command"},{title:"Event Builder",value:"event-pages",icon:Zp},{title:"Sales Coach",value:"sales-coaching",icon:jl,link:"/sales-coaching"}],collapsedItems:[{title:"ROI Calculator",value:"sales-tools",icon:Pk},{title:"Battle Cards",value:"battle-cards",icon:sy},{title:"Win/Loss",value:"winloss",icon:ty},{title:"Gmail Extension",value:"chrome-extension",icon:ny,link:"/chrome-extension"}]},{group:"People",items:[{title:"Prospects",value:"prospects",icon:iy},{title:"Contacts",value:"contacts",icon:Ti},{title:"Companies",value:"organizations",icon:Jl}],collapsedItems:[{title:"Network Map",value:"network-map",icon:QI,link:"/network-map"},{title:"Connections",value:"connections",icon:Ti,link:"/mutual-connections"}]},{group:"Intelligence",items:[{title:"Analytics",value:"analytics",icon:Ni},{title:"Alerts & Signals",value:"alerts",icon:Nk},{title:"K-12 Intel",value:"k12-intel",icon:Ak}],collapsedItems:[{title:"AI Agents",value:"ai-agents",icon:Od,link:"/ai-agents"},{title:"RFPs",value:"rfp-tracker",icon:Sl}]}];function BV({activeTab:e,onTabChange:t,isUberAdmin:n=!1}){const{state:r,setOpenMobile:s}=fc(),i=r==="collapsed",o=Er(),a=kv(),c=d=>e===d?"bg-accent text-accent-foreground font-medium":"hover:bg-accent/50",u=()=>{o("/dashboard"),window.location.href="/dashboard"};return l.jsxs(vT,{collapsible:a?"offcanvas":"icon",className:"border-r",children:[l.jsx(bT,{className:"border-b",children:l.jsxs("button",{onClick:u,className:"flex items-center gap-2 px-2 py-3 hover:bg-accent rounded-md transition-colors cursor-pointer",children:[l.jsx("img",{src:fd,alt:"ReplyHounds sales intelligence logo",className:"h-8 w-auto"}),!i&&l.jsx("span",{className:"font-semibold text-lg",children:"ReplyHounds"})]})}),l.jsxs(_T,{children:[UV.map(d=>l.jsx(Vh,{defaultOpen:!0,className:"group/collapsible",children:l.jsxs(vu,{children:[l.jsx(Jm,{asChild:!0,children:l.jsxs(Wh,{className:"flex items-center justify-between w-full group/label hover:bg-accent rounded-md px-2 py-1 transition-colors",children:[l.jsx("span",{className:"font-medium text-sm",children:d.group}),l.jsx(du,{className:"h-4 w-4 ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180 opacity-50 group-hover/label:opacity-100"})]})}),l.jsx(qh,{children:l.jsx(xu,{children:l.jsxs(wu,{children:[d.items.map(f=>l.jsx(Ln,{children:l.jsxs($n,{onClick:()=>{f.link?o(f.link):t(f.value),a&&s(!1)},className:c(f.value),tooltip:f.title,children:[l.jsx(f.icon,{className:"h-4 w-4"}),!i&&l.jsx("span",{children:f.title})]})},f.value)),d.collapsedItems&&d.collapsedItems.length>0&&l.jsxs(Vh,{className:"group/sub",children:[l.jsx(Ln,{children:l.jsx(Wh,{asChild:!0,children:l.jsxs($n,{className:"hover:bg-accent/50",tooltip:"More",children:[l.jsx(du,{className:"h-4 w-4 transition-transform group-data-[state=open]/sub:rotate-180"}),!i&&l.jsx("span",{className:"text-muted-foreground text-xs",children:"More"})]})})}),l.jsx(qh,{children:d.collapsedItems.filter(f=>!f.uberOnly||n).map(f=>l.jsx(Ln,{children:l.jsxs($n,{onClick:()=>{f.link?o(f.link):t(f.value),a&&s(!1)},className:X(c(f.value),"pl-6"),tooltip:f.title,children:[l.jsx(f.icon,{className:"h-4 w-4"}),!i&&l.jsx("span",{children:f.title})]})},f.value))})]})]})})})]})},d.group)),n&&l.jsx(Vh,{defaultOpen:!0,className:"group/collapsible",children:l.jsxs(vu,{children:[l.jsx(Jm,{asChild:!0,children:l.jsxs(Wh,{className:"flex items-center justify-between w-full",children:["Uber Admin",l.jsx(du,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),l.jsx(qh,{children:l.jsx(xu,{children:l.jsxs(wu,{children:[l.jsx(Ln,{children:l.jsxs($n,{onClick:()=>o("/admin/uber-analytics"),className:"hover:bg-accent/50",tooltip:"Uber Analytics",children:[l.jsx(fu,{className:"h-4 w-4"}),!i&&l.jsx("span",{children:"Uber Analytics"})]})}),l.jsx(Ln,{children:l.jsxs($n,{onClick:()=>o("/admin/trial-management"),className:"hover:bg-accent/50",tooltip:"Trial Management",children:[l.jsx(oa,{className:"h-4 w-4"}),!i&&l.jsx("span",{children:"Trial Management"})]})}),l.jsx(Ln,{children:l.jsxs($n,{onClick:()=>o("/conference-cheat-sheet"),className:"hover:bg-accent/50",tooltip:"
576Cheat Sheets",children:[l.jsx(LI,{className:"h-4 w-4"}),!i&&l.jsx("span",{children:"Cheat Sheets"})]})})]})})})]})}),l.jsx(vu,{children:l.jsx(xu,{children:l.jsxs(wu,{children:[l.jsx(Ln,{children:l.jsxs($n,{onClick:()=>o("/integrations"),className:"hover:bg-accent/50",tooltip:"Integrations",children:[l.jsx(oA,{className:"h-4 w-4"}),!i&&l.jsx("span",{children:"Integrations"})]})}),l.jsx(Ln,{children:l.jsxs($n,{onClick:()=>o("/profile"),className:"hover:bg-accent/50",tooltip:"Profile",children:[l.jsx(Ls,{className:"h-4 w-4"}),!i&&l.jsx("span",{children:"Profile"})]})}),l.jsx(Ln,{children:l.jsxs($n,{onClick:()=>o("/settings"),className:"hover:bg-accent/50",tooltip:"Settings & Usage",children:[l.jsx(lA,{className:"h-4 w-4"}),!i&&l.jsx("span",{children:"Settings & Usage"})]})}),l.jsx(Ln,{children:l.jsxs($n,{onClick:()=>o("/help"),className:"hover:bg-accent/50",tooltip:"Help",children:[l.jsx(Xp,{className:"h-4 w-4"}),!i&&l.jsx("span",{children:"Help"})]})})]})})})]})]})}class Kh extends p.Component{constructor(n){super(n);nr(this,"handleReset",()=>{this.setState({hasError:!1,error:null}),window.location.reload()});this.state={hasError:!1,error:null}}static getDerivedStateFromError(n){return{hasError:!0,error:n}}componentDidCatch(n,r){console.error("ErrorBoundary caught an error:",n,r)}render(){return this.state.hasError?this.props.fallback?this.props.fallback:l.jsxs(Oe,{className:"m-4",children:[l.jsxs(gs,{children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx(oy,{className:"h-5 w-5 text-destructive"}),l.jsx(ys,{children:"Something went wrong"})]}),l.jsx(RC,{children:"An error occurred while loading this component"})]}),l.jsxs(St,{className:"space-y-4",children:[this.state.error&&l.jsx("div",{className:"bg-muted p-3 rounded-md",children:l.jsx("p",{className:"text-sm font-mono text-destructive",children:this.state.error.message})}),l.jsx(we,{onClick:this.handleReset,children:"Reload Page"})]})]}):this.props.children}}const HV={starter:{monthly:"price_1SFEP8Fdd0WkYg5zDTDswCqT"},professional:{monthly:"price_1SFEPSFdd0WkYg5z5Rn8H5GO"},enterprise:{monthly:"price_1SFEPjFdd0WkYg5zMxXFCtXy"}},VV=()=>{const e=Er(),{toast:t}=Gr(),{tier:n}=Cy(),[r,s]=p.useState(null),i=async a=>{s(a);try{const c=HV[a].monthly,{data:u,error:d}=await ce.functions.invoke("create-checkout",{body:{priceId:c}});if(d)throw d;u!=null&&u.url&&window.open(u.url,"_blank")}catch(c){t({title:"Error",description:c.message,variant:"destructive"})}finally{s(null)}}
576,o=n.trial_ends_at?new Date(n.trial_ends_at).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"}):"recently";return l.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-br from-muted to-background p-4",children:l.jsxs(Oe,{className:"w-full max-w-lg p-8 text-center",children:[l.jsx("div",{className:"mx-auto w-16 h-16 rounded-full bg-destructive/10 flex items-center justify-center mb-6",children:l.jsx(Jp,{className:"w-8 h-8 text-destructive"})}),l.jsx("h1",{className:"text-2xl font-bold text-foreground mb-2",children:"Your Free Trial Has Ended"}),l.jsxs("p",{className:"text-muted-foreground mb-6",children:["Your 14-day trial expired on ",o,". Subscribe to continue using ReplyHounds."]}),l.jsx("div",{className:"space-y-3 mb-6",children:[{key:"starter",name:"Starter",price:"$49/mo"},{key:"professional",name:"Professional",price:"$99/mo",popular:!0},{key:"enterprise",name:"Enterprise",price:"$199/mo"}].map(a=>l.jsxs(we,{variant:a.popular?"hero":"outline",className:"w-full justify-between",size:"lg",onClick:()=>i(a.key),disabled:r===a.key,children:[l.jsxs("span",{className:"flex items-center gap-2",children:[l.jsx(BI,{className:"w-4 h-4"}),a.name,a.popular&&l.jsx(zs,{variant:"secondary",className:"text-xs",children:"Popular"})]}),l.jsx("span",{children:r===a.key?"Loading...":a.price})]},a.key))}),l.jsx(we,{variant:"ghost",size:"sm",onClick:()=>e("/pricing"),children:"Compare plans in detail"})]})})},WV=()=>{const e=Yr();return p.useEffect(()=>{(async()=>{try{const{data:{user:r}}=await ce.auth.getUser();if(!r)return;await ce.from("user_activity_log").insert({user_id:r.id,action_type:"page_view",action_description:`Viewed page: ${e.pathname}`,page_url:e.pathname,metadata:{search:e.search,timestamp:new Date().toISOString()}})}catch(r){console.error("Activity tracking error:",r)}})()},[e.pathname]),{trackAction:async(n,r,s,i)=>{try{const{data:{user:o}}=await ce.auth.getUser();if(!o)return;await ce.from("user_activity_log").insert({user_id:o.id,action_type:n,action_description:r,page_url:e.pathname,component_name:s,metadata:{...i,timestamp:new Date().toISOString()}})}catch(o){console.error("Activity tracking error:",o)}}}},qV=()=>{const{tier:e,isTrialUser:t}=Cy(),n=Er();if(!t||!e.trial_ends_at)return null;const r=new Date,i=new Date(e.trial_ends_at).getTime()-r.getTime(),o=Math.max(0,Math.ceil(i/(1e3*60*60*24))),a=Math.max(0,Math.ceil(i/(1e3*60*60))),c=o<=2?"from-destructive/15 to-destructive/5 border-destructive/30":o<=5?"from-yellow-500/15 to-yellow-500/5 border-yellow-500/30":"from-primary/10 to-primary/5 border-primary/20",u=o<=2?"text-destructive":o<=5?"text-yellow-600 dark:text-yellow-400":"text-primary",d=o===0?`${a} hour${a!==1?"s":""} left`:`${o} day${o!==1?"s":""} left`;return l.jsxs("div",{className:`w-full px-4 py-2.5 bg-gradient-to-r ${c} border-b flex items-center justify-between gap-3`,children:[l.jsxs("div",{className:"flex items-center gap-2.5 min-w-0",children:[l.jsxs("div",{className:`flex items-center gap-1.5 ${u}`,children:[l.jsx(oa,{className:"w-4 h-4 shrink-0"}),l.jsx("span",{className:"font-semibold text-sm whitespace-nowrap",children:d})]}),l.jsx("span",{className:"text-sm text-muted-foreground hidden sm:inline truncate",children:"in your free trial"})]}),l.jsxs(we,{size:"sm",variant:"hero",className:"shrink-0 text-xs h-7 px-3",onClick:()=>n("/pricing"),children:[l.jsx(Fk,{className:"w-3 h-3 mr-1"}),"Upgrade Now"]})]})},KV=[{value:"overview",icon:Mk,label:"Home"},{value:"inbox",icon:Ds,label:"Inbox"},{value:"deals",icon:Xa,label:"Pipeline"},{value:"contacts",icon:Ti,label:"Contacts"}],GV=[{value:"calendar",icon:Zp,label:"Calendar"},{value:"tasks",icon:oa,label:"Tasks"},{value:"knowledge-base",icon:Dk,label:"Knowledge Base"},{value:"campaigns",icon:$k,label:"Campaigns"},{value:"prospects",icon:iy,label:"Prospects"},{value:"organizations",icon:Jl,label:"Companies"},{value:"analytics",icon:Ni,label:"Analytics"},{value:"alerts",icon:Nk,label:"Alerts"},{value:"k12-intel",icon:Ak,label:"K-12 Intel"},{value:"battle-cards",icon:sy,label:"Battle Cards"},{value:"winloss",icon:ty,label:"Win/Loss"},{value:"sales-tools",icon:Pk,label:"ROI Calculator"},{value:"rfp-tracker",icon:Sl,label:"RFPs"}];function YV({activeTab:e,onTabChange:t}){return kv()?l.jsx("nav",{className:"fixed bottom-0 left-0 right-0 z-50 border-t bg-card shadow-[0_-2px_10px_rgba(0,0,0,0.1)]",children:l.jsxs("div",{className:"flex items-center justify-around h-14",children:[KV.map(r=>l.jsxs("button",{onClick:()=>t(r.value),className:X("flex flex-col items-center justify-center gap-0.5 flex-1 h-full text-muted-foreground transition-colors",e===r.value&&"text-primary"),children:[l.jsx(r.icon,{className:"h-5 w-5"}),l.jsx("span",{className:"text-[10px] font-medium",children:r.label})]},r.value)),l.jsxs(By,{children:[l.jsx(Hy,{asChild:!0,children:l.jsxs("button",{className:"flex flex-col items-center justify-center gap-0.5 flex-1 h-full text-muted-foreground",children:[l.jsx(WI,{className:"h-5 w-5"}),l.jsx("span",{className:"text-[10px] font-medium",children:"More"})]})}),l.jsx(of,{align:"end",side:"top",className:"w-56 mb-2",children:GV.map(r=>l.jsxs($l,{onClick:()=>t(r.value),className:X(e===r.value&&"bg-accent"),children:[l.jsx(r.icon,{className:"h-4 w-4 mr-2"}),r.label]},r.value))})]})]})}):null}var Sv="Progress",Ev=100,[QV,kq]=Yt(Sv),[ZV,XV]=QV(Sv),kT=p.forwardRef((e,t)=>
576{const{__scopeProgress:n,value:r=null,max:s,getValueLabel:i=JV,...o}=e;(s||s===0)&&!wb(s)&&console.error(eW(`${s}`,"Progress"));const a=wb(s)?s:Ev;r!==null&&!bb(r,a)&&console.error(tW(`${r}`,"Progress"));const c=bb(r,a)?r:null,u=pd(c)?i(c,a):void 0;return l.jsx(ZV,{scope:n,value:c,max:a,children:l.jsx(ue.div,{"aria-valuemax":a,"aria-valuemin":0,"aria-valuenow":pd(c)?c:void 0,"aria-valuetext":u,role:"progressbar","data-state":jT(c,a),"data-value":c??void 0,"data-max":a,...o,ref:t})})});kT.displayName=Sv;var ST="ProgressIndicator",ET=p.forwardRef((e,t)=>{const{__scopeProgress:n,...r}=e,s=XV(ST,n);return l.jsx(ue.div,{"data-state":jT(s.value,s.max),"data-value":s.value??void 0,"data-max":s.max,...r,ref:t})});ET.displayName=ST;function JV(e,t){return`${Math.round(e/t*100)}%`}function jT(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function pd(e){return typeof e=="number"}function wb(e){return pd(e)&&!isNaN(e)&&e>0}function bb(e,t){return pd(e)&&!isNaN(e)&&e<=t&&e>=0}function eW(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Ev}\`.`}function tW(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be: 577 - a positive number 578 - less than the value passed to \`max\` (or ${Ev} if no \`max\` prop is set) 579 - \`null\` or \`undefined\` if the progress is indeterminate. 580 581Defaulting to \`null\`.`}var CT=kT,nW=ET;const NT=p.forwardRef(({className:e,value:t,...n},r)=>l.jsx(CT,{ref:r,className:X("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...n,children:l.jsx(nW,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));NT.displayName=CT.displayName;function rW({userId:e,onTabChange:t}){const[n,r]=p.useState(!1),[s,i]=p.useState({}),[o,a]=p.useState(!0),[c,u]=p.useState({});p.useEffect(()=>{const y=localStorage.getItem(`onboarding_skipped_${e}`);if(y)try{u(JSON.parse(y))}catch{}},[e]);const d=[{id:"profile",label:"Complete your profile",description:"Add your name, company, and meeting booking URL",icon:Jx,action:"/profile",check:async()=>{const{data:y}=await ce.from("profiles").select("full_name, company").eq("id",e).maybeSingle();return!!(y!=null&&y.full_name&&(y!=null&&y.company))}},{id:"gmail",label:"Connect your email",description:"Sync Gmail to unlock Inbox and tracking features",icon:Ds,action:"/integrations",check:async()=>{const{count:y}=await ce.from("email_integrations").select("id",{count:"exact",head:!0}).eq("user_id",e);return(y??0)>0}},{id:"chrome_extension",label:"Install Chrome Extension",description:"Get email tracking, templates & snippets right in Gmail",icon:ny,action:"https://chromewebstore.google.com/search/replyhounds",check:async()=>c.chrome_extension||!1,skippable:!0,skipLabel:"Skip â use Inbox instead",skipAction:"inbox"},{id:"prospect",label:"Add your first prospect",description:"Start building your sales pipeline",icon:Dd,action:"prospects",check:async()=>{const{count:y}=await ce.from("prospects").select("id",{count:"exact",head:!0}).eq("user_id",e).is("deleted_at",null);return(y??0)>0}},{id:"contact",label:"Add a contact",description:"Import or manually add contacts",icon:Jx,action:"contacts",check:async()=>{const{count:y}=await ce.from("my_contacts").select("id",{count:"exact",head:!0}).eq("user_id",e);return(y??0)>0}},{id:"email_sent",label:"Send your first tracked email",description:"Send an email with open & click tracking",icon:ry,action:"inbox",check:async()=>{const{count:y}=await ce.from("email_engagements").select("id",{count:"exact",head:!0}).eq("user_id",e);return(y??0)>0}}];p.useEffect(()=>{if(localStorage.getItem(`onboarding_dismissed_${e}`)==="true"){r(!0),a(!1);return}(async()=>{const w={};await Promise.all(d.map(async v=>{try{w[v.id]=await v.check()}catch{w[v.id]=!1}})),i(w),Object.values(w).every(Boolean)&&(r(!0),localStorage.setItem(`onboarding_dismissed_${e}`,"true")),a(!1)})()},[e,c]);const f=y=>{const g={...c,[y.id]:!0};u(g),localStorage.setItem(`onboarding_skipped_${e}`,JSON.stringify(g)),i(w=>({...w,[y.id]:!0})),y.skipAction&&t(y.skipAction)};if(n||o)return null;
581const m=Object.values(s).filter(Boolean).length,h=m/d.length*100;return l.jsxs(Oe,{className:"border-primary/30 bg-primary/5",children:[l.jsxs(gs,{className:"pb-3",children:[l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsx(ys,{className:"text-lg",children:"ð Getting Started"}),l.jsx(we,{variant:"ghost",size:"icon",className:"h-6 w-6",onClick:()=>{r(!0),localStorage.setItem(`onboarding_dismissed_${e}`,"true")},children:l.jsx(ln,{className:"h-4 w-4"})})]}),l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx(NT,{value:h,className:"flex-1 h-2"}),l.jsxs("span",{className:"text-sm text-muted-foreground whitespace-nowrap",children:[m,"/",d.length]})]})]}),l.jsx(St,{className:"space-y-2",children:d.map(y=>{const g=s[y.id];return l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsxs("button",{onClick:()=>{y.action.startsWith("http")?window.open(y.action,"_blank"):y.action.startsWith("/")?window.location.href=y.action:t(y.action)},className:X("flex items-center gap-3 flex-1 p-2 rounded-md text-left transition-colors",g?"opacity-60":"hover:bg-accent/50"),children:[g?l.jsx(FI,{className:"h-5 w-5 text-green-500 flex-shrink-0"}):l.jsx(Ik,{className:"h-5 w-5 text-muted-foreground flex-shrink-0"}),l.jsxs("div",{className:"min-w-0",children:[l.jsx("p",{className:X("text-sm font-medium",g&&"line-through"),children:y.label}),l.jsx("p",{className:"text-xs text-muted-foreground",children:y.description})]})]}),y.skippable&&!g&&l.jsxs(we,{variant:"ghost",size:"sm",className:"text-xs text-muted-foreground flex-shrink-0 gap-1",onClick:()=>f(y),children:[l.jsx(uA,{className:"h-3 w-3"}),y.skipLabel||"Skip"]})]},y.id)})})]})}p.lazy(()=>W(()=>import("./DashboardOverview-Bfj5aLtt.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10])).then(e=>({default:e.DashboardOverview})));p.lazy(()=>W(()=>import("./TodayFocus-BSrxqp21.js"),__vite__mapDeps([11,12,13,14,15,16,17,18,3,4,5,8])).then(e=>({default:e.TodayFocus})));p.lazy(()=>W(()=>import("./ScannedCardsQueue-BI6ueCx7.js"),__vite__mapDeps([19,12,20,18,21,7,5,4,3])).then(e=>({default:e.ScannedCardsQueue})));p.lazy(()=>W(()=>import("./QuickActions-D-JTXjZ8.js"),__vite__mapDeps([22,23,20,24,25,26,27,28,29,30,12,31,3,4,5,32])).then(e=>({default:e.QuickActions})));const sW=p.lazy(()=>W(()=>import("./ProspectsList-CY150W5H.js"),__vite__mapDeps([33,14,15,23,20,24,25,13,12,34,35,36,37,18,38,39,16,40,41,4,5,42,8,43,44,45,46,47,48,49,50,51,3,52,53,54,55,56,57,58,59,60,30,61,62,63,64,29,65,66])).then(e=>({default:e.ProspectsList}))),iW=p.lazy(()=>W(()=>import("./FundingAlerts-Dl_dt7E8.js"),__vite__mapDeps([67,13,16,45,46,14,15,47,48,30,37,18,68,61])).then(e=>({default:e.FundingAlerts}))),oW=p.lazy(()=>W(()=>import("./RecommendedContacts-BmPYm51U.js"),__vite__mapDeps([69,12,13,63,70,65,18,59,71])).then(e=>({default:e.RecommendedContacts}))),aW=p.lazy(()=>W(()=>import("./OrganizationsList-B06fzmYM.js"),__vite__mapDeps([72,36,34,35,37,18,38,39,13,12,14,15,16,40,41,4,5,42,8,43,46,61,62,50,51,3,52,73,74,65,28])).then(e=>({default:e.OrganizationsList}))),lW=p.lazy(()=>W(()=>import("./RFPBoardMeetingTracker-D_3EGe6i.js"),__vite__mapDeps([75,16]))),cW=p.lazy(()=>W(()=>import("./MyContacts-DRfC3j8O.js"),__vite__mapDeps([76,13,46,14,15,16,12,53,45,47,48,54,55,56,57,58,59,18,60,71,3,4,5,77,50,51,52,74,38,39,73,78,79,44,80,81,82,83,84,85,28,86,32,30,7,65,70])).then(e=>({default:e.MyContacts}))),uW=p.lazy(()=>W(()=>import("./QuickAddProspect-Boh_eErG.js"),__vite__mapDeps([87,12,54,14,15])).then(e=>({default:e.QuickAddProspect}))),dW=p.lazy(()=>W(()=>import("./SalesBattleCards-DAl8bZxa.js"),__vite__mapDeps([88,89,16,18,40])).then(e=>({default:e.SalesBattleCards}))),fW=p.lazy(()=>W(()=>import("./WinLossAnalysis-DmJACOrM.js"),__vite__mapDeps([90,12,14,15,89,16,73,3,4,5])).then(e=>({default:e.WinLossAnalysis})));p.lazy(()=>W(()=>import("./MeetingPrepAssistant-e9bZF9SZ.js"),__vite__mapDeps([91,12,14,15,54,32,92,18])).then(e=>({default:e.MeetingPrepAssistant})));const hW=p.lazy(()=>W(()=>import("./Analytics-OePDR0vi.js"),__vite__mapDeps([93,13,77,18,52,30,3,4,5])).then(e=>({default:e.Analytics}))),pW=p.lazy(()=>W(()=>import("./CampaignTracker-D6Ltp4Uq.js"),__vite__mapDeps([94,12,45,46,14,15,47,48,1,95,52,77,30,3,4,5,59,16,85,66,18,32,96,83,57,58,13,84,28,86,7,97,80,44,81,51,98,99])).then(e=>({default:e.CampaignTracker}))),mW=p.lazy(()=>W(()=>import("./OrganizationEnrichmentOverview-DBsoGkZx.js"),[]).then(e=>({default:e.OrganizationEnrichmentOverview}))),gW=p.lazy(()=>W(()=>import("./ProspectVerification-FuuiZ8YS.js"),__vite__mapDeps([100,
58113,12,14,15,40])).then(e=>({default:e.ProspectVerification}))),yW=p.lazy(()=>W(()=>import("./BulkConnectionUpload-CHGZSRdC.js"),__vite__mapDeps([101,79,81,80,44])).then(e=>({default:e.BulkConnectionUpload}))),vW=p.lazy(()=>W(()=>import("./LinkedInCSVImport-DzmCaWa4.js"),__vite__mapDeps([102,82,95,44])).then(e=>({default:e.LinkedInCSVImport}))),xW=p.lazy(()=>W(()=>import("./CompetitorAlerts-C8EjUbKn.js"),__vite__mapDeps([103,12,16,104,18])).then(e=>({default:e.CompetitorAlerts}))),wW=p.lazy(()=>W(()=>import("./DealsPipeline-CDP-mhk0.js"),__vite__mapDeps([105,12,14,15,84,37,46,59,16,106,18,34,89,71,38,39,3,4,5])).then(e=>({default:e.DealsPipeline}))),bW=p.lazy(()=>W(()=>import("./EnhancedPlaybookLibrary-CVPPzDVW.js"),__vite__mapDeps([107,12,14,15,85,16,18]))),_W=p.lazy(()=>W(()=>import("./ROICalculator-B5fc_mSz.js"),__vite__mapDeps([108,12,14,15,84,16,109,18,29,30]))),kW=p.lazy(()=>W(()=>import("./CaseStudyLibrary-DpduR-Dt.js"),__vite__mapDeps([110,12,14,15,84,16,73,18,71,30]))),SW=p.lazy(()=>W(()=>import("./UnifiedInboxEnhanced-DN7zubUA.js").then(e=>e.a),__vite__mapDeps([111,45,46,14,15,47,48,13,84,60,82,12,112,16,92,18,104,57,58,59,71,98,63,65,77,61,21])).then(e=>({default:e.UnifiedInboxEnhanced}))),EW=p.lazy(()=>W(()=>import("./RevenueForecast-CPreW5F1.js"),__vite__mapDeps([113,114,5,43,73])).then(e=>({default:e.RevenueForecast}))),jW=p.lazy(()=>W(()=>import("./ActivityTracking-ClM5xruU.js"),__vite__mapDeps([115,65,3,4,5,6,7])).then(e=>({default:e.ActivityTracking}))),CW=p.lazy(()=>W(()=>import("./IntentSignalExplorer-DZePar__.js"),__vite__mapDeps([116,84,12,14,15,11
5817,63,32,86,18,62,30,73])).then(e=>({default:e.IntentSignalExplorer}))),NW=p.lazy(()=>W(()=>import("./CalendarView-DV3RiMlh.js"),__vite__mapDeps([118,51,119,3,4,5,120,121,7,6,114,43])).then(e=>({default:e.CalendarView}))),TW=p.lazy(()=>W(()=>import("./TaskDashboard-BBWGvYQM.js"),__vite__mapDeps([122,13,18,3,4,5])).then(e=>({default:e.TaskDashboard}))),PW=p.lazy(()=>W(()=>import("./KnowledgeBase-BB8at0WH.js"),__vite__mapDeps([123,12,14,15,84,16,44,85,18,47,124,81]))),RW=p.lazy(()=>W(()=>import("./DashboardCustomizer-rjEf4FXz.js"),__vite__mapDeps([125,84,68,106,25])).then(e=>({default:e.DashboardCustomizer}))),IW=p.lazy(()=>W(()=>import("./DashboardGrid-CP-ck7h4.js"),__vite__mapDeps([126,127,106])).then(e=>({default:e.DashboardGrid}))),AW=p.lazy(()=>W(()=>import("./WebIntelligenceExplorer-C3wFrWLR.js"),__vite__mapDeps([128,14,15,18,78,3,4,5])).then(e=>({default:e.WebIntelligenceExplorer}))),OW=p.lazy(()=>W(()=>import("./K12IntelligenceWidget-CiNukW10.js"),__vite__mapDeps([2,3,4,5])).then(e=>({default:e.K12IntelligenceWidget}))),MW=p.lazy(()=>W(()=>import("./K12LegislativeAlerts-Nd2XFMa8.js"),__vite__mapDeps([129,34,35,109,18,65])).then(e=>({default:e.K12LegislativeAlerts}))),DW=p.lazy(()=>W(()=>import("./K12LegislativeExplorer-Bao26mFn.js"),__vite__mapDeps([130,34,35,13,14,15,129,109,18,65,12,30,63,131,32,132,80])).then(e=>({default:e.K12LegislativeExplorer}))),LW=p.lazy(()=>W(()=>import("./EventPagesManager-jZ3PLMhR.js"),__vite__mapDeps([133,12,14,15,84,45,46,47,48,127,51,49,28,32,96,16,106,18,44,82,1,13,30,54,134,80,89,117,3,4,5,41,42,8,43,92])).then(e=>({default:e.EventPagesManager}))),$W=p.lazy(()=>W(()=>import("./SalesAutopilot-DPodFJY8.js"),__vite__mapDeps([135,82,12,45,46,14,15,47,48,13,57,58,59,18,16,34,35,52,17,66,40,131])).then(e=>({default:e.SalesAutopilot})));p.lazy(()=>W(()=>import("./ProactiveInsights-CpueN2am.js"),[]).then(e=>({default:e.ProactiveInsights})));const et=()=>l.jsx("div",{className:"flex items-center justify-center py-12",children:l.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-primary"})}),zW=()=>{var w,v,x,b;const e=Er(),{toast:t}=Gr(),[n,r]=p.useState(null),{isTrialExpired:s}=Cy(),[i,o]=p.useState(!0),[a,c]=p.useState(!1),[u,d]=p.useState(!1),[f,m]=p.useState("overview");p.useEffect(()=>(sessionStorage.setItem("wilbur_active_tab",f),()=>sessionStorage.removeItem("wilbur_active_tab")),[f]);const[h,y]=p.useState({widgetOrder:["today_focus","quick_actions","overview"],hiddenWidgets:[]});WV(),p.useEffect(()=>{const _=async C=>{try{const{data:N,error:T}=await ce.from("user_roles").select("role").eq("user_id",C).in("role",["admin","uber_admin"]);if(T){console.error("Error checking admin status:",T);return}N&&N.length>0?(d(!0),c(N.some(A=>A.role==="uber_admin"))):(d(!1),c(!1))}catch(N){console.error("Unexpected error checking admin status:",N),d(!1),c(!1)}};(async()=>{try{o(!0);const{data:{session:C},error:N}=await ce.auth.getSession();if(N){console.error("Error getting session:",N),o(!1);return}if(!(C!=null&&C.user)){o(!1),e("/auth");return}r(C.user),await _(C.user.id)}catch(C){console.error("Unexpected error in initAuth:",C)}finally{o(!1)}})();const{data:{subscription:k}}=ce.auth.onAuthStateChange(async(C,N)=>{if(console.log("Auth state changed:",C),!(C==="INITIAL_SESSION"||C==="TOKEN_REFRESHED")){if(C==="SIGNED_OUT"||!(N!=null&&N.user)){r(null),e("/auth");return}r(T=>!T||T.id!==N.user.id?(_(N.user.id),N.user):T)}});return()=>k.unsubscribe()},[e]);const g=async()=>{const{error:_}=await ce.auth.signOut();_?t({title:"Error",description:"Failed to sign out",variant:"destructive"}):(t({title:"Signed out",description:"Successfully signed out"}),e("/"))};return i?l.jsx("div",{className:"min-h-screen flex items-center justify-center",children:l.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-primary"})}):n?s?l.jsx(VV,{}):l.jsxs(yT,{children:[l.jsx(hV,{}),l.jsxs("div",{className:"min-h-screen flex w-full bg-background",children:[l.jsx(BV,{activeTab:f,onTabChange:m,isUberAdmin:a}),l.jsxs(wT,{className:"flex flex-col flex-1",children:[l.jsx(qV,{}),l.jsx("header",{className:"border-b border-border bg-card sticky top-0 z-10 shadow-sm",children:l.jsx("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8 py-4",children:l.jsxs("div",{className:"flex flex-col md:flex-row items-start md:items-center justify-between gap-4",children:[l.jsxs("div",{className:"flex items-center gap-3 min-w-0
581w-full md:w-auto",children:[l.jsx(xT,{}),l.jsx("img",{src:fd,alt:"Replyhounds Logo",className:"w-20 md:w-24 h-auto flex-shrink-0"}),l.jsx("div",{className:"min-w-0 flex-1 md:flex-none",children:l.jsxs("p",{className:"text-xs md:text-sm text-muted-foreground truncate",children:["Welcome back, ",((v=(w=n.user_metadata)==null?void 0:w.full_name)==null?void 0:v.split(" ")[0])||((x=n.user_metadata)==null?void 0:x.first_name)||((b=n.email)==null?void 0:b.split("@")[0])]})})]}),l.jsx("div",{className:"hidden md:block",children:l.jsx(vb,{})}),l.jsxs("div",{className:"flex gap-2 flex-wrap justify-start md:justify-end w-full md:w-auto",children:[l.jsx("div",{className:"md:hidden flex-1",children:l.jsx(vb,{})}),l.jsxs(we,{variant:"outline",size:"sm",onClick:()=>e("/profile"),className:"text-xs md:text-sm",children:[l.jsx(UI,{className:"w-3 h-3 md:w-4 md:h-4 mr-1 md:mr-2"}),l.jsx("span",{className:"hidden sm:inline",children:"Profile"})]}),l.jsxs(By,{children:[l.jsx(Hy,{asChild:!0,children:l.jsxs(we,{variant:"outline",size:"sm",className:"text-xs md:text-sm",children:[l.jsx(Xp,{className:"w-3 h-3 md:w-4 md:h-4 mr-1 md:mr-2"}),l.jsx("span",{className:"hidden sm:inline",children:"Help"})]})}),l.jsx(of,{align:"end",children:l.jsxs($l,{onClick:()=>e("/help"),children:[l.jsx(Xp,{className:"h-4 w-4 mr-2"}),"Help Center"]})})]}),u&&l.jsxs(we,{variant:"outline",size:"sm",onClick:()=>e("/admin/renewals"),className:"text-xs md:text-sm",children:[l.jsx(sy,{className:"w-3 h-3 md:w-4 md:h-4 mr-1 md:mr-2"}),l.jsx("span",{className:"hidden sm:inline",children:"Admin"})]}),l.jsxs(we,{variant:"ghost",size:"sm",onClick:g,className:"text-xs md:text-sm",children:[l.jsx(tA,{className:"w-3 h-3 md:w-4 md:h-4 mr-1 md:mr-2"}),l.jsx("span",{className:"hidden sm:inline",children:"Sign Out"})]})]})]})})}),l.jsxs("main",{className:"container mx-auto px-2 sm:px-4 lg:px-8 py-4 md:py-8 pb-20 md:pb-8",children:[f==="overview"&&l.jsx(p.Suspense,{fallback:l.jsx(et,{}),children:l.jsxs("div",{className:"space-y-6",children:[l.jsx(rW,{userId:n.id,onTabChange:m}),l.jsx("div",{className:"flex justify-end",children:l.jsx(RW,{onLayoutChange:y})}),l.jsx(IW,{layout:h,onTabChange:m})]})}),f==="inbox"&&l.jsx(p.Suspense,{fallback:l.jsx(et,{}),children:l.jsx(SW,{})}),f==="calendar"&&l.jsx(p.Suspense,{fallback:l.jsx(et,{}),children:l.jsx(NW,{})}),f==="tasks"&&l.jsx(p.Suspense,{fallback:l.jsx(et,{}),children:l.jsx(TW,{})}),f==="deals"&&l.jsx(Kh,{children:l.jsx(p.Suspense,{fallback:l.jsx(et,{}),children:l.jsx(wW,{},"deals-pipeline")})}),f==="campaigns"&&l.jsx(Kh,{children:l.jsx(p.Suspense,{fallback:l.jsx(et,{}),children:l.jsx(pW,{})})}),f==="battle-cards"&&l.jsx(p.Suspense,{fallback:l.jsx(et,{}),children:l.jsx(dW,{})}),f==="prospects"&&l.jsx(p.Suspense,{fallback:l.jsx(et,{}),children:l.jsx("div",{className:"space-y-6",children:l.jsxs(ci,{defaultValue:"prospects-list",className:"w-full",children:[l.jsxs(vs,{className:"grid w-full max-w-md grid-cols-2",children:[l.jsx(ft,{value:"prospects-list",children:"Prospects"}),l.jsx(ft,{value:"bulk-upload",children:"Bulk Upload"})]}),l.jsxs(ht,{value:"prospects-list",className:"mt-6 space-y-4",children:[l.jsx(gW,{userId:n.id}),l.jsx(sW,{userId:n.id})]}),l.jsxs(ht,{value:"bulk-upload",className:"mt-6",children:[l.jsx(yW,{}),l.jsx("div",{className:"mt-6",children:l.jsx(vW,{})})]})]})})}),f==="contacts"&&l.jsx(p.Suspense,{fallback:l.jsx(et,{}),children:l.jsx("div",{className:"space-y-6",children:l.jsxs(ci,{defaultValue:"my-contacts",className:"w-full",children:[l.jsxs(vs,{className:"grid w-full max-w-md grid-cols-2",children:[l.jsx(ft,{value:"my-contacts",children:"My Contacts"}),l.jsx(ft,{value:"recommended",children:"Recommended"})]}),l.jsx(ht,{value:"my-contacts",className:"mt-6",children:l.jsx(cW,{userId:n.id})}),l.jsx(ht,{value:"recommended",className:"mt-6",children:l.jsx(oW,{userId:n.id})})]})})}),f==="organizations"&&l.jsx(p.Suspense,{fallback:l.jsx(et,{}),children:l.jsxs("div",{className:"space-y-6",children:[l.jsx(mW,{}),l.jsx(aW,{})]})}),f==="analytics"&&l.jsx(p.Suspense,{fallback:l.jsx(et,{}),children:l.jsxs("div",{className:"space-y-6",children:[l.jsx(hW,{userId:n.id}),l.jsx(EW,{}),l.jsx(jW,{})]})}),f==="alerts"&&l.jsx(p.Suspense,{fallback:l.jsx(et,{}),children:l.jsx("div",{className:"space-y-6",children:l.jsxs(ci,{defaultValue:"signals",className:"w-full",children:[l.jsxs(vs,{className:"grid w-full max-w-xl grid-cols-3",children:[l.jsx(ft,{value:"signals",children:"Intent Signals"}),l.jsx(ft,{value:"funding",children:"Funding Alerts"}),l.jsx(ft,{value:"competitors",children:"Competitor Alerts"})]}),l.jsx(ht,{value:"signals",className:"mt-6",children:l.jsx(CW,{userId:n.id})}),l.jsxs(ht,{value:"funding",className:"mt-6",children:[l.jsx(uW,{userId:n.id}),l.jsx(iW,{userId:n.id})]}),l.jsx(ht,{value:"competitors",className:"mt-6",children:l.jsx(xW,{userId:n.id})})]})})}),f==="web-intel"&&l.jsx(p.Suspense,{fallback:l.jsx(et,{}),children:l.jsx(AW,{})}
581),f==="k12-intel"&&l.jsx(p.Suspense,{fallback:l.jsx(et,{}),children:l.jsx("div",{className:"space-y-6",children:l.jsxs(ci,{defaultValue:"overview",className:"w-full",children:[l.jsxs(vs,{className:"grid w-full max-w-lg grid-cols-3",children:[l.jsx(ft,{value:"overview",children:"Overview"}),l.jsx(ft,{value:"legislation",children:"Legislation"}),l.jsx(ft,{value:"alerts",children:"Alerts"})]}),l.jsx(ht,{value:"overview",className:"mt-6",children:l.jsx(OW,{})}),l.jsx(ht,{value:"legislation",className:"mt-6",children:l.jsx(DW,{})}),l.jsx(ht,{value:"alerts",className:"mt-6",children:l.jsx(MW,{})})]})})}),f==="winloss"&&l.jsx(p.Suspense,{fallback:l.jsx(et,{}),children:l.jsx(fW,{})}),f==="playbooks"&&l.jsx(p.Suspense,{fallback:l.jsx(et,{}),children:l.jsx("div",{className:"space-y-6",children:l.jsxs(ci,{defaultValue:"playbooks",className:"w-full",children:[l.jsxs(vs,{className:"grid w-full max-w-lg grid-cols-2",children:[l.jsx(ft,{value:"playbooks",children:"Playbooks"}),l.jsx(ft,{value:"case-studies",children:"Case Studies"})]}),l.jsx(ht,{value:"playbooks",className:"mt-6",children:l.jsx(bW,{})}),l.jsx(ht,{value:"case-studies",className:"mt-6",children:l.jsx(kW,{})})]})})}),f==="rfp-tracker"&&l.jsx(p.Suspense,{fallback:l.jsx(et,{}),children:l.jsx(lW,{})}),f==="knowledge-base"&&l.jsx(p.Suspense,{fallback:l.jsx(et,{}),children:l.jsx(PW,{})}),f==="sales-tools"&&l.jsx(p.Suspense,{fallback:l.jsx(et,{}),children:l.jsx(_W,{})}),f==="event-pages"&&l.jsx(p.Suspense,{fallback:l.jsx(et,{}),children:l.jsx(LW,{})}),f==="sales-autopilot"&&l.jsx(Kh,{children:l.jsx(p.Suspense,{fallback:l.jsx(et,{}),children:l.jsx($W,{})})})]})]})]}),l.jsx(YV,{activeTab:f,onTabChange:m})]}):null},FW=(e={})=>{const{onTranscript:t,onError:n,transcribeInterval:r=5e3}=e,[s,i]=p.useState(!1),[o,a]=p.useState(!1),[c,u]=p.useState(0),[d,f]=p.useState([]),m=p.useRef(null),h=p.useRef(null),y=p.useRef(null),g=p.useRef([]),w=p.useRef(null),v=p.useRef(0),x=p.useRef(0),b=p.useCallback(()=>{if(y.current&&s&&!o){const M=new Uint8Array(y.current.frequencyBinCount);y.current.getByteFrequencyData(M);const P=M.reduce((L,R)=>L+R,0)/M.length;u(P/255),x.current=requestAnimationFrame(b)}},[s,o]),_=p.useCallback(M=>{const P=M.toLowerCase();return["i'm just going to go ahead","i'm not a fan of the new app","what makes you say that","it's so much slower","i think that the best way","learn a language","immerse yourself","the old one","oh, really?","well, for starters"].some(R=>P.includes(R))},[]),j=p.useCallback(async()=>{var P;if(g.current.length===0)return;const M=new Blob(g.current,{type:"audio/webm"});if(g.current=[],M.size<5e3){console.log("Audio chunk too small, skipping:",M.size,"bytes");return}try{const L=new FileReader,R=new Promise((B,I)=>{L.onload=()=>{const S=L.result.split(",")[1];B(S)},L.onerror=I});L.readAsDataURL(M);const z=await R;console.log("Sending audio for transcription, size:",M.size,"bytes");const{supabase:U}=await W(async()=>{const{supabase:B}=await Promise.resolve().then(()=>l$);return{supabase:B}},void 0),{data:{session:V}}=await U.auth.getSession();if(!(V!=null&&V.access_token))throw new Error("You must be signed in to transcribe audio.");const D=await fetch("https://zjksbbrwtkfqfkczuyfm.supabase.co/functions/v1/transcribe-audio",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${V.access_token}`},body:JSON.stringify({audio:z,mimeType:"audio/webm"})});if(!D.ok){const B=await D.json();throw new Error(B.error||"Transcription failed")}const O=await D.json(),E=(O.text||"").toLowerCase();if(E.includes("no audible speech")||E.includes("audio unclear")||E.includes("[silence]")){console.log("No speech detected in audio chunk");return}if(_(O.text||"")){console.log("Filtered likely hallucination:",(P=O.text)==null?void 0:P.substring(0,50));return}if(O.segments&&Array.isArray(O.segments)&&O.segments.length>0){for(const B of O.segments)if(B.content&&B.content.trim()&&!_(B.content)){const I={id:crypto.randomUUID(),speaker:B.speaker==="rep"?"rep":B.speaker==="prospect"?"prospect":"unknown",content:B.content.trim(),timestamp:(Date.now()-v.current)/1e3};f(S=>[...S,I]),t==null||t(B.content,I)}}else if(O.text&&O.text.trim()&&!_(O.text)){const B={id:crypto.randomUUID(),speaker:"unknown",content:O.text.trim(),timestamp:(Date.now()-v.current)/1e3};f(I=>[...I,B]),t==null||t(O.text,B)}}catch(L){console.error("Transcription error:",L),n==null||n(L.message)}},[t,n,_]),k=p.useCallback(async()=>{try{const M=await navigator.mediaDevices.getUserMedia({audio:{echoCancellation:!0,noiseSuppression:!0,autoGainControl:!0,sampleRate:16e3}});
581h.current=new AudioContext;const P=h.current.createMediaStreamSource(M);y.current=h.current.createAnalyser(),y.current.fftSize=256,P.connect(y.current);const L=MediaRecorder.isTypeSupported("audio/webm;codecs=opus")?"audio/webm;codecs=opus":"audio/webm";m.current=new MediaRecorder(M,{mimeType:L}),g.current=[],v.current=Date.now(),m.current.ondataavailable=R=>{R.data.size>0&&g.current.push(R.data)},m.current.start(1e3),i(!0),a(!1),f([]),b(),w.current=setInterval(j,r)}catch(M){console.error("Failed to start recording:",M),n==null||n(M.message||"Failed to access microphone")}},[r,j,b,n]),C=p.useCallback(async()=>{w.current&&(clearInterval(w.current),w.current=null),x.current&&cancelAnimationFrame(x.current),m.current&&m.current.state!=="inactive"&&(m.current.stop(),m.current.stream.getTracks().forEach(M=>M.stop())),h.current&&await h.current.close(),await j(),i(!1),a(!1),u(0)},[j]),N=p.useCallback(()=>{m.current&&m.current.state==="recording"&&(m.current.pause(),a(!0),x.current&&cancelAnimationFrame(x.current))},[]),T=p.useCallback(()=>{m.current&&m.current.state==="paused"&&(m.current.resume(),a(!1),b())},[b]),A=p.useCallback(()=>{f([])},[]);return{isRecording:s,isPaused:o,audioLevel:c,transcripts:d,startRecording:k,stopRecording:C,pauseRecording:N,resumeRecording:T,clearTranscripts:A}},UW=()=>{const[e,t]=p.useState(0),[n,r]=p.useState(!1),s=p.useRef(null),i=p.useRef(null),o=p.useRef(null),a=p.useRef(null),c=p.useCallback(()=>{const f=o.current;if(!f)return;const m=new Uint8Array(f.fftSize);f.getByteTimeDomainData(m);let h=0;for(let g=0;g<m.length;g++){const w=(m[g]-128)/128;h+=w*w}const y=Math.sqrt(h/m.length);t(g=>g*.75+y*.25),a.current=requestAnimationFrame(c)},[]),u=p.useCallback(async()=>{if(a.current&&(cancelAnimationFrame(a.current),a.current=null),s.current&&(s.current.getTracks().forEach(f=>f.stop()),s.current=null),i.current){try{await i.current.close()}catch{}i.current=null}o.current=null,r(!1),t(0)},[]),d=p.useCallback(async()=>{try{await u();const f=await navigator.mediaDevices.getUserMedia({audio:!0});s.current=f;const m=new AudioContext;i.current=m;const h=m.createMediaStreamSource(f),y=m.createAnalyser();return y.fftSize=256,o.current=y,h.connect(y),r(!0),c(),!0}catch{return await u(),!1}},[u,c]);return p.useEffect(()=>()=>{u()},[u]),{level:e,isActive:n,start:d,stop:u}},BW=e=>{const{sessionId:t,onFeedback:n,analyzeInterval:r=1e4}=e,{toast:s}=Gr(),[i,o]=p.useState(!1),[a,c]=p.useState(null),[u,d]=p.useState([]),[f,m]=p.useState({cushioning:0,positioning:0,explain:0,transition:0}),h=p.useRef([]),y=p.useRef(null),g=p.useRef(0),w=p.useRef(null),v=p.useCallback(C=>{w.current=C},[]),x=p.useCallback(async(C=!1)=>{if(!t)return;const N=h.current.slice(g.current);if(N.length===0&&!C)return;const T=N.map(A=>`${A.speaker==="rep"?"Sales Rep: ":A.speaker==="prospect"?"Prospect: ":""}${A.content}`).join(` 582`);if(T.trim()){o(!0);try{const{data:{session:A}}=await ce.auth.getSession();if(!A)throw new Error("Not authenticated");const M=h.current.slice(0,g.current),P=M.length>0?M.slice(-10).map(U=>U.content).join(` 583`):"",L=w.current;w.current=null;const R=await fetch("https://zjksbbrwtkfqfkczuyfm.supabase.co/functions/v1/analyze-cpet-coaching",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${A.access_token}`},body:JSON.stringify({sessionId:t,recentTranscript:T,fullContext:P,videoFrame:L})});if(!R.ok){const U=await R.json();throw new Error(U.error||"Analysis failed")}const z=await R.json();if(z.analysis){const U={current_element:z.analysis.current_element,observations:(z.analysis.observations||[]).map(V=>({type:V.type,what_noticed:V.what_noticed,why_important:V.why_important})),coaching_prompts:(z.analysis.coaching_prompts||[]).map(V=>({urgency:V.urgency,action:V.action,say_this:V.say_this})),questions_to_ask:z.analysis.questions_to_ask||[],feedback:(z.analysis.feedback||[]).map(V=>({id:crypto.randomUUID(),framework_element:V.framework_element,feedback_type:V.feedback_type,message:V.message,confidence_score:V.confidence_score||.5,timestamp:new Date})),suggested_phrases:z.analysis.suggested_phrases||[],talk_ratio_warning:z.analysis.talk_ratio_warning,overall_assessment:z.analysis.overall_assessment||"",body_language:z.analysis.body_language};c(U),d(V=>[...V,...U.feedback]),U.feedback.forEach(V=>{V.feedback_type==="recognition"&&m(D=>({...D,[V.framework_element]:Math.min(100,D[V.framework_element]+10)}))}),n==null||n(U)}g.current=h.current.length}catch(A){console.error("CPE-T analysis error:",A),A.message!=="Not authenticated"&&s({variant:"destructive",title:"Coaching Analysis Error",description:A.message})}finally{o(!1)}}},[t,n,s]),b=p.useCallback(C=>{h.current.push(C)},[]),_=p.useCallback(()=>{y.current&&clearInterval(y.current),y.current=setInterval(()=>{x()},r),setTimeout(()=>x(),3e3)},[x,r]),j=p.useCallback(()=>{y.current&&(clearInterval(y.current),y.current=null),x(!0)},[x]),k=p.useCallback(()=>{h.current=[],g.current=0,d([]),c(null),m({cushioning:0,positioning:0,explain:0,transition:0})},[]);return p.useEffect(()=>()=>{y.current&&clearInterval(y.current)},[]),{isAnalyzing:i,latestAnalysis:a,feedbackHistory:u,cpetScores:f,addTranscript:b,setVideoFrame:v,startCoaching:_,stopCoaching:j,clearHistory:k,analyzeNow:()=>x(!0)}},Gc={cushioning:"bg-blue-500",positioning:"bg-purple-500",explain:"bg-green-500",transition:"bg-orange-500"},HW={cushioning:"Cushion",positioning:"Position",explain:"Explain",transition:"Transition"},_b={cushioning:Ti,positioning:iy,explain:JI,transition:ey},VW=({compact:e=!1,onSessionEnd:t})=>{var Be,xt,Pn,Xt;const{toast:n}=Gr(),[r,s]=p.useState(null),[i,o]=p.useState(!1),[a,c]=p.useState(0),[u,d]=p.useState({rep:0,prospect:0}),[f,m]=p.useState(null),{level:h,isActive:y,start:g,stop:w}=UW(),{isRecording:v,audioLevel:x,transcripts:b,startRecording:_,stopRecording:j,clearTranscripts:k}=FW({onTranscript:(J,ge)=>{A(ge),z(ge)},onError:J=>{n({variant:"destructive",title:"Microphone Error",description:J})},transcribeInterval:5e3}),{isAnalyzing:C,latestAnalysis:N,cpetScores:T,addTranscript:A,startCoaching:M,stopCoaching:P,clearHistory:L}=BW({sessionId:r,analyzeInterval:8e3});p.useEffect(()=>{R()},[]);const R=async()=>{try{const J=await navigator.permissions.query({name:"microphone"});m(J.state==="granted"),J.onchange=()=>{m(J.state==="granted")}}catch{m(null)}};p.useEffect(()=>{let J;return i&&(J=setInterval(()=>c(ge=>ge+1),1e3)),()=>clearInterval(J)},[i]);const z=p.useCallback(J=>{d(ge=>{const Rt=J.speaker==="rep"?"rep":"prospect",Cr=J.content.split(" ").length;return{...ge,[Rt]:ge[Rt]+Cr}})},[]),U=J=>{const ge=Math.floor(J/60),Rt=J%60;return`${ge}:${Rt.toString().padStart(2,"0")}`},V=()=>{const J=u.rep+u.prospect;if(J<20)return null;const ge=u.rep/J*100;return ge>70?{type:"warning",message:"You're talking too much! Let prospect speak."}:ge>60?{type:"caution",message:"Try to listen more - aim for 40/60 ratio."}:null},D=async()=>{try{return(await navigator.mediaDevices.getUserMedia({audio:!0}
583)).getTracks().forEach(ge=>ge.stop()),m(!0),!0}catch{return n({variant:"destructive",title:"Microphone Access Required",description:"Please allow microphone access to use live coaching."}),!1}},O=async()=>{try{if(await w(),!f&&!await D())return;const{data:{user:J}}=await ce.auth.getUser();if(!J){n({variant:"destructive",title:"Please log in first"});return}const{data:ge,error:Rt}=await ce.from("coaching_sessions").insert({user_id:J.id,session_name:`Zoom Meeting ${new Date().toLocaleTimeString()}`,meeting_platform:"zoom",status:"active"}).select().single();if(Rt)throw Rt;s(ge.id),await _(),M(),o(!0),c(0),d({rep:0,prospect:0})}catch(J){n({variant:"destructive",title:"Failed to start",description:J.message})}},E=async()=>{if(await j(),P(),o(!1),r){await ce.from("coaching_sessions").update({status:"completed",ended_at:new Date().toISOString(),total_duration_seconds:a,overall_cpet_score:T}).eq("id",r);for(const J of b)await ce.from("session_transcripts").insert({session_id:r,speaker_type:J.speaker,content:J.content,timestamp_start:J.timestamp});t==null||t(r),n({title:"Session saved",description:`Duration: ${U(a)}`})}},B=()=>{s(null),o(!1),c(0),d({rep:0,prospect:0}),k(),L()},I=J=>{switch(J){case"now":return"border-red-500 bg-red-500/20 text-red-700 dark:text-red-300";case"soon":return"border-yellow-500 bg-yellow-500/20 text-yellow-700 dark:text-yellow-300";default:return"border-blue-500 bg-blue-500/10"}},S=V(),q=((Be=N==null?void 0:N.coaching_prompts)==null?void 0:Be.filter(J=>J.urgency==="now"))||[],Z=((xt=N==null?void 0:N.coaching_prompts)==null?void 0:xt.filter(J=>J.urgency==="soon"))||[],te=((Pn=N==null?void 0:N.observations)==null?void 0:Pn.filter(J=>J.type==="objection"))||[],re=((Xt=N==null?void 0:N.observations)==null?void 0:Xt.filter(J=>J.type==="buying_signal"))||[];if(!i&&!r)return l.jsxs("div",{className:"p-4 flex flex-col h-full",children:[l.jsxs("div",{className:"bg-blue-500/20 text-blue-800 dark:text-blue-200 text-[10px] p-2 rounded mb-4",children:["DEBUG Coach: isActive=",String(i),", sessionId=",r||"null",", micPermission=",String(f),", isRecording=",String(v)]}),l.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center text-center space-y-6",children:[l.jsx("div",{className:"h-20 w-20 rounded-full bg-primary/10 flex items-center justify-center",children:l.jsx(em,{className:"h-10 w-10 text-primary"})}),l.jsxs("div",{className:"space-y-2",children:[l.jsx("h2",{className:"text-lg font-semibold",children:"Real-Time Sales Coach"}),l.jsx("p",{className:"text-sm text-muted-foreground max-w-xs",children:"Get live CPE-T coaching prompts, objection alerts, and buying signal detection during your call."})]}),f===!1&&l.jsx(Oe,{className:"bg-destructive/10 border-destructive/30",children:l.jsx(St,{className:"p-3",children:l.jsxs("div",{className:"flex items-center justify-between gap-3",children:[l.jsxs("div",{className:"flex items-center gap-2 text-sm text-destructive",children:[l.jsx(Zx,{className:"h-4 w-4"}),l.jsx("span",{children:"Microphone access denied. Please enable in browser settings."})]}),l.jsx(we,{type:"button",size:"sm",variant:"outline",onClick:async()=>{await D()&&m(!0)},children:"Re-check"})]})})}),f!==!1&&l.jsx("div",{className:"w-full max-w-sm",children:l.jsx(Oe,{className:"bg-muted/30",children:l.jsxs(St,{className:"p-3",children:[l.jsxs("div",{className:"flex items-center justify-between gap-3",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx(ew,{className:`h-4 w-4 ${y?"text-primary":"text-muted-foreground"}`}),l.jsx("span",{className:"text-xs font-medium",children:"Mic test"}),l.jsx(zs,{variant:"secondary",className:"text-[10px]",children:y?h>.03?"Hearing audio":"Listening":"Off"})]}),l.jsx(we,{type:"button",size:"sm",variant:"outline",onClick:async()=>{if(y){await w();return}await g()?m(!0):n({variant:"destructive",title:"Microphone Access Required",description:"Please allow microphone access to test audio input."})},children:y?"Stop test":"Test mic"})]}),l.jsx("div",{className:"mt-2 flex items-end gap-1 h-6",children:[.05,.12,.2,.3,.45,.6,.8].map((J,ge)=>l.jsx("div",{className:`w-1.5 rounded-full transition-all duration-75 ${h>=J?"bg-primary":"bg-muted"}`,style:{height:`${8+ge*2}px`}},ge))}),l.jsx("p",{className:"mt-1 text-[10px] text-muted-foreground",children:"Speak to see the meter move (nothing is recorded or uploaded)."})]})})}),l.jsxs(we,{onClick:O,size:"lg",className:"gap-2 px-8",disabled:f===!1,children:[l.jsx(Xx,{className:"h-5 w-5"}),"Start Live Coaching"]}),l.jsx("p",{className:"text-xs text-muted-foreground",children:"Click the button above to grant microphone access and begin coaching"}),l.jsxs("div",{className:"grid grid-cols-2 gap-3 text-xs text-muted-foreground mt-4",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx(Dr,{className:"h-4 w-4 text-green-500"}),"CPE-T Framework"]}),l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx(Dr,{className:"h-4 w-4 text-green-500"}),"Objection Detection"]}),l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx(Dr,{className:"h-4 w-4 text-green-500"}),"Buying Signals"]}),l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx(Dr,{className:"h-4 w-4 text-green-500"}),"Talk Ratio Alerts"]})]})]})]});if(!i&&r)return l.jsx("div",{className:"p-4 flex flex-col h-full",children:l.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center text-center space-y-4",children:[l.jsx("div",{className:"h-16 w-16 rounded-full bg-green-500/10 flex items-center justify-center",children:l.jsx(Dr,{className:"h-8 w-8 text-green-500"})}),l.jsxs("div",{className:"space-y-1",children:[l.jsx("h3",{className:"font-semibold",children:"Session Complete"}),l.jsxs("p",{className:"text-sm text-muted-foreground",children:["Duration: ",U(a)]})]}),l.jsx("div",{className:"grid grid-cols-4 gap-2 w-full max-w-xs",children:["cushioning","positioning","explain","transition"].map(J=>{const ge=_b[J];return l.jsxs("div",{className:`text-center p-2 rounded ${Gc[J]} bg-opacity-20`,children:[l.jsx(ge,{className:`h-4 w-4 mx-auto ${Gc[J].replace("bg-","text-")}`}),l.jsxs("div",{className:"text-sm font-semibold mt-1",children:[T[J],"%"]}),l.jsx("div",{className:"text-[10px] text-muted-foreground",children:HW[J]})]},J)})}),l.jsxs(we,{onClick:B,className:"w-full max-w-xs mt-4",children:[l.jsx(Xx,{className:"h-4 w-4 mr-2"}),"Start New Session"]})]})});const Ce=b[b.length-1],he=x>.01;return l.jsxs("div",{className:"flex flex-col h-full",children:[l.jsxs("div",{className:"p-3 border-b bg-card flex items-center justify-between",children:[l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx("div",{className:`p-2 rounded-full ${v?"bg-red-500 animate-pulse":"bg-muted"}`,children:v?l.jsx(em,{className:"h-4 w-4 text-white"}):l.jsx(Zx,{className:"h-4 w-4"})}),l.jsx("div",{children:l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsxs(zs,{variant:"secondary",className:"gap-1 text-xs",children:[l.jsx("div",{className:"w-2 h-2 rounded-full bg-red-500 animate-pulse"}),"LIVE"]}),l.jsx("span",{className:"text-sm font-medium",children:U(a)})]})})]}),l.jsxs(we,{onClick:E,size:"sm",variant:"destructive",children:[l.jsx(dA,{className:"h-4 w-4 mr-1"}),"End"]})]}),l.jsxs("div",{className:"px-3 py-2 border-b bg-muted/30",children:[l.jsxs("div",{className:"flex items-center justify-between mb-2",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx(ew,{className:`h-4 w-4 ${he?"text-green-500":"text-muted-foreground"}`}),l.jsx("span",{className:"text-xs font-medium",children:v?he?"HEARING AUDIO":"LISTENING (silent)":"MIC OFF"})]}),l.jsx("div",{className:"flex items-center gap-1",children:[.1,.25,.4,.55,.7,.85,1].map((J,ge)=>l.jsx("div",{className:`w-1 rounded-full transition-all duration-75 ${x>=J?J>.7?"bg-red-500":J>.4?"bg-yellow-500":"bg-green-500":"bg-muted"}`,style:{height:`${8+ge*2}px`}},ge))})]}),l.jsx("div",{className:"relative h-2 bg-muted rounded-full overflow-hidden",children:l.jsx("div",{className:`h-full transition-all duration-75 rounded-full ${x>.7?"bg-red-500":x>.4?"bg-yellow-500":"bg-green-500"}`,style:{width:`${Math.min(x*100,100)}%`}})}),Ce&&l.jsxs("div",{className:"mt-2 p-2 bg-background/50 rounded text-xs",children:[l.jsx("span",{className:"text-muted-foreground",children:"Last heard: "}),l.jsxs("span",{className:"italic",children:['"',Ce.content.slice(0,100),Ce.content.length>100?"...":"",'"']})]}),l.jsxs("div",{className:"mt-2 flex gap-3 text-[10px] text-muted-foreground",children:[l.jsxs("span",{children:["Transcripts: ",b.length]}),l.jsxs("span",{children:["Level: ",(x*100).toFixed(0),"%"]}),l.jsxs("span",{children:["Recording: ",v?"Yes":"No"]})]})]}),S&&l.jsxs("div",{className:`px-3 py-2 flex items-center gap-2 text-sm font-medium ${S.type==="warning"?"bg-red-500/20 text-red-600":"bg-yellow-500/20 text-yellow-600"}`,children:[l.jsx(oy,{className:"h-4 w-4 shrink-0"}),S.message]}),l.jsxs("div",{className:"px-3 py-2 border-b",children:[l.jsxs("div",{className:"flex justify-between text-xs text-muted-foreground mb-1",children:[l.jsxs("span",{children:["You (",Math.round(u.rep/(u.rep+u.prospect+1)*100),"%)"]}),l.jsxs("span",{children:["Prospect (",Math.round(u.prospect/(u.rep+u.prospect+1)*100),"%)"]})]}),l.jsxs("div",{className:"h-2 rounded-full bg-muted overflow-hidden flex",children:[l.jsx("div",{className:"bg-primary transition-all duration-300",style:{width:`${u.rep/(u.rep+u.prospect+1)*100}%`}}),l.jsx("div",{className:"bg-green-500 transition-all duration-300",style:{width:`${u.prospect/(u.rep+u.prospect+1)*100}%`}})]})]}),l.jsx("div",{className:"px-3 py-2 border-b flex gap-1",children:["cushioning","positioning","explain","transition"].map(J=>{const ge=_b[J];return l.jsxs("div",{className:`flex-1 text-center p-1.5 rounded ${Gc[J]} bg-opacity-20`,title:J,children:[l.jsx(ge,{className:`h-3 w-3 mx-auto ${Gc[J].replace("bg-","text-")}`}),l.jsxs("div",{className:"text-xs font-bold mt-0.5",children:[T[J],"%"]})]},J)})}),l.jsx(Ml,{className:"flex-1",children:l.jsxs("div",{className:"p-3 space-y-3",children:[C&&l.jsx("div",{className:"text-xs text-muted-foreground text-center py-1 animate-pulse",children:"Analyzing conversation..."}),te.length>0&&l.jsx(Oe,{className:"border-orange-500 bg-orange-500/10",children:l.jsxs(St,{className:"p-3",children:[l.jsxs("div",{className:"flex items-center gap-2 text-sm font-bold text-orange-600 mb-2",children:[l.jsx(ZI,{className:"h-4 w-4"}),"OBJECTION DETECTED"]}),te.map((J,ge)=>l.jsx("p",{className:"text-sm",children:J.what_noticed},ge))]})}),re.length>0&&l.jsx(Oe,{className:"border-green-500 bg-green-500/10",children:l.jsxs(St,{className:"p-3",children:[l.jsxs("div",{className:"flex items-center gap-2 text-sm font-bold text-green-600 mb-2",children:[l.jsx(Ni,{className:"h-4 w-4"}),"BUYING SIGNAL"]}),re.map((J,ge)=>l.jsx("p",{className:"text-sm",children:J.what_noticed},ge))]})}),q.map((J,ge)=>l.jsx(Oe,{className:`border-2 ${I("now")}`,children:l.jsxs(St,{className:"p-3",children:[l.jsxs("div",{className:"flex items-center gap-2 text-sm font-bold mb-2",children:[l.jsx(Dd,{className:"h-4 w-4"}),"DO NOW"]}),l.jsx("p",{className:"text-sm font-medium",children:J.action}),J.say_this&&l.jsxs("p",{className:"text-sm mt-2 italic bg-background/50 p-2 rounded",children:['"',J.say_this,'"']})]})},ge)),Z.map((J,ge)=>l.jsx(Oe,{className:`border ${I("soon")}`,children:l.jsxs(St,{className:"p-3",children:[l.jsxs("div",{className:"flex items-center gap-2 text-xs font-bold mb-1",children:[l.jsx(oa,{className:"h-3 w-3"}),"SOON"]}),l.jsx("p",{className:"text-sm",children:J.action})]})},ge)),(N==null?void 0:N.questions_to_ask)&&N.questions_to_ask.length>0&&l.jsx(Oe,{className:"border-blue-500/30 bg-blue-500/5",children:l.jsxs(St,{className:"p-3",children:[l.jsx("div",{className:"text-sm font-bold text-blue-600 mb-2",children:"Questions to Ask:"}),N.questions_to_ask.slice(0,3).map((J,ge)=>l.jsxs("p",{className:"text-sm mb-1",children:["⢠",J]},ge))]})}),(N==null?void 0:N.overall_assessment)&&l.jsx("div",{className:"text-sm text-muted-foreground italic p-3 bg-muted/30 rounded-lg",children:N.overall_assessment}),!C&&!N&&l.jsxs("div",{className:"text-center py-8 text-muted-foreground",children:[l.jsx(jl,{className:"h-8 w-8 mx-auto mb-2 opacity-50"}),l.jsx("p",{className:"text-sm",children:"Listening for conversation..."}),l.jsx("p",{className:"text-xs mt-1",children:"Coaching prompts will appear here"})]})]})})]})};function WW(){var P;const[e,t]=p.useState([]),[n,r]=p.useState(!0),[s,i]=p.useState(null),[o,a]=p.useState(null),[c,u]=p.useState(!1),[d,f]=p.useState(!1),[m,h]=p.useState(""),[y,g]=p.useState(""),[w,v]=p.useState(null),[x,b]=p.useState("coach"),[_,j]=p.useState("Initializing...");p.useEffect(()=>{console.log("[ZoomMeetingPrep] Component mounted at",new Date().toISOString()),console.log("[ZoomMeetingPrep] User agent:",navigator.userAgent),console.log("[ZoomMeetingPrep] Window location:",window.location.href),j("Mounted - checking auth..."),k()},[]);const k=async()=>{try{console.log("[ZoomMeetingPrep] Checking auth..."),j("Checking authentication...");const{data:{user:L},error:R}=await ce.auth.getUser();if(R&&(console.error("[ZoomMeetingPrep] Auth error:",R),j(`Auth error: ${R.message}`)),!L){console.log("[ZoomMeetingPrep] No user, showing login"),j("No user session - showing login form"),u(!0),r(!1);return}console.log("[ZoomMeetingPrep] User found:",L.email),j(`Logged in as: ${L.email}`),N()}catch(L){console.error("[ZoomMeetingPrep] Exception:",L),j(`Exception: ${L.message}`),u(!0),r(!1)}},C=async L=>{L.preventDefault(),f(!0),v(null);try{const{error:R}=await ce.auth.signInWithPassword({email:m,password:y});if(R)throw R;u(!1),N()}catch(R){v(R.message||"Login failed")}finally{f(!1)}},N=async()=>{var L;r(!0),i(null);try{const{data:{user:R}}=await ce.auth.getUser();if(!R){u(!0),r(!1);return}const z=new URLSearchParams(window.location.search),U=z.get("meetingId"),V=z.get("attendees");let D=[];if(V)D=V.split(",").map(B=>B.trim());else if(U){const{data:B}=await ce.from("calendar_events").select("id, attendees").eq("user_id",R.id).or(`google_event_id.eq.${U},meeting_link.ilike.%${U}%`).maybeSingle();B!=null&&B.attendees&&(D=B.attendees.map(S=>S.email).filter(S=>!!S))}else{const B=new Date().toISOString(),{data:I}=await ce.from("calendar_events").select("id, attendees, summary").eq("user_id",R.id).gte("start_time",B).order("start_time",{ascending:!0}).limit(1).maybeSingle();I!=null&&I.attendees&&(D=I.attendees.map(q=>q.email).filter(q=>!!q))}if(D.length===0){r(!1);return}const{data:O,error:E}=await ce.functions.invoke("meeting-prep-brief",{body:{userId:R.id,attendeeEmails:D}});if(E)throw E;t(O.participants||[]),((L=O.participants)==null?void 0:L.length)>0&&a(O.participants[0])}catch(R){console.error("Error loading meeting brief:",R),i(null)}finally{r(!1)}},T=L=>{switch(L){case"qualified":return"bg-blue-500/10 text-blue-500";case"proposal":return"bg-purple-500/10 text-purple-500";case"negotiation":return"bg-orange-500/10 text-orange-500";case"closed_won":return"bg-green-500/10 text-green-500";default:return"bg-muted text-muted-foreground"}},A=L=>{switch(L){case"funding":return l.jsx(Ni,{className:"h-3 w-3"});case"job_change":return l.jsx(Xa,{className:"h-3 w-3"});case"news":case"company_news":return l.jsx(zI,{className:"h-3 w-3"});default:return l.jsx(jl,{className:"h-3 w-3"})}},M=()=>l.jsxs("div",{className:"bg-blue-600 text-white text-xs p-2 text-center font-bold",children:["ð ReplyHounds Loaded | ",_]});return c?l.jsxs("div",{className:"min-h-screen bg-background flex flex-col",children:[l.jsx(M,{}),l.jsx("div",{className:"flex-1 p-4 flex items-center justify-center",children:l.jsxs(Oe,{className:"w-full max-w-sm",children:[l.jsxs(gs,{className:"text-center pb-2",children:[l.jsx("div",{className:"h-12 w-12 rounded-full bg-primary/10 flex items-center justify-center mx-auto mb-2",children:l.jsx(eA,{className:"h-6 w-6 text-primary"})}),l.jsx(ys,{className:"text-lg",children:"Sign in to ReplyHounds"}),l.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Access live coaching & meeting intelligence"})]}),l.jsx(St,{children:l.jsxs("form",{onSubmit:C,className:"space-y-3",children:[l.jsxs("div",{className:"space-y-1",children:[l.jsx(cr,{htmlFor:"email",className:"text-xs",children:"Email"}),l.jsx(vn,{id:"email",type:"email",value:m,onChange:L=>h(L.target.valu
583e),placeholder:"[email protected]",required:!0,className:"h-9"})]}),l.jsxs("div",{className:"space-y-1",children:[l.jsx(cr,{htmlFor:"password",className:"text-xs",children:"Password"}),l.jsx(vn,{id:"password",type:"password",value:y,onChange:L=>g(L.target.value),placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢",required:!0,className:"h-9"})]}),w&&l.jsx("p",{className:"text-xs text-destructive",children:w}),l.jsx(we,{type:"submit",className:"w-full",disabled:d,children:d?"Signing in...":"Sign In"})]})})]})})]}):n?l.jsxs("div",{className:"min-h-screen bg-background flex flex-col",children:[l.jsx(M,{}),l.jsxs("div",{className:"p-4 space-y-4",children:[l.jsx(il,{className:"h-8 w-48"}),l.jsx(il,{className:"h-24 w-full"}),l.jsx(il,{className:"h-24 w-full"})]})]}):l.jsxs("div",{className:"min-h-screen bg-background flex flex-col",children:[l.jsx(M,{}),(()=>{const L=new URLSearchParams(window.location.search);return L.get("meetingId")||L.get("attendees")?null:l.jsx("div",{className:"border-b bg-muted/40 px-3 py-2 text-[11px] text-muted-foreground",children:"Tip: This page is meant to run inside an active Zoom meeting (Apps â ReplyHounds). In a normal browser you can still use Live Coach, but participant intelligence may be empty."})})(),l.jsxs(ci,{value:x,onValueChange:b,className:"flex-1 flex flex-col",children:[l.jsx("div",{className:"border-b bg-card px-3 py-2",children:l.jsxs(vs,{className:"grid w-full grid-cols-2 h-9",children:[l.jsxs(ft,{value:"coach",className:"text-xs gap-1.5",children:[l.jsx(em,{className:"h-3.5 w-3.5"}),"Live Coach"]}),l.jsxs(ft,{value:"prep",className:"text-xs gap-1.5",children:[l.jsx(Xa,{className:"h-3.5 w-3.5"}),"Prep"]})]})}),l.jsx(ht,{value:"coach",className:"flex-1 m-0 p-0",children:l.jsx(VW,{compact:!1})}),l.jsxs(ht,{value:"prep",className:"flex-1 m-0 overflow-hidden",children:[l.jsx("div",{className:"border-b bg-card px-4 py-2",children:l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsxs("div",{children:[l.jsx("h1",{className:"text-sm font-semibold",children:"Meeting Intelligence"}),l.jsxs("p",{className:"text-xs text-muted-foreground",children:[e.length," participant",e.length!==1?"s":""]})]}),l.jsx(we,{variant:"ghost",size:"sm",onClick:N,className:"h-7 w-7 p-0",children:l.jsx(zk,{className:"h-3 w-3"})})]})}),e.length===0?l.jsxs("div",{className:"p-4 text-center",children:[l.jsx(Ti,{className:"h-8 w-8 mx-auto text-muted-foreground mb-2"}),l.jsx("p",{className:"text-sm text-muted-foreground",children:"No participant data available"}),l.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Connect your calendar or pass attendees in the URL"})]}):l.jsxs("div",{className:"flex h-[calc(100vh-100px)]",children:[l.jsx("div",{className:"w-1/3 border-r",children:l.jsx(Ml,{className:"h-full",children:e.map((L,R)=>l.jsx("button",{onClick:()=>a(L),className:`w-full text-left px-4 py-3 border-b hover:bg-muted/50 transition-colors ${(o==null?void 0:o.email)===L.email?"bg-muted":""}`,children:l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx("div",{className:"h-8 w-8 rounded-full bg-primary/10 flex items-center justify-center",children:l.jsx(Ls,{className:"h-4 w-4 text-primary"})}),l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsx("p",{className:"font-medium text-sm truncate",children:L.name}),L.company&&l.jsx("p",{className:"text-xs text-muted-foreground truncate",children:L.company})]}),L.dealContext&&l.jsx(zs,{variant:"secondary",className:"text-xs shrink-0",children:"Deal"})]})},L.email||R))})}),l.jsx("div",{className:"flex-1",children:l.jsx(Ml,{className:"h-full",children:o?l.jsxs("div",{className:"p-4 space-y-4",children:[l.jsx(Oe,{children:l.jsx(St,{className:"pt-4",children:l.jsxs("div",{className:"flex items-start gap-4",children:[l.jsx("div",{className:"h-12 w-12 rounded-full bg-primary/10 flex items-center justify-center shrink-0",children:l.jsx(Ls,{className:"h-6 w-6 text-primary"})}),l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsx("h2",{className:"font-semibold",children:o.name}),o.title&&l.jsx("p",{className:"text-sm text-muted-foreground",children:o.title}),o.company&&l.jsxs("div",{className:"flex items-center gap-1 text-sm text-muted-foreground mt-1",children:[l.jsx(Jl,{className:"h-3 w-3"}),o.company]}),o.linkedinUrl&&l.jsxs("a",{href:o.linkedinUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-xs text-primary mt-2 hover:underline",children:[l.jsx(Lk,{className:"h-3 w-3"}),"View LinkedIn",l.jsx(qI,{className:"h-3 w-3"})]})]})]})})}),o.dealContext&&l.jsxs(Oe,{children:[l.jsx(gs,{className:"pb-2",children:l.jsxs(ys,{className:"text-sm flex items-center gap-2",children:[l.jsx(Xa,{className:"h-4 w-4"}),"Deal Context"]})}),l.jsx(St,{children:l.jsxs("div",{className:"space-y-2",children:[l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsx("span",{className:"text-sm",children:o.dealContext.dealName}),l.jsx(zs,{className:T(o.dealContext.stage),children:(P=o.dealContext.stage)==null?void 0:P.replace("_"," ")})]}),o.dealContext.amount&&l.jsxs("p",{className:"text-lg font-semibold",children:["$",o.dealContext.amount.toLocaleStr
583ing()]})]})})]}),o.talkingPoints&&o.talkingPoints.length>0&&l.jsxs(Oe,{children:[l.jsx(gs,{className:"pb-2",children:l.jsxs(ys,{className:"text-sm flex items-center gap-2",children:[l.jsx(jl,{className:"h-4 w-4"}),"Talking Points"]})}),l.jsx(St,{children:l.jsx("ul",{className:"space-y-2",children:o.talkingPoints.map((L,R)=>l.jsxs("li",{className:"text-sm flex items-start gap-2",children:[l.jsxs("span",{className:"text-primary font-medium",children:[R+1,"."]}),l.jsx("span",{children:L})]},R))})})]}),o.signals&&o.signals.length>0&&l.jsxs(Oe,{children:[l.jsx(gs,{className:"pb-2",children:l.jsxs(ys,{className:"text-sm flex items-center gap-2",children:[l.jsx(Ni,{className:"h-4 w-4"}),"Recent Signals"]})}),l.jsx(St,{children:l.jsx("div",{className:"space-y-3",children:o.signals.slice(0,5).map((L,R)=>l.jsxs("div",{className:"flex items-start gap-2",children:[l.jsx("div",{className:"mt-1 text-muted-foreground",children:A(L.type)}),l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsx("p",{className:"text-sm font-medium truncate",children:L.title}),L.description&&l.jsx("p",{className:"text-xs text-muted-foreground line-clamp-2",children:L.description})]})]},R))})})]}),o.mutualConnections&&o.mutualConnections.length>0&&l.jsxs(Oe,{children:[l.jsx(gs,{className:"pb-2",children:l.jsxs(ys,{className:"text-sm flex items-center gap-2",children:[l.jsx(Ti,{className:"h-4 w-4"}),"Mutual Connections"]})}),l.jsx(St,{children:l.jsx("div",{className:"space-y-2",children:o.mutualConnections.slice(0,3).map((L,R)=>l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("div",{className:"h-6 w-6 rounded-full bg-muted flex items-center justify-center",children:l.jsx(Ls,{className:"h-3 w-3 text-muted-foreground"})}),l.jsxs("div",{children:[l.jsx("p",{className:"text-sm",children:L.name}),L.company&&l.jsx("p",{className:"text-xs text-muted-foreground",children:L.company})]})]},R))})})]})]}):l.jsx("div",{className:"p-4 text-center text-muted-foreground",children:"Select a participant to view details"})})})]})]})]})]})}const qW=p.lazy(()=>W(()=>import("./EventContacts-Bc5-Z1lo.js"),__vite__mapDeps([136,79,95,14,15,1,13,84,63,17,18,21,28,44,47,16]))),KW=p.lazy(()=>W(()=>import("./ConferenceCheatSheet-DCYYTK8B.js"),__vite__mapDeps([137,12,14,15,37,28,44,32,92,18]))),GW=p.lazy(()=>W(()=>import("./Playbooks-QkSGZQ2P.js"),__vite__mapDeps([138,12,14,15,28,16,85,71,18,139]))),YW=p.lazy(()=>W(()=>import("./PlaybookDetail-Da1cfjI_.js"),__vite__mapDeps([140,14,15,12,28,92]))),QW=p.lazy(()=>W(()=>import("./SalesCycle--X0WUfT3.js"),__vite__mapDeps([141,28,139]))),ZW=p.lazy(()=>W(()=>import("./Integrations-C1k-fvhy.js"),__vite__mapDeps([142,18,84,111,45,46,14,15,47,48,13,60,82,12,112,16,92,104,57,58,59,71,98,63,65,77,61,21,3,4,5,143,40,54,89,49,62,41,42,8,43,28]))),kb=p.lazy(()=>W(()=>import("./TrialSignup-xAfR_uV4.js"),[])),XW=p.lazy(()=>W(()=>import("./FeaturesPage-Mr44_C14.js"),__vite__mapDeps([144,28,81,29,85,26,24,52,117,145]))),JW=p.lazy(()=>W(()=>import("./AboutUs---q9j_Hs.js"),__vite__mapDeps([146,28,64]))),e7=p.lazy(()=>W(()=>import("./API-DiECA-_p.js"),__vite__mapDeps([147,28,85,48]))),t7=p.lazy(()=>W(()=>import("./Terms-C_hgKSWs.js"),[])),n7=p.lazy(()=>W(()=>import("./Privacy-Bjhgg548.js"),[])),r7=p.lazy(()=>W(()=>import("./DataRetentionPolicy-jrv0m7I7.js"),[])),s7=p.lazy(()=>W(()=>import("./IncidentResponsePolicy-D7Hyoc00.js"),[])),i7=p.lazy(()=>W(()=>import("./InfrastructurePolicy-0Twh49Go.js"),[])),o7=p.lazy(()=>W(()=>import("./SecurityCompliance-CZ9ftfRS.js"),[])),Sb=p.lazy(()=>W(()=>import("./NotFound-DxZCX5QD.js"),[])),a7=p.lazy(()=>W(()=>Promise.resolve().then(()=>w9),void 0).then(e=>({default:e.Pricing}))),l7=p.lazy(()=>W(()=>import("./AdminRenewals-Bs9wr5sQ.js"),__vite__mapDeps([148,1,54,80,44,81,14,15,37,149,18,9,143,84,40,28]))),c7=p.lazy(()=>W(()=>import("./UberAnalytics-BNnp3R0Z.js"),__vite__mapDeps([150,1,14,15,9,151,3,4,5,84,134,62,77]))),u7=p.lazy(()=>W(()=>import("./TrialManagement-BohP37r-.js"),__vite__mapDeps([152,1,62,77,3,4,5,149]))),d7=p.lazy(()=>W(()=>import("./Help-PAWoUuOG.js"),__vite__mapDeps([153,26,81,85,80,24,29,145,117]))),f7=p.lazy(()=>W(()=>import("./HelpDetail-2oYbhp6n.js"),__vite__mapDeps([154,54,28]))),h7=p.lazy(()=>W(()=>import("./GettingStartedGuide-D5R07vNc.js"),__vite__mapDeps([155,117]))),p7=p.lazy(()=>W(()=>import("./KnowledgeBaseHelp-DfgHslLL.js"),__vite__mapDeps([156,85,124,81,44]))),m7=p.lazy(()=>W(()=>import("./Profile-CXD8yUto.js"),__vite__mapDeps([157,12,84,13,58,59,18,16,28,32,109]))),g7=p.lazy(()=>W(()=>import("./Settings-88CjQDyj.js"),__vite__mapDeps([158,54,89,49,40,28]))
583),y7=p.lazy(()=>W(()=>import("./Competitors-DmKeFrWB.js"),__vite__mapDeps([159,28]))),v7=p.lazy(()=>W(()=>import("./WebIntelligence-CNUuh1-1.js"),__vite__mapDeps([160,128,14,15,18,78,3,4,5,161]))),x7=p.lazy(()=>W(()=>import("./WebIntelligenceAutomation-DgzU13nA.js"),__vite__mapDeps([162,34,35,12,13,163,37,16,71,18,84,14,15,3,4,5,132,40]))),w7=p.lazy(()=>W(()=>import("./ContactFinder-D895LAXj.js"),__vite__mapDeps([164,34,35,1,65]))),b7=p.lazy(()=>W(()=>import("./MailMerge-BgFNevoD.js"),__vite__mapDeps([165,12,34,35,13,46]))),_7=p.lazy(()=>W(()=>import("./EmailOptimization-C3FgdYan.js"),__vite__mapDeps([166,55,56,14,15,34]))),k7=p.lazy(()=>W(()=>import("./MutualConnections-CqjQY5Vx.js"),__vite__mapDeps([167,34,134]))),S7=p.lazy(()=>W(()=>import("./Analytics-gn3dBAWl.js"),__vite__mapDeps([168,104,77]))),E7=p.lazy(()=>W(()=>import("./IntentSignals-D7uHvZA5.js"),__vite__mapDeps([169,14,15,37,13,46,12,54,16,18,30,84,85,3,4,5,80]))),j7=p.lazy(()=>W(()=>import("./IntentSignalsDashboard-CqWONI0p.js"),__vite__mapDeps([170,14,15,9,10,151]))),C7=p.lazy(()=>W(()=>import("./NetworkMap-_ihwkI3M.js"),__vite__mapDeps([171,14,15,12,101,79,81,80,44,16,18,13,63,172]))),N7=p.lazy(()=>W(()=>import("./SalesCoaching-J2mw-y35.js"),__vite__mapDeps([173,82,84,14,15,163,49,31,89,97,134,18,3,4,5,12,56,16,29,28,44,47,59,85,63,38,52,40,132]))),T7=p.lazy(()=>W(()=>import("./ZoomAppSetupGuide-Cq46UXiQ.js"),__vite__mapDeps([174,28,30]))),P7=p.lazy(()=>W(()=>import("./K12Intelligence-BafEER7t.js"),__vite__mapDeps([175,161,15,3,4,5]))),R7=p.lazy(()=>W(()=>import("./K12LegislativeTracker-BL2zEMUA.js"),__vite__mapDeps([176,130,34,35,13,14,15,129,109,18,65,12,30,63,131,32,132,80]))),I7=p.lazy(()=>W(()=>import("./MarketingContent-CccynNs7.js"),__vite__mapDeps([177,30]))),A7=p.lazy(()=>W(()=>import("./AIAgents-CA5FQwAu.js"),__vite__mapDeps([178,82,84,14,15,62,179,16,66,30,18,73,85]))),Eb=p.lazy(()=>W(()=>import("./EventLandingPage-DW-1gQ4X.js"),__vite__mapDeps([180,82,12,14,15,51]))),Gh=p.lazy(()=>W(()=>import("./PublicROICalculator-Bv3RZhU-.js"),__vite__mapDeps([181,84,109,40]))),jb=p.lazy(()=>W(()=>import("./PublicDigitalCard-flYnmIkc.js"),__vite__mapDeps([182,82,183,12,65,80]))),O7=p.lazy(()=>W(()=>import("./MyQRCode-Ds-gcR1Y.js"),__vite__mapDeps([184,27,29]))),M7=p.lazy(()=>W(()=>import("./CapturedLeads-BjDQBDwJ.js"),__vite__mapDeps([185,14,15,179,26,65,51,3,4,5]))),D7=p.lazy(()=>W(()=>import("./ChromeExtension-D4T4zLWJ.js"),__vite__mapDeps([186,80,112]))),L7=p.lazy(()=>W(()=>import("./Demo--9FbETr9.js"),__vite__mapDeps([187,26,77,59]))),$7=p.lazy(()=>W(()=>import("./Account360-D5kLeKA-.js"),__vite__mapDeps([188,82,12,14,15,3,4,5,42,114,119,121,7,6,43,46,63,28,16,65,18,32,71,59]))),z7=p.lazy(()=>W(()=>import("./Proposals-Bd16oosA.js"),__vite__mapDeps([189,12,14,15,13,82,45,46,47,48,25,99,30,85,28,16,29,32,71,18,61]))),Yh=p.lazy(()=>W(()=>import("./PublicProposal-CfDQOiVt.js"),__vite__mapDeps([190,82,183,80]))),F7=p.lazy(()=>W(()=>import("./Welcome-rUAQNegQ.js"),[])),U7=p.lazy(()=>W(()=>import("./CampaignCommandCenter-CWiHCbUX.js"),__vite__mapDeps([191,12,14,15,78,85,119,3,4,5,99,30,70,120,7]))),B7=new $D({defaultOptions:{queries:{staleTime:1e3*60*5,gcTime:1e3*60*10}}}),H7=()=>l.jsx(zD,{client:B7,children:l.jsx(hD,{children:l.jsx(u$,{children:l.jsxs(d$,{children:[l.jsx(p$,{}),l.jsx(YA,{}),l.jsx(CO,{}),l.jsx(DL,{children:l.jsxs(p.Suspense,{fallback:l.jsx(f$,{}),children:[l.jsxs(NL,{children:[l.jsx(se,{path:"/",element:l.jsx(H9,{})}),l.jsx(se,{path:"/auth",element:l.jsx(SH,{})}),l.jsx(se,{path:"/.lovable/oauth/consent",element:l.jsx(EH,{})}),l.jsx(se,{path:"/welcome",element:l.jsx(F7,{})}),l.jsx(se,{path:"/trial",element:l.jsx(kb,{})}),l.jsx(se,{path:"/trial-signup",element:l.jsx(kb,{})}),l.jsx(se,{path:"/dashboard",element:l.jsx(zW,{})}),l.jsx(se,{path:"/event-contacts",element:l.jsx(qW,{})}),l.jsx(se,{path:"/conference-cheat-sheet",element:l.jsx(KW,{})}),l.jsx(se,{path:"/playbooks",element:l.jsx(GW,{})}),l.jsx(se,{path:"/playbooks/:id",element:l.jsx(YW,{})}),l.jsx(se,{path:"/sales-cycle",element:l.jsx(QW,{})}),l.jsx(se,{path:"/integrations",element:l.jsx(ZW,{})}),l.jsx(se,{path:"/features",element:l.jsx(XW,{})}),l.jsx(se,{path:"/pricing",element:l.jsx(a7,{})}),l.jsx(se,{path:"/about",element:l.jsx(JW,{})}),l.jsx(se,{path:"/api",element:l.jsx(e7,{})}),l.jsx(se,{path:"/terms",element:l.jsx(t7,{})}),l.jsx(se,{path:"/privacy",element:l.jsx(n7,{})}),l.jsx(se,{path:"/data-retention-policy",element:l.jsx(r7,{})}),l.jsx(se,{path:"/incident-response-policy",element:l.jsx(s7,{})}
583),l.jsx(se,{path:"/infrastructure-policy",element:l.jsx(i7,{})}),l.jsx(se,{path:"/security-compliance",element:l.jsx(o7,{})}),l.jsx(se,{path:"/admin/renewals",element:l.jsx(l7,{})}),l.jsx(se,{path:"/admin/uber-analytics",element:l.jsx(c7,{})}),l.jsx(se,{path:"/admin/trial-management",element:l.jsx(u7,{})}),l.jsx(se,{path:"/help",element:l.jsx(d7,{})}),l.jsx(se,{path:"/help/getting-started-guide",element:l.jsx(h7,{})}),l.jsx(se,{path:"/help/knowledge-base",element:l.jsx(p7,{})}),l.jsx(se,{path:"/help/:topic",element:l.jsx(f7,{})}),l.jsx(se,{path:"/profile",element:l.jsx(m7,{})}),l.jsx(se,{path:"/settings",element:l.jsx(g7,{})}),l.jsx(se,{path:"/competitors",element:l.jsx(y7,{})}),l.jsx(se,{path:"/web-intelligence",element:l.jsx(v7,{})}),l.jsx(se,{path:"/web-intelligence/automation",element:l.jsx(x7,{})}),l.jsx(se,{path:"/contact-finder",element:l.jsx(w7,{})}),l.jsx(se,{path:"/mail-merge",element:l.jsx(b7,{})}),l.jsx(se,{path:"/email-optimization",element:l.jsx(_7,{})}),l.jsx(se,{path:"/mutual-connections",element:l.jsx(k7,{})}),l.jsx(se,{path:"/analytics",element:l.jsx(S7,{})}),l.jsx(se,{path:"/intent-signals",element:l.jsx(E7,{})}),l.jsx(se,{path:"/intent-signals-dashboard",element:l.jsx(j7,{})}),l.jsx(se,{path:"/network-map",element:l.jsx(C7,{})}),l.jsx(se,{path:"/sales-coaching",element:l.jsx(N7,{})}),l.jsx(se,{path:"/zoom-meeting-prep",element:l.jsx(WW,{})}),l.jsx(se,{path:"/zoom-app-setup",element:l.jsx(T7,{})}),l.jsx(se,{path:"/k12-intelligence",element:l.jsx(P7,{})}),l.jsx(se,{path:"/k12-legislative-tracker",element:l.jsx(R7,{})}),l.jsx(se,{path:"/marketing-content",element:l.jsx(I7,{})}),l.jsx(se,{path:"/ai-agents",element:l.jsx(A7,{})}),l.jsx(se,{path:"/events/:slug",element:l.jsx(Eb,{})}),l.jsx(se,{path:"/roi/:shareToken",element:l.jsx(Gh,{})}),l.jsx(se,{path:"/roi",element:l.jsx(Gh,{})}),l.jsx(se,{path:"/card/:slug",element:l.jsx(jb,{})}),l.jsx(se,{path:"/my-qr",element:l.jsx(O7,{})}),l.jsx(se,{path:"/captured-leads",element:l.jsx(M7,{})}),l.jsx(se,{path:"/chrome-extension",element:l.jsx(D7,{})}),l.jsx(se,{path:"/demo",element:l.jsx(L7,{})}),l.jsx(se,{path:"/campaign-command",element:l.jsx(U7,{})}),l.jsx(se,{path:"/account-360",element:l.jsx($7,{})}),l.jsx(se,{path:"/proposals",element:l.jsx(z7,{})}),l.jsx(se,{path:"/proposal/share/:token",element:l.jsx(Yh,{})}),l.jsx(se,{path:"/p/:slug",element:l.jsx(Yh,{})}),l.jsx(se,{path:"/:companySlug/card/:slug",element:l.jsx(jb,{})}),l.jsx(se,{path:"/:companySlug/p/:slug",element:l.jsx(Yh,{})}),l.jsx(se,{path:"/:companySlug/events/:slug",element:l.jsx(Eb,{})}),l.jsx(se,{path:"/:companySlug/roi/:shareToken",element:l.jsx(Gh,{})}),l.jsx(se,{path:"*",element:l.jsx(Sb,{})}),l.jsx(se,{path:"*",element:l.jsx(Sb,{})})]}),l.jsx(D8,{})]})})]})})})});G_(document.getElementById("root")).render(l.jsx(tk,{children:l.jsx(H7,{})}));export{ee as $,$9 as A,we as B,Oe as C,Xa as D,ZS as E,Sl as F,Ak as G,Lk as H,vn as I,hA as J,iV as K,cr as L,Ds as M,oT as N,aV as O,NT as P,cV as Q,uV as R,Fk as S,ci as T,Jx as U,iy as V,Ni as W,ln as X,Z7 as Y,Ls as Z,kl as _,gs as a,jt as a$,$I as a0,sh as a1,qI as a2,FI as a3,ey as a4,oa as a5,zk as a6,GI as a7,Dr as a8,zI as a9,Rk as aA,ty as aB,lA as aC,JI as aD,Jp as aE,Cy as aF,BI as aG,cq as aH,uq as aI,tt as aJ,hV as aK,Q7 as aL,Xx as aM,Ct as aN,Oi as aO,Ql as aP,Fd as aQ,Ne as aR,wS as aS,ne as aT,Yl as aU,GE as aV,$E as aW,Oy as aX,Ay as aY,Zl as aZ,bS as a_,oy as aa,Xp as ab,jl as ac,Dd as ad,bq as ae,W as af,Tk as ag,hT as ah,aA as ai,gv as aj,hi as ak,yq as al,En as am,B9 as an,QI as ao,Od as ap,Mk as aq,sy as ar,Yr as as,HI as at,ny as au,Ml as av,lV as aw,DI as ax,Dk as ay,Nk as az,ys as b,cT as b$,_S as b0,Z8 as b1,fI as b2,ha as b3,kr as b4,xS as b5,Rd as b6,Wo as b7,Ny as b8,du as b9,il as bA,Ok as bB,Vh as bC,Wh as bD,qh as bE,Vd as bF,jD as bG,xD as bH,G7 as bI,lm as bJ,Fn as bK,Wd as bL,yD as bM,vD as bN,OS as bO,RD as bP,bD as bQ,Ot as bR,Y7 as bS,Pl as bT,MD as bU,Ik as bV,aT as bW,lT as bX,uT as bY,Zm as bZ,Xm as b_,Tt as ba,cS as bb,xq as bc,QN as bd,cc as be,wq as bf,uc as bg,vf as bh,xf as bi,ZN as bj,wv as bk,bv as bl,WR as bm,h$ as bn,ry as bo,hD as bp,pD as bq,RS as br,mD as bs,ef as bt,H as bu,WE as bv,qE as bw,ia as bx,jk as by,lq as bz,RC as c,sA as c0,yV as c1,_q as c2,mT as c3,wV as c4,bV as c5,_V as c6,BW as c7,ew as c8,em as c9,Zx as ca,dA as cb,ZI as cc,fA as cd,OR as ce,fu as cf,N8 as cg,Pk as ch,KC as ci,vq as cj,U9 as ck,KI as cl,fd as cm,$k as cn,rA as co,cA as cp,l$ as cq,St as d,zs as e,El as f,Er as g,vs as h,ft as i,l as j,ht as k,Zp as l,Ti as m,Yt as n,ue as o,at as p,Qn as q,p as r,ce as s,X as t,Gr as u,Jl as v,Md as w,fN as x,hN as y,pN 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.