1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ExplorePage-D2ILJDC-.js","assets/vendor-ui-BeVD6iDL.js","assets/vendor-react-Dmhbt9i7.js","assets/useUrlColorFilters-CE7POsyk.js","assets/vendor-query-vEtoV3ax.js","assets/useExploreCategories-D0dDP-Zw.js","assets/publicBootstrap-DtHxuElL.js","assets/publicEndpoint-Ckwqc1PI.js","assets/useStructuredData-LZRsIXWo.js","assets/ExploreGridItem-DJTiy_yl.js","assets/mediaUtils-DHUDRmEQ.js","assets/useGridSizing-CfFqWM2M.js","assets/CachedThumbnail-510UIo2J.js","assets/smartBackground-CvDdoYhB.js","assets/extractAuthorFromCaption-BaRJakC1.js","assets/useViewerNavigation-D8RCKvOc.js","assets/navigationStorage-Dz_qdisM.js","assets/routeKey-DUXQ4GF6.js","assets/useNegativeSignal-DBbdXjYh.js","assets/SaveControl-wduiUZVL.js","assets/useSaveImage-0V7dN76A.js","assets/vendor-motion-CENv1AvF.js","assets/sanitizeSearchInput-BLxkYiT0.js","assets/VerifiedBadge-BNgdsJ73.js","assets/SectionErrorBoundary-BoUkqQ1m.js","assets/UnbsGrid-BLe54k3M.js","assets/SignInToContinue-B4_nINQX.js","assets/index-CXaeATGN.js","assets/color-CJkoaDCV.js","assets/useDiscoveryQuery-Df2yqW-K.js","assets/color-BVro5QXQ.css","assets/useColorSearch-vahDDFtK.js","assets/urlNormalization-BGdw2Rls.js","assets/AnimatedPlaceholder-BYtEmXJY.js","assets/useScrollPosition-CdbL1_8Y.js","assets/useExploreTrending-BYdDVfyX.js","assets/dedupeImages-N_uDSGU8.js","assets/ExplorePage-CulGj7Of.css","assets/catalogue-controls--Ws11gO_.css","assets/FeaturedPage-CgwrbQ2-.js","assets/useEditorialPageSize-34gZ4BIp.js","assets/ProjectCard-D-2sNLZM.js","assets/CommentThread-CSoWeglZ.js","assets/avatar-Bosk_0-q.js","assets/Reply-C6p0oEcJ.js","assets/pt-BR-oDe0xF71.js","assets/CommentThread-DrS5OOp9.css","assets/separator-BFoaNYY4.js","assets/PageHeader-Cs0Lgux_.js","assets/share-modal-B4hk7OqX.css","assets/ImagePage-Bu8nCgCk.js","assets/safeImageUrl-D5K3-AyQ.js","assets/findOriginal-Q61xMF5y.js","assets/SendToUserModal-D9suUi79.js","assets/BackIcon-B0Ptl-7G.js","assets/useImageLike-TUGmL0ky.js","assets/CleanVideo-IO52aCFN.js","assets/ImagePage-DGKCkZGh.css","assets/SearchPage-DTtNObL1.js","assets/useProPaywall-CxzjfOKp.js","assets/Undo-BSqjY6no.js","assets/Lens-BEGF_-dc.js","assets/SearchImagesGrid-nd2jdBZY.js","assets/FolderCard-Bnmzi2z1.js","assets/sortable.esm-BxS_f5uj.js","assets/relativeAge-GcBEHDYx.js","assets/ArtistCard-u16dtqQF.js","assets/TwitterIcon-BB4fxTsi.js","assets/UnbservedIcon-DyyZMEXk.js","assets/FollowButton-B1hLT6Te.js","assets/socialProfiles-BA3z3p4l.js","assets/useDebounceAction-D0m-xo-O.js","assets/BlogPostCard-DuFjCJhq.js","assets/card-BAupyZPp.js","assets/useSearchSuggestions-dqlm23ZT.js","assets/SearchPage-DtCTsgPI.css","assets/ArtistsPage-DQiBVFYJ.js","assets/CollectionsPage-C-36wp_r.js","assets/useCollectionsDiscovery-9yAeF0lm.js","assets/ProjectPage-CkfX1aAz.js","assets/ProjectModal-BVbbJan3.js","assets/cardRenderer-CTU6fdU2.js","assets/format-DcAVAVYi.js","assets/AuthorPage-Dx3p_A2j.js","assets/AuthorPage-DTAO17MJ.css","assets/BlogPage-CMqg6PUY.js","assets/useBlogPosts-C2hvkjDo.js","assets/useBlogAuthors-B3xzO-sY.js","assets/PublicProfilePage-hW-xuAQv.js","assets/sortOrder-m-vZDw1P.js","assets/scroll-area-CLhjUmWM.js","assets/index-BdQq_4o_.js","assets/NoteComposer-DwLbrscA.js","assets/NoteModerationMenu-G3qljRQ9.js","assets/UserBadgeAssigner-fTxdPGkL.js","assets/checkbox-BSwclyKP.js","assets/index-DkQrjkUl.js","assets/Medal-Buoj5RD0.js","assets/Shield-CVDS_AtZ.js","assets/Prohibition-U6qG2VsG.js","assets/Star-DTiprdpC.js","assets/Star-DW74aiPM.js","assets/UserBadges-C5GgHL8I.js","assets/NoteCard-CIE-OTxG.js","assets/FeedPage-BW0wVk9o.js","assets/FollowFolderButton-DvBPR_Cx.js","assets/useFolderFollow-CSFDHDut.js","assets/useWindowWidth-CeLcyS-t.js","assets/DashboardPage-V-I3FVX3.js","assets/ShareFolderModal-CQcSHdnq.js","assets/select-B04HanS_.js","assets/ShareFolderModal-aCJAFcuw.css","assets/WarningCircle-CX665VtZ.js","assets/FolderPage-DAa_KnM1.js","assets/useFolderExternalImages-BdCuJPT-.js","assets/FileSaver.min-Bxz4KKPK.js","assets/useFolderCuration-B9nwU
1ZPU.js","assets/LibraryLabPage-BfNN1moo.js","assets/LibraryLabPage-1BEItDg1.css","assets/SettingsPage-dTmTOsio.js","assets/planFeatures-DwiWsGqc.js","assets/submissionOffer-C5xWB-U2.js","assets/reservedUsernames-B_Q9hXYF.js","assets/slider-m6cYJN7o.js","assets/grip-vertical-CVCPuH1v.js","assets/UpgradePage-h9bcmfOW.js","assets/usePricing-mPBifImm.js","assets/SelectFace3d-Dgoz47H7.js","assets/MessagesPage-LxzcoIfT.js","assets/SubmitPage-DEgwj5AW.js","assets/SubmissionBuilderPreviewPage-DNV99W_i.js","assets/previewSequence-Bz4uN_PA.js","assets/SubmissionBuilderPreviewPage-DwlwLWLg.css","assets/types-KBJzO2d1.js","assets/SubmitPage-CBIPZhKE.css","assets/ExtensionPage-13SZOiF3.js","assets/index-3GC-LO3U.js","assets/RegisterPage-D4GGT23c.js","assets/AuthSplit-CVjXpIQT.js","assets/instagramSlides-EG68YdZK.js","assets/controls-BeiF9E-B.js","assets/securityLog-BsgLKzaH.js","assets/HomeLabPage-BsoXa18i.js","assets/instagramCaption-CX4L1raO.js","assets/HomeLabPage-BdjguGVo.css","assets/HomeIntroLabPage-DkllLtg8.js","assets/HomeIntroLabPage-B0dXnei0.css","assets/HomeIntroLabV2Page-DNheXtl6.js","assets/HomeIntroLabV2Page-C-e-EfPd.css","assets/DiscoveryLabPage-DvfJnZQ7.js","assets/DiscoveryLabPage-DbBbOWTA.css","assets/ExploreLabPage-C2Fb2Qz1.js","assets/ExploreLabPage-DCVnf_zM.css","assets/ExtensionConnectPage-B_ng6JAc.js","assets/MoreLabPage-C1fKVbEg.js","assets/MoreLabPage-CF4u3YlA.css","assets/AccountLabPage-DzvQLFJt.js","assets/AccountLabPage-PgesNf09.css","assets/FolderImageViewerPage-Bs0LPa8v.js","assets/NotFoundPage-B4-q2BaI.js","assets/ForgotPasswordPage-CELpP37i.js","assets/ResetPasswordPage-HrpRvpgF.js","assets/CallbackPage-CN5aheKc.js","assets/CompleteProfilePage-B0Y7sYxC.js","assets/NotePage-hjeOVTHT.js","assets/ExtensionScreenshots-DRsqdH-E.js","assets/BlogEditorPage-BYmTZ1ec.js","assets/badge-CuxBpOEs.js","assets/vendor-editor-CFsDosBC.js","assets/renderBlogMarkdown-pUKr01Ha.js","assets/renderBlogMarkdown--J99Tr-H.css","assets/TermsPage-Cfxy3cmx.js","assets/LegalPageLayout-QvTY1173.js","assets/LegalPageLayout-DkfF0gdj.css","assets/PrivacyPage-Y8afmsrV.js","assets/CommunityPage-tJew3Me9.js","assets/CopyrightPage-DTgCUkfN.js","assets/TrademarkPage-BAOy_vjS.js","assets/EnforcementPage-x572Z6c7.js","assets/NonUsersPage-CDlIvwAZ.js","assets/AdminPage-DckK0-xP.js","assets/StatUp-DyswtK3u.js","assets/Database-yBmYxdiY.js","assets/AdminRenewalsPanel-DH0ci-Kt.js","assets/DollarCircle-DMpXG2eR.js","assets/MagicWand-oGUNxxfb.js","assets/Percentage-CYZMwI6m.js","assets/Timer-CjOlKX6e.js","assets/AdminUsersPage-BprkSdti.js","assets/Spark-DzGftPxw.js","assets/AdminPageShell-B5XdvC8l.js","assets/AdminTagsPage-DAU2QAvk.js","assets/AdminUploadsPage-Bgd0bEJl.js","assets/AdminEmbeddingsPage-C9hYz7db.js","assets/switch-C3x8OWYs.js","assets/progress-BnCfEp4Y.js","assets/AdminAnnouncementsPage-BFYTTww2.js","assets/AdminArenaPage-T-0Zk0Ti.js","assets/index-BbTZ3W28.js","assets/AdminBulkEditPage-By5kUEa1.js","assets/AdminFeedbackPage-BX1lg2bF.js","assets/AdminHighlightsPage-5L86EA_t.js","assets/AdminBadgesPage-3_BgqynM.js","assets/AdminInstagramSettingsPage-3ryGW6yA.js","assets/AdminFeaturedPage-B3hOr9mg.js","assets/Play-BQ4h9_EM.js","assets/AvatarUploadField-B0bHKRM1.js","assets/BioLinkHelper-CFsgPUrt.js","assets/Cpu-o7bhDFdB.js","assets/AdminPricingPage-D4ODU0fI.js","assets/Dollar-DFCCHu-_.js","assets/AdminArtistsPage-B4YqF4i6.js","assets/AdminBatchUploadPage-0XfGV393.js","assets/AdminBlogPage-iIggdH3Q.js","assets/AdminBlogAuthorsPage-DV80Vo2-.js","assets/useWriterApplications-beeGbcds.js","assets/AdminEngagementPage-DYDw-pCy.js","assets/AdminDuplicatesPage-DfK-oN5g.js","assets/AdminCardTemplatesPage-DGUZDRiO.js","assets/AdminTrendingPage-BM-vfNBc.js","assets/AdminColorsPage-BeCkSfT0.js","assets/useTrendingColorsManaged-BuGuLWNt.js","assets/AdminBrandingPage-CxoziDaJ.js","assets/AdminMenuVisibilityPage-Dnjk37cI.js","assets/AdminGalleryScraperPage-BzVQjEB-.js","assets/AdminVerificationsPage-D3wFBKsF.js","assets/AdminPromoCodesPage-Dshy9ULE.js","assets/AdminErrorLogsPage-C5pr98zB.js","assets/AdminSubmissionsPage-WCBmbWaM.js","assets/AdminImageMetadataPage-DOjXrC_g.js","assets/AdminAIFeaturesPage-DIefGRRm.js","assets/AdminAuthorEnrichmentPage-DAA5MO-E.js","assets/AdminAICostsPage-C0Ufjcya.js","assets/useAICosts-CZEAR2Pq.js","assets/AdminSystemStatusPage-BXyde3tZ.js","assets/AdminAIQuotaPage-Dor46GL_.js","assets/AdminRenewalsPage-Lw9eASJ5.js","assets/AdminScalabilityPage-k8FCHaM0.js","assets/AdminEdgeHealthPage-DeW8j5Pj.js","assets/AdminSecurityLogsPage-DKf8ejEZ.js"])))=>i.map(i=>d[i]); 2import{j as s,O as qi,P as i2,u as l2,W as Xm,C as Fi,c as ep,T as zi,D as Wi,a as Zi,b as c2,d as tp,e as rp,R as u2,f as np,_ as sp,g as gs,S as op,h as ap,i as d2,k as ip,l as lp,m as cp,L as h2,n as f2,o as m2,p as up,q as p2,r as dp,s as hp,t as fp,v as v2,w as g2,x as mp,y as b2,I as y2,z as w2,A as x2,B as _2,E as k2,F as j2,G as pp,H as vp,J as gp}from"./vendor-ui-BeVD6iDL.js";import{e as bp,L as G,u as Me,N as Ie,a as i,d as V,c as yp,f as Ki,g as wp,h as bs,B as xp,i as _p,j as P}from"./vendor-react-Dmhbt9i7.js";import{u as ae,a as he,b as z,Q as kp,c as jp}from"./vendor-query-vEtoV3ax.js";import{u as Cp,A as ys,m as Mr,a as Ep,b as Sp,c as Lp}from"./vendor-motion-CENv1AvF.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const l of a.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&n(l)}).observe(document,{childList:!0,subtree:!0});function r(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(o){if(o.ep)return;o.ep=!0;const a=r(o);fetch(o.href,a)}})();var Sn={},jl;function Op(){if(jl)return Sn;jl=1;var t=bp();return Sn.createRoot=t.createRoot,Sn.hydrateRoot=t.hydrateRoot,Sn}var $p=Op();const Ap="modulepreload",Tp=function(t){return"/"+t},Cl={}
2,A=function(e,r,n){let o=Promise.resolve();if(r&&r.length>0){let u=function(d){return Promise.all(d.map(f=>Promise.resolve(f).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),c=l?.nonce||l?.getAttribute("nonce");o=u(r.map(d=>{if(d=Tp(d),d in Cl)return;Cl[d]=!0;const f=d.endsWith(".css"),h=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${h}`))return;const m=document.createElement("link");if(m.rel=f?"stylesheet":Ap,f||(m.as="script"),m.crossOrigin="",m.href=d,c&&m.setAttribute("nonce",c),document.head.appendChild(m),f)return new Promise((v,p)=>{m.addEventListener("load",v),m.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${d}`)))})}))}function a(l){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=l,window.dispatchEvent(c),!c.defaultPrevented)throw l}return o.then(l=>{for(const c of l||[])c.status==="rejected"&&a(c.reason);return e().catch(a)})};function Pp(){const{search:t,hash:e}=Me();return s.jsx(Ie,{replace:!0,to:"/featured/creatives"+t+e})}function tT({view:t,lab:e=!0,showNavigation:r=!0}){return s.jsx(s.Fragment,{children:s.jsxs("header",{className:e?"discovery-lab-title editorial-heading":"container-centered pt-8 pb-4 editorial-heading",children:[s.jsx("h1",{className:"text-2xl font-bold tracking-tight text-foreground",children:"Featured"}),s.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Handpicked projects and creative talent worldwide."}),t==="projects"&&s.jsx(G,{className:"discovery-lab-header-action",to:"/submit",children:"Submit your work"}),r&&s.jsx(Rp,{view:t})]})})}function Rp({view:t}){return s.jsx("nav",{className:"editorial-navigation","aria-label":"Featured views",children:s.jsxs("div",{className:"editorial-segments",children:[s.jsx(G,{to:"/featured","aria-current":t==="projects"?"page":void 0,children:"Projects"}),s.jsx(G,{to:"/featured/creatives","aria-current":t==="creatives"?"page":void 0,children:"Creatives"})]})})}function C2(t){return t.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").substring(0,50)}function Np(t){return/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(t)}const E2=["Advertising","Advocacy","Architecture","Automobile","Aviation","Charity","Consulting","Consumer Products","Corporate","CRM","Culture","Destinations","Development","Education","Entertainment","Environment","Fashion","Finance","Food","Government","Graphics Industry","Health","Hospital
2ity","Insurance","Lifestyle","Logistics","Lottery","Media","Non-Profit","Nutrition","Politics","Publishing","Real Estate","Religion","Restaurant","Retailers","Software","Sports","Technology","Telecom","Transportation","Travel","Web Publication","Web Service"],El={"food & beverage":"Food","food and beverage":"Food","f&b":"Food",beverage:"Food",beverages:"Food",coffee:"Food",drinks:"Food",brewery:"Food",wine:"Food",beer:"Food",snacks:"Food",grocery:"Food",restaurant:"Restaurant",restaurants:"Restaurant",cafe:"Restaurant",café:"Restaurant",bar:"Restaurant",parrilla:"Restaurant",bakery:"Restaurant","personal care":"Health",beauty:"Health",cosmetics:"Health",skincare:"Health",healthcare:"Health","health care":"Health",wellness:"Health",medical:"Health",pharma:"Health",pharmaceutical:"Health",hygiene:"Health",nutrition:"Nutrition",supplements:"Nutrition",tech:"Technology",startup:"Technology",ai:"Technology",electronics:"Technology",hardware:"Technology",app:"Software",apps:"Software",saas:"Software","web service":"Web Service","web app":"Web Service",platform:"Web Service",marketplace:"Web Service","digital platform":"Web Service",telecommunications:"Telecom","mobile carrier":"Telecom",crm:"CRM","media agency":"Advertising",agency:"Advertising",marketing:"Advertising","creative agency":"Advertising","ad agency":"Advertising",broadcast:"Media",tv:"Media",television:"Media",radio:"Media",streaming:"Media",podcast:"Media",news:"Media",magazine:"Publishing",books:"Publishing",book:"Publishing",newspaper:"Publishing",editorial:"Publishing",publisher:"Publishing","web publication":"Web Publication",blog:"Web Publication","online magazine":"Web Publication",music:"Entertainment",film:"Entertainment",cinema:"Entertainment",gaming:"Entertainment",games:"Entertainment","video games":"Entertainment",events:"Entertainment",luxury:"Fashion",apparel:"Fashion",clothing:"Fashion",footwear:"Fashion",sportswear:"Fashion",streetwear:"Fashion",jewelry:"Fashion",jewellery:"Fashion",retail:"Retailers",store:"Retailers",shop:"Retailers","e-commerce":"Retailers",ecommerce:"Retailers","consumer goods":"Consumer Products",products:"Consumer Products",fmcg:"Consumer Products","packaged goods":"Consumer Products",product:"Consumer Products",home:"Lifestyle",furniture:"Lifestyle",homeware:"Lifestyle",interior:"Lifestyle","real estate":"Real Estate",property:"Real Estate","real estate development":"Development",hotel:"Hospitality",hotels:"Hospitality",resort:"Hospitality",tourism:"Travel",destination:"Destinations",city:"Destinations",country:"Destinations","place branding":"Destinations",transport:"Transportation",transit:"Transportation",mobility:"Transportation",airline:"Aviation",airport:"Aviation",automotive:"Automobile",cars:"Automobile",car:"Automobile",shipping:"Logistics",delivery:"Logistics","interior design":"Architecture",construction:"Architecture",bank:"Finance",banking:"Finance",fintech:"Finance",financial:"Finance",crypto:"Finance",investment:"Finance",payments:"Finance","non profit":"Non-Profit",nonprofit:"Non-Profit",ngo:"Non-Profit",university:"Education",school:"Education",academy:"Education","public sector":"Government",municipality:"Government",campaign:"Politics",activism:"Advocacy",church:"Religion",b2b:"Corporate",industrial:"Corporate",manufacturing:"Corporate",engineering:"Corporate",gambling:"Lottery",betting:"Lottery",casino:"Lottery",museum:"Culture",arts:"Culture",art:"Culture",gallery:"Culture",theatre:"Culture",theater:"Culture",festival:"Culture",exhibition:"Culture",sport:"Sports",football:"Sports",fitness:"Sports",gym:"Sports",environmental:"Environment",sustainability:"Environment",energy:"Environment",climate:"Environment","design studio":"Graphics Industry","type foundry":"Graphics Industry",foundry:"Graphics Industry",typography:"Graphics Industry",portfolio:"Graphics Industry",printing:"Graphics Industry","graphic design":"Graphics Industry",design:"Graphics Industry",creative:"Graphics Industry"},Sl=new Map(E2.map(t=>[t.toLowerCase(),t]));function Ll(t){if(!t)return null;const e=t.trim().toLowerCase().replace(/\s+/g," ");
2if(!e||e==="general"||e==="other")return null;const r=Sl.get(e);if(r)return r;const n=El[e];if(n)return n;for(const[o,a]of Object.entries(El))if(o.length>=4&&e.includes(o))return a;for(const[o,a]of Sl)if(o.length>=4&&e.includes(o))return a;return null}function rT(t){const e=Ll(t.industry);if(e)return e;const r=(t.category||"").split(",").map(o=>o.trim()).filter(Boolean);if(r.length===0)return null;const n=r.length>=2?[r[1],...r.filter((o,a)=>a!==1)]:r;for(const o of n){const a=Ll(o);if(a)return a}return null}function nT(t){return C2(String(t))}const Mp=new Map(E2.map(t=>[C2(t),t]));function Ip(t){return t?Mp.get(t.toLowerCase())??null:null}const sn="cookie-consent";function Dp(){try{return localStorage.getItem(sn)==="accepted"}catch{return!1}}const Ol="https://www.googletagmanager.com/gtag/js?id=G-2SDT6FQXSW";function Gi(...t){typeof window>"u"||(typeof window.gtag=="function"?window.gtag(...t):(window.dataLayer=window.dataLayer||[]).push(t))}function Qi(){try{const t=localStorage.getItem(sn);return t==="accepted"?"granted":t==="rejected"?"denied":null}catch{return null}}function Vp(){if(typeof document>"u"||document.querySelector(`script[src="${Ol}"]`))return;const t=document.createElement("script");t.async=!0,t.src=Ol,document.head.appendChild(t)}function di(t){t==="granted"&&Vp(),Gi("consent","update",{analytics_storage:t,ad_storage:"denied",ad_user_data:"denied",ad_personalization:"denied"})}function Hp(){Qi()==="granted"&&di("granted")}function Bp(t,e){Qi()==="granted"&&(t=t.split(/[?#]/)[0],Gi("event","page_view",{page_path:t,page_location:`https://unbserved.com${t}`,...e?{page_title:e}:{}}))}function sT(t){if(Qi()!=="granted")return;const{name:e,...r}=t;Gi("event",e,r)}const S2=i.createContext(!1);function Up(){return i.useContext(S2)}var L2="AlertDialog",[qp]=rp(L2,[c2]),Mt=c2(),O2=t=>{const{__scopeAlertDialog:e,...r}=t,n=Mt(e);return s.jsx(u2,{...n,...r,modal:!0})};O2.displayName=L2;var Fp="AlertDialogTrigger",$2=i.forwardRef((t,e)=>{const{__scopeAlertDialog:r,...n}=t,o=Mt(r);return s.jsx(np,{...o,...n,ref:e})});$2.displayName=Fp;var zp="AlertDialogPortal",A2=t=>{const{__scopeAlertDialog:e,...r}=t,n=Mt(e);return s.jsx(i2,{...n,...r})};A2.displayName=zp;var Wp="AlertDialogOverlay",T2=i.forwardRef((t,e)=>{const{__scopeAlertDialog:r,...n}=t,o=Mt(r);return s.jsx(qi,{...o,...n,ref:e})});T2.displayName=Wp;var Rr="AlertDialogContent",[Zp,Kp]=qp(Rr),Gp=tp("AlertDialogContent"),P2=i.forwardRef((t,e)=>{const{__scopeAlertDialog:r,children:n,...o}=t,a=Mt(r),l=i.useRef(null),c=l2(e,l),u=i.useRef(null);return s.jsx(Xm,{contentName:Rr,titleName:R2,docsSlug:"alert-dialog",children:s.jsx(Zp,{scope:r,cancelRef:u,children:s.jsxs(Fi,{role:"alertdialog",...a,...o,ref:c,onOpenAutoFocus:ep(o.onOpenAutoFocus,d=>{d.preventDefault(),u.current?.focus({preventScroll:!0})}),onPointerDownOutside:d=>d.preventDefault(),onInteractOutside:d=>d.preventDefault(),children:[s.jsx(Gp,{children:n}),s.jsx(Yp,{contentRef:l})]})})})});P2.displayName=Rr;var R2="AlertDialogTitle",N2=i.forwardRef((t,e)=>{const{__scopeAlertDialog:r,...n}=t,o=Mt(r);return s.jsx(zi,{...o,...n,ref:e})});N2.displayName=R2;var M2="AlertDialogDescription",I2=i.forwardRef((t,e)=>{const{__scopeAlertDialog:r,...n}=t,o=Mt(r);return s.jsx(Wi,{...o,...n,ref:e})});I2.displayName=M2;var Qp="AlertDialogAction",D2=i.forwardRef((t,e)=>{const{__scopeAlertDialog:r,...n}=t,o=Mt(r);return s.jsx(Zi,{...o,...n,ref:e})});D2.displayName=Qp;var V2="AlertDialogCancel",H2=i.forwardRef((t,e)=>{const{__scopeAlertDialog:r,...n}=t,{cancelRef:o}=Kp(V2,r),a=Mt(r),l=l2(e,o);return s.jsx(Zi,{...a,...n,ref:l})});H2.displayName=V2;var Yp=({contentRef:t})=>{const e=`\`${Rr}\` requires a description for the component to be accessible for screen reader users. 3 4You can add a description to the \`${Rr}\` by passing a \`${M2}\` component as a child, which also benefits sighted users by adding visible context to the dialog. 5 6Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${Rr}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component. 7 8For more information, see https://radix-ui.com/primitives/docs/components/
8alert-dialog`;return i.useEffect(()=>{document.getElementById(t.current?.getAttribute("aria-describedby"))||console.warn(e)},[e,t]),null},Jp=O2,Xp=$2,ev=A2,B2=T2,U2=P2,q2=D2,F2=H2,z2=N2,W2=I2;function Z2(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(r=Z2(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function K2(){for(var t,e,r=0,n="",o=arguments.length;r<o;r++)(t=arguments[r])&&(e=Z2(t))&&(n&&(n+=" "),n+=e);return n}const Yi="-",tv=t=>{const e=nv(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:l=>{const c=l.split(Yi);return c[0]===""&&c.length!==1&&c.shift(),G2(c,e)||rv(l)},getConflictingClassGroupIds:(l,c)=>{const u=r[l]||[];return c&&n[l]?[...u,...n[l]]:u}}},G2=(t,e)=>{if(t.length===0)return e.classGroupId;const r=t[0],n=e.nextPart.get(r),o=n?G2(t.slice(1),n):void 0;if(o)return o;if(e.validators.length===0)return;const a=t.join(Yi);return e.validators.find(({validator:l})=>l(a))?.classGroupId},$l=/^\[(.+)\]$/,rv=t=>{if($l.test(t)){const e=$l.exec(t)[1],r=e?.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},nv=t=>{const{theme:e,classGroups:r}=t,n={nextPart:new Map,validators:[]};for(const o in r)hi(r[o],n,o,e);return n},hi=(t,e,r,n)=>{t.forEach(o=>{if(typeof o=="string"){const a=o===""?e:Al(e,o);a.classGroupId=r;return}if(typeof o=="function"){if(sv(o)){hi(o(n),e,r,n);return}e.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([a,l])=>{hi(l,Al(e,a),r,n)})})},Al=(t,e)=>{let r=t;return e.split(Yi).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},sv=t=>t.isThemeGetter,ov=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,n=new Map;const o=(a,l)=>{r.set(a,l),e++,e>t&&(e=0,n=r,r=new Map)};return{get(a){let l=r.get(a);if(l!==void 0)return l;if((l=n.get(a))!==void 0)return o(a,l),l},set(a,l){r.has(a)?r.set(a,l):o(a,l)}}},fi="!",mi=":",av=mi.length,iv=t=>{const{prefix:e,experimentalParseClassName:r}=t;let n=o=>{const a=[];let l=0,c=0,u=0,d;for(let p=0;p<o.length;p++){let w=o[p];if(l===0&&c===0){if(w===mi){a.push(o.slice(u,p)),u=p+av;continue}if(w==="/"){d=p;continue}}w==="["?l++:w==="]"?l--:w==="("?c++:w===")"&&c--}const f=a.length===0?o:o.substring(u),h=lv(f),m=h!==f,v=d&&d>u?d-u:void 0;return{modifiers:a,hasImportantModifier:m,baseClassName:h,maybePostfixModifierPosition:v}};if(e){const o=e+mi,a=n;n=l=>l.startsWith(o)?a(l.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:l,maybePostfixModifierPosition:void 0}}if(r){const o=n;n=a=>r({className:a,parseClassName:o})}return n},lv=t=>t.endsWith(fi)?t.substring(0,t.length-1):t.startsWith(fi)?t.substring(1):t,cv=t=>{const e=Object.fromEntries(t.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const o=[];let a=[];return n.forEach(l=>{l[0]==="["||e[l]?(o.push(...a.sort(),l),a=[]):a.push(l)}),o.push(...a.sort()),o}},uv=t=>({cache:ov(t.cacheSize),parseClassName:iv(t),sortModifiers:cv(t),...tv(t)}),dv=/\s+/,hv=(t,e)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=e,l=[],c=t.trim().split(dv);let u="";for(let d=c.length-1;d>=0;d-=1){const f=c[d],{isExternal:h,modifiers:m,hasImportantModifier:v,baseClassName:p,maybePostfixModifierPosition:w}=r(f);if(h){u=f+(u.length>0?" "+u:u);continue}let y=!!w,b=n(y?p.substring(0,w):p);if(!b){if(!y){u=f+(u.length>0?" "+u:u);continue}if(b=n(p),!b){u=f+(u.length>0?" "+u:u);continue}y=!1}const _=a(m).join(":"),g=v?_+fi:_,j=g+b;if(l.includes(j))continue;l.push(j);const E=o(b,y);for(let L=0;L<E.length;++L){const D=E[L];l.push(g+D)}u=f+(u.length>0?" "+u:u)}return u};function fv(){let t=0,e,r,n="";for(;t<arguments.length;)(e=arguments[t++])&&(r=Q2(e))&&(n&&(n+=" "),n+=r);return n}const Q2=t=>{if(typeof t=="string")return t;let e,r="";for(let n=0;n<t.length;n++)t[n]&&(e=Q2(t[n]))&&(r&&(r+=" "),r+=e);return r};function mv(t,...e){let r,n,o,a=l;function l(u){const d=e.reduce((f,h)=>h(f),t());return r=uv(d),n=r.cache.get,o=r.cache.set,a=c,c(u)}function c(u){const d=n(u);if(d)return d;const f=hv(u,r);return o(u,f),f}return function(){return a(fv.apply(null,arguments))}}const Re=t=>{const e=r=>r[t]||[];return e.isThemeGetter=!0,e},Y2=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,J2=/^\((?:(\w[\w-]*):)?(.+)\)$/i,pv=/^\d+\/\d+$/,vv=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,gv=/\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$/,bv=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,yv=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,wv=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,xr=t=>pv.test(t),pe=t=>!!t&&!Number.isNaN(Number(t)),Ut=t=>!!t&&Number.isInteger(Number(t)),Ns=t=>t.endsWith("%")&&pe(t.slice(0,-1)),Rt=t=>vv.test(t),xv=()=>!0,_v=t=>gv.test(t)&&!bv.test(t),X2=()=>!1,kv=t=>yv.test(t),jv=t=>wv.test(t),Cv=t=>!Z(t)&&!K(t),Ev=t=>Ir(t,rf,X2),Z=t=>Y2.test(t),Xt=t=>Ir(t,nf,_v),Ms=t=>Ir(t,Av,pe),Tl=t=>Ir(t,ef,X2),Sv=t=>Ir(t,tf,jv),Ln=t=>Ir(t,sf,kv),K=t=>J2.test(t),Ur=t=>Dr(t,nf),Lv=t=>Dr(t,Tv),Pl=t=>Dr(t,ef),Ov=t=>Dr(t,rf),$v=t=>Dr(t,tf),On=t=>Dr(t,sf,!0),Ir=(t,e,r)=>{const n=Y2.exec(t);
vendor: 4,436 bytes, line 8
8return n?n[1]?e(n[1]):r(n[2]):!1},Dr=(t,e,r=!1)=>{const n=J2.exec(t);return n?n[1]?e(n[1]):r:!1},ef=t=>t==="position"||t==="percentage",tf=t=>t==="image"||t==="url",rf=t=>t==="length"||t==="size"||t==="bg-size",nf=t=>t==="length",Av=t=>t==="number",Tv=t=>t==="family-name",sf=t=>t==="shadow",Pv=()=>{const t=Re("color"),e=Re("font"),r=Re("text"),n=Re("font-weight"),o=Re("tracking"),a=Re("leading"),l=Re("breakpoint"),c=Re("container"),u=Re("spacing"),d=Re("radius"),f=Re("shadow"),h=Re("inset-shadow"),m=Re("text-shadow"),v=Re("drop-shadow"),p=Re("blur"),w=Re("perspective"),y=Re("aspect"),b=Re("ease"),_=Re("animate"),g=()=>["auto","avoid","all","avoid-page","page","left","right","column"],j=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...j(),K,Z],L=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto","contain","none"],C=()=>[K,Z,u],$=()=>[xr,"full","auto",...C()],R=()=>[Ut,"none","subgrid",K,Z],Y=()=>["auto",{span:["full",Ut,K,Z]},Ut,K,Z],ve=()=>[Ut,"auto",K,Z],be=()=>["auto","min","max","fr",K,Z],Pe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],te=()=>["start","end","center","stretch","center-safe","end-safe"],ie=()=>["auto",...C()],ue=()=>[xr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],W=()=>[t,K,Z],B=()=>[...j(),Pl,Tl,{position:[K,Z]}],le=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ce=()=>["auto","cover","contain",Ov,Ev,{size:[K,Z]}],Je=()=>[Ns,Ur,Xt],U=()=>["","none","full",d,K,Z],fe=()=>["",pe,Ur,Xt],ne=()=>["solid","dashed","dotted","double"],M=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],H=()=>[pe,Ns,Pl,Tl],X=()=>["","none",p,K,Z],_e=()=>["none",pe,K,Z],Ce=()=>["none",pe,K,Z],mt=()=>[pe,K,Z],Xe=()=>[xr,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Rt],breakpoint:[Rt],color:[xv],container:[Rt],"drop-shadow":[Rt],ease:["in","out","in-out"],font:[Cv],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Rt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Rt],shadow:[Rt],spacing:["px",pe],text:[Rt],"text-shadow":[Rt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",xr,Z,K,y]}],container:["container"],columns:[{columns:[pe,Z,K,c]}],"break-after":[{"break-after":g()}],"break-before":[{"break-before":g()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:E()}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:$()}],"inset-x":[{"inset-x":$()}],"inset-y":[{"inset-y":$()}],start:[{start:$()}],end:[{end:$()}],top:[{top:$()}],right:[{right:$()}],bottom:[{bottom:$()}],left:[{left:$()}],visibility:["visible","invisible","collapse"],z:[{z:[Ut,"auto",K,Z]}],basis:[{basis:[xr,"full","auto",c,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[pe,xr,"auto","initial","none",Z]}],grow:[{grow:["",pe,K,Z]}],shrink:[{shrink:["",pe,K,Z]}],order:[{order:[Ut,"first","last","none",K,Z]}],"grid-cols":[{"grid-cols":R()}],"col-start-end":[{col:Y()}],"col-start":[{"col-start":ve()}
vendor: 10,984 bytes, line 8
8],"col-end":[{"col-end":ve()}],"grid-rows":[{"grid-rows":R()}],"row-start-end":[{row:Y()}],"row-start":[{"row-start":ve()}],"row-end":[{"row-end":ve()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":be()}],"auto-rows":[{"auto-rows":be()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...Pe(),"normal"]}],"justify-items":[{"justify-items":[...te(),"normal"]}],"justify-self":[{"justify-self":["auto",...te()]}],"align-content":[{content:["normal",...Pe()]}],"align-items":[{items:[...te(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...te(),{baseline:["","last"]}]}],"place-content":[{"place-content":Pe()}],"place-items":[{"place-items":[...te(),"baseline"]}],"place-self":[{"place-self":["auto",...te()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:ie()}],mx:[{mx:ie()}],my:[{my:ie()}],ms:[{ms:ie()}],me:[{me:ie()}],mt:[{mt:ie()}],mr:[{mr:ie()}],mb:[{mb:ie()}],ml:[{ml:ie()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:ue()}],w:[{w:[c,"screen",...ue()]}],"min-w":[{"min-w":[c,"screen","none",...ue()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[l]},...ue()]}],h:[{h:["screen","lh",...ue()]}],"min-h":[{"min-h":["screen","lh","none",...ue()]}],"max-h":[{"max-h":["screen","lh",...ue()]}],"font-size":[{text:["base",r,Ur,Xt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,K,Ms]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ns,Z]}],"font-family":[{font:[Lv,Z,e]}],"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:[o,K,Z]}],"line-clamp":[{"line-clamp":[pe,"none",K,Ms]}],leading:[{leading:[a,...C()]}],"list-image":[{"list-image":["none",K,Z]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",K,Z]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:W()}],"text-color":[{text:W()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ne(),"wavy"]}],"text-decoration-thickness":[{decoration:[pe,"from-font","auto",K,Xt]}],"text-decoration-color":[{decoration:W()}],"underline-offset":[{"underline-offset":[pe,"auto",K,Z]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",K,Z]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",K,Z]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:B()}],"bg-repeat":[{bg:le()}],"bg-size":[{bg:ce()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ut,K,Z],radial:["",K,Z],conic:[Ut,K,Z]},$v,Sv]}],"bg-color":[{bg:W()}],"gradient-from-pos":[{from:Je()}],"gradient-via-pos":[{via:Je()}],"gradient-to-pos":[{to:Je()}],"gradient-from":[{from:W()}],"gradient-via":[{via:W()}],"gradient-to":[{to:W()}],rounded:[{rounded:U()}],"rounded-s":[{"rounded-s":U()}],"rounded-e":[{"rounded-e":U()}],"rounded-t":[{"rounded-t":U()}],"rounded-r":[{"rounded-r":U()}],"rounded-b":[{"rounded-b":U()}],"rounded-l":[{"rounded-l":U()}],"rounded-ss":[{"rounded-ss":U()}],"rounded-se":[{"rounded-se":U()}],"rounded-ee":[{"rounded-ee":U()}],"rounded-es":[{"rounded-es":U()}],"rounded-tl":[{"rounded-tl":U()}],"rounded-tr":[{"rounded-tr":U()}],"rounded-br":[{"rounded-br":U()}],"rounded-bl":[{"rounded-bl":U()}],"border-w":[{border:fe()}],"border-w-x":[{"border-x":fe()}],"border-w-y":[{"border-y":fe()}],"border-w-s":[{"border-s":fe()}],"border-w-e":[{"border-e":fe()}],"border-w-t":[{"border-t":fe()}],"border-w-r":[{"border-r":fe()}],"border-w-b":[{"border-b":fe()}],"border-w-l":[{"border-l":fe()}],"divide-x":[{"divide-x":fe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":fe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ne(),"hidden","none"]}],"divide-style":[{divide:[...ne(),"hidden","none"]}],"border-color":[{border:W()}],"border-color-x":[{"border-x":W()}],"border-color-y":[{"border-y":W()}],"border-color-s":[{"border-s":W()}],"border-color-e":[{"border-e":W()}],"border-color-t":[{"border-t":W()}],"border-color-r":[{"border-r":W()}],"border-color-b":[{"border-b":W()}],"border-color-l":[{"border-l":W()}],"divide-color":[{divide:W()}],"outline-style":[{outline:[...ne(),"none","hidden"]}],"outline-offset":[{"outline-offset":[pe,K,Z]}],"outline-w":[{outline:["",pe,Ur,Xt]}],"outline-color":[{outline:W()}],shadow:[{shadow:["","none",f,On,Ln]}],"shadow-color":[{shadow:W()}],"inset-shadow":[{"inset-shadow":["none",h,On,Ln]}],"inset-shadow-color":[{"inset-shadow":W()}],"ring-w":[{ring:fe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:W()}],"ring-offset-w":[{"ring-offset":[pe,Xt]}],"ring-offset-color":[{"ring-offset":W()}],"inset-ring-w":[{"inset-ring":fe()}],"inset-ring-color":[{"inset-ring":W()}],"text-shadow":[{"text-shadow":["none",m,On,Ln]}],"text-shadow-color":[{"text-shadow":W()}],opacity:[{opacity:[pe,K,Z]}],"mix-blend":[{"mix-blend":[...M(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":M()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[pe]}],"mask-image-linear-from-pos":[{"mask-linear-from":H()}],"mask-image-linear-to-pos":[{"mask-linear-to":H()}],"mask-image-linear-from-color":[{"mask-linear-from":W()}],"mask-image-linear-to-color":[{"mask-linear-to":W()}],"mask-image-t-from-pos":[{"mask-t-from":H()}],"mask-image-t-to-pos":[{"mask-t-to":H()}],"mask-image-t-from-color":[{"mask-t-from":W()}],"mask-image-t-to-color":[{"mask-t-to":W()}],"mask-image-r-from-pos":[{"mask-r-from":H()}],"mask-image-r-to-pos":[{"mask-r-to":H()}],"mask-image-r-from-color":[{"mask-r-from":W()}],"mask-image-r-to-color":[{"mask-r-to":W()}],"mask-image-b-from-pos":[{"mask-b-from":H()}],"mask-image-b-to-pos":[{"mask-b-to":H()}],"mask-image-b-from-color":[{"mask-b-from":W()}],"mask-image-b-to-color":[{"mask-b-to":W()}],"mask-image-l-from-pos":[{"mask-l-from":H()}],"mask-image-l-to-pos":[{"mask-l-to":H()}],"mask-image-l-from-color":[{"mask-l-from":W()}],"mask-image-l-to-color":[{"mask-l-to":W()}],"mask-image-x-from-pos":[{"mask-x-from":H()}],"mask-image-x-to-pos":[{"mask-x-to":H()}],"mask-image-x-from-color":[{"mask-x-from":W()}],"mask-image-x-to-color":[{"mask-x-to":W()}],"mask-image-y-from-pos":[{"mask-y-from":H()}],"mask-image-y-to-pos":[{"mask-y-to":H()}],"mask-image-y-from-color":[{"mask-y-from":W()}],"mask-image-y-to-color":[{"mask-y-to":W()}],"mask-image-radial":[{"mask-radial":[K,Z]}],"mask-image-radial-from-pos":[{"mask-radial-from":H()}],"mask-image-radial-to-pos":[{"mask-radial-to":H()}],"mask-image-radial-from-color":[{"mask-radial-from":W()}],"mask-image-radial-to-color":[{"mask-radial-to":W()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":j()}],"mask-image-conic-pos":[{"mask-conic":[pe]}],"mask-image-conic-from-pos":[{"mask-conic-from":H()}],"mask-image-conic-to-pos":[{"mask-conic-to":H()}],"mask-image-conic-from-color":[{"mask-conic-from":W()}],"mask-image-conic-to-color":[{"mask-conic-to":W()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:B()}],"mask-repeat":[{mask:le()}],"mask-size":[{mask:ce()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",K,Z]}],filter:[{filter:["","none",K,Z]}],blur:[{blur:X()}],brightness:[{brightness:[pe,K,Z]}],contrast:[{contrast:[pe,K,Z]}],"drop-shadow":[{"drop-shadow":["","none",v,On,Ln]}],"drop-shadow-color":[{"drop-shadow":W()}],grayscale:[{grayscale:["",pe,K,Z]}],"hue-rotate":[{"hue-rotate":[pe,K,Z]}],invert:[{invert:["",pe,K,Z]}],saturate:[{saturate:[pe,K,Z]}],sepia:[{sepia:["",pe,K,Z]}],"backdrop-filter":[{"backdrop-filter":["","none",K,Z]}],"backdrop-blur":[{"backdrop-blur":X()}],"backdrop-brightness":[{"backdrop-brightness":[pe,K,Z]}],"backdrop-contrast":[{"backdrop-contrast":[pe,K,Z]}],"backdrop-grayscale":[{"backdrop-grayscale":["",pe,K,Z]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[pe,K,Z]}],"backdrop-invert":[{"backdrop-invert":["",pe,K,Z]}],"backdrop-opacity":[{"backdrop-opacity":[pe,K,Z]}],"backdrop-saturate":[{"backdrop-saturate":[pe,K,Z]}],"backdrop-sepia":[{"backdrop-sepia":["",pe,K,Z]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",K,Z]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[pe,"initial",K,Z]}],ease:[{ease:["linear","initial",b,K,Z]}],delay:[{delay:[pe,K,Z]}],animate:[{animate:["none",_,K,Z]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,K,Z]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:_e()}],"rotate-x":[{"rotate-x":_e()}],"rotate-y":[{"rotate-y":_e()}],"rotate-z":[{"rotate-z":_e()}],scale:[{scale:Ce()}],"scale-x":[{"scale-x":Ce()}],"scale-y":[{"scale-y":Ce()}],"scale-z":[{"scale-z":Ce()}],"scale-3d":["scale-3d"],skew:[{skew:mt()}],"skew-x":[{"skew-x":mt()}],"skew-y":[{"skew-y":mt()}],transform:[{transform:[K,Z,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Xe()}],"translate-x":[{"translate-x":Xe()}],"translate-y":[{"translate-y":Xe()}],"translate-z":[{"translate-z":Xe()}],"translate-none":["translate-none"],accent:[{accent:W()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:W()}
8],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",K,Z]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",K,Z]}],fill:[{fill:["none",...W()]}],"stroke-w":[{stroke:[pe,Ur,Xt,Ms]}],stroke:[{stroke:["none",...W()]}],"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-x","border-w-y","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-x","border-color-y","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Rv=mv(Pv);function re(...t){return Rv(K2(t))}const Nv=Jp,oT=Xp,Mv=ev,of=i.forwardRef(({className:t,...e},r)=>s.jsx(B2,{"data-ui":"alert-overlay",className:re("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",t),...e,ref:r}));of.displayName=B2.displayName;const af=i.forwardRef(({className:t,...e},r)=>s.jsxs(Mv,{children:[s.jsx(of,{}),s.jsx(U2,{"data-ui":"alert",ref:r,className:re("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rou
8nded-lg",t),...e})]}));af.displayName=U2.displayName;const lf=({className:t,...e})=>s.jsx("div",{className:re("flex flex-col space-y-2 text-center sm:text-left",t),...e});lf.displayName="AlertDialogHeader";const cf=({className:t,...e})=>s.jsx("div",{className:re("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...e});cf.displayName="AlertDialogFooter";const uf=i.forwardRef(({className:t,...e},r)=>s.jsx(z2,{ref:r,className:re("text-lg font-semibold",t),...e}));uf.displayName=z2.displayName;const df=i.forwardRef(({className:t,...e},r)=>s.jsx(W2,{ref:r,className:re("text-sm text-muted-foreground",t),...e}));df.displayName=W2.displayName;const hf=i.forwardRef(({className:t,...e},r)=>s.jsx(q2,{ref:r,className:re("inline-flex h-10 items-center justify-center rounded-md bg-primary px-4 py-2 text-sm font-semibold text-primary-foreground ring-offset-background transition-colors hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",t),...e}));hf.displayName=q2.displayName;const ff=i.forwardRef(({className:t,...e},r)=>s.jsx(F2,{ref:r,className:re("inline-flex h-10 items-center justify-center rounded-md border border-input bg-background px-4 py-2 text-sm font-semibold ring-offset-background transition-colors hover:bg-secondary hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 mt-2 sm:mt-0",t),...e}));ff.displayName=F2.displayName;const mf=i.createContext(null);function Iv({children:t}){const[e,r]=i.useState(null),[n,o]=i.useState(""),a=i.useRef(null);i.useEffect(()=>{if(!e)return;o(e.kind==="prompt"?e.opts.input.defaultValue??"":"");const v=window.setTimeout(()=>a.current?.focus(),50);return()=>window.clearTimeout(v)},[e]);const l=i.useMemo(()=>({confirm:v=>new Promise(p=>r({kind:"confirm",opts:v,resolve:p})),prompt:v=>new Promise(p=>r({kind:"prompt",opts:v,resolve:p})),alert:v=>new Promise(p=>r({kind:"alert",opts:v,resolve:p}))}),[]),c=i.useCallback(v=>{e&&(e.kind==="confirm"?e.resolve(v):e.kind==="prompt"?e.resolve(v?n.trim():null):e.resolve(),r(null))},[e,n]),u=e?.kind==="prompt"||e?.kind==="confirm"&&!!e.opts.typeToConfirm,d=e?e.kind==="confirm"&&e.opts.typeToConfirm?n===e.opts.typeToConfirm:e.kind==="prompt"&&e.opts.input.required?n.trim().length>0:!0:!1,f=e?.kind!=="alert"&&e?.opts.variant==="destructive",h=e?.kind==="prompt"?e.opts.input.label:e?.kind==="confirm"&&e.opts.typeToConfirm?`Type "${e.opts.typeToConfirm}" to confirm`:void 0,m=e?.kind==="prompt"?e.opts.input.placeholder:e?.kind==="confirm"?e.opts.typeToConfirm:void 0;return s.jsxs(mf.Provider,{value:l,children:[t,s.jsx(Nv,{open:!!e,onOpenChange:v=>{v||c(!1)},children:e&&s.jsxs(af,{children:[s.jsxs(lf,{children:[s.jsx(uf,{children:e.opts.title}),e.opts.description&&s.jsx(df,{children:e.opts.description})]}),u&&s.jsxs("div",{className:"space-y-1.5",children:[h&&s.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:h}),s.jsx("input",{ref:a,type:"text",value:n,onChange:v=>o(v.target.value),onKeyDown:v=>{v.key==="Enter"&&d&&(v.preventDefault(),c(!0))},placeholder:m,spellCheck:!1,autoComplete:"off",className:"w-full bg-secondary border-0 rounded-lg px-3 py-2 text-sm placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-primary"})]}),s.jsxs(cf,{children:[e.kind!=="alert"&&s.jsx(ff,{onClick:()=>c(!1),children:e.opts.cancelText??"Cancelar"}),s.jsx(hf,{disabled:!d,onClick:v=>{v.preventDefault(),c(!0)},className:re(f&&"bg-destructive text-destructive-foreground hover:bg-destructive/90"),children:e.kind==="alert"?e.opts.okText??"OK":e.opts.confirmText??(f?"Excluir":"Confirmar")})]})]})})]})}function aT(){const t=i.useContext(mf);if(!t)throw new Error("useConfirm must be used inside <ConfirmProvider>");return t}function Dv(t){if(typeof document>"u")return;let e=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",e.appendChild(r),r.styleSheet?r.styleSheet.cssText=t:r.appendChild(document.createTextNode(t))}const Vv=t=>{switch(t){case"success":return Uv;case"info":return Fv;case"warning":return qv;case"error":return zv;default:return null}},Hv=Array(12).fill(0),Bv=({visible:t,className:e})=>V.createElement("div",{className:["sonner-loading-wrapper",e].filter(
8Boolean).join(" "),"data-visible":t},V.createElement("div",{className:"sonner-spinner"},Hv.map((r,n)=>V.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),Uv=V.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},V.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"})),qv=V.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},V.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"})),Fv=V.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},V.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"})),zv=V.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},V.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"})),Wv=V.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"},V.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),V.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Zv=()=>{const[t,e]=V.useState(document.hidden);return V.useEffect(()=>{const r=()=>{e(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),t};let pi=1;class Kv{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{const r=this.subscribers.indexOf(e);this.subscribers.splice(r,1)}),this.publish=e=>{this.subscribers.forEach(r=>r(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var r;const{message:n,...o}=e,a=typeof e?.id=="number"||((r=e.id)==null?void 0:r.length)>0?e.id:pi++,l=this.toasts.find(u=>u.id===a),c=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),l?this.toasts=this.toasts.map(u=>u.id===a?(this.publish({...u,...e,id:a,title:n}),{...u,...e,id:a,dismissible:c,title:n}):u):this.addToast({title:n,...o,dismissible:c,id:a}),a},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:e,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(n=>n({id:r.id,dismiss:!0}))}),e),this.message=(e,r)=>this.create({...r,message:e}),this.error=(e,r)=>this.create({...r,message:e,type:"error"}),this.success=(e,r)=>this.create({...r,type:"success",message:e}),this.info=(e,r)=>this.create({...r,type:"info",message:e}),this.warning=(e,r)=>this.create({...r,type:"warning",message:e}),this.loading=(e,r)=>this.create({...r,type:"loading",message:e}),this.promise=(e,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:e,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const o=Promise.resolve(e instanceof Function?e():e);let a=n!==void 0,l;const c=o.then(async d=>{if(l=["resolve",d],V.isValidElement(d))a=!1,this.create({id:n,type:"default",message:d});else if(Qv(d)&&!d.ok){a=!1;const h=typeof r.error=="function"?await r.error(`HTTP error! status: ${d.status}`):r.error,m=typeof r.description=="function"?await r.description(`HTTP error! status: ${d.status}`):r.description,p=typeof h=="object"&&!V.isValidElement(h)?h:{message:h};this.create({id:n,type:"error",description:m,...p})}else if(d instanceof Error){a=!1;const h=typeof r.error=="function"?await r.error(d):r.error,m=typeof r.description=="function"?await r.description(d):r.de
8scription,p=typeof h=="object"&&!V.isValidElement(h)?h:{message:h};this.create({id:n,type:"error",description:m,...p})}else if(r.success!==void 0){a=!1;const h=typeof r.success=="function"?await r.success(d):r.success,m=typeof r.description=="function"?await r.description(d):r.description,p=typeof h=="object"&&!V.isValidElement(h)?h:{message:h};this.create({id:n,type:"success",description:m,...p})}}).catch(async d=>{if(l=["reject",d],r.error!==void 0){a=!1;const f=typeof r.error=="function"?await r.error(d):r.error,h=typeof r.description=="function"?await r.description(d):r.description,v=typeof f=="object"&&!V.isValidElement(f)?f:{message:f};this.create({id:n,type:"error",description:h,...v})}}).finally(()=>{a&&(this.dismiss(n),n=void 0),r.finally==null||r.finally.call(r)}),u=()=>new Promise((d,f)=>c.then(()=>l[0]==="reject"?f(l[1]):d(l[1])).catch(f));return typeof n!="string"&&typeof n!="number"?{unwrap:u}:Object.assign(n,{unwrap:u})},this.custom=(e,r)=>{const n=r?.id||pi++;return this.create({jsx:e(n),id:n,...r}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const ot=new Kv,Gv=(t,e)=>{const r=e?.id||pi++;return ot.addToast({title:t,...e,id:r}),r},Qv=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",Yv=Gv,Jv=()=>ot.toasts,Xv=()=>ot.getActiveToasts(),qr=Object.assign(Yv,{success:ot.success,info:ot.info,warning:ot.warning,error:ot.error,custom:ot.custom,message:ot.message,promise:ot.promise,dismiss:ot.dismiss,loading:ot.loading},{getHistory:Jv,getToasts:Xv});Dv("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;
8left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}
8[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);
8--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function $n(t){return t.label!==void 0}const e0=3,t0="24px",r0="16px",Rl=4e3,n0=356,s0=14,o0=45,a0=200;function xt(...t){return t.filter(Boolean).join(" ")}function i0(t){const[e,r]=t.split("-"),n=[];return e&&n.push(e),r&&n.push(r),n}const l0=t=>{var e,r,n,o,a,l,c,u,d;const{invert:f,toast:h,unstyled:m,interacting:v,setHeights:p,visibleToasts:w,heights:y,index:b,toasts:_,expanded:g,removeToast:j,defaultRichColors:E,closeButton:L,style:D,cancelButtonStyle:C,actionButtonStyle:$,className:R="",descriptionClassName:Y="",duration:ve,position:be,gap:Pe,expandByDefault:te,classNames:ie,icons:ue,closeButtonAriaLabel:W="Close toast"}=t,[B,le]=V.useState(null),[ce,Je]=V.useState(null),[U,fe]=V.useState(!1),[ne,M]=V.useState(!1),[H,X]=V.useState(!1),[_e,Ce]=V.useState(!1),[mt,Xe]=V.useState(!1),[Dt,Vt]=V.useState(0),[Et,ur]=V.useState(0),St=V.useRef(h.duration||ve||Rl),Lt=V.useRef(null),et=V.useRef(null),dr=b===0,Cn=b+1<=w,Ue=h.type,Ht=h.dismissible!==!1,Hr=h.className||"",Qt=h.descriptionClassName||"",pt=V.useMemo(()=>y.findIndex(de=>de.toastId===h.id)||0,[y,h.id]),dt=V.useMemo(()=>{var de;return(de=h.closeButton)!=null?de:L},[h.closeButton,L]),hr=V.useMemo(()=>h.duration||ve||Rl,[h.duration,ve]),fr=V.useRef(0),Ot=V.useRef(0),mr=V.useRef(0),$t=V.useRef(null),[pr,vr]=be.split("-"),ht=V.useMemo(()=>y.reduce((de,Le,ye)=>ye>=pt?de:de+Le.height,0),[y,pt]),At=Zv(),Br=h.invert||f,Yt=Ue==="loading";Ot.current=V.useMemo(()=>pt*Pe+ht,[pt,ht]),V.useEffect(()=>{St.current=hr},[hr]),V.useEffect(()=>{fe(!0)},[]),V.useEffect(()=>{const de=et.current;if(de){const Le=de.getBoundingClientRect().height;return ur(Le),p(ye=>[{toastId:h.id,height:Le,position:h.position},...ye]),()=>p(ye=>
8ye.filter(Oe=>Oe.toastId!==h.id))}},[p,h.id]),V.useLayoutEffect(()=>{if(!U)return;const de=et.current,Le=de.style.height;de.style.height="auto";const ye=de.getBoundingClientRect().height;de.style.height=Le,ur(ye),p(Oe=>Oe.find($e=>$e.toastId===h.id)?Oe.map($e=>$e.toastId===h.id?{...$e,height:ye}:$e):[{toastId:h.id,height:ye,position:h.position},...Oe])},[U,h.title,h.description,p,h.id,h.jsx,h.action,h.cancel]);const wt=V.useCallback(()=>{M(!0),Vt(Ot.current),p(de=>de.filter(Le=>Le.toastId!==h.id)),setTimeout(()=>{j(h)},a0)},[h,j,p,Ot]);V.useEffect(()=>{if(h.promise&&Ue==="loading"||h.duration===1/0||h.type==="loading")return;let de;return g||v||At?(()=>{if(mr.current<fr.current){const Oe=new Date().getTime()-fr.current;St.current=St.current-Oe}mr.current=new Date().getTime()})():St.current!==1/0&&(fr.current=new Date().getTime(),de=setTimeout(()=>{h.onAutoClose==null||h.onAutoClose.call(h,h),wt()},St.current)),()=>clearTimeout(de)},[g,v,h,Ue,At,wt]),V.useEffect(()=>{h.delete&&(wt(),h.onDismiss==null||h.onDismiss.call(h,h))},[wt,h.delete]);function gr(){var de;if(ue?.loading){var Le;return V.createElement("div",{className:xt(ie?.loader,h==null||(Le=h.classNames)==null?void 0:Le.loader,"sonner-loader"),"data-visible":Ue==="loading"},ue.loading)}return V.createElement(Bv,{className:xt(ie?.loader,h==null||(de=h.classNames)==null?void 0:de.loader),visible:Ue==="loading"})}const br=h.icon||ue?.[Ue]||Vv(Ue);var En,Bt;return V.createElement("li",{tabIndex:0,ref:et,className:xt(R,Hr,ie?.toast,h==null||(e=h.classNames)==null?void 0:e.toast,ie?.default,ie?.[Ue],h==null||(r=h.classNames)==null?void 0:r[Ue]),"data-sonner-toast":"","data-rich-colors":(En=h.richColors)!=null?En:E,"data-styled":!(h.jsx||h.unstyled||m),"data-mounted":U,"data-promise":!!h.promise,"data-swiped":mt,"data-removed":ne,"data-visible":Cn,"data-y-position":pr,"data-x-position":vr,"data-index":b,"data-front":dr,"data-swiping":H,"data-dismissible":Ht,"data-type":Ue,"data-invert":Br,"data-swipe-out":_e,"data-swipe-direction":ce,"data-expanded":!!(g||te&&U),"data-testid":h.testId,style:{"--index":b,"--toasts-before":b,"--z-index":_.length-b,"--offset":`${ne?Dt:Ot.current}px`,"--initial-height":te?"auto":`${Et}px`,...D,...h.style},onDragEnd:()=>{X(!1),le(null),$t.current=null},onPointerDown:de=>{de.button!==2&&(Yt||!Ht||(Lt.current=new Date,Vt(Ot.current),de.target.setPointerCapture(de.pointerId),de.target.tagName!=="BUTTON"&&(X(!0),$t.current={x:de.clientX,y:de.clientY})))},onPointerUp:()=>{var de,Le,ye;if(_e||!Ht)return;$t.current=null;const Oe=Number(((de=et.current)==null?void 0:de.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),yr=Number(((Le=et.current)==null?void 0:Le.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),$e=new Date().getTime()-((ye=Lt.current)==null?void 0:ye.getTime()),qe=B==="x"?Oe:yr,Jt=Math.abs(qe)/$e;if(Math.abs(qe)>=o0||Jt>.11){Vt(Ot.current),h.onDismiss==null||h.onDismiss.call(h,h),Je(B==="x"?Oe>0?"right":"left":yr>0?"down":"up"),wt(),Ce(!0);return}else{var tt,at;(tt=et.current)==null||tt.style.setProperty("--swipe-amount-x","0px"),(at=et.current)==null||at.style.setProperty("--swipe-amount-y","0px")}Xe(!1),X(!1),le(null)},onPointerMove:de=>{var Le,ye,Oe;if(!$t.current||!Ht||((Le=window.getSelection())==null?void 0:Le.toString().length)>0)return;const $e=de.clientY-$t.current.y,qe=de.clientX-$t.current.x;var Jt;const tt=(Jt=t.swipeDirections)!=null?Jt:i0(be);!B&&(Math.abs(qe)>1||Math.abs($e)>1)&&le(Math.abs(qe)>Math.abs($e)?"x":"y");let at={x:0,y:0};const it=Ke=>1/(1.5+Math.abs(Ke)/20);if(B==="y"){if(tt.includes("top")||tt.includes("bottom"))if(tt.includes("top")&&$e<0||tt.includes("bottom")&&$e>0)at.y=$e;else{const Ke=$e*it($e);at.y=Math.abs(Ke)<Math.abs($e)?Ke:$e}}else if(B==="x"&&(tt.includes("left")||tt.includes("right")))if(tt.includes("left")&&qe<0||tt.includes("right")&&qe>0)at.x=qe;else{const Ke=qe*it(qe);at.x=Math.abs(Ke)<Math.abs(qe)?Ke:qe}(Math.abs(at.x)>0||Math.abs(at.y)>0)&&Xe(!0),(ye=et.current)==null||ye.style.setProperty("--swipe-amount-x",`${at.x}px`),(Oe=et.current)==null||Oe.style.setProperty("--swipe-amount-y",`${at.y}px`)}},dt&&!h.jsx&&Ue!=="loading"?V.createElement("button",{"aria-label":W,"data-disabled":Yt,"data-close-button":!0,onClick:Yt||!Ht?()=>{}:()=>{wt(),h.onDismiss==null||h.onDismiss.call(h,h)},className:xt(ie?.closeButton,h==null||(n=h.classNames)==null?void 0:n.closeButton)},(Bt=ue?.close)!=null?Bt:Wv):null,(Ue||h.icon||h.promise)&&h.icon!==null&&(ue?.[Ue]!==null||h.icon)?V.createElement("div",{"data-icon":"",className:xt(ie?.icon,h==null||(o=h.classNames)==null?void 0:o.icon)},h.promise||h.type==="loading"&&!h.icon?h.icon||gr():null,h.type!=="loading"?br:null):null,V.createElement("div",{"data-content":"",className:xt(ie?.content,h==null||(a=h.classNames)==null?void 0:a.content)},V.createElement("div",{"data-title":"",className:xt(ie?.title,h==null||(l=h.classNames)==null?void 0:l.title)},h.jsx?h.jsx:typeof h.title=="function"?h.title():h.title),h.description?V.createElement("div",{"data-description":"",className:xt(Y,Qt,ie?.description,h==null||(c=h.classNames)==null?void 0:c.description)},typeof h.description=="function"?h.description():h.description):null),V.isValidElement(h.cancel)?h.cancel:h.cancel&&$n(h.cancel)?V.createElement("button",{"data-button":!0,"data-cancel":!0,style:h.cancelButtonStyle||C,onClick:de=>{$n(h.cancel)&&Ht&&(h.cancel.onClick==null||h.cancel.onClick.call(h.cancel,de),wt())},className:xt(ie?.cancelButton,h==null||(u=h.classNames)==null?void 0:u.cancelButton)},h.cancel.label):null,V.isValidElement(h.action)?h.action:h.action&&$n(h.action)?V.createElement("button",{"data-button":!0,"data-action":!0,style:h.actionButtonStyle||$,onClick:de=>{$n(h.action)&&(h.action.onClick==null||h.action.onClick.call(h.action,de),!de.defaultPrevented&&wt())},className:xt(ie?.actionButton,h==null||(d=h.classNames)==null?void 0:d.actionButton)},h.action.label):null)};function Nl(){if(typeof window>"u"||typeof document>"u")return"ltr";const t=document.documentElement.getAttribute("dir");return t==="auto"||!t?window.getComputedStyle(document.documentElement).direction:t}function c0(t,e){const r={};return[t,e].forEach((n,o)=>{const a=o===1,l=a?"--mobile-offset":"--offset",c=a?r0:t0;function u(d){["top","right","bottom","left"].forEach(f=>{r[`${l}-${f}`]=typeof d=="number"?`${d}px`:d})}typeof n=="number"||typeof n=="string"?u(n):typeof n=="object"?["top","right","bottom","left"].forEach(d=>{n[d]===void 0?r[`${l}-${d}`]=c:r[`${l}-${d}`]=typeof n[d]=="number"?`${n[d]}px`:n[d]}):u(c)}),r}const u0=V.forwardRef(function(e,r){const{id:n,invert:o,position:a="bottom-right",hotkey:l=["altKey","KeyT"],expand:c,closeButton:u,className:d,offset:f,mobileOffset:h,theme:m="light",richColors:v,duration:p,style:w,visibleToasts:y=e0,toastOptions:b,dir:_=Nl(),gap:g=s0,icons:j,containerAriaLabel:E="Notifications"}=e,[L,D]=V.useState([]),C=V.useMemo(()=>n?L.filter(U=>U.toasterId===n):L.filter(U=>!U.toasterId),[L,n]),$=V.useMemo(()=>Array.from(new Set([a].concat(C.filter(U=>U.position).map(U=>U.position)))),[C,a]),[R,Y]=V.useState([]),[ve,be]=V.useState(!1),[Pe,te]=V.useState(!1),[ie,ue]=V.useState(m!=="system"?m:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
8k":"light"),W=V.useRef(null),B=l.join("+").replace(/Key/g,"").replace(/Digit/g,""),le=V.useRef(null),ce=V.useRef(!1),Je=V.useCallback(U=>{D(fe=>{var ne;return(ne=fe.find(M=>M.id===U.id))!=null&&ne.delete||ot.dismiss(U.id),fe.filter(({id:M})=>M!==U.id)})},[]);return V.useEffect(()=>ot.subscribe(U=>{if(U.dismiss){requestAnimationFrame(()=>{D(fe=>fe.map(ne=>ne.id===U.id?{...ne,delete:!0}:ne))});return}setTimeout(()=>{yp.flushSync(()=>{D(fe=>{const ne=fe.findIndex(M=>M.id===U.id);return ne!==-1?[...fe.slice(0,ne),{...fe[ne],...U},...fe.slice(ne+1)]:[U,...fe]})})})}),[L]),V.useEffect(()=>{if(m!=="system"){ue(m);return}if(m==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?ue("dark"):ue("light")),typeof window>"u")return;const U=window.matchMedia("(prefers-color-scheme: dark)");try{U.addEventListener("change",({matches:fe})=>{ue(fe?"dark":"light")})}catch{U.addListener(({matches:ne})=>{try{ue(ne?"dark":"light")}catch(M){console.error(M)}})}},[m]),V.useEffect(()=>{L.length<=1&&be(!1)},[L]),V.useEffect(()=>{const U=fe=>{var ne;if(l.every(X=>fe[X]||fe.code===X)){var H;be(!0),(H=W.current)==null||H.focus()}fe.code==="Escape"&&(document.activeElement===W.current||(ne=W.current)!=null&&ne.contains(document.activeElement))&&be(!1)};return document.addEventListener("keydown",U),()=>document.removeEventListener("keydown",U)},[l]),V.useEffect(()=>{if(W.current)return()=>{le.current&&(le.current.focus({preventScroll:!0}),le.current=null,ce.current=!1)}},[W.current]),V.createElement("section",{ref:r,"aria-label":`${E} ${B}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},$.map((U,fe)=>{var ne;const[M,H]=U.split("-");return C.length?V.createElement("ol",{key:U,dir:_==="auto"?Nl():_,tabIndex:-1,ref:W,className:d,"data-sonner-toaster":!0,"data-sonner-theme":ie,"data-y-position":M,"data-x-position":H,style:{"--front-toast-height":`${((ne=R[0])==null?void 0:ne.height)||0}px`,"--width":`${n0}px`,"--gap":`${g}px`,...w,...c0(f,h)},onBlur:X=>{ce.current&&!X.currentTarget.contains(X.relatedTarget)&&(ce.current=!1,le.current&&(le.current.focus({preventScroll:!0}),le.current=null))},onFocus:X=>{X.target instanceof HTMLElement&&X.target.dataset.dismissible==="false"||ce.current||(ce.current=!0,le.current=X.relatedTarget)},onMouseEnter:()=>be(!0),onMouseMove:()=>be(!0),onMouseLeave:()=>{Pe||be(!1)},onDragEnd:()=>be(!1),onPointerDown:X=>{X.target instanceof HTMLElement&&X.target.dataset.dismissible==="false"||te(!0)},onPointerUp:()=>te(!1)},C.filter(X=>!X.position&&fe===0||X.position===U).map((X,_e)=>{var Ce,mt;return V.createElement(l0,{key:X.id,icons:j,index:_e,toast:X,defaultRichColors:v,duration:(Ce=b?.duration)!=null?Ce:p,className:b?.className,descriptionClassName:b?.descriptionClassName,invert:o,visibleToasts:y,closeButton:(mt=b?.closeButton)!=null?mt:u,interacting:Pe,position:U,style:b?.style,unstyled:b?.unstyled,classNames:b?.classNames,cancelButtonStyle:b?.cancelButtonStyle,actionButtonStyle:b?.actionButtonStyle,closeButtonAriaLabel:b?.closeButtonAriaLabel,removeToast:Je,toasts:C.filter(Xe=>Xe.position==X.position),heights:R.filter(Xe=>Xe.position==X.position),setHeights:Y,expandByDefault:c,gap:g,expanded:ve,swipeDirections:e.swipeDirections})})):null}))});const d0=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),h0=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,r,n)=>n?n.toUpperCase():r.toLowerCase()),Ml=t=>{const e=h0(t);return e.charAt(0).toUpperCase()+e.slice(1)},pf=(...t)=>t.filter((e,r,n)=>!!e&&e.trim()!==""&&n.indexOf(e)===r).join(" ").trim();var f0={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"};const m0=i.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:l,...c},u)=>i.createElement("svg",{ref:u,...f0,width:e,height:e,stroke:t,strokeWidth:n?Number(r)*24/Number(e):r,className:pf("lucide",o),...c},[...l.map(([d,f])=>i.createElement(d,f)),...Array.isArray(a)?a:[a]]));const xe=(t,e)=>{const r=i.forwardRef(({className:n,...o},a)=>i.createElement(m0,{ref:a,iconNode:e,className:pf(`lucide-${d0(Ml(t))}`,`lucide-${t}`,n),...o}));return r.displayName=Ml(t),r};const p0=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],v0=xe("arrow-left",p0);const g0=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],b0=xe("arrow-right",g0);const y0=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],w0=xe("arrow-up-right",y0);const x0=[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z",key:"1fy3hk"}],["line",{x1:"12",x2:"12",y1:"7",y2:"13",key:"1cppfj"}],["line",{x1:"15",x2:"9",y1:"10",y2:"10",key:"1gty7f"}]],_0=xe("bookmark-plus",x0);const k0=[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",key:"1tc9qg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]],j0=xe("camera",k0);const C0=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],E0=xe("check",C0);const S0=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16.5 12",key:"1aq6pp"}]],L0=xe("clock-3",S0);const O0=[["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"}]],$0=xe("crown",O0);const A0=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]],T0=xe("download",A0);const P0=[["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"}]],R0=xe("eye-off",P0);const N0=[["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"}]],M0=xe("eye",N0);const I0=[["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"}],["circle",{cx:"10",cy:"12",r:"2",key:"737tya"}],["path",{d:"m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",key:"wt3hpn"}]],D0=xe("file-image",I0);const V0=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}
8]],H0=xe("folder",V0);const B0=[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]],U0=xe("heart",B0);const q0=[["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}],["path",{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5",key:"1ue2ih"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]],F0=xe("image-plus",q0);const z0=[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]],W0=xe("images",z0);const Z0=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],K0=xe("info",Z0);const G0=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Q0=xe("loader-circle",G0);const Y0=[["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"}]],J0=xe("lock",Y0);const X0=[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]],eg=xe("palette",X0);const tg=[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]],rg=xe("pause",tg);const ng=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],sg=xe("play",ng);const og=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],ag=xe("plus",og);const ig=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],lg=xe("search",ig);const cg=[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]],ug=xe("sliders-horizontal",cg);const dg=[["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"}]],hg=xe("sparkles",dg);const fg=[["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"}]],mg=xe("triangle-alert",fg);const pg=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]],vg=xe("upload",pg);const gg=[["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"}]],bg=xe("users",gg);const yg=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],wg=xe("x",yg);const xg=[["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"}]],_g=xe("zap",xg);function S(t,e,r,n){const o=i.forwardRef((a,l)=>{const c=a,u=c.size??c.width??r,f=n&&/(^|\s)fill-(?!none\b)/.test(String(c.className??""))?n:e,h=t;return s.jsxs(s.Fragment,{children:[s.jsx(h,{...c,ref:l,className:re(c.className,"icon-modern")}),s.jsx("svg",{"aria-hidden":"true",focusable:"false",viewBox:f.viewBox,width:u,height:c.size??c.height??u,fill:"currentColor",className:re(c.className,"icon-classic"),style:c.style,dangerouslySetInnerHTML:{__html:f.inner}})]})});return o.displayName=`Classic(${t.displayName||t.name||"Icon"})`,o}const we={"regular/check":{viewBox:"0 0 24 24",inner:'<polygon points="22 4 22 6 21 6 21 7 20 7 20 8 19 8 19 9 18 9 18 10 17 10 17 11 16 11 16 12 15 12 15 13 14 13 14 14 13 14 13 15 12 15 12 16 11 16 11 17 10 17 10 18 8 18 8 17 7 17 7 16 6 16 6 15 5 15 5 14 4 14 4 13 3 13 3 12 2 12 2 10 4 10 4 11 5 11 5 12 6 12 6 13 7 13 7 14 8 14 8 15 10 15 10 14 11 14 11 13 12 13 12 12 13 12 13 11 14 11 14 10 15 10 15 9 16 9 16 8 17 8 17 7 18 7 18 6 19 6 19 5 20 5 20 4 22 4"/>'},"regular/download":{viewBox:"0 0 24 24",inner:'<polygon points="5 10 4 10 4 8 6 8 6 9 7 9 7 10 8 10 8 11 9 11 9 12 10 12 10 13 11 13 11 1 13 1 13 13 14 13 14 12 15 12 15 11 16 11 16 10 17 10 17 9 18 9 18 8 20 8 20 10 19 10 19 11 18 11 18 12 17 12 17 13 16 13 16 14 15 14 15 15 14 15 14 16 13 16 13 17 11 17 11 16 10 16 10 15 9 15 9 14 8 14 8 13 7 13 7 12 6 12 6 11 5 11 5 10"/><rect x="2" y="21" width="20" height="2"/>'},"regular/times":{viewBox:"0 0 24 24",inner:'<polygon points="14 13 15 13 15 14 16 14 16 15 17 15 17 16 18 16 18 17 19 17 19 18 20 18 20 19 21 19 21 20 22 20 22 21 21 21 21 22 20 22 20 21 19 21 19 20 18 20 18 19 17 19 17 18 16 18 16 17 15 17 15 16 14 16 14 15 13 15 13 14 11 14 11 15 10 15 10 16 9 16 9 17 8 17 8 18 7 18 7 19 6 19 6 20 5 20 5 21 4 21 4 22 3 22 3 21 2 21 2 20 3 20 3 19 4 19 4 18 5 18 5 17 6 17 6 16 7 16 7 15 8 15 8 14 9 14 9 13 10 13 10 11 9 11 9 10 8 10 8 9 7 9 7 8 6 8 6 7 5 7 5 6 4 6 4 5 3 5 3 4 2 4 2 3 3 3 3 2 4 2 4 3 5 3 5 4 6 4 6 5 7 5 7 6 8 6 8 7 9 7 9 8 10 8 10 9 11 9 11 10 13 10 13 9 14 9 14 8 15 8 15 7 16 7 16 6 17 6 17 5 18 5 18 4 19 4 19 3 20 3 20 2 21 2 21 3 22 3 22 4 21 4 21 5 20 5 20 6 19 6 19 7 18 7 18 8 17 8 17 9 16 9 16 10 15 10 15 11 14 11 14 13"/>'},"regular/eye":{viewBox:"0 0 24 24",inner:'<rect x="16" y="11" width="1" height="2"/><polygon points="16 13 16 15 15 15 15 16 13 16 13 15 14 15 14 14 15 14 15 13 16 13"/><polygon points="16 9 16 11 15 11 15 10 14 10 14 9 13 9 13 8 15 8 15 9 16 9"/><rect x="11" y="16" width="2" height="1"/>
8<polygon points="11 15 11 16 9 16 9 15 8 15 8 13 9 13 9 14 10 14 10 15 11 15"/><polygon points="13 7 13 8 12 8 12 11 11 11 11 12 8 12 8 13 7 13 7 11 8 11 8 9 9 9 9 8 11 8 11 7 13 7"/><path d="m22,11v-2h-1v-1h-1v-1h-1v-1h-2v-1H7v1h-2v1h-1v1h-1v1h-1v2h-1v2h1v2h1v1h1v1h1v1h2v1h10v-1h2v-1h1v-1h1v-1h1v-2h1v-2h-1Zm-1,3h-1v1h-1v1h-1v1h-2v1h-8v-1h-1v-1h-2v-1h-1v-1h-1v-4h1v-1h1v-1h1v-1h2v-1h8v1h2v1h1v1h1v1h1v4Z"/>'},"regular/eye-cross":{viewBox:"0 0 24 24",inner:'<polygon points="15 13 16 13 16 15 15 15 15 16 13 16 13 15 14 15 14 14 15 14 15 13"/><rect x="16" y="11" width="1" height="2"/><polygon points="23 11 23 13 22 13 22 15 21 15 21 16 20 16 20 17 19 17 19 18 17 18 17 19 9 19 9 18 16 18 16 17 18 17 18 16 19 16 19 15 20 15 20 14 21 14 21 10 20 10 20 9 19 9 19 8 21 8 21 9 22 9 22 11 23 11"/><polygon points="2 13 1 13 1 11 2 11 2 9 3 9 3 8 4 8 4 7 5 7 5 6 7 6 7 5 15 5 15 6 8 6 8 7 6 7 6 8 5 8 5 9 4 9 4 10 3 10 3 14 4 14 4 15 5 15 5 16 3 16 3 15 2 15 2 13"/><polygon points="13 7 13 8 12 8 12 9 11 9 11 10 10 10 10 11 9 11 9 12 8 12 8 13 7 13 7 11 8 11 8 9 9 9 9 8 11 8 11 7 13 7"/><polygon points="9 17 8 17 8 18 7 18 7 19 6 19 6 20 5 20 5 21 4 21 4 22 3 22 3 21 2 21 2 20 3 20 3 19 4 19 4 18 5 18 5 17 6 17 6 16 7 16 7 15 8 15 8 14 9 14 9 13 10 13 10 12 11 12 11 11 12 11 12 10 13 10 13 9 14 9 14 8 15 8 15 7 16 7 16 6 17 6 17 5 18 5 18 4 19 4 19 3 20 3 20 2 21 2 21 3 22 3 22 4 21 4 21 5 20 5 20 6 19 6 19 7 18 7 18 8 17 8 17 9 16 9 16 10 15 10 15 11 14 11 14 12 13 12 13 13 12 13 12 14 11 14 11 15 10 15 10 16 9 16 9 17"/><rect x="11" y="16" width="2" height="1"/>'},"regular/spinner-third":{viewBox:"0 0 24 24",inner:'<polygon points="23 9 23 15 22 15 22 17 20 17 20 15 21 15 21 9 20 9 20 7 19 7 19 5 17 5 17 4 15 4 15 3 12 3 12 1 15 1 15 2 17 2 17 3 19 3 19 4 20 4 20 5 21 5 21 7 22 7 22 9 23 9"/>'},"regular/search":{viewBox:"0 0 24 24",inner:'<path d="m22,20v-1h-1v-1h-1v-1h-1v-1h-2v-1h1v-2h1v-6h-1v-2h-1v-1h-1v-1h-1v-1h-2v-1h-6v1h-2v1h-1v1h-1v1h-1v2h-1v6h1v2h1v1h1v1h1v1h2v1h6v-1h2v-1h1v2h1v1h1v1h1v1h1v1h2v-1h1v-2h-1Zm-10-5v1h-4v-1h-2v-1h-1v-2h-1v-4h1v-2h1v-1h2v-1h4v1h2v1h1v2h1v4h-1v2h-1v1h-2Z"/>'},"regular/plus":{viewBox:"0 0 24 24",inner:'<polygon points="23 11 23 13 13 13 13 23 11 23 11 13 1 13 1 11 11 11 11 1 13 1 13 11 23 11"/>'},"regular/external-link":{viewBox:"0 0 24 24",inner:'<polygon points="20 15 20 22 19 22 19 23 2 23 2 22 1 22 1 5 2 5 2 4 11 4 11 6 3 6 3 21 18 21 18 15 20 15"/><polygon points="23 1 23 9 21 9 21 5 20 5 20 6 19 6 19 7 18 7 18 8 17 8 17 9 16 9 16 10 15 10 15 11 14 11 14 12 13 12 13 13 12 13 12 14 11 14 11 15 10 15 10 16 9 16 9 17 7 17 7 15 8 15 8 14 9 14 9 13 10 13 10 12 11 12 11 11 12 11 12 10 13 10 13 9 14 9 14 8 15 8 15 7 16 7 16 6 17 6 17 5 18 5 18 4 19 4 19 3 15 3 15 1 23 1"/>'},"regular/arrow-right":{viewBox:"0 0 24 24",inner:'<polygon points="23 11 23 13 22 13 22 14 21 14 21 15 20 15 20 16 19 16 19 17 18 17 18 18 17 18 17 19 16 19 16 20 15 20 15 21 14 21 14 22 13 22 13 23 12 23 12 22 11 22 11 21 12 21 12 20 13 20 13 19 14 19 14 18 15 18 15 17 16 17 16 16 17 16 17 15 18 15 18 14 19 14 19 13 1 13 1 11 19 11 19 10 18 10 18 9 17 9 17 8 16 8 16 7 15 7 15 6 14 6 14 5 13 5 13 4 12 4 12 3 11 3 11 2 12 2 12 1 13 1 13 2 14 2 14 3 15 3 15 4 16 4 16 5 17 5 17 6 18 6 18 7 19 7 19 8 20 8 20 9 21 9 21 10 22 10 22 11 23 11"/>'},"regular/arrow-left":{viewBox:"0 0 24 24",inner:'<polygon points="23 11 23 13 5 13 5 14 6 14 6 15 7 15 7 16 8 16 8 17 9 17 9 18 10 18 10 19 11 19 11 20 12 20 12 21 13 21 13 22 12 22 12 23 11 23 11 22 10 22 10 21 9 21 9 20 8 20 8 19 7 19 7 18 6 18 6 17 5 17 5 16 4 16 4 15 3 15 3 14 2 14 2 13 1 13 1 11 2 11 2 10 3 10 3 9 4 9 4 8 5 8 5 7 6 7 6 6 7 6 7 5 8 5 8 4 9 4 9 3 10 3 10 2 11 2 11 1 12 1 12 2 13 2 13 3 12 3 12 4 11 4 11 5 10 5 10 6 9 6 9 7 8 7 8 8 7 8 7 9 6 9 6 10 5 10 5 11 23 11"/>'},"regular/heart":{viewBox:"0 0 24 24",inner:'<path d="m22,6v-1h-1v-1h-1v-1h-6v1h-1v1h-2v-1h-1v-1h-6v1h-1v1h-1v1h-1v5h1v1h1v1h1v1h1v1h1v1h1v1h1v1h1v1h1v1h1v1h2v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-5h-1Zm-2,4v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-2v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-3h1v-1h1v-1h4v1h1v1h1v1h2v-1h1v-1h1v-1h4v1h1v1h1v3h-1Z"/>'},"regular/image":{viewBox:"0 0 24 24",inner:'<polygon points="9 6 9 9 8 9 8 10 5 10 5 9 4 9 4 6 5 6 5 5 8 5 8 6 9 6"/><path d="m22,2v-1H2v1h-1v20h1v1h20v-1h1V2h-1Zm-5,12v1h1v1h1v1h1v1h1v3h-13v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v1h1Zm3,1v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v-1h-1v-1h-1v-1h-1v-1h-1V3h18v12h-1Zm-15,3v1h1v1h1v1H3v-4h1v1h1Z"/>'},"regular/clock":{viewBox:"0 0 24 24",inner:'<path d="m22,9v-2h-1v-2h-1v-1h-1v-1h-2v-1h-2v-1h-6v1h-2v1h-2v1h-1v1h-1v2h-1v2h-1v6h1v2h1v2h1v1h1v1h2v1h2v1h6v-1h2v-1h2v-1h1v-1h1v-2h1v-2h1v-6h-1Zm-1,6h-1v2h-1v2h-2v1h-2v1h-6v-1h-2v-1h-2v-2h-1v-2h-1v-6h1v-2h1v-2h2v-1h2v-1h6v1h2v1h2v2h1v2h1v6Z"/><polygon points="16 15 16 16 15 16 15 17 14 17 14 16 13 16 13 15 12 15 12 14 11 14 11 5 13 5 13 13 14 13 14 14 15 14 15 15 16 15"/>'},"regular/crown":{viewBox:"0 0 24 24",inner:'<path d="m22,7v-1h-2v1h-1v2h1v1h-1v1h-1v1h-2v-1h-1v-2h-1v-2h-1v-1h1v-2h-1v-1h-2v1h-1v2h1v1h-1v2h-1v2h-1v1h-2v-1h-1v-1h-1v-1h1v-2h-1v-1h-2v1h-1v2h1v1h1v4h1v3h1v2h1v2h12v-2h1v-2h1v-3h1v-4h1v-1h1v-2h-1Zm-4,7v3h-1v2H7v-2h-1v-3h-1v-1h1v1h2v-1h1v-1h1v-1h1v-2h2v2h1v1h1v1h1v1h2v-1h1v1h-1Z"/>'},"regular/sparkles":{viewBox:"0 0 24 24",inner:'<polygon points="23 5 23 6 21 6 21 7 20 7 20 9 19 9 19 7 18 7 18 6 16 6 16 5 18 5 18 4 19 4 19 2 20 2 20 4 21 4 21 5 23 5"/><polygon points="23 18 23 19 21 19 21 20 20 20 20 22 19 22 19 20 18 20 18 19 16 19 16 18 18 18 18 17 19 17 19 15 20 15 20 17 21 17 21 18 23 18"/><path d="M15,11V10H13V9H12V8H11V6H10V4H8V6H7V8H6V9H5v1H3v1H1v2H3v1H5v1H6v1H7v2H8v2h2V18h1V16h1V15h1V14h2V13h2V11Zm-3,2v1H11v1H10v2H8V15H7V14H6V13H4V11H6V10H7V9H8V7h2V9h1v1h1v1h2v2Z"/>'}
8,"regular/paint-brush":{viewBox:"0 0 24 24",inner:'<path d="M19,2V1H4V2H3V16H4v1H9v4h1v1h1v1h2V22h1V21h1V17h4V16h1V2ZM13,21H11V19h2Zm5-7H5V3H7V5H9V3h2V7h2V3h5Z"/>'},"regular/bookmark":{viewBox:"0 0 24 24",inner:'<path d="m19,2v-1H5v1h-1v21h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h2v1h1v1h1v1h1v1h1v1h1v1h1v1h1V2h-1Zm-1,16h-1v-1h-1v-1h-1v-1h-1v-1h-4v1h-1v1h-1v1h-1v1h-1V4h1v-1h10v1h1v14Z"/>'},"regular/bolt":{viewBox:"0 0 24 24",inner:'<path d="m14,10v-4h1v-3h1V1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h7v4h-1v3h-1v2h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h-7Zm4,2h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v-5h-5v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v5h5v1Z"/>'},"regular/lock":{viewBox:"0 0 24 24",inner:'<path d="m21,12v-1h-3v-6h-1v-2h-1v-1h-2v-1h-4v1h-2v1h-1v2h-1v6h-3v1h-1v10h1v1h18v-1h1v-10h-1Zm-1,1v8H4v-8h16ZM9,5v-1h1v-1h4v1h1v1h1v6h-8v-6h1Z"/>'},"regular/camera":{viewBox:"0 0 24 24",inner:'<path d="M22,7V6H21V5H17V3H16V2H8V3H7V5H3V6H2V7H1V20H2v1H3v1H21V21h1V20h1V7ZM21,19H20v1H4V19H3V8H4V7H8V6H9V4h6V6h1V7h4V8h1Z"/><polygon points="16 11 16 15 15 15 15 16 14 16 14 17 10 17 10 16 9 16 9 15 8 15 8 11 9 11 9 10 10 10 10 9 14 9 14 10 15 10 15 11 16 11"/><rect x="5" y="8" width="2" height="2"/>'},"regular/users":{viewBox:"0 0 24 24",inner:'<path d="m19,18v-1h-1v-1h-2v-1h-8v1h-2v1h-1v1h-1v3h1v1h14v-1h1v-3h-1Zm-11,0v-1h8v1h2v2H6v-2h2Z"/><path d="m15,7v-1h-1v-1h-4v1h-1v1h-1v4h1v1h1v1h4v-1h1v-1h1v-4h-1Zm-5,4v-4h4v4h-4Z"/><polygon points="7 5 8 5 8 6 7 6 7 8 5 8 5 7 4 7 4 5 5 5 5 4 7 4 7 5"/><polygon points="7 12 8 12 8 13 2 13 2 12 1 12 1 10 2 10 2 9 7 9 7 12"/><polygon points="17 6 16 6 16 5 17 5 17 4 19 4 19 5 20 5 20 7 19 7 19 8 17 8 17 6"/><polygon points="23 10 23 12 22 12 22 13 16 13 16 12 17 12 17 9 22 9 22 10 23 10"/>'},"regular/info-circle":{viewBox:"0 0 24 24",inner:'<polygon points="14 15 14 17 10 17 10 15 11 15 11 10 10 10 10 9 13 9 13 15 14 15"/><rect x="11" y="6" width="2" height="2"/><path d="m22,9v-2h-1v-2h-1v-1h-1v-1h-2v-1h-2v-1h-6v1h-2v1h-2v1h-1v1h-1v2h-1v2h-1v6h1v2h1v2h1v1h1v1h2v1h2v1h6v-1h2v-1h2v-1h1v-1h1v-2h1v-2h1v-6h-1Zm-1,6h-1v2h-1v1h-1v1h-1v1h-2v1h-6v-1h-2v-1h-1v-1h-1v-1h-1v-2h-1v-6h1v-2h1v-1h1v-1h1v-1h2v-1h6v1h2v1h1v1h1v1h1v2h1v6Z"/><g id="BG_copy_84"><rect width="24" height="24"/></g>'},"regular/exclamation-triangle":{viewBox:"0 0 24 24",inner:'<polygon points="14 11 14 14 13 14 13 17 11 17 11 14 10 14 10 11 14 11"/><rect x="11" y="18" width="2" height="2"/><path d="m22,20v-2h-1v-2h-1v-2h-1v-2h-1v-2h-1v-2h-1v-2h-1v-2h-1v-2h-1v-1h-2v1h-1v2h-1v2h-1v2h-1v2h-1v2h-1v2h-1v2h-1v2h-1v2h-1v2h1v1h20v-1h1v-2h-1Zm-19,1v-1h1v-2h1v-2h1v-2h1v-2h1v-2h1v-2h1v-2h1v-2h2v2h1v2h1v2h1v2h1v2h1v2h1v2h1v2h1v1H3Z"/>'},"regular/folder":{viewBox:"0 0 24 24",inner:'<path d="m22,6v-1h-9v-1h-1v-1h-1v-1H2v1h-1v18h1v1h20v-1h1V6h-1Zm-1,14H3V4h7v1h1v1h1v1h9v13Z"/>'},"regular/pause":{viewBox:"0 0 24 24",inner:'<path d="m9,1H2v1h-1v20h1v1h7v-1h1V2h-1v-1Zm-1,2v18H3V3h5Z"/><path d="m22,2v-1h-7v1h-1v20h1v1h7v-1h1V2h-1Zm-1,1v18h-5V3h5Z"/>'},"regular/play":{viewBox:"0 0 24 24",inner:'<path d="m21,11v-1h-1v-1h-2v-1h-2v-1h-1v-1h-2v-1h-2v-1h-1v-1h-2v-1h-2v-1h-3v1h-1v20h1v1h3v-1h2v-1h2v-1h1v-1h2v-1h2v-1h1v-1h2v-1h2v-1h1v-1h1v-2h-1Zm-2,2h-2v1h-2v1h-1v1h-2v1h-2v1h-1v1h-2v1h-2v1h-1V3h1v1h2v1h2v1h1v1h2v1h2v1h1v1h2v1h2v2Z"/>'},"regular/upload":{viewBox:"0 0 24 24",inner:'<polygon points="4 10 4 8 5 8 5 7 6 7 6 6 7 6 7 5 8 5 8 4 9 4 9 3 10 3 10 2 11 2 11 1 13 1 13 2 14 2 14 3 15 3 15 4 16 4 16 5 17 5 17 6 18 6 18 7 19 7 19 8 20 8 20 10 18 10 18 9 17 9 17 8 16 8 16 7 15 7 15 6 14 6 14 5 13 5 13 17 11 17 11 5 10 5 10 6 9 6 9 7 8 7 8 8 7 8 7 9 6 9 6 10 4 10"/><rect x="2" y="20" width="20" height="3"/>'},"regular/filter":{viewBox:"0 0 24 24",inner:'<path d="m1,2v4h1v1h1v1h1v1h1v1h1v1h1v1h1v2h1v3h1v1h1v1h1v1h1v1h1v1h1v-8h1v-2h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1V2H1Zm20,3h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v3h-1v3h-1v-1h-1v-2h-1v-3h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1h18v1Z"/>'},"solid/heart-solid":{viewBox:"0 0 24 24",inner:'<polygon points="23 6 23 11 22 11 22 12 21 12 21 13 20 13 20 14 19 14 19 15 18 15 18 16 17 16 17 17 16 17 16 18 15 18 15 19 14 19 14 20 13 20 13 21 11 21 11 20 10 20 10 19 9 19 9 18 8 18 8 17 7 17 7 16 6 16 6 15 5 15 5 14 4 14 4 13 3 13 3 12 2 12 2 11 1 11 1 6 2 6 2 5 3 5 3 4 4 4 4 3 10 3 10 4 11 4 11 5 13 5 13 4 14 4 14 3 20 3 20 4 21 4 21 5 22 5 22 6 23 6"/>'}},kg=S(E0,we["regular/check"],24),iT=S(T0,we["regular/download"],24),jg=S(wg,we["regular/times"],24),lT=S(M0,we["regular/eye"],24),cT=S(R0,we["regular/eye-cross"],24),uT=S(Q0,we["regular/spinner-third"],24),dT=S(lg,we["regular/search"],24),hT=S(ag,we["regular/plus"],24),fT=S(w0,we["regular/external-link"],24),mT=S(b0,we["regular/arrow-right"],24),pT=S(v0,we["regular/arrow-left"],24),vT=S(U0,we["regular/heart"],24,we["solid/heart-solid"]),gT=S(W0,we["regular/image"],24),bT=S(D0,we["regular/image"],24),yT=S(F0,we["regular/image"],24),wT=S(L0,we["regular/clock"],24),xT=S($0,we["regular/crown"],24),_T=S(hg,
8we["regular/sparkles"],24),kT=S(eg,we["regular/paint-brush"],24),jT=S(_0,we["regular/bookmark"],24),CT=S(_g,we["regular/bolt"],24),ET=S(J0,we["regular/lock"],24),ST=S(j0,we["regular/camera"],24),LT=S(bg,we["regular/users"],24),Cg=S(K0,we["regular/info-circle"],24),Eg=S(mg,we["regular/exclamation-triangle"],24),OT=S(ug,we["regular/filter"],24),$T=S(H0,we["regular/folder"],24),AT=S(rg,we["regular/pause"],24),TT=S(sg,we["regular/play"],24),PT=S(vg,we["regular/upload"],24),Sg=({...t})=>{const[e,r]=i.useState(!1);return i.useEffect(()=>{const n=window.matchMedia("(max-width: 768px)");r(n.matches);const o=a=>r(a.matches);return n.addEventListener("change",o),()=>n.removeEventListener("change",o)},[]),s.jsx(u0,{className:"toaster group !z-[9999]",visibleToasts:1,duration:e?1200:2500,gap:0,position:"bottom-center",icons:{success:s.jsx("div",{className:"w-5 h-5 rounded-full bg-acid flex items-center justify-center flex-shrink-0",children:s.jsx(kg,{className:"w-3 h-3 text-black translate-x-[0.5px]",strokeWidth:3})}),error:s.jsx("div",{className:"w-5 h-5 rounded-full bg-destructive flex items-center justify-center flex-shrink-0",children:s.jsx(jg,{className:"w-3 h-3 text-white",strokeWidth:3})}),info:s.jsx("div",{className:"w-5 h-5 rounded-full bg-foreground
8/20 flex items-center justify-center flex-shrink-0",children:s.jsx(Cg,{className:"w-3 h-3",strokeWidth:3})}),warning:s.jsx("div",{className:"w-5 h-5 rounded-full bg-amber-500 flex items-center justify-center flex-shrink-0",children:s.jsx(Eg,{className:"w-3 h-3 text-black",strokeWidth:3})})},toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-foreground group-[.toaster]:text-background group-[.toaster]:border-0 group-[.toaster]:shadow-2xl group-[.toaster]:rounded-full group-[.toaster]:px-6 group-[.toaster]:py-3 group-[.toaster]:text-sm group-[.toaster]:font-medium group-[.toaster]:min-h-0 group-[.toaster]:gap-2 group-[.toaster]:z-[9999] group-[.toaster]:whitespace-nowrap group-[.toaster]:w-fit group-[.toaster]:max-w-[90vw]",description:"group-[.toast]:text-background/80",actionButton:"group-[.toast]:bg-background/20 group-[.toast]:text-background group-[.toast]:rounded-full group-[.toast]:px-3 group-[.toast]:py-1 group-[.toast]:text-xs group-[.toast]:font-medium",cancelButton:"group-[.toast]:bg-transparent group-[.toast]:text-background/70 group-[.toast]:hover:text-background",success:"group-[.toaster]:!bg-foreground group-[.toaster]:!text-background",error:"group-[.toaster]:!bg-destructive group-[.toaster]:!text-white",info:"group-[.toaster]:!bg-foreground group-[.toaster]:!text-background",warning:"group-[.toaster]:!bg-amber-500 group-[.toaster]:!text-white"}},...t})},Lg=t=>t?(...e)=>t(...e):(...e)=>fetch(...e);class Ji extends Error{constructor(e,r="FunctionsError",n){super(e),this.name=r,this.context=n}}class Og extends Ji{constructor(e){super("Failed to send a request to the Edge Function","FunctionsFetchError",e)}}class Il extends Ji{constructor(e){super("Relay Error invoking the Edge Function","FunctionsRelayError",e)}}class Dl extends Ji{constructor(e){super("Edge Function returned a non-2xx status code","FunctionsHttpError",e)}}var vi;(function(t){t.Any="any",t.ApNortheast1="ap-northeast-1",t.ApNortheast2="ap-northeast-2",t.ApSouth1="ap-south-1",t.ApSoutheast1="ap-southeast-1",t.ApSoutheast2="ap-southeast-2",t.CaCentral1="ca-central-1",t.EuCentral1="eu-central-1",t.EuWest1="eu-west-1",t.EuWest2="eu-west-2",t.EuWest3="eu-west-3",t.SaEast1="sa-east-1",t.UsEast1="us-east-1",t.UsWest1="us-west-1",t.UsWest2="us-west-2"})(vi||(vi={}));class $g{constructor(e,{headers:r={},customFetch:n,region:o=vi.Any}={}){this.url=e,this.headers=r,this.region=o,this.fetch=Lg(n)}setAuth(e){this.headers.Authorization=`Bearer ${e}`}invoke(e){return sp(this,arguments,void 0,function*(r,n={}){var o;let a,l;try{const{headers:c,method:u,body:d,signal:f,timeout:h}=n;let m={},{region:v}=n;v||(v=this.region);const p=new URL(`${this.url}/${r}`);v&&v!=="any"&&(m["x-region"]=v,p.searchParams.set("forceFunctionRegion",v));let w;d&&(c&&!Object.prototype.hasOwnProperty.call(c,"Content-Type")||!c)?typeof Blob<"u"&&d instanceof Blob||d instanceof ArrayBuffer?(m["Content-Type"]="application/octet-stream",w=d):typeof d=="string"?(m["Content-Type"]="text/plain",w=d):typeof FormData<"u"&&d instanceof FormData?w=d:(m["Content-Type"]="application/json",w=JSON.stringify(d)):d&&typeof d!="string"&&!(typeof Blob<"u"&&d instanceof Blob)&&!(d instanceof ArrayBuffer)&&!(typeof FormData<"u"&&d instanceof FormData)?w=JSON.stringify(d):w=d;let y=f;h&&(l=new AbortController,a=setTimeout(()=>l.abort(),h),f?(y=l.signal,f.addEventListener("abort",()=>l.abort())):y=l.signal);const b=yield this.fetch(p.toString(),{method:u||"POST",headers:Object.assign(Object.assign(Object.assign({},m),this.headers),c),body:w,signal:y}).catch(E=>{throw new Og(E)}),_=b.headers.get("x-relay-error");if(_&&_==="true")throw new Il(b);if(!b.ok)throw new Dl(b);let g=((o=b.headers.get("Content-Type"))!==null&&o!==void 0?o:"text/plain").split(";")[0].trim(),j;return g==="application/json"?j=yield b.json():g==="application/octet-stream"||g==="application/pdf"?j=yield b.blob():g==="text/event-stream"?j=b:g==="multipart/form-data"?j=yield b.formData():j=yield b.text(),{data:j,error:null,response:b}}catch(c){return{data:null,error:c,response:c instanceof Dl||c instanceof Il?c.context:void 0}}finally{a&&clearTimeout(a)}})}}
8var Ag=class extends Error{constructor(t){super(t.message),this.name="PostgrestError",this.details=t.details,this.hint=t.hint,this.code=t.code}},Tg=class{constructor(t){var e,r,n;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=(e=t.shouldThrowOnError)!==null&&e!==void 0?e:!1,this.signal=t.signal,this.isMaybeSingle=(r=t.isMaybeSingle)!==null&&r!==void 0?r:!1,this.urlLengthLimit=(n=t.urlLengthLimit)!==null&&n!==void 0?n:8e3,t.fetch?this.fetch=t.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(t,e){return this.headers=new Headers(this.headers),this.headers.set(t,e),this}then(t,e){var r=this;this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json");const n=this.fetch;let o=n(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async a=>{let l=null,c=null,u=null,d=a.status,f=a.statusText;if(a.ok){var h,m;if(r.method!=="HEAD"){var v;const b=await a.text();b===""||(r.headers.get("Accept")==="text/csv"||r.headers.get("Accept")&&(!((v=r.headers.get("Accept"))===null||v===void 0)&&v.includes("application/vnd.pgrst.plan+text"))?c=b:c=JSON.parse(b))}const w=(h=r.headers.get("Prefer"))===null||h===void 0?void 0:h.match(/count=(exact|planned|estimated)/),y=(m=a.headers.get("content-range"))===null||m===void 0?void 0:m.split("/");w&&y&&y.length>1&&(u=parseInt(y[1])),r.isMaybeSingle&&r.method==="GET"&&Array.isArray(c)&&(c.length>1?(l={code:"PGRST116",details:`Results contain ${c.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},c=null,u=null,d=406,f="Not Acceptable"):c.length===1?c=c[0]:c=null)}else{var p;const w=await a.text();try{l=JSON.parse(w),Array.isArray(l)&&a.status===404&&(c=[],l=null,d=200,f="OK")}catch{a.status===404&&w===""?(d=204,f="No Content"):l={message:w}}if(l&&r.isMaybeSingle&&(!(l==null||(p=l.details)===null||p===void 0)&&p.includes("0 rows"))&&(l=null,d=200,f="OK"),l&&r.shouldThrowOnError)throw new Ag(l)}return{error:l,data:c,count:u,status:d,statusText:f}});return this.shouldThrowOnError||(o=o.catch(a=>{var l;let c="",u="",d="";const f=a?.cause;if(f){var h,m,v,p;const b=(h=f?.message)!==null&&h!==void 0?h:"",_=(m=f?.code)!==null&&m!==void 0?m:"";c=`${(v=a?.name)!==null&&v!==void 0?v:"FetchError"}: ${a?.message}`,c+=` 9 10Caused by: ${(p=f?.name)!==null&&p!==void 0?p:"Error"}: ${b}`,_&&(c+=` (${_})`),f?.stack&&(c+=` 11${f.stack}`)}else{var w;c=(w=a?.stack)!==null&&w!==void 0?w:""}const y=this.url.toString().length;return a?.name==="AbortError"||a?.code==="ABORT_ERR"?(d="",u="Request was aborted (timeout or manual cancellation)",y>this.urlLengthLimit&&(u+=`. Note: Your request URL is ${y} characters, which may exceed server limits. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [many IDs])), consider using an RPC function to pass values server-side.`)):(f?.name==="HeadersOverflowError"||f?.code==="UND_ERR_HEADERS_OVERFLOW")&&(d="",u="HTTP headers exceeded server limits (typically 16KB)",y>this.urlLengthLimit&&(u+=`. Your request URL is ${y} characters. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [200+ IDs])), consider using an RPC function instead.`)),{error:{message:`${(l=a?.name)!==null&&l!==void 0?l:"FetchError"}: ${a?.message}`,details:c,hint:u,code:d},data:null,count:null,status:0,statusText:""}})),o.then(t,e)}returns(){return this}overrideTypes(){return this}},Pg=class extends Tg{select(t){let e=!1;const r=(t??"*").split("").map(n=>/\s/.test(n)&&!e?"":(n==='"'&&(e=!e),n)).join("");return this.url.searchParams.set("select",r),this.headers.append("Prefer","return=representation"),this}order(t,{ascending:e=!0,nullsFirst:r,foreignTable:n,referencedTable:o=n}={}){const a=o?`${o}.order`:"order",l=this.url.searchParams.get(a);return this.url.searchParams.set(a,`${l?`${l},`:""}${t}.${e?"asc":"desc"}${r===void 0?"":r?".nullsfirst":".nullslast"}`),this}limit(t,{foreignTable:e,referencedTable:r=e}={}){const n=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(n,`${t}`),this}range(t,e,{foreignTable:r,referencedTable:n=r}={}){const o=typeof n>"u"?"offset":`${n}.offset`,a=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(o,`${t}`),this.url.searchParams.set(a,`${e-t+1}`),this}abortSignal(t){return this.signal=t,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.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}
11explain({analyze:t=!1,verbose:e=!1,settings:r=!1,buffers:n=!1,wal:o=!1,format:a="text"}={}){var l;const c=[t?"analyze":null,e?"verbose":null,r?"settings":null,n?"buffers":null,o?"wal":null].filter(Boolean).join("|"),u=(l=this.headers.get("Accept"))!==null&&l!==void 0?l:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${a}; for="${u}"; options=${c};`),a==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(t){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${t}`),this}};const Vl=new RegExp("[,()]");var Or=class extends Pg{eq(t,e){return this.url.searchParams.append(t,`eq.${e}`),this}neq(t,e){return this.url.searchParams.append(t,`neq.${e}`),this}gt(t,e){return this.url.searchParams.append(t,`gt.${e}`),this}gte(t,e){return this.url.searchParams.append(t,`gte.${e}`),this}lt(t,e){return this.url.searchParams.append(t,`lt.${e}`),this}lte(t,e){return this.url.searchParams.append(t,`lte.${e}`),this}like(t,e){return this.url.searchParams.append(t,`like.${e}`),this}likeAllOf(t,e){return this.url.searchParams.append(t,`like(all).{${e.join(",")}}`),this}likeAnyOf(t,e){return this.url.searchParams.append(t,`like(any).{${e.join(",")}}`),this}ilike(t,e){return this.url.searchParams.append(t,`ilike.${e}`),this}ilikeAllOf(t,e){return this.url.searchParams.append(t,`ilike(all).{${e.join(",")}}`),this}ilikeAnyOf(t,e){return this.url.searchParams.append(t,`ilike(any).{${e.join(",")}}`),this}regexMatch(t,e){return this.url.searchParams.append(t,`match.${e}`),this}regexIMatch(t,e){return this.url.searchParams.append(t,`imatch.${e}`),this}is(t,e){return this.url.searchParams.append(t,`is.${e}`),this}isDistinct(t,e){return this.url.searchParams.append(t,`isdistinct.${e}`),this}in(t,e){const r=Array.from(new Set(e)).map(n=>typeof n=="string"&&Vl.test(n)?`"${n}"`:`${n}`).join(",");return this.url.searchParams.append(t,`in.(${r})`),this}notIn(t,e){const r=Array.from(new Set(e)).map(n=>typeof n=="string"&&Vl.test(n)?`"${n}"`:`${n}`).join(",");return this.url.searchParams.append(t,`not.in.(${r})`),this}contains(t,e){return typeof e=="string"?this.url.searchParams.append(t,`cs.${e}`):Array.isArray(e)?this.url.searchParams.append(t,`cs.{${e.join(",")}}`):this.url.searchParams.append(t,`cs.${JSON.stringify(e)}`),this}containedBy(t,e){return typeof e=="string"?this.url.searchParams.append(t,`cd.${e}`):Array.isArray(e)?this.url.searchParams.append(t,`cd.{${e.join(",")}}`):this.url.searchParams.append(t,`cd.${JSON.stringify(e)}`),this}rangeGt(t,e){return this.url.searchParams.append(t,`sr.${e}`),this}rangeGte(t,e){return this.url.searchParams.append(t,`nxl.${e}`),this}rangeLt(t,e){return this.url.searchParams.append(t,`sl.${e}`),this}rangeLte(t,e){return this.url.searchParams.append(t,`nxr.${e}`),this}rangeAdjacent(t,e){return this.url.searchParams.append(t,`adj.${e}`),this}overlaps(t,e){return typeof e=="string"?this.url.searchParams.append(t,`ov.${e}`):this.url.searchParams.append(t,`ov.{${e.join(",")}}`),this}textSearch(t,e,{config:r,type:n}={}){let o="";n==="plain"?o="pl":n==="phrase"?o="ph":n==="websearch"&&(o="w");const a=r===void 0?"":`(${r})`;return this.url.searchParams.append(t,`${o}fts${a}.${e}`),this}match(t){return Object.entries(t).forEach(([e,r])=>{this.url.searchParams.append(e,`eq.${r}`)}),this}not(t,e,r){return this.url.searchParams.append(t,`not.${e}.${r}`),this}or(t,{foreignTable:e,referencedTable:r=e}={}){const n=r?`${r}.or`:"or";return this.url.searchParams.append(n,`(${t})`),this}filter(t,e,r){return this.url.searchParams.append(t,`${e}.${r}`),this}},Rg=class{constructor(t,{headers:e={},schema:r,fetch:n,urlLengthLimit:o=8e3}){this.url=t,this.headers=new Headers(e),this.schema=r,this.fetch=n,this.urlLengthLimit=o}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(t,e){const{head:r=!1,count:n}=e??{},o=r?"HEAD":"GET";let a=!1;const l=(t??"*").split("").map(d=>/\s/.test(d)&&!a?"":(d==='"'&&(a=!a),d)).join(""),{url:c,headers:u}=this.cloneRequestState();return c.searchParams.set("select",l),n&&u.append("Prefer",`count=${n}`),new Or({method:o,url:c,headers:u,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}insert(t,{count:e,defaultToNull:r=!0}={}){var n;const o="POST",{url:a,headers:l}=this.cloneRequestState();if(e&&l.append("Prefer",`count=${e}`),r||l.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}"`);a.searchParams.set("columns",u.join(","))}}return new Or({method:o,url:a,headers:l,schema:this.schema,body:t,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch,urlLengthLimit:this.urlLengthLimit})}upsert(t,{onConflict:e,ignoreDuplicates:r=!1,count:n,defaultToNull:o=!0}={}){var a;const l="POST",{url:c,headers:u}=this.cloneRequestState();if(u.append("Prefer",`resolution=${r?"ignore":"merge"}-duplicates`),e!==void 0&&c.searchParams.set("on_conflict",e),n&&u.append("Prefer",`count=${n}`),o||u.append("Prefer","missing=default"),Array.isArray(t)){const d=t.reduce((f,h)=>f.concat(Object.keys(h)),[]);if(d.length>0){const f=[...new Set(d)].map(h=>`"${h}"`);c.searchParams.set("columns",f.join(","))}}return new Or({method:l,url:c,headers:u,schema:this.schema,body:t,fetch:(a=this.fetch)!==null&&a!==void 0?a:fetch,urlLengthLimit:this.urlLengthLimit})}update(t,{count:e}={}){var r;const n="PATCH",{url:o,headers:a}=this.cloneRequestState();return e&&a.append("Prefer",`count=${e}`),new Or({method:n,url:o,headers:a,schema:this.schema,body:t,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch,urlLengthLimit:this.urlLengthLimit})}delete({count:t}={}){var e;const r="DELETE",{url:n,headers:o}=this.cloneRequestState();return t&&o.append("Prefer",`count=${t}`),new Or({method:r,url:n,headers:o,schema:this.schema,fetch:(e=this.fetch)!==null&&e!==void 0?e:fetch,urlLengthLimit:this.urlLengthLimit})}};function dn(t){"@babel/helpers - typeof";return dn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dn(t)}function Ng(t,e){if(dn(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(dn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Mg(t){var e=Ng(t,"string");return dn(e)=="symbol"?e:e+""}function Ig(t,e,r){return(e=Mg(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Hl(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function An(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};
11e%2?Hl(Object(r),!0).forEach(function(n){Ig(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Hl(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var Dg=class vf{constructor(e,{headers:r={},schema:n,fetch:o,timeout:a,urlLengthLimit:l=8e3}={}){this.url=e,this.headers=new Headers(r),this.schemaName=n,this.urlLengthLimit=l;const c=o??globalThis.fetch;a!==void 0&&a>0?this.fetch=(u,d)=>{const f=new AbortController,h=setTimeout(()=>f.abort(),a),m=d?.signal;if(m){if(m.aborted)return clearTimeout(h),c(u,d);const v=()=>{clearTimeout(h),f.abort()};return m.addEventListener("abort",v,{once:!0}),c(u,An(An({},d),{},{signal:f.signal})).finally(()=>{clearTimeout(h),m.removeEventListener("abort",v)})}return c(u,An(An({},d),{},{signal:f.signal})).finally(()=>clearTimeout(h))}:this.fetch=c}from(e){if(!e||typeof e!="string"||e.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new Rg(new URL(`${this.url}/${e}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}schema(e){return new vf(this.url,{headers:this.headers,schema:e,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}rpc(e,r={},{head:n=!1,get:o=!1,count:a}={}){var l;let c;const u=new URL(`${this.url}/rpc/${e}`);let d;const f=v=>v!==null&&typeof v=="object"&&(!Array.isArray(v)||v.some(f)),h=n&&Object.values(r).some(f);h?(c="POST",d=r):n||o?(c=n?"HEAD":"GET",Object.entries(r).filter(([v,p])=>p!==void 0).map(([v,p])=>[v,Array.isArray(p)?`{${p.join(",")}}`:`${p}`]).forEach(([v,p])=>{u.searchParams.append(v,p)})):(c="POST",d=r);const m=new Headers(this.headers);return h?m.set("Prefer",a?`count=${a},return=minimal`:"return=minimal"):a&&m.set("Prefer",`count=${a}`),new Or({method:c,url:u,headers:m,schema:this.schemaName,body:d,fetch:(l=this.fetch)!==null&&l!==void 0?l:fetch,urlLengthLimit:this.urlLengthLimit})}};class Vg{constructor(){}static detectEnvironment(){var e;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((e=navigator.userAgent)===null||e===void 0)&&e.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};const r=globalThis.process;if(r){const n=r.versions;if(n&&n.node){const o=n.node,a=parseInt(o.replace(/^v/,"").split(".")[0]);return a>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${a} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${a} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option: 12import ws from "ws" 13new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const e=this.detectEnvironment();if(e.constructor)return e.constructor;let r=e.error||"WebSocket not supported in this environment.";throw e.workaround&&(r+=` 14 15Suggested solution: ${e.workaround}`),new Error(r)}static createWebSocket(e,r){const n=this.getWebSocketConstructor();return new n(e,r)}static isWebSocketSupported(){try{const e=this.detectEnvironment();return e.type==="native"||e.type==="ws"}catch{return!1}}}const Hg="2.97.0",Bg=`realtime-js/${Hg}`,Ug="1.0.0",gf="2.0.0",Bl=gf,gi=1e4,qg=1e3,Fg=100;var Ft;(function(t){t[t.connecting=0]="connecting",t[t.open=1]="open",t[t.closing=2]="closing",t[t.closed=3]="closed"})(Ft||(Ft={}));var Ne;(function(t){t.closed="closed",t.errored="errored",t.joined="joined",t.joining="joining",t.leaving="leaving"})(Ne||(Ne={}));var yt;(function(t){t.close="phx_close",t.error="phx_error",t.join="phx_join",t.reply="phx_reply",t.leave="phx_leave",t.access_token="access_token"})(yt||(yt={}));var bi;(function(t){t.websocket="websocket"})(bi||(bi={}));var nr;(function(t){t.Connecting="connecting",t.Open="open",t.Closing="closing",t.Closed="closed"})(nr||(nr={}));class zg{constructor(e){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=e??[]}encode(e,r){if(e.event===this.BROADCAST_EVENT&&!(e.payload instanceof ArrayBuffer)&&typeof e.payload.event=="string")return r(this._binaryEncodeUserBroadcastPush(e));let n=[e.join_ref,e.ref,e.topic,e.event,e.payload];return r(JSON.stringify(n))}_binaryEncodeUserBroadcastPush(e){var r;return this._isArrayBuffer((r=e.payload)===null||r===void 0?void 0:r.payload)?this._encodeBinaryUserBroadcastPush(e):this._encodeJsonUserBroadcastPush(e)}_encodeBinaryUserBroadcastPush(e){var r,n;const o=(n=(r=e.payload)===null||r===void 0?void 0:r.payload)!==null&&n!==void 0?n:new ArrayBuffer(0);return this._encodeUserBroadcastPush(e,this.BINARY_ENCODING,o)}_encodeJsonUserBroadcastPush(e){var r,n;const o=(n=(r=e.payload)===null||r===void 0?void 0:r.payload)!==null&&n!==void 0?n:{},l=new TextEncoder().encode(JSON.stringify(o)).buffer;return this._encodeUserBroadcastPush(e,this.JSON_ENCODING,l)}_encodeUserBroadcastPush(e,r,n){var o,a;const l=e.topic,c=(o=e.ref)!==null&&o!==void 0?o:"",u=(a=e.join_ref)!==null&&a!==void 0?a:"",d=e.payload.event,f=this.allowedMetadataKeys?this._pick(e.payload,this.allowedMetadataKeys):{},h=Object.keys(f).length===0?"":JSON.stringify(f);
15if(u.length>255)throw new Error(`joinRef length ${u.length} exceeds maximum of 255`);if(c.length>255)throw new Error(`ref length ${c.length} exceeds maximum of 255`);if(l.length>255)throw new Error(`topic length ${l.length} exceeds maximum of 255`);if(d.length>255)throw new Error(`userEvent length ${d.length} exceeds maximum of 255`);if(h.length>255)throw new Error(`metadata length ${h.length} exceeds maximum of 255`);const m=this.USER_BROADCAST_PUSH_META_LENGTH+u.length+c.length+l.length+d.length+h.length,v=new ArrayBuffer(this.HEADER_LENGTH+m);let p=new DataView(v),w=0;p.setUint8(w++,this.KINDS.userBroadcastPush),p.setUint8(w++,u.length),p.setUint8(w++,c.length),p.setUint8(w++,l.length),p.setUint8(w++,d.length),p.setUint8(w++,h.length),p.setUint8(w++,r),Array.from(u,b=>p.setUint8(w++,b.charCodeAt(0))),Array.from(c,b=>p.setUint8(w++,b.charCodeAt(0))),Array.from(l,b=>p.setUint8(w++,b.charCodeAt(0))),Array.from(d,b=>p.setUint8(w++,b.charCodeAt(0))),Array.from(h,b=>p.setUint8(w++,b.charCodeAt(0)));var y=new Uint8Array(v.byteLength+n.byteLength);return y.set(new Uint8Array(v),0),y.set(new Uint8Array(n),v.byteLength),y.buffer}decode(e,r){if(this._isArrayBuffer(e)){let n=this._binaryDecode(e);return r(n)}if(typeof e=="string"){const n=JSON.parse(e),[o,a,l,c,u]=n;return r({join_ref:o,ref:a,topic:l,event:c,payload:u})}return r({})}_binaryDecode(e){const r=new DataView(e),n=r.getUint8(0),o=new TextDecoder;if(n===this.KINDS.userBroadcast)return this._decodeUserBroadcast(e,r,o)}_decodeUserBroadcast(e,r,n){const o=r.getUint8(1),a=r.getUint8(2),l=r.getUint8(3),c=r.getUint8(4);let u=this.HEADER_LENGTH+4;const d=n.decode(e.slice(u,u+o));u=u+o;const f=n.decode(e.slice(u,u+a));u=u+a;const h=n.decode(e.slice(u,u+l));u=u+l;const m=e.slice(u,e.byteLength),v=c===this.JSON_ENCODING?JSON.parse(n.decode(m)):m,p={type:this.BROADCAST_EVENT,event:f,payload:v};return l>0&&(p.meta=JSON.parse(h)),{join_ref:null,ref:null,topic:d,event:this.BROADCAST_EVENT,payload:p}}_isArrayBuffer(e){var r;return e instanceof ArrayBuffer||((r=e?.constructor)===null||r===void 0?void 0:r.name)==="ArrayBuffer"}_pick(e,r){return!e||typeof e!="object"?{}:Object.fromEntries(Object.entries(e).filter(([n])=>r.includes(n)))}}class bf{constructor(e,r){this.callback=e,this.timerCalc=r,this.timer=void 0,this.tries=0,this.callback=e,this.timerCalc=r}reset(){this.tries=0,clearTimeout(this.timer),this.timer=void 0}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var je;(function(t){t.abstime="abstime",t.bool="bool",t.date="date",t.daterange="daterange",t.float4="float4",t.float8="float8",t.int2="int2",t.int4="int4",t.int4range="int4range",t.int8="int8",t.int8range="int8range",t.json="json",t.jsonb="jsonb",t.money="money",t.numeric="numeric",t.oid="oid",t.reltime="reltime",t.text="text",t.time="time",t.timestamp="timestamp",t.timestamptz="timestamptz",t.timetz="timetz",t.tsrange="tsrange",t.tstzrange="tstzrange"})(je||(je={}));const Ul=(t,e,r={})=>{var n;const o=(n=r.skipTypes)!==null&&n!==void 0?n:[];return e?Object.keys(e).reduce((a,l)=>(a[l]=Wg(l,t,e,o),a),{}):{}},Wg=(t,e,r,n)=>{const o=e.find(c=>c.name===t),a=o?.type,l=r[t];return a&&!n.includes(a)?yf(a,l):yi(l)},yf=(t,e)=>{if(t.charAt(0)==="_"){const r=t.slice(1,t.length);return Qg(e,r)}switch(t){case je.bool:return Zg(e);case je.float4:case je.float8:case je.int2:case je.int4:case je.int8:case je.numeric:case je.oid:return Kg(e);case je.json:case je.jsonb:return Gg(e);case je.timestamp:return Yg(e);case je.abstime:case je.date:case je.daterange:case je.int4range:case je.int8range:case je.money:case je.reltime:case je.text:case je.time:case je.timestamptz:case je.timetz:case je.tsrange:case je.tstzrange:return yi(e);default:return yi(e)}},yi=t=>t,Zg=t=>{switch(t){case"t":return!0;case"f":return!1;default:return t}},Kg=t=>{if(typeof t=="string"){const e=parseFloat(t);if(!Number.isNaN(e))return e}return t},Gg=t=>{if(typeof t=="string")try{return JSON.parse(t)}catch{return t}return t},Qg=(t,e)=>{if(typeof t!="string")return t;const r=t.length-1,n=t[r];
15if(t[0]==="{"&&n==="}"){let a;const l=t.slice(1,r);try{a=JSON.parse("["+l+"]")}catch{a=l?l.split(","):[]}return a.map(c=>yf(e,c))}return t},Yg=t=>typeof t=="string"?t.replace(" ","T"):t,wf=t=>{const e=new URL(t);return e.protocol=e.protocol.replace(/^ws/i,"http"),e.pathname=e.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),e.pathname===""||e.pathname==="/"?e.pathname="/api/broadcast":e.pathname=e.pathname+"/api/broadcast",e.href};class Is{constructor(e,r,n={},o=gi){this.channel=e,this.event=r,this.payload=n,this.timeout=o,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(e){this.timeout=e,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(e){this.payload=Object.assign(Object.assign({},this.payload),e)}receive(e,r){var n;return this._hasReceived(e)&&r((n=this.receivedResp)===null||n===void 0?void 0:n.response),this.recHooks.push({status:e,callback:r}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const e=r=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=r,this._matchReceive(r)};this.channel._on(this.refEvent,{},e),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(e,r){this.refEvent&&this.channel._trigger(this.refEvent,{status:e,response:r})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:e,response:r}){this.recHooks.filter(n=>n.status===e).forEach(n=>n.callback(r))}_hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}}var ql;(function(t){t.SYNC="sync",t.JOIN="join",t.LEAVE="leave"})(ql||(ql={}));class on{constructor(e,r){this.channel=e,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const n=r?.events||{state:"presence_state",diff:"presence_diff"};this.channel._on(n.state,{},o=>{const{onJoin:a,onLeave:l,onSync:c}=this.caller;this.joinRef=this.channel._joinRef(),this.state=on.syncState(this.state,o,a,l),this.pendingDiffs.forEach(u=>{this.state=on.syncDiff(this.state,u,a,l)}),this.pendingDiffs=[],c()}),this.channel._on(n.diff,{},o=>{const{onJoin:a,onLeave:l,onSync:c}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(o):(this.state=on.syncDiff(this.state,o,a,l),c())}),this.onJoin((o,a,l)=>{this.channel._trigger("presence",{event:"join",key:o,currentPresences:a,newPresences:l})}),this.onLeave((o,a,l)=>{this.channel._trigger("presence",{event:"leave",key:o,currentPresences:a,leftPresences:l})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(e,r,n,o){const a=this.cloneDeep(e),l=this.transformState(r),c={},u={};return this.map(a,(d,f)=>{l[d]||(u[d]=f)}),this.map(l,(d,f)=>{const h=a[d];if(h){const m=f.map(y=>y.presence_ref),v=h.map(y=>y.presence_ref),p=f.filter(y=>v.indexOf(y.presence_ref)<0),w=h.filter(y=>m.indexOf(y.presence_ref)<0);p.length>0&&(c[d]=p),w.length>0&&(u[d]=w)}else c[d]=f}),this.syncDiff(a,{joins:c,leaves:u},n,o)}static syncDiff(e,r,n,o){const{joins:a,leaves:l}={joins:this.transformState(r.joins),leaves:this.transformState(r.leaves)};return n||(n=()=>{}),o||(o=()=>{}),this.map(a,(c,u)=>{var d;const f=(d=e[c])!==null&&d!==void 0?d:[];if(e[c]=this.cloneDeep(u),f.length>0){const h=e[c].map(v=>v.presence_ref),m=f.filter(v=>h.indexOf(v.presence_ref)<0);e[c].unshift(...m)}n(c,f,u)}),this.map(l,(c,u)=>{let d=e[c];if(!d)return;const f=u.map(h=>h.presence_ref);d=d.filter(h=>f.indexOf(h.presence_ref)<0),e[c]=d,o(c,d,u),d.length===0&&delete e[c]}),e}static map(e,r){return Object.getOwnPropertyNames(e).map(n=>r(n,e[n]))}static transformState(e){return e=this.cloneDeep(e),Object.getOwnPropertyNames(e).reduce((r,n)=>{const o=e[n];return"metas"in o?r[n]=o.metas.map(a=>(a.presence_ref=a.phx_ref,delete a.phx_ref,delete a.phx_ref_prev,a)):r[n]=o,r},{})}static cloneDeep(e){return JSON.parse(JSON.stringify(e))}onJoin(e){this.caller.onJoin=e}onLeave(e){this.caller.onLeave=e}onSync(e){this.caller.onSync=e}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var Fl;(function(t){t.ALL="*",t.INSERT="INSERT",t.UPDATE="UPDATE",t.DELET
15E="DELETE"})(Fl||(Fl={}));var an;(function(t){t.BROADCAST="broadcast",t.PRESENCE="presence",t.POSTGRES_CHANGES="postgres_changes",t.SYSTEM="system"})(an||(an={}));var Nt;(function(t){t.SUBSCRIBED="SUBSCRIBED",t.TIMED_OUT="TIMED_OUT",t.CLOSED="CLOSED",t.CHANNEL_ERROR="CHANNEL_ERROR"})(Nt||(Nt={}));class Pr{constructor(e,r={config:{}},n){var o,a;if(this.topic=e,this.params=r,this.socket=n,this.bindings={},this.state=Ne.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=e.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},r.config),this.timeout=this.socket.timeout,this.joinPush=new Is(this,yt.join,this.params,this.timeout),this.rejoinTimer=new bf(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=Ne.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(l=>l.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=Ne.closed,this.socket._remove(this)}),this._onError(l=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,l),this.state=Ne.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=Ne.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",l=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,l),this.state=Ne.errored,this.rejoinTimer.scheduleTimeout())}),this._on(yt.reply,{},(l,c)=>{this._trigger(this._replyEventName(c),l)}),this.presence=new on(this),this.broadcastEndpointURL=wf(this.socket.endPoint),this.private=this.params.config.private||!1,!this.private&&(!((a=(o=this.params.config)===null||o===void 0?void 0:o.broadcast)===null||a===void 0)&&a.replay))throw`tried to use replay on public channel '${this.topic}'. It must be a private channel.`}subscribe(e,r=this.timeout){var n,o,a;if(this.socket.isConnected()||this.socket.connect(),this.state==Ne.closed){const{config:{broadcast:l,presence:c,private:u}}=this.params,d=(o=(n=this.bindings.postgres_changes)===null||n===void 0?void 0:n.map(v=>v.filter))!==null&&o!==void 0?o:[],f=!!this.bindings[an.PRESENCE]&&this.bindings[an.PRESENCE].length>0||((a=this.params.config.presence)===null||a===void 0?void 0:a.enabled)===!0,h={},m={broadcast:l,presence:Object.assign(Object.assign({},c),{enabled:f}),postgres_changes:d,private:u};this.socket.accessTokenValue&&(h.access_token=this.socket.accessTokenValue),this._onError(v=>e?.(Nt.CHANNEL_ERROR,v)),this._onClose(()=>e?.(Nt.CLOSED)),this.updateJoinPayload(Object.assign({config:m},h)),this.joinedOnce=!0,this._rejoin(r),this.joinPush.receive("ok",async({postgres_changes:v})=>{var p;if(this.socket._isManualToken()||this.socket.setAuth(),v===void 0){e?.(Nt.SUBSCRIBED);return}else{const w=this.bindings.postgres_changes,y=(p=w?.length)!==null&&p!==void 0?p:0,b=[];for(let _=0;_<y;_++){const g=w[_],{filter:{event:j,schema:E,table:L,filter:D}}=g,C=v&&v[_];if(C&&C.event===j&&Pr.isFilterValueEqual(C.schema,E)&&Pr.isFilterValueEqual(C.table,L)&&Pr.isFilterValueEqual(C.filter,D))b.push(Object.assign(Object.assign({},g),{id:C.id}));else{this.unsubscribe(),this.state=Ne.errored,e?.(Nt.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=b,e&&e(Nt.SUBSCRIBED);return}}).receive("error",v=>{this.state=Ne.errored,e?.(Nt.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(v).join(", ")||"error")))}).receive("timeout",()=>{e?.(Nt.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(e,r={}){return await this.send({type:"presence",event:"track",payload:e},r.timeout||this.timeout)}async untrack(e={}){return await this.send({type:"presence",event:"untrack"},e)}on(e,r,n){return this.state===Ne.joined&&e===an.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(async()=>await this.subscribe())),this._on(e,r,n)}async httpSend(e,r,n={}){var o;if(r==null)return Promise.reject("Payload is required for httpSend()");const a={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(a.Authorization=`Bearer ${this.socket.accessTokenValue}`);const l={method:"POST",headers:a,body:JSON.stringify({messages:[{topic:this.subTopic,event:e,payload:r,private:this.private}]})},c=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(o=n.timeout)!==null&&o!==void 0?o:this.timeout);if(c.status===202)return{success:!0};let u=c.statusText;
15try{const d=await c.json();u=d.error||d.message||u}catch{}return Promise.reject(new Error(u))}async send(e,r={}){var n,o;if(!this._canPush()&&e.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated in the future. Please use httpSend() explicitly for REST delivery.");const{event:a,payload:l}=e,c={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(c.Authorization=`Bearer ${this.socket.accessTokenValue}`);const u={method:"POST",headers:c,body:JSON.stringify({messages:[{topic:this.subTopic,event:a,payload:l,private:this.private}]})};try{const d=await this._fetchWithTimeout(this.broadcastEndpointURL,u,(n=r.timeout)!==null&&n!==void 0?n:this.timeout);return await((o=d.body)===null||o===void 0?void 0:o.cancel()),d.ok?"ok":"error"}catch(d){return d.name==="AbortError"?"timed out":"error"}}else return new Promise(a=>{var l,c,u;const d=this._push(e.type,e,r.timeout||this.timeout);e.type==="broadcast"&&!(!((u=(c=(l=this.params)===null||l===void 0?void 0:l.config)===null||c===void 0?void 0:c.broadcast)===null||u===void 0)&&u.ack)&&a("ok"),d.receive("ok",()=>a("ok")),d.receive("error",()=>a("error")),d.receive("timeout",()=>a("timed out"))})}updateJoinPayload(e){this.joinPush.updatePayload(e)}unsubscribe(e=this.timeout){this.state=Ne.leaving;const r=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(yt.close,"leave",this._joinRef())};this.joinPush.destroy();let n=null;return new Promise(o=>{n=new Is(this,yt.leave,{},e),n.receive("ok",()=>{r(),o("ok")}).receive("timeout",()=>{r(),o("timed out")}).receive("error",()=>{o("error")}),n.send(),this._canPush()||n.trigger("ok",{})}).finally(()=>{n?.destroy()})}teardown(){this.pushBuffer.forEach(e=>e.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=Ne.closed,this.bindings={}}async _fetchWithTimeout(e,r,n){const o=new AbortController,a=setTimeout(()=>o.abort(),n),l=await this.socket.fetch(e,Object.assign(Object.assign({},r),{signal:o.signal}));return clearTimeout(a),l}_push(e,r,n=this.timeout){if(!this.joinedOnce)throw`tried to push '${e}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let o=new Is(this,e,r,n);return this._canPush()?o.send():this._addToPushBuffer(o),o}_addToPushBuffer(e){if(e.startTimeout(),this.pushBuffer.push(e),this.pushBuffer.length>Fg){const r=this.pushBuffer.shift();r&&(r.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${r.event}`,r.payload))}}_onMessage(e,r,n){return r}_isMember(e){return this.topic===e}_joinRef(){return this.joinPush.ref}_trigger(e,r,n){var o,a;const l=e.toLocaleLowerCase(),{close:c,error:u,leave:d,join:f}=yt;if(n&&[c,u,d,f].indexOf(l)>=0&&n!==this._joinRef())return;let m=this._onMessage(l,r,n);if(r&&!m)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(l)?(o=this.bindings.postgres_changes)===null||o===void 0||o.filter(v=>{var p,w,y;return((p=v.filter)===null||p===void 0?void 0:p.event)==="*"||((y=(w=v.filter)===null||w===void 0?void 0:w.event)===null||y===void 0?void 0:y.toLocaleLowerCase())===l}).map(v=>v.callback(m,n)):(a=this.bindings[l])===null||a===void 0||a.filter(v=>{var p,w,y,b,_,g;if(["broadcast","presence","postgres_changes"].includes(l))if("id"in v){const j=v.id,E=(p=v.filter)===null||p===void 0?void 0:p.event;return j&&((w=r.ids)===null||w===void 0?void 0:w.includes(j))&&(E==="*"||E?.toLocaleLowerCase()===((y=r.data)===null||y===void 0?void 0:y.type.toLocaleLowerCase()))}else{const j=(_=(b=v?.filter)===null||b===void 0?void 0:b.event)===null||_===void 0?void 0:_.toLocaleLowerCase();return j==="*"||j===((g=r?.event)===null||g===void 0?void 0:g.toLocaleLowerCase())}else return v.type.toLocaleLowerCase()===l}).map(v=>{if(typeof m=="object"&&"ids"in m){const p=m.data,{schema:w,table:y,commit_timestamp:b,type:_,errors:g}=p;m=Object.assign(Object.assign({},{schema:w,table:y,commit_timestamp:b,eventType:_,new:{},old:{},errors:g}),this._getPayloadRecords(p))}v.callback(m,n)})}_isClosed(){return this.state===Ne.closed}_isJoined(){return this.state===Ne.joined}_isJoining(){return this.state===Ne.joining}_isLeaving(){return this.state===Ne.leaving}_replyEventName(e){return`chan_reply_${e}`}_on(e,r,n){const o=e.toLocaleLowerCase(),a={type:o,filter:r,callback:n};return this.bindings[o]?this.bindings[o].push(a):this.bindings[o]=[a],this}_off(e,r){const n=e.toLocaleLowerCase();return this.bindings[n]&&(this.bindings[n]=this.bindings[n].filter(o=>{var a;return!(((a=o.type)===null||a===void 0?void 0:a.toLocaleLowerCase())===n&&Pr.isEqual(o.filter,r))})),this}static isEqual(e,r){if(Object.keys(e).length!==Object.keys(r).length)return!1;for(const n in e)if(e[n]!==r[n])return!1;return!0}static isFilterValueEqual(e,r){return(e??void 0)===(r??void 0)}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(e){this._on(yt.close,{},e)}_onError(e){this._on(yt.error,{},r=>e(r))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(e=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=Ne.joining,this.joinPush.resend(e))}_getPayloadRecords(e){const r={new:{},old:{}};return(e.type==="INSERT"||e.type==="UPDATE")&&(r.new=Ul(e.columns,e.record)),(e.type==="UPDATE"||e.type==="DELETE")&&(r.old=Ul(e.columns,e.old_record)),r}}const Ds=()=>{},Tn={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},Jg=[1e3,2e3,5e3,1e4],Xg=1e4,eb=` 16 addEventListener("message", (e) => { 17 if (e.data.event === "start") { 18 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 19 } 20 });`;class tb{constructor(e,r){var n;if(this.accessTokenValue=null,this.apiKey=null,this._manuallySetToken=!1,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=gi,this.transport=null,this.heartbeatIntervalMs=Tn.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=Ds,this.ref=0,this.reconnectTimer=null,this.vsn=Bl,this.logger=Ds,this.conn=null,this.sendBuffer=[],this.serializer
20=new zg,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._heartbeatSentAt=null,this._resolveFetch=o=>o?(...a)=>o(...a):(...a)=>fetch(...a),!(!((n=r?.params)===null||n===void 0)&&n.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=r.params.apikey,this.endPoint=`${e}/${bi.websocket}`,this.httpEndpoint=wf(e),this._initializeOptions(r),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(r?.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.conn!==null&&this.isConnected())){if(this._setConnectionState("connecting"),this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=Vg.createWebSocket(this.endpointURL())}catch(e){this._setConnectionState("disconnected");const r=e.message;throw r.includes("Node.js")?new Error(`${r} 21 22To use Realtime in Node.js, you need to provide a WebSocket implementation: 23 24Option 1: Use Node.js 22+ which has native WebSocket support 25Option 2: Install and provide the "ws" package: 26 27 npm install ws 28 29 import ws from "ws" 30 const client = new RealtimeClient(url, { 31 ...options, 32 transport: ws 33 })`):new Error(`WebSocket not available: ${r}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:this.vsn}))}disconnect(e,r){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const n=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(n),this._setConnectionState("disconnected")},typeof this.conn.close=="function"&&(e?this.conn.close(e,r??""):this.conn.close()),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(e){const r=await e.unsubscribe();return this.channels.length===0&&this.disconnect(),r}async removeAllChannels(){const e=await Promise.all(this.channels.map(r=>r.unsubscribe()));return this.channels=[],this.disconnect(),e}log(e,r,n){this.logger(e,r,n)}connectionState(){switch(this.conn&&this.conn.readyState){case Ft.connecting:return nr.Connecting;case Ft.open:return nr.Open;case Ft.closing:return nr.Closing;default:return nr.Closed}}isConnected(){return this.connectionState()===nr.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(e,r={config:{}}){const n=`realtime:${e}`,o=this.getChannels().find(a=>a.topic===n);if(o)return o;{const a=new Pr(`realtime:${e}`,r,this);return this.channels.push(a),a}}push(e){const{topic:r,event:n,payload:o,ref:a}=e,l=()=>{this.encode(e,c=>{var u;(u=this.conn)===null||u===void 0||u.send(c)})};this.log("push",`${r} ${n} (${a})`,o),this.isConnected()?l():this.sendBuffer.push(l)}async setAuth(e=null){this._authPromise=this._performAuth(e);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){var e;if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(r){this.log("error","error in heartbeat callback",r)}return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this._heartbeatSentAt=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(r){this.log("error","error in heartbeat callback",r)}this._wasManualDisconnect=!1,(e=this.conn)===null||e===void 0||e.close(qg,"heartbeat timeout"),setTimeout(()=>{var r;this.isConnected()||(r=this.reconnectTimer)===null||r===void 0||r.sc
33heduleTimeout()},Tn.HEARTBEAT_TIMEOUT_FALLBACK);return}this._heartbeatSentAt=Date.now(),this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(r){this.log("error","error in heartbeat callback",r)}this._setAuthSafely("heartbeat")}onHeartbeat(e){this.heartbeatCallback=e}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}_makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}_leaveOpenTopic(e){let r=this.channels.find(n=>n.topic===e&&(n._isJoined()||n._isJoining()));r&&(this.log("transport",`leaving duplicate topic "${e}"`),r.unsubscribe())}_remove(e){this.channels=this.channels.filter(r=>r.topic!==e.topic)}_onConnMessage(e){this.decode(e.data,r=>{if(r.topic==="phoenix"&&r.event==="phx_reply"&&r.ref&&r.ref===this.pendingHeartbeatRef){const d=this._heartbeatSentAt?Date.now()-this._heartbeatSentAt:void 0;try{this.heartbeatCallback(r.payload.status==="ok"?"ok":"error",d)}catch(f){this.log("error","error in heartbeat callback",f)}this._heartbeatSentAt=null,this.pendingHeartbeatRef=null}const{topic:n,event:o,payload:a,ref:l}=r,c=l?`(${l})`:"",u=a.status||"";this.log("receive",`${u} ${n} ${o} ${c}`.trim(),a),this.channels.filter(d=>d._isMember(n)).forEach(d=>d._trigger(o,a,l)),this._triggerStateCallbacks("message",r)})}_clearTimer(e){var r;e==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):e==="reconnect"&&((r=this.reconnectTimer)===null||r===void 0||r.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=e=>this._onConnError(e),this.conn.onmessage=e=>this._onConnMessage(e),this.conn.onclose=e=>this._onConnClose(e),this.conn.readyState===Ft.open&&this._onConnOpen())}_teardownConnection(){if(this.conn){if(this.conn.readyState===Ft.open||this.conn.readyState===Ft.connecting)try{this.conn.close()}catch(e){this.log("error","Error closing connection",e)}this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null}this._clearAllTimers(),this._terminateWorker(),this.channels.forEach(e=>e.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).then(()=>{this.flushSendBuffer()}).catch(r=>{this.log("error","error waiting for auth on connect",r),this.flushSendBuffer()}),this._clearTimer("reconnect"),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this._triggerStateCallbacks("open")}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const e=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(e),this.workerRef.onerror=r=>{this.log("worker","worker error",r.message),this._terminateWorker()},this.workerRef.onmessage=r=>{r.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log("worker","terminating worker"),this.workerRef.terminate(),this.workerRef=void 0)}_onConnClose(e){var r;this._setConnectionState("disconnected"),this.log("transport","close",e),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(r=this.reconnectTimer)===null||r===void 0||r.sc
33heduleTimeout(),this._triggerStateCallbacks("close",e)}_onConnError(e){this._setConnectionState("disconnected"),this.log("transport",`${e}`),this._triggerChanError(),this._triggerStateCallbacks("error",e);try{this.heartbeatCallback("error")}catch(r){this.log("error","error in heartbeat callback",r)}}_triggerChanError(){this.channels.forEach(e=>e._trigger(yt.error))}_appendParams(e,r){if(Object.keys(r).length===0)return e;const n=e.match(/\?/)?"&":"?",o=new URLSearchParams(r);return`${e}${n}${o}`}_workerObjectUrl(e){let r;if(e)r=e;else{const n=new Blob([eb],{type:"application/javascript"});r=URL.createObjectURL(n)}return r}_setConnectionState(e,r=!1){this._connectionState=e,e==="connecting"?this._wasManualDisconnect=!1:e==="disconnecting"&&(this._wasManualDisconnect=r)}async _performAuth(e=null){let r,n=!1;if(e)r=e,n=!0;else if(this.accessToken)try{r=await this.accessToken()}catch(o){this.log("error","Error fetching access token from callback",o),r=this.accessTokenValue}else r=this.accessTokenValue;n?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=r&&(this.accessTokenValue=r,this.channels.forEach(o=>{const a={access_token:r,version:Bg};r&&o.updateJoinPayload(a),o.joinedOnce&&o._isJoined()&&o._push(yt.access_token,{access_token:r})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(e="general"){this._isManualToken()||this.setAuth().catch(r=>{this.log("error",`Error setting auth in ${e}`,r)})}_triggerStateCallbacks(e,r){try{this.stateChangeCallbacks[e].forEach(n=>{try{n(r)}catch(o){this.log("error",`error in ${e} callback`,o)}})}catch(n){this.log("error",`error triggering ${e} callbacks`,n)}}_setupReconnectionTimer(){this.reconnectTimer=new bf(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},Tn.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(e){var r,n,o,a,l,c,u,d,f,h,m,v;switch(this.transport=(r=e?.transport)!==null&&r!==void 0?r:null,this.timeout=(n=e?.timeout)!==null&&n!==void 0?n:gi,this.heartbeatIntervalMs=(o=e?.heartbeatIntervalMs)!==null&&o!==void 0?o:Tn.HEARTBEAT_INTERVAL,this.worker=(a=e?.worker)!==null&&a!==void 0?a:!1,this.accessToken=(l=e?.accessToken)!==null&&l!==void 0?l:null,this.heartbeatCallback=(c=e?.heartbeatCallback)!==null&&c!==void 0?c:Ds,this.vsn=(u=e?.vsn)!==null&&u!==void 0?u:Bl,e?.params&&(this.params=e.params),e?.logger&&(this.logger=e.logger),(e?.logLevel||e?.log_level)&&(this.logLevel=e.logLevel||e.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),this.reconnectAfterMs=(d=e?.reconnectAfterMs)!==null&&d!==void 0?d:(p=>Jg[p-1]||Xg),this.vsn){case Ug:this.encode=(f=e?.encode)!==null&&f!==void 0?f:((p,w)=>w(JSON.stringify(p))),this.decode=(h=e?.decode)!==null&&h!==void 0?h:((p,w)=>w(JSON.parse(p)));break;case gf:this.encode=(m=e?.encode)!==null&&m!==void 0?m:this.serializer.encode.bind(this.serializer),this.decode=(v=e?.decode)!==null&&v!==void 0?v:this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${this.vsn}`)}if(this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=e?.workerUrl}}}var hn=class extends Error{constructor(t,e){super(t),this.name="IcebergError",this.status=e.status,this.icebergType=e.icebergType,this.icebergCode=e.icebergCode,this.details=e.details,this.isCommitStateUnknown=e.icebergType==="CommitStateUnknownException"||[500,502,504].includes(e.status)&&e.icebergType?.includes("CommitState")===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function rb(t,e,r){const n=new URL(e,t);if(r)for(const[o,a]of Object.entries(r))a!==void 0&&n.searchParams.set(o,a);return n.toString()}async function nb(t){return!t||t.type==="none"?{}:t.type==="bearer"?{Authorization:`Bearer ${t.token}`}:t.type==="header"?{[t.name]:t.value}:t.type==="custom"?await t.getHeaders():{}}function sb(t){const e=t.fetchImpl??globalThis.fetch;return{async request({method:r,path:n,query:o,body:a,headers:l}){const c=rb(t.baseUrl,n,o),u=await nb(t.auth),d=await e(c,{method:r,headers:{...a?{"Content-Type":"application/json"}:{},...u,...l},body:a?JSON.stringify(a):void 0}),f=await d.text(),h=(d.headers.get("content-type")||"").includes("application/json"),m=h&&f?JSON.parse(f):f;if(!d.ok){const v=h?m:void 0,p=v?.error;throw new hn(p?.message??`Request failed with status ${d.status}`,{status:d.status,icebergType:p?.type,icebergCode:p?.code,details:v})}return{status:d.status,headers:d.headers,data:m}}}}function Pn(t){return t.join("�")}var ob=class{constructor(t,e=""){this.client=t,this.prefix=e}async listNamespaces(t){const e=t?{parent:Pn(t.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:e})).data.namespaces.map(n=>({namespace:n}))}async createNamespace(t,e){const r={namespace:t.namespace,properties:e?.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:r})).data}async dropNamespace(t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Pn(t.namespace)}`})}async loadNamespaceMetadata(t){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Pn(t.namespace)}`})).data.properties}}async namespaceExists(t){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Pn(t.namespace)}`}),!0}catch(e){if(e instanceof hn&&e.status===404)return!1;throw e}}async createNamespaceIfNotExists(t,e){try{return await this.createNamespace(t,e)}catch(r){if(r instanceof hn&&r.status===409)return;throw r}}};function _r(t){return t.join("�")}var ab=class{constructor(t,e="",r){this.client=t,this.prefix=e,this.accessDelegation=r}async listTables(t){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${_r(t.namespace)}/tables`})).data.identifiers}async createTable(t,e){const r={};return this.accessDelegation&&(r["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${_r(t.namespace)}/tables`,body:e,headers:r})).data.metadata}async updateTable(t,e){const r=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${_r(t.namespace)}
33/tables/${t.name}`,body:e});return{"metadata-location":r.data["metadata-location"],metadata:r.data.metadata}}async dropTable(t,e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${_r(t.namespace)}/tables/${t.name}`,query:{purgeRequested:String(e?.purge??!1)}})}async loadTable(t){const e={};return this.accessDelegation&&(e["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${_r(t.namespace)}/tables/${t.name}`,headers:e})).data.metadata}async tableExists(t){const e={};this.accessDelegation&&(e["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${_r(t.namespace)}/tables/${t.name}`,headers:e}),!0}catch(r){if(r instanceof hn&&r.status===404)return!1;throw r}}async createTableIfNotExists(t,e){try{return await this.createTable(t,e)}catch(r){if(r instanceof hn&&r.status===409)return await this.loadTable({namespace:t.namespace,name:e.name});throw r}}},ib=class{constructor(t){let e="v1";t.catalogName&&(e+=`/${t.catalogName}`);const r=t.baseUrl.endsWith("/")?t.baseUrl:`${t.baseUrl}/`;this.client=sb({baseUrl:r,auth:t.auth,fetchImpl:t.fetch}),this.accessDelegation=t.accessDelegation?.join(","),this.namespaceOps=new ob(this.client,e),this.tableOps=new ab(this.client,e,this.accessDelegation)}async listNamespaces(t){return this.namespaceOps.listNamespaces(t)}async createNamespace(t,e){return this.namespaceOps.createNamespace(t,e)}async dropNamespace(t){await this.namespaceOps.dropNamespace(t)}async loadNamespaceMetadata(t){return this.namespaceOps.loadNamespaceMetadata(t)}async listTables(t){return this.tableOps.listTables(t)}async createTable(t,e){return this.tableOps.createTable(t,e)}async updateTable(t,e){return this.tableOps.updateTable(t,e)}async dropTable(t,e){await this.tableOps.dropTable(t,e)}async loadTable(t){return this.tableOps.loadTable(t)}async namespaceExists(t){return this.namespaceOps.namespaceExists(t)}async tableExists(t){return this.tableOps.tableExists(t)}async createNamespaceIfNotExists(t,e){return this.namespaceOps.createNamespaceIfNotExists(t,e)}async createTableIfNotExists(t,e){return this.tableOps.createTableIfNotExists(t,e)}},ws=class extends Error{constructor(t,e="storage",r,n){super(t),this.__isStorageError=!0,this.namespace=e,this.name=e==="vectors"?"StorageVectorsError":"StorageError",this.status=r,this.statusCode=n}};function xs(t){return typeof t=="object"&&t!==null&&"__isStorageError"in t}var Rn=class extends ws{constructor(t,e,r,n="storage"){super(t,n,e,r),this.name=n==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=e,this.statusCode=r}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}},xf=class extends ws{constructor(t,e,r="storage"){super(t,r),this.name=r==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=e}};const lb=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),cb=t=>{if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},wi=t=>{if(Array.isArray(t))return t.map(r=>wi(r));if(typeof t=="function"||t!==Object(t))return t;const e={};return Object.entries(t).forEach(([r,n])=>{const o=r.replace(/([-_][a-z])/gi,a=>a.toUpperCase().replace(/[-_]/g,""));e[o]=wi(n)}),e},ub=t=>!t||typeof t!="string"||t.length===0||t.length>100||t.trim()!==t||t.includes("/")||t.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(t);function fn(t){"@babel/helpers - typeof";return fn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fn(t)}function db(t,e){if(fn(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(fn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function hb(t){var e=db(t,"string");return fn(e)=="symbol"?e:e+""}function fb(t,e,r){return(e=hb(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function zl(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function se(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};
33e%2?zl(Object(r),!0).forEach(function(n){fb(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zl(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}const Wl=t=>{var e;return t.msg||t.message||t.error_description||(typeof t.error=="string"?t.error:(e=t.error)===null||e===void 0?void 0:e.message)||JSON.stringify(t)},mb=async(t,e,r,n)=>{if(t&&typeof t=="object"&&"status"in t&&"ok"in t&&typeof t.status=="number"&&!r?.noResolveJson){const o=t,a=o.status||500;if(typeof o.json=="function")o.json().then(l=>{const c=l?.statusCode||l?.code||a+"";e(new Rn(Wl(l),a,c,n))}).catch(()=>{if(n==="vectors"){const l=a+"";e(new Rn(o.statusText||`HTTP ${a} error`,a,l,n))}else{const l=a+"";e(new Rn(o.statusText||`HTTP ${a} error`,a,l,n))}});else{const l=a+"";e(new Rn(o.statusText||`HTTP ${a} error`,a,l,n))}}else e(new xf(Wl(t),t,n))},pb=(t,e,r,n)=>{const o={method:t,headers:e?.headers||{}};return t==="GET"||t==="HEAD"||!n?se(se({},o),r):(cb(n)?(o.headers=se({"Content-Type":"application/json"},e?.headers),o.body=JSON.stringify(n)):o.body=n,e?.duplex&&(o.duplex=e.duplex),se(se({},o),r))};async function Fr(t,e,r,n,o,a,l){return new Promise((c,u)=>{t(r,pb(e,n,o,a)).then(d=>{if(!d.ok)throw d;if(n?.noResolveJson)return d;if(l==="vectors"){const f=d.headers.get("content-type");if(d.headers.get("content-length")==="0"||d.status===204)return{};if(!f||!f.includes("application/json"))return{}}return d.json()}).then(d=>c(d)).catch(d=>mb(d,u,n,l))})}function _f(t="storage"){return{get:async(e,r,n,o)=>Fr(e,"GET",r,n,o,void 0,t),post:async(e,r,n,o,a)=>Fr(e,"POST",r,o,a,n,t),put:async(e,r,n,o,a)=>Fr(e,"PUT",r,o,a,n,t),head:async(e,r,n,o)=>Fr(e,"HEAD",r,se(se({},n),{},{noResolveJson:!0}),o,void 0,t),remove:async(e,r,n,o,a)=>Fr(e,"DELETE",r,o,a,n,t)}}const vb=_f("storage"),{get:mn,post:bt,put:xi,head:gb,remove:Xi}=vb,ut=_f("vectors");var Vr=class{constructor(t,e={},r,n="storage"){this.shouldThrowOnError=!1,this.url=t,this.headers=e,this.fetch=lb(r),this.namespace=n}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(t,e){return this.headers=se(se({},this.headers),{},{[t]:e}),this}async handleOperation(t){var e=this;try{return{data:await t(),error:null}}catch(r){if(e.shouldThrowOnError)throw r;if(xs(r))return{data:null,error:r};throw r}}},bb=class{constructor(t,e){this.downloadFn=t,this.shouldThrowOnError=e}then(t,e){return this.execute().then(t,e)}async execute(){var t=this;try{return{data:(await t.downloadFn()).body,error:null}}catch(e){if(t.shouldThrowOnError)throw e;if(xs(e))return{data:null,error:e};throw e}}};let kf;kf=Symbol.toStringTag;var yb=class{constructor(t,e){this.downloadFn=t,this.shouldThrowOnError=e,this[kf]="BlobDownloadBuilder",this.promise=null}asStream(){return new bb(this.downloadFn,this.shouldThrowOnError)}then(t,e){return this.getPromise().then(t,e)}catch(t){return this.getPromise().catch(t)}finally(t){return this.getPromise().finally(t)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var t=this;try{return{data:await(await t.downloadFn()).blob(),error:null}}catch(e){if(t.shouldThrowOnError)throw e;if(xs(e))return{data:null,error:e};throw e}}};const wb={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Zl={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var xb=class extends Vr{constructor(t,e={},r,n){super(t,e,n,"storage"),this.bucketId=r}async uploadOrUpdate(t,e,r,n){var o=this;return o.handleOperation(async()=>{let a;const l=se(se({},Zl),n);let c=se(se({},o.headers),t==="POST"&&{"x-upsert":String(l.upsert)});const u=l.metadata;typeof Blob<"u"&&r instanceof Blob?(a=new FormData,a.append("cacheControl",l.cacheControl),u&&a.append("metadata",o.encodeMetadata(u)),a.append("",r)):typeof FormData<"u"&&r instanceof FormData?(a=r,a.has("cacheControl")||a.append("cacheControl",l.cacheControl),u&&!a.has("metadata")&&a.append("metadata",o.encodeMetadata(u))):(a=r,c["cache-control"]=`max-age=${l.cacheControl}`,c["content-type"]=l.contentType,u&&(c["x-metadata"]=o.toBase64(o.encodeMetadata(u))),(typeof ReadableStream<"u"&&a
33instanceof ReadableStream||a&&typeof a=="object"&&"pipe"in a&&typeof a.pipe=="function")&&!l.duplex&&(l.duplex="half")),n?.headers&&(c=se(se({},c),n.headers));const d=o._removeEmptyFolders(e),f=o._getFinalPath(d),h=await(t=="PUT"?xi:bt)(o.fetch,`${o.url}/object/${f}`,a,se({headers:c},l?.duplex?{duplex:l.duplex}:{}));return{path:d,id:h.Id,fullPath:h.Key}})}async upload(t,e,r){return this.uploadOrUpdate("POST",t,e,r)}async uploadToSignedUrl(t,e,r,n){var o=this;const a=o._removeEmptyFolders(t),l=o._getFinalPath(a),c=new URL(o.url+`/object/upload/sign/${l}`);return c.searchParams.set("token",e),o.handleOperation(async()=>{let u;const d=se({upsert:Zl.upsert},n),f=se(se({},o.headers),{"x-upsert":String(d.upsert)});return typeof Blob<"u"&&r instanceof Blob?(u=new FormData,u.append("cacheControl",d.cacheControl),u.append("",r)):typeof FormData<"u"&&r instanceof FormData?(u=r,u.append("cacheControl",d.cacheControl)):(u=r,f["cache-control"]=`max-age=${d.cacheControl}`,f["content-type"]=d.contentType),{path:a,fullPath:(await xi(o.fetch,c.toString(),u,{headers:f})).Key}})}async createSignedUploadUrl(t,e){var r=this;return r.handleOperation(async()=>{let n=r._getFinalPath(t);const o=se({},r.headers);e?.upsert&&(o["x-upsert"]="true");const a=await bt(r.fetch,`${r.url}/object/upload/sign/${n}`,{},{headers:o}),l=new URL(r.url+a.url),c=l.searchParams.get("token");if(!c)throw new ws("No token returned by API");return{signedUrl:l.toString(),path:t,token:c}})}async update(t,e,r){return this.uploadOrUpdate("PUT",t,e,r)}async move(t,e,r){var n=this;return n.handleOperation(async()=>await bt(n.fetch,`${n.url}/object/move`,{bucketId:n.bucketId,sourceKey:t,destinationKey:e,destinationBucket:r?.destinationBucket},{headers:n.headers}))}async copy(t,e,r){var n=this;return n.handleOperation(async()=>({path:(await bt(n.fetch,`${n.url}/object/copy`,{bucketId:n.bucketId,sourceKey:t,destinationKey:e,destinationBucket:r?.destinationBucket},{headers:n.headers})).Key}))}async createSignedUrl(t,e,r){var n=this;return n.handleOperation(async()=>{let o=n._getFinalPath(t),a=await bt(n.fetch,`${n.url}/object/sign/${o}`,se({expiresIn:e},r?.transform?{transform:r.transform}:{}),{headers:n.headers});const l=r?.download?`&download=${r.download===!0?"":r.download}`:"";return{signedUrl:encodeURI(`${n.url}${a.signedURL}${l}`)}})}async createSignedUrls(t,e,r){var n=this;return n.handleOperation(async()=>{const o=await bt(n.fetch,`${n.url}/object/sign/${n.bucketId}`,{expiresIn:e,paths:t},{headers:n.headers}),a=r?.download?`&download=${r.download===!0?"":r.download}`:"";return o.map(l=>se(se({},l),{},{signedUrl:l.signedURL?encodeURI(`${n.url}${l.signedURL}${a}`):null}))})}download(t,e,r){const n=typeof e?.transform<"u"?"render/image/authenticated":"object",o=this.transformOptsToQueryString(e?.transform||{}),a=o?`?${o}`:"",l=this._getFinalPath(t),c=()=>mn(this.fetch,`${this.url}/${n}/${l}${a}`,{headers:this.headers,noResolveJson:!0},r);return new yb(c,this.shouldThrowOnError)}async info(t){var e=this;const r=e._getFinalPath(t);return e.handleOperation(async()=>wi(await mn(e.fetch,`${e.url}/object/info/${r}`,{headers:e.headers})))}async exists(t){var e=this;const r=e._getFinalPath(t);try{return await gb(e.fetch,`${e.url}/object/${r}`,{headers:e.headers}),{data:!0,error:null}}catch(n){if(e.shouldThrowOnError)throw n;if(xs(n)&&n instanceof xf){const o=n.originalError;if([400,404].includes(o?.status))return{data:!1,error:n}}throw n}}getPublicUrl(t,e){const r=this._getFinalPath(t),n=[],o=e?.download?`download=${e.download===!0?"":e.download}`:"";o!==""&&n.push(o);const a=typeof e?.transform<"u"?"render/image":"object",l=this.transformOptsToQueryString(e?.transform||{});l!==""&&n.push(l);let c=n.join("&");return c!==""&&(c=`?${c}`),{data:{publicUrl:encodeURI(`${this.url}/${a}/public/${r}${c}`)}}}async remove(t){var e=this;return e.handleOperation(async()=>await Xi(e.fetch,`${e.url}/object/${e.bucketId}`,{prefixes:t},{headers:e.headers}))}async list(t,e,r){var n=this;return n.handleOperation(async()=>{const o=se(se(se({},wb),e),{},{prefix:t||""});return await bt(n.fetch,`${n.url}/object/list/${n.bucketId}`,o,{headers:n.headers},r)})}async listV2(t,e){var r=this;return r.handleOperation(async()=>{const n=se({},t);return await bt(r.fetch,`${r.url}/object/list-v2/${r.bucketId}`,n,{headers:r.headers},e)})}encodeMetadata(t){return JSON.stringify(t)}toBase64(t){return typeof Buffer<"u"?Buffer.from(t).toString("base64"):btoa(t)}_getFinalPath(t){return`${this.bucketId}/${t.replace(/^\/+/,"")}`}_removeEmptyFolders(t){return t.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(t){const e=[];return t.width&&e.push(`width=${t.width}`),t.height&&e.push(`height=${t.height}`),t.resize&&e.push(`resize=${t.resize}`),t.format&&e.push(`format=${t.format}`),t.quality&&e.push(`quality=${t.quality}`),e.join("&")}};const _b="2.97.0",wn={"X-Client-Info":`storage-js/${_b}`};var kb=class extends Vr{constructor(t,e={},r,n){const o=new URL(t);n?.useNewHostname&&/supabase\.(co|in|red)$/.test(o.hostname)&&!o.hostname.includes("storage.supabase.")&&(o.hostname=o.hostname.replace("supabase.","storage.supabase."));const a=o.href.replace(/\/$/,""),l=se(se({},wn),e);super(a,l,r,"storage")}async listBuckets(t){var e=this;return e.handleOperation(async()=>{const r=e.listBucketOptionsToQueryString(t);return await mn(e.fetch,`${e.url}/bucket${r}`,{headers:e.headers})})}async getBucket(t){var e=this;return e.handleOperation(async()=>await mn(e.fetch,`${e.url}/bucket/${t}`,{headers:e.headers}))}async createBucket(t,e={public:!1}){var r=this;return r.handleOperation(async()=>await bt(r.fetch,`${r.url}/bucket`,{id:t,name:t,type:e.type,public:e.public,file_size_limit:e.fileSizeLimit,allowed_mime_types:e.allowedMimeTypes},{headers:r.headers}))}async updateBucket(t,e){var r=this;return r.handleOperation(async()=>await xi(r.fetch,`${r.url}/bucket/${t}`,{id:t,name:t,public:e.public,file_size_limit:e.fileSizeLimit,allowed_mime_types:e.allowedMimeTypes},{headers:r.headers}))}async emptyBucket(t){var e=this;return e.handleOperation(async()=>await bt(e.fetch,`${e.url}/bucket/${t}/empty`,{},{headers:e.headers}))}async deleteBucket(t){var e=this;return e.handleOperation(async()=>await Xi(e.fetch,`${e.url}/bucket/${t}`,{},{headers:e.headers}))}listBucketOptionsToQueryString(t){const e={};return t&&("limit"in t&&(e.limit=String(t.limit)),"offset"in t&&(e.offset=String(t.offset)),t.search&&(e.search=t.search),t.sortColumn&&(e.sortColumn=t.sortColumn),t.sortOrder&&(e.sortOrder=t.sortOrder)),Object.keys(e).length>0?"?"+new URLSearchParams(e).toString():""}},jb=class extends Vr{constructor(t,e={},r){const n=t.replace(/\/$/,""),o=se(se({},wn),e);super(n,o,r,"storage")}async createBucket(t){var e=this;return e.handleOperation(async()=>await bt(e.fetch,`${e.url}/bucket`,{name:t},{headers:e.headers}))}async listBuckets(t){var e=this;return e.handleOperation(async()=>
33{const r=new URLSearchParams;t?.limit!==void 0&&r.set("limit",t.limit.toString()),t?.offset!==void 0&&r.set("offset",t.offset.toString()),t?.sortColumn&&r.set("sortColumn",t.sortColumn),t?.sortOrder&&r.set("sortOrder",t.sortOrder),t?.search&&r.set("search",t.search);const n=r.toString(),o=n?`${e.url}/bucket?${n}`:`${e.url}/bucket`;return await mn(e.fetch,o,{headers:e.headers})})}async deleteBucket(t){var e=this;return e.handleOperation(async()=>await Xi(e.fetch,`${e.url}/bucket/${t}`,{},{headers:e.headers}))}from(t){var e=this;if(!ub(t))throw new ws("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");const r=new ib({baseUrl:this.url,catalogName:t,auth:{type:"custom",getHeaders:async()=>e.headers},fetch:this.fetch}),n=this.shouldThrowOnError;return new Proxy(r,{get(o,a){const l=o[a];return typeof l!="function"?l:async(...c)=>{try{return{data:await l.apply(o,c),error:null}}catch(u){if(n)throw u;return{data:null,error:u}}}}})}},Cb=class extends Vr{constructor(t,e={},r){const n=t.replace(/\/$/,""),o=se(se({},wn),{},{"Content-Type":"application/json"},e);super(n,o,r,"vectors")}async createIndex(t){var e=this;return e.handleOperation(async()=>await ut.post(e.fetch,`${e.url}/CreateIndex`,t,{headers:e.headers})||{})}async getIndex(t,e){var r=this;return r.handleOperation(async()=>await ut.post(r.fetch,`${r.url}/GetIndex`,{vectorBucketName:t,indexName:e},{headers:r.headers}))}async listIndexes(t){var e=this;return e.handleOperation(async()=>await ut.post(e.fetch,`${e.url}/ListIndexes`,t,{headers:e.headers}))}async deleteIndex(t,e){var r=this;return r.handleOperation(async()=>await ut.post(r.fetch,`${r.url}/DeleteIndex`,{vectorBucketName:t,indexName:e},{headers:r.headers})||{})}},Eb=class extends Vr{constructor(t,e={},r){const n=t.replace(/\/$/,""),o=se(se({},wn),{},{"Content-Type":"application/json"},e);super(n,o,r,"vectors")}async putVectors(t){var e=this;if(t.vectors.length<1||t.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return e.handleOperation(async()=>await ut.post(e.fetch,`${e.url}/PutVectors`,t,{headers:e.headers})||{})}async getVectors(t){var e=this;return e.handleOperation(async()=>await ut.post(e.fetch,`${e.url}/GetVectors`,t,{headers:e.headers}))}async listVectors(t){var e=this;if(t.segmentCount!==void 0){if(t.segmentCount<1||t.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");if(t.segmentIndex!==void 0&&(t.segmentIndex<0||t.segmentIndex>=t.segmentCount))throw new Error(`segmentIndex must be between 0 and ${t.segmentCount-1}`)}return e.handleOperation(async()=>await ut.post(e.fetch,`${e.url}/ListVectors`,t,{headers:e.headers}))}async queryVectors(t){var e=this;return e.handleOperation(async()=>await ut.post(e.fetch,`${e.url}/QueryVectors`,t,{headers:e.headers}))}async deleteVectors(t){var e=this;if(t.keys.length<1||t.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return e.handleOperation(async()=>await ut.post(e.fetch,`${e.url}/DeleteVectors`,t,{headers:e.headers})||{})}},Sb=class extends Vr{constructor(t,e={},r){const n=t.replace(/\/$/,""),o=se(se({},wn),{},{"Content-Type":"application/json"},e);super(n,o,r,"vectors")}async createBucket(t){var e=this;return e.handleOperation(async()=>await ut.post(e.fetch,`${e.url}/CreateVectorBucket`,{vectorBucketName:t},{headers:e.headers})||{})}async getBucket(t){var e=this;return e.handleOperation(async()=>await ut.post(e.fetch,`${e.url}/GetVectorBucket`,{vectorBucketName:t},{headers:e.headers}))}async listBuckets(t={}){var e=this;return e.handleOperation(async()=>await ut.post(e.fetch,`${e.url}/ListVectorBuckets`,t,{headers:e.headers}))}async deleteBucket(t){var e=this;return e.handleOperation(async()=>await ut.post(e.fetch,`${e.url}/DeleteVectorBucket`,{vectorBucketName:t},{headers:e.headers})||{})}},Lb=class extends Sb{constructor(t,e={}){super(t,e.headers||{},e.fetch)}from(t){return new Ob(this.url,this.headers,t,this.fetch)}async createBucket(t){var e=()=>super.createBucket,r=this;return e().call(r,t)}async getBucket(t){var e=()=>super.getBucket,r=this;return e().call(r,t)}async listBuckets(t={}){var e=()=>super.listBuckets,r=this;return e().call(r,t)}async deleteBucket(t){var e=()=>super.deleteBucket,r=this;return e().call(r,t)}},Ob=class extends Cb{constructor(t,e,r,n){super(t,e,n),this.vectorBucketName=r}async createIndex(t){var e=()=>super.createIndex,r=this;return e().call(r,se(se({},t),{},{vectorBucketName:r.vectorBucketName}))}async listIndexes(t={}){var e=()=>super.listIndexes,r=this;return e().call(r,se(se({},t),{},{vectorBucketName:r.vectorBucketName}))}async getIndex(t){var e=()=>super.getIndex,r=this;return e().call(r,r.vectorBucketName,t)}async deleteIndex(t){var e=()=>super.deleteIndex,r=this;return e().call(r,r.vectorBucketName,t)}index(t){return new $b(this.url,this.headers,this.vectorBucketName,t,this.fetch)}}
33,$b=class extends Eb{constructor(t,e,r,n,o){super(t,e,o),this.vectorBucketName=r,this.indexName=n}async putVectors(t){var e=()=>super.putVectors,r=this;return e().call(r,se(se({},t),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async getVectors(t){var e=()=>super.getVectors,r=this;return e().call(r,se(se({},t),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async listVectors(t={}){var e=()=>super.listVectors,r=this;return e().call(r,se(se({},t),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async queryVectors(t){var e=()=>super.queryVectors,r=this;return e().call(r,se(se({},t),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async deleteVectors(t){var e=()=>super.deleteVectors,r=this;return e().call(r,se(se({},t),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}},Ab=class extends kb{constructor(t,e={},r,n){super(t,e,r,n)}from(t){return new xb(this.url,this.headers,t,this.fetch)}get vectors(){return new Lb(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new jb(this.url+"/iceberg",this.headers,this.fetch)}};const jf="2.97.0",$r=30*1e3,_i=3,Vs=_i*$r,Tb="http://localhost:9999",Pb="supabase.auth.token",Rb={"X-Client-Info":`gotrue-js/${jf}`},ki="X-Supabase-Api-Version",Cf={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},Nb=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,Mb=600*1e3;class pn extends Error{constructor(e,r,n){super(e),this.__isAuthError=!0,this.name="AuthError",this.status=r,this.code=n}}function J(t){return typeof t=="object"&&t!==null&&"__isAuthError"in t}class Ib extends pn{constructor(e,r,n){super(e,r,n),this.name="AuthApiError",this.status=r,this.code=n}}function Db(t){return J(t)&&t.name==="AuthApiError"}class sr extends pn{constructor(e,r){super(e),this.name="AuthUnknownError",this.originalError=r}}class It extends pn{constructor(e,r,n,o){super(e,n,o),this.name=r,this.status=n}}class ct extends It{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function Hs(t){return J(t)&&t.name==="AuthSessionMissingError"}class kr extends It{constructor(){super("Auth session or user missing","AuthInvalidToken
33ResponseError",500,void 0)}}class Nn extends It{constructor(e){super(e,"AuthInvalidCredentialsError",400,void 0)}}class Mn extends It{constructor(e,r=null){super(e,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function Vb(t){return J(t)&&t.name==="AuthImplicitGrantRedirectError"}class Kl extends It{constructor(e,r=null){super(e,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class Hb extends It{constructor(){super("PKCE code verifier not found in storage. This can happen if the auth flow was initiated in a different browser or device, or if the storage was cleared. For SSR frameworks (Next.js, SvelteKit, etc.), use @supabase/ssr on both the server and client to store the code verifier in cookies.","AuthPKCECodeVerifierMissingError",400,"pkce_code_verifier_not_found")}}class ji extends It{constructor(e,r){super(e,"AuthRetryableFetchError",r,void 0)}}function Bs(t){return J(t)&&t.name==="AuthRetryableFetchError"}class Gl extends It{constructor(e,r,n){super(e,"AuthWeakPasswordError",r,"weak_password"),this.reasons=n}}class Ci extends It{constructor(e){super(e,"AuthInvalidJwtError",400,"invalid_jwt")}}const hs="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),Ql=` 34\r=`.split(""),Bb=(()=>{const t=new Array(128);for(let e=0;e<t.length;e+=1)t[e]=-1;for(let e=0;e<Ql.length;e+=1)t[Ql[e].charCodeAt(0)]=-2;for(let e=0;e<hs.length;e+=1)t[hs[e].charCodeAt(0)]=e;return t})();function Yl(t,e,r){if(t!==null)for(e.queue=e.queue<<8|t,e.queuedBits+=8;e.queuedBits>=6;){const n=e.queue>>e.queuedBits-6&63;r(hs[n]),e.queuedBits-=6}else if(e.queuedBits>0)for(e.queue=e.queue<<6-e.queuedBits,e.queuedBits=6;e.queuedBits>=6;){const n=e.queue>>e.queuedBits-6&63;r(hs[n]),e.queuedBits-=6}}function Ef(t,e,r){const n=Bb[t];if(n>-1)for(e.queue=e.queue<<6|n,e.queuedBits+=6;e.queuedBits>=8;)r(e.queue>>e.queuedBits-8&255),e.queuedBits-=8;else{if(n===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(t)}"`)}}function Jl(t){const e=[],r=l=>{e.push(String.fromCodePoint(l))},n={utf8seq:0,codepoint:0},o={queue:0,queuedBits:0},a=l=>{Fb(l,n,r)};for(let l=0;l<t.length;l+=1)Ef(t.charCodeAt(l),o,a);return e.join("")}function Ub(t,e){if(t<=127){e(t);return}else if(t<=2047){e(192|t>>6),e(128|t&63);return}else if(t<=65535){e(224|t>>12),e(128|t>>6&63),e(128|t&63);return}else if(t<=1114111){e(240|t>>18),e(128|t>>12&63),e(128|t>>6&63),e(128|t&63);return}throw new Error(`Unrecognized Unicode codepoint: ${t.toString(16)}`)}function qb(t,e){for(let r=0;r<t.length;r+=1){let n=t.charCodeAt(r);if(n>55295&&n<=56319){const o=(n-55296)*1024&65535;n=(t.charCodeAt(r+1)-56320&65535|o)+65536,r+=1}Ub(n,e)}}function Fb(t,e,r){if(e.utf8seq===0){if(t<=127){r(t);return}for(let n=1;n<6;n+=1)if((t>>7-n&1)===0){e.utf8seq=n;break}if(e.utf8seq===2)e.codepoint=t&31;else if(e.utf8seq===3)e.codepoint=t&15;else if(e.utf8seq===4)e.codepoint=t&7;else throw new Error("Invalid UTF-8 sequence");e.utf8seq-=1}else if(e.utf8seq>0){if(t<=127)throw new Error("Invalid UTF-8 sequence");e.codepoint=e.codepoint<<6|t&63,e.utf8seq-=1,e.utf8seq===0&&r(e.codepoint)}}function Nr(t){const e=[],r={queue:0,queuedBits:0},n=o=>{e.push(o)};for(let o=0;o<t.length;o+=1)Ef(t.charCodeAt(o),r,n);return new Uint8Array(e)}function zb(t){const e=[];return qb(t,r=>e.push(r)),new Uint8Array(e)}function or(t){const e=[],r={queue:0,queuedBits:0},n=o=>{e.push(o)};return t.forEach(o=>Yl(o,r,n)),Yl(null,r,n),e.join("")}function Wb(t){return Math.round(Date.now()/1e3)+t}function Zb(){return Symbol("auth-callback")}const Be=()=>typeof window<"u"&&typeof document<"u",er={tested:!1,writable:!1},Sf=()=>{if(!Be())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(er.tested)return er.writable;const t=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(t,t),globalThis.localStorage.removeItem(t),er.tested=!0,er.writable=!0}catch{er.tested=!0,er.writable=!1}return er.writable};function Kb(t){const e={},r=new URL(t);if(r.hash&&r.hash[0]==="#")try{new URLSearchParams(r.hash.substring(1)).forEac
34h((o,a)=>{e[a]=o})}catch{}return r.searchParams.forEach((n,o)=>{e[o]=n}),e}const Lf=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),Gb=t=>typeof t=="object"&&t!==null&&"status"in t&&"ok"in t&&"json"in t&&typeof t.json=="function",Ar=async(t,e,r)=>{await t.setItem(e,JSON.stringify(r))},tr=async(t,e)=>{const r=await t.getItem(e);if(!r)return null;try{return JSON.parse(r)}catch{return r}},He=async(t,e)=>{await t.removeItem(e)};class _s{constructor(){this.promise=new _s.promiseConstructor((e,r)=>{this.resolve=e,this.reject=r})}}_s.promiseConstructor=Promise;function In(t){const e=t.split(".");if(e.length!==3)throw new Ci("Invalid JWT structure");for(let n=0;n<e.length;n++)if(!Nb.test(e[n]))throw new Ci("JWT not in base64url format");return{header:JSON.parse(Jl(e[0])),payload:JSON.parse(Jl(e[1])),signature:Nr(e[2]),raw:{header:e[0],payload:e[1]}}}async function Qb(t){return await new Promise(e=>{setTimeout(()=>e(null),t)})}function Yb(t,e){return new Promise((n,o)=>{(async()=>{for(let a=0;a<1/0;a++)try{const l=await t(a);if(!e(a,null,l)){n(l);return}}catch(l){if(!e(a,l)){o(l);return}}})()})}function Jb(t){return("0"+t.toString(16)).substr(-2)}function Xb(){const e=new Uint32Array(56);if(typeof crypto>"u"){const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",n=r.length;let o="";for(let a=0;a<56;a++)o+=r.charAt(Math.floor(Math.random()*n));return o}return crypto.getRandomValues(e),Array.from(e,Jb).join("")}async function ey(t){const r=new TextEncoder().encode(t),n=await crypto.subtle.digest("SHA-256",r),o=new Uint8Array(n);return Array.from(o).map(a=>String.fromCharCode(a)).join("")}async function ty(t){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),t;const r=await ey(t);return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function jr(t,e,r=!1){const n=Xb();let o=n;r&&(o+="/PASSWORD_RECOVERY"),await Ar(t,`${e}-code-verifier`,o);const a=await ty(n);return[a,n===a?"plain":"s256"]}const ry=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function ny(t){const e=t.headers.get(ki);if(!e||!e.match(ry))return null;try{return new Date(`${e}T00:00:00.0Z`)}catch{return null}}function sy(t){if(!t)throw new Error("Missing exp claim");const e=Math.floor(Date.now()/1e3);if(t<=e)throw new Error("JWT has expired")}function oy(t){switch(t){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const ay=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function Cr(t){if(!ay.test(t))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function Us(){const t={};return new Proxy(t,{get:(e,r)=>{if(r==="__isUserNotAvailableProxy")return!0;if(typeof r=="symbol"){const n=r.toString();if(n==="Symbol(Symbol.toPrimitive)"||n==="Symbol(Symbol.toStringTag)"||n==="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 "${r}" property of the session object is not supported. Please use getUser() instead.`)},set:(e,r)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${r}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(e,r)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${r}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function iy(t,e){return new Proxy(t,{get:(r,n,o)=>{if(n==="__isInsecureUserWarningProxy")return!0;if(typeof n=="symbol"){const a=n.toString();if(a==="Symbol(Symbol.toPrimitive)"||a==="Symbol(Symbol.toStringTag)"||a==="Symbol(util.inspect.custom)"||a==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(r,n,o)}return!e.value&&typeof n=="string"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),e.value=!0),Reflect.get(r,n,o)}})}function Xl(t){return JSON.parse(JSON.stringify(t))}const rr=t=>t.msg||t.message||t.error_description||t.error||JSON.stringify(t),ly=[502,503,504];async function ec(t){var e;if(!Gb(t))throw new ji(rr(t),0);if(ly.includes(t.status))throw new ji(rr(t),t.status);let r;try{r=await t.json()}catch(a){throw new sr(rr(a),a)}let n;const o=ny(t);if(o&&o.getTime()>=Cf["2024-01-01"].timestamp&&typeof r=="object"&&r&&typeof r.code=="string"?n=r.code:typeof r=="object"&&r&&typeof r.error_code=="string"&&(n=r.error_code),n){if(n==="weak_password")throw new Gl(rr(r),t.status,((e=r.weak_password)===null||e===void 0?void 0:e.reasons)||[]);if(n==="session_not_found")throw new ct}else if(typeof r=="object"&&r&&typeof r.weak_password=="object"&&r.weak_password&&Array.isArray(r.weak_password.reasons)&&r.weak_password.reasons.length&&r.weak_password.reasons.reduce((a,l)=>a&&typeof l=="string",!0))throw new Gl(rr(r),t.status,r.weak_password.reasons);throw new Ib(rr(r),t.status||500,n)}const cy=(t,e,r,n)=>{const o={method:t,headers:e?.headers||{}};return t==="GET"?o:(o.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},e?.headers),o.body=JSON.stringify(n),Object.assign(Object.assign({},o),r))};async function oe(t,e,r,n){var o;const a=Object.assign({},n?.headers);a[ki]||(a[ki]=Cf["2024-01-01"].name),n?.jwt&&(a.Authorization=`Bearer ${n.jwt}`);const l=(o=n?.query)!==null&&o!==void 0?o:{};n?.redirectTo&&(l.redirect_to=n.redirectTo);const c=Object.keys(l).length?"?"+new URLSearchParams(l).toString():"",u=await uy(t,e,r+c,{headers:a,noResolveJson:n?.noResolveJson},{},n?.body);return n?.xform?n?.xform(u):{data:Object.assign({},u),error:null}}async function uy(t,e,r,n,o,a){const l=cy(e,n,o,a);let c;try{c=await t(r,Object.assign({},l))}catch(u){throw console.error(u),new ji(rr(u),0)}if(c.ok||await ec(c),n?.noResolveJson)return c;try{return await c.json()}catch(u){await ec(u)}}function vt(t){var e;let r=null;fy(t)&&(r=Object.assign({},t),t.expires_at||(r.expires_at=Wb(t.expires_in)));const n=(e=t.user)!==null&&e!==void 0?e:t;return{data:{session:r,user:n},error:null}}function tc(t){const e=vt(t);return!e.error&&t.weak_password&&typeof t.weak_password=="object"&&Array.isArray(t.weak_password.reasons)&&t.weak_password.reasons.length&&t.weak_password.message&&typeof t.weak_password.message=="string"&&t.weak_password.reasons.reduce((r,n)=>r&&typeof n=="string",!0)&&(e.data.weak_password=t.weak_password),e}function zt(t){var e;return{data:{user:(e=t.user)!==null&&e!==void 0?e:t},error:null}}function dy(t){return{data:t,error:null}}function hy(t){const{action_link:e,email_otp:r,hashed_token:n,redirect_to:o,verification_type:a}=t,l=gs(t,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),c={action_link:e,email_otp:r,hashed_token:n,redirect_to:o,verification_type:a},u=Object.assign({},l);return{data:{properties:c,user:u},error:null}}function rc(t){return t}function fy(t){return t.access_token&&t.refresh_token&&t.expires_in}const qs=["global","local","others"];class my{constructor({url:e="",headers:r={},fetch:n}){this.url=e,this.headers=r,this.fetch=Lf(n),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)}}
34async signOut(e,r=qs[0]){if(qs.indexOf(r)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${qs.join(", ")}`);try{return await oe(this.fetch,"POST",`${this.url}/logout?scope=${r}`,{headers:this.headers,jwt:e,noResolveJson:!0}),{data:null,error:null}}catch(n){if(J(n))return{data:null,error:n};throw n}}async inviteUserByEmail(e,r={}){try{return await oe(this.fetch,"POST",`${this.url}/invite`,{body:{email:e,data:r.data},headers:this.headers,redirectTo:r.redirectTo,xform:zt})}catch(n){if(J(n))return{data:{user:null},error:n};throw n}}async generateLink(e){try{const{options:r}=e,n=gs(e,["options"]),o=Object.assign(Object.assign({},n),r);return"newEmail"in n&&(o.new_email=n?.newEmail,delete o.newEmail),await oe(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:o,headers:this.headers,xform:hy,redirectTo:r?.redirectTo})}catch(r){if(J(r))return{data:{properties:null,user:null},error:r};throw r}}async createUser(e){try{return await oe(this.fetch,"POST",`${this.url}/admin/users`,{body:e,headers:this.headers,xform:zt})}catch(r){if(J(r))return{data:{user:null},error:r};throw r}}async listUsers(e){var r,n,o,a,l,c,u;try{const d={nextPage:null,lastPage:0,total:0},f=await oe(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(n=(r=e?.page)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:"",per_page:(a=(o=e?.perPage)===null||o===void 0?void 0:o.toString())!==null&&a!==void 0?a:""},xform:rc});if(f.error)throw f.error;const h=await f.json(),m=(l=f.headers.get("x-total-count"))!==null&&l!==void 0?l:0,v=(u=(c=f.headers.get("link"))===null||c===void 0?void 0:c.split(","))!==null&&u!==void 0?u:[];return v.length>0&&(v.forEach(p=>{const w=parseInt(p.split(";")[0].split("=")[1].substring(0,1)),y=JSON.parse(p.split(";")[1].split("=")[1]);d[`${y}Page`]=w}),d.total=parseInt(m)),{data:Object.assign(Object.assign({},h),d),error:null}}catch(d){if(J(d))return{data:{users:[]},error:d};throw d}}async getUserById(e){Cr(e);try{return await oe(this.fetch,"GET",`${this.url}/admin/users/${e}`,{headers:this.headers,xform:zt})}catch(r){if(J(r))return{data:{user:null},error:r};throw r}}async updateUserById(e,r){Cr(e);try{return await oe(this.fetch,"PUT",`${this.url}/admin/users/${e}`,{body:r,headers:this.headers,xform:zt})}catch(n){if(J(n))return{data:{user:null},error:n};throw n}}async deleteUser(e,r=!1){Cr(e);try{return await oe(this.fetch,"DELETE",`${this.url}/admin/users/${e}`,{headers:this.headers,body:{should_soft_delete:r},xform:zt})}catch(n){if(J(n))return{data:{user:null},error:n};throw n}}async _listFactors(e){Cr(e.userId);try{const{data:r,error:n}=await oe(this.fetch,"GET",`${this.url}/admin/users/${e.userId}/factors`,{headers:this.headers,xform:o=>({data:{factors:o},error:null})});return{data:r,error:n}}catch(r){if(J(r))return{data:null,error:r};throw r}}async _deleteFactor(e){Cr(e.userId),Cr(e.id);try{return{data:await oe(this.fetch,"DELETE",`${this.url}/admin/users/${e.userId}/factors/${e.id}`,{headers:this.headers}),error:null}}catch(r){if(J(r))return{data:null,error:r};throw r}}async _listOAuthClients(e){var r,n,o,a,l,c,u;try{const d={nextPage:null,lastPage:0,total:0},f=await oe(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(n=(r=e?.page)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:"",per_page:(a=(o=e?.perPage)===null||o===void 0?void 0:o.toString())!==null&&a!==void 0?a:""},xform:rc});if(f.error)throw f.error;const h=await f.json(),m=(l=f.headers.get("x-total-count"))!==null&&l!==void 0?l:0,v=(u=(c=f.headers.get("link"))===null||c===void 0?void 0:c.split(","))!==null&&u!==void 0?u:[];return v.length>0&&(v.forEach(p=>{const w=parseInt(p.split(";")[0].split("=")[1].substring(0,1)),y=JSON.parse(p.split(";")[1].split("=")[1]);d[`${y}Page`]=w}),d.total=parseInt(m)),{data:Object.assign(Object.assign({},h),d),error:null}}catch(d){if(J(d))return{data:{clients:[]},error:d};throw d}}async _createOAuthClient(e){try{return await oe(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:e,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(J(r))return{data:null,error:r};throw r}}async _getOAuthClient(e){try{return await oe(this.fetch,"GET",`${this.url}/admin/oauth/clients/${e}`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(J(r))return{data:null,error:r};throw r}}async _updateOAuthClient(e,r){try{return await oe(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${e}`,{body:r,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(J(n))return{data:null,error:n};throw n}}async _deleteOAuthClient(e){try{return await oe(this.fetch,"DELET
34E",`${this.url}/admin/oauth/clients/${e}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(r){if(J(r))return{data:null,error:r};throw r}}async _regenerateOAuthClientSecret(e){try{return await oe(this.fetch,"POST",`${this.url}/admin/oauth/clients/${e}/regenerate_secret`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(J(r))return{data:null,error:r};throw r}}}function nc(t={}){return{getItem:e=>t[e]||null,setItem:(e,r)=>{t[e]=r},removeItem:e=>{delete t[e]}}}const Er={debug:!!(globalThis&&Sf()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class Of extends Error{constructor(e){super(e),this.isAcquireTimeout=!0}}class sc extends Of{}async function py(t,e,r){Er.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",t,e);const n=new globalThis.AbortController;e>0&&setTimeout(()=>{n.abort(),Er.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",t)},e),await Promise.resolve();try{return await globalThis.navigator.locks.request(t,e===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:n.signal},async o=>{if(o){Er.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",t,o.name);try{return await r()}finally{Er.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",t,o.name)}}else{if(e===0)throw Er.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",t),new sc(`Acquiring an exclusive Navigator LockManager lock "${t}" immediately failed`);if(Er.debug)try{const a=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(a,null," "))}catch(a){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",a)}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 r()}})}catch(o){throw o?.name==="AbortError"?new sc(`Acquiring an exclusive Navigator LockManager lock "${t}" timed out waiting ${e}ms`):o}}function vy(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}function $f(t){if(!/^0x[a-fA-F0-9]{40}$/.test(t))throw new Error(`@supabase/auth-js: Address "${t}" is invalid.`);return t.toLowerCase()}function gy(t){return parseInt(t,16)}function by(t){const e=new TextEncoder().encode(t);return"0x"+Array.from(e,n=>n.toString(16).padStart(2,"0")).join("")}function yy(t){var e;const{chainId:r,domain:n,expirationTime:o,issuedAt:a=new Date,nonce:l,notBefore:c,requestId:u,resources:d,scheme:f,uri:h,version:m}=t;{if(!Number.isInteger(r))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${r}`);if(!n)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(l&&l.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${l}`);if(!h)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(!((e=t.statement)===null||e===void 0)&&e.includes(` 35`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${t.statement}`)}const v=$f(t.address),p=f?`${f}://${n}`:n,w=t.statement?`${t.statement} 36`:"",y=`${p} wants you to sign in with your Ethereum account: 37${v} 38 39${w}`;let b=`URI: ${h} 40Version: ${m} 41Chain ID: ${r}${l?` 42Nonce: ${l}`:""} 43Issued At: ${a.toISOString()}`;if(o&&(b+=` 44Expiration Time: ${o.toISOString()}`),c&&(b+=` 45Not Before: ${c.toISOString()}`),u&&(b+=` 46Request ID: ${u}`),d){let _=` 47Resources:`;for(const g of d){if(!g||typeof g!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${g}`);_+=` 48- ${g}`}b+=_}return`${y} 49${b}`}
49class Te extends Error{constructor({message:e,code:r,cause:n,name:o}){var a;super(e,{cause:n}),this.__isWebAuthnError=!0,this.name=(a=o??(n instanceof Error?n.name:void 0))!==null&&a!==void 0?a:"Unknown Error",this.code=r}}class fs extends Te{constructor(e,r){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:r,message:e}),this.name="WebAuthnUnknownError",this.originalError=r}}function wy({error:t,options:e}){var r,n,o;const{publicKey:a}=e;if(!a)throw Error("options was missing required publicKey property");if(t.name==="AbortError"){if(e.signal instanceof AbortSignal)return new Te({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else if(t.name==="ConstraintError"){if(((r=a.authenticatorSelection)===null||r===void 0?void 0:r.requireResidentKey)===!0)return new Te({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:t});if(e.mediation==="conditional"&&((n=a.authenticatorSelection)===null||n===void 0?void 0:n.userVerification)==="required")return new Te({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:t});if(((o=a.authenticatorSelection)===null||o===void 0?void 0:o.userVerification)==="required")return new Te({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:t})}else{if(t.name==="InvalidStateError")return new Te({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:t});if(t.name==="NotAllowedError")return new Te({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if(t.name==="NotSupportedError")return a.pubKeyCredParams.filter(c=>c.type==="public-key").length===0?new Te({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:t}):new Te({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:t});if(t.name==="SecurityError"){const l=window.location.hostname;if(Af(l)){if(a.rp.id!==l)return new Te({message:`The RP ID "${a.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new Te({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t})}else if(t.name==="TypeError"){if(a.user.id.byteLength<1||a.user.id.byteLength>64)return new Te({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:t})}else if(t.name==="UnknownError")return new Te({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}return new Te({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t})}function xy({error:t,options:e}){const{publicKey:r}=e;if(!r)throw Error("options was missing required publicKey property");if(t.name==="AbortError"){if(e.signal instanceof AbortSignal)return new Te({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else{if(t.name==="NotAllowedError")return new Te({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if(t.name==="SecurityError"){const n=window.location.hostname;if(Af(n)){if(r.rpId!==n)return new Te({message:`The RP ID "${r.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new Te({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t})}else if(t.name==="UnknownError")return new Te({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}return new Te({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t})}class _y{createNewAbortSignal(){if(this.controller){const r=new Error("Cancelling existing WebAuthn API call for new one");r.name="AbortError",this.controller.abort(r)}const e=new AbortController;return this.controller=e,e.signal}cancelCeremony(){if(this.controller){const e=new Error("Manually cancelling existing WebAuthn API call");e.name="AbortError",this.controller.abort(e),this.controller=void 0}}}const ky=new _y;function jy(t){if(!t)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(t);const{challenge:e,user:r,excludeCredentials:n}=t,o=gs(t,["challenge","user","excludeCredentials"]),a=Nr(e).buffer,l=Object.assign(Object.assign({},r),{id:Nr(r.id).buffer}),c=Object.assign(Object.assign({},o),{challenge:a,user:l});if(n&&n.length>0){c.excludeCredentials=new Array(n.length);for(let u=0;u<n.length;u++){const d=n[u];c.excludeCredentials[u]=Object.assign(Object.assign({},d),{id:Nr(d.id).buffer,type:d.type||"public-key",transports:d.transports})}}return c}function Cy(t){if(!t)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(t);const{challenge:e,allowCredentials:r}=t,n=gs(t,["challenge","allowCredentials"]),o=Nr(e).buffer,a=Object.assign(Object.assign({}
49,n),{challenge:o});if(r&&r.length>0){a.allowCredentials=new Array(r.length);for(let l=0;l<r.length;l++){const c=r[l];a.allowCredentials[l]=Object.assign(Object.assign({},c),{id:Nr(c.id).buffer,type:c.type||"public-key",transports:c.transports})}}return a}function Ey(t){var e;if("toJSON"in t&&typeof t.toJSON=="function")return t.toJSON();const r=t;return{id:t.id,rawId:t.id,response:{attestationObject:or(new Uint8Array(t.response.attestationObject)),clientDataJSON:or(new Uint8Array(t.response.clientDataJSON))},type:"public-key",clientExtensionResults:t.getClientExtensionResults(),authenticatorAttachment:(e=r.authenticatorAttachment)!==null&&e!==void 0?e:void 0}}function Sy(t){var e;if("toJSON"in t&&typeof t.toJSON=="function")return t.toJSON();const r=t,n=t.getClientExtensionResults(),o=t.response;return{id:t.id,rawId:t.id,response:{authenticatorData:or(new Uint8Array(o.authenticatorData)),clientDataJSON:or(new Uint8Array(o.clientDataJSON)),signature:or(new Uint8Array(o.signature)),userHandle:o.userHandle?or(new Uint8Array(o.userHandle)):void 0},type:"public-key",clientExtensionResults:n,authenticatorAttachment:(e=r.authenticatorAttachment)!==null&&e!==void 0?e:void 0}}function Af(t){return t==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(t)}function oc(){var t,e;return!!(Be()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((t=navigator?.credentials)===null||t===void 0?void 0:t.create)=="function"&&typeof((e=navigator?.credentials)===null||e===void 0?void 0:e.get)=="function")}async function Ly(t){try{const e=await navigator.credentials.create(t);return e?e instanceof PublicKeyCredential?{data:e,error:null}:{data:null,error:new fs("Browser returned unexpected credential type",e)}:{data:null,error:new fs("Empty credential response",e)}}catch(e){return{data:null,error:wy({error:e,options:t})}}}async function Oy(t){try{const e=await navigator.credentials.get(t);return e?e instanceof PublicKeyCredential?{data:e,error:null}:{data:null,error:new fs("Browser returned unexpected credential type",e)}:{data:null,error:new fs("Empty credential response",e)}}catch(e){return{data:null,error:xy({error:e,options:t})}}}const $y={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},Ay={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function ms(...t){const e=o=>o!==null&&typeof o=="object"&&!Array.isArray(o),r=o=>o instanceof ArrayBuffer||ArrayBuffer.isView(o),n={};for(const o of t)if(o)for(const a in o){const l=o[a];if(l!==void 0)if(Array.isArray(l))n[a]=l;else if(r(l))n[a]=l;else if(e(l)){const c=n[a];e(c)?n[a]=ms(c,l):n[a]=ms(l)}else n[a]=l}return n}function Ty(t,e){return ms($y,t,e||{})}function Py(t,e){return ms(Ay,t,e||{})}class Ry{constructor(e){this.client=e,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(e){return this.client.mfa.enroll(Object.assign(Object.assign({},e),{factorType:"webauthn"}))}async _challenge({factorId:e,webauthn:r,friendlyName:n,signal:o},a){var l;try{const{data:c,error:u}=await this.client.mfa.challenge({factorId:e,webauthn:r});if(!c)return{data:null,error:u};const d=o??ky.createNewAbortSignal();if(c.webauthn.type==="create"){const{user:f}=c.webauthn.credential_options.publicKey;if(!f.name){const h=n;if(h)f.name=`${f.id}:${h}`;else{const v=(await this.client.getUser()).data.user,p=((l=v?.user_metadata)===null||l===void 0?void 0:l.name)||v?.email||v?.id||"User";f.name=`${f.id}:${p}`}}f.displayName||(f.displayName=f.name)}switch(c.webauthn.type){case"create":{const f=Ty(c.webauthn.credential_options.publicKey,a?.create),{data:h,error:m}=await Ly({publicKey:f,signal:d});return h?{data:{factorId:e,challengeId:c.id,webauthn:{type:c.webauthn.type,credential_response:h}},error:null}:{data:null,error:m}}case"request":{const f=Py(c.webauthn.credential_options.publicKey,a?.request),{data:h,error:m}=await Oy(Object.assign(Object.assign({},c.webauthn.credential_options),{publicKey:f,signal:d}));return h?{data:{factorId:e,challengeId:c.id,webauthn:{type:c.webauthn.type,credential_response:h}},error:null}:{data:null,error:m}}}}catch(c){return J(c)?{data:null,error:c}:{data:null,error:new sr("Unexpected error in challenge",c)}}}async _verify({challengeId:e,factorId:r,webauthn:n}){return this.client.mfa.verify({factorId:r,challengeId:e,webauthn:n})}async _authenticate({factorId:e,webauthn:{rpId:r=typeof window<"u"?window.location.hostname:void 0,rpOrigins:n=typeof window<"u"?[window.location.origin]:void 0,signal:o}={}},a){if(!r)return{data:null,error:new pn("rpId is required for WebAuthn authentication")};try{if(!oc())return{data:null,error:new sr("Browser does not support WebAuthn",null)};const{data:l,error:c}=await this.challenge({factorId:e,webauthn:{rpId:r,rpOrigins:n},signal:o},{request:a});if(!l)return{data:null,error:c};const{webauthn:u}=l;return this._verify({factorId:e,challengeId:l.challengeId,webauthn:{type:u.type,rpId:r,rpOrigins:n,credential_response:u.credential_response}})}catch(l){return J(l)?{data:null,error:l}:{data:null,error:new sr("Unexpected error in authenticate",l)}
49}}async _register({friendlyName:e,webauthn:{rpId:r=typeof window<"u"?window.location.hostname:void 0,rpOrigins:n=typeof window<"u"?[window.location.origin]:void 0,signal:o}={}},a){if(!r)return{data:null,error:new pn("rpId is required for WebAuthn registration")};try{if(!oc())return{data:null,error:new sr("Browser does not support WebAuthn",null)};const{data:l,error:c}=await this._enroll({friendlyName:e});if(!l)return await this.client.mfa.listFactors().then(f=>{var h;return(h=f.data)===null||h===void 0?void 0:h.all.find(m=>m.factor_type==="webauthn"&&m.friendly_name===e&&m.status!=="unverified")}).then(f=>f?this.client.mfa.unenroll({factorId:f?.id}):void 0),{data:null,error:c};const{data:u,error:d}=await this._challenge({factorId:l.id,friendlyName:l.friendly_name,webauthn:{rpId:r,rpOrigins:n},signal:o},{create:a});return u?this._verify({factorId:l.id,challengeId:u.challengeId,webauthn:{rpId:r,rpOrigins:n,type:u.webauthn.type,credential_response:u.webauthn.credential_response}}):{data:null,error:d}}catch(l){return J(l)?{data:null,error:l}:{data:null,error:new sr("Unexpected error in register",l)}}}}vy();const Ny={url:Tb,storageKey:Pb,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:Rb,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:1e4,skipAutoInitialize:!1};async function ac(t,e,r){return await r()}const Sr={};class vn{get jwks(){var e,r;return(r=(e=Sr[this.storageKey])===null||e===void 0?void 0:e.jwks)!==null&&r!==void 0?r:{keys:[]}}set jwks(e){Sr[this.storageKey]=Object.assign(Object.assign({},Sr[this.storageKey]),{jwks:e})}get jwks_cached_at(){var e,r;return(r=(e=Sr[this.storageKey])===null||e===void 0?void 0:e.cachedAt)!==null&&r!==void 0?r:Number.MIN_SAFE_INTEGER}set jwks_cached_at(e){Sr[this.storageKey]=Object.assign(Object.assign({},Sr[this.storageKey]),{cachedAt:e})}constructor(e){var r,n,o;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const a=Object.assign(Object.assign({},Ny),e);if(this.storageKey=a.storageKey,this.instanceID=(r=vn.nextInstanceID[this.storageKey])!==null&&r!==void 0?r:0,vn.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!a.debug,typeof a.debug=="function"&&(this.logger=a.debug),this.instanceID>0&&Be()){const l=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(l),this.logDebugMessages&&console.trace(l)}if(this.persistSession=a.persistSession,this.autoRefreshToken=a.autoRefreshToken,this.admin=new my({url:a.url,headers:a.headers,fetch:a.fetch}),this.url=a.url,this.headers=a.headers,this.fetch=Lf(a.fetch),this.lock=a.lock||ac,this.detectSessionInUrl=a.detectSessionInUrl,this.flowType=a.flowType,this.hasCustomAuthorizationHeader=a.hasCustomAuthorizationHeader,this.throwOnError=a.throwOnError,this.lockAcquireTimeout=a.lockAcquireTimeout,a.lock?this.lock=a.lock:this.persistSession&&Be()&&(!((n=globalThis?.navigator)===null||n===void 0)&&n.locks)?this.lock=py:this.lock=ac,this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this),webauthn:new Ry(this)},this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.persistSession?(a.storage?this.storage=a.storage:Sf()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=nc(this.memoryStorage)),a.userStorage&&(this.userStorage=a.userStorage)):(this.memoryStorage={},this.storage=nc(this.memoryStorage)),Be()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(l){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",l)}(o=this.broadcastChannel)===null||o===void 0||o.addEventListener("message",async l=>{this._debug("received broadcast notification from other tab or client",l);try{await this._notifyAllSubscribers(l.data.event,l.data.session,!1)}catch(c){this._debug("#broadcastChannel","error",c)}})}a.skipAutoInitialize||this.initialize().catch(l=>{this._debug("#initialize()","error",l)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(e){if(this.throwOnError&&e&&e.error)throw e.error;return e}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${jf}) ${new Date().toISOString()}`}_debug(...e){return this.logDebugMessages&&this.logger(this._logPrefix(),...e),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var e;try{let r={},n="none";if(Be()&&(r=Kb(window.location.href),this._isImplicitGrantCallback(r)?n="implicit":await this._isPKCECallback(r)&&(n="pkce")),Be()&&this.detectSessionInUrl&&n!=="none"){const{data:o,error:a}=await this._getSessionFromURL(r,n);if(a){if(this._debug("#_initialize()","error detecting session from URL",a),Vb(a)){const u=(e=a.details)===null||e===void 0?void 0:e.code;if(u==="identity_already_exists"||u==="identity_not_found"||u==="single_identity_not_deletable")return{error:a}}return{error:a}}const{session:l,redirectType:c}=o;return this._debug("#_initialize()","detected session in URL",l,"redirect type",c),await this._saveSession(l),setTimeout(async()=>{c==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",l):await this._notifyAllSubscribers("SIGNED_IN",l)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(r){return J(r)?this._returnResult({error:r}):this._returnResult({error:new sr("Unexpected error during initialization",r)}
49)}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(e){var r,n,o;try{const a=await oe(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(n=(r=e?.options)===null||r===void 0?void 0:r.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:(o=e?.options)===null||o===void 0?void 0:o.captchaToken}},xform:vt}),{data:l,error:c}=a;if(c||!l)return this._returnResult({data:{user:null,session:null},error:c});const u=l.session,d=l.user;return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",u)),this._returnResult({data:{user:d,session:u},error:null})}catch(a){if(J(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async signUp(e){var r,n,o;try{let a;if("email"in e){const{email:f,password:h,options:m}=e;let v=null,p=null;this.flowType==="pkce"&&([v,p]=await jr(this.storage,this.storageKey)),a=await oe(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:m?.emailRedirectTo,body:{email:f,password:h,data:(r=m?.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:m?.captchaToken},code_challenge:v,code_challenge_method:p},xform:vt})}else if("phone"in e){const{phone:f,password:h,options:m}=e;a=await oe(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:f,password:h,data:(n=m?.data)!==null&&n!==void 0?n:{},channel:(o=m?.channel)!==null&&o!==void 0?o:"sms",gotrue_meta_security:{captcha_token:m?.captchaToken}},xform:vt})}else throw new Nn("You must provide either an email or phone number and a password");const{data:l,error:c}=a;if(c||!l)return await He(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:c});const u=l.session,d=l.user;return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",u)),this._returnResult({data:{user:d,session:u},error:null})}catch(a){if(await He(this.storage,`${this.storageKey}-code-verifier`),J(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async signInWithPassword(e){try{let r;if("email"in e){const{email:a,password:l,options:c}=e;r=await oe(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:a,password:l,gotrue_meta_security:{captcha_token:c?.captchaToken}},xform:tc})}else if("phone"in e){const{phone:a,password:l,options:c}=e;r=await oe(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:a,password:l,gotrue_meta_security:{captcha_token:c?.captchaToken}},xform:tc})}else throw new Nn("You must provide either an email or phone number and a password");const{data:n,error:o}=r;if(o)return this._returnResult({data:{user:null,session:null},error:o});if(!n||!n.session||!n.user){const a=new kr;return this._returnResult({data:{user:null,session:null},error:a})}return n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",n.session)),this._returnResult({data:Object.assign({user:n.user,session:n.session},n.weak_password?{weakPassword:n.weak_password}:null),error:o})}catch(r){if(J(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async signInWithOAuth(e){var r,n,o,a;return await this._handleProviderSignIn(e.provider,{redirectTo:(r=e.options)===null||r===void 0?void 0:r.redirectTo,scopes:(n=e.options)===null||n===void 0?void 0:n.scopes,queryParams:(o=e.options)===null||o===void 0?void 0:o.queryParams,skipBrowserRedirect:(a=e.options)===null||a===void 0?void 0:a.skipBrowserRedirect})}async exchangeCodeForSession(e){return await this.initializePromise,this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(e))}async signInWithWeb3(e){const{chain:r}=e;switch(r){case"ethereum":return await this.signInWithEthereum(e);case"solana":return await this.signInWithSolana(e);default:throw new Error(`@supabase/auth-js: Unsupported chain "${r}"`)}}async signInWithEthereum(e){var r,n,o,a,l,c,u,d,f,h,m;let v,p;if("message"in e)v=e.message,p=e.signature;else{const{chain:w,wallet:y,statement:b,options:_}=e;let g;if(Be())if(typeof y=="object")g=y;else{const $=window;if("ethereum"in $&&typeof $.ethereum=="object"&&"request"in $.ethereum&&typeof $.ethereum.request=="function")g=$.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 y!="object"||!_?.url)throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");g=y}const j=new URL((r=_?.url)!==null&&r!==void 0?r:window.location.href),E=await g.request({method:"eth_requestAccounts"}).then($=>$).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!E||E.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const L=$f(E[0]);let D=(n=_?.signInWithEthereum)===null||n===void 0?void 0:n.chainId;if(!D){const $=await g.request({method:"eth_chainId"});D=gy($)}const C={domain:j.host,address:L,statement:b,uri:j.href,version:"1",chainId:D,nonce:(o=_?.signInWithEthereum)===null||o===void 0?void 0:o.nonce,issuedAt:(l=(a=_?.signInWithEthereum)===null||a===void 0?void 0:a.issuedAt)!==null&&l!==void 0?l:new Date,expirationTime:(c=_?.signInWithEthereum)===null||c===void 0?void 0:c.expirationTime,notBefore:(u=_?.signInWithEthereum)===null||u===void 0?void 0:u.notBefore,requestId:(d=_?.signInWithEthereum)===null||d===void 0?void 0:d.requestId,resources:(f=_?.signInWithEthereum)===null||f===void 0?void 0:f.resources};v=yy(C),p=await g.request({method:"personal_sign",params:[by(v),L]})}try{const{data:w,error:y}=await oe(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:v,signature:p}
49,!((h=e.options)===null||h===void 0)&&h.captchaToken?{gotrue_meta_security:{captcha_token:(m=e.options)===null||m===void 0?void 0:m.captchaToken}}:null),xform:vt});if(y)throw y;if(!w||!w.session||!w.user){const b=new kr;return this._returnResult({data:{user:null,session:null},error:b})}return w.session&&(await this._saveSession(w.session),await this._notifyAllSubscribers("SIGNED_IN",w.session)),this._returnResult({data:Object.assign({},w),error:y})}catch(w){if(J(w))return this._returnResult({data:{user:null,session:null},error:w});throw w}}async signInWithSolana(e){var r,n,o,a,l,c,u,d,f,h,m,v;let p,w;if("message"in e)p=e.message,w=e.signature;else{const{chain:y,wallet:b,statement:_,options:g}=e;let j;if(Be())if(typeof b=="object")j=b;else{const L=window;if("solana"in L&&typeof L.solana=="object"&&("signIn"in L.solana&&typeof L.solana.signIn=="function"||"signMessage"in L.solana&&typeof L.solana.signMessage=="function"))j=L.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 b!="object"||!g?.url)throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");j=b}const E=new URL((r=g?.url)!==null&&r!==void 0?r:window.location.href);if("signIn"in j&&j.signIn){const L=await j.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},g?.signInWithSolana),{version:"1",domain:E.host,uri:E.href}),_?{statement:_}:null));let D;if(Array.isArray(L)&&L[0]&&typeof L[0]=="object")D=L[0];else if(L&&typeof L=="object"&&"signedMessage"in L&&"signature"in L)D=L;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in D&&"signature"in D&&(typeof D.signedMessage=="string"||D.signedMessage instanceof Uint8Array)&&D.signature instanceof Uint8Array)p=typeof D.signedMessage=="string"?D.signedMessage:new TextDecoder().decode(D.signedMessage),w=D.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in j)||typeof j.signMessage!="function"||!("publicKey"in j)||typeof j!="object"||!j.publicKey||!("toBase58"in j.publicKey)||typeof j.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");p=[`${E.host} wants you to sign in with your Solana account:`,j.publicKey.toBase58(),..._?["",_,""]:[""],"Version: 1",`URI: ${E.href}`,`Issued At: ${(o=(n=g?.signInWithSolana)===null||n===void 0?void 0:n.issuedAt)!==null&&o!==void 0?o:new Date().toISOString()}`,...!((a=g?.signInWithSolana)===null||a===void 0)&&a.notBefore?[`Not Before: ${g.signInWithSolana.notBefore}`]:[],...!((l=g?.signInWithSolana)===null||l===void 0)&&l.expirationTime?[`Expiration Time: ${g.signInWithSolana.expirationTime}`]:[],...!((c=g?.signInWithSolana)===null||c===void 0)&&c.chainId?[`Chain ID: ${g.signInWithSolana.chainId}`]:[],...!((u=g?.signInWithSolana)===null||u===void 0)&&u.nonce?[`Nonce: ${g.signInWithSolana.nonce}`]:[],...!((d=g?.signInWithSolana)===null||d===void 0)&&d.requestId?[`Request ID: ${g.signInWithSolana.requestId}`]:[],...!((h=(f=g?.signInWithSolana)===null||f===void 0?void 0:f.resources)===null||h===void 0)&&h.length?["Resources",...g.signInWithSolana.resources.map(D=>`- ${D}`)]:[]].join(` 50`);const L=await j.signMessage(new TextEncoder().encode(p),"utf8");if(!L||!(L instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");w=L}}try{const{data:y,error:b}=await oe(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:p,signature:or(w)},!((m=e.options)===null||m===void 0)&&m.captchaToken?{gotrue_meta_security:{captcha_token:(v=e.options)===null||v===void 0?void 0:v.captchaToken}}:null),xform:vt});if(b)throw b;if(!y||!y.session||!y.user){const _=new kr;return this._returnResult({data:{user:null,session:null},error:_})}return y.session&&(await this._saveSession(y.session),await this._notifyAllSubscribers("SIGNED_IN",y.session)),this._returnResult({data:Object.assign({},y),error:b})}catch(y){if(J(y))return this._returnResult({data:{user:null,session:null},error:y});throw y}}async _exchangeCodeForSession(e){const r=await tr(this.storage,`${this.storageKey}-code-verifier`),[n,o]=(r??"").split("/");try{if(!n&&this.flowType==="pkce")throw new Hb;const{data:a,error:l}=await oe(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:e,code_verifier:n},xform:vt});if(await He(this.storage,`${this.storageKey}-code-verifier`),l)throw l;if(!a||!a.session||!a.user){const c=new kr;return this._returnResult({data:{user:null,session:null,redirectType:null},error:c})}return a.session&&(await this._saveSession(a.session),await this._notifyAllSubscribers("SIGNED_IN",a.session)),this._returnResult({data:Object.assign(Object.assign({},a),{redirectType:o??null}),error:l})}catch(a){if(await He(this.storage,`${this.storageKey}-code-verifier`),J(a))return this._returnResult({data:{user:null,session:null,redirectType:null},error:a});throw a}}async signInWithIdToken(e){try{const{options:r,provider:n,token:o,access_token:a,nonce:l}=e,c=await oe(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:n,id_token:o,access_token:a,nonce:l,gotrue_meta_security:{captcha_token:r?.captchaToken}},xform:vt}),{data:u,error:d}=c;if(d)return this._returnResult({data:{user:null,session:null},error:d});if(!u||!u.session||!u.user){const f=new kr;return this._returnResult({data:{user:null,session:null},error:f})}return u.session&&(await this._saveSession(u.session),await this._notifyAllSubscribers("SIGNED_IN",u.session)),this._returnResult({data:u,error:d})}catch(r){if(J(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async signInWithOtp(e){var r,n,o,a,l;try{if("email"in e){const{email:c,options:u}=e;let d=null,f=null;this.flowType==="pkce"&&([d,f]=await jr(this.storage,this.storageKey));const{error:h}=await oe(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:c,data:(r=u?.data)!==null&&r!==void 0?r:{},create_user:(n=u?.shouldCreateUser)!==null&&n!==void 0?n:!0,gotrue_meta_security:{captcha_token:u?.captchaToken},code_challenge:d,code_challenge_method:f},redirectTo:u?.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:h})}if("phone"in e){const{phone:c,options:u}=e,{data:d,error:f}=await oe(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:c,data:(o=u?.data)!==null&&o!==void 0?o:{},create_user:(a=u?.shouldCreateUser)!==null&&a!==void 0?a:!0,gotrue_meta_security:{captcha_token:u?.captchaToken},channel:(l=u?.channel)!==null&&l!==void 0?l:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:d?.message_id},error:f})}throw new Nn("You must provide either an email or phone number.")}catch(c){if(await He(this.storage,`${this.storageKey}-code-verifier`),J(c))return this._returnResult({data:{user:null,session:null},error:c});throw c}}async verifyOtp(e){var r,n;try{let o,a;"options"in e&&(o=(r=e.options)===null||r===void 0?void 0:r.redirectTo,a=(n=e.options)===null||n===void 0?void 0:n.captchaToken);const{data:l,error:c}=await oe(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},e),{gotrue_meta_security:{captcha_token:a}}),redirectTo:o,xform:vt});if(c)throw c;if(!l)throw new Error("An error occurred on token verification.");const u=l.session,d=l.user;return u?.access_token&&(await this._saveSession(u),await this._notifyAllSubscribers(e.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",u)),this._returnResult({data:{user:d,session:u},error:null})}catch(o){if(J(o))return this._returnResult({data:{user:null,session:null},error:o});throw o}}async signInWithSSO(e){var r,n,o,a,l;try{let c=null,u=null;this.flowType==="pkce"&&([c,u]=await jr(this.storage,this.storageKey));const d=await oe(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in e?{provider_id:e.providerId}:null),"domain"in e?{domain:e.domain}:null),{redirect_to:(n=(r=e.options)===null||r===void 0?void 0:r.redirectTo)!==null&&n!==void 0?n:void 0}),!((o=e?.options)===null||o===void 0)&&o.captchaToken?{gotrue_meta_security:{captcha_token:e.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:c,code_challenge_method:u}),headers:this.headers,xform:dy});return!((a=d.data)===null||a===void 0)&&a.url&&Be()&&!(!((l=e.options)===null||l===void 0)&&l.skipBrowserRedirect)&&window.location.assign(d.data.url),this._returnResult(d)}catch(c){if(await He(this.storage,`${this.storageKey}-code-verifier`),J(c))return this._returnResult({data:null,error:c});throw c}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async e=>{const{data:{session:r},error:n}=e;if(n)throw n;if(!r)throw new ct;const{error:o}=await oe(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:r.access_token});return this._returnResult({data:{user:null,session:null},error:o})})}catch(e){if(J(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async resend(e){try{const r=`${this.url}/resend`;if("email"in e){const{email:n,type:o,options:a}=e,{error:l}=await oe(this.fetch,"POST",r,{headers:this.headers,body:{email:n,type:o,gotrue_meta_security:{captcha_token:a?.captchaToken}},redirectTo:a?.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:l})}else if("phone"in e){const{phone:n,type:o,options:a}=e,{data:l,error:c}=await oe(this.fetch,"POST",r,{headers:this.headers,body:{phone:n,type:o,gotrue_meta_security:{captcha_token:a?.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:l?.message_id},error:c})}throw new Nn("You must provide either an email or phone number and a type")}catch(r){if(J(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async getSession(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async r=>r))}async _acquireLock(e,r){this._debug("#_acquireLock","begin",e);try{if(this.lockAcquired){const n=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),o=(async()=>(await n,await r()))();return this.pendingInLock.push((async()=>{try{await o}catch{}})()),o}return await this.lock(`lock:${this.storageKey}`,e,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const n=r();for(this.pendingInLock.push((async()=>{try{await n}catch{}})()),await n;this.pendingInLock.length;){const o=[...this.pendingInLock];await Promise.all(o),this.pendingInLock.splice(0,o.length)}return await n}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(e){this._debug("#_useSession","begin");try{const r=await this.__loadSession();return await e(r)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let e=null;const r=await tr(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",r),r!==null&&(this._isValidSession(r)?e=r:(this._debug("#getSession()","session from storage is not val
50id"),await this._removeSession())),!e)return{data:{session:null},error:null};const n=e.expires_at?e.expires_at*1e3-Date.now()<Vs:!1;if(this._debug("#__loadSession()",`session has${n?"":" not"} expired`,"expires_at",e.expires_at),!n){if(this.userStorage){const l=await tr(this.userStorage,this.storageKey+"-user");l?.user?e.user=l.user:e.user=Us()}if(this.storage.isServer&&e.user&&!e.user.__isUserNotAvailableProxy){const l={value:this.suppressGetSessionWarning};e.user=iy(e.user,l),l.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:e},error:null}}const{data:o,error:a}=await this._callRefreshToken(e.refresh_token);return a?this._returnResult({data:{session:null},error:a}):this._returnResult({data:{session:o},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(e){if(e)return await this._getUser(e);await this.initializePromise;const r=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser());return r.data.user&&(this.suppressGetSessionWarning=!0),r}async _getUser(e){try{return e?await oe(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:e,xform:zt}):await this._useSession(async r=>{var n,o,a;const{data:l,error:c}=r;if(c)throw c;return!(!((n=l.session)===null||n===void 0)&&n.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new ct}:await oe(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(a=(o=l.session)===null||o===void 0?void 0:o.access_token)!==null&&a!==void 0?a:void 0,xform:zt})})}catch(r){if(J(r))return Hs(r)&&(await this._removeSession(),await He(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:r});throw r}}async updateUser(e,r={}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(e,r))}async _updateUser(e,r={}){try{return await this._useSession(async n=>{const{data:o,error:a}=n;if(a)throw a;if(!o.session)throw new ct;const l=o.session;let c=null,u=null;this.flowType==="pkce"&&e.email!=null&&([c,u]=await jr(this.storage,this.storageKey));const{data:d,error:f}=await oe(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:r?.emailRedirectTo,body:Object.assign(Object.assign({},e),{code_challenge:c,code_challenge_method:u}),jwt:l.access_token,xform:zt});if(f)throw f;return l.user=d.user,await this._saveSession(l),await this._notifyAllSubscribers("USER_UPDATED",l),this._returnResult({data:{user:l.user},error:null})})}catch(n){if(await He(this.storage,`${this.storageKey}-code-verifier`),J(n))return this._returnResult({data:{user:null},error:n});throw n}}async setSession(e){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(e))}async _setSession(e){try{if(!e.access_token||!e.refresh_token)throw new ct;const r=Date.now()/1e3;let n=r,o=!0,a=null;const{payload:l}=In(e.access_token);if(l.exp&&(n=l.exp,o=n<=r),o){const{data:c,error:u}=await this._callRefreshToken(e.refresh_token);if(u)return this._returnResult({data:{user:null,session:null},error:u});if(!c)return{data:{user:null,session:null},error:null};a=c}else{const{data:c,error:u}=await this._getUser(e.access_token);if(u)return this._returnResult({data:{user:null,session:null},error:u});a={access_token:e.access_token,refresh_token:e.refresh_token,user:c.user,token_type:"bearer",expires_in:n-r,expires_at:n},await this._saveSession(a),await this._notifyAllSubscribers("SIGNED_IN",a)}return this._returnResult({data:{user:a.user,session:a},error:null})}catch(r){if(J(r))return this._returnResult({data:{session:null,user:null},error:r});throw r}}async refreshSession(e){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(e))}async _refreshSession(e){try{return await this._useSession(async r=>{var n;if(!e){const{data:l,error:c}=r;if(c)throw c;e=(n=l.session)!==null&&n!==void 0?n:void 0}if(!e?.refresh_token)throw new ct;const{data:o,error:a}=await this._callRefreshToken(e.refresh_token);return a?this._returnResult({data:{user:null,session:null},error:a}):o?this._returnResult({data:{user:o.user,session:o},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(r){if(J(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async _getSessionFromURL(e,r){try{if(!Be())throw new Mn("No browser detected.");
50if(e.error||e.error_description||e.error_code)throw new Mn(e.error_description||"Error in URL with unspecified error_description",{error:e.error||"unspecified_error",code:e.error_code||"unspecified_code"});switch(r){case"implicit":if(this.flowType==="pkce")throw new Kl("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Mn("Not a valid implicit grant flow url.");break;default:}if(r==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!e.code)throw new Kl("No code detected.");const{data:_,error:g}=await this._exchangeCodeForSession(e.code);if(g)throw g;const j=new URL(window.location.href);return j.searchParams.delete("code"),window.history.replaceState(window.history.state,"",j.toString()),{data:{session:_.session,redirectType:null},error:null}}const{provider_token:n,provider_refresh_token:o,access_token:a,refresh_token:l,expires_in:c,expires_at:u,token_type:d}=e;if(!a||!c||!l||!d)throw new Mn("No session defined in URL");const f=Math.round(Date.now()/1e3),h=parseInt(c);let m=f+h;u&&(m=parseInt(u));const v=m-f;v*1e3<=$r&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${v}s, should have been closer to ${h}s`);const p=m-h;f-p>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",p,m,f):f-p<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",p,m,f);const{data:w,error:y}=await this._getUser(a);if(y)throw y;const b={provider_token:n,provider_refresh_token:o,access_token:a,expires_in:h,expires_at:m,refresh_token:l,token_type:d,user:w.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:b,redirectType:e.type},error:null})}catch(n){if(J(n))return this._returnResult({data:{session:null,redirectType:null},error:n});throw n}}_isImplicitGrantCallback(e){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),e):!!(e.access_token||e.error_description)}async _isPKCECallback(e){const r=await tr(this.storage,`${this.storageKey}-code-verifier`);return!!(e.code&&r)}async signOut(e={scope:"global"}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(e))}async _signOut({scope:e}={scope:"global"}){return await this._useSession(async r=>{var n;const{data:o,error:a}=r;if(a&&!Hs(a))return this._returnResult({error:a});const l=(n=o.session)===null||n===void 0?void 0:n.access_token;if(l){const{error:c}=await this.admin.signOut(l,e);if(c&&!(Db(c)&&(c.status===404||c.status===401||c.status===403)||Hs(c)))return this._returnResult({error:c})}return e!=="others"&&(await this._removeSession(),await He(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(e){const r=Zb(),n={id:r,callback:e,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",r),this.stateChangeEmitters.delete(r)}};return this._debug("#onAuthStateChange()","registered callback with id",r),this.stateChangeEmitters.set(r,n),(async()=>(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(r)})))(),{data:{subscription:n}}}async _emitInitialSession(e){return await this._useSession(async r=>{var n,o;try{const{data:{session:a},error:l}=r;if(l)throw l;await((n=this.stateChangeEmitters.get(e))===null||n===void 0?void 0:n.callback("INITIAL_SESSION",a)),this._debug("INITIAL_SESSION","callback id",e,"session",a)}catch(a){await((o=this.stateChangeEmitters.get(e))===null||o===void 0?void 0:o.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",e,"error",a),console.error(a)}})}async resetPasswordForEmail(e,r={}){let n=null,o=null;this.flowType==="pkce"&&([n,o]=await jr(this.storage,this.storageKey,!0));try{return await oe(this.fetch,"POST",`${this.url}/recover`,{body:{email:e,code_challenge:n,code_challenge_method:o,gotrue_meta_security:{captcha_token:r.captchaToken}},headers:this.headers,redirectTo:r.redirectTo})}catch(a){if(await He(this.storage,`${this.storageKey}-code-verifier`),J(a))return this._returnResult({data:null,error:a});throw a}}async getUserIdentities(){var e;try{const{data:r,error:n}=await this.getUser();if(n)throw n;return this._returnResult({data:{identities:(e=r.user.identities)!==null&&e!==void 0?e:[]},error:null})}catch(r){if(J(r))return this._returnResult({data:null,error:r});throw r}}async linkIdentity(e){return"token"in e?this.linkIdentityIdToken(e):this.linkIdentityOAuth(e)}async linkIdentityOAuth(e){var r;try{const{data:n,error:o}=await this._useSession(async a=>{var l,c,u,d,f;
50const{data:h,error:m}=a;if(m)throw m;const v=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,e.provider,{redirectTo:(l=e.options)===null||l===void 0?void 0:l.redirectTo,scopes:(c=e.options)===null||c===void 0?void 0:c.scopes,queryParams:(u=e.options)===null||u===void 0?void 0:u.queryParams,skipBrowserRedirect:!0});return await oe(this.fetch,"GET",v,{headers:this.headers,jwt:(f=(d=h.session)===null||d===void 0?void 0:d.access_token)!==null&&f!==void 0?f:void 0})});if(o)throw o;return Be()&&!(!((r=e.options)===null||r===void 0)&&r.skipBrowserRedirect)&&window.location.assign(n?.url),this._returnResult({data:{provider:e.provider,url:n?.url},error:null})}catch(n){if(J(n))return this._returnResult({data:{provider:e.provider,url:null},error:n});throw n}}async linkIdentityIdToken(e){return await this._useSession(async r=>{var n;try{const{error:o,data:{session:a}}=r;if(o)throw o;const{options:l,provider:c,token:u,access_token:d,nonce:f}=e,h=await oe(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(n=a?.access_token)!==null&&n!==void 0?n:void 0,body:{provider:c,id_token:u,access_token:d,nonce:f,link_identity:!0,gotrue_meta_security:{captcha_token:l?.captchaToken}},xform:vt}),{data:m,error:v}=h;return v?this._returnResult({data:{user:null,session:null},error:v}):!m||!m.session||!m.user?this._returnResult({data:{user:null,session:null},error:new kr}):(m.session&&(await this._saveSession(m.session),await this._notifyAllSubscribers("USER_UPDATED",m.session)),this._returnResult({data:m,error:v}))}catch(o){if(await He(this.storage,`${this.storageKey}-code-verifier`),J(o))return this._returnResult({data:{user:null,session:null},error:o});throw o}})}async unlinkIdentity(e){try{return await this._useSession(async r=>{var n,o;const{data:a,error:l}=r;if(l)throw l;return await oe(this.fetch,"DELETE",`${this.url}/user/identities/${e.identity_id}`,{headers:this.headers,jwt:(o=(n=a.session)===null||n===void 0?void 0:n.access_token)!==null&&o!==void 0?o:void 0})})}catch(r){if(J(r))return this._returnResult({data:null,error:r});throw r}}async _refreshAccessToken(e){const r=`#_refreshAccessToken(${e.substring(0,5)}...)`;this._debug(r,"begin");try{const n=Date.now();return await Yb(async o=>(o>0&&await Qb(200*Math.pow(2,o-1)),this._debug(r,"refreshing attempt",o),await oe(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:e},headers:this.headers,xform:vt})),(o,a)=>{const l=200*Math.pow(2,o);return a&&Bs(a)&&Date.now()+l-n<$r})}catch(n){if(this._debug(r,"error",n),J(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}finally{this._debug(r,"end")}}_isValidSession(e){return typeof e=="object"&&e!==null&&"access_token"in e&&"refresh_token"in e&&"expires_at"in e}async _handleProviderSignIn(e,r){const n=await this._getUrlForProvider(`${this.url}/authorize`,e,{redirectTo:r.redirectTo,scopes:r.scopes,queryParams:r.queryParams});return this._debug("#_handleProviderSignIn()","provider",e,"options",r,"url",n),Be()&&!r.skipBrowserRedirect&&window.location.assign(n),{data:{provider:e,url:n},error:null}}async _recoverAndRefresh(){var e,r;const n="#_recoverAndRefresh()";this._debug(n,"begin");try{const o=await tr(this.storage,this.storageKey);if(o&&this.userStorage){let l=await tr(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!l&&(l={user:o.user},await Ar(this.userStorage,this.storageKey+"-user",l)),o.user=(e=l?.user)!==null&&e!==void 0?e:Us()}else if(o&&!o.user&&!o.user){const l=await tr(this.storage,this.storageKey+"-user");l&&l?.user?(o.user=l.user,await He(this.storage,this.storageKey+"-user"),await Ar(this.storage,this.storageKey,o)):o.user=Us()}if(this._debug(n,"session from storage",o),!this._isValidSession(o)){this._debug(n,"session is not valid"),o!==null&&await this._removeSession();return}const a=((r=o.expires_at)!==null&&r!==void 0?r:1/0)*1e3-Date.now()<Vs;if(this._debug(n,`session has${a?"":" not"} expired with margin of ${Vs}s`),a){if(this.autoRefreshToken&&o.refresh_token){const{error:l}=await this._callRefreshToken(o.refresh_token);l&&(console.error(l),Bs(l)||(this._debug(n,"refresh failed with a non-retryable error, remov
50ing the session",l),await this._removeSession()))}}else if(o.user&&o.user.__isUserNotAvailableProxy===!0)try{const{data:l,error:c}=await this._getUser(o.access_token);!c&&l?.user?(o.user=l.user,await this._saveSession(o),await this._notifyAllSubscribers("SIGNED_IN",o)):this._debug(n,"could not get user data, skipping SIGNED_IN notification")}catch(l){console.error("Error getting user data:",l),this._debug(n,"error getting user data, skipping SIGNED_IN notification",l)}else await this._notifyAllSubscribers("SIGNED_IN",o)}catch(o){this._debug(n,"error",o),console.error(o);return}finally{this._debug(n,"end")}}async _callRefreshToken(e){var r,n;if(!e)throw new ct;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const o=`#_callRefreshToken(${e.substring(0,5)}...)`;this._debug(o,"begin");try{this.refreshingDeferred=new _s;const{data:a,error:l}=await this._refreshAccessToken(e);if(l)throw l;if(!a.session)throw new ct;await this._saveSession(a.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",a.session);const c={data:a.session,error:null};return this.refreshingDeferred.resolve(c),c}catch(a){if(this._debug(o,"error",a),J(a)){const l={data:null,error:a};return Bs(a)||await this._removeSession(),(r=this.refreshingDeferred)===null||r===void 0||r.resolve(l),l}throw(n=this.refreshingDeferred)===null||n===void 0||n.reject(a),a}finally{this.refreshingDeferred=null,this._debug(o,"end")}}async _notifyAllSubscribers(e,r,n=!0){const o=`#_notifyAllSubscribers(${e})`;this._debug(o,"begin",r,`broadcast = ${n}`);try{this.broadcastChannel&&n&&this.broadcastChannel.postMessage({event:e,session:r});const a=[],l=Array.from(this.stateChangeEmitters.values()).map(async c=>{try{await c.callback(e,r)}catch(u){a.push(u)}});if(await Promise.all(l),a.length>0){for(let c=0;c<a.length;c+=1)console.error(a[c]);throw a[0]}}finally{this._debug(o,"end")}}async _saveSession(e){this._debug("#_saveSession()",e),this.suppressGetSessionWarning=!0,await He(this.storage,`${this.storageKey}-code-verifier`);const r=Object.assign({},e),n=r.user&&r.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!n&&r.user&&await Ar(this.userStorage,this.storageKey+"-user",{user:r.user});const o=Object.assign({},r);delete o.user;const a=Xl(o);await Ar(this.storage,this.storageKey,a)}else{const o=Xl(r);await Ar(this.storage,this.storageKey,o)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await He(this.storage,this.storageKey),await He(this.storage,this.storageKey+"-code-verifier"),await He(this.storage,this.storageKey+"-user"),this.userStorage&&await He(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const e=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{e&&Be()&&window?.removeEventListener&&window.removeEventListener("visibilitychange",e)}catch(r){console.error("removing visibilitychange callback failed",r)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const e=setInterval(()=>this._autoRefreshTokenTick(),$r);this.autoRefreshTicker=e,e&&typeof e=="object"&&typeof e.unref=="function"?e.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(e);const r=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=r,r&&typeof r=="object"&&typeof r.unref=="function"?r.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(r)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const e=this.autoRefreshTicker;this.autoRefreshTicker=null,e&&clearInterval(e);const r=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,r&&clearTimeout(r)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const e=Date.now();try{return await this._useSession(async r=>{const{data:{session:n}}=r;if(!n||!n.refresh_token||!n.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const o=Math.floor((n.expires_at*1e3-e)/$r);this._debug("#_autoRefreshTokenTick()",`access token expires in ${o} ticks, a tick lasts ${$r}ms, refresh threshold is ${_i} ticks`),o<=_i&&await this._callRefreshToken(n.refresh_token)})}catch(r){console.error("Auto refresh tick failed with error. This is likely a transient error.",r)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(e){if(e.isAcquireTimeout||e instanceof Of)this._debug("auto refresh token tick lock not available");else throw e}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!Be()||!window?.addEventListener)return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(e){this._debug("#visibilityChangedCallback","error",e)}},window?.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(e){console.error("_handleVisibilityChange",e)}}async _onVisibilityChanged(e){const r=`#_onVisibilityChanged(${e})`;this._debug(r,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),e||(
50await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{if(document.visibilityState!=="visible"){this._debug(r,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(e,r,n){const o=[`provider=${encodeURIComponent(r)}`];if(n?.redirectTo&&o.push(`redirect_to=${encodeURIComponent(n.redirectTo)}`),n?.scopes&&o.push(`scopes=${encodeURIComponent(n.scopes)}`),this.flowType==="pkce"){const[a,l]=await jr(this.storage,this.storageKey),c=new URLSearchParams({code_challenge:`${encodeURIComponent(a)}`,code_challenge_method:`${encodeURIComponent(l)}`});o.push(c.toString())}if(n?.queryParams){const a=new URLSearchParams(n.queryParams);o.push(a.toString())}return n?.skipBrowserRedirect&&o.push(`skip_http_redirect=${n.skipBrowserRedirect}`),`${e}?${o.join("&")}`}async _unenroll(e){try{return await this._useSession(async r=>{var n;const{data:o,error:a}=r;return a?this._returnResult({data:null,error:a}):await oe(this.fetch,"DELETE",`${this.url}/factors/${e.factorId}`,{headers:this.headers,jwt:(n=o?.session)===null||n===void 0?void 0:n.access_token})})}catch(r){if(J(r))return this._returnResult({data:null,error:r});throw r}}async _enroll(e){try{return await this._useSession(async r=>{var n,o;const{data:a,error:l}=r;if(l)return this._returnResult({data:null,error:l});const c=Object.assign({friendly_name:e.friendlyName,factor_type:e.factorType},e.factorType==="phone"?{phone:e.phone}:e.factorType==="totp"?{issuer:e.issuer}:{}),{data:u,error:d}=await oe(this.fetch,"POST",`${this.url}/factors`,{body:c,headers:this.headers,jwt:(n=a?.session)===null||n===void 0?void 0:n.access_token});return d?this._returnResult({data:null,error:d}):(e.factorType==="totp"&&u.type==="totp"&&(!((o=u?.totp)===null||o===void 0)&&o.qr_code)&&(u.totp.qr_code=`data:image/svg+xml;utf-8,${u.totp.qr_code}`),this._returnResult({data:u,error:null}))})}catch(r){if(J(r))return this._returnResult({data:null,error:r});throw r}}async _verify(e){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async r=>{var n;const{data:o,error:a}=r;if(a)return this._returnResult({data:null,error:a});const l=Object.assign({challenge_id:e.challengeId},"webauthn"in e?{webauthn:Object.assign(Object.assign({},e.webauthn),{credential_response:e.webauthn.type==="create"?Ey(e.webauthn.credential_response):Sy(e.webauthn.credential_response)})}:{code:e.code}),{data:c,error:u}=await oe(this.fetch,"POST",`${this.url}/factors/${e.factorId}/verify`,{body:l,headers:this.headers,jwt:(n=o?.session)===null||n===void 0?void 0:n.access_token});return u?this._returnResult({data:null,error:u}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+c.expires_in},c)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",c),this._returnResult({data:c,error:u}))})}catch(r){if(J(r))return this._returnResult({data:null,error:r});throw r}})}async _challenge(e){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async r=>{var n;const{data:o,error:a}=r;if(a)return this._returnResult({data:null,error:a});const l=await oe(this.fetch,"POST",`${this.url}/factors/${e.factorId}/challenge`,{body:e,headers:this.headers,jwt:(n=o?.session)===null||n===void 0?void 0:n.access_token});if(l.error)return l;const{data:c}=l;if(c.type!=="webauthn")return{data:c,error:null};switch(c.webauthn.type){case"create":return{data:Object.assign(Object.assign({},c),{webauthn:Object.assign(Object.assign({},c.webauthn),{credential_options:Object.assign(Object.assign({},c.webauthn.credential_options),{publicKey:jy(c.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},c),{webauthn:Object.assign(Object.assign({},c.webauthn),{credential_options:Object.assign(Object.assign({},c.webauthn.credential_options),{publicKey:Cy(c.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(r){if(J(r))return this._returnResult({data:null,error:r});throw r}})}async _challengeAndVerify(e){const{data:r,error:n}=await this._challenge({factorId:e.factorId});return n?this._returnResult({data:null,error:n}):await this._verify({factorId:e.factorId,challengeId:r.id,code:e.code})}async _listFactors(){var e;const{data:{user:r},error:n}=await this.getUser();if(n)return{data:null,error:n};const o={all:[],phone:[],totp:[],webauthn:[]};for(const a of(e=r?.factors)!==null&&e!==void 0?e:[])o.all.push(a),a.status==="verified"&&o[a.factor_type].push(a);return{data:o,error:null}}async _getAuthenticatorAssuranceLevel(e){var r,n,o,a;if(e)try{const{payload:v}=In(e);let p=null;v.aal&&(p=v.aal);let w=p;const{data:{user:y},error:b}=await this.getUser(e);if(b)return this._returnResult({data:null,error:b});((n=(r=y?.factors)===null||r===void 0?void 0:r.filter(j=>j.status==="verified"))!==null&&n!==void 0?n:[]).length>0&&(w="aal2");const g=v.amr||[];return{data:{currentLevel:p,nextLevel:w,currentAuthenticationMethods:g},error:null}}catch(v){if(J(v))return this._returnResult({data:null,error:v});throw v}const{data:{session:l},error:c}
50=await this.getSession();if(c)return this._returnResult({data:null,error:c});if(!l)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:u}=In(l.access_token);let d=null;u.aal&&(d=u.aal);let f=d;((a=(o=l.user.factors)===null||o===void 0?void 0:o.filter(v=>v.status==="verified"))!==null&&a!==void 0?a:[]).length>0&&(f="aal2");const m=u.amr||[];return{data:{currentLevel:d,nextLevel:f,currentAuthenticationMethods:m},error:null}}async _getAuthorizationDetails(e){try{return await this._useSession(async r=>{const{data:{session:n},error:o}=r;return o?this._returnResult({data:null,error:o}):n?await oe(this.fetch,"GET",`${this.url}/oauth/authorizations/${e}`,{headers:this.headers,jwt:n.access_token,xform:a=>({data:a,error:null})}):this._returnResult({data:null,error:new ct})})}catch(r){if(J(r))return this._returnResult({data:null,error:r});throw r}}async _approveAuthorization(e,r){try{return await this._useSession(async n=>{const{data:{session:o},error:a}=n;if(a)return this._returnResult({data:null,error:a});if(!o)return this._returnResult({data:null,error:new ct});const l=await oe(this.fetch,"POST",`${this.url}/oauth/authorizations/${e}/consent`,{headers:this.headers,jwt:o.access_token,body:{action:"approve"},xform:c=>({data:c,error:null})});return l.data&&l.data.redirect_url&&Be()&&!r?.skipBrowserRedirect&&window.location.assign(l.data.redirect_url),l})}catch(n){if(J(n))return this._returnResult({data:null,error:n});throw n}}async _denyAuthorization(e,r){try{return await this._useSession(async n=>{const{data:{session:o},error:a}=n;if(a)return this._returnResult({data:null,error:a});if(!o)return this._returnResult({data:null,error:new ct});const l=await oe(this.fetch,"POST",`${this.url}/oauth/authorizations/${e}/consent`,{headers:this.headers,jwt:o.access_token,body:{action:"deny"},xform:c=>({data:c,error:null})});return l.data&&l.data.redirect_url&&Be()&&!r?.skipBrowserRedirect&&window.location.assign(l.data.redirect_url),l})}catch(n){if(J(n))return this._returnResult({data:null,error:n});throw n}}async _listOAuthGrants(){try{return await this._useSession(async e=>{const{data:{session:r},error:n}=e;return n?this._returnResult({data:null,error:n}):r?await oe(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:r.access_token,xform:o=>({data:o,error:null})}):this._returnResult({data:null,error:new ct})})}catch(e){if(J(e))return this._returnResult({data:null,error:e});throw e}}async _revokeOAuthGrant(e){try{return await this._useSession(async r=>{const{data:{session:n},error:o}=r;return o?this._returnResult({data:null,error:o}):n?(await oe(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,query:{client_id:e.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new ct})})}catch(r){if(J(r))return this._returnResult({data:null,error:r});throw r}}async fetchJwk(e,r={keys:[]}){let n=r.keys.find(c=>c.kid===e);if(n)return n;const o=Date.now();if(n=this.jwks.keys.find(c=>c.kid===e),n&&this.jwks_cached_at+Mb>o)return n;const{data:a,error:l}=await oe(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(l)throw l;return!a.keys||a.keys.length===0||(this.jwks=a,this.jwks_cached_at=o,n=a.keys.find(c=>c.kid===e),!n)?null:n}async getClaims(e,r={}){try{let n=e;if(!n){const{data:v,error:p}
50=await this.getSession();if(p||!v.session)return this._returnResult({data:null,error:p});n=v.session.access_token}const{header:o,payload:a,signature:l,raw:{header:c,payload:u}}=In(n);r?.allowExpired||sy(a.exp);const d=!o.alg||o.alg.startsWith("HS")||!o.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(o.kid,r?.keys?{keys:r.keys}:r?.jwks);if(!d){const{error:v}=await this.getUser(n);if(v)throw v;return{data:{claims:a,header:o,signature:l},error:null}}const f=oy(o.alg),h=await crypto.subtle.importKey("jwk",d,f,!0,["verify"]);if(!await crypto.subtle.verify(f,h,l,zb(`${c}.${u}`)))throw new Ci("Invalid JWT signature");return{data:{claims:a,header:o,signature:l},error:null}}catch(n){if(J(n))return this._returnResult({data:null,error:n});throw n}}}vn.nextInstanceID={};const My=vn,Iy="2.97.0";let rn="";typeof Deno<"u"?rn="deno":typeof document<"u"?rn="web":typeof navigator<"u"&&navigator.product==="ReactNative"?rn="react-native":rn="node";const Dy={"X-Client-Info":`supabase-js-${rn}/${Iy}`},Vy={headers:Dy},Hy={schema:"public"},By={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},Uy={};function gn(t){"@babel/helpers - typeof";return gn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gn(t)}function qy(t,e){if(gn(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(gn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Fy(t){var e=qy(t,"string");return gn(e)=="symbol"?e:e+""}function zy(t,e,r){return(e=Fy(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ic(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function Se(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ic(Object(r),!0).forEach(function(n){zy(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ic(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}const Wy=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),Zy=()=>Headers,Ky=(t,e,r)=>{const n=Wy(r),o=Zy();return async(a,l)=>{var c;const u=(c=await e())!==null&&c!==void 0?c:t;let d=new o(l?.headers);return d.has("apikey")||d.set("apikey",t),d.has("Authorization")||d.set("Authorization",`Bearer ${u}`),n(a,Se(Se({},l),{},{headers:d}))}};function Gy(t){return t.endsWith("/")?t:t+"/"}function Qy(t,e){var r,n;const{db:o,auth:a,realtime:l,global:c}=t,{db:u,auth:d,realtime:f,global:h}=e,m={db:Se(Se({},u),o),auth:Se(Se({},d),a),realtime:Se(Se({},f),l),storage:{},global:Se(Se(Se({},h),c),{},{headers:Se(Se({},(r=h?.headers)!==null&&r!==void 0?r:{}),(n=c?.headers)!==null&&n!==void 0?n:{})}),accessToken:async()=>""};return t.accessToken?m.accessToken=t.accessToken:delete m.accessToken,m}function Yy(t){const e=t?.trim();if(!e)throw new Error("supabaseUrl is required.");if(!e.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(Gy(e))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var Jy=class extends My{constructor(t){super(t)}},Xy=class{constructor(t,e,r){var n,o;this.supabaseUrl=t,this.supabaseKey=e;const a=Yy(t);if(!e)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 l=`sb-${a.hostname.split(".")[0]}-auth-token`,c={db:Hy,realtime:Uy,auth:Se(Se({},By),{},{storageKey:l}),global:Vy},u=Qy(r??{},c);if(this.storageKey=(n=u.auth.storageKey)!==null&&n!==void 0?n:"",this.headers=(o=u.global.headers)!==null&&o!==void 0?o:{},u.accessToken)this.accessToken=u.accessToken,this.auth=new Proxy({},{get:(f,h)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(h)} is not possible`)}});else{var d;this.auth=this._initSupabaseAuthClient((d=u.auth)!==null&&d!==void 0?d:{},this.headers,u.global.fetch)}this.fetch=Ky(e,this._getAccessToken.bind(this),u.global.fetch),this.realtime=this._initRealtimeClient(Se({headers:this.headers,accessToken:this._getAccessToken.bind(this)},u.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(f=>this.realtime.setAuth(f)).catch(f=>console.warn("Failed to set initial Realtime auth token:",f)),this.rest=new Dg(new URL("rest/v1",a).href,{headers:this.headers,schema:u.db.schema,fetch:this.fetch,timeout:u.db.timeout,urlLengthLimit:u.db.urlLengthLimit}),this.storage=new Ab(this.storageUrl.href,this.headers,this.fetch,r?.storage),u.accessToken||this._listenForAuthEvents()}get functions(){return new $g(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(t){return this.rest.from(t)}schema(t){return this.rest.schema(t)}rpc(t,e={},r={head:!1,get:!1,count:void 0}){return this.rest.rpc(t,e,r)}channel(t,e={config:{}}){return this.realtime.channel(t,e)}getChannels(){return this.realtime.getChannels()}removeChannel(t){return this.realtime.removeChannel(t)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var t=this,e,r;if(t.accessToken)return await t.accessToken();const{data:n}=await t.auth.getSession();return(e=(r=n.session)===null||r===void 0?void 0:r.access_token)!==null&&e!==void 0?e:t.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:t,persistSession:e,detectSessionInUrl:r,storage:n,userStorage:o,storageKey:a,flowType:l,lock:c,debug:u,throwOnError:d},f,h){const m={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new Jy({url:this.authUrl.href,headers:Se(Se({},m),f),storageKey:a,autoRefreshToken:t,persistSession:e,detectSessionInUrl:r,storage:n,userStorage:o,flowType:l,lock:c,debug:u,throwOnError:d,fetch:h,hasCustomAuthorizationHeader:Object.keys(this.headers).some(v=>v.toLowerCase()==="authorization")})}_initRealtimeClient(t){return new tb(this.realtimeUrl.href,Se(Se({},t),{},{params:Se(Se({},{apikey:this.supabaseKey}),t?.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((t,e)=>{this._handleTokenChanged(t,"CLIENT",e?.access_token)})}_handleTokenChanged(t,e,r){(t==="TOKEN_REFRESHED"||t==="SIGNED_IN")&&this.changedAccessToken!==r?(this.changedAccessToken=r,this.realtime.setAuth(r)):t==="SIGNED_OUT"&&(this.realtime.setAuth(),e=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const e5=(t,e,r)=>new Xy(t,e,r);function t5(){if(typeof window<"u")return!1;const t=globalThis.process;if(!t)return!1;const e=t.version;if(e==null)return!1;const r=e.match(/^v(\d+)\./);return r?parseInt(r[1],10)<=18:!1}t5()&&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
50ode.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");function r5(){if(typeof window>"u")return;const t=location.hostname,r=["lovableproject.com","lovableproject-dev.com","lovable.app","gpt-eng.com","gptengineer.run"].some(y=>t===y||t.endsWith("."+y)),n="[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",o=r?t.match(new RegExp("^(?:id-preview(?:-[a-z0-9]+)?|project)--("+n+")(?:-dev)?(?=\\.|$)","i"))?.[1]??t.match(new RegExp("^("+n+")(?=[.-])","i"))?.[1]:void 0,a=window.parent&&window.parent!==window;if(!o||!a)return localStorage;const l=t.endsWith(".lovableproject-dev.com")||t.endsWith(".gpt-eng.com"),c=l?/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$|^http:\/\/localhost:3000$/:/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$/,u=location.ancestorOrigins&&location.ancestorOrigins[0]||(document.referrer?new URL(document.referrer).origin:""),d=u&&c.test(u)?[u]:l?["https://lovable.dev","http://localhost:3000"]:["https://lovable.dev"],f="lovable-preview-auth:result",h=2e3,m=()=>Math.random().toString(36).slice(2)+Date.now().toString(36),v=(y,b,_)=>new Promise(g=>{const j=m();let E=!1,L;const D=R=>{E||(E=!0,clearTimeout(L),window.removeEventListener("message",C),g(R))},C=R=>{if(d.indexOf(R.origin)<0)return;const Y=R.data;Y&&Y.type===f&&Y.requestId===j&&D(Y)};window.addEventListener("message",C);const $={type:y,requestId:j,projectId:o,key:b};_!==void 0&&($.value=_);for(const R of d)window.parent.postMessage($,R);L=setTimeout(()=>D(null),h)});let p=!0;const w=250;return{getItem:async y=>{let b=await v("lovable-preview-auth:get",y);return!b&&p&&(await new Promise(_=>setTimeout(_,w)),b=await v("lovable-preview-auth:get",y)),p=!1,b&&b.ok&&typeof b.value=="string"?b.value===""?(localStorage.removeItem(y),null):b.value:localStorage.getItem(y)},setItem:(y,b)=>(localStorage.setItem(y,b),v("lovable-preview-auth:set",y,b).then(()=>{})),removeItem:y=>(localStorage.removeItem(y),v("lovable-preview-auth:remove",y).then(()=>{}))}}const el="https://unbserved.supabase.co",tl="sb_publishable_yyJFB7qqUDo_iEOl-PssCA_FpbPLyUO",k=e5(el,tl,{auth:{storage:r5(),persistSession:!0,autoRefreshToken:!0}}),RT=Object.freeze(Object.defineProperty({__proto__:null,SUPABASE_PUBLISHABLE_KEY:tl,SUPABASE_URL:el,supabase:k},Symbol.toStringTag,{value:"Module"}));class n5 extends Error{constructor(e){super(`${e}: no rows were affected â you may not have permission for this record`),this.name="NoRowsAffectedError"}}async function Ze(t,e={}){const{min:r=1,label:n="Operation"}=e,{data:o,error:a}=await t.select("id");if(a)throw a;const l=Array.isArray(o)?o:[];if(l.length<r)throw new n5(n);return l}function Tf(t,e="Batch"){const r=t.map((o,a)=>o.error?a:-1).filter(o=>o>=0);if(r.length===0)return;const n=t[r[0]].error;throw new Error(`${e}: ${r.length}/${t.length} failed â ${n.message}`)}async function xn(t,e="Batch"){const r=await Promise.all(t);return Tf(r,e),r}const s5=1,o5=1e6;let Fs=0;function a5(){return Fs=(Fs+1)%Number.MAX_SAFE_INTEGER,Fs.toString()}const zs=new Map,lc=t=>{if(zs.has(t))return;const e=setTimeout(()=>{zs.delete(t),ln({type:"REMOVE_TOAST",toastId:t})},o5);zs.set(t,e)},i5=(t,e)=>{switch(e.type){case"ADD_TOAST":return{...t,toasts:[e.toast,...t.toasts].slice(0,s5)};case"UPDATE_TOAST":return{...t,toasts:t.toasts.map(r=>r.id===e.toast.id?{...r,...e.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=e;return r?lc(r):t.toasts.forEach(n=>{lc(n.id)}),{...t,toasts:t.toasts.map(n=>
50n.id===r||r===void 0?{...n,open:!1}:n)}}case"REMOVE_TOAST":return e.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(r=>r.id!==e.toastId)}}},Qn=[];let Yn={toasts:[]};function ln(t){Yn=i5(Yn,t),Qn.forEach(e=>{e(Yn)})}function l5({...t}){const e=a5(),r=o=>ln({type:"UPDATE_TOAST",toast:{...o,id:e}}),n=()=>ln({type:"DISMISS_TOAST",toastId:e});return ln({type:"ADD_TOAST",toast:{...t,id:e,open:!0,onOpenChange:o=>{o||n()}}}),{id:e,dismiss:n,update:r}}function c5(){const[t,e]=i.useState(Yn);return i.useEffect(()=>(Qn.push(e),()=>{const r=Qn.indexOf(e);r>-1&&Qn.splice(r,1)}),[t]),{...t,toast:l5,dismiss:r=>ln({type:"DISMISS_TOAST",toastId:r})}}const ps=t=>`unbserved_subscription_cache_${t}`,u5=300*1e3,d5={MAX_SAVES_FREE:150,MAX_SHARED_FOLDERS_FREE:1};async function h5(t,e={}){if(Dp())try{const{data:{user:r}}=await k.auth.getUser();await k.from("analytics_events").insert({event_type:t,metadata:e,user_id:r?.id??void 0})}catch{}}const f5=t=>{try{const e=localStorage.getItem(ps(t));if(!e)return null;const r=JSON.parse(e);if(Date.now()-r.cachedAt<u5)return r;localStorage.removeItem(ps(t))}catch{}return null},m5=(t,e)=>{try{localStorage.setItem(ps(t),JSON.stringify({...e,cachedAt:Date.now()}))}catch{}},p5=t=>{try{localStorage.removeItem(ps(t))}catch{}},cc=()=>{try{Object.keys(localStorage).forEach(e=>{e.startsWith("unbserved_subscription_cache_")&&localStorage.removeItem(e)})}catch{}};function ks(){const{user:t,session:e}=ke(),{toast:r}=c5();ae();const{data:n,isLoading:o,refetch:a,isError:l}=he({queryKey:["subscription",t?.id],queryFn:async()=>{const{data:b}=await k.auth.getSession(),_=b?.session?.access_token;if(_&&b.session?.user.id!==t?.id)throw new Error("Account changed while checking subscription");if(!_)return{subscribed:!1,is_pro:!1,subscription_end:null};const{data:g,error:j}=await k.functions.invoke("check-subscription",{headers:{Authorization:`Bearer ${_}`}}),E=j?.message||"",L=g?.details||"";if(E.includes("session_not_found")||L.includes("session_not_found")||E.includes("Invalid JWT")||E.includes("401"))return console.warn("[useSubscription] Session invalid detected, dispatching event"),window.dispatchEvent(new CustomEvent("auth:session_invalid",{detail:{userId:t?.id}})),{subscribed:!1,is_pro:!1,subscription_end:null};if(j)throw console.warn("[useSubscription] API error:",j.message),j;const D=g;return D.is_pro?m5(t.id,D):D.source&&p5(t.id),D},enabled:!!t?.id&&!!e?.access_token,staleTime:10*6e4,refetchInterval:15*6e4,refetchIntervalInBackground:!1,refetchOnWindowFocus:!1,retry:2,retryDelay:b=>Math.min(1e3*2**b,1e4),throwOnError:!1}),c=t?.id?f5(t.id):null,u=n?.is_pro??(l&&c?.is_pro)??!1,d=n?.subscribed??(l&&c?.subscribed)??!1,f=!!n?.source&&!o&&!l,h=z({mutationFn:async b=>{if(!e?.access_token)throw new Error("Not authenticated. Please log in first.");const{data:_,error:g}=await k.functions.invoke("create-checkout",{headers:{Authorization:`Bearer ${e.access_token}`},body:{interval:b}});if(g)throw console.error("[Checkout] Error:",g),new Error(g.message||"Checkout failed");if(_?.error)throw console.error("[Checkout] Data error:",_.error),new Error(_.error);if(!_?.url)throw new Error("No checkout URL returned");return _},onSuccess:b=>{b.url&&(h5("checkout_session_created"),window.location.href=b.url)},onError:b=>{console.error("[Checkout] Mutation error:",b),r({title:"Error",description:b.message||"Could not start checkout",variant:"destructive"})}}),m=z({mutationFn:async()=>{if(!e?.access_token)throw new Error("Not authenticated");const{data:b,error:_}=await k.functions.invoke("customer-portal",{headers:{Authorization:`Bearer ${e.access_token}`}});if(_)throw console.error("[Portal] Error:",_),new Error(_.message||"Portal request failed");if(b?.error)throw console.error("[Portal] Data error:",b.error),new Error(b.error);if(b?.manual)return r({title:"Manual Pro account",description:b.message||"Your Pro access is managed manually. Contact support to make changes."}),{url:null,manual:!0};if(!b?.url)throw new Error("No portal URL returned");return b},onSuccess:b=>{b.url&&(window.location.href=b.url)},onError:b=>{console.error("[Portal] Mutation error:",b),r({title:"Error",description:b.message||"Could not open billing portal",variant:"destructive"})}}),v=n?.is_trial??!1,p=n?.trial_end??null,w=n?.trial_eligible??!1,y=(()=>
50{if(!v||!p)return 0;const b=new Date(p),_=new Date,g=Math.ceil((b.getTime()-_.getTime())/(1e3*60*60*24));return Math.max(0,g)})();return{isPro:u,isSubscribed:d,isTrial:v,trialEnd:p,trialDaysRemaining:y,isTrialEligible:w,subscriptionEnd:n?.subscription_end??c?.subscription_end??null,proExpiresAt:n?.pro_expires_at??c?.pro_expires_at??null,subscription:n,isLoading:o,hasConfirmedStatus:f,startCheckout:b=>h.mutateAsync(b||"month"),isCheckingOut:h.isPending,openPortal:m.mutateAsync,isOpeningPortal:m.isPending,refetchSubscription:a}}const rl="unbserved_pending_avatar",v5=1440*60*1e3;function NT(t,e){return new Promise(r=>{const n=new FileReader;n.onload=()=>{try{const o={email:e.trim().toLowerCase(),savedAt:Date.now(),dataUrl:String(n.result||"")};localStorage.setItem(rl,JSON.stringify(o))}catch{}r()},n.onerror=()=>r(),n.readAsDataURL(t)})}function cn(){try{localStorage.removeItem(rl)}catch{}}function g5(){let t=null;try{t=localStorage.getItem(rl)}catch{return null}if(!t)return null;if(t.startsWith("data:"))return cn(),null;try{const e=JSON.parse(t);return!e?.email||!e?.dataUrl?.startsWith("data:image/")?(cn(),null):e}catch{return cn(),null}}async function b5(t,e){const r=g5();if(!r)return;if(Date.now()-r.savedAt>v5){cn();return}const n=(e??"").trim().toLowerCase();if(!(!n||n!==r.email))try{const o=await(await fetch(r.dataUrl)).blob(),a=`${t}/avatar.jpg`,{error:l}=await k.storage.from("avatars").upload(a,o,{upsert:!0,contentType:o.type||"image/jpeg"});if(l){console.warn("[pendingAvatar] upload failed:",l.message);return}const{data:c}=k.storage.from("avatars").getPublicUrl(a);await k.from("app_users").update({avatar_url:`${c.publicUrl}?t=${Date.now()}`}).eq("id",t),cn()}catch(o){console.warn("[pendingAvatar] flush error:",o)}}function Pf(t,e="/dashboard"){if(!t?.startsWith("/")||t.startsWith("//")||/[\\\u0000-\u0020]/.test(t))return e;try{const r=new URL(t,"https://unbserved.com");return r.origin==="https://unbserved.com"?`${r.pathname}${r.search}${r.hash}`:e}catch{return e}}function nl(t,e){return`/auth/${t}?redirect=${encodeURIComponent(Pf(e))}`}const Rf=i.createContext(void 0),Nf=i.forwardRef(function({children:e},r){const[n,o]=i.useState(null),[a,l]=i.useState(null),[c,u]=i.useState(!0),d=ae(),f=i.useRef(null),h=i.useRef(0),m=i.useCallback(E=>{f.current?.user.id!==E?.user.id&&(d.clear(),f.current&&cc()),f.current=E,l(E),o(E?.user??null),u(!1)},[d]),v=i.useCallback(()=>{try{localStorage.removeItem("unbserved_auth_user"),localStorage.removeItem("unbserved_has_visited")}catch{}cc()},[]),p=i.useCallback(async()=>{h.current+=1,v(),m(null);try{await k.auth.signOut({scope:"local"})}finally{window.location.href="/auth/login"}},[m,v]);i.useEffect(()=>{let E=!0;const L=h.current,{data:{subscription:D}}=k.auth.onAuthStateChange(($,R)=>{if(E){if($==="INITIAL_SESSION"){if(h.current!==L)return}else h.current+=1;if($==="TOKEN_REFRESHED"&&!R){p();return}if(m(R),$==="SIGNED_IN"&&R?.user.id){const Y=R.user.id,ve=R.user.email??null;setTimeout(()=>{E&&f.current?.user.id===Y&&b5(Y,ve)},0)}}}),C=()=>E&&h.current===L;return(async()=>{try{const{data:{session:$}}=await k.auth.getSession();if(!C())return;if(!$){m(null);return}const{error:R}=await k.auth.getUser();if(!C())return;const Y=R?.status;if(R&&(Y===401||Y===403||/session_not_found|invalid jwt|jwt expired|not authenticated|user not found
50/i.test(R.message))){p();return}m($)}catch{C()&&u(!1)}})(),()=>{E=!1,D.unsubscribe()}},[m,p]),i.useEffect(()=>{const E=L=>{const D=L.detail?.userId;D&&f.current?.user.id!==D||p()};return window.addEventListener("auth:session_invalid",E),()=>window.removeEventListener("auth:session_invalid",E)},[p]);const w=i.useCallback(async(E,L,D,C="/dashboard")=>{const $=`${window.location.origin}${nl("login",C)}`,{data:R,error:Y}=await k.auth.signUp({email:E,password:L,options:{emailRedirectTo:$,data:D||{}}});return{error:Y,data:R?{user:R.user}:void 0}},[]),y=i.useCallback(async(E,L)=>{const{error:D}=await k.auth.signInWithPassword({email:E,password:L});return{error:D}},[]),b=i.useCallback(async()=>{const{data:E,error:L}=await k.auth.signInWithOAuth({provider:"google",options:{redirectTo:`${window.location.origin}/auth/callback`,skipBrowserRedirect:!0,queryParams:{prompt:"select_account"}}});return L?{error:L}:(E?.url&&(window.location.href=E.url),{error:null})},[]),_=i.useCallback(async()=>{const{data:E,error:L}=await k.auth.signInWithOAuth({provider:"apple",options:{redirectTo:`${window.location.origin}/auth/callback`,skipBrowserRedirect:!0}});return L?{error:L}:(E?.url&&(window.location.href=E.url),{error:null})},[]),g=i.useCallback(async()=>{h.current+=1,v(),m(null);try{const{error:E}=await k.auth.signOut();E&&await k.auth.signOut({scope:"local"})}catch{await k.auth.signOut({scope:"local"}).catch(()=>{})}},[m,v]),j=i.useMemo(()=>({user:n,session:a,isLoading:c,signUp:w,signIn:y,signInWithGoogle:b,signInWithApple:_,signOut:g}),[n,a,c,w,y,b,_,g]);return s.jsx(Rf.Provider,{value:j,children:e})});Nf.displayName="AuthProvider";function ke(){const t=i.useContext(Rf);if(t===void 0)throw new Error("useAuth must be used within an AuthProvider");return t}const y5="UNBSERVED";function Dn(t,e){return`${y5} // ${t}: ${e}`}function w5(t){const e=(t||"").toLowerCase();return e.includes("maximum call stack")?{code:"TEMP",msg:"Something glitched for a moment. Please try again."}:e.includes("failed to fetch")||e.includes("networkerror")||e.includes("load failed")||e.includes("network request failed")?{code:"NET",msg:"You appear to be offline. Check your connection and try again."}:e.includes("unexpected token")||e.includes("json.parse")?{code:"TEMP",msg:"Unexpected response from the server. Please try again shortly."}:e.includes("aborted")||e.includes("timeout")?{code:"TIMEOUT",msg:"The request took too long. Please try again."}:e.startsWith("rangeerror")||e.startsWith("typeerror: cannot read")||e.includes("undefined is not an object")?{code:"TEMP",msg:"Something went wrong. Please try again."}:{code:"ERR",msg:t}}const I={success:(t,e="SYS_OK",r)=>qr.success(Dn(e,t),r),error:(t,e,r)=>{const n=(t??"").toString().slice(0,500),o=w5(n);return qr.error(Dn(e??o.code,o.msg),r)},info:(t,e="SYS_INFO",r)=>qr.info(Dn(e,t),r),warning:(t,e="WARN",r)=>qr.warning(Dn(e,t),r),raw:qr},x5=Object.freeze(Object.defineProperty({__proto__:null,toast:I},Symbol.toStringTag,{value:"Module"}));function Jn(t){if(!t)return!1;const r=(typeof t=="string"?t:t?.message??String(t)).toLowerCase();return r.includes("navigatorlockacquiretimeouterror")||r.includes("lockmanager")&&r.includes("lock")||r.includes("acquiring an exclusive navigator")}function uc(t){if(!t)return!1;const r=(typeof t=="string"?t:t?.message??String(t)).toLowerCase();return r.includes("load failed")||r.includes("failed to fetch")||r.includes("networkerror")||r.includes("fetch")}const _5=t=>new Promise(e=>setTimeout(e,t));async function k5(t,e=400){try{return await t()}catch(r){if(!Jn(r))throw r;return await _5(e),await t()}}function sl(){const{user:t}=ke();return he({queryKey:["is-admin",t?.id],queryFn:async()=>{if(!t?.id)return!1;try{const{data:e,error:r}=await k5(()=>k.from("user_roles").select("role").eq("user_id",t.id).eq("role","admin").maybeSingle());if(r)throw Jn(r)||uc(r)?console.warn("Role check: transient error, will retry"):console.error("Direct role check error:",r),r;return!!e}catch(e){throw Jn(e)?(console.warn("Role check: auth lock contention, will retry"),e):(console.error("Admin check failed:",e),e)}},enabled:!!t?.id,staleTime:300*1e3,refetchOnMount:!0,retry:(e,r)=>e<2&&(Jn(r)||uc(r))})}function j5(){const t=sl();return{isAdmin:t.data??!1,isLoading:t.isLoading}}function MT(){return he({queryKey:["admin-stats"],queryFn:async()=>{const{data:t,error:e}=await k.rpc("get_admin_dashboard_stats").maybeSingle();if(e)throw e;return t},staleTime:6e4})}const C5={all:()=>!0,active:t=>!!t.is_active,premium:t=>!!t.is_premium,suspended:t=>t.admin_status==="suspended",verified:t=>!!t.is_verified,admin:(t,e)=>e};function IT(t={}){const{search:e="",filter:r="all",page:n=0,pageSize:o=50}=t;return he({queryKey:["admin-users",{search:e,filter:r,page:n,pageSize:o}],staleTime:6e4,placeholderData:a=>a,queryFn:async()=>{const{data:a,error:l}=await k.from("user_roles").select("user_id").eq("role","admin");if(l)throw l;const c=new Set(a?.map(p=>
50p.user_id)||[]),u=k.rpc.bind(k);let d=null;try{d=await u("admin_list_app_users_page",{p_search:e||void 0,p_filter:r,p_limit:o,p_offset:n*o})}catch(p){console.warn("[admin] admin_list_app_users_page falhou:",p?.message)}if(d&&!d.error&&d.data?.[0]){const p=d.data[0];return{users:(p.users??[]).map(y=>({...y,isAdmin:c.has(y.id)})),total:Number(p.total??0),totals:{all:Number(p.total_all??0),active:Number(p.total_active??0),premium:Number(p.total_premium??0),verified:Number(p.total_verified??0),admins:Number(p.total_admins??0)},serverPaged:!0}}d?.error&&d.error.code!=="PGRST202"&&console.warn("[admin] via paginada indisponÃvel, lendo a lista completa:",d.error.message);const{data:f,error:h}=await k.rpc("admin_list_app_users",{_user_ids:null});if(h)throw h;const m=e.trim().toLowerCase(),v=(f??[]).map(p=>({...p,isAdmin:c.has(p.id)})).filter(p=>C5[r](p,p.isAdmin)).filter(p=>!m||[p.email,p.username,p.display_name].some(w=>(w??"").toLowerCase().includes(m)));return{users:v.slice(n*o,(n+1)*o),total:v.length,totals:{all:(f??[]).length,active:(f??[]).filter(p=>p.is_active).length,premium:(f??[]).filter(p=>p.is_premium).length,verified:(f??[]).filter(p=>p.is_verified).length,admins:c.size},serverPaged:!1}}})}async function jt(t){const{error:e}=await k.from("admin_user_actions").insert([t]);e&&console.warn("[useAdmin] audit log failed:",e.message)}function DT(){const{user:t}=ke(),e=ae(),r=z({mutationFn:async({userId:h,action:m,adminNotes:v})=>{if(!t?.id)throw new Error("Not authenticated");const p={admin_reviewed_by:t.id,admin_reviewed_at:new Date().toISOString(),admin_notes:v};switch(m){case"approve":p.admin_status="approved",p.is_active=!0;break;case"suspend":p.admin_status="suspended",p.is_active=!1;break;case"ban":p.admin_status="banned",p.is_active=!1;break;case"activate":p.admin_status="active",p.is_active=!0;break;case"verify":p.is_verified=!0;break}await Ze(k.from("app_users").update(p).eq("id",h),{label:`User ${m}`}),await jt({admin_user_id:t.id,target_user_id:h,action:m,admin_notes:v,new_status:p.admin_status})},onSuccess:()=>{e.invalidateQueries({queryKey:["admin-users"]}),e.invalidateQueries({queryKey:["admin-stats"]})},onError:h=>{I.error(h.message)}}),n=z({mutationFn:async h=>{if(!t?.id)throw new Error("Not authenticated");const{data:m}=await k.from("app_users").select("is_premium, is_founding_member").eq("id",h).maybeSingle();await Ze(k.from("app_users").update({is_premium:!0,is_founding_member:!0,upgraded_at:new Date().toISOString()}).eq("id",h),{label:"Upgrade to Pro"}),await jt({admin_user_id:t.id,target_user_id:h,action:"upgrade_to_pro",previous_status:m?.is_premium?"pro":"free",new_status:"pro_founding_member"})},onSuccess:()=>{e.invalidateQueries({queryKey:["admin-users"]}),e.invalidateQueries({queryKey:["admin-stats"]})},onError:h=>{I.error(`Failed to upgrade: ${h.message}`)}}),o=z({mutationFn:async h=>{if(!t?.id)throw new Error("Not authenticated");const{data:m}=await k.from("app_users").select("is_premium, is_founding_member").eq("id",h).maybeSingle();await Ze(k.from("app_users").update({is_premium:!1,is_founding_member:!1}).eq("id",h),{label:"Downgrade from Pro"}),await jt({admin_user_id:t.id,target_user_id:h,action:"downgrade_from_pro",previous_status:m?.is_founding_member?"pro_founding_member":"pro",new_status:"free"})},onSuccess:()=>{e.invalidateQueries({queryKey:["admin-users"]})},onError:h=>{I.error(`Failed to downgrade: ${h.message}`)}}),a=z({mutationFn:async h=>{if(!t?.id)throw new Error("Not authenticated");const{data:m,error:v}=await k.rpc("admin_delete_user_complete",{target_user_id:h,admin_user_id:t.id});if(v)throw v;return m},onSuccess:()=>{e.invalidateQueries({queryKey:["admin-users"]}),e.invalidateQueries({queryKey:["admin-stats"]})},onError:h=>{I.error(h.message)}}),l=z({mutationFn:async({userId:h,expiresAt:m})=>
50{if(!t?.id)throw new Error("Not authenticated");const v={is_premium:!0,upgraded_at:new Date().toISOString()};if(m==="3months"){const p=new Date;p.setMonth(p.getMonth()+3),v.pro_expires_at=p.toISOString()}else v.pro_expires_at=null;await Ze(k.from("app_users").update(v).eq("id",h),{label:"Grant Pro"}),await jt({admin_user_id:t.id,target_user_id:h,action:"grant_pro",new_status:m==="3months"?"pro_beta_3m":"pro_permanent"})},onSuccess:()=>{e.invalidateQueries({queryKey:["admin-users"]}),e.invalidateQueries({queryKey:["admin-stats"]})},onError:h=>{I.error(h.message)}}),c=z({mutationFn:async h=>{if(!t?.id)throw new Error("Not authenticated");await Ze(k.from("app_users").update({is_premium:!1,pro_expires_at:null}).eq("id",h),{label:"Revoke Pro"}),await jt({admin_user_id:t.id,target_user_id:h,action:"revoke_pro",new_status:"free"})},onSuccess:()=>{e.invalidateQueries({queryKey:["admin-users"]})},onError:h=>{I.error(h.message)}}),u=z({mutationFn:async h=>{if(!t?.id)throw new Error("Not authenticated");await Ze(k.from("app_users").update({is_founding_member:!0}).eq("id",h),{label:"Grant Founding Member"}),await jt({admin_user_id:t.id,target_user_id:h,action:"grant_founding_member",new_status:"founding_member"})},onSuccess:()=>{e.invalidateQueries({queryKey:["admin-users"]})},onError:h=>{I.error(h.message)}}),d=z({mutationFn:async h=>{if(!t?.id)throw new Error("Not authenticated");await Ze(k.from("app_users").update({is_founding_member:!1}).eq("id",h),{label:"Revoke Founding Member"}),await jt({admin_user_id:t.id,target_user_id:h,action:"revoke_founding_member",new_status:"regular"})},onSuccess:()=>{e.invalidateQueries({queryKey:["admin-users"]})},onError:h=>{I.error(h.message)}}),f=z({mutationFn:async h=>{if(!t?.id)throw new Error("Not authenticated");await Ze(k.from("app_users").update({is_verified:!1}).eq("id",h),{label:"Unverify user"}),await jt({admin_user_id:t.id,target_user_id:h,action:"unverify",new_status:"unverified"})},onSuccess:()=>{e.invalidateQueries({queryKey:["admin-users"]})},onError:h=>{I.error(h.message)}});return{updateUserStatus:r,upgradeToPro:n,downgradePro:o,deleteUserComplete:a,grantPro:l,revokePro:c,grantFoundingMember:u,revokeFoundingMember:d,unverifyUser:f}}function VT(){const{user:t}=ke(),e=ae(),r=z({mutationFn:async o=>{if(!t?.id)throw new Error("Not authenticated");const{error:a}=await k.from("user_roles").insert([{user_id:o,role:"admin"}]);if(a&&a.code!=="23505")throw a;await jt({admin_user_id:t.id,target_user_id:o,action:"promote_to_admin",new_status:"admin"})},onSuccess:()=>{e.invalidateQueries({queryKey:["admin-users"]}),e.invalidateQueries({queryKey:["is-admin"]})},onError:o=>{I.error(o.message)}}),n=z({mutationFn:async o=>{if(!t?.id)throw new Error("Not authenticated");if(o===t.id){const{count:a,error:l}=await k.from("user_roles").select("id",{count:"exact",head:!0}).eq("role","admin");if(l)throw new Error("Could not verify admin count");if((a??0)<=1)throw new Error("Cannot remove the last admin. Promote another user first.")}await Ze(k.from("user_roles").delete().eq("user_id",o).eq("role","admin"),{label:"Remove admin role"}),await jt({admin_user_id:t.id,target_user_id:o,action:"demote_from_admin",previous_status:"admin",new_status:"user"})},onSuccess:()=>{e.invalidateQueries({queryKey:["admin-users"]}),e.invalidateQueries({queryKey:["is-admin"]})},onError:o=>{I.error(o.message)}});return{promoteToAdmin:r,demoteFromAdmin:n}}function HT(){return he({queryKey:["pro-upgrade-requests"],staleTime:6e4,queryFn:async()=>{const{data:t,error:e}=await k.from("pro_upgrade_requests").select("*").order("created_at",{ascending:!1}).limit(100);if(e)throw e;return t}})}function BT(){const{user:t}=ke(),e=ae();return z({mutationFn:async({requestId:r,action:n,adminNotes:o})=>{if(!t?.id)throw new Error("Not authenticated");const{data:a,error:l}=await k.from("pro_upgrade_requests").select("user_id").eq("id",r).maybeSingle();if(l)throw l;if(!a)throw new Error("Request not found");if(n==="approve"){if(!a.user_id)throw new Error("Request has no user");await Ze(k.from("app_users").update({is_premium:!0,upgraded_at:new Date().toISOString()}
50).eq("id",a.user_id),{label:"Grant Pro"})}await Ze(k.from("pro_upgrade_requests").update({status:n==="approve"?"approved":"rejected",admin_notes:o,processed_by:t.id,processed_at:new Date().toISOString()}).eq("id",r),{label:"Update request"})},onSuccess:()=>{e.invalidateQueries({queryKey:["pro-upgrade-requests"]}),e.invalidateQueries({queryKey:["admin-users"]}),e.invalidateQueries({queryKey:["admin-stats"]})},onError:r=>{I.error(`Failed to process request: ${r.message}`)}})}function UT(){return he({queryKey:["credit-requests"],staleTime:6e4,queryFn:async()=>{const{data:t,error:e}=await k.from("credit_requests").select("*").order("created_at",{ascending:!1}).limit(100);if(e)throw e;return t}})}function qT(){const{user:t}=ke(),e=ae();return z({mutationFn:async({requestId:r,action:n,adminNotes:o})=>{if(!t?.id)throw new Error("Not authenticated");const{error:a}=await k.from("credit_requests").update({status:n==="approve"?"approved":"rejected",admin_notes:o,processed_by:t.id,processed_at:new Date().toISOString()}).eq("id",r);if(a)throw a},onSuccess:()=>{e.invalidateQueries({queryKey:["credit-requests"]})},onError:r=>{I.error(r.message)}})}function FT(){return he({queryKey:["featured-highlights"],staleTime:5*6e4,queryFn:async()=>{const{data:t,error:e}=await k.from("featured_highlights").select("*").eq("is_active",!0).order("order_position",{ascending:!0});if(e)throw e;return t}})}function zT(){const t=ae(),e=z({mutationFn:async n=>{const{error:o}=await k.from("featured_highlights").insert([{...n,is_active:!0}]);if(o)throw o},onSuccess:()=>{t.invalidateQueries({queryKey:["featured-highlights"]})},onError:n=>{I.error(n.message)}}),r=z({mutationFn:async n=>{const{error:o}=await k.from("featured_highlights").update({is_active:!1}).eq("id",n);if(o)throw o},onSuccess:()=>{t.invalidateQueries({queryKey:["featured-highlights"]})},onError:n=>{I.error(n.message)}});return{addHighlight:e,removeHighlight:r}}function WT(t=50){return he({queryKey:["recent-uploads",t],staleTime:6e4,queryFn:async()=>{const{data:e,error:r}=await k.from("clip_vectors").select("id, title, image_url, source_url, author_name, platform, created_at, user_id, processing_status, approved").order("created_at",{ascending:!1}).limit(t);if(r)throw r;return e}})}function ZT(){return he({queryKey:["admin-categories"],staleTime:5*6e4,queryFn:async()=>{const{data:t,error:e}=await k.from("categories").select("*").order("name",{ascending:!0});if(e)throw e;return t}})}function KT(){const t=ae(),e=z({mutationFn:async({name:n,slug:o,description:a,color:l})=>{const{error:c}=await k.from("categories").insert([{name:n,slug:o,description:a,color:l}]);if(c)throw c},onSuccess:()=>{t.invalidateQueries({queryKey:["admin-categories"]})},onError:n=>{I.error(n.message)}}),r=z({mutationFn:async n=>{const{error:o}=await k.from("categories").delete().eq("id",n);if(o)throw o},onSuccess:()=>{t.invalidateQueries({queryKey:["admin-categories"]})},onError:n=>{I.error(n.message)}});return{createCategory:e,deleteCategory:r}}function GT(){return he({queryKey:["tags"],staleTime:5*6e4,queryFn:async()=>{const{data:t,error:e}=await k.from("tags").select("*").order("name",{ascending:!0});if(e)throw e;return t}})}function QT(){const t=ae(),e=z({mutationFn:async({name:n,slug:o})=>{const{error:a}=await k.from("tags").insert([{name:n,slug:o}]);if(a)throw a},onSuccess:()=>{t.invalidateQueries({queryKey:["tags"]})},onError:n=>{I.error(n.message)}}),r=z({mutationFn:async n=>{const{error:o}=await k.from("tags").delete().eq("id",n);if(o)throw o},onSuccess:()=>{t.invalidateQueries({queryKey:["tags"]})},onError:n=>{I.error(n.message)}});return{createTag:e,deleteTag:r}}function YT(){return he({queryKey:["admin-announcements"],staleTime:6e4,queryFn:async()=>{const[{data:t,error:e},{data:r,error:n}]=await Promise.all([k.from("admin_announcements").select("*").order("created_at",{ascending:!1}).limit(100),k.rpc("admin_announcement_read_stats")]);if(e)throw e;n&&console.error("Error fetching read stats:",n);const o=new Map((r||[]).map(a=>[a.announcement_id,a]));return(t||[]).map(a=>{const l=o.get(a.id);return{...a,total_notifications_sent:l?Number(l.delivered):a.total_notifications_sent,total_notifications_read:l?Number(l.read_count):a.total_notifications_read}})}})}function JT(){const t=ae();return z({mutationFn:async({id:e,title:r,message:n,action_url:o})=>{const{data:a,error:l}
50=await k.rpc("admin_update_announcement",{p_id:e,p_title:r,p_message:n,p_action_url:o??null});if(l)throw l;return a},onSuccess:()=>{t.invalidateQueries({queryKey:["admin-announcements"]}),t.invalidateQueries({queryKey:["notifications"]})},onError:e=>{I.error(e.message)}})}function XT(){const t=ae();return z({mutationFn:async e=>{const{data:r,error:n}=await k.rpc("admin_delete_announcement",{p_id:e});if(n)throw n;return r},onSuccess:()=>{t.invalidateQueries({queryKey:["admin-announcements"]}),t.invalidateQueries({queryKey:["notifications"]})},onError:e=>{I.error(e.message)}})}function eP(){const{user:t}=ke(),e=ae();return z({mutationFn:async r=>{if(!t?.id)throw new Error("Not authenticated");const{data:n,error:o}=await k.rpc("admin_send_announcement",{p_title:r.title,p_message:r.message,p_type:r.type??"info",p_priority:r.priority??"normal",p_target_audience:r.target_audience??"all",p_action_url:r.action_url??void 0,p_metadata:r.metadata?JSON.parse(JSON.stringify(r.metadata)):void 0});if(o)throw o;const a=n;if(!a?.success)throw new Error("Announcement fan-out failed");return a},onSuccess:()=>{e.invalidateQueries({queryKey:["admin-announcements"]})},onError:r=>{I.error(r.message)}})}const Mf=i.createContext(void 0),If=i.forwardRef(function({children:e},r){const[n,o]=i.useState(()=>{if(typeof window<"u")try{return localStorage.getItem("theme")==="dark"?"dark":"light"}catch{return"light"}return"light"});i.useEffect(()=>{document.documentElement.classList.add("no-transition"),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.documentElement.classList.remove("no-transition")})})},[]),i.useEffect(()=>{const f=document.documentElement.classList.contains("dark");n==="dark"&&!f?document.documentElement.classList.add("dark"):n==="light"&&f&&document.documentElement.classList.remove("dark"),document.querySelectorAll('meta[name="theme-color"]').forEach(h=>{h.removeAttribute("media"),h.setAttribute("content",n==="dark"?"#151514":"#e8e8e3")})},[n]);const a=i.useCallback(async(f,h)=>{if(h)try{const{error:m}=await k.from("app_users").update({theme_preference:f}).eq("id",h);if(m)throw m}catch(m){console.warn("[ThemeContext] Failed to sync theme to database:",m)}},[]),l=i.useCallback((f,h)=>{o(f);try{localStorage.setItem("theme",f)}catch{}f==="dark"?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),h&&a(f,h)},[a]),c=i.useCallback(f=>{l(n==="light"?"dark":"light",f)},[n,l]),u=i.useCallback(()=>{o("light");try{localStorage.setItem("theme","light")}catch{}document.documentElement.classList.remove("dark")},[]),d=i.useMemo(()=>({theme:n,setTheme:l,toggleTheme:c,resetToLight:u}),[n,l,c,u]);return s.jsx(Mf.Provider,{value:d,children:e})});If.displayName="ThemeProvider";function js(){const t=i.useContext(Mf);if(t===void 0)throw new Error("useTheme must be used within a ThemeProvider");return t}const Df="unbserved-system",Vf="unbserved-hero-system";function E5(){try{return(localStorage.getItem(Df)??localStorage.getItem(Vf))==="classic"?"classic":"modern"}catch{return"modern"}}const Hf=i.createContext(void 0);function S5({children:t}){const[e,r]=i.useState(E5),n=i.useCallback(a=>{try{localStorage.setItem(Df,a),localStorage.removeItem(Vf)}catch{}r(a)},[]),o=i.useMemo(()=>({system:e,setSystem:n}),[e,n]);return s.jsx(Hf.Provider,{value:o,children:t})}function L5(){const{system:t}=_n(),{pathname:e}=Me(),r=e.startsWith("/admin")?"modern":t;return i.useEffect(()=>{document.documentElement.dataset.system=r},[r]),null}function _n(){const t=i.useContext(Hf);if(!t)throw new Error("useSystem must be used inside SystemProvider");return t}const O5={VITE_RADIO_METADATA_URL:"https://api.radioparadise.com/api/now_playing?chan=0",VITE_RADIO_STREAM_URL:"https://stream.radioparadise.com/mp3-128"},Bf=O5,$5=Bf.VITE_RADIO_STREAM_URL?.trim()??"",A5=Bf.VITE_RADIO_METADATA_URL?.trim()??"",vs=[{id:"unbserved",number:"01",name:"UNBSERVED RADIO",streamUrl:$5,metadataUrl:A5||void 0,analyser:!0,source:"config"}].filter(t=>t.streamUrl),T5=2e4,Cs={position:"unbserved-radio-position",settings:"unbserved-radio-settings"},P5="128 KBPS 44.1 KHZ",R5=["https://all.api.radio-browser.info","https://de1.api.radio-browser.info","https://de2.api.radio-browser.info"],N5=["electronic","jazz","ambient","rock","classical","hip hop","indie","soul","lofi","latin","reggae","world","house","blues","experimental","news"],dc=12,hc="unbserved-radio-directory",M5=new Set(["MP3","AAC","AAC+","OGG"]);function I5(t,e){const r=t.url_resolved?.trim(),n=t.codec?.toUpperCase()??"";if(!r?.startsWith("https://")||n&&!M5.has(n)||t.lastcheckok===0)return null;const o=t.name.replace(/\s+/g," ").trim();return o?{id:`rb:${t.stationuuid}`,number:"",name:o.toUpperCase(),streamUrl:r,analyser:!0,source:"directory",genre:e.toUpperCase(),country:t.countrycode?.toUpperCase()||void 0,codec:n||void 0,bitrate:t.bitrate||void 0,homepage:t.homepage||void 0}:null}async function D5(t,e){let r;for(const n of R5)try{const o=await fetch(`${n}${t}`,{signal:e});if(!o.ok)throw new Error(String(o.status));return await o.json()}catch(o){if(o?.name==="AbortError")throw o;r=o}throw r}function V5(t){const e=new Set,r=[],n=Math.max(0,...t.map(o=>o.length));for(let o=0;o<n;o++)for(const a of t){const l=a[o];l&&!e.has(l.streamUrl)&&(e.add(l.streamUrl),r.push(l))}return r}function fc(t){const e=[...t];for(let r=e.length-1;r>0;r--){const n=Math.floor(Math.random()*(r+1));[e[r],e[n]]=[e[n],e[r]]}return e}async function H5(t){try{const a=JSON.parse(sessionStorage.getItem(hc)??"null");if(Array.isArray(a)&&a.length)return a}catch{}const e=fc(N5),n=(await Promise.allSettled(e.map(a=>D5(`/json/stations/bytag/${encodeURIComponent(a)}?hidebroken=true&is_https=true&order=clickcount&reverse=true&limit=${dc*2}`,t).then(l=>fc(l.map(c=>I5(c,a)).filter(c=>c!==null)).slice(0,dc))))).flatMap(a=>a.status==="fulfilled"?[a.value]:[]),o=V5(n).map((a,l)=>({...a,number:String(l%98+2).padStart(2,"0")}));if(!o.length)throw new Error("No stations");try{sessionStorage.setItem(hc,JSON.stringify(o))}catch{}return o}const B5=t=>!!(t&&typeof t=="object"&&typeof t.streamUrl=="string"&&t.streamUrl.startsWith("https://")),Uf=.1,mc="unbserved-radio-session",Vn={volume:Uf,muted:!1,minimized:!0,closed:!1,keepClassic:!1,station:vs[0]??null};function U5(){try{const t=sessionStorage.getItem(mc)==="1";return sessionStorage.setItem(mc,"1"),t}catch{return!1}}function q5(){const t=U5();try{const e=localStorage.getItem(Cs.settings);if(!e)return Vn;const r=JSON.parse(e),n=B5(r.station)?r.station.source==="config"?vs.find(o=>o.id===r.station.id)??null:r.station:null;return{volume:t&&typeof r.volume=="number"?Math.min(1,Math.max(0,r.volume)):Uf,muted:!!r.muted,minimized:r.minimized??Vn.minimized,closed:!!r.closed,keepClassic:!!r.keepClassic,station:n??Vn.station}}catch{return Vn}}const F5={id:"none",number:"--",name:"UNBSERVED RADIO",streamUrl:""},qf=i.createContext(void 0),Ei="unbserved-radio-resume",Hn=t=>{try{t?sessionStorage.setItem(Ei,"1"):sessionStorage.removeItem(Ei)}catch{}},z5=15e3,W5=4,Z5=12e3;function K5({children:t}){const[e,r]=i.useState(q5),[n,o]=i.useState("off"),[a,l]=i.useState(null),[c,u]=i.useState(!1),d=i.useRef(null),f=i.useRef(null),h=i.useRef(null),m=i.useRef(null),v=i.useRef(new Set),p=i.useRef(null),w=i.useRef("stop"),y=i.useRef(e);y.current=e;const b=i.useRef(null),_=i.useRef(0),g=i.useRef([]),j=i.useRef(null),E=i.useRef(()=>{}),L=i.useRef(!1),D=e.station??F5,C=i.useRef(D);C.current=D,i.useEffect(()=>{try{localStorage.setItem(Cs.settings,JSON.stringify(e))}catch{}},[e]),i.useEffect(()=>{const M=d.current;M&&(M.volume=e.volume,M.muted=e.muted)},[e.volume,e.muted]);const $=()=>{j.current!==null&&window.clearTimeout(j.current),j.current=null},R=M=>!!M.analyser&&!v.current.has(M.streamUrl),Y=M=>{if(!(m.current===M||M.crossOrigin!=="anonymous"))try{const H=window.AudioContext||window.webkitAudioContext;if(!H)return;const X=f.current??new H;f.current=X;const _e=X.createMediaElementSource(M),Ce=X.createAnalyser();Ce.fftSize=64,Ce.smoothingTimeConstant=.72,_e.connect(Ce),Ce.connect(X.destination),h.current=Ce,m.current=M,X.resume().catch(()=>{})}catch{h.current=null}},ve=()=>{if($(),C.current.source==="directory"&&_.current<W5){_.current+=1,E.current(!0);return}w.current="stop",L.current=!1,Hn(!1),o("error"),l("signal")},be=M=>{M&&(M.pause(),M.removeAttribute("src"),M.load())};function Pe(M){const H=new Audio;return H.preload="none",R(M)&&(H.crossOrigin="anonymous"),H.volume=y.current.volume,H.muted=y.current.muted,H.addEventListener("playing",()=>{d.current===H&&(L.current=!1,Hn(!0),$(),_.current=0,o("playing"),l(null),Y(H))}),H.addEventListener("waiting",()=>{d.current===H&&w.current==="play"&&o("loading")}),H.addEventListener("pause",()=>{d.current!==H||w.current!=="pause"||o("paused")}),H.addEventListener("error",()=>{if(d.current!==H||w.current==="stop")return;const X=C.current;if(H.crossOrigin==="anonymous"){v.current.add(X.streamUrl),ie(X);return}ve()}),H}function te(M){w.current="play",o("loading"),l(null),$(),j.current=window.setTimeout(()=>{d.current===M&&w.current==="play"&&M.readyState<3&&ve()},Z5),f.current?.resume().catch(()=>{}),M.play().catch(H=>{if(d.current===M&&H?.name==="NotAllowedError"&&($(),w.current="pause",o("paused"),L.current)){const X=()=>{window.removeEventListener("pointerdown",X,!0),window.removeEventListener("keydown",X,!0),w.current==="pause"&&L.current&&te(M)};window.addEventListener("pointerdown",X,!0),window.addEventListener("keydown",X,!0)}})}function ie(M){const H=d.current,X=!H||R(M)!==(H.crossOrigin==="anonymous")||m.current===H&&!R(M);let _e=H;(X||!_e)&&(be(H),_e=Pe(M),d.current=_e),_e.src=M.streamUrl,te(_e)}const ue=async(M=!1)=>
50{if(M||(_.current=0),!b.current){u(!0),o("loading"),l(null);try{b.current=await H5()}catch{b.current=null}finally{u(!1)}}const H=[...vs,...b.current??[]];if(!H.length){w.current="stop",o("error"),l("directory");return}const X=H.findIndex(Ce=>Ce.streamUrl===C.current.streamUrl),_e=H[(X+1)%H.length];!M&&C.current.streamUrl&&(g.current=[...g.current.filter(Ce=>Ce.streamUrl!==C.current.streamUrl),C.current].slice(-20)),C.current=_e,r(Ce=>({...Ce,station:_e})),ie(_e)};E.current=M=>{ue(M)};const W=()=>{_.current=0;let M=g.current.pop();if(!M){const H=[...vs,...b.current??[]];if(!H.length)return;const X=H.findIndex(_e=>_e.streamUrl===C.current.streamUrl);M=H[(X-1+H.length)%H.length]}C.current=M,r(H=>({...H,station:M})),ie(M)},B=i.useRef(W);B.current=W;const le=i.useCallback(()=>{y.current.muted&&r(_e=>({..._e,muted:!1}));const M=C.current;if(!M.streamUrl){E.current();return}_.current=0;const H=d.current,X=p.current!==null&&Date.now()-p.current>z5;p.current=null,H&&H.getAttribute("src")===M.streamUrl&&!X&&!H.error?te(H):ie(M)},[]),ce=i.useCallback(()=>{const M=d.current;M&&($(),L.current=!1,Hn(!1),w.current="pause",p.current=Date.now(),M.pause(),o("paused"))},[]),Je=i.useCallback(()=>{L.current=!1,Hn(!1),$(),w.current="stop",p.current=null,be(d.current),o("off"),l(null)},[]);i.useEffect(()=>{let M=!1;try{M=sessionStorage.getItem(Ei)==="1"}catch{}!M||!C.current.streamUrl||(L.current=!0,ie(C.current))},[]),i.useEffect(()=>()=>{$(),be(d.current),f.current?.close().catch(()=>{})},[]);const U=i.useCallback(()=>d.current?.currentTime??0,[]),fe=i.useCallback(()=>m.current===d.current?h.current:null,[]),ne=i.useMemo(()=>({status:n,errorReason:a,scanning:c,channel:D,volume:e.volume,muted:e.muted,minimized:e.minimized,closed:e.closed,keepClassic:e.keepClassic,setKeepClassic:M=>r(H=>({...H,keepClassic:M})),getElapsed:U,getAnalyser:fe,play:le,pause:ce,stop:Je,togglePlay:()=>n==="playing"||n==="loading"?ce():le(),next:()=>E.current(),previous:()=>B.current(),setVolume:M=>r(H=>({...H,volume:Math.min(1,Math.max(0,M)),muted:M>0?!1:H.muted})),toggleMute:()=>r(M=>({...M,muted:!M.muted})),setMinimized:M=>r(H=>({...H,minimized:M})),open:()=>r(M=>({...M,closed:!1,minimized:!1})),close:()=>r(M=>({...M,closed:!0})),toggleOpen:()=>r(M=>({...M,closed:!M.closed}))}),[n,a,c,D,e.volume,e.muted,e.minimized,e.closed,e.keepClassic,U,fe,le,ce,Je]);return s.jsx(qf.Provider,{value:ne,children:t})}function cr(){const t=i.useContext(qf);if(!t)throw new Error("useRadio must be used inside RadioProvider");return t}const ze=t=>typeof t=="string"&&t.trim()?t.trim():void 0;function G5(t){if(!t)return{};const[e,...r]=t.split(" - ");return r.length?{artist:e.trim(),title:r.join(" - ").trim()}:{title:t}}function Q5(t){if(!t||typeof t!="object")return null;const e=Array.isArray(t)?t[0]:t;if(e?.now_playing?.song){const n=e.now_playing.song;return{artist:ze(n.artist),title:ze(n.title)??ze(n.text),cover:ze(n.art),show:e.live?.is_live?ze(e.live.streamer_name):ze(e.now_playing.playlist),channel:ze(e.station?.name)}}if(e?.icestats){const n=Array.isArray(e.icestats.source)?e.icestats.source[0]:e.icestats.source;if(!n)return null;const o=G5(ze(n.title));return{artist:ze(n.artist)??o.artist,title:o.title,show:ze(n.server_name),channel:ze(n.server_description)}}const r={artist:ze(e.artist),title:ze(e.title),show:ze(e.show),cover:ze(e.cover),channel:ze(e.channel)};return r.artist||r.title||r.show?r:null}function Y5(t,e){const[r,n]=i.useState(null);return i.useEffect(()=>{if(n(null),!e||!t.metadataUrl)return;let o=!1;const a=new AbortController,l=async()=>{try{const u=await fetch(t.metadataUrl,{signal:a.signal,cache:"no-store"});if(!u.ok)throw new Error(String(u.status));const d=Q5(await u.json());o||n(d)}catch{o||n(null)}};l();const c=window.setInterval(l,T5);return()=>{o=!0,a.abort(),window.clearInterval(c)}},[t.metadataUrl,e]),r}const Ws=140,J5=6;function X5(){try{const t=JSON.parse(localStorage.getItem(Cs.position)??"null");return t&&Number.isFinite(t.x)&&Number.isFinite(t.y)?t:null}catch{return null}}function pc(t,e,r){const n=document.documentElement.clientWidth-Math.min(e,Ws),o=document.documentElement.clientHeight-Math.min(r,Ws);return{x:Math.round(Math.min(n,Math.max(Math.min(e,Ws)-e,t.x))),y:Math.round(Math.min(o,Math.max(0,t.y)))}}function e4(t,e,r){return{x:Math.round(Math.min(Math.max(8,document.documentElement.clientWidth-e-8),Math.max(8,t.x))),y:Math.round(Math.min(Math.max(8,document.documentElement.clientHeight-r-8),Math.max(8,t.y)))}}function t4(t,e,r=""){const[n,o]=i.useState(X5),[a,l]=i.useState(!1),c=i.useRef(null),u=p=>{try{localStorage.setItem(Cs.position,JSON.stringify(p))}catch{}},d=()=>{const p=t.current?.getBoundingClientRect();return{width:p?.width??320,height:p?.height??200}};i.useEffect(()=>{if(!e)return;const p=()=>{const{width:w,height:y}=d();o(b=>e4(b??{x:document.documentElement.clientWidth-w-24,y:document.documentElement.clientHeight-y-88},w,y))};return p(),window.addEventListener("resize",p),()=>window.removeEventListener("resize",p)},[e,r]);const f=i.useCallback(p=>{if(!e||p.pointerType==="mouse"&&p.button!==0||p.target.closest('[role="slider"], input'))return;const w=t.current?.getBoundingClientRect();w&&(c.current={id:p.pointerId,dx:p.clientX-w.left,dy:p.clientY-w.top,x:p.clientX,y:p.clientY,started:!1},p.target.closest("button, a")||(c.current.started=!0,p.currentTarget.setPointerCapture(p.pointerId),l(!0),p.preventDefault()))},[e,t]),h=i.useCallback(p=>{const w=c.current;if(!w||w.id!==p.pointerId)return;if(!w.started){if(Math.hypot(p.clientX-w.x,p.clientY-w.y)<J5)return;w.started=!0,p.currentTarget.setPointerCapture(p.pointerId),l(!0)}const{width:y,height:b}=d();o(pc({x:p.clientX-w.dx,y:p.clientY-w.dy},y,b))},[]),m=i.useCallback(p=>{const w=c.current;if(!w||w.id!==p.pointerId||(c.current=null,!w.started))return;l(!1);const y=b=>{b.stopPropagation(),b.preventDefault()};window.addEventListener("click",y,{capture:!0,once:!0}),window.setTimeout(()=>window.removeEventListener("click",y,!0),0),o(b=>(b&&u(b),b))},[]),v=i.useCallback(p=>
50{const w=p.shiftKey?40:10,y={ArrowLeft:[-w,0],ArrowRight:[w,0],ArrowUp:[0,-w],ArrowDown:[0,w]}[p.key];if(!y||!e)return;p.preventDefault();const{width:b,height:_}=d();o(g=>{const j=pc({x:(g?.x??24)+y[0],y:(g?.y??24)+y[1]},b,_);return u(j),j})},[e]);return{position:n,dragging:a,handleProps:{onPointerDown:f,onPointerMove:h,onPointerUp:m,onPointerCancel:m,onKeyDown:v}}}function r4(t){return[t.genre,t.country].filter(Boolean).join(" · ")||"LIVE BROADCAST"}function Zs(t,e){return e.country&&!t.includes(e.country)?`${t} · ${e.country}`:t}function n4(t){return!t.bitrate&&!t.codec?t.source==="directory"?"STREAM":P5:[t.bitrate?`${t.bitrate} KBPS`:null,t.codec].filter(Boolean).join(" ")}function s4(t,e,r,n,o=!1){const a=n4(r);if(o)return{primary:"SCANNING...",secondary:"SEARCHING STATIONS",format:a,state:"SCANNING"};switch(t){case"loading":return{primary:"TUNING...",secondary:Zs(r.name,r),format:a,state:"TUNING"};case"playing":return n?.title||n?.artist?{primary:[n.artist,n.title].filter(Boolean).join(" â ").toUpperCase(),secondary:Zs((n.show??r.name).toUpperCase(),r),format:a,state:"LIVE"}:{primary:r.name,secondary:r4(r),format:a,state:"LIVE"};case"paused":return{primary:r.name,secondary:Zs("PAUSED",r),format:a,state:"PAUSED"};
50case"error":return e==="directory"?{primary:"NO STATIONS",secondary:"CHECK CONNECTION",format:a,state:"NO SIGNAL"}:e==="no-stream"?{primary:"NO SIGNAL",secondary:"STREAM NOT SET",format:a,state:"NO SIGNAL"}:{primary:"SIGNAL LOST",secondary:"PRESS NEXT TO RETUNE",format:a,state:"NO SIGNAL"};default:return{primary:r.name,secondary:r.streamUrl?"OFF":"PRESS PLAY TO SCAN",format:a,state:"OFF"}}}function o4(t,e){const[r,n]=i.useState(0);i.useEffect(()=>{if(e==="off"||e==="error"){n(0);return}if(n(t()),e!=="playing")return;const l=window.setInterval(()=>n(t()),500);return()=>window.clearInterval(l)},[e,t]);const o=Math.floor(r),a=Math.floor(o/60)%100;return e==="off"||e==="error"?"--:--":`${String(a).padStart(2,"0")}:${String(o%60).padStart(2,"0")}`}function Ff({bars:t=12,width:e,height:r,color:n,ghost:o,segmented:a=!0,className:l}){const c=i.useRef(null),{status:u,getAnalyser:d}=cr(),f=u==="playing";return i.useEffect(()=>{const h=c.current,m=h?.getContext("2d");if(!h||!m)return;const v=Math.min(2,window.devicePixelRatio||1);h.width=e*v,h.height=r*v,m.setTransform(v,0,0,v,0,0);const p=window.matchMedia("(prefers-reduced-motion: reduce)").matches,w=1,y=(e-w*(t-1))/t,b=2,_=new Float32Array(t);let g=null,j=0;const E=L=>{const D=f?d():null;if(D){(!g||g.length!==D.frequencyBinCount)&&(g=new Uint8Array(D.frequencyBinCount)),D.getByteFrequencyData(g);const C=Math.max(1,g.length-4);for(let $=0;$<t;$++){const R=1+Math.floor($/t*C);_[$]=Math.max(_[$]*.78,g[R]/255)}}else if(f&&!p){const C=L/1e3;for(let $=0;$<t;$++){const R=.32+.22*Math.sin(C*2.1+$*.9)+.14*Math.sin(C*3.7+$*2.3);_[$]=Math.max(_[$]*.85,R*(1-$/(t*1.6)))}}else for(let C=0;C<t;C++)_[C]*=.8;m.clearRect(0,0,e,r);for(let C=0;C<t;C++){const $=C*(y+w);if(a){const R=Math.floor(r/(b+1)),Y=Math.round(_[C]*R);for(let ve=0;ve<R;ve++){const be=r-(ve+1)*(b+1)+1;m.fillStyle=ve<Y?n:o??"transparent",m.fillRect($,be,y,b)}}else{const R=Math.max(1,_[C]*r);m.fillStyle=n,m.fillRect($,r-R,y,R)}}(f||_.some(C=>C>.01))&&(j=requestAnimationFrame(E))};return j=requestAnimationFrame(E),()=>cancelAnimationFrame(j)},[t,e,r,n,o,a,f,d]),s.jsx("canvas",{ref:c,className:l,style:{width:e,height:r},"aria-hidden":"true"})}const Bn=270,zr=-135;function a4({value:t,muted:e,onChange:r,size:n=64}){const o=i.useRef(null),a=i.useRef(null),l=Math.round(t*100),c=zr+t*Bn,u=f=>{const h=o.current?.getBoundingClientRect();if(!h||!a.current)return;const m=h.left+h.width/2,v=h.top+h.height/2,p=f.clientX-m,w=f.clientY-v;if(Math.hypot(p,w)>h.width*.28){let y=Math.atan2(p,-w)*180/Math.PI;y=Math.max(zr,Math.min(zr+Bn,y)),r((y-zr)/Bn)}else{const y=a.current.value+(a.current.lastY-f.clientY)/150;a.current={...a.current,lastY:f.clientY,value:Math.max(0,Math.min(1,y))},r(a.current.value)}},d=f=>{const h={ArrowUp:.05,ArrowRight:.05,ArrowDown:-.05,ArrowLeft:-.05,PageUp:.25,PageDown:-.25};if(f.key==="Home")r(0);else if(f.key==="End")r(1);else if(f.key in h)r(Math.max(0,Math.min(1,Math.round((t+h[f.key])*20)/20)));else return;f.preventDefault()};return s.jsxs("div",{ref:o,className:"ubr-dial",role:"slider",tabIndex:0,"aria-label":"Volume","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":l,"aria-valuetext":e?`${l}%, muted`:`${l}%`,title:"Volume â drag around the knob or use the arrow keys","data-muted":e||void 0,style:{width:n,height:n},onPointerDown:f=>{f.button===0&&(f.currentTarget.setPointerCapture(f.pointerId),a.current={id:f.pointerId,lastY:f.clientY,value:t},f.preventDefault())},onPointerMove:f=>{a.current?.id===f.pointerId&&u(f)},onPointerUp:()=>{a.current=null},onPointerCancel:()=>{a.current=null},onKeyDown:d,children:[s.jsx("svg",{className:"ubr-dial__scale",viewBox:"0 0 100 100","aria-hidden":"true",children:Array.from({length:21},(f,h)=>{const m=(zr+h/20*Bn)*Math.PI/180,v=h%5===0,p=v?41:43;return s.jsx("line",{x1:50+Math.sin(m)*p,y1:50-Math.cos(m)*p,x2:50+Math.sin(m)*47,y2:50-Math.cos(m)*47,className:h/20<=t?"is-lit":void 0,strokeWidth:v?1.6:.9},h)})}),s.jsx("div",{className:"ubr-dial__knob",style:{transform:`rotate(${c}deg)`},children:s.jsx("span",{className:"ubr-dial__pointer"})}),s.jsx("span",{className:"ubr-dial__readout","aria-hidden":"true",children:e?"MUTE":String(l).padStart(3,"0")})]})}const Ct={play:s.jsx("svg",{viewBox:"0 0 12 12","aria-hidden":"true",children:s.jsx("path",{d:"M3 1.5v9l7.5-4.5z"})}),pause:s.jsx("svg",{viewBox:"0 0 12 12","aria-hidden":"true",children:s.jsx("path",{d:"M2.5 1.5h2.6v9H2.5zM6.9 1.5h2.6v9H6.9z"})}),stop:s.jsx("svg",{viewBox:"0 0 12 12","aria-hidden":"true",children:s.jsx("path",{d:"M2 2h8v8H2z"})}),next:s.jsx("svg",{viewBox:"0 0 12 12","aria-hidden":"true",children:s.jsx("path",{d:"M1.5 2v8l5-4zM6.5 2v8l4-4zM10.2 2h1.3v8h-1.3z"})}),prev:s.jsx("svg",{viewBox:"0 0 12 12","aria-hidden":"true",children:s.jsx("path",{d:"M10.5 2v8l-5-4zM5.5 2v8l-4-4zM1.8 2H.5v8h1.3z"})}),mute:t=>s.jsxs("svg",{viewBox:"0 0 12 12","aria-hidden":"true",children:[s.jsx("path",{d:"M1.5 4.2h2.2L6.8 1.6v8.8L3.7 7.8H1.5z"}),t?s.jsx("path",{d:"M8 4.2l3 3.6M11 4.2l-3 3.6",fill:"none",stroke:"currentColor",strokeWidth:"1.3"}):s.jsx("path",{d:"M8.3 3.6c.9.7.9 4.1 0 4.8M9.9 2.4c1.7 1.4 1.7 5.8 0 7.2",fill:"none",stroke:"currentColor",strokeWidth:"1"})]})};function Lr({label:t,caption:e,onClick:r,pressed:n,children:o,lit:a,lamp:l="green"}){return s.jsxs("div",{className:"ubr-key-slot",children:[s.jsxs("button",{type:"button",className:"ubr-key","aria-label":t,title:t,"aria-pressed":n,onClick:r,children:[s.jsx("span",{className:"ubr-key__face",children:o}),a!==void 0&&s.jsx("span",{className:"ubr-key__lamp","data-lit":
50a||void 0,"data-color":l,"aria-hidden":"true"})]}),s.jsx("span",{className:"ubr-print","aria-hidden":"true",children:e})]})}function Wr({x:t,y:e,r=3.2,turn:n=30}){return s.jsxs("g",{transform:`translate(${t} ${e}) rotate(${n})`,children:[s.jsx("circle",{r:r+.9,fill:"#1b1d20",opacity:".55"}),s.jsx("circle",{r,fill:"url(#ubr-screw)",stroke:"#202327",strokeWidth:".6"}),s.jsx("path",{d:`M${-r*.7} 0H${r*.7}`,stroke:"#23262a",strokeWidth:"1.1"}),s.jsx("path",{d:`M${-r*.7} .7H${r*.7}`,stroke:"#e9ecef",strokeWidth:".4",opacity:".6"})]})}function i4(){return s.jsxs("svg",{className:"ubr__chassis",viewBox:"0 0 356 214","aria-hidden":"true",children:[s.jsxs("defs",{children:[s.jsxs("linearGradient",{id:"ubr-metal",x1:"0",y1:"0",x2:"0",y2:"1",children:[s.jsx("stop",{offset:"0",stopColor:"#dfe2e5"}),s.jsx("stop",{offset:".06",stopColor:"#b9bec3"}),s.jsx("stop",{offset:".42",stopColor:"#8b9097"}),s.jsx("stop",{offset:".43",stopColor:"#7d838a"}),s.jsx("stop",{offset:".78",stopColor:"#5d636a"}),s.jsx("stop",{offset:"1",stopColor:"#43484e"})]}),s.jsxs("linearGradient",{id:"ubr-brushed",x1:"0",y1:"0",x2:"1",y2:"0",children:[s.jsx("stop",{offset:"0",stopColor:"#fff",stopOpacity:"0"}),s.jsx("stop",{offset:".3",stopColor:"#fff",stopOpacity:".16"}),s.jsx("stop",{offset:".31",stopColor:"#fff",stopOpacity:"0"}),s.jsx("stop",{offset:".62",stopColor:"#fff",stopOpacity:".08"}),s.jsx("stop",{offset:".63",stopColor:"#fff",stopOpacity:"0"})]}),s.jsxs("radialGradient",{id:"ubr-pod",cx:".32",cy:".26",r:".85",children:[s.jsx("stop",{offset:"0",stopColor:"#aeb3b9"}),s.jsx("stop",{offset:".45",stopColor:"#62676e"}),s.jsx("stop",{offset:"1",stopColor:"#2a2d31"})]}),s.jsxs("linearGradient",{id:"ubr-graphite",x1:"0",y1:"0",x2:"0",y2:"1",children:[s.jsx("stop",{offset:"0",stopColor:"#474b51"}),s.jsx("stop",{offset:".5",stopColor:"#2b2e33"}),s.jsx("stop",{offset:"1",stopColor:"#1a1c1f"})]}),s.jsxs("linearGradient",{id:"ubr-smoke",x1:"0",y1:"0",x2:"1",y2:"1",children:[s.jsx("stop",{offset:"0",stopColor:"#9fb0b8",stopOpacity:".38"}),s.jsx("stop",{offset:".48",stopColor:"#58656c",stopOpacity:".22"}),s.jsx("stop",{offset:".49",stopColor:"#dfe8ec",stopOpacity:".3"}),s.jsx("stop",{offset:".53",stopColor:"#58656c",stopOpacity:".18"}),s.jsx("stop",{offset:"1",stopColor:"#1f2529",stopOpacity:".42"})]}),s.jsxs("radialGradient",{id:"ubr-screw",cx:".35",cy:".3",r:".8",children:[s.jsx("stop",{offset:"0",stopColor:"#f2f4f6"}),s.jsx("stop",{offset:".55",stopColor:"#9aa0a6"}),s.jsx("stop",{offset:"1",stopColor:"#4c5157"})]}),s.jsxs("pattern",{id:"ubr-grille",width:"3",height:"3",patternUnits:"userSpaceOnUse",children:[s.jsx("rect",{width:"3",height:"3",fill:"#2a2d31"}),s.jsx("circle",{cx:"1.5",cy:"1.5",r:".8",fill:"#0e0f11"})]})]}),s.jsx("circle",{cx:"300",cy:"126",r:"54",fill:"#141517",opacity:".35",transform:"translate(2 3)"}),s.jsx("circle",{cx:"300",cy:"126",r:"54",fill:"url(#ubr-pod)",stroke:"#16181b",strokeWidth:"1.5"}),s.jsx("circle",{cx:"300",cy:"126",r:"51.5",fill:"none",stroke:"#e8ebee",strokeOpacity:".35",strokeWidth:"1",strokeDasharray:"120 400",transform:"rotate(200 300 126)"}),s.jsx("circle",{cx:"300",cy:"126",r:"44",fill:"#1d1f23",stroke:"#0d0e10",strokeWidth:"1"}),s.jsx("path",{d:"M252 20 H336 Q344 20 344 28 V46 H258 L252 40 Z",fill:"url(#ubr-graphite)",stroke:"#121315",strokeWidth:"1.2"}),s.jsx("path",{d:"M254 21.5 H336",stroke:"#8b9097",strokeOpacity:".6"}),s.jsx("path",{d:"M6 190 L6 40 Q6 32 14 32 L236 32 L250 44 L262 44 L262 196 L250 208 L24 208 Z",fill:"#131416",opacity:".4",transform:"translate(2 3)"}),s.jsx("path",{d:"M6 190 L6 40 Q6 32 14 32 L236 32 L250 44 L262 44 L262 196 L250 208 L24 208 Z",fill:"url(#ubr-metal)",stroke:"#15171a",strokeWidth:"1.5"}),s.jsx("path",{d:"M6 190 L6 40 Q6 32 14 32 L236 32 L250 44 L262 44 L262 196 L250 208 L24 208 Z",fill:"url(#ubr-brushed)"}),s.jsx("path",{d:"M7.6 188 V40 Q7.6 33.6 14 33.6 H235.4 L249.4 45.6 H260.4",fill:"none",stroke:"#f4f6f8",strokeOpacity:".75",strokeWidth:"1"}),s.jsx("path",{d:"M260.5 46 V195.4 L249.4 206.5 H24.6 L7.8 189.6",fill:"none",stroke:"#1d2024",strokeOpacity:".55",strokeWidth:"1"}),s.jsx("path",{d:"M6 134 H262",stroke:"#2a2e33",strokeWidth:"1"}),s.jsx("path",{d:"M6 135 H262",stroke:"#e3e6e9",strokeOpacity:".5",strokeWidth:".8"}),s.jsx("path",{d:"M16 32 V12 Q16 4 24 4 H178 L200 26 V32 Z",fill:"url(#ubr-graphite)",stroke:"#111214",strokeWidth:"1.4"}),s.jsx("path",{d:"M18 30 V12 Q18 6 24 6 H177 L197 26",fill:"none",stroke:"#9aa0a6",strokeOpacity:".45"}),s.jsx("path",{d:"M22 10 H176 L192 26 H22 Z",fill:"url(#ubr-smoke)"}),Array.from({length:9},(t,e)=>s.jsx("path",{d:`M${28+e*4} 12 V24`,stroke:e%2?"#0f1012":"#6d737a",strokeWidth:"1.2"},e)),s.jsx("rect",{x:"182",y:"176",width:"68",height:"22",rx:"2",fill:"url(#ubr-grille)",stroke:"#16181b",strokeWidth:".8"}),s.jsx("rect",{x:"18",y:"186",width:"92",height:"12",rx:"1.5",fill:"#1c2024",stroke:"#0e0f11",strokeWidth:".8"}),s.jsx("rect",{x:"18.8",y:"186.8",width:"90.4",height:"4.5",fill:"#dfe8ec",o
50pacity:".12"}),s.jsx(Wr,{x:16,y:44,turn:20}),s.jsx(Wr,{x:250,y:196,turn:75}),s.jsx(Wr,{x:16,y:198,turn:-40}),s.jsx(Wr,{x:300,y:82,r:2.6,turn:10}),s.jsx(Wr,{x:300,y:170,r:2.6,turn:55}),s.jsxs("g",{className:"ubr-svg-print",children:[s.jsx("text",{x:"68",y:"21.5",children:"UNBSERVED® AUDIO SYSTEM"}),s.jsx("text",{x:"258",y:"41",children:"POWER"}),s.jsx("text",{x:"270",y:"211",className:"is-dim",children:"MODEL UBR-99 · 1999"}),s.jsx("text",{x:"214",y:"171",textAnchor:"middle",children:"STEREO"})]})]})}const l4=i.forwardRef(function({readout:e,clock:r,style:n,dragging:o,handleProps:a},l){const c=cr(),{system:u}=_n(),{status:d,muted:f}=c,h=d==="playing"||d==="loading"||d==="paused";return s.jsxs("section",{ref:l,className:"ubr","data-status":d,"data-dragging":o||void 0,style:n,"aria-label":"Unbserved Radio",children:[s.jsx(i4,{}),s.jsx("div",{className:"ubr__handle",tabIndex:0,role:"group","aria-label":"Move radio: drag, or use arrow keys",title:"Drag to move",...a}),s.jsxs("div",{className:"ubr__ear",children:[s.jsx("span",{className:"ubr-led ubr-led--power","data-on":h||void 0,"aria-hidden":"true"}),u==="modern"&&s.jsx("button",{type:"button",className:"ubr-micro","aria-label":"Use the modern radio",title:"Modern radio",onClick:()=>c.setKeepClassic(!1),children:s.jsx("svg",{viewBox:"0 0 8 8","aria-hidden":"true",children:s.jsx("circle",{cx:"4",cy:"4",r:"2.6"})})}),s.jsx("button",{type:"button",className:"ubr-micro","aria-label":"Minimize radio",title:"Minimize",onClick:()=>c.setMinimized(!0),children:s.jsx("svg",{viewBox:"0 0 8 8","aria-hidden":"true",children:s.jsx("path",{d:"M1 6h6"})})}),s.jsx("button",{type:"button",className:"ubr-micro","aria-label":"Close radio",title:"Close (reopen from RADIO in the menu)",onClick:c.close,children:s.jsx("svg",{viewBox:"0 0 8 8","aria-hidden":"true",children:s.jsx("path",{d:"M1.5 1.5l5 5M6.5 1.5l-5 5"})})})]}),s.jsx("div",{className:"ubr__lcd",children:s.jsxs("div",{className:"ubr-lcd","data-on":h||void 0,role:"status","aria-live":"polite","aria-label":`${e.primary}, ${e.secondary}`,children:[s.jsxs("div",{className:"ubr-lcd__row ubr-lcd__row--top",children:[s.jsxs("span",{children:["CH ",c.channel.number]}),s.jsx("span",{className:"ubr-lcd__flag","data-active":d==="playing"||void 0,children:"LIVE"}),s.jsx("span",{className:"ubr-lcd__flag","data-active":h||void 0,children:"ST"}),s.jsx("span",{className:"ubr-lcd__flag","data-active":f||void 0,children:"MUTE"})]}),s.jsx("div",{className:"ubr-lcd__title",children:s.jsx("span",{children:e.primary},e.primary)}),s.jsxs("div",{className:"ubr-lcd__row ubr-lcd__row--mid",children:[s.jsx("span",{className:"ubr-lcd__clock","data-ghost":"88:88",children:r}),s.jsx(Ff,{className:"ubr-lcd__spectrum",bars:14,width:78,height:24,color:"#17231a",ghost:"rgba(23,35,26,.1)"})]}),s.jsxs("div",{className:"ubr-lcd__row ubr-lcd__row--bottom",children:[s.jsx("span",{children:e.secondary}),s.jsx("span",{children:d==="playing"?e.format:""})]}),s.jsx("span",{className:"ubr-lcd__glass","aria-hidden":"true"})]})}),s.jsxs("div",{className:"ubr__keys",children:[s.jsx(Lr,{label:"Play",caption:"PLAY",onClick:c.play,pressed:d==="playing"||d==="loading",lit:d==="playing",children:Ct.play}),s.jsx(Lr,{label:"Pause",caption:"PAUSE",onClick:c.pause,pressed:d==="paused",children:Ct.pause}),s.jsx(Lr,{label:"Stop",caption:"STOP",onClick:c.stop,children:Ct.stop}),s.jsx(Lr,{label:"Previous station",caption:"PREV",onClick:c.previous,children:Ct.prev}),s.jsx(Lr,{label:"Next station",caption:"NEXT",onClick:c.next,children:Ct.next}),s.jsx(Lr,{label:f?"Unmute":"Mute",caption:"MUTE",onClick:c.toggleMute,pressed:f,lit:f,lamp:"red",children:Ct.mute(f)})]}),s.jsxs("div",{className:"ubr__leds","aria-hidden":"true",children:[s.jsx("span",{className:"ubr-led","data-on":d==="playing"||void 0,"data-color":"green"}),s.jsx("span",{className:"ubr-print",children:"SIGNAL"}),s.jsx("span",{className:"ubr-led","data-on":d==="loading"||void 0,"data-color":"amber","data-blink":d==="loading"||void 0}),s.jsx("span",{className:"ubr-print",children:"BUFFER"}),s.jsx("span",{className:"ubr-led","data-on":d==="error"||void 0,"data-color":"red"}),s.jsx("span",{className:"ubr-print",children:"ERR"})]}),s.jsxs("div",{className:"ubr__dial",children:[s.jsx(a4,{value:c.volume,muted:f,onChange:c.setVolume,size:76}),s.jsx("span",{className:"ubr-print ubr__dial-label","aria-hidden":"true",children:"VOL"})]})]})}),c4=i.forwardRef(function({readout:e,style:r,dragging:n,handleProps:o},a){const l=cr(),c=l.status==="playing"||l.status==="loading";return s.jsxs("section",{ref:a,className:"ubr-mini","data-status":l.status,"data-dragging":n||void 0,style:r,"aria-label":"Unbserved Radio (minimized)",...o,tabIndex:-1,
50children:[s.jsx("span",{className:"ubr-mini__lens","data-on":l.status==="playing"||void 0,"data-blink":l.status==="loading"||void 0,"aria-hidden":"true"}),s.jsxs("button",{type:"button",className:"ubr-mini__screen",onClick:()=>l.setMinimized(!1),"aria-label":"Restore radio",title:"Restore",children:[s.jsx("span",{className:"ubr-mini__model",children:"UBR 99"}),s.jsx("span",{className:"ubr-mini__state",children:l.muted?"MUTED":e.state})]}),s.jsx("button",{type:"button",className:"ubr-key ubr-key--mini","aria-label":c?"Pause":"Play",title:c?"Pause":"Play",onClick:l.togglePlay,children:s.jsx("span",{className:"ubr-key__face",children:c?Ct.pause:Ct.play})}),s.jsx("button",{type:"button",className:"ubr-key ubr-key--mini","aria-label":"Previous station",title:"Previous station",onClick:l.previous,children:s.jsx("span",{className:"ubr-key__face",children:Ct.prev})}),s.jsx("button",{type:"button",className:"ubr-key ubr-key--mini","aria-label":"Next station",title:"Next station",onClick:l.next,children:s.jsx("span",{className:"ubr-key__face",children:Ct.next})})]})}),zf=()=>s.jsx("svg",{viewBox:"0 0 16 16","aria-hidden":"true",children:s.jsx("path",{d:"M5 3.2v9.6L12.6 8z"})}),Wf=()=>s.jsx("svg",{viewBox:"0 0 16 16","aria-hidden":"true",children:s.jsx("path",{d:"M3 3.5v9l6-4.5zM9.6 3.5h2v9h-2z"})}),Zf=()=>s.jsx("svg",{viewBox:"0 0 16 16","aria-hidden":"true",children:s.jsx("path",{d:"M13 3.5v9L7 8zM6.4 3.5h-2v9h2z"})}),Kf=()=>s.jsx("svg",{viewBox:"0 0 16 16","aria-hidden":"true",children:s.jsx("path",{d:"M4.5 3h2.6v10H4.5zM8.9 3h2.6v10H8.9z"})}),u4=({muted:t})=>s.jsxs("svg",{viewBox:"0 0 16 16","aria-hidden":"true",fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinejoin:"round",children:[s.jsx("path",{d:"M2.5 6h2.2l3.3-2.6v9.2L4.7 10H2.5z",fill:"
50currentColor",stroke:"none"}),t?s.jsx("path",{d:"M10.5 6l3.5 4M14 6l-3.5 4",strokeLinecap:"round"}):s.jsx("path",{d:"M10.6 5.4c1 1.3 1 3.9 0 5.2M12.4 3.8c2 2.3 2 6.1 0 8.4",strokeLinecap:"round"})]}),d4=i.forwardRef(function({readout:e,clock:r,style:n,dragging:o,handleProps:a},l){const c=cr(),u=c.status==="playing"||c.status==="loading",d=Math.round(c.volume*100);return s.jsxs("section",{ref:l,className:"mr","data-status":c.status,"data-dragging":o||void 0,style:n,"aria-label":"Unbserved Radio",children:[s.jsxs("div",{className:"mr__top",tabIndex:0,role:"group","aria-label":"Move radio: drag, or use arrow keys",...a,children:[s.jsxs("span",{className:"mr__label",children:[s.jsx("span",{className:"mr__dot","aria-hidden":"true"}),"Unbserved Radio · CH ",c.channel.number]}),s.jsxs("span",{className:"mr__window",children:[s.jsx("button",{type:"button",className:"mr__skin","aria-label":"Keep the classic radio",title:"Keep the classic radio",onClick:()=>c.setKeepClassic(!0),children:s.jsxs("svg",{viewBox:"0 0 10 10","aria-hidden":"true",children:[s.jsx("rect",{x:"1.5",y:"2.5",width:"7",height:"5",rx:".5"}),s.jsx("path",{d:"M3 5h2"})]})}),s.jsx("button",{type:"button","aria-label":"Minimize radio",title:"Minimize",onClick:()=>c.setMinimized(!0),children:s.jsx("svg",{viewBox:"0 0 10 10","aria-hidden":"true",children:s.jsx("path",{d:"M2 5h6"})})}),s.jsx("button",{type:"button","aria-label":"Close radio",title:"Close",onClick:c.close,children:s.jsx("svg",{viewBox:"0 0 10 10","aria-hidden":"true",children:s.jsx("path",{d:"M2.5 2.5l5 5M7.5 2.5l-5 5"})})})]})]}),s.jsxs("div",{className:"mr__body",children:[s.jsx("button",{type:"button",className:"mr__play","aria-label":u?"Pause":"Play",onClick:c.togglePlay,children:u?s.jsx(Kf,{}):s.jsx(zf,{})}),s.jsx("button",{type:"button",className:"mr__next mr__prev","aria-label":"Previous station",title:"Previous station",onClick:c.previous,children:s.jsx(Zf,{})}),s.jsx("button",{type:"button",className:"mr__next","aria-label":"Next station",title:"Next station",onClick:c.next,children:s.jsx(Wf,{})}),s.jsxs("div",{className:"mr__info",role:"status","aria-live":"polite",children:[s.jsx("p",{className:"mr__title",children:e.primary}),s.jsxs("p",{className:"mr__meta",children:[s.jsx("span",{children:e.secondary}),s.jsx("span",{children:r})]})]}),s.jsx(Ff,{className:"mr__spectrum",bars:5,width:22,height:16,color:"#F0FF00",segmented:!1})]}),s.jsxs("div",{className:"mr__controls",children:[s.jsx("button",{type:"button",className:"mr__icon","aria-label":c.muted?"Unmute":"Mute","aria-pressed":c.muted,onClick:c.toggleMute,children:s.jsx(u4,{muted:c.muted})}),s.jsx("input",{type:"range",className:"mr__volume",min:0,max:100,step:1,value:d,"aria-label":"Volume","aria-valuetext":c.muted?`${d}%, muted`:`${d}%`,style:{"--mr-volume":`${c.muted?0:d}%`},onChange:f=>c.setVolume(Number(f.target.value)/100)}),c.status!=="off"&&s.jsx("button",{type:"button",className:"mr__stop",onClick:c.stop,children:"Stop"})]})]})}),h4=i.forwardRef(function({readout:e,style:r,dragging:n,handleProps:o},a){const l=cr(),c=l.status==="playing"||l.status==="loading";return s.jsxs("section",{ref:a,className:"mr-mini","data-status":l.status,"data-dragging":n||void 0,style:r,"aria-label":"Unbserved Radio (minimized)",...o,children:[s.jsx("button",{type:"button",className:"mr__play mr__play--mini","aria-label":c?"Pause":"Play",onClick:l.togglePlay,children:c?s.jsx(Kf,{}):s.jsx(zf,{})}),s.jsx("button",{type:"button",className:"mr__next mr__next--mini","aria-label":"Previous station",title:"Previous station",onClick:l.previous,children:s.jsx(Zf,{})}),s.jsx("button",{type:"button",className:"mr__next mr__next--mini","aria-label":"Next station",title:"Next station",onClick:l.next,children:s.jsx(Wf,{})}),s.jsxs("button",{type:"button",className:"mr-mini__restore",onClick:()=>l.setMinimized(!1),"aria-label":"Restore radio",title:"Restore",children:[s.jsx("span",{children:"Radio"}),s.jsx("small",{children:l.muted?"Muted":e.state==="LIVE"?"Live":e.state.charAt(0)+e.state.slice(1).toLowerCase()})]})]})}),f4=["/admin","/auth/","/ext-preview","/extension-screenshots"];function m4(){const t=cr(),{system:e}=_n(),{pathname:r}=Me(),n=i.useRef(null),o=t.closed||f4.some(v=>r.startsWith(v)),{position:a,dragging:l,handleProps:c}=t4(n,!o,`${e}-${t.keepClassic}-${t.minimized}-${t.closed}`),u=Y5(t.channel,t.status==="playing"||t.status==="loading"),d=s4(t.status,t.errorReason,t.channel,u,t.scanning),f=o4(t.getElapsed,t.status);if(o)return null;
50const h=a?{left:a.x,top:a.y}:{left:24,bottom:24},m={ref:n,readout:d,style:h,dragging:l,handleProps:c};return e==="classic"||t.keepClassic?t.minimized?s.jsx(c4,{...m},"mini"):s.jsx(l4,{...m,clock:f},"full"):t.minimized?s.jsx(h4,{...m},"mini"):s.jsx(d4,{...m,clock:f},"full")}const Gf=i.createContext(null),vc=120,p4=220;function v4({children:t}){const[e,r]=i.useState(null),n=i.useRef(null),o=i.useRef([]),a=Cp();i.useEffect(()=>()=>{o.current.forEach(clearTimeout)},[]);const l=i.useCallback(u=>{if(a){u();return}o.current.forEach(clearTimeout),o.current=[],n.current=u,r("in"),o.current.push(window.setTimeout(()=>{const d=n.current;n.current=null,d?.(),r("out")},vc)),o.current.push(window.setTimeout(()=>r(null),vc+p4))},[a]),c=i.useMemo(()=>({startClosingTransition:l,isTransitioning:e!==null}),[l,e]);return s.jsxs(Gf.Provider,{value:c,children:[t,e!==null&&s.jsx("div",{className:e==="in"?"transition-veil transition-veil--in":"transition-veil transition-veil--out","aria-hidden":"true"})]})}function g4(){const t=i.useContext(Gf);if(!t)throw new Error("useTransition must be used within TransitionProvider");return t}const O=V.createContext({});var b4=Object.defineProperty,gc=Object.getOwnPropertySymbols,y4=Object.prototype.hasOwnProperty,w4=Object.prototype.propertyIsEnumerable,bc=(t,e,r)=>e in t?b4(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ks=(t,e)=>{for(var r in e||(e={}))y4.call(e,r)&&bc(t,r,e[r]);if(gc)for(var r of gc(e))w4.call(e,r)&&bc(t,r,e[r]);return t};const x4=(t,e)=>{const r=i.useContext(O),n=Ks(Ks({},r),t);return i.createElement("svg",Ks({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M3 12H6L9 3L15 21L18 12H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},_4=i.forwardRef(x4);var k4=_4,j4=Object.defineProperty,yc=Object.getOwnPropertySymbols,C4=Object.prototype.hasOwnProperty,E4=Object.prototype.propertyIsEnumerable,wc=(t,e,r)=>e in t?j4(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Gs=(t,e)=>{for(var r in e||(e={}))C4.call(e,r)&&wc(t,r,e[r]);if(yc)for(var r of yc(e))E4.call(e,r)&&wc(t,r,e[r]);return t};const S4=(t,e)=>{const r=i.useContext(O),n=Gs(Gs({},r),t);return i.createElement("svg",Gs({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M7 6L17 6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M7 9L17 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M9 17H15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M3 12H2.6C2.26863 12 2 12.2686 2 12.6V21.4C2 21.7314 2.26863 22 2.6 22H21.4C21.7314 22 22 21.7314 22 21.4V12.6C22 12.2686 21.7314 12 21.4 12H21M3 12V2.6C3 2.26863 3.26863 2 3.6 2H20.4C20.7314 2 21 2.26863 21 2.6V12M3 12H21",stroke:"currentColor"}))},L4=i.forwardRef(S4);var O4=L4,$4=Object.defineProperty,xc=Object.getOwnPropertySymbols,A4=Object.prototype.hasOwnProperty,T4=Object.prototype.propertyIsEnumerable,_c=(t,e,r)=>e in t?$4(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Qs=(t,e)=>{for(var r in e||(e={}))A4.call(e,r)&&_c(t,r,e[r]);if(xc)for(var r of xc(e))T4.call(e,r)&&_c(t,r,e[r]);return t};const P4=(t,e)=>{const r=i.useContext(O),n=Qs(Qs({},r),t);return i.createElement("svg",Qs({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M21 12L3 12M3 12L11.5 3.5M3 12L11.5 20.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},R4=i.forwardRef(P4);var N4=R4,M4=Object.defineProperty,kc=Object.getOwnPropertySymbols,I4=Object.prototype.hasOwnProperty,D4=Object.prototype.propertyIsEnumerable,jc=(t,e,r)=>e in t?M4(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ys=(t,e)=>{for(var r in e||(e={}))I4.call(e,r)&&jc(t,r,e[r]);if(kc)for(var r of kc(e))D4.call(e,r)&&jc(t,r,e[r]);return t};const V4=(t,e)=>{const r=i.useContext(O),n=Ys(Ys({},r),t);return i.createElement("svg",Ys({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M3 12L21 12M21 12L12.5 3.5M21 12L12.5 20.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},H4=i.forwardRef(V4);var B4=H4,U4=Object.defineProperty,Cc=Object.getOwnPropertySymbols,q4=Object.prototype.hasOwnProperty,F4=Object.prototype.propertyIsEnumerable,Ec=(t,e,r)=>e in t?U4(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Js=(t,e)=>{for(var r in e||(e={}))q4.call(e,r)&&Ec(t,r,e[r]);if(Cc)for(var r of Cc(e))F4.call(e,r)&&Ec(t,r,e[r]);return t};const z4=(t,e)=>{const r=i.useContext(O),n=Js(Js({},r),t);return i.createElement("svg",Js({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M12 21L12 3M12 3L20.5 11.5M12 3L3.5 11.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},W4=i.forwardRef(z4);
50var Z4=W4,K4=Object.defineProperty,Sc=Object.getOwnPropertySymbols,G4=Object.prototype.hasOwnProperty,Q4=Object.prototype.propertyIsEnumerable,Lc=(t,e,r)=>e in t?K4(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Xs=(t,e)=>{for(var r in e||(e={}))G4.call(e,r)&&Lc(t,r,e[r]);if(Sc)for(var r of Sc(e))Q4.call(e,r)&&Lc(t,r,e[r]);return t};const Y4=(t,e)=>{const r=i.useContext(O),n=Xs(Xs({},r),t);return i.createElement("svg",Xs({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M10.5213 2.62368C11.3147 1.75255 12.6853 1.75255 13.4787 2.62368L14.4989 3.74391C14.8998 4.18418 15.4761 4.42288 16.071 4.39508L17.5845 4.32435C18.7614 4.26934 19.7307 5.23857 19.6757 6.41554L19.6049 7.92905C19.5771 8.52388 19.8158 9.10016 20.2561 9.50111L21.3763 10.5213C22.2475 11.3147 22.2475 12.6853 21.3763 13.4787L20.2561 14.4989C19.8158 14.8998 19.5771 15.4761 19.6049 16.071L19.6757 17.5845C19.7307 18.7614 18.7614 19.7307 17.5845 19.6757L16.071 19.6049C15.4761 19.5771 14.8998 19.8158 14.4989 20.2561L13.4787 21.3763C12.6853 22.2475 11.3147 22.2475 10.5213 21.3763L9.50111 20.2561C9.10016 19.8158 8.52388 19.5771 7.92905 19.6049L6.41553 19.6757C5.23857 19.7307 4.26934 18.7614 4.32435 17.5845L4.39508 16.071C4.42288 15.4761 4.18418 14.8998 3.74391 14.4989L2.62368 13.4787C1.75255 12.6853 1.75255 11.3147 2.62368 10.5213L3.74391 9.50111C4.18418 9.10016 4.42288 8.52388 4.39508 7.92905L4.32435 6.41553C4.26934 5.23857 5.23857 4.26934 6.41554 4.32435L7.92905 4.39508C8.52388 4.42288 9.10016 4.18418 9.50111 3.74391L10.5213 2.62368Z",stroke:"currentColor"}),i.createElement("path",{d:"M9 12L11 14L15 10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},J4=i.forwardRef(Y4);var X4=J4,ew=Object.defineProperty,Oc=Object.getOwnPropertySymbols,tw=Object.prototype.hasOwnProperty,rw=Object.prototype.propertyIsEnumerable,$c=(t,e,r)=>e in t?ew(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,eo=(t,e)=>{for(var r in e||(e={}))tw.call(e,r)&&$c(t,r,e[r]);if(Oc)for(var r of Oc(e))rw.call(e,r)&&$c(t,r,e[r]);return t};const nw=(t,e)=>{const r=i.useContext(O),n=eo(eo({},r),t);return i.createElement("svg",eo({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M18 8.4C18 6.70261 17.3679 5.07475 16.2426 3.87452C15.1174 2.67428 13.5913 2 12 2C10.4087 2 8.88258 2.67428 7.75736 3.87452C6.63214 5.07475 6 6.70261 6 8.4C6 15.8667 3 18 3 18H21C21 18 18 15.8667 18 8.4Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M13.73 21C13.5542 21.3031 13.3019 21.5547 12.9982 21.7295C12.6946 21.9044 12.3504 21.9965 12 21.9965C11.6496 21.9965 11.3054 21.9044 11.0018 21.7295C10.6982 21.5547 10.4458 21.3031 10.27 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},sw=i.forwardRef(nw);var ow=sw,aw=Object.defineProperty,Ac=Object.getOwnPropertySymbols,iw=Object.prototype.hasOwnProperty,lw=Object.prototype.propertyIsEnumerable,Tc=(t,e,r)=>e in t?aw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,to=(t,e)=>{for(var r in e||(e={}))iw.call(e,r)&&Tc(t,r,e[r]);if(Ac)for(var r of Ac(e))lw.call(e,r)&&Tc(t,r,e[r]);return t};const cw=(t,e)=>{const r=i.useContext(O),n=to(to({},r),t);return i.createElement("svg",to({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M12 11.6667H8M12 11.6667C12 11.6667 15.3333 11.6667 15.3333 8.33333C15.3333 5.00002 12 5 12 5C12 5 12 5 12 5H8.6C8.26863 5 8 5.26863 8 5.6V11.6667M12 11.6667C12 11.6667 16 11.6667 16 15.3333C16 19 12 19 12 19C12 19 12 19 12 19H8.6C8.26863 19 8 18.7314 8 18.4V11.6667",stroke:"currentColor"}))},uw=i.forwardRef(cw);var dw=uw,hw=Object.defineProperty,Pc=Object.getOwnPropertySymbols,fw=Object.prototype.hasOwnProperty,mw=Object.prototype.propertyIsEnumerable,Rc=(t,e,r)=>e in t?hw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ro=(t,e)=>{for(var r in e||(e={}))fw.call(e,r)&&Rc(t,r,e[r]);if(Pc)for(var r of Pc(e))mw.call(e,r)&&Rc(t,r,e[r]);return t};const pw=(t,e)=>{const r=i.useContext(O),n=ro(ro({},r),t);return i.createElement("svg",ro({width:"1.5em",strokeWidth:1.5,height:"1.5em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M4 19V5C4 3.89543 4.89543 3 6 3H19.4C19.7314 3 20 3.26863 20 3.6V16.7143",stroke:"currentColor",strokeLinecap:"round"}),i.createElement("path",{d:"M8 3V11L10.5 9.4L13 11V3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M6 17L20 17",stroke:"currentColor",strokeLinecap:"round"}),i.createElement("path",{d:"M6 21L20 21",stroke:"currentColor",strokeLinecap:"round"}),i.createElement("path",{d:"M6 21C4.89543 21 4 20.1046 4 19C4 17.8954 4.89543 17 6 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},vw=i.forwardRef(pw);var gw=vw,bw=Object.defineProperty,Nc=Object.getOwnPropertySymbols,yw=Object.prototype.hasOwnProperty,ww=Object.prototype.propertyIsEnumerable,Mc=(t,e,r)=>e in t?bw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,no=(t,e)=>{for(var r in e||(e={}))yw.call(e,r)&&Mc(t,r,e[r]);if(Nc)for(var r of Nc(e))ww.call(e,r)&&Mc(t,r,e[r]);return t};const xw=(t,e)=>{const r=i.useContext(O),n=no(no({},r),t);return i.createElement("svg",no({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M5 21V5C5 3.89543 5.89543 3 7 3H17C18.1046 3 19 3.89543 19 5V21L13.0815 17.1953C12.4227 16.7717 11.5773 16.7717 10.9185 17.1953L5 21Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},_w=i.forwardRef(xw);var kw=_w,jw=Object.defineProperty,Ic=Object.getOwnPropertySymbols,Cw=Object.prototype.hasOwnProperty,Ew=Object.prototype.propertyIsEnumerable,Dc=(t,e,r)=>e in t?jw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,so=(t,e)=>{for(var r in e||(e={}))Cw.call(e,r)&&Dc(t,r,e[r]);if(Ic)for(var r of Ic(e))Ew.call(e,r)&&Dc(t,r,e[r]);return t};const Sw=(t,e)=>{const r=i.useContext(O),n=so(so({},r),t);return i.createElement("svg",so({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M12 21C8.13401 21 5 16.9706 5 12C5 7.02944 8.13401 3 12 3C15.866 3 19 7.02944 19 12C19 16.9706 15.866 21 12 21Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M18 17.5L20 19.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M19 9.5L21 8.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M5 9.5L3 8.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M18 8C18 8 15 9 12 9M6 8C6 8 9 9 12 9M12 9V21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M5 14H2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M22 14H19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}
50),i.createElement("path",{d:"M6 17.5L4 19.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Lw=i.forwardRef(Sw);var Ow=Lw,$w=Object.defineProperty,Vc=Object.getOwnPropertySymbols,Aw=Object.prototype.hasOwnProperty,Tw=Object.prototype.propertyIsEnumerable,Hc=(t,e,r)=>e in t?$w(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,oo=(t,e)=>{for(var r in e||(e={}))Aw.call(e,r)&&Hc(t,r,e[r]);if(Vc)for(var r of Vc(e))Tw.call(e,r)&&Hc(t,r,e[r]);return t};const Pw=(t,e)=>{const r=i.useContext(O),n=oo(oo({},r),t);return i.createElement("svg",oo({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M15 4V2M15 4V6M15 4H10.5M3 10V19C3 20.1046 3.89543 21 5 21H19C20.1046 21 21 20.1046 21 19V10H3Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M3 10V6C3 4.89543 3.89543 4 5 4H7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M7 2V6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M21 10V6C21 4.89543 20.1046 4 19 4H18.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Rw=i.forwardRef(Pw);var Nw=Rw,Mw=Object.defineProperty,Bc=Object.getOwnPropertySymbols,Iw=Object.prototype.hasOwnProperty,Dw=Object.prototype.propertyIsEnumerable,Uc=(t,e,r)=>e in t?Mw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ao=(t,e)=>{for(var r in e||(e={}))Iw.call(e,r)&&Uc(t,r,e[r]);if(Bc)for(var r of Bc(e))Dw.call(e,r)&&Uc(t,r,e[r]);return t};const Vw=(t,e)=>{const r=i.useContext(O),n=ao(ao({},r),t);return i.createElement("svg",ao({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M2 19V9C2 7.89543 2.89543 7 4 7H4.5C5.12951 7 5.72229 6.70361 6.1 6.2L8.32 3.24C8.43331 3.08892 8.61115 3 8.8 3H15.2C15.3889 3 15.5667 3.08892 15.68 3.24L17.9 6.2C18.2777 6.70361 18.8705 7 19.5 7H20C21.1046 7 22 7.89543 22 9V19C22 20.1046 21.1046 21 20 21H4C2.89543 21 2 20.1046 2 19Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M12 17C14.2091 17 16 15.2091 16 13C16 10.7909 14.2091 9 12 9C9.79086 9 8 10.7909 8 13C8 15.2091 9.79086 17 12 17Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Hw=i.forwardRef(Vw);var Bw=Hw,Uw=Object.defineProperty,qc=Object.getOwnPropertySymbols,qw=Object.prototype.hasOwnProperty,Fw=Object.prototype.propertyIsEnumerable,Fc=(t,e,r)=>e in t?Uw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,io=(t,e)=>{for(var r in e||(e={}))qw.call(e,r)&&Fc(t,r,e[r]);if(qc)for(var r of qc(e))Fw.call(e,r)&&Fc(t,r,e[r]);return t};const zw=(t,e)=>{const r=i.useContext(O),n=io(io({},r),t);return i.createElement("svg",io({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M17 12.5C17.2761 12.5 17.5 12.2761 17.5 12C17.5 11.7239 17.2761 11.5 17 11.5C16.7239 11.5 16.5 11.7239 16.5 12C16.5 12.2761 16.7239 12.5 17 12.5Z",fill:"currentColor",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M12 12.5C12.2761 12.5 12.5 12.2761 12.5 12C12.5 11.7239 12.2761 11.5 12 11.5C11.7239 11.5 11.5 11.7239 11.5 12C11.5 12.2761 11.7239 12.5 12 12.5Z",fill:"currentColor",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M7 12.5C7.27614 12.5 7.5 12.2761 7.5 12C7.5 11.7239 7.27614 11.5 7 11.5C6.72386 11.5 6.5 11.7239 6.5 12C6.5 12.2761 6.72386 12.5 7 12.5Z",fill:"currentColor",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 13.8214 2.48697 15.5291 3.33782 17L2.5 21.5L7 20.6622C8.47087 21.513 10.1786 22 12 22Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Ww=i.forwardRef(zw);var Zw=Ww,Kw=Object.defineProperty,zc=Object.getOwnPropertySymbols,Gw=Object.prototype.hasOwnProperty,Qw=Object.prototype.propertyIsEnumerable,Wc=(t,e,r)=>e in t?Kw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,lo=(t,e)=>{for(var r in e||(e={}))Gw.call(e,r)&&Wc(t,r,e[r]);if(zc)for(var r of zc(e))Qw.call(e,r)&&Wc(t,r,e[r]);return t};const Yw=(t,e)=>{const r=i.useContext(O),n=lo(lo({},r),t);return i.createElement("svg",lo({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M8 10L12 10L16 10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M8 14L10 14L12 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 13.8214 2.48697 15.5291 3.33782 17L2.5 21.5L7 20.6622C8.47087 21.513 10.1786 22 12 22Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Jw=i.forwardRef(Yw);var Xw=Jw,e3=Object.defineProperty,Zc=Object.getOwnPropertySymbols,t3=Object.prototype.hasOwnProperty,r3=Object.prototype.propertyIsEnumerable,Kc=(t,e,r)=>e in t?e3(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,co=(t,e)=>{for(var r in e||(e={}))t3.call(e,r)&&Kc(t,r,e[r]);if(Zc)for(var r of Zc(e))r3.call(e,r)&&Kc(t,r,e[r]);return t};const n3=(t,e)=>{const r=i.useContext(O),n=co(co({},r),t);return i.createElement("svg",co({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M7 12.5L10 15.5L17 8.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},s3=i.forwardRef(n3);var o3=s3,a3=Object.defineProperty,Gc=Object.getOwnPropertySymbols,i3=Object.prototype.hasOwnProperty,l3=Object.prototype.propertyIsEnumerable,Qc=(t,e,r)=>e in t?a3(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,uo=(t,e)=>{for(var r in e||(e={}))i3.call(e,r)&&Qc(t,r,e[r]);if(Gc)for(var r of Gc(e))l3.call(e,r)&&Qc(t,r,e[r]);return t};const c3=(t,e)=>{const r=i.useContext(O),n=uo(uo({},r),t);return i.createElement("svg",uo({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M3 20.4V3.6C3 3.26863 3.26863 3 3.6 3H20.4C20.7314 3 21 3.26863 21 3.6V20.4C21 20.7314 20.7314 21 20.4 21H3.6C3.26863 21 3 20.7314 3 20.4Z",stroke:"currentColor"}),i.createElement("path",{d:"M7 12.5L10 15.5L17 8.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},u3=i.forwardRef(c3);var d3=u3,h3=Object.defineProperty,Yc=Object.getOwnPropertySymbols,f3=Object.prototype.hasOwnProperty,m3=Object.prototype.propertyIsEnumerable,Jc=(t,e,r)=>e in t?h3(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ho=(t,e)=>{for(var r in e||(e={}))f3.call(e,r)&&Jc(t,r,e[r]);if(Yc)for(var r of Yc(e))m3.call(e,r)&&Jc(t,r,e[r]);return t};const p3=(t,e)=>{const r=i.useContext(O),n=ho(ho({},r),t);return i.createElement("svg",ho({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M5 13L9 17L19 7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},v3=i.forwardRef(p3);var g3=v3,b3=Object.defineProperty,Xc=Object.getOwnPropertySymbols,y3=Object.prototype.hasOwnProperty,w3=Object.prototype.propertyIsEnumerable,e1=(t,e,r)=>e in t?b3(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,fo=(t,e)=>{for(var r in e||(e={}))y3.call(e,r)&&e1(t,r,e[r]);if(Xc)for(var r of Xc(e))w3.call(e,r)&&e1(t,r,e[r]);return t};const x3=(t,e)=>{const r=i.useContext(O),n=fo(fo({},r),t);return i.createElement("svg",fo({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},_3=i.forwardRef(x3);var k3=_3,j3=Object.defineProperty,t1=Object.getOwnPropertySymbols,C3=Object.prototype.hasOwnProperty,E3=Object.prototype.propertyIsEnumerable,r1=(t,e,r)=>e in t?j3(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,mo=(t,e)=>{for(var r in e||(e={}))C3.call(e,r)&&r1(t,r,e[r]);if(t1)for(var r of t1(e))E3.call(e,r)&&r1(t,r,e[r]);return t};const S3=(t,e)=>{const r=i.useContext(O),n=mo(mo({},r),t);return i.createElement("svg",mo({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M12 6L12 12L18 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},L3=i.forwardRef(S3);var O3=L3,$3=Object.defineProperty,n1=Object.getOwnPropertySymbols,A3=Object.prototype.hasOwnProperty,T3=Object.prototype.propertyIsEnumerable,s1=(t,e,r)=>e in t?$3(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,po=(t,e)=>{for(var r in e||(e={}))A3.call(e,r)&&s1(t,r,e[r]);if(n1)for(var r of n1(e))T3.call(e,r)&&s1(t,r,e[r]);return t};const P3=(t,e)=>{const r=i.useContext(O),n=po(po({},r),t);return i.createElement("svg",po({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M13.5 6L10 18.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M6.5 8.5L3 12L6.5 15.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M17.5 8.5L21 12L17.5 15.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},R3=i.forwardRef(P3);var N3=R3,M3=Object.defineProperty,o1=Object.getOwnPropertySymbols,I3=Object.prototype.hasOwnProperty,D3=Object.prototype.propertyIsEnumerable,a1=(t,e,r)=>e in t?M3(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,vo=(t,e)=>{for(var r in e||(e={}))I3.call(e,r)&&a1(t,r,e[r]);if(o1)for(var r of o1(e))D3.call(e,r)&&a1(t,r,e[r]);return t};const V3=(t,e)=>{const r=i.useContext(O),n=vo(vo({},r),t);return i.createElement("svg",vo({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M7 13.161L12.4644 7.6966C12.8549 7.30607 13.4881 7.30607 13.8786 7.6966L15.9999 9.81792C16.3904 10.2084 16.3904 10.8416 15.9999 11.2321L14.0711 13.161M7 13.161L4.82764 15.3334C4.73428 15.4267 4.66034 15.5376 4.61007 15.6597L3.58204 18.1563C3.07438 19.3892 4.30728 20.6221 5.54018 20.1145L8.03681 19.0865C8.1589 19.0362 8.26981 18.9622 8.36317 18.8689L14.0711 13.161M7 13.161H14.0711",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M13.878 3.45401L15.9993 5.57533M20.242 9.81798L18.1206 7.69666M15.9993 5.57533L17.4135 4.16112C17.8041 3.7706 18.4372 3.7706 18.8277 4.16112L19.5349 4.86823C19.9254 5.25875 19.9254 5.89192 19.5349 6.28244L18.1206 7.69666M15.9993 5.57533L18.1206 7.69666",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},H3=i.forwardRef(V3);var B3=H3,U3=Object.defineProperty,i1=Object.getOwnPropertySymbols,q3=Object.prototype.hasOwnProperty,F3=Object.prototype.propertyIsEnumerable,l1=(t,e,r)=>e in t?U3(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,go=(t,e)=>{for(var r in e||(e={}))q3.call(e,r)&&l1(t,r,e[r]);if(i1)for(var r of i1(e))F3.call(e,r)&&l1(t,r,e[r]);return t};const z3=(t,e)=>{const r=i.useContext(O),n=go(go({},r),t);return i.createElement("svg",go({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M10.5857 10.5857L16.9496 7.0502L13.4141 13.4142L7.05012 16.9497L10.5857 10.5857Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},W3=i.forwardRef(z3);var Z3=W3,K3=Object.defineProperty,c1=Object.getOwnPropertySymbols,G3=Object.prototype.hasOwnProperty,Q3=Object.prototype.propertyIsEnumerable,u1=(t,e,r)=>e in t?K3(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,bo=(t,e)=>{for(var r in e||(e={}))G3.call(e,r)&&u1(t,r,e[r]);if(c1)for(var r of c1(e))Q3.call(e,r)&&u1(t,r,e[r]);return t};const Y3=(t,e)=>{const r=i.useContext(O),n=bo(bo({},r),t);return i.createElement("svg",bo({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M19.4 20H9.6C9.26863 20 9 19.7314 9 19.4V9.6C9 9.26863 9.26863 9 9.6 9H19.4C19.7314 9 20 9.26863 20 9.6V19.4C20 19.7314 19.7314 20 19.4 20Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M15 9V4.6C15 4.26863 14.7314 4 14.4 4H4.6C4.26863 4 4 4.26863 4 4.6V14.4C4 14.7314 4.26863 15 4.6 15H9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},J3=i.forwardRef(Y3);var X3=J3,e6=Object.defineProperty,d1=Object.getOwnPropertySymbols,t6=Object.prototype.hasOwnProperty,r6=Object.prototype.propertyIsEnumerable,h1=(t,e,r)=>e in t?e6(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,yo=(t,e)=>{for(var r in e||(e={}))t6.call(e,r)&&h1(t,r,e[r]);if(d1)for(var r of d1(e))r6.call(e,r)&&h1(t,r,e[r]);return t};const n6=(t,e)=>{const r=i.useContext(O),n=yo(yo({},r),t);return i.createElement("svg",yo({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M22 9V17C22 18.1046 21.1046 19 20 19H4C2.89543 19 2 18.1046 2 17V7C2 5.89543 2.89543 5 4 5H20C21.1046 5 22 5.89543 22 7V9ZM22 9H6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},s6=i.forwardRef(n6);var o6=s6,a6=Object.defineProperty,f1=Object.getOwnPropertySymbols,i6=Object.prototype.hasOwnProperty,l6=Object.prototype.propertyIsEnumerable,m1=(t,e,r)=>e in t?a6(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}
50):t[e]=r,wo=(t,e)=>{for(var r in e||(e={}))i6.call(e,r)&&m1(t,r,e[r]);if(f1)for(var r of f1(e))l6.call(e,r)&&m1(t,r,e[r]);return t};const c6=(t,e)=>{const r=i.useContext(O),n=wo(wo({},r),t);return i.createElement("svg",wo({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M19.2 17L21 7L14.7 10L12 7L9.3 10L3 7L4.8 17H19.2Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},u6=i.forwardRef(c6);var d6=u6,h6=Object.defineProperty,p1=Object.getOwnPropertySymbols,f6=Object.prototype.hasOwnProperty,m6=Object.prototype.propertyIsEnumerable,v1=(t,e,r)=>e in t?h6(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,xo=(t,e)=>{for(var r in e||(e={}))f6.call(e,r)&&v1(t,r,e[r]);if(p1)for(var r of p1(e))m6.call(e,r)&&v1(t,r,e[r]);return t};const p6=(t,e)=>{const r=i.useContext(O),n=xo(xo({},r),t);return i.createElement("svg",xo({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M8 21.1679V14L12 7L16 14V21.1679",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M8 14C8 14 9.12676 15 10 15C10.8732 15 12 14 12 14C12 14 13.1268 15 14 15C14.8732 15 16 14 16 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},v6=i.forwardRef(p6);var g6=v6,b6=Object.defineProperty,g1=Object.getOwnPropertySymbols,y6=Object.prototype.hasOwnProperty,w6=Object.prototype.propertyIsEnumerable,b1=(t,e,r)=>e in t?b6(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,_o=(t,e)=>{for(var r in e||(e={}))y6.call(e,r)&&b1(t,r,e[r]);if(g1)for(var r of g1(e))w6.call(e,r)&&b1(t,r,e[r]);return t};const x6=(t,e)=>{const r=i.useContext(O),n=_o(_o({},r),t);return i.createElement("svg",_o({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M14 21H4C2.89543 21 2 20.1046 2 19V5C2 3.89543 2.89543 3 4 3H20C21.1046 3 22 3.89543 22 5V14",stroke:"currentColor",strokeLinecap:"round"}),i.createElement("path",{d:"M2 7L22 7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M5 5.01L5.01 4.99889",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M8 5.01L8.01 4.99889",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M11 5.01L11.01 4.99889",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M19.5 16V22M19.5 22L17 19.5M19.5 22L22 19.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},_6=i.forwardRef(x6);var k6=_6,j6=Object.defineProperty,y1=Object.getOwnPropertySymbols,C6=Object.prototype.hasOwnProperty,E6=Object.prototype.propertyIsEnumerable,w1=(t,e,r)=>e in t?j6(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ko=(t,e)=>{for(var r in e||(e={}))C6.call(e,r)&&w1(t,r,e[r]);if(y1)for(var r of y1(e))E6.call(e,r)&&w1(t,r,e[r]);return t};const S6=(t,e)=>{const r=i.useContext(O),n=ko(ko({},r),t);return i.createElement("svg",ko({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M6 20L18 20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M12 4V16M12 16L15.5 12.5M12 16L8.5 12.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},L6=i.forwardRef(S6);var O6=L6,$6=Object.defineProperty,x1=Object.getOwnPropertySymbols,A6=Object.prototype.hasOwnProperty,T6=Object.prototype.propertyIsEnumerable,_1=(t,e,r)=>e in t?$6(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,jo=(t,e)=>{for(var r in e||(e={}))A6.call(e,r)&&_1(t,r,e[r]);if(x1)for(var r of x1(e))T6.call(e,r)&&_1(t,r,e[r]);return t};const P6=(t,e)=>{const r=i.useContext(O),n=jo(jo({},r),t);return i.createElement("svg",jo({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M12 12L4 4M4 4V8M4 4H8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}
50),i.createElement("path",{d:"M12 12L20 4M20 4V8M20 4H16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M12 12L4 20M4 20V16M4 20H8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M12 12L20 20M20 20V16M20 20H16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},R6=i.forwardRef(P6);var N6=R6,M6=Object.defineProperty,k1=Object.getOwnPropertySymbols,I6=Object.prototype.hasOwnProperty,D6=Object.prototype.propertyIsEnumerable,j1=(t,e,r)=>e in t?M6(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Co=(t,e)=>{for(var r in e||(e={}))I6.call(e,r)&&j1(t,r,e[r]);if(k1)for(var r of k1(e))D6.call(e,r)&&j1(t,r,e[r]);return t};const V6=(t,e)=>{const r=i.useContext(O),n=Co(Co({},r),t);return i.createElement("svg",Co({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M14.3632 5.65156L15.8431 4.17157C16.6242 3.39052 17.8905 3.39052 18.6716 4.17157L20.0858 5.58579C20.8668 6.36683 20.8668 7.63316 20.0858 8.41421L18.6058 9.8942M14.3632 5.65156L4.74749 15.2672C4.41542 15.5993 4.21079 16.0376 4.16947 16.5054L3.92738 19.2459C3.87261 19.8659 4.39148 20.3848 5.0115 20.33L7.75191 20.0879C8.21972 20.0466 8.65806 19.8419 8.99013 19.5099L18.6058 9.8942M14.3632 5.65156L18.6058 9.8942",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},H6=i.forwardRef(V6);var B6=H6,U6=Object.defineProperty,C1=Object.getOwnPropertySymbols,q6=Object.prototype.hasOwnProperty,F6=Object.prototype.propertyIsEnumerable,E1=(t,e,r)=>e in t?U6(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Eo=(t,e)=>{for(var r in e||(e={}))q6.call(e,r)&&E1(t,r,e[r]);if(C1)for(var r of C1(e))F6.call(e,r)&&E1(t,r,e[r]);return t};const z6=(t,e)=>{const r=i.useContext(O),n=Eo(Eo({},r),t);return i.createElement("svg",Eo({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M3 21L12 21H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M12.2218 5.82839L15.0503 2.99996L20 7.94971L17.1716 10.7781M12.2218 5.82839L6.61522 11.435C6.42769 11.6225 6.32233 11.8769 6.32233 12.1421L6.32233 16.6776L10.8579 16.6776C11.1231 16.6776 11.3774 16.5723 11.565 16.3847L17.1716 10.7781M12.2218 5.82839L17.1716 10.7781",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},W6=i.forwardRef(z6);var Z6=W6,K6=Object.defineProperty,S1=Object.getOwnPropertySymbols,G6=Object.prototype.hasOwnProperty,Q6=Object.prototype.propertyIsEnumerable,L1=(t,e,r)=>e in t?K6(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,So=(t,e)=>{for(var r in e||(e={}))G6.call(e,r)&&L1(t,r,e[r]);if(S1)for(var r of S1(e))Q6.call(e,r)&&L1(t,r,e[r]);return t};const Y6=(t,e)=>{const r=i.useContext(O),n=So(So({},r),t);return i.createElement("svg",So({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M16.5 14.5C16.5 14.5 15 16.5 12 16.5C9 16.5 7.5 14.5 7.5 14.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M15.5 9C15.2239 9 15 8.77614 15 8.5C15 8.22386 15.2239 8 15.5 8C15.7761 8 16 8.22386 16 8.5C16 8.77614 15.7761 9 15.5 9Z",fill:"currentColor",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M8.5 9C8.22386 9 8 8.77614 8 8.5C8 8.22386 8.22386 8 8.5 8C8.77614 8 9 8.22386 9 8.5C9 8.77614 8.77614 9 8.5 9Z",fill:"currentColor",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},J6=i.forwardRef(Y6);var X6=J6,ex=Object.defineProperty,O1=Object.getOwnPropertySymbols,tx=Object.prototype.hasOwnProperty,rx=Object.prototype.propertyIsEnumerable,$1=(t,e,r)=>e in t?ex(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Lo=(t,e)=>{for(var r in e||(e={}))tx.call(e,r)&&$1(t,r,e[r]);if(O1)for(var r of O1(e))rx.call(e,r)&&$1(t,r,e[r]);return t};const nx=(t,e)=>{const r=i.useContext(O),n=Lo(Lo({},r),t);return i.createElement("svg",Lo({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M19.5 16L17.0248 12.6038",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M12 17.5V14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M4.5 16L6.96895 12.6124",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M3 8C6.6 16 17.4 16 21 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},sx=i.forwardRef(nx);var ox=sx,ax=Object.defineProperty,A1=Object.getOwnPropertySymbols,ix=Object.prototype.hasOwnProperty,lx=Object.prototype.propertyIsEnumerable,T
501=(t,e,r)=>e in t?ax(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Oo=(t,e)=>{for(var r in e||(e={}))ix.call(e,r)&&T1(t,r,e[r]);if(A1)for(var r of A1(e))lx.call(e,r)&&T1(t,r,e[r]);return t};const cx=(t,e)=>{const r=i.useContext(O),n=Oo(Oo({},r),t);return i.createElement("svg",Oo({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M3 13C6.6 5 17.4 5 21 13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M12 17C10.3431 17 9 15.6569 9 14C9 12.3431 10.3431 11 12 11C13.6569 11 15 12.3431 15 14C15 15.6569 13.6569 17 12 17Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},ux=i.forwardRef(cx);var dx=ux,hx=Object.defineProperty,P1=Object.getOwnPropertySymbols,fx=Object.prototype.hasOwnProperty,mx=Object.prototype.propertyIsEnumerable,R1=(t,e,r)=>e in t?hx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,$o=(t,e)=>{for(var r in e||(e={}))fx.call(e,r)&&R1(t,r,e[r]);if(P1)for(var r of P1(e))mx.call(e,r)&&R1(t,r,e[r]);return t};const px=(t,e)=>{const r=i.useContext(O),n=$o($o({},r),t);return i.createElement("svg",$o({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M17 2H14C12.6739 2 11.4021 2.52678 10.4645 3.46447C9.52678 4.40215 9 5.67392 9 7V10H6V14H9V22H13V14H16L17 10H13V7C13 6.73478 13.1054 6.48043 13.2929 6.29289C13.4804 6.10536 13.7348 6 14 6H17V2Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},vx=i.forwardRef(px);var gx=vx,bx=Object.defineProperty,N1=Object.getOwnPropertySymbols,yx=Object.prototype.hasOwnProperty,wx=Object.prototype.propertyIsEnumerable,M1=(t,e,r)=>e in t?bx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ao=(t,e)=>{for(var r in e||(e={}))yx.call(e,r)&&M1(t,r,e[r]);if(N1)for(var r of N1(e))wx.call(e,r)&&M1(t,r,e[r]);return t};const xx=(t,e)=>{const r=i.useContext(O),n=Ao(Ao({},r),t);return i.createElement("svg",Ao({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M13 10V3L5 14H11V21L19 10H13Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},_x=i.forwardRef(xx);var kx=_x,jx=Object.defineProperty,I1=Object.getOwnPropertySymbols,Cx=Object.prototype.hasOwnProperty,Ex=Object.prototype.propertyIsEnumerable,D1=(t,e,r)=>e in t?jx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,To=(t,e)=>{for(var r in e||(e={}))Cx.call(e,r)&&D1(t,r,e[r]);if(I1)for(var r of I1(e))Ex.call(e,r)&&D1(t,r,e[r]);return t};const Sx=(t,e)=>{const r=i.useContext(O),n=To(To({},r),t);return i.createElement("svg",To({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M3 19V5C3 3.89543 3.89543 3 5 3H16.1716C16.702 3 17.2107 3.21071 17.5858 3.58579L20.4142 6.41421C20.7893 6.78929 21 7.29799 21 7.82843V19C21 20.1046 20.1046 21 19 21H5C3.89543 21 3 20.1046 3 19Z",stroke:"currentColor"}),i.createElement("path",{d:"M8.6 9H15.4C15.7314 9 16 8.73137 16 8.4V3.6C16 3.26863 15.7314 3 15.4 3H8.6C8.26863 3 8 3.26863 8 3.6V8.4C8 8.73137 8.26863 9 8.6 9Z",stroke:"currentColor"}),i.createElement("path",{d:"M6 13.6V21H18V13.6C18 13.2686 17.7314 13 17.4 13H6.6C6.26863 13 6 13.2686 6 13.6Z",stroke:"currentColor"}))},Lx=i.forwardRef(Sx);var Ox=Lx,$x=Object.defineProperty,V1=Object.getOwnPropertySymbols,Ax=Object.prototype.hasOwnProperty,Tx=Object.prototype.propertyIsEnumerable,H1=(t,e,r)=>e in t?$x(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Po=(t,e)=>{for(var r in e||(e={}))Ax.call(e,r)&&H1(t,r,e[r]);if(V1)for(var r of V1(e))Tx.call(e,r)&&H1(t,r,e[r]);return t};const Px=(t,e)=>{const r=i.useContext(O),n=Po(Po({},r),t);return i.createElement("svg",Po({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M18 6H20M22 6H20M20 6V4M20 6V8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M21.4 20H2.6C2.26863 20 2 19.7314 2 19.4V11H21.4C21.7314 11 22 11.2686 22 11.6V19.4C22 19.7314 21.7314 20 21.4 20Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M2 11V4.6C2 4.26863 2.26863 4 2.6 4H8.77805C8.92127 4 9.05977 4.05124 9.16852 4.14445L12.3315 6.85555C12.4402 6.94876 12.5787 7 12.722 7H14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Rx=i.forwardRef(Px);var Nx=Rx,Mx=Object.defineProperty,B1=Object.getOwnPropertySymbols,Ix=Object.prototype.hasOwnProperty,Dx=Object.prototype.propertyIsEnumerable,U1=(t,e,r)=>e in t?Mx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ro=(t,e)=>{for(var r in e||(e={}))Ix.call(e,r)&&U1(t,r,e[r]);if(B1)for(var r of B1(e))Dx.call(e,r)&&U1(t,r,e[r]);return t};const Vx=(t,e)=>{const r=i.useContext(O),n=Ro(Ro({},r),t);return i.createElement("svg",Ro({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M2.6 4H8.77805C8.92127 4 9.05977 4.05124 9.16852 4.14445L12.3315 6.85555C12.4402 6.94876 12.5787 7 12.722 7H21.4C21.7314 7 22 7.26863 22 7.6V10.4C22 10.7314 21.7314 11 21.4 11H2.6C2.26863 11 2 10.7314 2 10.4V4.6C2 4.26863 2.26863 4 2.6 4Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M22 10L22 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M2 10V19.4C2 19.7314 2.26863 20 2.6 20H13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M19 21C20.1046 21 21 20.1046 21 19C21 17.8954 20.1046 17 19 17C18.6357 17 18.2942 17.0974 18 17.2676C17.4022 17.6134 17 18.2597 17 19C17 19.7403 17.4022 20.3866 18 20.7324C18.2942 20.9026 18.6357 21 19 21Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M19 22C20.6569 22 22 20.6569 22 19C22 17.3431 20.6569
5016 19 16C17.3431 16 16 17.3431 16 19C16 20.6569 17.3431 22 19 22Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"0.3 2"}))},Hx=i.forwardRef(Vx);var Bx=Hx,Ux=Object.defineProperty,q1=Object.getOwnPropertySymbols,qx=Object.prototype.hasOwnProperty,Fx=Object.prototype.propertyIsEnumerable,F1=(t,e,r)=>e in t?Ux(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,No=(t,e)=>{for(var r in e||(e={}))qx.call(e,r)&&F1(t,r,e[r]);if(q1)for(var r of q1(e))Fx.call(e,r)&&F1(t,r,e[r]);return t};const zx=(t,e)=>{const r=i.useContext(O),n=No(No({},r),t);return i.createElement("svg",No({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M2 11V4.6C2 4.26863 2.26863 4 2.6 4H8.77805C8.92127 4 9.05977 4.05124 9.16852 4.14445L12.3315 6.85555C12.4402 6.94876 12.5787 7 12.722 7H21.4C21.7314 7 22 7.26863 22 7.6V11M2 11V19.4C2 19.7314 2.26863 20 2.6 20H21.4C21.7314 20 22 19.7314 22 19.4V11M2 11H22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Wx=i.forwardRef(zx);var Zx=Wx,Kx=Object.defineProperty,z1=Object.getOwnPropertySymbols,Gx=Object.prototype.hasOwnProperty,Qx=Object.prototype.propertyIsEnumerable,W1=(t,e,r)=>e in t?Kx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Mo=(t,e)=>{for(var r in e||(e={}))Gx.call(e,r)&&W1(t,r,e[r]);if(z1)for(var r of z1(e))Qx.call(e,r)&&W1(t,r,e[r]);return t};const Yx=(t,e)=>{const r=i.useContext(O),n=Mo(Mo({},r),t);return i.createElement("svg",Mo({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M2.5 12.5L8 14.5L7 18L8 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M17 20.5L16.5 18L14 17V13.5L17 12.5L21.5 13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M19 5.5L18.5 7L15 7.5V10.5L17.5 9.5H19.5L21.5 10.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M2.5 10.5L5 8.5L7.5 8L9.5 5L8.5 3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Jx=i.forwardRef(Yx);var Xx=Jx,e8=Object.defineProperty,Z1=Object.getOwnPropertySymbols,t8=Object.prototype.hasOwnProperty,r8=Object.prototype.propertyIsEnumerable,K1=(t,e,r)=>e in t?e8(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Io=(t,e)=>{for(var r in e||(e={}))t8.call(e,r)&&K1(t,r,e[r]);if(Z1)for(var r of Z1(e))r8.call(e,r)&&K1(t,r,e[r]);return t};const n8=(t,e)=>{const r=i.useContext(O),n=Io(Io({},r),t);return i.createElement("svg",Io({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M20 20H4V4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M4 16.5L12 9L15 12L19.5 7.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},s8=i.forwardRef(n8);var o8=s8,a8=Object.defineProperty,G1=Object.getOwnPropertySymbols,i8=Object.prototype.hasOwnProperty,l8=Object.prototype.propertyIsEnumerable,Q1=(t,e,r)=>e in t?a8(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Do=(t,e)=>{for(var r in e||(e={}))i8.call(e,r)&&Q1(t,r,e[r]);if(G1)for(var r of G1(e))l8.call(e,r)&&Q1(t,r,e[r]);return t};const c8=(t,e)=>{const r=i.useContext(O),n=Do(Do({},r),t);return i.createElement("svg",Do({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M1 20V19C1 15.134 4.13401 12 8 12V12C11.866 12 15 15.134 15 19V20",stroke:"currentColor",strokeLinecap:"round"}),i.createElement("path",{d:"M13 14V14C13 11.2386 15.2386 9 18 9V9C20.7614 9 23 11.2386 23 14V14.5",stroke:"currentColor",strokeLinecap:"round"}),i.createElement("path",{d:"M8 12C10.2091 12 12 10.2091 12 8C12 5.79086 10.2091 4 8 4C5.79086 4 4 5.79086 4 8C4 10.2091 5.79086 12 8 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M18 9C19.6569 9 21 7.65685 21 6C21 4.34315 19.6569 3 18 3C16.3431 3 15 4.34315 15 6C15 7.65685 16.3431 9 18 9Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},u8=i.forwardRef(c8);var d8=u8,h8=Object.defineProperty,Y1=Object.getOwnPropertySymbols,f8=Object.prototype.hasOwnProperty,m8=Object.prototype.propertyIsEnumerable,J1=(t,e,r)=>e in t?h8(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Vo=(t,e)=>{for(var r in e||(e={}))f8.call(e,r)&&J1(t,r,e[r]);if(Y1)for(var r of Y1(e))m8.call(e,r)&&J1(t,r,e[r]);return t};const p8=(t,e)=>{const r=i.useContext(O),n=Vo(Vo({},r),t);return i.createElement("svg",Vo({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M3 11.5066C3 16.7497 7.25034 21 12.4934 21C16.2209 21 19.4466 18.8518 21 15.7259C12.4934 15.7259 8.27411 11.5066 8.27411 3C5.14821 4.55344 3 7.77915 3 11.5066Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},v8=i.forwardRef(p8);var g8=v8,b8=Object.defineProperty,X1=Object.getOwnPropertySymbols,y8=Object.prototype.hasOwnProperty,w8=Object.prototype.propertyIsEnumerable,eu=(t,e,r)=>e in t?b8(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ho=(t,e)=>{for(var r in e||(e={}))y8.call(e,r)&&eu(t,r,e[r]);if(X1)for(var r of X1(e))w8.call(e,r)&&eu(t,r,e[r]);return t};const x8=(t,e)=>{const r=i.useContext(O),n=Ho(Ho({},r),t);return i.createElement("svg",Ho({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M22 8.86222C22 10.4087 21.4062 11.8941 20.3458 12.9929C17.9049 15.523 15.5374 18.1613 13.0053 20.5997C12.4249 21.1505 11.5042 21.1304 10.9488 20.5547L3.65376 12.9929C1.44875 10.7072 1.44875 7.01723 3.65376 4.73157C5.88044 2.42345 9.50794 2.42345 11.7346 4.73157L11.9998 5.00642L12.2648 4.73173C13.3324 3.6245 14.7864 3 16.3053 3C17.8242 3 19.2781 3.62444 20.3458 4.73157C21.4063 5.83045 22 7.31577 22 8.86222Z",
50stroke:"currentColor",strokeLinejoin:"round"}))},_8=i.forwardRef(x8);var k8=_8,j8=Object.defineProperty,tu=Object.getOwnPropertySymbols,C8=Object.prototype.hasOwnProperty,E8=Object.prototype.propertyIsEnumerable,ru=(t,e,r)=>e in t?j8(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Bo=(t,e)=>{for(var r in e||(e={}))C8.call(e,r)&&ru(t,r,e[r]);if(tu)for(var r of tu(e))E8.call(e,r)&&ru(t,r,e[r]);return t};const S8=(t,e)=>{const r=i.useContext(O),n=Bo(Bo({},r),t);return i.createElement("svg",Bo({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M2 8L11.7317 3.13416C11.9006 3.04971 12.0994 3.0497 12.2683 3.13416L22 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M20 11V19C20 20.1046 19.1046 21 18 21H6C4.89543 21 4 20.1046 4 19V11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},L8=i.forwardRef(S8);var O8=L8,$8=Object.defineProperty,nu=Object.getOwnPropertySymbols,A8=Object.prototype.hasOwnProperty,T8=Object.prototype.propertyIsEnumerable,su=(t,e,r)=>e in t?$8(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Uo=(t,e)=>{for(var r in e||(e={}))A8.call(e,r)&&su(t,r,e[r]);if(nu)for(var r of nu(e))T8.call(e,r)&&su(t,r,e[r]);return t};const P8=(t,e)=>{const r=i.useContext(O),n=Uo(Uo({},r),t);return i.createElement("svg",Uo({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M12 11.5V16.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M12 7.51L12.01 7.49889",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},R8=i.forwardRef(P8);var N8=R8,M8=Object.defineProperty,ou=Object.getOwnPropertySymbols,I8=Object.prototype.hasOwnProperty,D8=Object.prototype.propertyIsEnumerable,au=(t,e,r)=>e in t?M8(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,qo=(t,e)=>{for(var r in e||(e={}))I8.call(e,r)&&au(t,r,e[r]);if(ou)for(var r of ou(e))D8.call(e,r)&&au(t,r,e[r]);return t};const V8=(t,e)=>{const r=i.useContext(O),n=qo(qo({},r),t);return i.createElement("svg",qo({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M12 16C14.2091 16 16 14.2091 16 12C16 9.79086 14.2091 8 12 8C9.79086 8 8 9.79086 8 12C8 14.2091 9.79086 16 12 16Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M3 16V8C3 5.23858 5.23858 3 8 3H16C18.7614 3 21 5.23858 21 8V16C21 18.7614 18.7614 21 16 21H8C5.23858 21 3 18.7614 3 16Z",stroke:"currentColor"}),i.createElement("path",{d:"M17.5 6.51L17.51 6.49889",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},H8=i.forwardRef(V8);var B8=H8,U8=Object.defineProperty,iu=Object.getOwnPropertySymbols,q8=Object.prototype.hasOwnProperty,F8=Object.prototype.propertyIsEnumerable,lu=(t,e,r)=>e in t?U8(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Fo=(t,e)=>{for(var r in e||(e={}))q8.call(e,r)&&lu(t,r,e[r]);if(iu)for(var r of iu(e))F8.call(e,r)&&lu(t,r,e[r]);return t};const z8=(t,e)=>{const r=i.useContext(O),n=Fo(Fo({},r),t);return i.createElement("svg",Fo({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M11 5L14 5M17 5L14 5M14 5L10 19M10 19L7 19M10 19L13 19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},W8=i.forwardRef(z8);var Z8=W8,K8=Object.defineProperty,cu=Object.getOwnPropertySymbols,G8=Object.prototype.hasOwnProperty,Q8=Object.prototype.propertyIsEnumerable,uu=(t,e,r)=>e in t?K8(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,zo=(t,e)=>{for(var r in e||(e={}))G8.call(e,r)&&uu(t,r,e[r]);if(cu)for(var r of cu(e))Q8.call(e,r)&&uu(t,r,e[r]);return t};const Y8=(t,e)=>{const r=i.useContext(O),n=zo(zo({},r),t);return i.createElement("svg",zo({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M3 17.4V6.6C3 6.26863 3.26863 6 3.6 6H16.6789C16.8795 6 17.0668 6.10026 17.1781 6.26718L20.7781 11.6672C20.9125 11.8687 20.9125 12.1313 20.7781 12.3328L17.1781 17.7328C17.0668 17.8997 16.8795 18 16.6789 18H3.6C3.26863 18 3 17.7314 3 17.4Z",stroke:"currentColor"}))},J8=i.forwardRef(Y8);
50var X8=J8,e9=Object.defineProperty,du=Object.getOwnPropertySymbols,t9=Object.prototype.hasOwnProperty,r9=Object.prototype.propertyIsEnumerable,hu=(t,e,r)=>e in t?e9(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Wo=(t,e)=>{for(var r in e||(e={}))t9.call(e,r)&&hu(t,r,e[r]);if(du)for(var r of du(e))r9.call(e,r)&&hu(t,r,e[r]);return t};const n9=(t,e)=>{const r=i.useContext(O),n=Wo(Wo({},r),t);return i.createElement("svg",Wo({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M9 18H15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M10 21H14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M9.00082 15C9.00098 13 8.50098 12.5 7.50082 11.5C6.50067 10.5 6.02422 9.48689 6.00082 8C5.95284 4.95029 8.00067 3 12.0008 3C16.001 3 18.0488 4.95029 18.0008 8C17.9774 9.48689 17.5007 10.5 16.5008 11.5C15.501 12.5 15.001 13 15.0008 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},s9=i.forwardRef(n9);var o9=s9,a9=Object.defineProperty,fu=Object.getOwnPropertySymbols,i9=Object.prototype.hasOwnProperty,l9=Object.prototype.propertyIsEnumerable,mu=(t,e,r)=>e in t?a9(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Zo=(t,e)=>{for(var r in e||(e={}))i9.call(e,r)&&mu(t,r,e[r]);if(fu)for(var r of fu(e))l9.call(e,r)&&mu(t,r,e[r]);return t};const c9=(t,e)=>{const r=i.useContext(O),n=Zo(Zo({},r),t);return i.createElement("svg",Zo({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M14 11.9976C14 9.5059 11.683 7 8.85714 7C8.52241 7 7.41904 7.00001 7.14286 7.00001C4.30254 7.00001 2 9.23752 2 11.9976C2 14.376 3.70973 16.3664 6 16.8714C6.36756 16.9525 6.75006 16.9952 7.14286 16.9952",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M10 11.9976C10 14.4893 12.317 16.9952 15.1429 16.9952C15.4776 16.9952 16.581 16.9952 16.8571 16.9952C19.6975 16.9952 22 14.7577 22 11.9976C22 9.6192 20.2903 7.62884 18 7.12383C17.6324 7.04278 17.2499 6.99999 16.8571 6.99999",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},u9=i.forwardRef(c9);var d9=u9,h9=Object.defineProperty,pu=Object.getOwnPropertySymbols,f9=Object.prototype.hasOwnProperty,m9=Object.prototype.propertyIsEnumerable,vu=(t,e,r)=>e in t?h9(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ko=(t,e)=>{for(var r in e||(e={}))f9.call(e,r)&&vu(t,r,e[r]);if(pu)for(var r of pu(e))m9.call(e,r)&&vu(t,r,e[r]);return t};const p9=(t,e)=>{const r=i.useContext(O),n=Ko(Ko({},r),t);return i.createElement("svg",Ko({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M8 6L20 6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M4 6.01L4.01 5.99889",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M4 12.01L4.01 11.9989",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M4 18.01L4.01 17.9989",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M8 12L20 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M8 18L20 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},v9=i.forwardRef(p9);var g9=v9,b9=Object.defineProperty,gu=Object.getOwnPropertySymbols,y9=Object.prototype.hasOwnProperty,w9=Object.prototype.propertyIsEnumerable,bu=(t,e,r)=>e in t?b9(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Go=(t,e)=>{for(var r in e||(e={}))y9.call(e,r)&&bu(t,r,e[r]);if(gu)for(var r of gu(e))w9.call(e,r)&&bu(t,r,e[r]);return t};const x9=(t,e)=>{const r=i.useContext(O),n=Go(Go({},r),t);return i.createElement("svg",Go({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M16 12H17.4C17.7314 12 18 12.2686 18 12.6V19.4C18 19.7314 17.7314 20 17.4 20H6.6C6.26863 20 6 19.7314 6 19.4V12.6C6 12.2686 6.26863 12 6.6 12H8M16 12V8C16 6.66667 15.2 4 12 4C8.8 4 8 6.66667 8 8V12M16 12H8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},_9=i.forwardRef(x9);var k9=_9,j9=Object.defineProperty,yu=Object.getOwnPropertySymbols,C9=Object.prototype.hasOwnProperty,E9=Object.prototype.propertyIsEnumerable,wu=(t,e,r)=>e in t?j9(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Qo=(t,e)=>{for(var r in e||(e={}))C9.call(e,r)&&wu(t,r,e[r]);if(yu)for(var r of yu(e))E9.call(e,r)&&wu(t,r,e[r]);return t};const S9=(t,e)=>{const r=i.useContext(O),n=Qo(Qo({},r),t);return i.createElement("svg",Qo({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M12 12H19M19 12L16 15M19 12L16 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M19 6V5C19 3.89543 18.1046 3 17 3H7C5.89543 3 5 3.89543 5 5V19C5 20.1046 5.89543 21 7 21H17C18.1046 21 19 20.1046 19 19V18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},L9=i.forwardRef(S9);var O9=L9,$9=Object.defineProperty,xu=Object.getOwnPropertySymbols,A9=Object.prototype.hasOwnProperty,T9=Object.prototype.propertyIsEnumerable,_u=(t,e,r)=>e in t?$9(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Yo=(t,e)=>{for(var r in e||(e={}))A9.call(e,r)&&_u(t,r,e[r]);if(xu)for(var r of xu(e))T9.call(e,r)&&_u(t,r,e[r]);return t};const P9=(t,e)=>{const r=i.useContext(O),n=Yo(Yo({},r),t);return i.createElement("svg",Yo({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M7 9L12 12.5L17 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M2 17V7C2 5.89543 2.89543 5 4 5H20C21.1046 5 22 5.89543 22 7V17C22 18.1046 21.1046 19 20 19H4C2.89543 19 2 18.1046 2 17Z",stroke:"currentColor"}))},R9=i.forwardRef(P9);var N9=R9,M9=Object.defineProperty,ku=Object.getOwnPropertySymbols,I9=Object.prototype.hasOwnProperty,D9=Object.prototype.propertyIsEnumerable,ju=(t,e,r)=>e in t?M9(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Jo=(t,e)=>{for(var r in e||(e={}))I9.call(e,r)&&ju(t,r,e[r]);if(ku)for(var r of ku(e))D9.call(e,r)&&ju(t,r,e[r]);return t};const V9=(t,e)=>{const r=i.useContext(O),n=Jo(Jo({},r),t);return i.createElement("svg",Jo({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M21 7.6V20.4C21 20.7314 20.7314 21 20.4 21H7.6C7.26863 21 7 20.7314 7 20.4V7.6C7 7.26863 7.26863 7 7.6 7H20.4C20.7314 7 21 7.26863 21 7.6Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M18 4H4.6C4.26863 4 4 4.26863 4 4.6V18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M7 16.8L12.4444 15L21 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M16.5 13C15.6716 13 15 12.3284 15 11.5C15 10.6716 15.6716 10 16.5 10C17.3284 10 18 10.6716 18 11.5C18 12.3284 17.3284 13 16.5 13Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},H9=i.forwardRef(V9);var B9=H9,U9=Object.defineProperty,Cu=Object.getOwnPropertySymbols,q9=Object.prototype.hasOwnProperty,F9=Object.prototype.propertyIsEnumerable,Eu=(t,e,r)=>e in t?U9(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Xo=(t,e)=>{for(var r in e||(e={}))q9.call(e,r)&&Eu(t,r,e[r]);if(Cu)for(var r of Cu(e))F9.call(e,r)&&Eu(t,r,e[r]);return t};const z9=(t,e)=>{const r=i.useContext(O),n=Xo(Xo({},r),t);return i.createElement("svg",Xo({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M21 3.6V20.4C21 20.7314 20.7314 21 20.4 21H3.6C3.26863 21 3 20.7314 3 20.4V3.6C3 3.26863 3.26863 3 3.6 3H20.4C20.7314 3 21 3.26863 21 3.6Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M3 16L10 13L21 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M16 10C14.8954 10 14 9.10457 14 8C14 6.89543 14.8954 6 16 6C17.1046 6 18 6.89543 18 8C18 9.10457 17.1046 10 16 10Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},W9=i.forwardRef(z9);var Z9=W9,K9=Object.defineProperty,Su=Object.getOwnPropertySymbols,G9=Object.prototype.hasOwnProperty,Q9=Object.prototype.propertyIsEnumerable,Lu=(t,e,r)=>e in t?K9(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ea=(t,e)=>{for(var r in e||(e={}))G9.call(e,r)&&Lu(t,r,e[r]);if(Su)for(var r of Su(e))Q9.call(e,r)&&Lu(t,r,e[r]);return t};const Y9=(t,e)=>{const r=i.useContext(O),n=ea(ea({},r),t);return i.createElement("svg",ea({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M21 7.6V20.4C21 20.7314 20.7314 21 20.4 21H7.6C7.26863 21 7 20.7314 7 20.4V7.6C7 7.26863 7.26863 7 7.6 7H20.4C20.7314 7 21 7.26863 21 7.6Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M18 4H4.6C4.26863 4 4 4.26863 4 4.6V18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M12.9087 11.5452C12.5088 11.3053 12 11.5933 12 12.0597V15.9403C12 16.4067 12.5088 16.6947 12.9087 16.4548L16.1425 14.5145C16.5309 14.28
5015 16.5309 13.7185 16.1425 13.4855L12.9087 11.5452Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},J9=i.forwardRef(Y9);var X9=J9,e_=Object.defineProperty,Ou=Object.getOwnPropertySymbols,t_=Object.prototype.hasOwnProperty,r_=Object.prototype.propertyIsEnumerable,$u=(t,e,r)=>e in t?e_(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ta=(t,e)=>{for(var r in e||(e={}))t_.call(e,r)&&$u(t,r,e[r]);if(Ou)for(var r of Ou(e))r_.call(e,r)&&$u(t,r,e[r]);return t};const n_=(t,e)=>{const r=i.useContext(O),n=ta(ta({},r),t);return i.createElement("svg",ta({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M14 14V6M14 14L20.1023 17.487C20.5023 17.7156 21 17.4268 21 16.9661V3.03391C21 2.57321 20.5023 2.28439 20.1023 2.51296L14 6M14 14H7C4.79086 14 3 12.2091 3 10V10C3 7.79086 4.79086 6 7 6H14",stroke:"currentColor"}),i.createElement("path",{d:"M7.75716 19.3001L7 14H11L11.6772 18.7401C11.8476 19.9329 10.922 21 9.71716 21C8.73186 21 7.8965 20.2755 7.75716 19.3001Z",stroke:"currentColor"}))},s_=i.forwardRef(n_);var o_=s_,a_=Object.defineProperty,Au=Object.getOwnPropertySymbols,i_=Object.prototype.hasOwnProperty,l_=Object.prototype.propertyIsEnumerable,Tu=(t,e,r)=>e in t?a_(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ra=(t,e)=>{for(var r in e||(e={}))i_.call(e,r)&&Tu(t,r,e[r]);if(Au)for(var r of Au(e))l_.call(e,r)&&Tu(t,r,e[r]);return t};const c_=(t,e)=>{const r=i.useContext(O),n=ra(ra({},r),t);return i.createElement("svg",ra({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M3 5H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M3 12H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M3 19H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},u_=i.forwardRef(c_);var d_=u_,h_=Object.defineProperty,Pu=Object.getOwnPropertySymbols,f_=Object.prototype.hasOwnProperty,m_=Object.prototype.propertyIsEnumerable,Ru=(t,e,r)=>e in t?h_(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,na=(t,e)=>{for(var r in e||(e={}))f_.call(e,r)&&Ru(t,r,e[r]);if(Pu)for(var r of Pu(e))m_.call(e,r)&&Ru(t,r,e[r]);return t};const p_=(t,e)=>{const r=i.useContext(O),n=na(na({},r),t);return i.createElement("svg",na({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M7 12L17 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M7 8L13 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M3 20.2895V5C3 3.89543 3.89543 3 5 3H19C20.1046 3 21 3.89543 21 5V15C21 16.1046 20.1046 17 19 17H7.96125C7.35368 17 6.77906 17.2762 6.39951 17.7506L4.06852 20.6643C3.71421 21.1072 3 20.8567 3 20.2895Z",stroke:"currentColor"}))},v_=i.forwardRef(p_);var g_=v_,b_=Object.defineProperty,Nu=Object.getOwnPropertySymbols,y_=Object.prototype.hasOwnProperty,w_=Object.prototype.propertyIsEnumerable,Mu=(t,e,r)=>e in t?b_(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,sa=(t,e)=>{for(var r in e||(e={}))y_.call(e,r)&&Mu(t,r,e[r]);if(Nu)for(var r of Nu(e))w_.call(e,r)&&Mu(t,r,e[r]);return t};const x_=(t,e)=>{const r=i.useContext(O),n=sa(sa({},r),t);return i.createElement("svg",sa({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M6 12H18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},__=i.forwardRef(x_);var k_=__,j_=Object.defineProperty,Iu=Object.getOwnPropertySymbols,C_=Object.prototype.hasOwnProperty,E_=Object.prototype.propertyIsEnumerable,Du=(t,e,r)=>e in t?j_(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,oa=(t,e)=>{for(var r in e||(e={}))C_.call(e,r)&&Du(t,r,e[r]);if(Iu)for(var r of Iu(e))E_.call(e,r)&&Du(t,r,e[r]);return t};const S_=(t,e)=>{const r=i.useContext(O),n=oa(oa({},r),t);return i.createElement("svg",oa({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M20 12.5C20.2761 12.5 20.5 12.2761 20.5 12C20.5 11.7239 20.2761 11.5 20 11.5C19.7239 11.5 19.5 11.7239 19.5 12C19.5 12.2761 19.7239 12.5 20 12.5Z",fill:"currentColor",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M12 12.5C12.2761 12.5 12.5 12.2761 12.5 12C12.5 11.7239 12.2761 11.5 12 11.5C11.7239 11.5 11.5 11.7239 11.5 12C11.5 12.2761 11.7239 12.5 12 12.5Z",fill:"currentColor",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M4 12.5C4.27614 12.5 4.5 12.2761 4.5 12C4.5 11.7239 4.27614 11.5 4 11.5C3.72386 11.5 3.5 11.7239 3.5 12C3.5 12.2761 3.72386 12.5 4 12.5Z",fill:"currentColor",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},L_=i.forwardRef(S_);var O_=L_,$_=Object.defineProperty,Vu=Object.getOwnPropertySymbols,A_=Object.prototype.hasOwnProperty,T_=Object.prototype.propertyIsEnumerable,Hu=(t,e,r)=>e in t?$_(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,aa=(t,e)=>{for(var r in e||(e={}))A_.call(e,r)&&Hu(t,r,e[r]);if(Vu)for(var r of Vu(e))T_.call(e,r)&&Hu(t,r,e[r]);return t};const P_=(t,e)=>{const r=i.useContext(O),n=aa(aa({},r),t);return i.createElement("svg",aa({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M12 12.5C12.2761 12.5 12.5 12.2761 12.5 12C12.5 11.7239 12.2761 11.5 12 11.5C11.7239 11.5 11.5 11.7239 11.5 12C11.5 12.2761 11.7239 12.5 12 12.5Z",fill:"currentColor",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M12 20.5C12.2761 20.5 12.5 20.2761 12.5 20C12.5 19.7239 12.2761 19.5 12 19.5C11.7239 19.5 11.5 19.7239 11.5 20C11.5 20.2761 11.7239 20.5 12 20.5Z",fill:"currentColor",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M12 4.5C12.2761 4.5 12.5 4.27614 12.5 4C12.5 3.72386 12.2761 3.5 12 3.5C11.7239 3.5 11.5 3.72386 11.5 4C11.5 4.27614 11.7239 4.5 12 4.5Z",fill:"currentColor",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},R_=i.forwardRef(P_);var N_=R_,M_=Object.defineProperty,Bu=Object.getOwnPropertySymbols,I_=Object.prototype.hasOwnProperty,D_=Object.prototype.propertyIsEnumerable,Uu=(t,e,r)=>e in t?M_(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ia=(t,e)=>{for(var r in e||(e={}))I_.call(e,r)&&Uu(t,r,e[r]);if(Bu)for(var r of Bu(e))D_.call(e,r)&&Uu(t,r,e[r]);return t};const V_=(t,e)=>{const r=i.useContext(O),n=ia(ia({},r),t);return i.createElement("svg",ia({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M6 9L12 15L18 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},H_=i.forwardRef(V_);var B_=H_,U_=Object.defineProperty,qu=Object.getOwnPropertySymbols,q_=Object.prototype.hasOwnProperty,F_=Object.prototype.propertyIsEnumerable,Fu=(t,e,r)=>e in t?U_(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,la=(t,e)=>{for(var r in e||(e={}))q_.call(e,r)&&Fu(t,r,e[r]);if(qu)for(var r of qu(e))F_.call(e,r)&&Fu(t,r,e[r]);return t};const z_=(t,e)=>{const r=i.useContext(O),n=la(la({},r),t);return i.createElement("svg",la({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M15 6L9 12L15 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},W_=i.forwardRef(z_);var Z_=W_,K_=Object.defineProperty,zu=Object.getOwnPropertySymbols,G_=Object.prototype.hasOwnProperty,Q_=Object.prototype.propertyIsEnumerable,Wu=(t,e,r)=>e in t?K_(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ca=(t,e)=>{for(var r in e||(e={}))G_.call(e,r)&&Wu(t,r,e[r]);if(zu)for(var r of zu(e))Q_.call(e,r)&&Wu(t,r,e[r]);return t};const Y_=(t,e)=>{const r=i.useContext(O),n=ca(ca({},r),t);return i.createElement("svg",ca({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M9 6L15 12L9 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},J_=i.forwardRef(Y_);var X_=J_,e7=Object.defineProperty,Zu=Object.getOwnPropertySymbols,t7=Object.prototype.hasOwnProperty,r7=Object.prototype.propertyIsEnumerable,Ku=(t,e,r)=>e in t?e7(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ua=(t,e)=>{for(var r in e||(e={}))t7.call(e,r)&&Ku(t,r,e[r]);if(Zu)for(var r of Zu(e))r7.call(e,r)&&Ku(t,r,e[r]);return t};const n7=(t,e)=>{const r=i.useContext(O),n=ua(ua({},r),t);return i.createElement("svg",ua({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M6 15L12 9L18 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},s7=i.forwardRef(n7);var o7=s7,a7=Object.defineProperty,Gu=Object.getOwnPropertySymbols,i7=Object.prototype.hasOwnProperty,l7=Object.prototype.propertyIsEnumerable,Qu=(t,e,r)=>e in t?a7(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,da=(t,e)=>{for(var r in e||(e={}))i7.call(e,r)&&Qu(t,r,e[r]);if(Gu)for(var r of Gu(e))l7.call(e,r)&&Qu(t,r,e[r]);return t};const c7=(t,e)=>{const r=i.useContext(O),n=da(da({},r),t);return i.createElement("svg",da({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M9 5L21 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M5 7L5 3L3.5 4.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M5.5 14L3.5 14L5.40471 11.0371C5.46692 10.9403 5.50215 10.8268 5.47709 10.7145C5.41935 10.4557 5.216 10 4.5 10C3.50001 10 3.5 10.8889 3.5 10.8889C3.5 10.8889 3.5 10.8889 3.5 10.8889L3.5 11.1111",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M4 19L4.5 19C5.05228 19 5.5 19.4477 5.5 20V20C5.5 20.5523 5.05228 21 4.5 21L3.5 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M3.5 17L5.5 17L4 19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M9 12L21 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M9 19L21 19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},u7=i.forwardRef(c7);var d7=u7,h7=Object.defineProperty,Yu=Object.getOwnPropertySymbols,f7=Object.prototype.hasOwnProperty,m7=Object.prototype.propertyIsEnumerable,Ju=(t,e,r)=>e in t?h7(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ha=(t,e)=>{for(var r in e||(e={}))f7.call(e,r)&&Ju(t,r,e[r]);if(Yu)for(var r of Yu(e))m7.call(e,r)&&Ju(t,r,e[r]);return t};const p7=(t,e)=>{const r=i.useContext(O),n=ha(ha({},r),t);return i.createElement("svg",ha({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M21 3L15 3M21 3L12 12M21 3V9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M21 13V19C21 20.1046 20.1046 21 19 21H5C3.89543 21 3 20.1046 3 19V5C3 3.89543 3.89543 3 5 3H11",
50stroke:"currentColor",strokeLinecap:"round"}))},v7=i.forwardRef(p7);var g7=v7,b7=Object.defineProperty,Xu=Object.getOwnPropertySymbols,y7=Object.prototype.hasOwnProperty,w7=Object.prototype.propertyIsEnumerable,ed=(t,e,r)=>e in t?b7(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,fa=(t,e)=>{for(var r in e||(e={}))y7.call(e,r)&&ed(t,r,e[r]);if(Xu)for(var r of Xu(e))w7.call(e,r)&&ed(t,r,e[r]);return t};const x7=(t,e)=>{const r=i.useContext(O),n=fa(fa({},r),t);return i.createElement("svg",fa({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M8 14.5714L6.17716 12.8354C5.53522 12.224 4.51329 12.2705 3.92953 12.9377V12.9377C3.40196 13.5406 3.41749 14.4453 3.96544 15.0298L9.90739 21.3679C10.2855 21.7712 10.8127 22 11.3655 22C12.4505 22 14.2343 22 16 22C18.4 22 20 20 20 18C20 18 20 18 20 18C20 18 20 11.1429 20 9.42859",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M17 9.99995C17 9.99995 17 9.87483 17 9.42852C17 7.1428 20 7.1428 20 9.42852",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M14 9.99998C14 9.99998 14 9.17832 14 8.2857C14 5.99998 17 5.99998 17 8.2857C17 8.50885 17 9.2054 17 9.42855C17 9.87487 17 9.99998 17 9.99998",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M11 10.0001C11 10.0001 11 8.61584 11 7.50005C11 5.21434 14 5.21434 14 7.50005C14 7.50005 14 7.50005 14 7.50005C14 7.50005 14 8.06261 14 8.28577C14 9.17839 14 10.0001 14 10.0001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M8 14.5714V3.5C8 2.67157 8.67157 2 9.5 2V2C10.3284 2 11 2.67056 11 3.49899C11 4.68968 11 6.34156 11 7.5C11 8.61578 11 10 11 10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},_7=i.forwardRef(x7);var k7=_7,j7=Object.defineProperty,td=Object.getOwnPropertySymbols,C7=Object.prototype.hasOwnProperty,E7=Object.prototype.propertyIsEnumerable,rd=(t,e,r)=>e in t?j7(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ma=(t,e)=>{for(var r in e||(e={}))C7.call(e,r)&&rd(t,r,e[r]);if(td)for(var r of td(e))E7.call(e,r)&&rd(t,r,e[r]);return t};const S7=(t,e)=>{const r=i.useContext(O),n=ma(ma({},r),t);return i.createElement("svg",ma({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M4 21.4V2.6C4 2.26863 4.26863 2 4.6 2H16.2515C16.4106 2 16.5632 2.06321 16.6757 2.17574L19.8243 5.32426C19.9368 5.43679 20 5.5894 20 5.74853V21.4C20 21.7314 19.7314 22 19.4 22H4.6C4.26863 22 4 21.7314 4 21.4Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M8 10L16 10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M8 18L16 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M8 14L12 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M16 2V5.4C16 5.73137 16.2686 6 16.6 6H20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},L7=i.forwardRef(S7);var Qf=L7,O7=Object.defineProperty,nd=Object.getOwnPropertySymbols,$7=Object.prototype.hasOwnProperty,A7=Object.prototype.propertyIsEnumerable,sd=(t,e,r)=>e in t?O7(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,pa=(t,e)=>{for(var r in e||(e={}))$7.call(e,r)&&sd(t,r,e[r]);if(nd)for(var r of nd(e))A7.call(e,r)&&sd(t,r,e[r]);return t};const T7=(t,e)=>{const r=i.useContext(O),n=pa(pa({},r),t);return i.createElement("svg",pa({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M20.5096 9.54C20.4243 9.77932 20.2918 9.99909 20.12 10.1863C19.9483 10.3735 19.7407 10.5244 19.5096 10.63C18.2796 11.1806 17.2346 12.0745 16.5002 13.2045C15.7659 14.3345 15.3733 15.6524 15.3696 17C15.3711 17.4701 15.418 17.9389 15.5096 18.4C15.5707 18.6818 15.5747 18.973 15.5215 19.2564C15.4682 19.5397 15.3588 19.8096 15.1996 20.05C15.0649 20.2604 14.8877 20.4403 14.6793 20.5781C14.4709 20.7158 14.2359 20.8085 13.9896 20.85C13.4554 20.9504 12.9131 21.0006 12.3696 21C11.1638 21.0006 9.97011 20.7588 8.85952 20.2891C7.74893 19.8194 6.74405 19.1314 5.90455 18.2657C5.06506 17.4001 4.40807 16.3747 3.97261 15.2502C3.53714 14.1257 3.33208 12.9252 3.36959 11.72C3.4472 9.47279 4.3586 7.33495 5.92622 5.72296C7.49385 4.11097 9.60542 3.14028 11.8496 3H12.3596C14.0353 3.00042 15.6777 3.46869 17.1017 4.35207C18.5257 5.23544 19.6748 6.49885 20.4196 8C20.6488 8.47498 20.6812 9.02129 20.5096 9.52V9.54Z",stroke:"currentColor"}),i.createElement("path",{d:"M8 16.01L8.01 15.9989",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M6 12.01L6.01 11.9989",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M8 8.01L8.01 7.99889",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M12 6.01L12.01 5.99889",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M16 8.01L16.01 7.99889",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},P7=i.forwardRef(T7);var R7=P7,N7=Object.defineProperty,od=Object.getOwnPropertySymbols,M7=Object.prototype.hasOwnProperty,I7=Object.prototype.propertyIsEnumerable,ad=(t,e,r)=>e in t?N7(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,va=(t,e)=>{for(var r in e||(e={}))M7.call(e,r)&&ad(t,r,e[r]);if(od)for(var r of od(e))I7.call(e,r)&&ad(t,r,e[r]);return t};const D7=(t,e)=>{const r=i.useContext(O),n=va(va({},r),t);return i.createElement("svg",va({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M6 12H12M18 12H12M12 12V6M12 12V18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},V7=i.forwardRef(D7);var H7=V7,B7=Object.defineProperty,id=Object.getOwnPropertySymbols,U7=Object.prototype.hasOwnProperty,q7=Object.prototype.propertyIsEnumerable,ld=(t,e,r)=>e in t?B7(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ga=(t,e)=>{for(var r in e||(e={}))U7.call(e,r)&&ld(t,r,e[r]);if(id)for(var r of id(e))q7.call(e,r)&&ld(t,r,e[r]);return t};const F7=(t,e)=>{const r=i.useContext(O),n=ga(ga({},r),t);return i.createElement("svg",ga({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M10 12H5C4.44772 12 4 11.5523 4 11V7.5C4 6.94772 4.44772 6.5 5 6.5H9C9.55228 6.5 10 6.94772 10 7.5V12ZM10 12C10 14.5 9 16 6 17.5",stroke:"currentColor",strokeLinecap:"round"}),i.createElement("path",{d:"M20 12H15C14.4477 12 14 11.5523 14 11V7.5C14 6.94772 14.4477 6.5 15 6.5H19C19.5523 6.5 20 6.94772 20 7.5V12ZM20 12C20 14.5 19 16 16 17.5",stroke:"currentColor",strokeLinecap:"round"}))},z7=i.forwardRef(F7);var W7=z7,Z7=Object.defineProperty,cd=Object.getOwnPropertySymbols,K7=Object.prototype.hasOwnProperty,G7=Object.prototype.propertyIsEnumerable,ud=(t,e,r)=>e in t?Z7(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ba=(t,e)=>{for(var r in e||(e={}))K7.call(e,r)&&ud(t,r,e[r]);if(cd)for(var r of cd(e))G7.call(e,r)&&ud(t,r,e[r]);return t};const Q7=(t,e)=>{const r=i.useContext(O),n=ba(ba({},r),t);return i.createElement("svg",ba({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M21.1679 8C19.6247 4.46819 16.1006 2 11.9999 2C6.81459 2 2.55104 5.94668 2.04932 11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M17 8H21.4C21.7314 8 22 7.73137 22 7.4V3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M2.88146 16C4.42458 19.5318 7.94874 22 12.0494 22C17.2347 22 21.4983 18.0533 22 13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M7.04932 16H2.64932C2.31795 16 2.04932 16.2686 2.04932 16.6V21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Y7=i.forwardRef(Q7);var J7=Y7,X7=Object.defineProperty,dd=Object.getOwnPropertySymbols,ek=Object.prototype.hasOwnProperty,tk=Object.prototype.propertyIsEnumerable,hd=(t,e,r)=>e in t?X7(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ya=(t,e)=>{for(var r in e||(e={}))ek.call(e,r)&&hd(t,r,e[r]);if(dd)for(var r of dd(e))tk.call(e,r)&&hd(t,r,e[r]);return t};const rk=(t,e)=>{const r=i.useContext(O),n=ya(ya({},r),t);return i.createElement("svg",ya({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M21.8883 13.5C21.1645 18.3113 17.013 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C16.1006 2 19.6248 4.46819 21.1679 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M17 8H21.4C21.7314 8 22 7.73137 22 7.4V3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},nk=i.forwardRef(rk);var sk=nk,ok=Object.defineProperty,fd=Object.getOwnPropertySymbols,ak=Object.prototype.hasOwnProperty,ik=Object.prototype.propertyIsEnumerable,md=(t,e,r)=>e in t?ok(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}
50):t[e]=r,wa=(t,e)=>{for(var r in e||(e={}))ak.call(e,r)&&md(t,r,e[r]);if(fd)for(var r of fd(e))ik.call(e,r)&&md(t,r,e[r]);return t};const lk=(t,e)=>{const r=i.useContext(O),n=wa(wa({},r),t);return i.createElement("svg",wa({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M17 17L21 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M3 11C3 15.4183 6.58172 19 11 19C13.213 19 15.2161 18.1015 16.6644 16.6493C18.1077 15.2022 19 13.2053 19 11C19 6.58172 15.4183 3 11 3C6.58172 3 3 6.58172 3 11Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},ck=i.forwardRef(lk);var uk=ck,dk=Object.defineProperty,pd=Object.getOwnPropertySymbols,hk=Object.prototype.hasOwnProperty,fk=Object.prototype.propertyIsEnumerable,vd=(t,e,r)=>e in t?dk(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,xa=(t,e)=>{for(var r in e||(e={}))hk.call(e,r)&&vd(t,r,e[r]);if(pd)for(var r of pd(e))fk.call(e,r)&&vd(t,r,e[r]);return t};const mk=(t,e)=>{const r=i.useContext(O),n=xa(xa({},r),t);return i.createElement("svg",xa({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M22.1525 3.55321L11.1772 21.0044L9.50686 12.4078L2.00002 7.89795L22.1525 3.55321Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M9.45557 12.4436L22.1524 3.55321",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},pk=i.forwardRef(mk);var vk=pk,gk=Object.defineProperty,gd=Object.getOwnPropertySymbols,bk=Object.prototype.hasOwnProperty,yk=Object.prototype.propertyIsEnumerable,bd=(t,e,r)=>e in t?gk(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,_a=(t,e)=>{for(var r in e||(e={}))bk.call(e,r)&&bd(t,r,e[r]);if(gd)for(var r of gd(e))yk.call(e,r)&&bd(t,r,e[r]);return t};const wk=(t,e)=>{const r=i.useContext(O),n=_a(_a({},r),t);return i.createElement("svg",_a({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M22 12L3 20L6.5625 12L3 4L22 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M6.5 12L22 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},xk=i.forwardRef(wk);var _k=xk,kk=Object.defineProperty,yd=Object.getOwnPropertySymbols,jk=Object.prototype.hasOwnProperty,Ck=Object.prototype.propertyIsEnumerable,wd=(t,e,r)=>e in t?kk(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ka=(t,e)=>{for(var r in e||(e={}))jk.call(e,r)&&wd(t,r,e[r]);if(yd)for(var r of yd(e))Ck.call(e,r)&&wd(t,r,e[r]);return t};const Ek=(t,e)=>{const r=i.useContext(O),n=ka(ka({},r),t);return i.createElement("svg",ka({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M19.6224 10.3954L18.5247 7.7448L20 6L18 4L16.2647 5.48295L13.5578 4.36974L12.9353 2H10.981L10.3491 4.40113L7.70441 5.51596L6 4L4 6L5.45337 7.78885L4.3725 10.4463L2 11V13L4.40111 13.6555L5.51575 16.2997L4 18L6 20L7.79116 18.5403L10.397 19.6123L11 22H13L13.6045 19.6132L16.2551 18.5155C16.6969 18.8313 18 20 18 20L20 18L18.5159 16.2494L19.6139 13.598L21.9999 12.9772L22 11L19.6224 10.3954Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Sk=i.forwardRef(Ek);var Lk=Sk,Ok=Object.defineProperty,xd=Object.getOwnPropertySymbols,$k=Object.prototype.hasOwnProperty,Ak=Object.prototype.propertyIsEnumerable,_d=(t,e,r)=>e in t?Ok(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ja=(t,e)=>{for(var r in e||(e={}))$k.call(e,r)&&_d(t,r,e[r]);if(xd)for(var r of xd(e))Ak.call(e,r)&&_d(t,r,e[r]);return t};const Tk=(t,e)=>{const r=i.useContext(O),n=ja(ja({},r),t);return i.createElement("svg",ja({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M18 22C19.6569 22 21 20.6569 21 19C21 17.3431 19.6569 16 18 16C16.3431 16 15 17.3431 15 19C15 20.6569
5016.3431 22 18 22Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M18 8C19.6569 8 21 6.65685 21 5C21 3.34315 19.6569 2 18 2C16.3431 2 15 3.34315 15 5C15 6.65685 16.3431 8 18 8Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M6 15C7.65685 15 9 13.6569 9 12C9 10.3431 7.65685 9 6 9C4.34315 9 3 10.3431 3 12C3 13.6569 4.34315 15 6 15Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M15.5 6.5L8.5 10.5",stroke:"currentColor"}),i.createElement("path",{d:"M8.5 13.5L15.5 17.5",stroke:"currentColor"}))},Pk=i.forwardRef(Tk);var Rk=Pk,Nk=Object.defineProperty,kd=Object.getOwnPropertySymbols,Mk=Object.prototype.hasOwnProperty,Ik=Object.prototype.propertyIsEnumerable,jd=(t,e,r)=>e in t?Nk(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ca=(t,e)=>{for(var r in e||(e={}))Mk.call(e,r)&&jd(t,r,e[r]);if(kd)for(var r of kd(e))Ik.call(e,r)&&jd(t,r,e[r]);return t};const Dk=(t,e)=>{const r=i.useContext(O),n=Ca(Ca({},r),t);return i.createElement("svg",Ca({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M20 13V19C20 20.1046 19.1046 21 18 21H6C4.89543 21 4 20.1046 4 19V13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M12 15V3M12 3L8.5 6.5M12 3L15.5 6.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Vk=i.forwardRef(Dk);var Hk=Vk,Bk=Object.defineProperty,Cd=Object.getOwnPropertySymbols,Uk=Object.prototype.hasOwnProperty,qk=Object.prototype.propertyIsEnumerable,Ed=(t,e,r)=>e in t?Bk(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ea=(t,e)=>{for(var r in e||(e={}))Uk.call(e,r)&&Ed(t,r,e[r]);if(Cd)for(var r of Cd(e))qk.call(e,r)&&Ed(t,r,e[r]);return t};const Fk=(t,e)=>{const r=i.useContext(O),n=Ea(Ea({},r),t);return i.createElement("svg",Ea({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M8.5 11.5L11.5 14.5L16.5 9.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M5 18L3.13036 4.91253C3.05646 4.39524 3.39389 3.91247 3.90398 3.79912L11.5661 2.09641C11.8519 2.03291 12.1481 2.03291 12.4339 2.09641L20.096 3.79912C20.6061 3.91247 20.9435 4.39524 20.8696 4.91252L19 18C18.9293 18.495 18.5 21.5 12 21.5C5.5 21.5 5.07071 18.495 5 18Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},zk=i.forwardRef(Fk);var Sd=zk,Wk=Object.defineProperty,Ld=Object.getOwnPropertySymbols,Zk=Object.prototype.hasOwnProperty,Kk=Object.prototype.propertyIsEnumerable,Od=(t,e,r)=>e in t?Wk(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Sa=(t,e)=>{for(var r in e||(e={}))Zk.call(e,r)&&Od(t,r,e[r]);if(Ld)for(var r of Ld(e))Kk.call(e,r)&&Od(t,r,e[r]);return t};const Gk=(t,e)=>{const r=i.useContext(O),n=Sa(Sa({},r),t);return i.createElement("svg",Sa({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M22 6.99999C19 6.99999 13.5 6.99999 11.5 12.5C9.5 18 5 18 2 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M20 5C20 5 21.219 6.21895 22 7C21.219 7.78105 20 9 20 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M22 18C19 18 13.5 18 11.5 12.5C9.5 6.99999 5 7.00001 2 7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M20 20C20 20 21.219 18.781 22 18C21.219 17.219 20 16 20 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Qk=i.forwardRef(Gk);var Yk=Qk,Jk=Object.defineProperty,$d=Object.getOwnPropertySymbols,Xk=Object.prototype.hasOwnProperty,ej=Object.prototype.propertyIsEnumerable,Ad=(t,e,r)=>e in t?Jk(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,La=(t,e)=>{for(var r in e||(e={}))Xk.call(e,r)&&Ad(t,r,e[r]);if($d)for(var r of $d(e))ej.call(e,r)&&Ad(t,r,e[r]);return t};const tj=(t,e)=>{const r=i.useContext(O),n=La(La({},r),t);return i.createElement("svg",La({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M14 10L2 10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M10 14H2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M6 18H2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M18 6L2 6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M19 10V20M19 20L22 17M19 20L16 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},rj=i.forwardRef(tj);var nj=rj,sj=Object.defineProperty,Td=Object.getOwnPropertySymbols,oj=Object.prototype.hasOwnProperty,aj=Object.prototype.propertyIsEnumerable,Pd=(t,e,r)=>e in t?sj(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Oa=(t,e)=>{for(var r in e||(e={}))oj.call(e,r)&&Pd(t,r,e[r]);if(Td)for(var r of Td(e))aj.call(e,r)&&Pd(t,r,e[r]);return t};const ij=(t,e)=>{const r=i.useContext(O),n=Oa(Oa({},r),t);return i.createElement("svg",Oa({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M1 13.8571V10.1429C1 9.03829 1.89543 8.14286 3 8.14286H5.9C6.09569 8.14286 6.28708 8.08544 6.45046 7.97772L12.4495 4.02228C13.1144 3.5839 14 4.06075 14 4.85714V19.1429C14 19.9392 13.1144 20.4161 12.4495 19.9777L6.45046 16.0223C6.28708 15.9146 6.09569 15.8571 5.9 15.8571H3C1.89543 15.8571 1 14.9617 1 13.8571Z",stroke:"currentColor"}),i.createElement("path",{d:"M17.5 7.5C17.5 7.5 19 9 19 11.5C19 14 17.5 15.5 17.5 15.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M20.5 4.5C20.5 4.5 23 7 23 11.5C23 16 20.5 18.5 20.5 18.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},lj=i.forwardRef(ij);var cj=lj,uj=Object.defineProperty,Rd=Object.getOwnPropertySymbols,dj=Object.prototype.hasOwnProperty,hj=Object.prototype.propertyIsEnumerable,Nd=(t,e,r)=>e in t?uj(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,$a=(t,e)=>{for(var r in e||(e={}))dj.call(e,r)&&Nd(t,r,e[r]);if(Rd)for(var r of Rd(e))hj.call(e,r)&&Nd(t,r,e[r]);return t};const fj=(t,e)=>{const r=i.useContext(O),n=$a($a({},r),t);return i.createElement("svg",$a({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M18 14L20.0005 12M22 10L20.0005 12M20.0005 12L18 10M20.0005 12L22 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M2 13.8571V10.1429C2 9.03829 2.89543 8.14286 4 8.14286H6.9C7.09569 8.14286 7.28708 8.08544 7.45046 7.97772L13.4495 4.02228C14.1144 3.5839 15 4.06075 15 4.85714V19.1429C15 19.9392 14.1144 20.4161 13.4495 19.9777L7.45046 16.0223C7.28708 15.9146 7.09569 15.8571 6.9 15.8571H4C2.89543 15.8571 2 14.9617 2 13.8571Z",stroke:"currentColor"}))},mj=i.forwardRef(fj);var pj=mj,vj=Object.defineProperty,Md=Object.getOwnPropertySymbols,gj=Object.prototype.hasOwnProperty,bj=Object.prototype.propertyIsEnumerable,Id=(t,e,r)=>e in t?vj(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Aa=(t,e)=>{for(var r in e||(e={}))gj.call(e,r)&&Id(t,r,e[r]);if(Md)for(var r of Md(e))bj.call(e,r)&&Id(t,r,e[r]);return t};const yj=(t,e)=>{const r=i.useContext(O),n=Aa(Aa({},r),t);return i.createElement("svg",Aa({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M8 15C12.8747 15 15 12.949 15 8C15 12.949 17.1104 15 22 15C17.1104 15 15 17.1104 15 22C15 17.1104 12.8747 15 8 15Z",stroke:"currentColor",strokeLinejoin:"round"}),i.createElement("path",{d:"M2 6.5C5.13376 6.5 6.5 5.18153 6.5 2C6.5 5.18153 7.85669 6.5 11 6.5C7.85669 6.5 6.5 7.85669 6.5 11C6.5 7.85669 5.13376 6.5 2 6.5Z",stroke:"currentColor",strokeLinejoin:"round"}))},wj=i.forwardRef(yj);var xj=wj,_j=Object.defineProperty,Dd=Object.getOwnPropertySymbols,kj=Object.prototype.hasOwnProperty,jj=Object.prototype.propertyIsEnumerable,Vd=(t,e,r)=>e in t?_j(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ta=(t,e)=>{for(var r in e||(e={}))kj.call(e,r)&&Vd(t,r,e[r]);if(Dd)for(var r of Dd(e))jj.call(e,r)&&Vd(t,r,e[r]);return t};const Cj=(t,e)=>{const r=i.useContext(O),n=Ta(Ta({},r),t);return i.createElement("svg",Ta({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M3 12L21 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M16.2857 3L10.068 3C7.82129 3 6 4.82129 6 7.06797C6 8.81895 7.12044 10.3735 8.78157 10.9272L12 12M6 21H13.932C16.1787 21 18 19.1787 18 16.932C18 16.2409 17.8255 15.5804 17.512 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Ej=i.forwardRef(Cj);var Sj=Ej,Lj=Object.defineProperty,Hd=Object.getOwnPropertySymbols,Oj=Object.prototype.hasOwnProperty,$j=Object.prototype.propertyIsEnumerable,Bd=(t,e,r)=>e in t?Lj(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Pa=(t,e)=>{for(var r in e||(e={}))Oj.call(e,r)&&Bd(t,r,e[r]);if(Hd)for(var r of Hd(e))$j.call(e,r)&&Bd(t,r,e[r]);return t};const Aj=(t,e)=>{const r=i.useContext(O),n=Pa(Pa({},r),t);return i.createElement("svg",Pa({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M12 18C15.3137 18 18 15.3137 18 12C18 8.68629 15.3137 6 12 6C8.68629 6 6 8.68629 6 12C6 15.3137 8.68629 18 12 18Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M22 12L23 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M12 2V1",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M12 23V22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M20 20L19 19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M20 4L19 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M4 20L5 19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M4 4L5 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M1 12L2 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Tj=i.forwardRef(Aj);var Pj=Tj,Rj=Object.defineProperty,Ud=Object.getOwnPropertySymbols,Nj=Object.prototype.hasOwnProperty,Mj=Object.prototype.propertyIsEnumerable,qd=(t,e,r)=>e in t?Rj(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ra=(t,e)=>{for(var r in e||(e={}))Nj.call(e,r)&&qd(t,r,e[r]);if(Ud)for(var r of Ud(e))Mj.call(e,r)&&qd(t,r,e[r]);return t};const Ij=(t,e)=>{const r=i.useContext(O),n=Ra(Ra({},r),t);return i.createElement("svg",Ra({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M20 9L18.005 20.3463C17.8369 21.3026 17.0062 22 16.0353 22H7.96474C6.99379 22 6.1631 21.3026 5.99496 20.3463L4 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M21 6L15.375 6M3 6L8.625 6M8.625 6V4C8.625 2.89543 9.52043 2 10.625 2H13.375C14.4796 2 15.375 2.89543 15.375 4V6M8.625 6L15.375 6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))}
50,Dj=i.forwardRef(Ij);var Vj=Dj,Hj=Object.defineProperty,Fd=Object.getOwnPropertySymbols,Bj=Object.prototype.hasOwnProperty,Uj=Object.prototype.propertyIsEnumerable,zd=(t,e,r)=>e in t?Hj(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Na=(t,e)=>{for(var r in e||(e={}))Bj.call(e,r)&&zd(t,r,e[r]);if(Fd)for(var r of Fd(e))Uj.call(e,r)&&zd(t,r,e[r]);return t};const qj=(t,e)=>{const r=i.useContext(O),n=Na(Na({},r),t);return i.createElement("svg",Na({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M6.74534 4H17.3132C17.3132 4 16.4326 17.2571 12.0293 17.2571C9.87826 17.2571 8.56786 14.0935 7.79011 10.8571C6.97574 7.46844 6.74534 4 6.74534 4Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M17.3132 4C17.3132 4 18.2344 3.01733 19 2.99999C20.5 2.96603 20.7773 4 20.7773 4C21.0709 4.60953 21.3057 6.19429 19.8967 7.65715C18.4876 9.12 16.9103 10.4 16.2684
5010.8571",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M6.74527 4.00001C6.74527 4.00001 5.78547 3.00614 4.99995 3.00001C3.49995 2.9883 3.22264 4.00001 3.22264 4.00001C2.92908 4.60953 2.69424 6.19429 4.1033 7.65715C5.51235 9.12001 7.14823 10.4 7.79004 10.8572",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M8.50662 20C8.50662 18.1714 12.0292 17.2571 12.0292 17.2571C12.0292 17.2571 15.5519 18.1714 15.5519 20H8.50662Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Fj=i.forwardRef(qj);var zj=Fj,Wj=Object.defineProperty,Wd=Object.getOwnPropertySymbols,Zj=Object.prototype.hasOwnProperty,Kj=Object.prototype.propertyIsEnumerable,Zd=(t,e,r)=>e in t?Wj(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ma=(t,e)=>{for(var r in e||(e={}))Zj.call(e,r)&&Zd(t,r,e[r]);if(Wd)for(var r of Wd(e))Kj.call(e,r)&&Zd(t,r,e[r]);return t};const Gj=(t,e)=>{const r=i.useContext(O),n=Ma(Ma({},r),t);return i.createElement("svg",Ma({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M16 5V11C16 13.2091 14.2091 15 12 15V15C9.79086 15 8 13.2091 8 11V5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M6 19L18 19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Qj=i.forwardRef(Gj);var Yj=Qj,Jj=Object.defineProperty,Kd=Object.getOwnPropertySymbols,Xj=Object.prototype.hasOwnProperty,eC=Object.prototype.propertyIsEnumerable,Gd=(t,e,r)=>e in t?Jj(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ia=(t,e)=>{for(var r in e||(e={}))Xj.call(e,r)&&Gd(t,r,e[r]);if(Kd)for(var r of Kd(e))eC.call(e,r)&&Gd(t,r,e[r]);return t};const tC=(t,e)=>{const r=i.useContext(O),n=Ia(Ia({},r),t);return i.createElement("svg",Ia({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M6 20L18 20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M12 16V4M12 4L15.5 7.5M12 4L8.5 7.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},rC=i.forwardRef(tC);var nC=rC,sC=Object.defineProperty,Qd=Object.getOwnPropertySymbols,oC=Object.prototype.hasOwnProperty,aC=Object.prototype.propertyIsEnumerable,Yd=(t,e,r)=>e in t?sC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Da=(t,e)=>{for(var r in e||(e={}))oC.call(e,r)&&Yd(t,r,e[r]);if(Qd)for(var r of Qd(e))aC.call(e,r)&&Yd(t,r,e[r]);return t};const iC=(t,e)=>{const r=i.useContext(O),n=Da(Da({},r),t);return i.createElement("svg",Da({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M17 10H20M23 10H20M20 10V7M20 10V13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M1 20V19C1 15.134 4.13401 12 8 12V12C11.866 12 15 15.134 15 19V20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M8 12C10.2091 12 12 10.2091 12 8C12 5.79086 10.2091 4 8 4C5.79086 4 4 5.79086 4 8C4 10.2091 5.79086 12 8 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},lC=i.forwardRef(iC);var cC=lC,uC=Object.defineProperty,Jd=Object.getOwnPropertySymbols,dC=Object.prototype.hasOwnProperty,hC=Object.prototype.propertyIsEnumerable,Xd=(t,e,r)=>e in t?uC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Va=(t,e)=>{for(var r in e||(e={}))dC.call(e,r)&&Xd(t,r,e[r]);if(Jd)for(var r of Jd(e))hC.call(e,r)&&Xd(t,r,e[r]);return t};const fC=(t,e)=>{const r=i.useContext(O),n=Va(Va({},r),t);return i.createElement("svg",Va({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M18.6213 12.1213L20.7426 10M22.864 7.87868L20.7426 10M20.7426 10L18.6213 7.87868M20.7426 10L22.864 12.1213",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M1 20V19C1 15.134 4.13401 12 8 12V12C11.866 12 15 15.134 15 19V20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M8 12C10.2091 12 12 10.2091 12 8C12 5.79086 10.2091 4 8 4C5.79086 4 4 5.79086 4 8C4 10.2091 5.79086 12 8 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},mC=i.forwardRef(fC);var pC=mC,vC=Object.defineProperty,eh=Object.getOwnPropertySymbols,gC=Object.prototype.hasOwnProperty,bC=Object.prototype.propertyIsEnumerable,th=(t,e,r)=>e in t?vC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ha=(t,e)=>{for(var r in e||(e={}))gC.call(e,r)&&th(t,r,e[r]);if(eh)for(var r of eh(e))bC.call(e,r)&&th(t,r,e[r]);return t};const yC=(t,e)=>{const r=i.useContext(O),n=Ha(Ha({},r),t);return i.createElement("svg",Ha({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M5 20V19C5 15.134 8.13401 12 12 12V12C15.866 12 19 15.134 19 19V20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M12 12C14.2091 12 16 10.2091 16 8C16 5.79086 14.2091 4 12 4C9.79086 4 8 5.79086 8 8C8 10.2091 9.79086 12 12 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},wC=i.forwardRef(yC);var xC=wC,_C=Object.defineProperty,rh=Object.getOwnPropertySymbols,kC=Object.prototype.hasOwnProperty,jC=Object.prototype.propertyIsEnumerable,nh=(t,e,r)=>e in t?_C(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ba=(t,e)=>{for(var r in e||(e={}))kC.call(e,r)&&nh(t,r,e[r]);if(rh)for(var r of rh(e))jC.call(e,r)&&nh(t,r,e[r]);return t};const CC=(t,e)=>{const r=i.useContext(O),n=Ba(Ba({},r),t);return i.createElement("svg",Ba({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M15 12V16.4C15 16.7314 14.7314 17 14.4 17H3.6C3.26863 17 3 16.7314 3 16.4V7.6C3 7.26863 3.26863 7 3.6 7H14.4C14.7314 7 15 7.26863 15 7.6V12ZM15 12L20.0159 7.82009C20.4067 7.49443 21 7.77232 21 8.28103V15.719C21 16.2277 20.4067 16.5056 20.0159 16.1799L15 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},EC=i.forwardRef(CC);var SC=EC,LC=Object.defineProperty,sh=Object.getOwnPropertySymbols,OC=Object.prototype.hasOwnProperty,$C=Object.prototype.propertyIsEnumerable,oh=(t,e,r)=>e in t?LC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ua=(t,e)=>{for(var r in e||(e={}))OC.call(e,r)&&oh(t,r,e[r]);if(sh)for(var r of sh(e))$C.call(e,r)&&oh(t,r,e[r]);return t};const AC=(t,e)=>{const r=i.useContext(O),n=Ua(Ua({},r),t);return i.createElement("svg",Ua({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M14 20.4V14.6C14 14.2686 14.2686 14 14.6 14H20.4C20.7314 14 21 14.2686 21 14.6V20.4C21 20.7314 20.7314 21 20.4 21H14.6C14.2686 21 14 20.7314 14 20.4Z",stroke:"currentColor"}),i.createElement("path",{d:"M3 20.4V14.6C3 14.2686 3.26863 14 3.6 14H9.4C9.73137 14 10 14.2686 10 14.6V20.4C10 20.7314 9.73137 21 9.4 21H3.6C3.26863 21 3 20.7314 3 20.4Z",stroke:"currentColor"}),i.createElement("path",{d:"M14 9.4V3.6C14 3.26863 14.2686 3 14.6 3H20.4C20.7314 3 21 3.26863 21 3.6V9.4C21 9.73137 20.7314 10 20.4 10H14.6C14.2686 10 14 9.73137 14 9.4Z",stroke:"currentColor"}),i.createElement("path",{d:"M3 9.4V3.6C3 3.26863 3.26863 3 3.6 3H9.4C9.73137 3 10 3.26863 10 3.6V9.4C10 9.73137 9.73137 10 9.4 10H3.6C3.26863 10 3 9.73137 3 9.4Z",stroke:"currentColor"}))},TC=i.forwardRef(AC);var PC=TC,RC=Object.defineProperty,ah=Object.getOwnPropertySymbols,NC=Object.prototype.hasOwnProperty,MC=Object.prototype.propertyIsEnumerable,ih=(t,e,r)=>e in t?RC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,qa=(t,e)=>{for(var r in e||(e={}))NC.call(e,r)&&ih(t,r,e[r]);if(ah)for(var r of ah(e))MC.call(e,r)&&ih(t,r,e[r]);return t};const IC=(t,e)=>{const r=i.useContext(O),n=qa(qa({},r),t);return i.createElement("svg",qa({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M20.0429 21H3.95705C2.41902 21 1.45658 19.3364 2.22324 18.0031L10.2662 4.01533C11.0352 2.67792 12.9648 2.67791 13.7338 4.01532L21.7768 18.0031C22.5434 19.3364 21.581 21 20.0429 21Z",stroke:"currentColor",strokeLinecap:"round"}),i.createElement("path",{d:"M12 9V13",stroke:"currentColor",strokeLinecap:"round"}),i.createElement("path",{d:"M12 17.01L12.01 16.9989",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))}
50,DC=i.forwardRef(IC);var VC=DC,HC=Object.defineProperty,lh=Object.getOwnPropertySymbols,BC=Object.prototype.hasOwnProperty,UC=Object.prototype.propertyIsEnumerable,ch=(t,e,r)=>e in t?HC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Fa=(t,e)=>{for(var r in e||(e={}))BC.call(e,r)&&ch(t,r,e[r]);if(lh)for(var r of lh(e))UC.call(e,r)&&ch(t,r,e[r]);return t};const qC=(t,e)=>{const r=i.useContext(O),n=Fa(Fa({},r),t);return i.createElement("svg",Fa({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M16.8198 20.7684L3.75317 3.96836C3.44664 3.57425 3.72749 3 4.22678 3H6.70655C6.8917 3 7.06649 3.08548 7.18016 3.23164L20.2468 20.0316C20.5534 20.4258 20.2725 21 19.7732 21H17.2935C17.1083 21 16.9335 20.9145 16.8198 20.7684Z",stroke:"currentColor"}),i.createElement("path",{d:"M20 3L4 21",stroke:"currentColor",strokeLinecap:"round"}))},FC=i.forwardRef(qC);var zC=FC,WC=Object.defineProperty,uh=Object.getOwnPropertySymbols,ZC=Object.prototype.hasOwnProperty,KC=Object.prototype.propertyIsEnumerable,dh=(t,e,r)=>e in t?WC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,za=(t,e)=>{for(var r in e||(e={}))ZC.call(e,r)&&dh(t,r,e[r]);if(uh)for(var r of uh(e))KC.call(e,r)&&dh(t,r,e[r]);return t};const GC=(t,e)=>{const r=i.useContext(O),n=za(za({},r),t);return i.createElement("svg",za({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M9.17218 14.8284L12.0006 12M14.829 9.17157L12.0006 12M12.0006 12L9.17218 9.17157M12.0006 12L14.829 14.8284",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},QC=i.forwardRef(GC);var YC=QC,JC=Object.defineProperty,hh=Object.getOwnPropertySymbols,XC=Object.prototype.hasOwnProperty,eE=Object.prototype.propertyIsEnumerable,fh=(t,e,r)=>e in t?JC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Wa=(t,e)=>{for(var r in e||(e={}))XC.call(e,r)&&fh(t,r,e[r]);if(hh)for(var r of hh(e))eE.call(e,r)&&fh(t,r,e[r]);return t};const tE=(t,e)=>{const r=i.useContext(O),n=Wa(Wa({},r),t);return i.createElement("svg",Wa({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M6.75827 17.2426L12.0009 12M17.2435 6.75736L12.0009 12M12.0009 12L6.75827 6.75736M12.0009 12L17.2435 17.2426",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},rE=i.forwardRef(tE);var nE=rE,sE=Object.defineProperty,mh=Object.getOwnPropertySymbols,oE=Object.prototype.hasOwnProperty,aE=Object.prototype.propertyIsEnumerable,ph=(t,e,r)=>e in t?sE(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Za=(t,e)=>{for(var r in e||(e={}))oE.call(e,r)&&ph(t,r,e[r]);if(mh)for(var r of mh(e))aE.call(e,r)&&ph(t,r,e[r]);return t};const iE=(t,e)=>{const r=i.useContext(O),n=Za(Za({},r),t);return i.createElement("svg",Za({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M6 18.4V5.6C6 5.26863 6.26863 5 6.6 5H9.4C9.73137 5 10 5.26863 10 5.6V18.4C10 18.7314 9.73137 19 9.4 19H6.6C6.26863 19 6 18.7314 6 18.4Z",fill:"currentColor",stroke:"currentColor"}),i.createElement("path",{d:"M14 18.4V5.6C14 5.26863 14.2686 5 14.6 5H17.4C17.7314 5 18 5.26863 18 5.6V18.4C18 18.7314 17.7314 19 17.4 19H14.6C14.2686 19 14 18.7314 14 18.4Z",fill:"currentColor",stroke:"currentColor"}))},lE=i.forwardRef(iE);var cE=lE,uE=Object.defineProperty,vh=Object.getOwnPropertySymbols,dE=Object.prototype.hasOwnProperty,hE=Object.prototype.propertyIsEnumerable,gh=(t,e,r)=>e in t?uE(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ka=(t,e)=>{for(var r in e||(e={}))dE.call(e,r)&&gh(t,r,e[r]);if(vh)for(var r of vh(e))hE.call(e,r)&&gh(t,r,e[r]);return t};const fE=(t,e)=>{const r=i.useContext(O),n=Ka(Ka({},r),t);return i.createElement("svg",Ka({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:e},n),i.createElement("path",{d:"M6.90588 4.53682C6.50592 4.2998 6 4.58808 6 5.05299V18.947C6 19.4119 6.50592 19.7002 6.90588 19.4632L18.629 12.5162C19.0211 12.2838 19.0211 11.7162 18.629 11.4838L6.90588 4.53682Z",fill:"currentColor",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},mE=i.forwardRef(fE);var pE=mE;const T={"regular/times":{viewBox:"0 0 24 24",inner:'<polygon points="14 13 15 13 15 14 16 14 16 15 17 15 17 16 18 16 18 17 19 17 19 18 20 18 20 19 21 19 21 20 22 20 22 21 21 21 21 22 20 22 20 21 19 21 19 20 18 20 18 19 17 19 17 18 16 18 16 17 15 17 15 16 14 16 14 15 13 15 13 14 11 14 11 15 10 15 10 16 9 16 9 17 8 17 8 18 7 18 7 19 6 19 6 20 5 20 5 21 4 21 4 22 3 22 3 21 2 21 2 20 3 20 3 19 4 19 4 18 5 18 5 17 6 17 6 16 7 16 7 15 8 15 8 14 9 14 9 13 10 13 10 11 9 11 9 10 8 10 8 9 7 9 7 8 6 8 6 7 5 7 5 6 4 6 4 5 3 5 3 4 2 4 2 3 3 3 3 2 4 2 4 3 5 3 5 4 6 4 6 5 7 5 7 6 8 6 8 7 9 7 9 8 10 8 10 9 11 9 11 10 13 10 13 9 14 9 14 8 15 8 15 7 16 7 16 6 17 6 17 5 18 5 18 4 19 4 19 3 20 3 20 2 21 2 21 3 22 3 22 4 21 4 21 5 20 5 20 6 19 6 19 7 18 7 18 8 17 8 17 9 16 9 16 10 15 10 15 11 14 11 14 13"/>'},"regular/trash":{viewBox:"0 0 24 24",inner:'<path d="m4,6v8h1v8h1v1h12v-1h1v-8h1V6H4Zm14,7h-1v8H7v-8h-1v-5h12v5Z"/><polygon points="21 3 21 5 3 5 3 3 4 3 4 2 9 2 9 1 15 1 15 2 20 2 20 3 21 3"/>'},"regular/check":{viewBox:"0 0 24 24",inner:'<polygon points="22 4 22 6 21 6 21 7 20 7 20 8 19 8 19 9 18 9 18 10 17 10 17 11 16 11 16 12 15 12 15 13 14 13 14 14 13 14 13 15 12 15 12 16 11 16 11 17 10 17 10 18 8 18 8 17 7 17 7 16 6 16 6 15 5 15 5 14 4 14 4 13 3 13 3 12 2 12 2 10 4 10 4 11 5 11 5 12 6 12 6 13 7 13 7 14 8 14 8 15 10 15 10 14 11 14 11 13 12 13 12 12 13 12 13 11 14 11 14 10 15 10 15 9 16 9 16 8 17 8 17 7 18 7 18 6 19 6 19 5 20 5 20 4 22 4"/>'},"regular/refresh":{viewBox:"0 0 24 24",inner:'<polygon points="23 14 23 15 22 15 22 17 21 17 21 19 20 19 20 20 19 20 19 21 17 21 17 22 15 22 15 23 9 23 9 22 7 22 7 21 5 21 5 20 3 20 3 21 2 21 2 22 1 22 1 15 8 15 8 16 7 16 7 17 6 17 6 19 7 19 7 20 9 20 9 21 15 21 15 20 17 20 17 19 19 19 19 17 20 17 20 14 23 14"/><polygon points="23 2 23 9 16 9 16 8 17 8 17 7 18 7 18 5 17 5 17 4 15 4 15 3 9 3 9 4 7 4 7 5 5 5 5 7 4 7 4 10 1 10 1 9 2 9 2 7 3 7 3 5 4 5 4 4 5 4 5 3 7 3 7 2 9 2 9 1 15 1 15 2 17 2 17 3 19 3 19 4 21 4 21 3 22 3 22 2 23 2"/>'},"regular/search":{viewBox:"0 0 24 24",inner:'<path d="m22,20v-1h-1v-1h-1v-1h-1v-1h-2v-1h1v-2h1v-6h-1v-2h-1v-1h-1v-1h-1v-1h-2v-1h-6v1h-2v1h-1v1h-1v1h-1v2h-1v6h1v2h1v1h1v1h1v1h2v1h6v-1h2v-1h1v2h1v1h1v1h1v1h1v1h2v-1h1v-2h-1Zm-10-5v1h-4v-1h-2v-1h-1v-2h-1v-4h1v-2h1v-1h2v-1h4v1h2v1h1v2h1v4h-1v2h-1v1h-2Z"/>'},"regular/crown":{viewBox:"0 0 24 24",inner:'<path d="m22,7v-1h-2v1h-1v2h1v1h-1v1h-1v1h-2v-1h-1v-2h-1v-2h-1v-1h1v-2h-1v-1h-2v1h-1v2h1v1h-1v2h-1v2h-1v1h-2v-1h-1v-1h-1v-1h1v-2h-1v-1h-2v1h-1v2h1v1h1v4h1v3h1v2h1v2h12v-2h1v-2h1v-3h1v-4h1v-1h1v-2h-1Zm-4,7v3h-1v2H7v-2h-1v-3h-1v-1h1v1h2v-1h1v-1h1v-1h1v-2h2v2h1v1h1v1h1v1h2v-1h1v1h-1Z"/>'},"regular/folder":{viewBox:"0 0 24 24",inner:'<path d="m22,6v-1h-9v-1h-1v-1h-1v-1H2v1h-1v18h1v1h20v-1h1V6h-1Zm-1,14H3V4h7v1h1v1h1v1h9v13Z"/>'},"regular/lock":{viewBox:"0 0 24 24",inner:'<path d="m21,12v-1h-3v-6h-1v-2h-1v-1h-2v-1h-4v1h-2v1h-1v2h-1v6h-3v1h-1v10h1v1h18v-1h1v-10h-1Zm-1,1v8H4v-8h16ZM9,5v-1h1v-1h4v1h1v1h1v6h-8v-6h1Z"/>'},"regular/plus":{viewBox:"0 0 24 24",inner:'<polygon points="23 11 23 13
5013 13 13 23 11 23 11 13 1 13 1 11 11 11 11 1 13 1 13 11 23 11"/>'},"regular/minus":{viewBox:"0 0 24 24",inner:'<rect x="1" y="11" width="22" height="2"/>'},"regular/eye":{viewBox:"0 0 24 24",inner:'<rect x="16" y="11" width="1" height="2"/><polygon points="16 13 16 15 15 15 15 16 13 16 13 15 14 15 14 14 15 14 15 13 16 13"/><polygon points="16 9 16 11 15 11 15 10 14 10 14 9 13 9 13 8 15 8 15 9 16 9"/><rect x="11" y="16" width="2" height="1"/><polygon points="11 15 11 16 9 16 9 15 8 15 8 13 9 13 9 14 10 14 10 15 11 15"/><polygon points="13 7 13 8 12 8 12 11 11 11 11 12 8 12 8 13 7 13 7 11 8 11 8 9 9 9 9 8 11 8 11 7 13 7"/><path d="m22,11v-2h-1v-1h-1v-1h-1v-1h-2v-1H7v1h-2v1h-1v1h-1v1h-1v2h-1v2h1v2h1v1h1v1h1v1h2v1h10v-1h2v-1h1v-1h1v-1h1v-2h1v-2h-1Zm-1,3h-1v1h-1v1h-1v1h-2v1h-8v-1h-1v-1h-2v-1h-1v-1h-1v-4h1v-1h1v-1h1v-1h2v-1h8v1h2v1h1v1h1v1h1v4Z"/>'},"regular/eye-cross":{viewBox:"0 0 24 24",inner:'<polygon points="15 13 16 13 16 15 15 15 15 16 13 16 13 15 14 15 14 14 15 14 15 13"/><rect x="16" y="11" width="1" height="2"/><polygon points="23 11 23 13 22 13 22 15 21 15 21 16 20 16 20 17 19 17 19 18 17 18 17 19 9 19 9 18 16 18 16 17 18 17 18 16 19 16 19 15 20 15 20 14 21 14 21 10 20 10 20 9 19 9 19 8 21 8 21 9 22 9 22 11 23 11"/><polygon points="2 13 1 13 1 11 2 11 2 9 3 9 3 8 4 8 4 7 5 7 5 6 7 6 7 5 15 5 15 6 8 6 8 7 6 7 6 8 5 8 5 9 4 9 4 10 3 10 3 14 4 14 4 15 5 15 5 16 3 16 3 15 2 15 2 13"/><polygon points="13 7 13 8 12 8 12 9 11 9 11 10 10 10 10 11 9 11 9 12 8 12 8 13 7 13 7 11 8 11 8 9 9 9 9 8 11 8 11 7 13 7"/><polygon points="9 17 8 17 8 18 7 18 7 19 6 19 6 20 5 20 5 21 4 21 4 22 3 22 3 21 2 21 2 20 3 20 3 19 4 19 4 18 5 18 5 17 6 17 6 16 7 16 7 15 8 15 8 14 9 14 9 13 10 13 10 12 11 12 11 11 12 11 12 10 13 10 13 9 14 9 14 8 15 8 15 7 16 7 16 6 17 6 17 5 18 5 18 4 19 4 19 3 20 3 20 2 21 2 21 3 22 3 22 4 21 4 21 5 20 5 20 6 19 6 19 7 18 7 18 8 17 8 17 9 16 9 16 10 15 10 15 11 14 11 14 12 13 12 13 13 12 13 12 14 11 14 11 15 10 15 10 16 9 16 9 17"/><rect x="11" y="16" width="2" height="1"/>'},"regular/bookmark":{viewBox:"0 0 24 24",inner:'<path d="m19,2v-1H5v1h-1v21h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h2v1h1v1h1v1h1v1h1v1h1v1h1v1h1V2h-1Zm-1,16h-1v-1h-1v-1h-1v-1h-1v-1h-4v1h-1v1h-1v1h-1v1h-1V4h1v-1h10v1h1v14Z"/>'},"regular/book-bookmark":{viewBox:"0 0 24 24",inner:'<path d="M20,17h1V16h1V2H21V1H4V2H3V3H2V21H3v1H4v1H21V22h1V21H21V20H20Zm-2,4H5V20H4V18H5V17H18ZM4,3h8v7h1V9h1V8h1V9h1v1h1V3h3V15H4Z"/>'},"regular/grid":{viewBox:"0 0 24 24",inner:'<path d="m10,13H2v1h-1v8h1v1h8v-1h1v-8h-1v-1Zm-1,8H3v-6h6v6Z"/><path d="m10,2v-1H2v1h-1v8h1v1h8v-1h1V2h-1Zm-7,7V3h6v6H3Z"/><path d="m22,13h-8v1h-1v8h1v1h8v-1h1v-8h-1v-1Zm-1,8h-6v-6h6v6Z"/><path d="m22,2v-1h-8v1h-1v8h1v1h8v-1h1V2h-1Zm-1,7h-6V3h6v6Z"/>'},"regular/pencil":{viewBox:"0 0 24 24",inner:'<path d="m22,4v-1h-1v-1h-1v-1h-4v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v7h7v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-4h-1Zm-14,16h-1v1h-3v-1h-1v-3h1v-1h1v1h1v1h1v1h1v1Zm9-9h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v-1h-1v-1h-1v-1h-1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h2v1h1v1h1v2Zm1-3v-1h-1v-1h-1v-2h1v-1h2v1h1v1h1v2h-1v1h-2Z"/>'},"regular/edit":{viewBox:"0 0 24 24",inner:'<polygon points="22 4 22 7 21 7 21 8 20 8 20 7 19 7 19 6 21 6 21 5 20 5 20 4 19 4 19 6 18 6 18 5 17 5 17 4 18 4 18 3 21 3 21 4 22 4"/><polygon points="18 14 18 21 17 21 17 22 2 22 2 21 1 21 1 6 2 6 2 5 14 5 14 6 13 6 13 7 3 7 3 20 16 20 16 15 17 15 17 14 18 14"/><path d="m18,8v-1h-1v-1h-2v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v4h4v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-2h-1Zm-1,2h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-2v-2h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h2v2Z"/>'},"regular/image":{viewBox:"0 0 24 24",inner:'<polygon points="9 6 9 9 8 9 8 10 5 10 5 9 4 9 4 6 5 6 5 5 8 5 8 6 9 6"/><path d="m22,2v-1H2v1h-1v20h1v1h20v-1h1V2h-1Zm-5,12v1h1v1h1v1h1v1h1v3h-13v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v1h1Zm3,1v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v-1h-1v-1h-1v-1h-1v-1h-1V3h18v12h-1Zm-15,3v1h1v1h1v1H3v-4h1v1h1Z"/>'},"regular/clock":{viewBox:"0 0 24 24",inner:'<path d="m22,9v-2h-1v-2h-1v-1h-1v-1h-2v-1h-2v-1h-6v1h-2v1h-2v1h-1v1h-1v2h-1v2h-1v6h1v2h1v2h1v1h1v1h2v1h2v1h6v-1h2v-1h2v-1h1v-1h1v-2h1v-2h1v-6h-1Zm-1,6h-1v2h-1v2h-2v1h-2v1h-6v-1h-2v-1h-2v-2h-1v-2h-1v-6h1v-2h1v-2h2v-1h2v-1h6v1h2v1h2v2h1v2h1v6Z"/><polygon points="16 15 16 16 15 16 15 17 14 17 14 16 13 16 13 15 12 15 12 14 11 14 11 5 13 5 13 13 14 13 14 14 15 14 15 15 16 15"/>'},"regular/sparkles":{viewBox:"0 0 24 24",inner:'<polygon points="23 5 23 6 21 6 21 7 20 7 20 9 19 9 19 7 18 7 18 6 16 6 16 5 18 5 18 4 19 4 19 2 20 2 20 4 21 4 21 5 23 5"/><polygon points="23 18 23 19 21 19 21 20 20 20 20 22 19 22 19 20 18 20 18 19 16 19 16 18 18 18 18 17 19 17 19 15 20 15 20 17 21 17 21 18 23 18"/><path d="M15,11V10H13V9H12V8H11V6H10V4H8V6H7V8H6V9H5v1H3v1H1v2H3v1H5v1H6v1H7v2H8v2h2V18h1V16h1V15h1V14h2V13h2V11Zm-3,2v1H11v1H10v2H8V15H7V14H6V13H4V11H6V10H7V9H8V7h2V9h1v1h1v1h2v2Z"/>'},"regular/globe":{viewBox:"0 0 24 24",inner:'<path d="m22,9v-2h-1v-2h-1v-1h-1v-1h-2v-1h-2v-1h-6v1h-2v1h-2v1h-1v1h-1v2h-1v2h-1v7h1v1h1v2h1v1h1v1h2v1h2v1h6v-1h2v-1h2v-1h1v-1h1v-2h1v-2h1v-6h-1Zm-1,1v4h-3v-4h3Zm-5-6h1v1h2v2h1v1h-3v-3h-1v-1Zm-2,14v2h-1v1h-2v-1h-1v-2h-1v-2h6v2h-1Zm2-8v4h-8v-4h8Zm-7-4h1v-2h1v-1h2v1h1v2h1v2h-6v-2Zm-5,1h1v-2h2v-1h1v1h-1v3h-3v-1Zm-1,7v-4h3v4h-3Zm2,5v-2h-1v-1h3v3h1v1h-1v-1h-2Zm14-2v2h-2v1h-1v-1h1v-3h3v1h-1Z"/>'},"regular/angle-left":{viewBox:"0 0 24 24",inner:'<polygon points="11 13 12 13 12 14 13 14 13 15 14 15 14 16 15 16 15 17 16 17 16 18 17 18 17 19 16 19 16 20 15 20 15 19 14 19 14 18 13 18 13 17 12 17 12 16 11 16 11 15 10 15 10 14 9 14 9 13 8 13 8 11 9 11 9 10 10 10 10 9 11 9 11 8 12 8 12 7 13 7 13 6 14 6 14 5 15 5 15 4 16 4 16 5 17 5 17 6 16 6 16 7 15 7 15 8 14 8 14 9 13 9 13 10 12 10 12 11 11 11 11 13"/>'},"regular/angle-right":{viewBox:"0 0 24 24",inner:'<polygon points="16 11 16 13 15 13 15 14 14 14 14 15 13 15 13 16 12 16 12 17 11 17 11 18 10 18 10 19 9 19 9 20 8 20 8 19 7 19 7 18 8 18 8 17 9 17 9 16 10 16 10 15 11 15 11 14 12 14 12 13 13 13 13 11 12 11 12 10 11 10 11 9 10 9 10 8 9 8 9 7 8 7 8 6 7 6 7 5 8 5 8 4 9 4 9 5 10 5 10 6 11 6 11 7 12 7 12 8 13 8 13 9 14 9 14 10 15 10 15 11 16 11"/>'},"regular/angle-down":{viewBox:"0 0 24 24",inner:'<polygon points="20 8 20 9 19 9 19 10 18 10 18 11 17 11 17 12 16 12 16 13 15 13 15 14 14 14 14 15 13 15 13 16 11 16 11 15 10 15 10 14 9 14 9 13 8 13 8 12 7 12 7 11 6 11 6 10 5 10 5 9 4 9 4 8 5 8 5 7 6 7 6 8 7 8 7 9 8 9 8 10 9 10 9 11 10 11 10 12 11 12 11 13 13 13 13 12 14 12 14 11 15 11 15 10 16 10 16 9 17 9 17 8 18 8 18 7 19 7 19 8 20 8"/>'},"regular/angle-up":{viewBox:"0 0 24 24",inner:'<polygon points="20 15 20 16 19 16 19 17 18 17 18 16 17 16 17 15 16 15 16 14 15 14 15 13 14 13 14 12 13 12 13 11 11 11 11 12 10 12 10 13 9 13 9 14 8 14 8 15 7 15 7 16 6 16 6 17 5 17 5 16 4 16 4 15 5 15 5 14 6 14 6 13 7 13 7 12 8 12 8 11 9 11 9 10 10 10 10 9 11 9 11 8 13 8 13 9 14 9 14 10 15 10 15 11 16 11 16 12 17 12 17 13 18 13 18 14 19 14 19 15 20 15"/>'},"regular/arrow-left":{viewBox:"0 0 24 24",inner:'<polygon points="23 11 23 13 5 13 5 14 6 14 6 15 7 15 7 16 8 16 8 17 9 17 9 18 10 18 10 19 11 19 11 20 12 20 12 21 13 21 13 22 12 22 12 23 11 23 11 22 10 22 10 21 9 21 9 20 8 20 8 19 7 19 7 18 6 18 6 17 5 17 5 16 4 16 4 15 3 15 3 14 2 14 2 13 1 13 1 11 2 11 2 10 3 10 3 9 4 9 4 8 5 8 5 7 6 7 6 6 7 6 7 5 8 5 8 4 9 4 9 3 10 3 10 2 11 2 11 1 12 1 12 2 13 2 13 3 12 3 12 4 11 4 11 5 10 5 10 6 9 6 9 7 8 7 8 8 7 8 7 9 6 9 6 10 5 10 5 11 23 11"/>'},"regular/arrow-right":{viewBox:"0 0 24 24",inner:'<polygon points="23 11 23 13 22 13 22 14 21 14 21 15 20 15 20 16 19 16 19 17 18 17 18 18 17 18 17 19 16 19 16 20 15 20 15 21 14 21 14 22 13 22 13 23 12 23 12 22 11 22 11 21 12 21 12 20 13 20 13 19 14 19 14 18 15 18 15 17 16 17 16 16 17 16 17 15 18 15 18 14 19 14 19 13 1 13 1 11 19 11 19 10 18 10 18 9 17 9 17 8 16 8 16 7 15 7 15 6 14 6 14 5 13 5 13 4 12 4 12 3 11 3 11 2 12 2 12 1 13 1 13 2 14 2 14 3 15 3 15 4 16 4 16 5 17 5 17 6 18 6 18 7 19 7 19 8 20 8 20 9 21 9 21 10 22 10 22 11 23 11"/>'},"regular/arrow-up":{viewBox:"0 0 24 24",inner:'<polygon points="23 11 23 12 22 12 22 13 21 13 21 12 20 12 20 11 19 11 19 10 18 10 18 9 17 9 17 8 16 8 16 7 15 7 15 6 14 6 14 5 13 5 13 23 11 23 11 5 10 5 10 6 9 6 9 7 8 7 8 8 7 8 7 9 6 9 6 10 5 10 5 11 4 11 4 12 3 12 3 13 2 13 2 12 1 12 1 11 2 11 2 10 3 10 3 9 4 9 4 8 5 8 5 7 6 7 6 6 7 6 7 5 8 5 8 4 9 4 9 3 10 3 10 2 11 2 11 1 13 1 13 2 14 2 14 3 15 3 15 4 16 4 16 5 17 5 17 6 18 6 18 7 19 7 19 8 20 8 20 9 21 9 21 10 22 10 22 11 23 11"/>'},"regular/upload":{viewBox:"0 0 24 24",inner:'<polygon points="4 10 4 8 5 8 5 7 6 7 6 6 7 6 7 5 8 5 8 4 9 4 9 3 10 3 10 2 11 2 11 1 13 1 13 2 14 2 14 3 15 3 15 4 16 4 16 5 17 5 17 6 18 6 18 7 19 7 19 8 20 8 20 10 18 10 18 9 17 9 17 8 16 8 16 7 15 7 15 6 14 6 14 5 13 5 13 17 11 17 11 5 10 5 10 6 9 6 9 7 8 7 8 8 7 8 7 9 6 9 6 10 4 10"/><rect x="2" y="20" width="20" height="3"/>'},"regular/download":{viewBox:"0 0 24 24",inner:'<polygon points="5 10 4 10 4 8 6 8 6 9 7 9 7 10 8 10 8 11 9 11 9 12 10 12 10 13 11 13 11 1 13 1 13 13 14 13 14 12 15 12 15 11 16 11 16 10 17 10 17 9 18 9 18 8 20 8 20 10 19 10 19 11 18 11 18 12 17 12 17 13 16 13 16 14 15 14 15 15 14 15 14 16 13 16 13 17 11 17 11 16 10 16 10 15 9 15 9 14 8 14 8 13 7 13 7 12 6 12 6 11 5 11 5 10"/><rect x="2" y="21" width="20" height="2"/>'},"regular/download-alt":{viewBox:"0 0 24 24",inner:'<path d="m22,16v-1h-6v-1h1v-1h1v-1h1v-1h-4V2h-1v-1h-4v1h-1v9h-4v1h1v1h1v1h1v1H2v1h-1v6h1v1h20v-1h1v-6h-1Zm-1,5H3v-4h7v1h1v1h2v-1h1v-1h7v4Zm-12-9h2V3h2v9h2v1h-1v1h-1v1h-2v-1h-1v-1h-1v-1Z"/><rect x="19" y="19" width="1" height="1"/><rect x="17" y="19" width="1" height="1"/>'},"regular/link":{viewBox:"0 0 24 24",inner:'<polygon points="16 10 17 10 17 17 16 17 16 18 15 18 15 19 14 19 14 20 13 20 13 21 12 21 12 22 11 22 11 23 5 23 5 22 4 22 4 21 3 21 3 20 2 20 2 19 1 19 1 14 2
5014 2 13 3 13 3 12 4 12 4 11 5 11 5 14 4 14 4 15 3 15 3 18 4 18 4 19 5 19 5 20 6 20 6 21 10 21 10 20 11 20 11 19 12 19 12 18 13 18 13 17 14 17 14 16 15 16 15 11 14 11 14 10 13 10 13 9 14 9 14 8 15 8 15 9 16 9 16 10"/><polygon points="23 5 23 10 22 10 22 11 21 11 21 12 20 12 20 13 19 13 19 10 20 10 20 9 21 9 21 6 20 6 20 5 19 5 19 4 18 4 18 3 14 3 14 4 13 4 13 5 12 5 12 6 11 6 11 7 10 7 10 8 9 8 9 13 10 13 10 14 11 14 11 15 10 15 10 16 9 16 9 15 8 15 8 14 7 14 7 7 8 7 8 6 9 6 9 5 10 5 10 4 11 4 11 3 12 3 12 2 13 2 13 1 19 1 19 2 20 2 20 3 21 3 21 4 22 4 22 5 23 5"/>'},"regular/heart":{viewBox:"0 0 24 24",inner:'<path d="m22,6v-1h-1v-1h-1v-1h-6v1h-1v1h-2v-1h-1v-1h-6v1h-1v1h-1v1h-1v5h1v1h1v1h1v1h1v1h1v1h1v1h1v1h1v1h1v1h1v1h2v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-5h-1Zm-2,4v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-2v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-3h1v-1h1v-1h4v1h1v1h1v1h2v-1h1v-1h1v-1h4v1h1v1h1v3h-1Z"/>'},"regular/external-link":{viewBox:"0 0 24 24",inner:'<polygon points="20 15 20 22 19 22 19 23 2 23 2 22 1 22 1 5 2 5 2 4 11 4 11 6 3 6 3 21 18 21 18 15 20 15"/><polygon points="23 1 23 9 21 9 21 5 20 5 20 6 19 6 19 7 18 7 18 8 17 8 17 9 16 9 16 10 15 10 15 11 14 11 14 12 13 12 13 13 12 13 12 14 11 14 11 15 10 15 10 16 9 16 9 17 7 17 7 15 8 15 8 14 9 14 9 13 10 13 10 12 11 12 11 11 12 11 12 10 13 10 13 9 14 9 14 8 15 8 15 7 16 7 16 6 17 6 17 5 18 5 18 4 19 4 19 3 15 3 15 1 23 1"/>'},"regular/comment":{viewBox:"0 0 24 24",inner:'<path d="m22,8v-2h-1v-1h-1v-1h-2v-1h-3v-1h-6v1h-3v1h-2v1h-1v1h-1v2h-1v6h1v2h1v2h-1v1h-1v2h5v-1h1v-1h2v1h6v-1h3v-1h2v-1h1v-1h1v-2h1v-6h-1Zm-2,6v2h-2v1h-3v1h-6v-1h-2v1h-1v1h-2v-1h1v-2h-1v-2h-1v-6h1v-2h2v-1h3v-1h6v1h3v1h2v2h1v6h-1Z"/>'},"regular/comment-dots":{viewBox:"0 0 24 24",inner:'<polygon points="19 10 19 12 18 12 18 13 16 13 16 12 15 12 15 10 16 10 16 9 18 9 18 10 19 10"/><polygon points="14 10 14 12 13 12 13 13 11 13 11 12 10 12 10 10 11 10 11 9 13 9 13 10 14 10"/><polygon points="9 10 9 12 8 12 8 13 6 13 6 12 5 12 5 10 6 10 6 9 8 9 8 10 9 10"/><path d="m22,8v-2h-1v-1h-1v-1h-2v-1h-3v-1h-6v1h-3v1h-2v1h-1v1h-1v2h-1v6h1v2h1v2h-1v1h-1v2h5v-1h1v-1h2v1h6v-1h3v-1h2v-1h1v-1h1v-2h1v-6h-1Zm-1,6h-1v2h-2v1h-3v1h-6v-1h-2v1h-1v1h-2v-1h1v-2h-1v-2h-1v-6h1v-2h2v-1h3v-1h6v1h3v1h2v2h1v6Z"/>'},"regular/message":{viewBox:"0 0 24 24",inner:'<path d="m22,2v-1H2v1h-1v16h1v1h6v4h1v-1h1v-1h1v-1h2v-1h9v-1h1V2h-1Zm-1,15H3V3h18v14Z"/>'},"regular/cog":{viewBox:"0 0 24 24",inner:'<path d="m21,10v-1h-1v-2h1v-2h-1v-1h-1v-1h-2v1h-2v-1h-1V1h-4v2h-1v1h-2v-1h-2v1h-1v1h-1v2h1v2h-1v1H1v4h2v1h1v2h-1v2h1v1h1v1h2v-1h2v1h1v2h4v-2h1v-1h2v1h2v-1h1v-1h1v-2h-1v-2h1v-1h2v-4h-2Zm0,3h-1v1h-1v1h-1v2h1v2h-2v-1h-2v1h-1v1h-1v1h-2v-1h-1v-1h-1v-1h-2v1h-2v-2h1v-2h-1v-1h-1v-1h-1v-2h1v-1h1v-1h1v-2h-1v-2h2v1h2v-1h1v-1h1v-1h2v1h1v1h1v1h2v-1h2v2h-1v2h1v1h1v1h1v2Z"/><path d="m16,10v-1h-1v-1h-1v-1h-4v1h-1v1h-1v1h-1v4h1v1h1v1h1v1h4v-1h1v-1h1v-1h1v-4h-1Zm-1,4h-1v1h-4v-1h-1v-4h1v-1h4v1h1v4Z"/>'},"regular/users":{viewBox:"0 0 24 24",inner:'<path d="m19,18v-1h-1v-1h-2v-1h-8v1h-2v1h-1v1h-1v3h1v1h14v-1h1v-3h-1Zm-11,0v-1h8v1h2v2H6v-2h2Z"/><path d="m15,7v-1h-1v-1h-4v1h-1v1h-1v4h1v1h1v1h4v-1h1v-1h1v-4h-1Zm-5,4v-4h4v4h-4Z"/><polygon points="7 5 8 5 8 6 7 6 7 8 5 8 5 7 4 7 4 5 5 5 5 4 7 4 7 5"/><polygon points="7 12 8 12 8 13 2 13 2 12 1 12 1 10 2 10 2 9 7 9 7 12"/><polygon points="17 6 16 6 16 5 17 5 17 4 19 4 19 5 20 5 20 7 19 7 19 8 17 8 17 6"/><polygon points="23 10 23 12 22 12 22 13 16 13 16 12 17 12 17 9 22 9 22 10 23 10"/>'},"regular/user":{viewBox:"0 0 24 24",inner:'<path d="m17,5v-2h-1v-1h-2v-1h-4v1h-2v1h-1v2h-1v4h1v2h1v1h2v1h4v-1h2v-1h1v-2h1v-4h-1Zm-2,4v1h-1v1h-4v-1h-1v-1h-1v-4h1v-1h1v-1h4v1h1v1h1v4h-1Z"/><path d="m21,19v-1h-1v-1h-1v-1h-2v-1H7v1h-2v1h-1v1h-1v1h-1v3h1v1h18v-1h1v-3h-1Zm-16,0v-1h2v-1h10v1h2v1h1v2H4v-2h1Z"/>'},"regular/user-plus":{viewBox:"0 0 24 24",inner:'<polygon points="11 20 12 20 12 21 2 21 2 20 1 20 1 17 2 17 2 16 3 16 3 15 4 15 4 14 11 14 11 15 10 15 10 16 4 16 4 17 3 17 3 19 11 19 11 20"/><path d="M22,15V13H21V12H19V11H16v1H14v1H13v2H12v3h1v2h1v1h2v1h3V21h2V20h1V18h1V15Zm-4,2v2H17V17H15V16h2V14h1v2h2v1Z"/><path d="M12,5V4H11V3H6V4H5V5H4v5H5v1H6v1h5V11h1V10h1V5ZM10,9v1H7V9H6V6H7V5h3V6h1V9Z"/>'},"regular/user-minus":{viewBox:"0 0 24 24",inner:'<path d="M22,15V13H21V12H19V11H16v1H14v1H13v2H12v3h1v2h1v1h2v1h3V21h2V2
500h1V18h1V15Zm-7,2V16h5v1Z"/><polygon points="11 20 12 20 12 21 2 21 2 20 1 20 1 17 2 17 2 16 3 16 3 15 4 15 4 14 11 14 11 15 10 15 10 16 4 16 4 17 3 17 3 19 11 19 11 20"/><path d="M12,5V4H11V3H6V4H5V5H4v5H5v1H6v1h5V11h1V10h1V5ZM11,9H10v1H7V9H6V6H7V5h3V6h1Z"/>'},"solid/play-solid":{viewBox:"0 0 24 24",inner:'<polygon points="22 11 22 13 21 13 21 14 20 14 20 15 18 15 18 16 16 16 16 17 15 17 15 18 13 18 13 19 11 19 11 20 10 20 10 21 8 21 8 22 6 22 6 23 3 23 3 22 2 22 2 2 3 2 3 1 6 1 6 2 8 2 8 3 10 3 10 4 11 4 11 5 13 5 13 6 15 6 15 7 16 7 16 8 18 8 18 9 20 9 20 10 21 10 21 11 22 11"/>'},"solid/pause-solid":{viewBox:"0 0 24 24",inner:'<polygon points="23 2 23 22 22 22 22 23 15 23 15 22 14 22 14 2 15 2 15 1 22 1 22 2 23 2"/><polygon points="9 2 10 2 10 22 9 22 9 23 2 23 2 22 1 22 1 2 2 2 2 1 9 1 9 2"/>'},"regular/exclamation-triangle":{viewBox:"0 0 24 24",inner:'<polygon points="14 11 14 14 13 14 13 17 11 17 11 14 10 14 10 11 14 11"/><rect x="11" y="18" width="2" height="2"/><path d="m22,20v-2h-1v-2h-1v-2h-1v-2h-1v-2h-1v-2h-1v-2h-1v-2h-1v-2h-1v-1h-2v1h-1v2h-1v2h-1v2h-1v2h-1v2h-1v2h-1v2h-1v2h-1v2h-1v2h1v1h20v-1h1v-2h-1Zm-19,1v-1h1v-2h1v-2h1v-2h1v-2h1v-2h1v-2h1v-2h1v-2h2v2h1v2h1v2h1v2h1v2h1v2h1v2h1v2h1v1H3Z"/>'},"regular/paint-brush":{viewBox:"0 0 24 24",inner:'<path d="M19,2V1H4V2H3V16H4v1H9v4h1v1h1v1h2V22h1V21h1V17h4V16h1V2ZM13,21H11V19h2Zm5-7H5V3H7V5H9V3h2V7h2V3h5Z"/>'},"regular/pen-nib":{viewBox:"0 0 24 24",inner:'<path d="m22,4v-1h-1v-1h-1v-1h-3v1h-1v1h-1v1h-1v1h-2v1h-3v1h-3v1h-1v2h-1v3h-1v3h-1v3h-1v3h1v1h3v-1h3v-1h3v-1h3v-1h2v-1h1v-3h1v-3h1v-2h1v-1h1v-1h1v-1h1v-3h-1Zm-6,8v3h-1v2h-1v1h-3v1h-3v1h-2v-1h1v-1h1v-1h1v-1h3v-3h-1v-1h-3v3h-1v1h-1v1h-1v1h-1v-2h1v-3h1v-3h1v-1h2v-1h3v-1h3v1h1v1h1v3h-1Z"/>'},"regular/share":{viewBox:"0 0 24 24",inner:'<path d="m20,9v-1h1v-2h1v-2h-1v-2h-1v-1h-5v1h-1v2h-1v2h-1v1h-1v1h-1v1h-1v-1h-5v1h-1v2h-1v2h1v2h1v1h5v-1h1v1h1v1h1v1h1v2h1v2h1v1h5v-1h1v-2h1v-2h-1v-2h-1v-1h-5v1h-2v-1h-1v-1h-1v-4h1v-1h1v-1h2v1h5Zm-11,4h-1v1h-3v-1h-1v-2h1v-1h3v1h1v2Zm6,5h1v-1h3v1h1v2h-1v1h-3v-1h-1v-2Zm0-14h1v-1h3v1h1v2h-1v1h-3v-1h-1v-2Z"/>'},"regular/share-alt":{viewBox:"0 0 24 24",inner:'<path d="M22,9V8H21V7H20V6H19V5H18V4H17V3H16V2H14V3H13V7H6V8H4V9H3v2H2v2H1v3H2v2H3v2H4v1H5v1H7V20H6V15H7V13h6v4h1v1h2V17h1V16h1V15h1V14h1V13h1V12h1V11h1V9Zm-2,2H19v1H18v1H17v1H16v1H15V11H6v1H5v3H3V13H4V11H5V10H7V9h8V5h1V6h1V7h1V8h1V9h1Z"/>'},"regular/bullet-list":{viewBox:"0 0 24 24",inner:'<rect x="2" y="5" width="3" height="3"/><rect x="2" y="11" width="3" height="3"/><rect x="2" y="17" width="3" height="3"/><rect x="8" y="18" width="14" height="1"/><rect x="8" y="6" width="14" height="1"/><rect x="8" y="12" width="14" height="1"/>'},"regular/numbered-list":{viewBox:"0 0 24 24",inner:'<rect x="4" y="11" width="1" height="2"/><polygon points="4 8 5 8 5 9 2 9 2 8 3 8 3 6 2 6 2 5 3 5 3 4 4 4 4 8"/><polygon points="4 10 4 11 3 11 3 12 2 12 2 10 4 10"/><polygon points="5 16 5 21 2 21 2 20 4 20 4 19 3 19 3 18 4 18 4 17 2 17 2 16 5 16"/><polygon points="3 13 4 13 4 14 5 14 5 15 2 15 2 14 3 14 3 13"/><rect x="9" y="6" width="14" height="1"/><rect x="9" y="12" width="14" height="1"/><rect x="9" y="18" width="14" height="1"/>'},"regular/check-circle":{viewBox:"0 0 24 24",inner:'<polygon points="19 9 19 10 18 10 18 11 17 11 17 12 16 12 16 13 15 13 15 14 14 14 14 15 13 15 13 16 12 16 12 17 10 17 10 16 9 16 9 15 8 15 8 14 7 14 7 13 6 13 6 12 7 12 7 11 8 11 8 12 9 12 9 13 10 13 10 14 12 14 12 13 13 13 13 12 14 12 14 11 15 11 15 10 16 10 16 9 17 9 17 8 18 8 18 9 19 9"/><path d="m22,9v-2h-1v-2h-1v-1h-1v-1h-2v-1h-2v-1h-6v1h-2v1h-2v1h-1v1h-1v2h-1v2h-1v6h1v2h1v2h1v1h1v1h2v1h2v1h6v-1h2v-1h2v-1h1v-1h1v-2h1v-2h1v-6h-1Zm-2,6v2h-1v2h-2v1h-2v1h-6v-1h-2v-1h-2v-2h-1v-2h-1v-6h1v-2h1v-2h2v-1h2v-1h6v1h2v1h2v2h1v2h1v6h-1Z"/>'},"regular/check-box":{viewBox:"0 0 24 24",inner:'<polygon points="19 9 19 10 18 10 18 11 17 11 17 12 16 12 16 13 15 13 15 14 14 14 14 15 13 15 13 16 12 16 12 17 10 17 10 16 9 16 9 15 8 15 8 14 7 14 7 13 6 13 6 12 5 12 5 11 6 11 6 10 7 10 7 9 8 9 8 10 9 10 9 11 10 11 10 12 12 12 12 11 13 11 13 10 14 10 14 9 15 9 15 8 16 8 16 7 17 7 17 8 18 8 18 9 19 9"/><path d="m22,2v-1H2v1h-1v20h1v1h20v-1h1V2h-1Zm-1,19H3V3h18v18Z"/>'},"regular/bell":{viewBox:"0 0 24 24",inner:'<polygon points="15 20 15 22 14 22 14 23 10 23 10 22 9 22 9 20 15 20"/><path d="m21,17v-1h-1v-2h-1v-6h-1v-2h-1v-1h-1v-1h-2v-1h-1V1h-2v2h-1v1h-2v1h-1v1h-1v2h-1v6h-1v2h-1v1h-1v1h1v1h18v-1h1v-1h-1Zm-15-1v-2h1v-6h1v-2h2v-1h4v1h2v2h1v6h1v2h1v1H5v-1h1Z"/>'},"regular/copy":{viewBox:"0 0 24 24",inner:'<polygon points="16 20 16 22 15 22 15 23 3 23 3 22 2 22 2 6 3 6 3 5 6 5 6 20 16 20"/><path d="m16,7V1h-8v1h-1v16h1v1h13v-1h1V7h-6Zm4,10h-11V3h5v6h6v8Z"/><polygon points="22 5 22 6 17 6 17 1 18 1 18 2 19 2 19 3 20 3 20 4 21 4 21 5 22 5"/>'},"regular/archive":{viewBox:"0 0 24 24",inner:'<polygon points="17 16 17 18 16 18 16 19 8 19 8 18 7 18 7 16 8 16 8 15 16 15 16 16 17 16"/><path d="M22,12V11H21V6H20V5H19V4H18V3H17V2H16V1H5V2H4V3H3V8H2V9H1V22H2v1H22V22h1V12ZM8,10V9H7V8H5V4H6V3h8V8h5v3H9V10ZM21,20H20v1H4V20H3V11H4V10H6v1H7v1H9v1H20v1h1Z"/>'},"regular/camera":{viewBox:"0 0 24 24",inner:'<path d="M22,7V6H21V5H17V3H16V2H8V3H7V5H3V6H2V7H1V20H2v1H3v1H21V21h1V20h1V7ZM21,19H20v1H4V19H3V8H4V7H8V6H9V4h6V6h1V7h4V8h1Z"/><polygon points="16 11 16 15 15 15 15 16 14 16 14 17 10 17 10 16 9 16 9 15 8 15 8 11 9 11 9 10 10 10 10 9 14 9 14 10 15 10 15 11 16 11"/><rect x="5" y="8" width="2" height="2"/>'},"regular/video-camera":{viewBox:"0 0 24 24",inner:'<polygon points="23 7 23 17 22 17 22 18 21 18 21 17 20 17 20 16 19 16 19 15 18 15 18 9 19 9 19 8 20 8 20 7 21 7 21 6 22 6 22 7 23 7"/><path d="M15,7V5H3V6H2V7H1V17H2v1H3v1H15V17h1V7Zm-1,9H13v1H4V16H3V8H4V7h9V8h1Z"/>'},"regular/code":{viewBox:"0 0 24 24",inner:'<polygon points="7 7 7 8 6 8 6 9 5 9 5 10 4 10 4 11 3 11 3 13 4 13 4 14 5 14 5 15 6 15 6 16 7 16 7 17 5 17 5 16 4 16 4 15 3 15 3 14 2 14 2 13 1 13 1 11 2 11 2 10 3 10 3 9 4 9 4 8 5 8 5 7 7 7"/><polygon points="15 3 16 3 16 6 15 6 15 9 14 9 14 12 13 12 13 14 12 14 12 17 11 17 11 20 10 20 10 21 9 21 9 18 10 18 10 15 11 15 11 12 12 12 12 10 13 10 13 7 14 7 14 4 15 4 15 3"/><polygon points="23 11 23 13 22 13 22 14 21 14 21 15 20 15 20 16 19 16 19 17 17 17 17 16 18 16 18 15 19 15 19 14 20 14 20 13 21 13 21 11 20 11 20 10 19 10 19 9 18 9 18 8 17 8 17 7 19 7 19 8 20 8 20 9 21 9 21 10 22 10 22 11 23 11"/>'}
50,"regular/home":{viewBox:"0 0 24 24",inner:'<path d="m22,11v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1h-2v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h3v10h1v1h4v-7h6v7h4v-1h1v-10h3v-1h-1Zm-3,0h-1v10h-1v-6h-1v-1h-8v1h-1v6h-1v-10h-1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h2v1h1v1h1v1h1v1h1v1h1v1h1v1Z"/>'},"regular/calendar-alt":{viewBox:"0 0 24 24",inner:'<rect x="6" y="1" width="2" height="6"/><rect x="9" y="4" width="6" height="2"/><rect x="16" y="1" width="2" height="6"/><path d="M22,5V4H19V6h2V9H3V6H5V4H2V5H1V22H2v1H22V22h1V5ZM21,21H3V11H21Z"/>'},"regular/ellipses-vertical":{viewBox:"0 0 24 24",inner:'<path d="m14,18h-1v-1h-2v1h-1v1h-1v2h1v1h1v1h2v-1h1v-1h1v-2h-1v-1Zm-1,3h-2v-2h2v2Z"/><path d="m14,10h-1v-1h-2v1h-1v1h-1v2h1v1h1v1h2v-1h1v-1h1v-2h-1v-1Zm-1,3h-2v-2h2v2Z"/><path d="m14,3v-1h-1v-1h-2v1h-1v1h-1v2h1v1h1v1h2v-1h1v-1h1v-2h-1Zm-3,2v-2h2v2h-2Z"/>'},"regular/ellipses-horizontal":{viewBox:"0 0 24 24",inner:'<path d="m6,10h-1v-1h-2v1h-1v1h-1v2h1v1h1v1h2v-1h1v-1h1v-2h-1v-1Zm-1,3h-2v-2h2v2Z"/><path d="m14,10h-1v-1h-2v1h-1v1h-1v2h1v1h1v1h2v-1h1v-1h1v-2h-1v-1Zm-1,3h-2v-2h2v2Z"/><path d="m22,11v-1h-1v-1h-2v1h-1v1h-1v2h1v1h1v1h2v-1h1v-1h1v-2h-1Zm-3,2v-2h2v2h-2Z"/>'},"regular/envelope":{viewBox:"0 0 24 24",inner:'<path d="m21,5v-1H3v1H1v14h1v1h20v-1h1V5h-2Zm-11,7v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1h14v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-2v-1h-1Zm-6-5v1h1v1h1v1h1v1h1v1h1v1h1v1h1v1h2v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v11H3V7h1Z"/>'},"regular/moon":{viewBox:"0 0 24 24",inner:'<path d="m21,17v1h-2v1h-4v-1h-2v-1h-2v-1h-1v-2h-1v-2h-1v-4h1v-2h1v-2h1v-1h2v-1h2v-1h-5v1h-2v1h-2v1h-1v1h-1v2h-1v2h-1v6h1v2h1v2h1v1h1v1h2v1h2v1h6v-1h2v-1h2v-1h1v-1h1v-2h-1Zm-13,3v-1h-2v-2h-1v-2h-1v-6h1v-2h1v-2h2v1h-1v2h-1v4h1v2h1v2h1v1h1v1h1v1h2v1h2v1h-5v-1h-2Z"/>'},"regular/sun":{viewBox:"0 0 24 24",inner:'<path d="m21,11v-1h1v-1h1v-2h-3v-1h-2v-2h-1V1h-2v1h-1v1h-1v1h-2v-1h-1v-1h-1v-1h-2v3h-1v2h-2v1H1v2h1v1h1v1h1v2h-1v1h-1v1h-1v2h3v1h2v2h1v3h2v-1h1v-1h1v-1h2v1h1v1h1v1h2v-3h1v-2h2v-1h3v-2h-1v-1h-1v-1h-1v-2h1Zm-2,2v1h1v1h1v1h-3v1h-1v1h-1v3h-1v-1h-1v-1h-1v-1h-2v1h-1v1h-1v1h-1v-3h-1v-1h-1v-1h-3v-1h1v-1h1v-1h1v-2h-1v-1h-1v-1h-1v-1h3v-1h1v-1h1v-3h1v1h1v1h1v1h2v-1h1v-1h1v-1h1v2h1v2h1v1h3v1h-1v1h-1v1h-1v2h1Z"/><path d="m16,10v-1h-1v-1h-1v-1h-4v1h-1v1h-1v1h-1v4h1v1h1v1h1v1h4v-1h1v-1h1v-1h1v-4h-1Zm-1,4h-1v1h-4v-1h-1v-4h1v-1h4v1h1v4Z"/>'},"regular/bolt":{viewBox:"0 0 24 24",inner:'<path d="m14,10v-4h1v-3h1V1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h7v4h-1v3h-1v2h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h-7Zm4,2h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v-5h-5v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v5h5v1Z"/>'},"regular/info-circle":{viewBox:"0 0 24 24",inner:'<polygon points="14 15 14 17 10 17 10 15 11 15 11 10 10 10 10 9 13 9 13 15 14 15"/><rect x="11" y="6" width="2" height="2"/><path d="m22,9v-2h-1v-2h-1v-1h-1v-1h-2v-1h-2v-1h-6v1h-2v1h-2v1h-1v1h-1v2h-1v2h-1v6h1v2h1v2h1v1h1v1h2v1h2v1h6v-1h2v-1h2v-1h1v-1h1v-2h1v-2h1v-6h-1Zm-1,6h-1v2h-1v1h-1v1h-1v1h-2v1h-6v-1h-2v-1h-1v-1h-1v-1h-1v-2h-1v-6h1v-2h1v-1h1v-1h1v-1h2v-1h6v1h2v1h1v1h1v1h1v2h1v6Z"/><g id="BG_copy_84"><rect width="24" height="24"/></g>'},"regular/bold":{viewBox:"0 0 24 24",inner:'<path d="m19,13v-1h-2v-1h1v-1h1v-6h-1v-1h-1v-1h-1v-1H5v1h-1v20h1v1h12v-1h1v-1h1v-1h1v-7h-1ZM6,3h10v1h1v6H6V3Zm12,17h-1v1H6v-9h10v1h1v1h1v6Z"/>'},"regular/italics":{viewBox:"0 0 24 24",inner:'<polygon points="22 1 22 3 17 3 17 4 16 4 16 6 15 6 15 8 14 8 14 11 13 11 13 13 12 13 12 16 11 16 11 18 10 18 10 20 9 20 9 21 16 21 16 23 2 23 2 21 7 21 7 20 8 20 8 18 9 18 9 16 10 16 10 13 11 13 11 11 12 11 12 8 13 8 13 6 14 6 14 4 15 4 15 3 8 3 8 1 22 1"/>'},"regular/underline":{viewBox:"0 0 24 24",inner:'<polygon points="22 1 22 16 21 16 21 18 20 18 20 20 19 20 19 21 17 21 17 22 15 22 15 23 9 23 9 22 7 22 7 21 5 21 5 20 4 20 4 18 3 18 3 16 2 16 2 1 4 1 4 16 5 16 5 18 6 18 6 19 7 19 7 20 9 20 9 21 15 21 15 20 17 20 17 19 18 19 18 18 19 18 19 16 20 16 20 1 22 1"/>'},"regular/strike-through":{viewBox:"0 0 24 24",inner:'<rect x="2" y="11" width="20" height="2"/><polygon points="19 2 19 3 9 3 9 4 8 4 8 9 6 9 6 3 7 3 7 2 8 2 8 1 18 1 18 2 19 2"/><polygon points="18 15 18 21 17 21 17 22 16 22 16 23 6 23 6 22 5 22 5 21 15 21 15 20 16 20 16 15 18 15"/>'},"regular/quote-left":{viewBox:"0 0 24 24",inner:'<path d="m22,13v-1h-5v-4h1v-1h2v-1h1v-3h-1v-1h-2v1h-2v1h-1v1h-1v2h-1v14h1v1h8v-1h1v-8h-1Zm-7,0h1v1h5v6h-6v-7Z"/><path d="m10,13v-1h-5v-4h1v-1h2v-1h1v-3h-1v-1h-2v1h-2v1h-1v1h-1v2h-1v14h1v1h8v-1h1v-8h-1Zm-7,0h1v1h5v6H3v-7Z"/>'},"regular/times-circle":{viewBox:"0 0 24 24",inner:'<polygon points="14 13 15 13 15 14 16 14 16 15 17 15 17 16 16 16 16 17 15 17 15 16 14 16 14 15 13 15 13 14 11 14 11 15 10 15 10 16 9 16 9 17 8 17 8 16 7 16 7 15 8 15 8 14 9 14 9 13 10 13 10 11 9 11 9 10 8 10 8 9 7 9 7 8 8 8 8 7 9 7 9 8 10 8 10 9 11 9 11 10 13 10 13 9 14 9 14 8 15 8 15 7 16 7 16 8 17 8 17 9 16 9 16 10 15 10 15 11 14 11 14 13"/><path d="m22,9v-2h-1v-2h-1v-1h-1v-1h-2v-1h-2v-1h-6v1h-2v1h-2v1h-1v1h-1v2h-1v2h-1v6h1v2h1v2h1v1h1v1h2v1h2v1h6v-1h2v-1h2v-1h1v-1h1v-2h1v-2h1v-6h-1Zm-1,6h-1v2h-1v2h-2v1h-2v1h-6v-1h-2v-1h-2v-2h-1v-2h-1v-6h1v-2h1v-2h2v-1h2v-1h6v1h2v1h2v2h1v2h1v6Z"/>'},"regular/shuffle":{viewBox:"0 0 24 24",inner:'<polygon points="8 15 9 15 9 17 8 17 8 18 7 18 7 19 1 19 1 17 7 17 7 16 8 16 8 15"/><polygon points="21 16 22 16 22 18 21 18 21 19 20 19 20 20 19 20 19 21 18 21 18 18 14 18 14 17 13 17 13 16 12 16 12 14 11 14 11 13 10 13 10 11 9 11 9 10 8 10 8 8 7 8 7 7 1 7 1 5 8 5 8 6 9 6 9 8 10 8 10 10 11 10 11 11 12 11 12 13
5013 13 13 14 14 14 14 16 18 16 18 13 19 13 19 14 20 14 20 15 21 15 21 16"/><polygon points="22 5 22 7 21 7 21 8 20 8 20 9 19 9 19 10 18 10 18 7 14 7 14 8 13 8 13 9 12 9 12 7 13 7 13 6 14 6 14 5 18 5 18 2 19 2 19 3 20 3 20 4 21 4 21 5 22 5"/>'},"regular/save":{viewBox:"0 0 24 24",inner:'<polygon points="15 14 15 18 14 18 14 19 10 19 10 18 9 18 9 14 10 14 10 13 14 13 14 14 15 14"/><path d="m22,7v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1H2v1h-1v20h1v1h20v-1h1V7h-1Zm-7,3V3h1v1h1v1h1v1h1v1h1v1h1v13H3V3h1v7h11ZM6,3h7v5h-7V3Z"/>'},"regular/tag":{viewBox:"0 0 24 24",inner:'<polygon points="8 5 8 7 7 7 7 8 5 8 5 7 4 7 4 5 5 5 5 4 7 4 7 5 8 5"/><path d="m22,13v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1H2v1h-1v9h1v1h1v1h1v1h1v1h1v1h1v1h1v1h1v1h1v1h1v1h1v1h1v1h2v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-2h-1ZM3,3h7v1h1v1h1v1h1v1h1v1h1v1h1v1h1v1h1v1h1v1h1v2h-1v1h-1v1h-1v1h-1v1h-1v1h-2v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1V3Z"/>'},"regular/bug":{viewBox:"0 0 24 24",inner:'<polygon points="9 6 8 6 8 4 9 4 9 3 11 3 11 2 13 2 13 3 15 3 15 4 16 4 16 6 15 6 15 7 9 7 9 6"/><path d="M18,12V10h1V9h1V8h1V6H19V7H18V8H17V9H7V8H6V7H5V6H3V8H4V9H5v1H6v2H1v2H6v3H5v1H4v1H3v2H5V20H6V19H7v1H8v1h3v1h2V21h3V20h1V19h1v1h1v1h2V19H20V18H19V17H18V14h5V12Zm-3,6v1H13V13H11v6H9V18H8V12H9V11h6v1h1v6Z"/>'},"regular/lightbulb":{viewBox:"0 0 24 24",inner:'<polygon points="14 21 14 22 13 22 13 23 11 23 11 22 10 22 10 21 14 21"/><rect x="11" y="4" width="2" height="1"/><rect x="10" y="5" width="1" height="1"/><path d="m19,7v-2h-1v-1h-1v-1h-1v-1h-2v-1h-4v1h-2v1h-1v1h-1v1h-1v2h-1v4h1v2h1v1h1v1h1v1h1v4h6v-4h1v-1h1v-1h1v-1h1v-2h1v-4h-1Zm-1,4h-1v2h-1v1h-1v1h-1v1h-4v-1h-1v-1h-1v-1h-1v-2h-1v-4h1v-2h1v-1h2v-1h4v1h2v1h1v2h1v4Z"/><rect x="9" y="6" width="1" height="1"/><rect x="8" y="7" width="1" height="2"/>'},"regular/bars":{viewBox:"0 0 24 24",inner:'<rect x="1" y="11" width="22" height="2"/><rect x="1" y="19" width="22" height="2"/><rect x="1" y="3" width="22" height="2"/>'},"regular/logout":{viewBox:"0 0 24 24",inner:'<polygon points="14 4 16 4 16 5 17 5 17 6 18 6 18 7 19 7 19 8 20 8 20 9 21 9 21 10 22 10 22 11 23 11 23 13 22 13 22 14 21 14 21 15 20 15 20 16 19 16 19 17 18 17 18 18 17 18 17 19 16 19 16 20 14 20 14 18 15 18 15 17 16 17 16 16 17 16 17 15 18 15 18 14 19 14 19 13 7 13 7 11 19 11 19 10 18 10 18 9 17 9 17 8 16 8 16 7 15 7 15 6 14 6 14 4"/><rect x="1" y="2" width="2" height="20"/>'},"regular/sound-on":{viewBox:"0 0 24 24",inner:'<polygon points="17 15 17 14 16 14 16 13 17 13 17 11 16 11 16 10 17 10 17 9 18 9 18 10 19 10 19 14 18 14 18 15 17 15"/><polygon points="23 10 23 14 22 14 22 16 21 16 21 17 20 17 20 18 19 18 19 17 18 17 18 16 19 16 19 15 20 15 20 14 21 14 21 10 20 10 20 9 19 9 19 8 18 8 18 7 19 7 19 6 20 6 20 7 21 7 21 8 22 8 22 10 23 10"/><path d="m11,2v1h-1v1h-1v1h-1v1h-1v1h-1v1H1v8h5v1h1v1h1v1h1v1h1v1h1v1h3V2h-3Zm1,17h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1H3v-4h4v-1h1v-1h1v-1h1v-1h1v-1h1v14Z"/>'},"regular/sound-mute":{viewBox:"0 0 24 24",inner:'<polygon points="22 8 22 10 21 10 21 11 20 11 20 13 21 13 21 14 22 14 22 16 20 16 20 15 19 15 19 14 18 14 18 15 17 15 17 16 15 16 15 14 16 14 16 13 17 13 17 11 16 11 16 10 15 10 15 8 17 8 17 9 18 9 18 10 19 10 19 9 20 9 20 8 22 8"/><path d="m11,2v1h-1v1h-1v1h-1v1h-1v1h-1v1H1v8h5v1h1v1h1v1h1v1h1v1h1v1h3V2h-3ZM3,10h4v-1h1v-1h1v-1h1v-1h1v-1h1v14h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1H3v-4Z"/>'},"regular/chart-line":{viewBox:"0 0 24 24",inner:'<polygon points="22 5 22 12 21 12 21 8 19 8 19 9 18 9 18 10 17 10 17 11 16 11 16 12 15 12 15 13 14 13 14 14 13 14 13 13 12 13 12 12 11 12 11 11 10 11 10 10 9 10 9 11 8 11 8 12 7 12 7 13 6 13 6 11 7 11 7 10 8 10 8 9 9 9 9 8 10 8 10 9 11 9 11 10 12 10 12 11 13 11 13 12 14 12 14 11 15 11 15 10 16 10 16 9 17 9 17 8 18 8 18 7 19 7 19 6 15 6 15 5 22 5"/><polygon points="23 18 23 20 2 20 2 19 1 19 1 4 3 4 3 18 23 18"/>'},"regular/face-grin":{viewBox:"0 0 24 24",inner:'<path d="M16,14v1H8V14H6v3H7v1H8v1h8V18h1V17h1V14Zm-1,3v1H10V17h1V16h5v1Z"/><path d="M22,9V7H21V5H20V4H19V3H17V2H15V1H9V2H7V3H5V4H4V5H3V7H2V9H1v6H2v2H3v2H4v1H5v1H7v1H9v1h6V22h2V21h2V20h1V19h1V17h1V15h1V9Zm-1,6H20v2H19v1H18v1H17v1H15v1H9V20H7V19H6V18H5V17H4V15H3V9H4V7H5V6H6V5H7V4H9V3h6V4h2V5h1V6h1V7h1V9h1Z"/><rect x="7" y="8" width="3" height="3"/><rect x="14" y="8" width="3" height="3"/>'},"regular/bullhorn":{viewBox:"0 0 24 24",inner:'<path d="m22,10v-1h-1V3h-1v-1h-1v1h-1v1h-2v1h-2v1h-2v1H2v1h-1v7h1v1h3v5h1v1h2v-1h1v-5h3v1h2v1h2v1h2v1h1v1h1v-1h1v-6h1v-1h1v-3h-1Zm-3,7h-2v-1h-2v-1h-2v-1h-3v-5h3v-1h2v-1h2v-1h2v11Z"/>'},"regular/sort":{viewBox:"0 0 24 24",inner:'<path d="m19,14v-1H5v1h-1v2h1v1h1v1h1v1h1v1h1v1h1v1h1v1h2v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-2h-1Zm-2,2h-1v1h-1v1h-1v1h-1v1h-2v-1h-1v-1h-1v-1h-1v-1h-1v-1h10v1Z"/><path d="m19,8v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1h-2v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v2h1v1h14v-1h1v-2h-1Zm-2,1H7v-1h1v-1h1v-1h1v-1h1v-1h2v1h1v1h1v1h1v1h1v1Z"/>'},"regular/credit-card":{viewBox:"0 0 24 24",inner:'<path d="m22,5v-1H2v1h-1v14h1v1h20v-1h1V5h-1Zm-1,13H3v-7h18v7Zm0-10H3v-2h18v2Z"/><rect x="4" y="15" width="4" height="1"/><rect x="10" y="15" width="6" height="1"/>'},"regular/trophy":{viewBox:"0 0 24 24",inner:'<path d="m18,4v-2H6v2H1v5h1v2h1v1h1v1h1v1h1v1h3v1h2v3h-4v3h10v-3h-4v-3h2v-1h3v-1h1v-1h1v-1h1v-1h1v-2h1v-5h-5Zm-10,9h-2v-1h-1v-1h-1v-2h-1v-3h2v1h1v2h1v3h1v1Zm0-4v-5h8v5h-1v3h-1v2h-4v-2h-1v-3h-1Zm12,0v2h-1v1h-1v1h-2v-1h1v-2h1v-3h1v-1h2v3h-1Z"/>'},"regular/badge-check":{viewBox:"0 0 24 24",inner:'<path d="m22,10v-1h-1v-4h-1v-1h-1v-1h-4v-1h-1v-1h-4v1h-1v1h-4v1h-1v1h-1v4h-1v1h-1v4h1v1h1v4h1v1h1v1h4v1h1v1h4v-1h1v-1h4v-1h1v-1h1v-4h1v-1h1v-4h-1Zm-1,4h-1v1h-1v4h-4v1h-1v1h-4v-1h-1v-1h-4v-4h-1v-1h-1v-4h1v-1h1v-4h4v-1h1v-1h4v1h1v1h4v4h1v1h1v4Z"/><polygon points="17 9 17 11 16 11 16 12 15 12 15 13 14 13 14 14 13 14 13 15 12 15 12 16 10 16 10 15 9 15 9 14 8 14 8 13 7 13 7 11 8 11 8 10 9 10 9 11 10 11 10 12 12 12 12 11 13 11 13 10 14 10 14 9 15 9 15 8 16 8 16 9 17 9"/>'},"brands/instagram":{viewBox:"0 0 24 24",inner:'<path d="m17,9v-1h-1v-1h-1v-1h-6v1h-1v1h-1v1h-1v6h1v1h1v1h1v1h6v-1
50h1v-1h1v-1h1v-6h-1Zm-1,5h-1v1h-1v1h-4v-1h-1v-1h-1v-4h1v-1h1v-1h4v1h1v1h1v4Z"/><path d="m22,5v-2h-1v-1h-2v-1H5v1h-2v1h-1v2h-1v14h1v2h1v1h2v1h14v-1h2v-1h1v-2h1V5h-1Zm-1,14h-1v1h-1v1H5v-1h-1v-1h-1V5h1v-1h1v-1h14v1h1v1h1v14Z"/><rect x="17" y="5" width="2" height="2"/>'},"brands/x":{viewBox:"0 0 24 24",inner:'<path d="m15.5,10v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h-3v1h-1v1h-1v1h-1v1h-1v1h-1v1h-2v-1h-1v-1h-1v-2h-1v-1h-1v-1H1.5v1h1v1h1v1h1v2h1v1h1v2h1v1h1v2h1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h3v-1h1v-1h1v-1h1v-1h1v-1h1v-1h2v1h1v1h1v2h1v1h1v1h7v-1h-1v-1h-1v-1h-1v-2h-1v-1h-1v-2h-1v-1h-1v-2h-1v-1h1Zm0,4v1h1v2h1v1h1v2h-3v-2h-1v-1h-1v-1h-1v-2h-1v-1h-1v-1h-1v-2h-1v-1h-1v-2h-1v-1h-1v-2h3v1h1v2h1v1h1v2h1v1h1v1h1v2h1Z"/>'},"brands/facebook-square":{viewBox:"0 0 24 24",inner:'<polygon points="23 2 23 22 22 22 22 23 14 23 14 15 16 15 16 14 17 14 17 12 14 12 14 9 15 9 15 8 17 8 17 5 13 5 13 6 11 6 11 8 10 8 10 12 7 12 7 15 10 15 10 23 2 23 2 22 1 22 1 2 2 2 2 1 22 1 22 2 23 2"/>'},"regular/playlist":{viewBox:"0 0 24 24",inner:'<path d="m21,1v1h-2v1h-2v1h-1v12h-4v1h-2v1h-1v3h1v1h2v1h5v-1h1v-1h1v-13h2v-1h2V1h-2Zm-10,19v-1h1v-1h5v2h-1v1h-4v-1h-1Zm8-14v1h-1v-2h1v-1h2v2h-2Z"/><rect x="1" y="15" width="6" height="2"/><rect x="1" y="9" width="12" height="2"/><rect x="1" y="3" width="12" height="2"/>'},"custom/move":{viewBox:"0 0 24 24",inner:'<path d="M11 1h2v1h-2zM10 2h4v1h-4zM9 3h6v1h-6zM8 4h8v1h-8zM11 5h2v1h-2zM11 6h2v1h-2zM11 7h2v1h-2zM4 8h1v1h-1zM11 8h2v1h-2zM19 8h1v1h-1zM3 9h2v1h-2zM11 9h2v1h-2zM19 9h2v1h-2zM2 10h3v1h-3zM11 10h2v1h-2zM19 10h3v1h-3zM1 11h22v1h-22zM1 12h22v1h-22zM2 13h3v1h-3zM11 13h2v1h-2zM19 13h3v1h-3zM3 14h2v1h-2zM11 14h2v1h-2zM19 14h2v1h-2zM4 15h1v1h-1zM11 15h2v1h-2zM19 15h1v1h-1zM11 16h2v1h-2zM11 17h2v1h-2zM11 18h2v1h-2zM8 19h8v1h-8zM9 20h6v1h-6zM10 21h4v1h-4zM11 22h2v1h-2z"/>'},"custom/hand":{viewBox:"0 0 24 24",inner:'<path d="M9 2h3v1h-3zM9 3h3v1h-3zM13 3h3v1h-3zM9 4h3v1h-3zM13 4h3v1h-3zM5 5h3v1h-3zM9 5h3v1h-3zM13 5h3v1h-3zM5 6h3v1h-3zM9 6h3v1h-3zM13 6h3v1h-3zM17 6h3v1h-3zM5 7h3v1h-3zM9 7h3v1h-3zM13 7h3v1h-3zM17 7h3v1h-3zM5 8h3v1h-3zM9 8h3v1h-3zM13 8h3v1h-3zM17 8h3v1h-3zM1 9h3v1h-3zM5 9h3v1h-3zM9 9h3v1h-3zM13 9h3v1h-3zM17 9h3v1h-3zM1 10h3v1h-3zM5 10h3v1h-3zM9 10h3v1h-3zM13 10h3v1h-3zM17 10h3v1h-3zM2 11h6v1h-6zM9 11h3v1h-3zM13 11h3v1h-3zM17 11h3v1h-3zM2 12h18v1h-18zM3 13h17v1h-17zM4 14h3v1h-3zM18 14h2v1h-2zM4 15h3v1h-3zM18 15h2v1h-2zM5 16h2v1h-2zM18 16h2v1h-2zM5 17h2v1h-2zM18 17h2v1h-2zM5 18h2v1h-2zM18 18h2v1h-2zM5 19h2v1h-2zM18 19h2v1h-2zM5 20h15v1h-15zM5 21h15v1h-15z"/>'},"custom/send":{viewBox:"0 0 24 24",inner:'<path d="M2 2h2v1h-2zM2 3h4v1h-4zM2 4h6v1h-6zM2 5h2v1h-2zM6 5h4v1h-4zM2 6h2v1h-2zM8 6h4v1h-4zM2 7h2v1h-2zM10 7h4v1h-4zM2 8h2v1h-2zM12 8h4v1h-4zM3 9h2v1h-2zM14 9h4v1h-4zM4 10h3v1h-3zM16 10h4v1h-4zM5 11h10v1h-10zM18 11h5v1h-5zM6 12h9v1h-9zM18 12h5v1h-5zM4 13h3v1h-3zM16 13h4v1h-4zM3 14h3v1h-3zM14 14h4v1h-4zM2 15h2v1h-2zM12 15h4v1h-4zM2 16h2v1h-2zM10 16h4v1h-4zM2 17h2v1h-2zM8 17h4v1h-4zM2 18h2v1h-2zM6 18h4v1h-4zM2 19h6v1h-6zM2 20h4v1h-4zM2 21h2v1h-2z"/>'},"solid/heart-solid":{viewBox:"0 0 24 24",inner:'<polygon points="23 6 23 11 22 11 22 12 21 12 21 13 20 13 20 14 19 14 19 15 18 15 18 16 17 16 17 17 16 17 16 18 15 18 15 19 14 19 14 20 13 20 13 21 11 21 11 20 10 20 10 19 9 19 9 18 8 18 8 17 7 17 7 16 6 16 6 15 5 15 5 14 4 14 4 13 3 13 3 12 2 12 2 11 1 11 1 6 2 6 2 5 3 5 3 4 4 4 4 3 10 3 10 4 11 4 11 5 13 5 13 4 14 4 14 3 20 3 20 4 21 4 21 5 22 5 22 6 23 6"/>'}},kn=S(nE,T["regular/times"],"1.5em"),tP=S(Vj,T["regular/trash"],"1.5em"),ol=S(g3,T["regular/check"],"1.5em"),Yf=S(J7,T["regular/refresh"],"1.5em"),rP=S(sk,T["regular/refresh"],"1.5em"),Si=S(uk,T["regular/search"],"1.5em"),Zt=S(d6,T["regular/crown"],"1.5em"),vE=S(Zx,T["regular/folder"],"1.5em"),nP=S(Nx,T["regular/folder"],"1.5em"),bh=S(Bx,T["regular/folder"],"1.5em"),gE=S(k9,T["regular/lock"],"1.5em"),sP=S(H7,T["regular/plus"],"1.5em"),oP=S(k_,T["regular/minus"],"1.5em"),Jf=S(dx,T["regular/eye"],"1.5em"),aP=S(ox,T["regular/eye-cross"],"1.5em"),bE=S(kw,T["regular/bookmark"],"1.5em"),yh=S(gw,T["regular/book-bookmark"],"1.5em"),yE=S(PC,T["regular/grid"],"1.5em"),wE=S(B6,T["regular/pencil"],"1.5em"),iP=S(Z6,T["regular/edit"],"1.5em"),lP=S(Z9,T["regular/image"],"1.5em"),cP=S(B9,T["regular/image"],"1.5em"),Xf=S(O3,T["regular/clock"],"1.5em"),em=S(xj,T["regular/sparkles"],"1.5em"),uP=S(Xx,T["regular/globe"],"1.5em"),dP=S(Z_,T["regular/angle-left"],"1.5em"),tm=S(X_,T["regular/angle-right"],"1.5em"),hP=S(B_,T["regular/angle-down"],"1.5em"),fP=S(o7,T["regular/angle-up"],"1.5em"),mP=S(N4,T["regular/arrow-left"],"1.5em"),pP=S(B4,T["regular/arrow-right"],"1.5em"),xE=S(Z4,T["regular/arrow-up"],"1.5em"),wh=S(nC,T["regular/upload"],"1.5em"),vP=S(O6,T["regular/download"],"1.5em"),_E=S(k6,T["regular/download-alt"],"1.5em"),gP=S(d9,T["regular/link"],"1.5em"),bP=S(k8,T["regular/heart"],"1.5em",T["solid/heart-solid"]),yP=S(g7,T["regular/external-link"],"1.5em"),Li=S(Zw,T["regular/comment"],"1.5em"),wP=S(Xw,T["regular/comment-dots"],"1.5em"),kE=S(g_,T["regular/message"],"1.5em"),Oi=S(Lk,T["regular/cog"],"1.5em"),xP=S(d8,T["regular/users"],"1.5em"),Xn=S(xC,T["regular/user"],"1.5em"),_P=S(cC,T["regular/user-plus"],"1.5em"),kP=S(pC,T["regular/user-minus"],"1.5em"),jP=S(pE,T["solid/play-solid"],"1.5em"),CP=S(cE,T["solid/pause-solid"],"1.5em"),Es=S(VC,T["regular/exclamation-triangle"],"1.5em"),EP=S(R7,T["regular/p
50aint-brush"],"1.5em"),SP=S(B3,T["regular/paint-brush"],"1.5em"),LP=S(g6,T["regular/pen-nib"],"1.5em"),OP=S(Hk,T["regular/share"],"1.5em"),$P=S(Rk,T["regular/share-alt"],"1.5em"),AP=S(g9,T["regular/bullet-list"],"1.5em"),TP=S(d7,T["regular/numbered-list"],"1.5em"),jE=S(o3,T["regular/check-circle"],"1.5em"),PP=S(d3,T["regular/check-box"],"1.5em"),$i=S(ow,T["regular/bell"],"1.5em"),RP=S(X3,T["regular/copy"],"1.5em"),CE=S(O4,T["regular/archive"],"1.5em"),NP=S(Bw,T["regular/camera"],"1.5em"),MP=S(SC,T["regular/video-camera"],"1.5em"),IP=S(N3,T["regular/code"],"1.5em"),rm=S(O8,T["regular/home"],"1.5em"),DP=S(Nw,T["regular/calendar-alt"],"1.5em"),VP=S(N_,T["regular/ellipses-vertical"],"1.5em"),HP=S(O_,T["regular/ellipses-horizontal"],"1.5em"),EE=S(N9,T["regular/envelope"],"1.5em"),xh=S(g8,T["regular/moon"],"1.5em"),_h=S(Pj,T["regular/sun"],"1.5em"),BP=S(kx,T["regular/bolt"],"1.5em"),SE=S(N8,T["regular/info-circle"],"1.5em"),UP=S(dw,T["regular/bold"],"1.5em"),qP=S(Z8,T["regular/italics"],"1.5em"),FP=S(Yj,T["regular/underline"],"1.5em"),zP=S(Sj,T["regular/strike-through"],"1.5em"),WP=S(W7,T["regular/quote-left"],"1.5em"),LE=S(YC,T["regular/times-circle"],"1.5em"),ZP=S(Yk,T["regular/shuffle"],"1.5em"),KP=S(Ox,T["regular/save"],"1.5em"),GP=S(X8,T["regular/tag"],"1.5em"),OE=S(Ow,T["regular/bug"],"1.5em"),$E=S(o9,T["regular/lightbulb"],"1.5em"),kh=S(d_,T["regular/bars"],"1.5em"),jh=S(O9,T["regular/logout"],"1.5em"),AE=S(cj,T["regular/sound-on"],"1.5em"),QP=S(pj,T["regular/sound-mute"],"1.5em"),YP=S(o8,T["regular/chart-line"],"1.5em"),JP=S(X6,T["regular/face-grin"],"1.5em"),XP=S(o_,T["regular/bullhorn"],"1.5em");S(nj,T["regular/sort"],"1.5em");const eR=S(o6,T["regular/credit-card"],"1.5em"),tR=S(zj,T["regular/trophy"],"1.5em"),rR=S(X4,T["regular/badge-check"],"1.5em"),TE=S(B8,T["brands/instagram"],"1.5em");S(zC,T["brands/x"],"1.5em");S(gx,T["brands/facebook-square"],"1.5em");const nR=S(vk,T["custom/send"],"1.5em"),sR=S(_k,T["custom/send"],"1.5em"),oR=S(X9,T["regular/playlist"],"1.5em"),nm=S(Z3,T["regular/globe"],"1.5em"),aR=S(N6,T["custom/move"],"1.5em"),iR=S(k7,T["custom/hand"],"1.5em"),Ch=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,Eh=K2,sm=(t,e)=>r=>{var n;if(e?.variants==null)return Eh(t,r?.class,r?.className);const{variants:o,defaultVariants:a}=e,l=Object.keys(o).map(d=>{const f=r?.[d],h=a?.[d];if(f===null)return null;const m=Ch(f)||Ch(h);return o[d][m]}),c=r&&Object.entries(r).reduce((d,f)=>{let[h,m]=f;return m===void 0||(d[h]=m),d},{}),u=e==null||(n=e.compoundVariants)===null||n===void 0?void 0:n.reduce((d,f)=>{let{class:h,className:m,...v}=f;return Object.entries(v).every(p=>{let[w,y]=p;return Array.isArray(y)?y.includes({...a,...c}[w]):{...a,...c}[w]===y})?[...d,h,m]:d},[]);return Eh(t,l,u,r?.class,r?.className)},PE=sm("inline-flex items-center justify-center gap-2 whitespace-nowrap text-xs font-medium uppercase tracking-wide transition-[background-color,color,border-color,box-shadow,transform,opacity] duration-300 ease-[cubic-bezier(0.16,1,0.3,1)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 active:scale-[0.97]",{variants:{variant:{default:"border border-foreground
50/40 bg-transparent text-foreground hover:bg-foreground hover:text-background hover:border-foreground rounded-full",filled:"bg-foreground text-background hover:opacity-90 rounded-full shadow-elev-1 hover:shadow-elev-2",outline:"border border-border bg-transparent text-foreground hover:border-foreground/60 hover:bg-foreground/[0.03] rounded-full",ghost:"bg-transparent text-foreground hover:bg-foreground/[0.06] rounded-full",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 rounded-full",destructive:"border border-destructive text-destructive hover:bg-destructive hover:text-destructive-foreground rounded-full",link:"text-foreground underline-offset-4 hover:underline normal-case active:scale-100",pill:"bg-foreground text-background rounded-full","pill-outline":"border border-foreground/30 bg-transparent text-foreground hover:border-foreground/60 rounded-full"},size:{default:"h-10 px-5 py-2",sm:"h-8 px-4 text-xs",lg:"h-12 px-8 text-sm",icon:"h-10 w-10 rounded-full","icon-sm":"h-8 w-8 rounded-full"}},defaultVariants:{variant:"default",size:"default"}}),bn=i.forwardRef(({className:t,variant:e,size:r,asChild:n=!1,...o},a)=>{const l=n?op:"button";return s.jsx(l,{"data-ui":"button","data-variant":e||"default","data-size":r||"default",className:re(PE({variant:e,size:r,className:t})),ref:a,...o})});bn.displayName="Button";class al extends i.Component{constructor(e){super(e),this.state={hasError:!1,error:null,errorInfo:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidUpdate(e){this.state.hasError&&e.resetKey!==this.props.resetKey&&this.setState({hasError:!1,error:null,errorInfo:null})}componentDidCatch(e,r){this.setState({errorInfo:r});const n=e.message?.includes("Failed to fetch dynamically imported module")||e.message?.includes("Loading chunk")||e.message?.includes("Loading CSS chunk")||e.message?.includes("is not a valid JavaScript MIME type");if(n){const o="chunk_error_reload",a=sessionStorage.getItem(o),l=Date.now();if(!a||l-parseInt(a)>1e4){console.log("[ErrorBoundary] Chunk load error detected, reloading to get fresh build..."),sessionStorage.setItem(o,l.toString()),window.location.reload();return}}A(async()=>{const{reportError:o}=await Promise.resolve().then(()=>bS);return{reportError:o}},void 0).then(({reportError:o})=>{o("render",e.message,{componentStack:r.componentStack?.slice(0,500),isChunkError:n},"ErrorBoundary")}).catch(()=>{}),console.error("ErrorBoundary caught an error:",e,r)}handleReload=()=>{sessionStorage.removeItem("chunk_error_reload"),window.location.reload()};handleGoHome=()=>{sessionStorage.removeItem("chunk_error_reload"),window.location.href="/"};handleRetry=()=>{this.setState({hasError:!1,error:null,errorInfo:null})};isChunkError(){const e=this.state.error?.message||"";return e.includes("Failed to fetch dynamically imported module")||e.includes("Loading chunk")||e.includes("Loading CSS chunk")||e.includes("Importing a module script failed")||e.includes("is not a valid JavaScript MIME type")}render(){if(this.state.hasError){const e=this.isChunkError();if(e){const r=sessionStorage.getItem("chunk_error_reload");if(!(r&&Date.now()-parseInt(r,10)<1e4))return s.jsx("div",{className:"min-h-[50vh] flex items-center justify-center",children:s.jsx("div",{className:"h-5 w-5 animate-spin rounded-full border-2 border-muted-foreground border-t-transparent"})})}if(this.props.fallback)return this.props.fallback;if(e){const r=sessionStorage.getItem("chunk_error_reload");if(!(r&&Date.now()-parseInt(r,10)<1e4))return s.jsx("div",{className:"min-h-screen flex items-center justify-center",children:s.jsx("div",{className:"h-5 w-5 animate-spin rounded-full border-2 border-muted-foreground border-t-transparent"})})}return s.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background p-4",children:s.jsxs("div",{className:"max-w-md w-full text-center space-y-6",children:[s.jsx("div",{className:"flex justify-center",children:s.jsx("div",{className:"w-16 h-16 rounded-full bg-destructive/10 flex items-center justify-center",children:s.jsx(Es,{className:"w-8 h-8 text-destructive"})})}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("h1",{className:"text-2xl font-bold text-foreground",children:e?"Update Available":"Something went wrong"}),s.jsx("p",{className:"text-muted-foreground",children:e?"A new version of the app is available. Please reload to continue."
50:"We're sorry, but something unexpected happened. Please try again or go back to the home page."})]}),!1,s.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 justify-center",children:[s.jsxs(bn,{onClick:this.handleReload,variant:"default",children:[s.jsx(Yf,{className:"w-4 h-4 mr-2"}),e?"Reload App":"Try Again"]}),!e&&s.jsxs(bn,{onClick:this.handleGoHome,variant:"outline",children:[s.jsx(rm,{className:"w-4 h-4 mr-2"}),"Go Home"]})]}),!e&&s.jsx("p",{className:"text-xs text-muted-foreground",children:"If this problem persists, please contact support."})]})})}return this.props.children}}const RE=i.forwardRef(function({children:e},r){const{isPro:n,isLoading:o,hasConfirmedStatus:a}=ks(),{theme:l,setTheme:c,resetToLight:u}=js(),{user:d}=ke(),f=i.useRef(null),{data:h}=he({queryKey:["theme-preference",d?.id],enabled:!!d?.id&&n&&a,queryFn:async()=>{const{data:m,error:v}=await k.from("app_users").select("theme_preference").eq("id",d.id).maybeSingle();if(v)throw v;return m?.theme_preference==="dark"?"dark":"light"},retry:2,staleTime:1/0,throwOnError:!1});return i.useEffect(()=>{if(!d?.id){f.current=null;return}!n||!a||!h||f.current!==d.id&&(f.current=d.id,c(h))},[d?.id,n,a,h,c]),i.useEffect(()=>{o||a&&!n&&l==="dark"&&u()},[n,o,a,l,u]),s.jsx(s.Fragment,{children:e})});function Sh(){return s.jsx("div",{className:"brand-loader","aria-hidden":"true",children:s.jsxs("div",{className:"brand-loader-stage",children:[s.jsx("img",{className:"brand-loader-dragon",src:"/images/preloader/dragon.webp",alt:"",width:416,height:293,draggable:!1}),s.jsx("img",{className:"brand-loader-ring",src:"/images/preloader/ring.webp",alt:"",width:520,height:366,draggable:!1})]})})}function st(){return s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsxs("div",{className:"container-centered pt-8 pb-4 text-center",children:[s.jsx("div",{className:"h-7 w-32 mx-auto rounded bg-secondary relative overflow-hidden",children:s.jsx("div",{className:"absolute inset-0 skeleton-shimmer"})}),s.jsx("div",{className:"h-4 w-64 mx-auto mt-2 rounded bg-secondary relative overflow-hidden",children:s.jsx("div",{className:"absolute inset-0 skeleton-shimmer"})})]}),s.jsx("div",{className:"container-fluid py-6",children:s.jsx("div",{className:"columns-2 sm:columns-3 lg:columns-4 xl:columns-5 gap-4",children:Array.from({length:15}).map((t,e)=>{const r=["aspect-[3/4]","aspect-square","aspect-[4/5]","aspect-[3/2]","aspect-[2/3]","aspect-[4/3]"];return s.jsx("div",{className:"break-inside-avoid mb-4",style:{animationDelay:`${e*50}ms`},children:s.jsx("div",{className:`w-full rounded-xl bg-secondary relative overflow-hidden ${r[e%r.length]} animate-fade-in-up`,style:{animationDelay:`${e*50}ms`,animationFillMode:"backwards"},children:s.jsx("div",{className:"absolute inset-0 skeleton-shimmer"})})},e)})})})]})}function Un(){return s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsxs("div",{className:"max-w-4xl mx-auto px-4 pt-8 pb-6",children:[s.jsxs("div",{className:"flex items-center gap-5",children:[s.jsx("div",{className:"w-20 h-20 rounded-full bg-secondary relative overflow-hidden flex-shrink-0",children:s.jsx("div",{className:"absolute inset-0 skeleton-shimmer"})}),s.jsxs("div",{className:"space-y-2 flex-1",children:[s.jsx("div",{className:"h-6 w-40 rounded bg-secondary relative overflow-hidden",children:s.jsx("div",{className:"absolute inset-0 skeleton-shimmer"})}),s.jsx("div",{className:"h-4 w-24 rounded bg-secondary relative overflow-hidden",children:s.jsx("div",{className:"absolute inset-0 skeleton-shimmer"})}),s.jsx("div",{className:"h-3 w-56 rounded bg-secondary relative overflow-hidden",children:s.jsx("div",{className:"absolute inset-0 skeleton-shimmer"})})]})]}),s.jsx("div",{className:"flex gap-6 mt-6 border-b border-border pb-3",children:[1,2,3].map(t=>s.jsx("div",{className:"h-4 w-16 rounded bg-secondary relative overflow-hidden",children:s.jsx("div",{className:"absolute inset-0 skeleton-shimmer"})},t))})]}),s.jsx("div",{className:"max-w-4xl mx-auto px-4 pb-8",children:s.jsx("div",{className:"columns-2 sm:columns-3 lg:columns-4 gap-4",children:Array.from({length:8}).map((t,e)=>{const r=["aspect-[3/4]","aspect-square","aspect-[4/5]","aspect-[3/2]"];return s.jsx("div",{className:"break-inside-avoid mb-4",children:s.jsx("div",{className:`w-full rounded-lg bg-secondary relative overflow-hidden ${r[e%r.length]} animate-fade-in-up`,style:{animationDelay:`${e*60}ms`,animationFillMode:"backwards"},children:s.jsx("div",{className:"absolute inset-0 skeleton-shimmer"})})},e)})})})]})}const NE=[.8,1.05,.7,.9,1.15,.75,.95,.65,1,.85];function Ga(){return s.jsxs("div",{className:"min-h-screen bg-background","aria-busy":"true",children:[s.jsxs("div",{className:"container-centered pt-8 pb-3 text-center",children:[s.jsx("div",{className:"h-7 w-48 mx-auto rounded-md bg-secondary relative overflow-hidden",children:s.jsx("div",{className:"absolute inset-0 skeleton-shimmer"})}),s.jsx("div",{className:"h-4 w-40 mx-auto mt-2 rounded-md bg-secondary relative overflow-hidden",children:s.jsx("div",{className:"absolute inset-0 skeleton-shimmer"})})]}),s.jsx("div",{className:"border-b border-border",children:s.jsx("div",{className:"container-fluid",children:s.jsxs("div",{className:"flex items-center justify-between h-12",children:[s.jsx("div",{className:"h-8 w-8 rounded-full bg-secondary"}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("div",{className:"h-8 w-8 rounded-full bg-secondary"}),s.jsx("div",{className:"h-8 w-8 rounded-full bg-secondary"}),s.jsx("div",{className:"h-8 w-20 rounded-full bg-secondary"})]})]})})}),s.jsx("div",{className:"container-fluid py-6 sm:py-8",children:s.jsx("div",{className:"grid grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-5 ga
50p-4",children:NE.map((t,e)=>s.jsx("div",{className:`rounded-md bg-secondary relative overflow-hidden ${e>=6?"hidden lg:block":""} ${e>=8?"xl:block":""}`,style:{aspectRatio:t},children:s.jsx("div",{className:"absolute inset-0 skeleton-shimmer"})},e))})})]})}function Lh(){return s.jsxs("div",{className:"fixed inset-0 z-[100] bg-background flex flex-col lg:flex-row",children:[s.jsx("div",{className:"absolute top-4 right-4 z-10",children:s.jsx("div",{className:"w-8 h-8 rounded-full bg-secondary relative overflow-hidden",children:s.jsx("div",{className:"absolute inset-0 skeleton-shimmer"})})}),s.jsx("div",{className:"flex-1 flex items-center justify-center p-6 lg:p-10",children:s.jsx("div",{className:"w-full max-w-3xl aspect-[4/3] rounded-xl bg-secondary relative overflow-hidden",children:s.jsx("div",{className:"absolute inset-0 skeleton-shimmer"})})}),s.jsxs("div",{className:"w-full lg:w-[380px] border-t lg:border-t-0 lg:border-l border-border p-6 space-y-5 overflow-y-auto",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"w-10 h-10 rounded-full bg-secondary relative overflow-hidden flex-shrink-0",children:s.jsx("div",{className:"absolute inset-0 skeleton-shimmer"})}),s.jsxs("div",{className:"space-y-1.5 flex-1",children:[s.jsx("div",{className:"h-4 w-24 rounded bg-secondary relative overflow-hidden",children:s.jsx("div",{className:"absolute inset-0 skeleton-shimmer"})}),s.jsx("div",{className:"h-3 w-16 rounded bg-secondary relative overflow-hidden",children:s.jsx("div",{className:"absolute inset-0 skeleton-shimmer"})})]})]}),s.jsx("div",{className:"h-6 w-3/4 rounded bg-secondary relative overflow-hidden",children:s.jsx("div",{className:"absolute inset-0 skeleton-shimmer"})}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("div",{className:"h-3.5 w-full rounded bg-secondary relative overflow-hidden",children:s.jsx("div",{className:"absolute inset-0 skeleton-shimmer"})}),s.jsx("div",{className:"h-3.5 w-5/6 rounded bg-secondary relative overflow-hidden",children:s.jsx("div",{className:"absolute inset-0 skeleton-shimmer"})}),s.jsx("div",{className:"h-3.5 w-2/3 rounded bg-secondary relative overflow-hidden",children:s.jsx("div",{className:"absolute inset-0 skeleton-shimmer"})})]}),s.jsx("div",{className:"flex gap-2 flex-wrap",children:[1,2,3].map(t=>s.jsx("div",{className:"h-6 w-16 rounded-full bg-secondary relative overflow-hidden",children:s.jsx("div",{className:"absolute inset-0 skeleton-shimmer"})},t))})]})]})}function F(){return s.jsx("div",{className:"min-h-screen bg-background",children:s.jsxs("div",{className:"max-w-3xl mx-auto px-4 pt-10 space-y-6",children:[s.jsx("div",{className:"h-8 w-48 rounded bg-secondary relative overflow-hidden",children:s.jsx("div",{className:"absolute inset-0 skeleton-shimmer"})}),s.jsx("div",{className:"space-y-4",children:[1,2,3,4].map(t=>s.jsx("div",{className:"h-14 w-full rounded-lg bg-secondary relative overflow-hidden",children:s.jsx("div",{className:"absolute inset-0 skeleton-shimmer"})},t))})]})})}function ME(){const[t,e]=i.useState(typeof navigator<"u"?navigator.onLine:!0);return i.useEffect(()=>{const r=()=>{e(!0),I.success("Connection restored","NET_OK",{id:"network-status",duration:1500})},n=()=>{e(!1),I.warning("No internet connection","ERR_NET",{id:"network-status",duration:1/0})};return window.addEventListener("online",r),window.addEventListener("offline",n),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}},[]),{isOnline:t}}function IE(){const{session:t}=ke();i.useEffect(()=>{if(!t?.expires_at)return;const e=new Date(t.expires_at*1e3),r=new Date(e.getTime()-300*1e3),n=new Date;if(r<=n){k.auth.refreshSession().catch(c=>{console.warn("[useTokenRefresh] Refresh failed:",c.message)});return}const o=r.getTime()-n.getTime(),a=setTimeout(()=>{k.auth.refreshSession().catch(c=>{console.warn("[useTokenRefresh] Scheduled refresh failed:",c.message)})},o),l=()=>{if(document.hidden)return;new Date>=r&&k.auth.refreshSession().catch(u=>{console.warn("[useTokenRefresh] Visibility refresh failed:",u.message)})};return document.addEventListener("visibilitychange",l),()=>{clearTimeout(a),document.removeEventListener("visibilitychange",l)}},[t?.expires_at])}function DE(){const t=ae(),e=i.useRef(Date.now()),r=i.useRef(!1);i.useEffect(()=>{const n=async()=>
50{if(document.hidden){e.current=Date.now();return}if(!(Date.now()-e.current<6e4)&&!r.current){r.current=!0;try{const{data:{session:a}}=await k.auth.getSession();if(!a)return;const{error:l}=await k.auth.refreshSession();l?/session/i.test(l.message)||console.warn("[useVisibilityRefresh] Token refresh failed:",l.message):(t.invalidateQueries({queryKey:["subscription"]}),t.invalidateQueries({queryKey:["notifications"]}),t.invalidateQueries({queryKey:["unread-message-count"]}),t.invalidateQueries({queryKey:["user-profile"]}))}catch(a){console.warn("[useVisibilityRefresh] Refresh error:",a)}finally{r.current=!1}}};return document.addEventListener("visibilitychange",n),()=>document.removeEventListener("visibilitychange",n)},[t])}const Oh="unbserved_active_session",VE=9e5;function HE(){let t=sessionStorage.getItem(Oh);return t||(t=crypto.randomUUID(),sessionStorage.setItem(Oh,t)),t}function BE(){const{user:t}=ke(),e=i.useRef(null),r=i.useRef(null);i.useEffect(()=>{if(!t?.id)return;const n=HE();r.current=n;const o=async()=>{try{await k.from("active_sessions").upsert({session_id:n,user_id:t.id,last_activity:new Date().toISOString(),page_path:window.location.pathname,user_agent:navigator.userAgent.
50slice(0,200)},{onConflict:"session_id"})}catch{}};o(),e.current=setInterval(o,VE);const a=()=>{k.from("active_sessions").delete().eq("session_id",n).then(()=>{})};return window.addEventListener("beforeunload",a),()=>{e.current&&clearInterval(e.current),window.removeEventListener("beforeunload",a),a()}},[t?.id])}const il="site-settings-cache",qn={site_name:"Unbserved",site_description:"A minimal platform for organizing and discovering visual inspiration.",favicon_url:"/favicon.png"};function $h(){try{const t=localStorage.getItem(il);return t?JSON.parse(t):null}catch{return null}}function om(t){try{localStorage.setItem(il,JSON.stringify(t))}catch{}}function Ss(){const{data:t,isLoading:e}=he({queryKey:["site-settings"],queryFn:async()=>{const{data:n,error:o}=await k.from("site_settings").select("key, value");if(o)throw o;const a={};return n?.forEach(l=>{a[l.key]=l.value}),om(a),a},staleTime:18e5,initialData:()=>$h()??void 0,initialDataUpdatedAt:()=>$h()?Date.now()-6e4:0}),r=t??qn;return{siteName:r.site_name??qn.site_name,siteDescription:r.site_description??qn.site_description,mainLogoSvg:r.main_logo_svg??null,mascotLogoSvg:r.mascot_logo_svg??null,mainLogoSvgDark:r.main_logo_svg_dark??null,mascotLogoSvgDark:r.mascot_logo_svg_dark??null,faviconUrl:r.favicon_url??qn.favicon_url,ogImageUrl:r.og_image_url??null,announcementMessage:r.announcement_message??null,isLoading:!t&&e}}function lR(){const t=ae();return z({mutationFn:async({key:e,value:r})=>{const{data:n}=await k.from("site_settings").select("id").eq("key",e).maybeSingle();if(n){const{error:o}=await k.from("site_settings").update({value:r}).eq("key",e);if(o)throw o}else{const{error:o}=await k.from("site_settings").insert({key:e,value:r});if(o)throw o}},onSuccess:(e,{key:r,value:n})=>{localStorage.removeItem(il),t.setQueryData(["site-settings"],o=>{const a=o?{...o,[r]:n}:{[r]:n};return om(a),a}),t.invalidateQueries({queryKey:["site-settings"]})},onError:e=>{I.error(`Erro ao salvar configuração: ${e.message}`)}})}const Qa=new Set;function am(){if(typeof navigator>"u")return!1;const t=navigator.connection;return t?!(t.saveData===!0||t.effectiveType&&(t.effectiveType==="slow-2g"||t.effectiveType==="2g")):!0}function es(t,e){Qa.has(t)||am()&&(Qa.add(t),e().catch(r=>{Qa.delete(t),console.warn(`[Prefetch] Failed to prefetch ${t}:`,r.message)}))}function Fn(t){if(!am())return;const e=()=>{Object.entries(t).forEach(([r,n])=>{es(r,n)})};"requestIdleCallback"in window?requestIdleCallback(e,{timeout:5e3}):setTimeout(e,2e3)}const UE={explore:()=>A(()=>import("./ExplorePage-D2ILJDC-.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38])),featured:()=>A(()=>import("./FeaturedPage-CgwrbQ2-.js"),__vite__mapDeps([39,1,2,40,16,8,41,42,43,23,44,45,46,47,48,21,38,34,17,26,4,49])),imageViewer:()=>A(()=>import("./ImagePage-Bu8nCgCk.js"),__vite__mapDeps([50,1,2,16,14,51,9,4,10,11,12,13,15,17,18,19,20,21,22,23,52,24,53,54,49,36,32,55,25,8,56,57])),search:()=>A(()=>import("./SearchPage-DTtNObL1.js"),__vite__mapDeps([58,1,2,48,21,38,28,10,4,29,6,7,15,16,17,5,30,33,31,32,59,60,61,24,19,20,22,23,62,27,25,63,64,65,9,11,12,13,14,18,26,66,43,67,68,69,70,71,72,73,41,36,74,34,75])),artists:()=>A(()=>import("./ArtistsPage-DQiBVFYJ.js"),__vite__mapDeps([76,1,2,40,16,66,43,67,68,48,21,38,34,17,4])),collections:()=>A(()=>import("./CollectionsPage-C-36wp_r.js"),__vite__mapDeps([77,1,2,78,4,65,8,23,27,48,21,38,34,17,16,26])),project:()=>A(()=>import("./ProjectPage-CkfX1aAz.js"),__vite__mapDeps([79,1,2,16,19,20,4,21,22,23,41,80,42,43,44,45,46,53,54,49,81,47,15,17,10,56,82,8])),artistProfile:()=>A(()=>import("./AuthorPage-Dx3p_A2j.js"),__vite__mapDeps([83,1,2,54,8,4,43,67,66,68,81,34,17,16,21,84]))},qE={blog:()=>A(()=>import("./BlogPage-CMqg6PUY.js"),__vite__mapDeps([85,1,2,72,73,43,23,86,4,87,48,21,38,34,17,16])),publicProfile:()=>A(()=>import("./PublicProfilePage-hW-xuAQv.js"),__vite__mapDeps([88,1,2,4,23,63,64,65,62,27,25,9,10,11,12,13,14,15,16,17,18,19,20,21,22,26,89,69,70,71,90,91,43,55,67,92,93,59,94,95,96,97,98,99,100,101,102,34,72,73,86,87,103,24,8])),activity:()=>A(()=>import("./FeedPage-BW0wVk9o.js"),__vite__mapDeps([104,1,2,48,21,38,4,18,69,70,71,105,106,107,43,15,16,17,93,23,12,10,13,20,34]))},FE={dashboard:()=>A(()=>import("./DashboardPage-V-I3FVX3.js"),__vite__mapDeps([108,1,2,4,62,27,25,63,64,65,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,26,24,109,110,91,96,111,89,43,34,48,38,106,70,93,103,92,59,112])),folder:()=>A(()=>import("./FolderPage-DAa_KnM1.js"),__vite__mapDeps([113,1,2,54,16,109,4,19,20,21,22,23,110,91,96,111,24,114,65,115,89,63,64,34,17,12,10,13,25,80,42,43,44,45,46,53,49,81,47,15,56,82,11,105,106,70,69,71,90,116,8])),profile:()=>A(()=>import("./LibraryLabPage-BfNN1moo.js"),__vite__mapDeps([117,1,2,108,4,62,27,25,63,64,65,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,26,24,109,110,91,96,111,89,43,34,48,38,106,70,93,103,92,59,112,88,69,71,90,55,67,94,95,97,98,99,100,101,102,72,73,86,87,8,118]))},zE={settings:()=>A(()=>import("./SettingsPage-dTmTOsio.js"),__vite__mapDeps([119,1,2,54,120,121,4,43,122,123,91,96,115,64,124,98,21]))},Ya={"/explore":{name:"explore",loader:()=>A(()=>import("./ExplorePage-D2ILJDC-.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38]))},"/collections":{name:"collections",loader:()=>A(()=>import("./CollectionsPage-C-36wp_r.js"),__vite__mapDeps([77,1,2,78,4,65,8,23,27,48,21,38,34,17,16,26]))},"/featured":{name:"featured",loader:()=>A(()=>import("./FeaturedPage-CgwrbQ2-.js"),__vite__mapDeps([39,1,2,40,16,8,41,42,43,23,44,45,46,47,48,21,38,34,17,26,4,49]))},"/featured/creatives":{name:"artists",loader:()=>A(()=>import("./ArtistsPage-DQiBVFYJ.js"),__vite__mapDeps([76,1,2,40,16,
5066,43,67,68,48,21,38,34,17,4]))},"/blog":{name:"blog",loader:()=>A(()=>import("./BlogPage-CMqg6PUY.js"),__vite__mapDeps([85,1,2,72,73,43,23,86,4,87,48,21,38,34,17,16]))},"/activity":{name:"activity",loader:()=>A(()=>import("./FeedPage-BW0wVk9o.js"),__vite__mapDeps([104,1,2,48,21,38,4,18,69,70,71,105,106,107,43,15,16,17,93,23,12,10,13,20,34]))},"/search":{name:"search",loader:()=>A(()=>import("./SearchPage-DTtNObL1.js"),__vite__mapDeps([58,1,2,48,21,38,28,10,4,29,6,7,15,16,17,5,30,33,31,32,59,60,61,24,19,20,22,23,62,27,25,63,64,65,9,11,12,13,14,18,26,66,43,67,68,69,70,71,72,73,41,36,74,34,75]))},"/dashboard":{name:"dashboard",loader:()=>A(()=>import("./DashboardPage-V-I3FVX3.js"),__vite__mapDeps([108,1,2,4,62,27,25,63,64,65,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,26,24,109,110,91,96,111,89,43,34,48,38,106,70,93,103,92,59,112]))},"/upgrade":{name:"upgrade",loader:()=>A(()=>import("./UpgradePage-h9bcmfOW.js"),__vite__mapDeps([125,1,2,121,120,126,4,6,7,127,61,98,21]))},"/messages":{name:"messages",loader:()=>A(()=>import("./MessagesPage-LxzcoIfT.js"),__vite__mapDeps([128,1,2,54,4,43,23,15,16,17,82,21]))},"/submit":{name:"submit",loader:()=>A(()=>import("./SubmitPage-DEgwj5AW.js"),__vite__mapDeps([129,1,2,130,54,131,4,64,5,6,7,21,124,132,121,126,112,133,134]))},"/extension":{name:"extension",loader:()=>A(()=>import("./ExtensionPage-13SZOiF3.js"),__vite__mapDeps([135,1,2,4,21]))},"/profile":{name:"profile",loader:()=>A(()=>import("./LibraryLabPage-BfNN1moo.js"),__vite__mapDeps([117,1,2,108,4,62,27,25,63,64,65,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,26,24,109,110,91,96,111,89,43,34,48,38,106,70,93,103,92,59,112,88,69,71,90,55,67,94,95,97,98,99,100,101,102,72,73,86,87,8,118]))},"/settings":{name:"settings",loader:()=>A(()=>import("./SettingsPage-dTmTOsio.js"),__vite__mapDeps([119,1,2,54,120,121,4,43,122,123,91,96,115,64,124,98,21]))},"/auth":{name:"auth",loader:()=>A(()=>import("./index-3GC-LO3U.js"),__vite__mapDeps([136,1,2,137,54,4,122,123,91,96,138,139,21,107,140,133]))}};function WE(t=3e3,e=!1){const r=setTimeout(()=>{Fn(UE),e&&Fn(FE)},t),n=setTimeout(()=>{Fn(qE),e&&Fn(zE)},t+3e3);return()=>{clearTimeout(r),clearTimeout(n)}}const Ah="chunk_error_reload",ZE=1e4;function KE(t){const e=t instanceof Error?t.message:String(t);return e.includes("Failed to fetch dynamically imported module")||e.includes("Loading chunk")||e.includes("Loading CSS chunk")||e.includes("Importing a module script failed")||e.includes("is not a valid JavaScript MIME type")}function GE(t){if(!KE(t))throw t;const e=sessionStorage.getItem(Ah),r=Date.now();if(!e||r-parseInt(e,10)>ZE)return console.log("[lazyWithRetry] Chunk load error â reloading for fresh buildâ¦"),sessionStorage.setItem(Ah,r.toString()),window.location.reload(),{default:(()=>null)};throw t}const im=[];let Ai=!1,ts=!1;function QE(){if(typeof navigator>"u")return!1;const t=navigator.connection;return t?t.saveData===!0?!1:t.effectiveType!=="slow-2g"&&t.effectiveType!=="2g":!0}function Ti(){if(ts)return;ts=!0;const t=()=>{const e=im.shift();if(!e){ts=!1;return}e().catch(()=>{}).finally(()=>setTimeout(t,50))};t()}function YE(t=3e3){Ai||typeof window>"u"||(Ai=!0,setTimeout(()=>{QE()&&("requestIdleCallback"in window?requestIdleCallback(()=>Ti(),{timeout:5e3}):Ti())},t))}function q(t,{warm:e=!0}={}){let r=null,n=null;const o=()=>r?Promise.resolve(r):(n||(n=t().then(l=>(r=l,l),l=>{throw n=null,l})),n);e&&(im.push(o),Ai&&!ts&&setTimeout(Ti,200));const a=i.lazy(()=>{if(r){const l=r;return{then:c=>c(l)}}return o().catch(GE)});return a.preload=o,a}function nt({className:t}){return s.jsx("div",{className:`rounded-md bg-secondary relative overflow-hidden ${t}`,children:s.jsx("div",{className:"absolute inset-0 skeleton-shimmer"})})}function Th(){return s.jsxs("div",{className:"fixed inset-0 bg-background flex flex-col","aria-busy":"true","aria-label":"Loading image",children:[s.jsxs("div",{className:"flex items-center justify-between h-14 px-4 border-b border-border/60",children:[s.jsx(nt,{className:"h-4 w-24"}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(nt,{className:"h-9 w-9 rounded-full"}),s.jsx(nt,{className:"h-9 w-9 rounded-full"}),s.jsx(nt,{className:"h-9 w-9 rounded-full"})]})]}),s.jsxs("div",{className:"flex-1 min-h-0 flex flex-col lg:flex-row",children:[s.jsx("div",{className:"flex-1 min-h-0 flex items-center justify-center p-4 sm:p-6 lg:p-8",children:s.jsx(nt,{className:"w-full max-w-4xl aspect-[4/3] max-h-full rounded-xl"})}),s.jsxs("div",{className:"hidden lg:flex w-[380px] flex-col gap-5 border-l border-border/60 p-6",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(nt,{className:"h-10 w-10 rounded-full"}),s.jsxs("div",{className:"flex-1 space-y-1.5",children:[s.jsx(nt,{className:"h-4 w-28"}),s.jsx(nt,{className:"h-3 w-16"})]})]}),s.jsx(nt,{className:"h-6 w-3/4"}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(nt,{className:"h-3.5 w-full"}),s.jsx(nt,{className:"h-3.5 w-5/6"})]}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx(nt,{className:"h-10 flex-1 rounded-full"}),s.jsx(nt,{className:"h-10 w-10 rounded-full"})]})]})]}),s.jsx("div",{className:"lg:hidden flex items-center justify-around h-16 border-t border-border/60 pb-safe",children:[0,1,2].map(t=>s.jsx(nt,{className:"h-9 w-9 rounded-full"},t))})]})}function ir(t){return t.slice(0,8e3).replace(/(?:data:[^\s]+|Bearer\s+[^\s,;]+|eyJ[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+)/gi,"[redacted]").replace(/https?:\/\/[^\s<>"')]+/gi,e=>
50{try{const r=new URL(e);return`${r.origin}${r.pathname}`}catch{return"[url]"}}).replace(/(^|[\s(])([\w./-]+)\?[^\s)]+/g,"$1$2").replace(/\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}/gi,"[email]").replace(/((?:password|token|secret|authorization|cookie|api[_-]?key)\s*[=:]\s*)[^\s,;]+/gi,"$1[redacted]").replace(/Failing row contains[^\n]*/gi,"Failing row [redacted]").replace(/"[^"\n]*"|'[^'\n]*'/g,"[value]").slice(0,8e3)}const JE=new Set(["code","status","statusCode","component","section","type","tag","lineno","colno","operation","retry","attempt","count","intercepted","timing","breadcrumbs","path","timestamp","device","react_query","total_queries","failing_queries","fetching_count","pending_mutations","key","error","cpu_cores","device_memory_gb","connection_type","connection_downlink","connection_rtt","online","language","screen_width","screen_height","viewport_width","viewport_height","pixel_ratio","page_load_time","session_duration_ms","actions_count","entry_page"]);function lr(t){const e=(r,n)=>{if(!(n>5)){if(typeof r=="string")return ir(r).slice(0,500);if(r===null||typeof r=="boolean"||typeof r=="number")return r;if(Array.isArray(r))return r.slice(0,10).map(o=>e(o,n+1)??null);if(r&&typeof r=="object")return Object.fromEntries(Object.entries(r).filter(([o])=>JE.has(o)).map(([o,a])=>[o,e((o==="path"||o==="entry_page")&&typeof a=="string"?a.split(/[?#]/)[0]:a,n+1)]))}};return e(t,0)}const XE=10;let Pi=0,Ph=Date.now();const Ri=new Map;function eS(){const t=Date.now();return t-Ph>6e4&&(Pi=0,Ph=t,Ri.clear()),Pi>=XE}const rs=[],tS=10;function lm(t){rs.push({path:t,timestamp:Date.now()}),rs.length>tS&&rs.shift()}function rS(){return[...rs]}const Rh=Date.now();let nS=typeof window<"u"?window.location.pathname:"/",cm=0;function sS(){cm++}function oS(){return{session_duration_ms:Date.now()-Rh,entry_page:nS,actions_count:cm,session_start:new Date(Rh).toISOString()}}function aS(){if(typeof window>"u"||typeof navigator>"u")return{};const t=navigator,e=t.connection||t.mozConnection||t.webkitConnection;return{cpu_cores:navigator.hardwareConcurrency||null,device_memory_gb:t.deviceMemory||null,connection_type:e?.effectiveType||null,connection_downlink:e?.downlink||null,connection_rtt:e?.rtt||null,online:navigator.onLine,language:navigator.language,screen_width:window.screen?.width,screen_height:window.screen?.height,viewport_width:window.innerWidth,viewport_height:window.innerHeight,pixel_ratio:window.devicePixelRatio,page_load_time:iS()}}function iS(){try{const[t]=performance.getEntriesByType("navigation");if(t)return Math.round(t.loadEventEnd-t.startTime)}catch{}return null}let ns=null;function um(t){ns=t}function lS(){if(!ns)return null;try{const e=ns.getQueryCache().getAll(),r=e.filter(l=>l.state.status==="error"),n=e.filter(l=>l.state.fetchStatus==="fetching"),a=(ns.getMutationCache?.()?.getAll?.()||[]).filter(l=>l.state.status==="pending");return{total_queries:e.length,failing_queries:r.map(l=>({key:l.queryKey?.slice(0,1),error:l.state.error?.message?.slice(0,100)})),fetching_count:n.length,pending_mutations:a.length}}catch{return null}}function un(t,e){const n=(typeof t=="string"?t:t.message||"").toLowerCase();return n.includes("row-level security")||n.includes("violates row-level security")||n.includes("new row violates")?"rls_violation":n.includes("storage")||n.includes("bucket")||n.includes("upload failed")?"storage":n.includes("cors")||n.includes("blocked by cors")||n.includes("access-control")?"cors":n.includes("timeout")||n.includes("aborted")||n.includes("aborterror")||n.includes("signal")?"timeout":n.includes("rpc")||n.includes("42883")||n.includes("function")&&n.includes("does not exist")?"rpc_failure":n.includes("jwt")||n.includes("401")||n.includes("auth")||n.includes("token")?"auth":n.includes("fetch")||n.includes("load failed")||n.includes("networkerror")||n.includes("failed to fetch")?"network":n.includes("render")||n.includes("component")||n.includes("boundary")?"render":n.includes("edge function")||n.includes("function_edge")?"edge_function":"unknown"}async function cS(t,e,r){const n=r.replace(/https?:\/\/[^\s)]+/g,l=>{try{const c=new URL(l);return`${c.host}${c.pathname}`}catch{return l}}).slice(0,500),o=`${t}|${e||""}|${n}`;if(typeof crypto<"u"&&crypto.subtle)try{const l=await crypto.subtle.digest("SHA-1",new TextEncoder().encode(o));return Array.from(new Uint8Array(l)).map(c=>c.toString(16).padStart(2,"0")).join("")}catch{}let a=5381;for(let l=0;l<o.length;
50l++)a=(a<<5)+a+o.charCodeAt(l)|0;return`fb_${(a>>>0).toString(16)}_${o.length}`}async function Kt(t,e,r,n,o,a){if(eS())return;const l=`${e}:${o}:${r.slice(0,100)}`,c=Ri.get(l);if(c&&Date.now()-c.lastSent<3e4){c.count++;return}if(Pi++,Ri.set(l,{count:0,lastSent:Date.now()}),!hS(r,a)){r=ir(r),n=n?ir(n):void 0,a=lr(a??{});try{const u=await cS(e,o,r);await k.rpc("log_platform_error",{_level:t,_category:e,_message:r.slice(0,2e3),_stack_trace:n?.slice(0,8e3)||null,_component:o||null,_route:typeof window<"u"?window.location.pathname:null,_message_hash:u,_metadata:lr({...a,timing:typeof performance<"u"?performance.now():void 0,breadcrumbs:rS(),...oS(),device:aS(),react_query:lS()}),_user_agent:typeof navigator<"u"?navigator.userAgent:null})}catch{}if(e==="rls_violation")try{const{logSecurityEvent:u}=await A(async()=>{const{logSecurityEvent:d}=await import("./securityLog-BsgLKzaH.js");return{logSecurityEvent:d}},__vite__mapDeps([141,1,2,4,21]));await u({event_type:"rls_denied",severity:"warning",resource:o,reason:r.slice(0,500),context:{metadata:a,level:t}})}catch{}}}const uS=[/\.fbcdn\.net/i,/\.cdninstagram\.com/i,/instagram\.f[a-z0-9-]+\.fna\.fbcdn\.net/i,/\.googleusercontent\.com/i,/pbs\.twimg\.com/i,/scontent\./i,/\/~?flock\.js/i,/\/storage\/v1\/object\/public\/videos\/instagram\/.+_thumb\.jpg/i],dS=[/NavigatorLockAcquireTimeoutError/i,/Acquiring an exclusive Navigator LockManager lock/i];function hS(t,e){const r=`${t} ${e?.src??""} ${e?.url??""}`;return dS.some(n=>n.test(t))?!0:uS.some(n=>n.test(r))}function fS(t,e){const n={timestamp:new Date().toISOString(),message:t.message,name:t.name,stack:t.stack?.split(` 51`).slice(0,15).join(` 52`),...e};console.error("[ErrorTracker]",ir(t.message),lr(n));const o=un(t);Kt("error",o,t.message,t.stack?.split(` 53`).slice(0,15).join(` 54`),e?.component,e)}function mS(t,e){console.warn("[ErrorTracker:Warning]",ir(t),lr(e??{}));const r=un(t);Kt("warning",r,t,void 0,e?.component,e)}function pS(t,e,r,n){console.error(`[${t}]`,ir(e),lr(r??{})),Kt("error",t,e,void 0,n,r)}function vS(t,e,r,n){console.warn(`[${t}]`,ir(e),lr(r??{})),Kt("warning",t,e,void 0,n,r)}let Nh=!1;function dm(){if(Nh||typeof window>"u")return;Nh=!0,window.onerror=(e,r,n,o,a)=>{const l=typeof e=="string"?e:"Unknown error";Kt("error",un(l),l,a?.stack?.split(` 55`).slice(0,15).join(` 56`),"window.onerror",{source:r,lineno:n,colno:o})},window.addEventListener("unhandledrejection",e=>{const r=e.reason,n=r instanceof Error?r.message:String(r||"Unhandled Promise Rejection"),o=r instanceof Error?r.stack?.split(` 57`).slice(0,15).join(` 58`):void 0;Kt("error",un(n),n,o,"unhandledrejection",{type:"promise_rejection"})}),window.addEventListener("error",e=>{const r=e.target;if(r&&r!==window&&(r instanceof HTMLImageElement||r instanceof HTMLScriptElement||r instanceof HTMLLinkElement)){const n=r.src||r.src||r.href||"",o=r.tagName?.toLowerCase()||"unknown",a=o==="link"&&/\/assets\/.+\.(js|css)/.test(n),l=o==="img"&&/(fbcdn\.net|cdninstagram\.com)/.test(n),c=o==="img"&&/player\.vimeo\.com\/video\//.test(n);if(a||l||c)return;Kt("warning","network",`Failed to load ${o}: ${n.slice(0,500)}`,void 0,"resource_loader",{tag:o,src:n.slice(0,500)})}},!0);const t=console.error;console.error=(...e)=>{t.apply(console,e);const r=String(e[0]||"");if(r.includes("[ErrorTracker]")||r.startsWith("[")||e.map(a=>String(a||"")).join(" ").includes("Function components cannot be given refs"))return;const o=e.map(a=>{if(a instanceof Error)return a.message;if(typeof a=="string")return a;try{return JSON.stringify(lr(a&&typeof a=="object"?a:{}))}catch{return String(a)}}).join(" ").slice(0,2e3);o.length<5||Kt("error",un(o),o,void 0,"console.error",{intercepted:!0})}}function gS(t){const e=`perf_${t}_start`;try{performance.mark(e)}catch{}return()=>{try{performance.measure(`perf_${t}`,e);const r=performance.getEntriesByName(`perf_${t}`),n=r[r.length-1]?.duration;n!==void 0&&n>500&&console.debug(`[Perf] ${t}: ${Math.round(n)}ms`),performance.clearMarks(e),performance.clearMeasures(`perf_${t}`)}catch{}}}const bS=Object.freeze(Object.defineProperty({__proto__:null,installGlobalErrorHandlers:dm,markPerformance:gS,pushBreadcrumb:lm,reportError:pS,reportWarning:vS,setQueryClientRef:um,trackError:fS,trackUserAction:sS,trackWarning:mS},Symbol.toStringTag,{value:"Module"})),yS=i.forwardRef(function(e,r){const[n,o]=i.useState(!1);i.useEffect(()=>{const c=localStorage.getItem(sn);if(Hp(),!c){const u=setTimeout(()=>
58o(!0),1500);return()=>clearTimeout(u)}},[]);const a=()=>{localStorage.setItem(sn,"accepted"),di("granted"),o(!1)},l=()=>{localStorage.setItem(sn,"rejected"),di("denied"),o(!1)};return s.jsx(ys,{children:n&&s.jsx(Mr.div,{ref:r,initial:{y:100,opacity:0},animate:{y:0,opacity:1},exit:{y:100,opacity:0},transition:{type:"spring",damping:25,stiffness:300},className:"pointer-events-none fixed bottom-0 left-0 right-0 z-[60] p-4 pb-[calc(5.5rem+env(safe-area-inset-bottom,0px))] md:p-6 md:pb-6",children:s.jsxs("div",{className:"pointer-events-auto cookie-consent-surface",role:"region","aria-label":"Cookie preferences",children:[s.jsx("p",{className:"text-sm text-foreground mb-1 font-medium",children:"We value your privacy"}),s.jsxs("p",{className:"text-xs text-muted-foreground mb-4 leading-relaxed",children:["We use essential cookies to run the platform. With your consent we also measure usage with Google Analytics and our own usage events. No ad trackers. Nothing is measured unless you accept."," ",s.jsx("a",{href:"/legal/privacy",className:"underline hover:text-foreground transition-colors",children:"Privacy Policy"})]}),s.jsxs("div",{className:"flex gap-3",children:[s.jsx("button",{onClick:l,className:"cookie-consent-choice",children:"Reject"}),s.jsx("button",{onClick:a,className:"cookie-consent-choice",children:"Accept"})]})]})})})});function jn(){const{user:t}=ke();return he({queryKey:["profile",t?.id],queryFn:async()=>{if(!t?.id)return null;const{data:e,error:r}=await k.rpc("get_my_app_user");if(r)throw r;const n=Array.isArray(e)?e[0]:e;if(n&&n.id!==t.id)throw new Error("Account changed while loading the profile");if(n){if((!n.display_name||!n.avatar_url)&&t.user_metadata){const w={};if(!n.display_name){const y=t.user_metadata.full_name||t.user_metadata.name;typeof y=="string"&&y&&(w.display_name=y,w.full_name=y)}if(!n.avatar_url){const y=t.user_metadata.picture||t.user_metadata.avatar_url;typeof y=="string"&&y&&(w.avatar_url=y)}if(Object.keys(w).length>0){const{error:y}=await k.from("app_users").update(w).eq("id",t.id);return y?n:{...n,...w}}}return n}const o=t.user_metadata?.avatar_url||t.user_metadata?.picture,a=t.user_metadata?.full_name||t.user_metadata?.name,l=typeof o=="string"?o:null,c=typeof a=="string"?a:null,d=(w=>{if(!w)return null;const y=w.split("@")[0]?.toLowerCase().replace(/[^a-z0-9_-]/g,"_").replace(/^_+|_+$/g,"").slice(0,30);return y&&y.length>=3?y:y?y+"_".repeat(3-y.length):null})(t.email),f={id:t.id,email:t.email||"",username:d,avatar_url:l,display_name:c,full_name:c},{error:h}=await k.from("app_users").insert(f);if(h?.code==="23505"){const{data:w,error:y}=await k.rpc("get_my_app_user");if(y)throw y;const b=Array.isArray(w)?w[0]:w;if(b?.id===t.id)return b;if(b)throw new Error("Account changed while loading the profile");if(!d)throw h;const _=Math.floor(Math.random()*9e3+1e3),g=d.slice(0,25)+"_"+_,{error:j}=await k.from("app_users").insert({...f,username:g});if(j)throw j}else if(h)throw h;const{data:m,error:v}=await k.rpc("get_my_app_user");if(v)throw v;const p=Array.isArray(m)?m[0]:m;if(!p||p.id!==t.id)throw new Error("Profile unavailable after creation");return p},enabled:!!t?.id,staleTime:300*1e3,gcTime:1800*1e3,refetchOnMount:!0,refetchOnWindowFocus:!1})}class wS extends Error{constructor(e="This username is already taken"){super(e),this.name="UsernameConflictError"}}function cR(){const{user:t}=ke(),e=ae();return z({mutationFn:async r=>{if(!t?.id)throw new Error("Not authenticated");const n={...r,updated_at:new Date().toISOString()},o=u=>u?u.code==="23505"&&r.username!==void 0?new wS:u:null,{error:a,count:l}=await k.from("app_users").update(n,{count:"exact"}).eq("id",t.id);if(a){const u=o(a);if(u)throw u}if((l??0)>0)return;const{error:c}=await k.from("app_users").insert({id:t.id,email:t.email||"",...r});if(c){const u=o(c);if(u)throw u}},onSuccess:()=>{e.invalidateQueries({queryKey:["profile",t?.id]}),e.invalidateQueries({queryKey:["public-profile"]})}})}function ll(t){const e=[{key:"avatar",label:"Profile photo",done:!!t?.avatar_url},{key:"display_name",label:"Display name",done:!!(t?.display_name&&t.dis
58play_name.trim().length>=2)},{key:"username",label:"Username",done:!!(t?.username&&t.username.trim().length>=3)},{key:"bio",label:"Bio",done:!!(t?.bio&&t.bio.trim().length>=10)},{key:"social",label:"Website or social link",done:!!(t?.website_url||t?.instagram_url||t?.behance_url||t?.twitter_url||t?.linkedin_url)}],r=e.filter(a=>a.done).length,n=Math.round(r/e.length*100),o=e.filter(a=>!a.done);return{percent:n,items:e,missing:o,isComplete:r===e.length}}function hm(t){return!!(t?.username&&t?.display_name)}function fm(t,e=30){if(!t)return!1;const r=Date.now()-new Date(t).getTime();return Number.isFinite(r)&&r>=0&&r<e*60*1e3}function uR(t){return t.readFailed?!1:hm(t.profile)?fm(t.createdAt)&&!ll(t.profile).isComplete:!0}const dR={explore:90,search:80,featured:12,collections:24};function Ja(t){return nl("login",t)}function Mh({className:t}){return s.jsxs(s.Fragment,{children:[s.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:re(t,"icon-modern"),children:[s.jsx("path",{d:"M7 7.5 16.5 3"}),s.jsx("rect",{x:"3",y:"7.5",width:"18",height:"13",rx:"2"}),s.jsx("circle",{cx:"15.5",cy:"14",r:"3"}),s.jsx("path",{d:"M6.5 11.5h4M6.5 14h4M6.5 16.5h4"})]}),s.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",className:re(t,"icon-classic"),children:s.jsx("path",{d:"M6 7h2V6h2V5h2V4h2V3h2v2h-2v1h-2v1h10v1h1v12h-1v1H3v-1H2V8h1V7h3Zm-2 2v10h16V9H4Zm2 2h5v2H6v-2Zm0 3h5v2H6v-2Zm8-3h4v1h1v4h-1v1h-4v-1h-1v-4h1v-1Zm1 2v2h2v-2h-2Z"})})]})}const cl={soft:{type:"spring",stiffness:300,damping:35},medium:{type:"spring",stiffness:400,damping:40}},hR={hidden:{opacity:1},visible:{opacity:1,transition:{staggerChildren:.05,delayChildren:.02}}},fR={hidden:{opacity:0,y:12},visible:{opacity:1,y:0,transition:cl.medium}};({...cl.medium});function Ih(){const{isTrial:t,trialDaysRemaining:e}=ks();if(!t||e<=0)return null;const r=e<=2;return s.jsx("div",{className:"flex items-center gap-2",children:s.jsxs(G,{to:"/upgrade",className:`flex items-center gap-2 px-3 py-1.5 border rounded-full text-xs font-medium transition-colors ${r?"bg-acid border-acid text-black hover:bg-acid-hover":"bg-acid/15 border-acid/30 hover:bg-acid/25"}`,children:[s.jsx(Xf,{className:`w-3.5 h-3.5 ${r?"text-black":"text-acid"}`}),s.jsx("span",{className:r?"text-black":"text-foreground",children:r?`Trial ends in ${e===1?"1 day":`${e} days`} â keep Pro`:`${e} days left in Pro trial`}),s.jsx(Zt,{className:`w-3 h-3 ${r?"text-black":"text-acid"}`})]})})}function Ni(t){const e=t.metadata??{};return[t.type==="new_user"?e.new_user_id:void 0,t.source_user_id,e.actor_id,e.follower_id,e.sender_id].find(n=>typeof n=="string"&&/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(n))}function mR(){return he({queryKey:["all-badges"],queryFn:async()=>{const{data:t,error:e}=await k.from("badges").select("*").order("sort_order",{ascending:!0});if(e)throw e;return t}})}function xS(){return he({queryKey:["active-badges"],queryFn:async()=>{const{data:t,error:e}=await k.from("badges").select("*").eq("is_active",!0).order("sort_order",{ascending:!0});if(e)throw e;return t}})}function pR(t,e=!0){return he({queryKey:["badge",t],enabled:e,staleTime:1800*1e3,gcTime:3600*1e3,retry:!1,throwOnError:!1,queryFn:async()=>{const{data:r,error:n}=await k.from("badges").select("name, tooltip, svg_content").eq("slug",t).eq("is_active",!0).maybeSingle();return n?null:r}})}function vR(t){return he({queryKey:["user-badges",t],queryFn:async()=>{if(!t)return[];const{data:e,error:r}=await k.from("user_badges").select(` 59 *, 60 badge:badges(*) 61 `).eq("user_id",t).order("display_order",{ascending:!0});if(r)throw r;return(e||[]).map(n=>({...n,badge:n.badge})).filter(n=>n.badge?.is_active)},enabled:!!t,staleTime:6e4,throwOnError:!1})}function gR(t){const e=[...new Set(t)].sort();return he({queryKey:["user-badges-batch",e],queryFn:async()=>{const r={};if(e.length===0)return r;const{data:n,error:o}=await k.from("user_badges").select(` 62 *, 63 badge:badges(*) 64 `).in("user_id",e).order("display_order",{ascending:!0});if(o)throw o;for(const a of n||[]){const l={...a,badge:a.badge};l.badge?.is_active&&(r[l.user_id]||=[]).push(l)}return r},enabled:e.length>0,staleTime:6e4,throwOnError:!1})}function bR(){const t=ae();return z({mutationFn:async({userId:e,orderedBadgeIds:r})=>{await xn(r.map((n,o)=>k.from("user_badges").update({display_order:o}).eq("user_id",e).eq("badge_id",n)),"Save badge order")},onSuccess:(e,r)=>{t.invalidateQueries({queryKey:["user-badges",r.userId]}),I.success("Badge order saved")},onError:e=>{I.error(`Error saving badge order: ${e.message}`)}})}function yR(){const t=ae();return z({mutationFn:async e=>{const{data:r,error:n}=await k.from("badges").insert({name:e.name,slug:e.slug,description:e.description||null,svg_content:e.svg_content,tooltip:e.tooltip||null,sort_order:e.sort_order??0,display_size:e.display_size||"md",is_active:!0}).select().single();if(n)throw n;return r},onSuccess:()=>{t.invalidateQueries({queryKey:["all-badges"]}),t.invalidateQueries({queryKey:["active-badges"]}),I.success("Badge created successfully")},onError:e=>{I.error(`Error creating badge: ${e.message}`)}})}function wR(){const t=ae();return z({mutationFn:async e=>{await xn(e.map((r,n)=>k.from("badges").update({sort_order:n,updated_at:new Date().toISOString()}).eq("id",r)),"Reorder badges")},onSuccess:()=>{t.invalidateQueries({queryKey:["all-badges"]}),t.invalidateQueries({queryKey:["active-badges"]}),I.success("Badge order updated")},onError:e=>{I.error(`Error reordering badges: ${e.message}`)}})}function xR(){const t=ae();return z({mutationFn:async({id:e,...r})=>{const{data:n,error:o}=await k.from("badges").update({...r,updated_at:new Date().toISOString()}).eq("id",e).select().single();if(o)throw o;return n},onSuccess:()=>{t.invalidateQueries({queryKey:["all-badges"]}),t.invalidateQueries({queryKey:["active-badges"]}),t.invalidateQueries({queryKey:["user-badges"]}),I.success("Badge updated successfully")},onError:e=>{I.error(`Error updating badge: ${e.message}`)}})}function _R(){const t=ae();return z({mutationFn:async e=>{const{error:r}=await k.from("badges").delete().eq("id",e);if(r)throw r},onSuccess:()=>{t.invalidateQueries({queryKey:["all-badges"]}),t.invalidateQueries({queryKey:["active-badges"]}),t.invalidateQueries({queryKey:["user-badges"]}),I.success("Badge deleted successfully")},onError:e=>{I.error(`Error deleting badge: ${e.message}`)}})}function kR(){const t=ae();return z({mutationFn:async({userId:e,badgeId:r,grantedBy:n})=>{const{data:o,error:a}=await k.from("user_badges").insert({user_id:e,badge_id:r,granted_by:n||null}).select().single();if(a)throw a;return o},onSuccess:(e,r)=>{t.invalidateQueries({queryKey:["user-badges",r.userId]}),I.success("Badge assigned successfully")},onError:e=>{e.message.includes("duplicate")?I.error("User already has this badge"):I.error(`Error assigning badge: ${e.message}`)}})}function jR(){const t=ae();return z({mutationFn:async({userId:e,badgeId:r})=>{const{error:n}=await k.from("user_badges").delete().eq("user_id",e).eq("badge_id",r);
64if(n)throw n},onSuccess:(e,r)=>{t.invalidateQueries({queryKey:["user-badges",r.userId]}),I.success("Badge revoked successfully")},onError:e=>{I.error(`Error revoking badge: ${e.message}`)}})}function CR(){return he({queryKey:["badge-stats"],queryFn:async()=>{const{data:t,error:e}=await k.from("badges").select("id, name, slug");if(e)throw e;const{data:r,error:n}=await k.from("user_badges").select("badge_id");if(n)throw n;const o={};return r?.forEach(a=>{o[a.badge_id]=(o[a.badge_id]||0)+1}),t?.map(a=>({...a,user_count:o[a.id]||0}))||[]}})}function ER(t){return he({queryKey:["users-for-badge",t],queryFn:async()=>{if(!t||t.length<2)return[];const{data:e,error:r}=await k.rpc("admin_list_app_users",{_user_ids:null});if(r)throw r;const n=t.toLowerCase();return(e||[]).filter(o=>(o.email||"").toLowerCase().includes(n)||(o.display_name||"").toLowerCase().includes(n)||(o.username||"").toLowerCase().includes(n)).slice(0,10).map(o=>({id:o.id,email:o.email,display_name:o.display_name,username:o.username,avatar_url:o.avatar_url,is_premium:o.is_premium}))},enabled:t.length>=2})}function SR(){const t=ae();return z({mutationFn:async({badgeId:e,target:r,grantedBy:n})=>{let o=[];if(r==="writers"){const{data:d,error:f}=await k.from("blog_authors").select("user_id").eq("is_active",!0);if(f)throw f;o=d?.map(h=>({id:h.user_id}))||[]}else{let d=k.from("app_users").select("id");r==="premium"&&(d=d.eq("is_premium",!0));const{data:f,error:h}=await d;if(h)throw h;o=f||[]}if(!o||o.length===0)return{assigned:0,assignedUserIds:[]};const{data:a}=await k.from("user_badges").select("user_id").eq("badge_id",e),l=new Set(a?.map(d=>
64d.user_id)||[]),c=o.filter(d=>!l.has(d.id)).map(d=>({user_id:d.id,badge_id:e,granted_by:n||null}));if(c.length===0)return{assigned:0,alreadyHad:o.length,assignedUserIds:[]};const{error:u}=await k.from("user_badges").insert(c);if(u)throw u;return{assigned:c.length,alreadyHad:o.length-c.length,assignedUserIds:c.map(d=>d.user_id)}},onSuccess:e=>{t.invalidateQueries({queryKey:["user-badges"]}),t.invalidateQueries({queryKey:["badge-stats"]}),e.alreadyHad&&e.alreadyHad>0?I.success(`Badge assigned to ${e.assigned} users (${e.alreadyHad} already had it)`):I.success(`Badge assigned to ${e.assigned} users`)},onError:e=>{I.error(`Error assigning badges: ${e.message}`)}})}const{entries:mm,setPrototypeOf:Dh,isFrozen:_S,getPrototypeOf:kS,getOwnPropertyDescriptor:jS}=Object;let{freeze:Qe,seal:ft,create:Mi}=Object,{apply:Ii,construct:Di}=typeof Reflect<"u"&&Reflect;Qe||(Qe=function(e){return e});ft||(ft=function(e){return e});Ii||(Ii=function(e,r){for(var n=arguments.length,o=new Array(n>2?n-2:0),a=2;a<n;a++)o[a-2]=arguments[a];return e.apply(r,o)});Di||(Di=function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return new e(...n)});const zn=Ye(Array.prototype.forEach),CS=Ye(Array.prototype.lastIndexOf),Vh=Ye(Array.prototype.pop),Zr=Ye(Array.prototype.push),ES=Ye(Array.prototype.splice),ss=Ye(String.prototype.toLowerCase),Xa=Ye(String.prototype.toString),ei=Ye(String.prototype.match),Kr=Ye(String.prototype.replace),SS=Ye(String.prototype.indexOf),LS=Ye(String.prototype.trim),gt=Ye(Object.prototype.hasOwnProperty),Ge=Ye(RegExp.prototype.test),Gr=OS(TypeError);function Ye(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return Ii(t,e,n)}}function OS(t){return function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return Di(t,r)}}function ge(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ss;Dh&&Dh(t,null);let n=e.length;for(;n--;){let o=e[n];if(typeof o=="string"){const a=r(o);a!==o&&(_S(e)||(e[n]=a),o=a)}t[o]=!0}return t}function $S(t){for(let e=0;e<t.length;e++)gt(t,e)||(t[e]=null);return t}function kt(t){const e=Mi(null);for(const[r,n]of mm(t))gt(t,r)&&(Array.isArray(n)?e[r]=$S(n):n&&typeof n=="object"&&n.constructor===Object?e[r]=kt(n):e[r]=n);return e}function Qr(t,e){for(;t!==null;){const n=jS(t,e);if(n){if(n.get)return Ye(n.get);if(typeof n.value=="function")return Ye(n.value)}t=kS(t)}function r(){return null}return r}const Hh=Qe(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ti=Qe(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ri=Qe(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),AS=Qe(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),ni=Qe(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),TS=Qe(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Bh=Qe(["#text"]),Uh=Qe(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
64spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),si=Qe(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),qh=Qe(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Wn=Qe(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),PS=ft(/\{\{[\w\W]*|[\w\W]*\}\}/gm),RS=ft(/<%[\w\W]*|[\w\W]*%>/gm),NS=ft(/\$\{[\w\W]*/gm),MS=ft(/^data-[\-\w.\u00B7-\uFFFF]+$/),IS=ft(/^aria-[\-\w]+$/),pm=ft(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),DS=ft(/^(?:\w+script|data):/i),VS=ft(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),vm=ft(/^html$/i),HS=ft(/^[a-z][.\w]*(-[.\w]+)+$/i);var Fh=Object.freeze({__proto__:null,ARIA_ATTR:IS,ATTR_WHITESPACE:VS,CUSTOM_ELEMENT:HS,DATA_ATTR:MS,DOCTYPE_NAME:vm,ERB_EXPR:RS,IS_ALLOWED_URI:pm,IS_SCRIPT_OR_DATA:DS,MUSTACHE_EXPR:PS,TMPLIT_EXPR:NS});const Yr={element:1,text:3,progressingInstruction:7,comment:8,document:9},BS=function(){return typeof window>"u"?null:window},US=function(e,r){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null;const o="data-tt-policy-suffix";r&&r.hasAttribute(o)&&(n=r.getAttribute(o));const a="dompurify"+(n?"#"+n:"");try{return e.createPolicy(a,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},zh=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function gm(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:BS();const e=ee=>gm(ee);if(e.version="3.3.1",e.removed=[],!t||!t.document||t.document.nodeType!==Yr.document||!t.Element)return e.isSupported=!1,e;let{document:r}=t;const n=r,o=n.currentScript,{DocumentFragment:a,HTMLTemplateElement:l,Node:c,Element:u,NodeFilter:d,NamedNodeMap:f=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:h,DOMParser:m,trustedTypes:v}=t,p=u.prototype,w=Qr(p,"cloneNode"),y=Qr(p,"remove"),b=Qr(p,"nextSibling"),_=Qr(p,"childNodes"),g=Qr(p,"parentNode");if(typeof l=="function"){const ee=r.createElement("template");ee.content&&ee.content.ownerDocument&&(r=ee.content.ownerDocument)}let j,E="";const{implementation:L,createNodeIterator:D,createDocumentFragment:C,getElementsByTagName:$}=r,{importNode:R}=n;let Y=zh();e.isSupported=typeof mm=="function"&&typeof g=="function"&&L&&L.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:ve,ERB_EXPR:be,TMPLIT_EXPR:Pe,DATA_ATTR:te,ARIA_ATTR:ie,IS_SCRIPT_OR_DATA:ue,ATTR_WHITESPACE:W,CUSTOM_ELEMENT:B}=Fh;let{IS_ALLOWED_URI:le}=Fh,ce=null;const Je=ge({},[...Hh,...ti,...ri,...ni,...Bh]);let U=null;const fe=ge({},[...Uh,...si,...qh,...Wn]);let ne=Object.seal(Mi(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),M=null,H=null;
vendor: 7,675 bytes, line 64
64const X=Object.seal(Mi(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let _e=!0,Ce=!0,mt=!1,Xe=!0,Dt=!1,Vt=!0,Et=!1,ur=!1,St=!1,Lt=!1,et=!1,dr=!1,Cn=!0,Ue=!1;const Ht="user-content-";let Hr=!0,Qt=!1,pt={},dt=null;const hr=ge({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let fr=null;const Ot=ge({},["audio","video","img","source","image","track"]);let mr=null;const $t=ge({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),pr="http://www.w3.org/1998/Math/MathML",vr="http://www.w3.org/2000/svg",ht="http://www.w3.org/1999/xhtml";let At=ht,Br=!1,Yt=null;const wt=ge({},[pr,vr,ht],Xa);let gr=ge({},["mi","mo","mn","ms","mtext"]),br=ge({},["annotation-xml"]);const En=ge({},["title","style","font","a","script"]);let Bt=null;const de=["application/xhtml+xml","text/html"],Le="text/html";let ye=null,Oe=null;const yr=r.createElement("form"),$e=function(x){return x instanceof RegExp||x instanceof Function},qe=function(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Oe&&Oe===x)){if((!x||typeof x!="object")&&(x={}),x=kt(x),Bt=de.indexOf(x.PARSER_MEDIA_TYPE)===-1?Le:x.PARSER_MEDIA_TYPE,ye=Bt==="application/xhtml+xml"?Xa:ss,ce=gt(x,"ALLOWED_TAGS")?ge({},x.ALLOWED_TAGS,ye):Je,U=gt(x,"ALLOWED_ATTR")?ge({},x.ALLOWED_ATTR,ye):fe,Yt=gt(x,"ALLOWED_NAMESPACES")?ge({},x.ALLOWED_NAMESPACES,Xa):wt,mr=gt(x,"ADD_URI_SAFE_ATTR")?ge(kt($t),x.ADD_URI_SAFE_ATTR,ye):$t,fr=gt(x,"ADD_DATA_URI_TAGS")?ge(kt(Ot),x.ADD_DATA_URI_TAGS,ye):Ot,dt=gt(x,"FORBID_CONTENTS")?ge({},x.FORBID_CONTENTS,ye):hr,M=gt(x,"FORBID_TAGS")?ge({},x.FORBID_TAGS,ye):kt({}),H=gt(x,"FORBID_ATTR")?ge({},x.FORBID_ATTR,ye):kt({}),pt=gt(x,"USE_PROFILES")?x.USE_PROFILES:!1,_e=x.ALLOW_ARIA_ATTR!==!1,Ce=x.ALLOW_DATA_ATTR!==!1,mt=x.ALLOW_UNKNOWN_PROTOCOLS||!1,Xe=x.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Dt=x.SAFE_FOR_TEMPLATES||!1,Vt=x.SAFE_FOR_XML!==!1,Et=x.WHOLE_DOCUMENT||!1,Lt=x.RETURN_DOM||!1,et=x.RETURN_DOM_FRAGMENT||!1,dr=x.RETURN_TRUSTED_TYPE||!1,St=x.FORCE_BODY||!1,Cn=x.SANITIZE_DOM!==!1,Ue=x.SANITIZE_NAMED_PROPS||!1,Hr=x.KEEP_CONTENT!==!1,Qt=x.IN_PLACE||!1,le=x.ALLOWED_URI_REGEXP||pm,At=x.NAMESPACE||ht,gr=x.MATHML_TEXT_INTEGRATION_POINTS||gr,br=x.HTML_INTEGRATION_POINTS||br,ne=x.CUSTOM_ELEMENT_HANDLING||{},x.CUSTOM_ELEMENT_HANDLING&&$e(x.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ne.tagNameCheck=x.CUSTOM_ELEMENT_HANDLING.tagNameCheck),x.CUSTOM_ELEMENT_HANDLING&&$e(x.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ne.attributeNameCheck=x.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),x.CUSTOM_ELEMENT_HANDLING&&typeof x.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ne.allowCustomizedBuiltInElements=x.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Dt&&(Ce=!1),et&&(Lt=!0),pt&&(ce=ge({},Bh),U=[],pt.html===!0&&(ge(ce,Hh),ge(U,Uh)),pt.svg===!0&&(ge(ce,ti),ge(U,si),ge(U,Wn)),pt.svgFilters===!0&&(ge(ce,ri),ge(U,si),ge(U,Wn)),pt.mathMl===!0&&(ge(ce,ni),ge(U,qh),ge(U,Wn))),x.ADD_TAGS&&(typeof x.ADD_TAGS=="function"?X.tagCheck=x.ADD_TAGS:(ce===Je&&(ce=kt(ce)),ge(ce,x.ADD_TAGS,ye))),x.ADD_ATTR&&(typeof x.ADD_ATTR=="function"?X.attributeCheck=x.ADD_ATTR:(U===fe&&(U=kt(U)),ge(U,x.ADD_ATTR,ye))),x.ADD_URI_SAFE_ATTR&&ge(mr,x.ADD_URI_SAFE_ATTR,ye),x.FORBID_CONTENTS&&(dt===hr&&(dt=kt(dt)),ge(dt,x.FORBID_CONTENTS,ye)),x.ADD_FORBID_CONTENTS&&(dt===hr&&(dt=kt(dt)),ge(dt,x.ADD_FORBID_CONTENTS,ye)),Hr&&(ce["#text"]=!0),Et&&ge(ce,["html","head","body"]),ce.table&&(ge(ce,["tbody"]),delete M.tbody),x.TRUSTED_TYPES_POLICY){if(typeof x.TRUSTED_TYPES_POLICY.createHTML!="function")throw Gr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof x.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Gr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');j=x.TRUSTED_TYPES_POLICY,E=j.createHTML("")}else j===void 0&&(j=US(v,o)),j!==null&&typeof E=="string"&&(E=j.createHTML(""));Qe&&Qe(x),Oe=x}},Jt=ge({},[...ti,...ri,...AS]),tt=ge({},[...ni,...TS]),at=function(x){let N=g(x);(!N||!N.tagName)&&(N={namespaceURI:At,tagName:"template"});const Q=ss(x.tagName),Ee=ss(N.tagName);return Yt[x.namespaceURI]?x.namespaceURI===vr?N.namespaceURI===ht?Q==="svg":N.namespaceURI===pr?Q==="svg"&&(Ee==="annotation-xml"||gr[Ee]):!!Jt[Q]:x.namespaceURI===pr?N.namespaceURI===ht?Q==="math":N.namespaceURI===vr?Q==="math"&&br[Ee]:!!tt[Q]:x.namespaceURI===ht?N.namespaceURI===vr&&!br[Ee]||N.namespaceURI===pr&&!gr[Ee]?!1:!tt[Q]&&(En[Q]||!Jt[Q]):!!(Bt==="application/xhtml+xml"&&Yt[x.namespaceURI]):!1},it=function(x){Zr(e.removed,{element:x});try{g(x).removeChild(x)}catch{y(x)}},Ke=function(x,N){try{Zr(e.removed,{attribute:N.getAttributeNode(x),from:N})}catch{Zr(e.removed,{attribute:null,from:N})}if(N.removeAttribute(x),x==="is")if(Lt||et)try{it(N)}catch{}else try{N.setAttribute(x,"")}catch{}},Ts=function(x){let N=null,Q=null;if(St)x="<remove></remove>"+x;else{const Ae=ei(x,/^[\r\n\t ]+/);Q=Ae&&Ae[0]}Bt==="application/xhtml+xml"&&At===ht&&(x='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+x+"</body></html>");const Ee=j?j.createHTML(x):x;if(At===ht)try{N=new m().parseFromString(Ee,Bt)}catch{}if(!N||!N.documentElement){N=L.createDocument(At,"template",null);try{N.documentElement.innerHTML=Br?E:Ee}catch{}}const Fe=N.body||N.documentElement;return x&&Q&&Fe.insertBefore(r.createTextNode(Q),Fe.childNodes[0]||null),At===ht?$.call(N,Et?"html":"body")[0]:Et?N.documentElement:Fe},vl=function(x){return D.call(x.ownerDocument||x,x,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},Ps=function(x){return x instanceof h&&(typeof x.nodeName!="string"||typeof x.textContent!="string"||typeof x.removeChild!="function"||!(x.attributes instanceof f)||typeof x.removeAttribute!="function"||typeof x.setAttribute!="function"||typeof x.namespaceURI!="string"||typeof x.insertBefore!="function"||typeof x.hasChildNodes!="function")},gl=function(x){return typeof c=="function"&&x instanceof c};function Tt(ee,x,N){zn(ee,Q=>{Q.call(e,x,N,Oe)})}const bl=function(x){let N=null;if(Tt(Y.beforeSanitizeElements,x,null),Ps(x))return it(x),!0;const Q=ye(x.nodeName);if(Tt(Y.uponSanitizeElement,x,{tagName:Q,allowedTags:ce}),Vt&&x.hasChildNodes()&&!gl(x.firstElementChild)&&Ge(/<[/\w!]/g,x.innerHTML)&&Ge(/<[/\w!]/g,x.textContent)||x.nodeType===Yr.progressingInstruction||Vt&&x.nodeType===Yr.comment&&Ge(/<[/\w]/g,x.data))return it(x),!0;if(!(X.tagCheck instanceof Function&&X.tagCheck(Q))&&(!ce[Q]||M[Q])){if(!M[Q]&&wl(Q)&&(ne.tagNameCheck instanceof RegExp&&Ge(ne.tagNameCheck,Q)||ne.tagNameCheck instanceof Function&&ne.tagNameCheck(Q)))return!1;if(Hr&&!dt[Q]){const Ee=g(x)||x.parentNode,Fe=_(x)||x.childNodes;if(Fe&&Ee){const Ae=Fe.length;for(let rt=Ae-1;rt>=0;--rt){const Pt=w(Fe[rt],!0);Pt.__removalCount=(x.__removalCount||0)+1,Ee.insertBefore(Pt,b(x))}}}return it(x),!0}return x instanceof u&&!at(x)||(Q==="noscript"||Q==="noembed"||Q==="noframes")&&Ge(/<\/no(script|embed|frames)/i,x.innerHTML)?(it(x),!0):(Dt&&x.nodeType===Yr.text&&(N=x.textContent,zn([ve,be,Pe],Ee=>{N=Kr(N,Ee," ")}),x.textContent!==N&&(Zr(e.removed,{element:x.cloneNode()}),x.textContent=N)),Tt(Y.afterSanitizeElements,x,null),!1)},yl=function(x,N,Q){if(Cn&&(N==="id"||N==="name")&&(Q in r||Q in yr))return!1;if(!(Ce&&!H[N]&&Ge(te,N))){if(!(_e&&Ge(ie,N))){if(!(X.attributeCheck instanceof Function&&X.attributeCheck(N,x))){if(!U[N]||H[N]){if(!(wl(x)&&
64(ne.tagNameCheck instanceof RegExp&&Ge(ne.tagNameCheck,x)||ne.tagNameCheck instanceof Function&&ne.tagNameCheck(x))&&(ne.attributeNameCheck instanceof RegExp&&Ge(ne.attributeNameCheck,N)||ne.attributeNameCheck instanceof Function&&ne.attributeNameCheck(N,x))||N==="is"&&ne.allowCustomizedBuiltInElements&&(ne.tagNameCheck instanceof RegExp&&Ge(ne.tagNameCheck,Q)||ne.tagNameCheck instanceof Function&&ne.tagNameCheck(Q))))return!1}else if(!mr[N]){if(!Ge(le,Kr(Q,W,""))){if(!((N==="src"||N==="xlink:href"||N==="href")&&x!=="script"&&SS(Q,"data:")===0&&fr[x])){if(!(mt&&!Ge(ue,Kr(Q,W,"")))){if(Q)return!1}}}}}}}return!0},wl=function(x){return x!=="annotation-xml"&&ei(x,B)},xl=function(x){Tt(Y.beforeSanitizeAttributes,x,null);const{attributes:N}=x;if(!N||Ps(x))return;const Q={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:U,forceKeepAttr:void 0};let Ee=N.length;for(;Ee--;){const Fe=N[Ee],{name:Ae,namespaceURI:rt,value:Pt}=Fe,wr=ye(Ae),Rs=Pt;let Ve=Ae==="value"?Rs:LS(Rs);if(Q.attrName=wr,Q.attrValue=Ve,Q.keepAttr=!0,Q.forceKeepAttr=void 0,Tt(Y.uponSanitizeAttribute,x,Q),Ve=Q.attrValue,Ue&&(wr==="id"||wr==="name")&&(Ke(Ae,x),Ve=Ht+Ve),Vt&&Ge(/((--!?|])>)|<\/(style|title|textarea)/i,Ve)){Ke(Ae,x);continue}if(wr==="attributename"&&ei(Ve,"href")){Ke(Ae,x);continue}if(Q.forceKeepAttr)continue;if(!Q.keepAttr){Ke(Ae,x);continue}if(!Xe&&Ge(/\/>/i,Ve)){Ke(Ae,x);continue}Dt&&zn([ve,be,Pe],kl=>{Ve=Kr(Ve,kl," ")});const _l=ye(x.nodeName);if(!yl(_l,wr,Ve)){Ke(Ae,x);continue}if(j&&typeof v=="object"&&typeof v.getAttributeType=="function"&&!rt)switch(v.getAttributeType(_l,wr)){case"TrustedHTML":{Ve=j.createHTML(Ve);break}case"TrustedScriptURL":{Ve=j.createScriptURL(Ve);break}}if(Ve!==Rs)try{rt?x.setAttributeNS(rt,Ae,Ve):x.setAttribute(Ae,Ve),Ps(x)?it(x):Vh(e.removed)}catch{Ke(Ae,x)}}Tt(Y.afterSanitizeAttributes,x,null)},Jm=function ee(x){let N=null;const Q=vl(x);for(Tt(Y.beforeSanitizeShadowDOM,x,null);N=Q.nextNode();)Tt(Y.uponSanitizeShadowNode,N,null),bl(N),xl(N),N.content instanceof a&&ee(N.content);Tt(Y.afterSanitizeShadowDOM,x,null)};return e.sanitize=function(ee){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},N=null,Q=null,Ee=null,Fe=null;if(Br=!ee,Br&&(ee="<!-->"),typeof ee!="string"&&!gl(ee))if(typeof ee.toString=="function"){if(ee=ee.toString(),typeof ee!="string")throw Gr("dirty is not a string, aborting")}else throw Gr("toString is not a function");if(!e.isSupported)return ee;if(ur||qe(x),e.removed=[],typeof ee=="string"&&(Qt=!1),Qt){if(ee.nodeName){const Pt=ye(ee.nodeName);if(!ce[Pt]||M[Pt])throw Gr("root node is forbidden and cannot be sanitized in-place")}}else if(ee instanceof c)N=Ts("<!---->"),Q=N.ownerDocument.importNode(ee,!0),Q.nodeType===Yr.element&&Q.nodeName==="BODY"||Q.nodeName==="HTML"?N=Q:N.appendChild(Q);else{if(!Lt&&!Dt&&!Et&&ee.indexOf("<")===-1)return j&&dr?j.createHTML(ee):ee;if(N=Ts(ee),!N)return Lt?null:dr?E:""}N&&St&&it(N.firstChild);const Ae=vl(Qt?ee:N);for(;Ee=Ae.nextNode();)bl(Ee),xl(Ee),Ee.content instanceof a&&Jm(Ee.content);if(Qt)return ee;if(Lt){if(et)for(Fe=C.call(N.ownerDocument);N.firstChild;)Fe.appendChild(N.firstChild);else Fe=N;return(U.shadowroot||U.shadowrootmode)&&(Fe=R.call(n,Fe,!0)),Fe}let rt=Et?N.outerHTML:N.innerHTML;return Et&&ce["!doctype"]&&N.ownerDocument&&N.ownerDocument.doctype&&N.ownerDocument.doctype.name&&Ge(vm,N.ownerDocument.doctype.name)&&(rt="<!DOCTYPE "+N.ownerDocument.doctype.name+`> 65`+rt),Dt&&zn([ve,be,Pe],Pt=>{rt=Kr(rt,Pt," ")}),j&&dr?j.createHTML(rt):rt},e.setConfig=function(){let ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};qe(ee),ur=!0},e.clearConfig=function(){Oe=null,ur=!1},e.isValidAttribute=function(ee,x,N){Oe||qe({});const Q=ye(ee),Ee=ye(x);return yl(Q,Ee,N)},e.addHook=function(ee,x){typeof x=="function"&&Zr(Y[ee],x)},e.removeHook=function(ee,x){if(x!==void 0){const N=CS(Y[ee],x);return N===-1?void 0:ES(Y[ee],N,1)[0]}return Vh(Y[ee])},e.removeHooks=function(ee){Y[ee]=[]},e.removeAllHooks=function(){Y=zh()},e}var bm=gm();const qS={ALLOWED_TAGS:["p","br","strong","em","u","del","s","strike","h1","h2","h3","h4","h5","h6","ul","ol","li","a","img","blockquote","pre","code","div","span","hr","figure","figcaption","iframe","table","thead","tbody","tr","th","td"],ALLOWED_ATTR:["href","src","alt","title","class","id","target","rel","loading","frameborder","allow","allowfullscreen","sandbox","style","width","height"],ALLOW_DATA_ATTR:!0},FS={USE_PROFILES:{svg:!0,svgFilters:!0},ADD_DATA_URI_TAGS:["image"],ALLOWED_TAGS:["svg","path","g","rect","circle","ellipse","line","polyline","polygon","text","tspan","defs","clipPath","mask","use","symbol","image","pattern","linearGradient","radialGradient","stop","filter","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence"],ALLOWED_ATTR:["fill","stroke","stroke-width","stroke-linecap","stroke-linejoin","d","viewBox","xmlns","xmlns:xlink","width","height","x","y","rx","ry","cx","cy","r","points","transform","class","id","style","clip-path","mask","opacity","fill-opacity","stroke-opacity","font-size","font-family","text-anchor","dominant-baseline","offset","stop-color","stop-opacity","gradientUnits","gradientTransform","xlink:href","href","preserveAspectRatio","patternContentUnits","patternUnits","patternTransform"]};function ul(t){return t?bm.sanitize(t,FS):""}function zS(t){if(!t)return!1;try{const e=new URL(t);return e.protocol!=="https:"||e.username||e.password||e.port?!1:e.hostname==="player.vimeo.com"?/^\/video\/\d+\/?$/.test(e.pathname):["www.youtube.com","youtube.com","www.youtube-nocookie.com"].includes(e.hostname)&&/^\/embed\/[a-zA-Z0-9_-]+\/?$/.test(e.pathname)}catch{return!1}}function LR(t){if(!t)return"";const e=bm.sanitize(t,{...qS,RETURN_DOM_FRAGMENT:!0});for(const n of e.querySelectorAll("iframe")){if(zS(n.getAttribute("src")))continue;const o=e.ownerDocument.createElement("div");o.className="text-muted-foreground text-sm p-4 bg-muted rounded",o.textContent="[Embedded content removed for security]",n.replaceWith(o)}const r=e.ownerDocument.createElement("div");return r.append(e),r.innerHTML}function WS({badgeId:t,className:e}){const{data:r}=xS(),n=t?r?.find(o=>o.id===t):void 0;return n?.svg_content?s.jsx("div",{className:re("flex-shrink-0 flex items-center justify-center [&>svg]:w-full [&>svg]:h-full",e),title:n.tooltip||n.name,"aria-label":n.name,dangerouslySetInnerHTML:{__html:ul(n.svg_content)}}):s.jsx("div",{className:re("flex items-center justify-center rounded-full bg-secondary text-muted-foreground",e),children:s.jsx($i,{className:"w-4 h-4"})})}function ZS({notification:t,className:e="w-12 h-12"}){const r=t.metadata??{},n=[r.featured_project_thumbnail,r.thumbnail_url,r.image_url].find(l=>typeof l=="string"&&l.length>0),[o,a]=i.useState();if(t.type==="badge"||t.type==="badge_granted")return s.jsx(WS,{badgeId:typeof r.badge_id=="string"?r.badge_id:null,className:`${e} shrink-0 p-1`});if(!n&&(t.actor||Ni(t))){const l=t.actor,c=l?.display_name||l?.username||(typeof r.new_user_name=="string"?r.new_user_name:"User");return l?.avatar_url&&o!==l.avatar_url?s.jsx("img",{src:l.avatar_url,alt:c,loading:"lazy",onError:()=>a(l.avatar_url),className:`${e} shrink-0 rounded-full object-cover bg-secondary`}):s.jsx("span",{role:"img","aria-label":c,className:`${e} shrink-0 rounded-full bg-secondary flex items-center justify-center text-sm font-medium text-muted-foreground`,children:Array.from(c.trim())[0]?.toUpperCase()||"?"})}return!n||o===n?null:s.jsx("img",{src:n,alt:"",loading:"lazy",onError:()=>a(n),className:`${e} shrink-0 rounded-lg object-cover bg-secondary`})}const ym=new Set(["announcement","image_share","project_share","like","follow","folder_follow","comment","folder_comment","folder_invite","folder_share","folder_shared","folder_update","folder_create","folder_save","save","collaboration_accepted","collaboration_removed","badge","badge_granted","mention"]);function KS(t,e,r){return ym.has(t??"")?e!==!1:t==="marketing"||t==="promotion"?r===!0:!0}function GS(t){if(!t)return null;try{const e=new URL(t,"https://unbserved.com");return e.origin!=="https://unbserved.com"&&e.origin!=="https://www.unbserved.com"?null:e.pathname+e.search+e.hash}catch{return null}}let Wt=null,Vi=null,os=0;function QS(t,e){return k.channel(`notifications-${t}`).on("postgres_changes",{event:"*",schema:"public",table:"app_notifications",filter:`user_id=eq.${t}`},r=>
65{e.setQueryData(["notifications",t],n=>{const o=n??[];if(r.eventType==="INSERT"){const a=r.new;return a.is_archived||o.some(l=>l.id===a.id)?o:[a,...o]}if(r.eventType==="UPDATE"){const a=r.new;return a.is_archived?o.filter(l=>l.id!==a.id):o.map(l=>l.id===a.id?{...l,...a}:l)}if(r.eventType==="DELETE"){const a=r.old;return o.filter(l=>l.id!==a.id)}return o})}).subscribe()}function YS(t,e){os+=1,!(Wt&&Vi===t)&&(Wt&&(k.removeChannel(Wt),Wt=null),Vi=t,Wt=QS(t,e))}function JS(){os=Math.max(0,os-1),os===0&&Wt&&(k.removeChannel(Wt),Wt=null,Vi=null)}function XS(){const{user:t}=ke(),e=ae(),{data:r}=jn(),n=["notification-window",t?.id],{data:o=50}=he({queryKey:n,queryFn:()=>50,initialData:50,enabled:!1}),a=g=>{const j=[...r?.email_notifications===!1?[...ym]:[],...r?.marketing_emails!==!0?["marketing","promotion"]:[]];return j.length?g.or(`type.is.null,type.not.in.(${j.join(",")})`):g},l=he({queryKey:["notifications",t?.id],queryFn:async()=>{if(!t?.id)return[];const g=k.from("app_notifications").select("id, title, message, type, is_read, is_archived, action_url, created_at, source_user_id, source_image_id, source_folder_id, metadata").eq("user_id",t.id).eq("is_archived",!1).order("created_at",{ascending:!1}).order("id",{ascending:!1}),j=[];for(let E=0;E<o;E+=500){const L=Math.min(o,E+500)-1,{data:D,error:C}=await a(g).range(E,L);if(C)throw C;if(j.push(...D??[]),!D||D.length<L-E+1)break}return j},enabled:!!t?.id,staleTime:12e4,throwOnError:!1});i.useEffect(()=>{e.invalidateQueries({queryKey:["notifications",t?.id]})},[r?.email_notifications,r?.marketing_emails,t?.id,e,o]);const c=he({queryKey:["notification-unread-total",t?.id,r?.email_notifications,r?.marketing_emails],enabled:!!t?.id,queryFn:async()=>{const{count:g,error:j}=await a(k.from("app_notifications").select("id",{count:"exact",head:!0}).eq("user_id",t.id).eq("is_archived",!1).eq("is_read",!1));if(j)throw j;return g??0},staleTime:12e4});i.useEffect(()=>{e.invalidateQueries({queryKey:["notification-unread-total",t?.id]})},[l.data,t?.id,e]);const u=(l.data??[]).filter(g=>KS(g.type,r?.email_notifications,r?.marketing_emails)),d=[...new Set(u.map(Ni).filter(g=>!!g))].sort(),{data:f=[]}=he({queryKey:["notification-actors",t?.id,d],queryFn:async()=>{const{data:g,error:j}=await k.from("app_users").select("id, display_name, username, avatar_url").in("id",d);if(j)throw j;return g??[]},enabled:!!t?.id&&d.length>0,staleTime:6e4,throwOnError:!1}),h=new Map(f.map(g=>[g.id,g])),m=u.map(g=>({...g,actor:h.get(Ni(g)??"")})),v=c.data??u.filter(g=>!g.is_read).length;i.useEffect(()=>{if(t?.id)return YS(t.id,e),()=>{JS()}},[t?.id,e]);const p=z({mutationFn:async g=>{if(!t?.id)throw new Error("Not authenticated");const{error:j,count:E}=await k.from("app_notifications").update({is_read:!0,read_at:new Date().toISOString()},{count:"exact"}).eq("id",g).eq("user_id",t.id);if(!j&&E!==1)throw new Error("Notification not updated");if(j)throw j},onSuccess:async(g,j)=>{e.setQueryData(["notifications",t?.id],E=>(E??[]).map(L=>L.id===j?{...L,is_read:!0}:L))},onError:()=>{I.error("Could not update notification. Please try again.")}}),w=z({mutationFn:async()=>{if(!t?.id)throw new Error("Not authenticated");const{error:g}=await k.from("app_notifications").update({is_read:!0,read_at:new Date().toISOString()}).eq("user_id",t.id).eq("is_read",!1);if(g)throw g},onSuccess:async()=>{e.setQueryData(["notifications",t?.id],g=>(g??[]).map(j=>({...j,is_read:!0})))},onError:()=>{I.error("Could not update notifications. Please try again.")}}),y=z({mutationFn:async g=>{if(!t?.id)throw new Error("Not authenticated");const{error:j,count:E}=await k.from("app_notifications").update({is_archived:!0,archived_at:new Date().toISOString()},{count:"exact"}).eq("id",g).eq("user_id",t.id);if(!j&&E!==1)throw new Error("Notification not updated");if(j)throw j},onError:()=>I.error("Could not archive notification. Please try again."),onSuccess:async(g,j)=>{e.setQueryData(["notifications",t?.id],E=>(E??[]).filter(L=>L.id!==j))}}),b=z({mutationFn:async g=>{if(!t?.id)throw new Error("Not authenticated");const{error:j,count:E}=await k.from("app_notifications").delete({count:"exact"}).eq("id",g).eq("user_id",t.id);if(!j&&E!==1)throw new Error("Notification not deleted");if(j)throw j},onSuccess:async(g,j)=>
65{e.setQueryData(["notifications",t?.id],E=>(E??[]).filter(L=>L.id!==j))},onError:()=>{I.error("Could not update notifications. Please try again.")}}),_=z({mutationFn:async({userId:g,title:j,message:E,type:L="system",actionUrl:D,metadata:C})=>{const{data:$,error:R}=await k.from("app_notifications").insert({user_id:g,title:j,message:E,type:L,action_url:D,metadata:C?JSON.parse(JSON.stringify(C)):null,is_read:!1,is_archived:!1}).select().single();if(R)throw R;return $}});return{notifications:m,error:l.error||c.error,refetch:()=>Promise.all([l.refetch(),c.refetch()]),hasMore:(l.data?.length??0)>=o,isFetching:l.isFetching,loadMore:()=>e.setQueryData(n,g=>(g??50)+50),unreadCount:v,isLoading:l.isLoading,markAsRead:p,markAllAsRead:w,archiveNotification:y,deleteNotification:b,createNotification:_}}function De(t){const e=Object.prototype.toString.call(t);return t instanceof Date||typeof t=="object"&&e==="[object Date]"?new t.constructor(+t):typeof t=="number"||e==="[object Number]"||typeof t=="string"||e==="[object String]"?new Date(t):new Date(NaN)}function eL(t,e){return t instanceof Date?new t.constructor(e):new Date(e)}const OR=6048e5,$R=864e5,AR=6e4,TR=36e5,PR=525600,Zn=43200,Wh=1440;let tL={};function rL(){return tL}function Zh(t){const e=De(t),r=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return r.setUTCFullYear(e.getFullYear()),+t-+r}function as(t,e){const r=De(t),n=De(e),o=r.getTime()-n.getTime();return o<0?-1:o>0?1:o}function nL(t){return eL(t,Date.now())}function sL(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function oL(t){if(!sL(t)&&typeof t!="number")return!1;const e=De(t);return!isNaN(Number(e))}function aL(t,e){const r=De(t),n=De(e),o=r.getFullYear()-n.getFullYear(),a=r.getMonth()-n.getMonth();return o*12+a}function iL(t){return e=>{const n=(t?Math[t]:Math.trunc)(e);return n===0?0:n}}function lL(t,e){return+De(t)-+De(e)}function cL(t){const e=De(t);return e.setHours(23,59,59,999),e}function uL(t){const e=De(t),r=e.getMonth();return e.setFullYear(e.getFullYear(),r+1,0),e.setHours(23,59,59,999),e}function dL(t){const e=De(t);return+cL(e)==+uL(e)}function hL(t,e){const r=De(t),n=De(e),o=as(r,n),a=Math.abs(aL(r,n));let l;if(a<1)l=0;else{r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-o*a);let c=as(r,n)===-o;dL(De(t))&&a===1&&as(t,n)===1&&(c=!1),l=o*(a-Number(c))}return l===0?0:l}function fL(t,e,r){const n=lL(t,e)/1e3;return iL(r?.roundingMethod)(n)}const mL={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},pL=(t,e,r)=>{let n;const o=mL[t];return typeof o=="string"?n=o:e===1?n=o.one:n=o.other.replace("{{count}}",e.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function oi(t){return(e={})=>{const r=e.width?String(e.width):t.defaultWidth;return t.formats[r]||t.formats[t.defaultWidth]}}const vL={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},gL={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},bL={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},yL={date:oi({formats:vL,defaultWidth:"full"}),time:oi({formats:gL,defaultWidth:"full"}),dateTime:oi({formats:bL,defaultWidth:"full"})},wL={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},xL=(t,e,r,n)=>wL[t];function Jr(t){return(e,r)=>{const n=r?.context?String(r.context):"standalone";let o;if(n==="formatting"&&t.formattingValues){const l=t.defaultFormattingWidth||t.defaultWidth,c=r?.width?String(r.width):l;o=t.formattingValues[c]||t.formattingValues[l]}else{const l=t.defaultWidth,c=r?.width?String(r.width):t.defaultWidth;o=t.values[c]||t.values[l]}const a=t.argumentCallback?t.argumentCallback(e):e;return o[a]}}const _L={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},kL={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},jL={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},CL={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
65ay","Saturday"]},EL={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},SL={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},LL=(t,e)=>{const r=Number(t),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},OL={ordinalNumber:LL,era:Jr({values:_L,defaultWidth:"wide"}),quarter:Jr({values:kL,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Jr({values:jL,defaultWidth:"wide"}),day:Jr({values:CL,defaultWidth:"wide"}),dayPeriod:Jr({values:EL,defaultWidth:"wide",formattingValues:SL,defaultFormattingWidth:"wide"})};function Xr(t){return(e,r={})=>{const n=r.width,o=n&&t.matchPatterns[n]||t.matchPatterns[t.defaultMatchWidth],a=e.match(o);if(!a)return null;const l=a[0],c=n&&t.parsePatterns[n]||t.parsePatterns[t.defaultParseWidth],u=Array.isArray(c)?AL(c,h=>h.test(l)):$L(c,h=>h.test(l));let d;d=t.valueCallback?t.valueCallback(u):u,d=r.valueCallback?r.valueCallback(d):d;const f=e.slice(l.length);return{value:d,rest:f}}}function $L(t,e){for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&e(t[r]))return r}function AL(t,e){for(let r=0;r<t.length;r++)if(e(t[r]))return r}function TL(t){return(e,r={})=>{const n=e.match(t.matchPattern);if(!n)return null;const o=n[0],a=e.match(t.parsePattern);if(!a)return null;let l=t.valueCallback?t.valueCallback(a[0]):a[0];l=r.valueCallback?r.valueCallback(l):l;const c=e.slice(o.length);return{value:l,rest:c}}}const PL=/^(\d+)(th|st|nd|rd)?/i,RL=/\d+/i,NL={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ML={any:[/^b/i,/^(a|c)/i]},IL={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},DL={any:[/1/i,/2/i,/3/i,/4/i]},VL={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},HL={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},BL={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},UL={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},qL={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},FL={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},zL={ordinalNumber:TL({matchPattern:PL,parsePattern:RL,valueCallback:t=>parseInt(t,10)}),era:Xr({matchPatterns:NL,defaultMatchWidth:"wide",parsePatterns:ML,defaultParseWidth:"any"}),quarter:Xr({matchPatterns:IL,defaultMatchWidth:"wide",parsePatterns:DL,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Xr({matchPatterns:VL,defaultMatchWidth:"wide",parsePatterns:HL,defaultParseWidth:"any"}),day:Xr({matchPatterns:BL,defaultMatchWidth:"wide",parsePatterns:UL,defaultParseWidth:"any"}),dayPeriod:Xr({matchPatterns:qL,defaultMatchWidth:"any",parsePatterns:FL,defaultParseWidth:"any"})},WL={code:"en-US",formatDistance:pL,formatLong:yL,formatRelative:xL,localize:OL,match:zL,options:{weekStartsOn:0,firstWeekContainsDate:1}};function ZL(t,e,r){const n=rL(),o=r?.locale??n.locale??WL,a=2520,l=as(t,e);if(isNaN(l))throw new RangeError("Invalid time value");const c=Object.assign({},r,{addSuffix:r?.addSuffix,comparison:l});let u,d;l>0?(u=De(e),d=De(t)):(u=De(t),d=De(e));const f=fL(d,u),h=(Zh(d)-Zh(u))/1e3,m=Math.round((f-h)/60);let v;if(m<2)return r?.includeSeconds?f<5?o.formatDistance("lessThanXSeconds",5,c):f<10?o.formatDistance("lessThanXSeconds",10,c):f<20?o.formatDistance("lessThanXSeconds",20,c):f<40?o.formatDistance("halfAMinute",0,c):f<60?o.formatDistance("lessThanXMinutes",1,c):o.formatDistance("xMinutes",1,c):m===0?o.formatDistance("lessThanXMinutes",1,c):o.formatDistance("xMinutes",m,c);if(m<45)return o.formatDistance("xMinutes",m,c);if(m<90)return o.formatDistance("aboutXHours",1,c);if(m<Wh){const p=Math.round(m/60);return o.formatDistance("aboutXHours",p,c)}else{if(m<a)return o.formatDistance("xDays",1,c);if(m<Zn){const p=Math.round(m/Wh);return o.formatDistance("xDays",p,c)}else if(m<Zn*2)return v=Math.round(m/Zn),o.formatDistance("aboutXMonths",v,c)}if(v=hL(d,u),v<12){const p=Math.round(m/Zn);return o.formatDistance("xMonths",p,c)}else{const p=v%12,w=Math.trunc(v/12);return p<3?o.formatDistance("aboutXYears",w,c):p<9?o.formatDistance("overXYears",w,c):o.formatDistance("almostXYears",w+1,c)}}function wm(t,e){return ZL(t,nL(t),e)}const KL=ip,GL=lp,xm=i.forwardRef(({className:t,align:e="center",sideOffset:r=4,...n},o)=>s.jsx(ap,{children:s.jsx(d2,{"data-ui":"popover",ref:o,align:e,sideOffset:r,className:re("z-50 w-72 rounded-lg border bg-popover p-4 text-popover-foreground shadow-md outline-none 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]:sli
65de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...n})}));xm.displayName=d2.displayName;const Hi=V.forwardRef(function(e,r){const[n,o]=i.useState(!1),[a,l]=i.useState("all"),{notifications:c,unreadCount:u,isLoading:d,error:f,refetch:h,markAsRead:m,markAllAsRead:v,archiveNotification:p}=XS(),w=a==="unread"?c.filter(b=>!b.is_read):c,y=m.isPending||v.isPending||p.isPending;return s.jsx("div",{ref:r,children:s.jsxs(KL,{open:n,onOpenChange:o,children:[s.jsx(GL,{asChild:!0,children:s.jsxs("button",{className:"relative p-2.5 rounded-full text-muted-foreground hover:text-foreground hover:bg-secondary","aria-label":"Notifications",children:[s.jsx($i,{className:"h-5 w-5"}),u>0&&s.jsx("span",{className:"absolute right-1 top-1 h-2 w-2 rounded-full bg-foreground","aria-label":`${u} unread`})]})}),s.jsxs(xm,{align:"end",sideOffset:12,"aria-label":"Notifications",onEscapeKeyDown:b=>{b.preventDefault(),b.stopPropagation(),o(!1)},className:"notification-panel z-[200] w-[420px] max-w-[calc(100vw-24px)] p-0 rounded-2xl border-0 overflow-hidden bg-background shadow-xl",children:[s.jsxs("header",{className:"flex items-center justify-between px-5 pt-4 pb-3",children:[s.jsxs("div",{children:[s.jsx("h2",{className:"text-base font-semibold",children:"Notifications"}),s.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:u?`${u} unread`:"Youâre all caught up"})]}),s.jsxs("div",{className:"flex gap-1",children:[s.jsx(G,{to:"/settings?tab=notifications",onClick:()=>o(!1),"aria-label":"Notification settings",className:"p-2 rounded-full hover:bg-secondary",children:s.jsx(Oi,{className:"h-4 w-4"})}),s.jsx("button",{"aria-label":"Close notifications",onClick:()=>o(!1),className:"p-2 rounded-full hover:bg-secondary",children:s.jsx(kn,{className:"h-4 w-4"})})]})]}),s.jsxs("div",{className:"flex items-center justify-between px-5 pb-3 gap-2",children:[s.jsx("div",{className:"flex rounded-full bg-secondary p-1","aria-label":"Notification filter",children:["all","unread"].map(b=>s.jsx("button",{"aria-pressed":a===b,onClick:()=>l(b),className:`rounded-full px-3 py-1 text-xs ${a===b?"bg-background font-medium":"text-muted-foreground"}`,children:b==="all"?"All":"Unread"},b))}),s.jsx("button",{disabled:!u||y,onClick:()=>v.mutate(),className:"text-xs text-muted-foreground hover:text-foreground disabled:opacity-40",children:"Mark all read"})]}),s.jsx("div",{className:"max-h-[min(420px,55dvh)] overflow-y-auto overscroll-contain px-2 pb-2",children:d?s.jsxs("div",{role:"status",className:"p-3 space-y-3",children:[[1,2,3].map(b=>s.jsx("div",{className:"h-16 rounded-xl bg-secondary motion-safe:animate-pulse"},b)),s.jsx("span",{className:"sr-only",children:"Loading notifications"})]}):f?s.jsxs("div",{role:"alert",className:"p-6 text-center text-sm",children:[s.jsx("p",{children:"Couldnât load notifications."}),s.jsx("button",{onClick:()=>h(),className:"mt-3 underline",children:"Try again"})]}):w.length?s.jsx("ul",{className:"space-y-1",children:w.map(b=>{const _=GS(b.action_url),g=b.created_at?new Date(b.created_at):null,j=s.jsxs(s.Fragment,{children:[s.jsx(ZS,{notification:b}),s.jsx("span",{className:`mt-1.5 h-1.5 w-1.5 rounded-full shrink-0 ${b.is_read?"bg-transparent":"bg-foreground"}`}),s.jsxs("span",{className:"min-w-0",children:[s.jsx("span",{className:`block text-sm leading-snug ${b.is_read?"font-normal":"font-semibold"}`,children:b.title}),b.message&&s.jsx("span",{className:"block text-xs text-muted-foreground leading-relaxed mt-1 line-clamp-2",children:b.message}),g&&oL(g)&&s.jsx("time",{dateTime:g.toISOString(),className:"block text-[11px] text-muted-foreground mt-2",children:wm(g,{addSuffix:!0})})]})]});return s.jsxs("li",{className:`flex items-start rounded-xl p-3 gap-2 hover:bg-secondary/60 ${b.is_read?"":"bg-secondary/35"}`,children:[_?s.jsx(G,{className:"flex gap-2 flex-1 min-w-0",to:_,onClick:()=>{b.is_read||m.mutate(b.id),o(!1)},children:j}):s.jsx("div",{className:"flex gap-2 flex-1 min-w-0",children:j}),s.jsxs("div",{className:"flex flex-col gap-1",children:[!b.is_read&&s.jsx("button",{"aria-label":`Mark as read: ${b.title}`,disabled:y,onClick:()=>m.mutate(b.id),className:"p-2 rounded-full hover:bg-secondary disabled:opacity-40",children:s.jsx(ol,{className:"h-3.5 w-3.5"})}),s.jsx("button",{"aria-label":`Archive: ${b.title}`,disabled:y,onClick:()=>p.mutate(b.id),className:"p-2 rounded-full hover:bg-secondary disabled:opacity-40",children:s.jsx(CE,{className:"h-3.5 w-3.5"})})]})]},b.id)})}):s.jsxs("div",{className:"py-10 px-5 text-center",children:[s.jsx($i,{className:"h-6 w-6 mx-auto text-muted-foreground mb-3"}),s.jsx("p",{className:"text-sm font-medium",children:a==="unread"?u>0?"Unread updates in earlier history":"No unread notifications":"Nothing here yet"}),s.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:a==="unread"&&u>0?"Open all notifications to see earlier updates.":"Your updates will appear here."})]})}),s.jsx("footer",{className:"border-t border-border/40 px-5 py-3",children:s.jsx(G,{to:"/notifications",onClick:()=>o(!1),className:"block text-center text-xs font-medium",children:"View all notifications"})})]})]})})});Hi.displayName="NotificationsDropdown";const dl=u2,QL=i2,_m=i.forwardRef(({className:t,...e},r)=>s.jsx(qi,{ref:r,"data-dialog-overlay":"",className:re("fixed inset-0 z-50 bg-black/60 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 duration-200",t),...e}));_m.displayName=qi.displayName;const Ls=i.forwardRef(({className:t,overlayClassName:e,hideClose:r=!1,children:n,...o},a)=>s.jsxs(QL,{children:[s.jsx(_m,{className:e}),s.jsxs(Fi,{ref:a,"data-dialog-surface":"",className:re("fixed z-50 w-full border bg-background shadow-xl","inset-x-0 bottom-0 rounded-t-xl p-6","max-h-[90dvh] overflow-y-auto","sm:inset-x-auto sm:bottom-auto sm:top-[50%] sm:left-[50%]","sm:translate-x-[-50%] sm:translate-y-[-50%]","sm:max-w-lg sm:rounded-lg sm:max-h-[85vh]","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]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom","sm:data-[state=closed]:slide-out-to-left-1/2 sm:data-[state=closed]:slide-out-to-top-[48%]","sm:data-[state=open]:slide-in-from-left-1/2 sm:data-[state=open]:slide-in-from-top-[48%]","sm:data-[state=closed]:zoom-out-[0.98] sm:data-[state=open]:zoom-in-[0.98]","duration-200",t),...o,children:[n,!r&&s.jsxs(Zi,{className:"absolute right-4 top-4 min-h-11 min-w-11 flex items-center justify-center rounded-full opacity-70 ring-offset-background transition duration-150 hover:opacity-100 hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary data-[state=open]:text-muted-foreground active:scale-95",children:[s.jsx(kn,{className:"h-5 w-5"}),s.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Ls.displayName=Fi.displayName;
65const km=({className:t,...e})=>s.jsx("div",{className:re("flex flex-col space-y-1.5 text-center sm:text-left",t),...e});km.displayName="DialogHeader";const YL=({className:t,...e})=>s.jsx("div",{className:re("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...e});YL.displayName="DialogFooter";const Os=i.forwardRef(({className:t,...e},r)=>s.jsx(zi,{ref:r,className:re("text-lg font-semibold leading-none tracking-tight",t),...e}));Os.displayName=zi.displayName;const $s=i.forwardRef(({className:t,...e},r)=>s.jsx(Wi,{ref:r,className:re("text-sm text-muted-foreground",t),...e}));$s.displayName=Wi.displayName;class is extends Error{status;fn;constructor(e,r,n){super(r),this.name="FunctionError",this.fn=e,this.status=n}}async function JL(t){const e=t;if(!(!e||typeof e.clone!="function"))try{const r=await e.clone().json(),n=r?.error??r?.message;return typeof n=="string"&&n?n:void 0}catch{return}}async function Gt(t,e,r=`${t} failed`){const{data:n,error:o}=await k.functions.invoke(t,{body:e});if(o){const l=o.context,c=await JL(l),u=l?.status;throw new is(t,c||o.message||r,u)}const a=n;if(a&&typeof a=="object"){if(typeof a.error=="string"&&a.error)throw new is(t,a.error);if(a.success===!1){const l=[a.error,a.message].find(c=>typeof c=="string"&&c);throw new is(t,l||r)}}return n}function jm(t,e){const{user:r}=ke(),n=ae(),o=i.useRef(r?.id);o.current=r?.id;const a=he({queryKey:["folder-collaborators",t,e,r?.id],queryFn:async()=>{if(!t&&!e)return[];let _=k.from("folder_collaborators").select("id, folder_id, folder_name, email, collaborator_user_id, owner_user_id, invited_by, role, status, created_at, updated_at").order("created_at",{ascending:!1});t?_=_.eq("folder_id",t):e&&(_=_.eq("folder_name",e));const{data:g,error:j}=await _;if(j)throw j;const E=new Map;for(const R of g||[]){const Y=R.email?.toLowerCase()||R.collaborator_user_id||R.id;(!E.get(Y)||R.status==="accepted")&&E.set(Y,R)}const L=Array.from(E.values()),D=L.map(R=>R.collaborator_user_id).filter(R=>!!R);let C={};if(D.length>0){const{data:R,error:Y}=await k.from("public_user_profiles").select("id, username, display_name, avatar_url, is_verified").in("id",D);if(Y)throw Y;(R||[]).forEach(ve=>{C[ve.id]={username:ve.username,display_name:ve.display_name,avatar_url:ve.avatar_url,is_verified:ve.is_verified}})}return L.map(R=>R.collaborator_user_id&&C[R.collaborator_user_id]?{...R,user:C[R.collaborator_user_id]}:R)},enabled:!!r?.id&&(!!t||!!e),staleTime:3e4,throwOnError:!1}),l=he({queryKey:["folder-invites",r?.email],queryFn:async()=>{if(!r?.email)return[];const{data:_,error:g}=await k.from("collaboration_invites").select("id, folder_id, folder_name, invited_by_name, invited_by_user_id, role, status, created_at, expires_at").eq("invited_email",(r.email||"").toLowerCase()).eq("status","pending").order("created_at",{ascending:!1});if(g)throw g;return _},enabled:!!r?.email,staleTime:3e4,throwOnError:!1}),c=he({queryKey:["shared-folders",r?.id],queryFn:async()=>{if(!r?.id)return[];const{data:_,error:g}=await k.from("folder_collaborators").select("id, folder_id, folder_name, email, collaborator_user_id, owner_user_id, role, status, created_at").eq("collaborator_user_id",r.id).eq("status","accepted").order("created_at",{ascending:!1});if(g)throw g;return _||[]},enabled:!!r?.id,staleTime:3e4,throwOnError:!1}),u=z({mutationFn:async({email:_,role:g})=>{if(!r?.id)throw new Error("You must be logged in");if(!t)throw new Error("Collection ID is required");return await Gt("invite-collaborator-by-email",{folderId:t,email:_,role:g},"Could not send the invite")},onSuccess:()=>{n.invalidateQueries({queryKey:["folder-collaborators",t]}),I.success("Invite delivered","Invite_sent")},onError:_=>{I.error(_.message,"ERR")}}),d=z({mutationFn:async({userId:_,role:g})=>{if(!r?.id)throw new Error("You must be logged in");if(!t)throw new Error("Collection ID is required");return await Gt("invite-collaborator-by-user",{folderId:t,userId:_,role:g},"Could not send the invite")},onSuccess:()=>{n.invalidateQueries({queryKey:["folder-collaborators",t]}),I.success("Invite delivered","Invite_sent")},onError:_=>{I.error(_.message,"ERR")}}),f=async(_,g)=>{if(!r?.id)throw new Error("Not authenticated");const{data:j,error:E}=await k.rpc("respond_to_folder_invitation",{_invite_id:_,_accept:g,_expected_user_id:r.id});
65if(o.current!==r.id)throw new Error("Your account changed. Please try again.");if(E)throw E;if(!j)throw new Error("Could not process the invitation");return j},h=()=>{for(const _ of["folder-invites","shared-folders","folders","folder-collaborators","folder","folder-images"])n.invalidateQueries({queryKey:[_]})},m=z({mutationFn:_=>f(_,!0),onSuccess:_=>{o.current===r?.id&&(h(),I.success(_.wasDowngraded?"Invite accepted as viewer â upgrade to Pro to edit shared collections":"Invite accepted","SYS_OK"))},onError:_=>{o.current===r?.id&&I.error(_.message,"ERR")}}),v=z({mutationFn:_=>f(_,!1),onSuccess:()=>{o.current===r?.id&&(h(),I.success("Invite declined","SYS_OK"))},onError:_=>{o.current===r?.id&&I.error(_.message,"ERR")}}),p=z({mutationFn:async _=>{const{data:g}=await k.from("folder_collaborators").select("folder_id, email, status").eq("id",_).maybeSingle(),{data:j,error:E}=await k.from("folder_collaborators").delete().eq("id",_).select("id");if(E)throw E;if(!j||j.length===0)throw new Error("Couldn't remove this collaborator â you may not have permission");g?.status==="pending"&&g.email&&g.folder_id&&await k.from("collaboration_invites").delete().eq("folder_id",g.folder_id).ilike("invited_email",g.email).eq("status","pending")},onSuccess:()=>{n.invalidateQueries({queryKey:["folder-collaborators",t]}),n.invalidateQueries({queryKey:["folders"]}),n.invalidateQueries({queryKey:["folder"]}),n.invalidateQueries({queryKey:["folder-images"]}),n.invalidateQueries({queryKey:["shared-folders"]}),I.success("Collaborator removed","SYS_OK")},onError:_=>{I.error(_.message,"ERR")}}),w=z({mutationFn:async({collaboratorId:_,newRole:g})=>{const{data:j,error:E}=await k.from("folder_collaborators").update({role:g}).eq("id",_).select("id");if(!E&&!j?.length)throw new Error("Could not update permissions for this collaborator");if(E)throw E},onSuccess:()=>{n.invalidateQueries({queryKey:["folder-collaborators",t]}),n.invalidateQueries({queryKey:["folders"]}),n.invalidateQueries({queryKey:["folder"]}),n.invalidateQueries({queryKey:["folder-images"]}),n.invalidateQueries({queryKey:["shared-folders"]}),I.success("Permission updated","SYS_OK")},onError:_=>{I.error(_.message,"ERR")}}),y=_=>{if(!r?.id)return!1;if(_?.owner_user_id===r.id)return!0;const g=a.data?.find(j=>j.collaborator_user_id===r.id&&j.status==="accepted");return g?.role==="editor"||g?.role==="admin"},b=_=>r?.id?_?.owner_user_id===r.id?!0:a.data?.find(j=>j.collaborator_user_id===r.id&&j.status==="accepted")?.role==="admin":!1;return{collaborators:a.data||[],pendingInvites:l.data||[],sharedFolders:c.data||[],isLoadingCollaborators:a.isLoading,isLoadingInvites:l.isLoading,invitesError:l.error,retryInvites:l.refetch,inviteCollaborator:u,inviteCollaboratorByUserId:d,acceptInvite:m,rejectInvite:v,removeCollaborator:p,updateRole:w,canEdit:y,isAdmin:b}}const XL={viewer:Jf,editor:wE,admin:Zt},eO={viewer:"View only",editor:"Can edit",admin:"Full access"};function tO({isOpen:t,onClose:e}){const{pendingInvites:r,isLoadingInvites:n,invitesError:o,retryInvites:a,sharedFolders:l,acceptInvite:c,rejectInvite:u}=jm(),{isPro:d,isLoading:f,hasConfirmedStatus:h}=ks(),m=l.length,v=h&&!d&&m>=d5.MAX_SHARED_FOLDERS_FREE,p=async y=>{try{await c.mutateAsync(y),r.length<=1&&e()}catch{}},w=async y=>{try{await u.mutateAsync(y),r.length<=1&&e()}catch{}};return t?s.jsx(dl,{open:t,onOpenChange:y=>{y||e()},children:s.jsxs(Ls,{className:"p-0 sm:max-w-md overflow-hidden",children:[s.jsx($s,{className:"sr-only",children:"Review invitations to shared collections."}),s.jsx("div",{className:"p-5 pr-16 border-b border-border flex items-center justify-between",children:s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"w-10 h-10 rounded-full bg-primary/10 flex items-center justify-center",children:s.jsx(bh,{className:"w-5 h-5 text-primary"})}),s.jsxs("div",{children:[s.jsx(Os,{className:"text-lg font-semibold",children:"Collection Invites"}),r.length>0&&s.jsxs("p",{className:"text-sm text-muted-foreground",children:[r.length," pending ",r.length===1?"invite":"invites"]})]})]})}),s.jsxs("div",{className:"p-4 space-y-3 max-h-[60vh] overflow-y-auto",children:[v&&r.length>0&&s.jsxs("div",{className:"flex items-center gap-2 p-3 bg-yellow-500/10 border border-yellow-500/20 rounded-lg text-sm",children:[s.jsx(gE,{className:"w-4 h-4 text-yellow-500 flex-shrink-0"}),s.jsx("span",{className:"text-yellow-600 dark:text-yellow-400",children:"Free limit reached (1 collection)"}),s.jsx(G,{to:"/upgrade",className:"text-primary font-medium ml-auto hover:underline",onClick:e,children:"Upgrade"})]}),n||f?s.jsx("div",{className:"space-y-3 py-4",children:[1,2,3].map(y=>s.jsx("div",{className:"h-16 rounded-lg bg-secondary skeleton-shimmer"},y))}):o?s.jsxs("div",{className:"py-8 text-center",role:"alert",children:[s.jsx("p",{className:"text-sm text-muted-foreground",children:"Could not load your invitations."}),s.jsx("button",{className:"mt-3 text-sm underline",onClick:()=>{a()},children:"Try again"})]}):r.length===0?s.jsxs("div",{className:"text-center py-12",children:[s.jsx("div",{className:"w-16 h-16 rounded-full bg-secondary flex items-center justify-center mx-auto mb-4",children:s.jsx(bh,{className:"w-7 h-7 text-muted-foreground"})}),s.jsx("h3",{className:"text-base font-medium mb-2",children:"No pending invites"}),s.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:"When someone shares a collection with you, it will appear here."})]}):r.map(y=>{const b=y.expires_at&&new Date(y.expires_at)<new Date,_=d?y.role:"viewer",g=XL[_]||Jf;return s.jsxs("div",{className:`rounded-lg border border-border p-4 space-y-3 ${b?"opacity-50":""}`,children:[s.jsxs("div",{className:"flex items-start justify-between gap-3",children:[s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsx("p",{className:"text-base font-semibold truncate",children:y.folder_name}),s.jsxs("p",{className:"text-sm text-muted-foreground mt-0.5",children:["from ",y.invited_by_name||"Unknown"]})]}),s.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1 bg-secondary rounded-full text-xs font-medium flex-shrink-0",children:[s.jsx(g,{className:"w-3 h-3"}),eO[_],h&&!d&&y.role!=="viewer"&&s.jsx("span",{className:"text-muted-foreground",children:"(Free)"})]})]}),y.expires_at&&s.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[s.jsx(Xf,{className:"w-3.5 h-3.5"}),b?s.jsx("span",{className:"text-destructive",children:"Expired"}):s.jsxs("span",{children:["Expires ",wm(new Date(y.expires_at),{addSuffix:!0})]})]}),s.jsxs("div",{className:"flex gap-2 pt-1",children:[!b&&s.jsxs("button",{onClick:()=>p(y.id),disabled:c.isPending||u.isPending||v,className:"flex-1 flex items-center justify-center gap-2 px-4 py-2.5 bg-foreground text-background rounded-full text-sm font-medium hover:bg-foreground
65/90 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",title:v?"Free users can only collaborate on 1 collection":void 0,children:[s.jsx(ol,{className:"w-4 h-4"}),"Accept"]}),s.jsxs("button",{onClick:()=>w(y.id),disabled:u.isPending||c.isPending,className:"flex-1 flex items-center justify-center gap-2 px-4 py-2.5 border border-border rounded-full text-sm font-medium hover:bg-secondary transition-colors disabled:opacity-50",children:[s.jsx(LE,{className:"w-4 h-4"}),"Decline"]})]})]},y.id)})]})]})}):null}const Cm=i.forwardRef(({className:t,type:e,...r},n)=>s.jsx("input",{"data-ui":"input",type:e,className:re("flex h-10 w-full rounded-full border border-input bg-secondary px-4 py-2 text-sm 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:border-foreground/60 focus-visible:bg-background focus-visible:ring-2 focus-visible:ring-ring/30 focus-visible:ring-offset-1 disabled:cursor-not-allowed disabled:opacity-50 transition-[background-color,border-color,box-shadow] duration-300 ease-[cubic-bezier(0.16,1,0.3,1)]",t),ref:n,...r}));Cm.displayName="Input";var rO="Label",Em=i.forwardRef((t,e)=>s.jsx(cp.label,{...t,ref:e,onMouseDown:r=>{r.target.closest("button, input, select, textarea")||(t.onMouseDown?.(r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));Em.displayName=rO;var Sm=Em;const nO=sm("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Bi=i.forwardRef(({className:t,...e},r)=>s.jsx(Sm,{ref:r,className:re(nO(),t),...e}));Bi.displayName=Sm.displayName;const sO=up,Lm=i.forwardRef(({className:t,...e},r)=>s.jsx(h2,{ref:r,className:re("inline-flex h-10 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",t),...e}));Lm.displayName=h2.displayName;const ls=i.forwardRef(({className:t,...e},r)=>s.jsx(f2,{ref:r,className:re("inline-flex items-center justify-center whitespace-nowrap rounded-lg px-3 py-1.5 text-sm font-medium ring-offset-background transition focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",t),...e}));ls.displayName=f2.displayName;const oO=i.forwardRef(({className:t,...e},r)=>s.jsx(m2,{ref:r,className:re("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",t),...e}));oO.displayName=m2.displayName;const Om=i.forwardRef(({isOpen:t,onClose:e,initialType:r="feedback"},n)=>{const{user:o}=ke(),a=Me(),[l,c]=i.useState(r),[u,d]=i.useState(""),[f,h]=i.useState(""),[m,v]=i.useState(!1),[p,w]=i.useState(!1);i.useEffect(()=>{t&&c(r)},[r,t]);const y=async _=>{if(_.preventDefault(),!u.trim()||!f.trim()){I.error("Please fill in all fields");return}v(!0);try{const{error:g}=await k.from("user_feedback").insert({user_id:o?.id||null,user_email:o?.email||null,type:l,title:u.trim(),description:f.trim(),page_url:window.location.href,priority:l==="bug"?"high":"normal"});if(g)throw g;w(!0),setTimeout(()=>{d(""),h(""),w(!1),e()},2e3)}catch(g){console.error("Error submitting feedback:",g),I.error("Failed to submit. Please try again.")}finally{v(!1)}},b=()=>{d(""),h(""),w(!1)};return s.jsx(dl,{open:t,onOpenChange:_=>{_||(b(),e())},children:s.jsxs(Ls,{ref:n,className:"feedback-dialog sm:max-w-md",overlayClassName:"feedback-overlay",children:[s.jsxs(km,{children:[s.jsx(Os,{className:"flex items-center gap-2",children:l==="bug"?"Report a bug":l==="feature"?"Share an idea":"Send feedback"}),s.jsx($s,{children:"Help us improve your experience."})]}),p?s.jsxs("div",{className:"py-12 text-center",children:[s.jsx(jE,{className:"w-16 h-16 text-green-500 mx-auto mb-4"}),s.jsx("h3",{className:"text-lg font-medium mb-2",children:"Thank you!"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Your feedback has been received."})]}):s.jsxs("form",{onSubmit:y,className:"space-y-4",children:[s.jsx(sO,{value:l,onValueChange:_=>c(_),children:s.jsxs(Lm,{className:"grid w-full grid-cols-3",children:[s.jsxs(ls,{value:"feedback",className:"flex items-center justify-center gap-1.5 min-h-11",children:[s.jsx(Li,{className:"w-3.5 h-3.5"}),s.jsx("span",{className:"feedback-tab-label",children:"Feedback"})]}),s.jsxs(ls,{value:"bug",className:"flex items-center justify-center gap-1.5 min-h-11",children:[s.jsx(OE,{className:"w-3.5 h-3.5"}),s.jsx("span",{className:"feedback-tab-label",children:"Bug"})]}),s.jsxs(ls,{value:"feature",className:"flex items-center justify-center gap-1.5 min-h-11",children:[s.jsx($E,{className:"w-3.5 h-3.5"}),s.jsx("span",{className:"feedback-tab-label",children:"Idea"})]})]})}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(Bi,{htmlFor:"feedback-title",children:l==="bug"?"What went wrong?":l==="feature"?"Your idea":"Subject"}),s.jsx(Cm,{id:"feedback-title",value:u,onChange:_=>d(_.target.value),placeholder:l==="bug"?"e.g., Button not working on mobile":l==="feature"?"e.g., Add dark mode toggle":"e.g., Love the new design!",maxLength:100})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(Bi,{htmlFor:"feedback-description",children:l==="bug"?"Steps to reproduce":"Details"}),s.jsx("textarea",{id:"feedback-description",value:f,onChange:_=>h(_.target.value),placeholder:l==="bug"?`1. Go to... 662. Click on... 673. See error...`:"Tell us more...",className:"w-full min-h-[120px] px-3 py-2 text-sm rounded-lg border border-input bg-background resize-none focus:outline-none focus:ring-2 focus:ring-ring",maxLength:1e3}),s.jsxs("p",{className:"text-xs text-muted-foreground text-right",children:[f.length,"/1000"]})]}),s.jsxs("div",{className:"flex gap-3 pt-2",children:[s.jsx(bn,{type:"button",variant:"outline",className:"flex-1",onClick:()=>{b(),e()},disabled:m,children:"Cancel"}),s.jsx(bn,{type:"submit",className:"flex-1",disabled:m||!u.trim()||!f.trim(),children:m?s.jsxs(s.Fragment,{children:[s.jsx(Yf,{className:"w-4 h-4 mr-2 animate-spin"}),"Sending..."]}):"Send"})]}),s.jsxs("p",{className:"feedback-context text-xs text-muted-foreground text-center",children:["Current page: ",s.jsx("span",{className:"font-mono",children:a.pathname})]})]})]})})});Om.displayName="FeedbackModal";function RR(){const{user:t}=ke();ae();const{data:e=[],isLoading:r,error:n,refetch:o}=he({queryKey:["conversations",t?.id],queryFn:async()=>
67{if(!t?.id)return[];const{data:a,error:l}=await k.from("conversation_participants").select("conversation_id").eq("user_id",t.id);if(l)throw l;if(!a?.length)return[];const c=a.map(g=>g.conversation_id),[u,d,f,h]=await Promise.all([k.from("conversations").select("id, created_at, updated_at").in("id",c).order("updated_at",{ascending:!1}),k.from("conversation_participants").select("id, conversation_id, user_id, last_read_at").in("conversation_id",c),k.rpc("get_last_messages_for_conversations",{conv_ids:c}),k.rpc("get_unread_counts",{p_user_id:t.id,conv_ids:c})]);if(u.error)throw u.error;if(d.error)throw d.error;if(f.error)throw f.error;if(h.error)throw h.error;if(!u.data?.length)return[];const m=d.data||[],v=[...new Set(m.map(g=>g.user_id))],{data:p,error:w}=await k.rpc("get_public_user_infos",{user_ids:v});if(w)throw w;const y=new Map((p||[]).map(g=>[g.id,g])),b=new Map((f.data||[]).map(g=>[g.conversation_id,g])),_=new Map((h.data||[]).map(g=>[g.conversation_id,Number(g.unread_count)||0]));return u.data.map(g=>{const j=m.filter(L=>L.conversation_id===g.id).map(L=>({...L,user:y.get(L.user_id)})),E=b.get(g.id);return{...g,participants:j,lastMessage:E?{...E,metadata:E.metadata||{}}:void 0,unreadCount:_.get(g.id)||0}})},enabled:!!t?.id,staleTime:15e3,throwOnError:!1});return{conversations:e,isLoading:r,error:n,refetch:o}}const ai=30;function NR(t){ae();const[e,r]=i.useState([]),[n,o]=i.useState(!1),[a,l]=i.useState(!1),[c,u]=i.useState(!0),d=i.useRef(0),f=i.useRef(t),h=i.useRef(0),m=i.useRef(null),[v,p]=i.useState(null),w=he({queryKey:["conversation-messages",t],queryFn:async({queryKey:b})=>{const[,_]=b;if(!_)return{messages:[],totalCount:0};const{data:g,error:j,count:E}=await k.from("messages").select("*",{count:"exact"}).eq("conversation_id",_).eq("is_deleted",!1).order("created_at",{ascending:!1}).range(0,ai-1);if(j)throw j;if(!g?.length)return{messages:[],totalCount:E||0};const L=[...new Set(g.map(R=>R.sender_id))],{data:D}=await k.rpc("get_public_user_infos",{user_ids:L}),C=new Map((D||[]).map(R=>[R.id,R]));return{messages:g.map(R=>({...R,metadata:R.metadata||{},sender:C.get(R.sender_id)})).reverse(),totalCount:E||0}},enabled:!!t});i.useEffect(()=>{const b=f.current!==t;b&&(h.current+=1,f.current=t,r([]),o(!1),d.current=0,u(!0),l(!1),p(null),m.current=null);const _=h.current;w.isSuccess&&w.data!==void 0&&_===h.current&&f.current===t&&(r(g=>{const j=new Map((b?[]:g).map(L=>[L.id,L]));w.data.messages.forEach(L=>j.set(L.id,L));const E=[...j.values()].sort((L,D)=>L.created_at.localeCompare(D.created_at)||L.id.localeCompare(D.id));return d.current=E.length,o(w.data.totalCount>E.length),E}),u(!1))},[t,w.isSuccess,w.data]);const y=i.useCallback(async()=>{if(!t||m.current!==null||!n)return;const b=h.current;m.current=b;const _=()=>f.current===t&&h.current===b;l(!0),p(null);try{const{data:g,error:j}=await k.from("messages").select("id, conversation_id, sender_id, content, message_type, metadata, created_at, is_deleted").eq("conversation_id",t).eq("is_deleted",!1).order("created_at",{ascending:!1}).range(d.current,d.current+ai-1);if(j)throw j;if(!_())return;if(!g?.length){o(!1);return}const E=[...new Set(g.map($=>$.sender_id))],{data:L}=await k.rpc("get_public_user_infos",{user_ids:E}),D=new Map((L||[]).map($=>[$.id,$])),C=g.map($=>({...$,metadata:$.metadata||{},sender:D.get($.sender_id)})).reverse();if(!_())return;r($=>[...new Map([...C,...$].map(R=>[R.id,R])).values()]),d.current+=g.length,g.length<ai&&o(!1)}catch(g){_()&&p(g instanceof Error?g:new Error("Could not load earlier messages"))}finally{_()&&(m.current=null,l(!1))}},[t,a,n]);return i.useEffect(()=>{if(!t)return;const b=h.current;let _=!1;const g=k.channel(`messages-${t}`).on("postgres_changes",{event:"INSERT",schema:"public",table:"messages",filter:`conversation_id=eq.${t}`},async j=>{if(_||f.current!==t||h.current!==b)return;const E=j.new,{data:L}=await k.rpc("get_public_user_infos",{user_ids:[E.sender_id]});if(_||f.current!==t||h.current!==b)return;const D=L?.[0]??null,C={...E,metadata:E.metadata||{},sender:D??void 0};r($=>$.some(R=>R.id===C.id)?$:(d.current+=1,[...$,C]))}).subscribe();return()=>{_=!0,k.removeChannel(g)}},[t]),{messages:e.filter(b=>b.conversation_id===t),isLoading:w.isLoading,error:w.error,refetch:w.refetch,loadM
67oreError:v,hasMore:n,isLoadingMore:a,isInitialLoad:c,loadMoreMessages:y}}function MR(){const{user:t}=ke(),e=ae();return z({mutationFn:async({conversationId:r,content:n,messageType:o="text",metadata:a={}})=>{if(!t?.id)throw new Error("Not authenticated");const{data:l,error:c}=await k.from("messages").insert([{conversation_id:r,sender_id:t.id,content:n,message_type:o,metadata:a?JSON.parse(JSON.stringify(a)):null}]).select().single();if(c)throw c;return l},onSuccess:()=>{e.invalidateQueries({queryKey:["conversations"]})},onError:()=>{A(async()=>{const{toast:r}=await Promise.resolve().then(()=>x5);return{toast:r}},void 0).then(({toast:r})=>{r.error("Failed to send message")})}})}function IR(){const{user:t}=ke(),e=ae();return z({mutationFn:async r=>{if(!t?.id)throw new Error("Not authenticated");const{data:n,error:o}=await k.rpc("get_or_create_conversation",{user1_id:t.id,user2_id:r});if(o)throw o;return n},onSuccess:()=>{e.invalidateQueries({queryKey:["conversations"]})}})}function DR(){const{user:t}=ke(),e=ae();return z({mutationFn:async r=>{if(!t?.id)throw new Error("Not authenticated");const{error:n}=await k.from("conversation_participants").update({last_read_at:new Date().toISOString()}).eq("conversation_id",r).eq("user_id",t.id);if(n)throw n},onSuccess:()=>{t?.id&&(e.refetchQueries({queryKey:["conversations",t.id],exact:!0}),e.refetchQueries({queryKey:["unread-message-count",t.id],exact:!0}))}})}function aO(){const{user:t}=ke();return ae(),he({queryKey:["unread-message-count",t?.id],queryFn:async()=>{if(!t?.id)return 0;const{data:r,error:n}=await k.from("conversation_participants").select("conversation_id").eq("user_id",t.id);if(n)throw n;if(!r?.length)return 0;const o=r.map(c=>c.conversation_id),{data:a,error:l}=await k.rpc("get_unread_counts",{p_user_id:t.id,conv_ids:o});if(l)throw l;return(a||[]).reduce((c,u)=>c+(Number(u.unread_count)||0),0)},enabled:!!t?.id,staleTime:3e4,refetchInterval:6e4,refetchIntervalInBackground:!1,refetchOnWindowFocus:!0})}const cs="header_hidden_items",VR=[{id:"nav.explore",label:"EXPLORE (top nav)",group:"nav"},{id:"nav.collections",label:"COLLECTIONS (top nav)",group:"nav"},{id:"nav.featured",label:"FEATURED (top nav)",group:"nav"},{id:"nav.blog",label:"BLOG (top nav)",group:"nav"},{id:"nav.activity",label:"ACTIVITY (top nav)",group:"nav"},{id:"header.search",label:"Search icon",group:"header-icons"},{id:"header.invites",label:"Collection invites icon",group:"header-icons"},{id:"header.messages",label:"Messages icon",group:"header-icons"},{id:"header.notifications",label:"Notifications dropdown",group:"header-icons"},{id:"header.userMenu",label:"User menu (hamburger)",group:"header-icons"},{id:"header.avatar",label:"Avatar",group:"header-icons"},{id:"header.trialBanner",label:"Trial banner",group:"header-icons"},{id:"menu.collections",label:"My Collections",group:"user-dropdown"},{id:"menu.settings",label:"Settings",group:"user-dropdown"},{id:"menu.upgrade",label:"Upgrade Account",group:"user-dropdown"},{id:"menu.darkMode",label:"Dark Mode toggle",group:"user-dropdown"},{id:"menu.admin",label:"Admin Panel",group:"user-dropdown"},{id:"menu.extension",label:"Browser Extension",group:"user-dropdown"},{id:"menu.submit",label:"Submit your work",group:"user-dropdown"},{id:"menu.privacy",label:"Privacy Policy",group:"user-dropdown"},{id:"menu.instagram",label:"@unbserved (Instagram)",group:"user-dropdown"},{id:"menu.email",label:"[email protected]",group:"user-dropdown"},{id:"menu.feedback",label:"Feedback",group:"user-dropdown"},{id:"menu.logout",label:"Logout",group:"user-dropdown"},{id:"mobile.search",label:"Mobile: Search",group:"mobile-only"},{id:"mobile.messages",label:"Mobile: Messages shortcut",group:"mobile-only"},{id:"mobile.notifications",label:"Mobile: Notifications",group:"mobile-only"},{id:"mobile.home",label:"Mobile menu: Home",group:"mobile-only"},{id:"mobile.myProfile",label:"Mobile menu: My Profile",group:"mobile-only"},{id:"mobile.messagesItem",label:"Mobile menu: Messages",group:"mobile-only"},{id:"mobile.submit",label:"Mobile menu: Submit your work",group:"mobile-only"},{id:"mobile.goPro",label:"Mobile menu: GO PRO",group:"mobile-only"},{id:"mobile.editProfile",label:"Mobile menu: Edit Profile",group:"mobile-only"},{id:"mobile.settings",label:"Mobile menu: Settings",group:"mobile-only"},{id:"mobile.extension",label:"Mobile menu: Browser Extension",group:"mobile-only"},{id:"mobile.darkMode",label:"Mobile menu: Dark Mode",group:"mobile-only"},{id:"mobile.admin",label:"Mobile menu: Admin Panel",group:"mobile-only"},{id:"mobile.logout",label:"Mobile menu: Logout",group:"mobile-only"},{id:"mobilenav.explore",label:"Bottom navigation: Explore",group:"mobile-only"},{id:"mobilenav.search",label:"Bottom navigation: Search",group:"mobile-only"}
67,{id:"mobilenav.saved",label:"Bottom navigation: Saved",group:"mobile-only"},{id:"mobilenav.profile",label:"Bottom navigation: Profile",group:"mobile-only"}];function iO(t){if(!t)return new Set;try{const e=JSON.parse(t);return new Set(Array.isArray(e)?e:[])}catch{return new Set}}const $m="menu-visibility-cache";function lO(){try{return localStorage.getItem($m)}catch{return null}}function Am(t){try{localStorage.setItem($m,t)}catch{}}function hl(){const t=he({queryKey:["menu-visibility"],queryFn:async()=>{const{data:r,error:n}=await k.from("site_settings").select("value").eq("key",cs).maybeSingle();if(n)throw n;const o=r?.value??"[]";return Am(o),o},staleTime:18e5,initialData:()=>lO()??void 0,initialDataUpdatedAt:0}),e=i.useMemo(()=>iO(t.data),[t.data]);return{hidden:e,isHidden:r=>e.has(r),isLoading:t.isLoading,raw:t.data??"[]"}}function HR(){const t=ae();return z({mutationFn:async e=>{const r=JSON.stringify(e),{data:n}=await k.from("site_settings").select("id").eq("key",cs).maybeSingle();if(n){const{error:o}=await k.from("site_settings").update({value:r}).eq("key",cs);if(o)throw o}else{const{error:o}=await k.from("site_settings").insert({key:cs,value:r});if(o)throw o}return r},onSuccess:e=>{Am(e),t.setQueryData(["menu-visibility"],e),t.invalidateQueries({queryKey:["menu-visibility"]}),I.success("Menu visibility updated")},onError:e=>I.error(`Failed: ${e.message}`)})}function cO(t){return t.replace(/fill=["']#232323["']/gi,'fill="#E8E8DC"').replace(/fill=["']#000000["']/gi,'fill="#E8E8DC"').replace(/fill=["']#000["']/gi,'fill="#E8E8DC"').replace(/fill=["']black["']/gi,'fill="#E8E8DC"').replace(/stroke=["']#232323["']/gi,'stroke="#E8E8DC"').replace(/stroke=["']#000000["']/gi,'stroke="#E8E8DC"').replace(/stroke=["']#000["']/gi,'stroke="#E8E8DC"')}const As=i.memo(i.forwardRef(({className:t,size:e=64},r)=>{const{mascotLogoSvg:n,mascotLogoSvgDark:o,isLoading:a}=Ss(),{theme:l}=js(),c=l==="dark";if(!a&&n){const u=c&&o?o:n,d=c&&!o?cO(u):u;return s.jsx("div",{ref:r,className:re("shrink-0 inline-flex items-center justify-center [&>svg]:w-full [&>svg]:h-full [&>svg]:max-w-full [&>svg]:max-h-full",t),style:{width:e,height:e},dangerouslySetInnerHTML:{__html:ul(d)},"aria-label":"Unbserved Dragon Logo"})}return s.jsx("div",{ref:r,className:re("shrink-0",t),style:{width:e,height:e},children:s.jsx("img",{src:"/favicon.png",alt:"Unbserved Dragon Logo",width:e,height:e,className:"object-contain dark:invert w-full h-full"})})}));As.displayName="MascotLogo";const uO=i.forwardRef(({className:t},e)=>s.jsxs("svg",{ref:e,viewBox:"0 0 51 27",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:re("pro-badge-pill h-auto",t),children:[s.jsx("rect",{x:"0.5",y:"0.5",width:"49.4766",height:"25.1719",rx:"12.5859",fill:"#F0FF00",stroke:"#F0FF00"}),s.jsx("path",{d:"M15.0072 9.81333H18.3104C19.8897 9.81333 20.7671 10.6804 20.7671 12.0946C20.7671 13.5294 19.8691 14.3552 18.3104 14.3552H16.2975V17.1836H15.0072V9.81333ZM16.2975 13.3023H18.2175C18.8987 13.3023 19.4768 12.8894 19.4768 12.0843C19.4768 11.2585 19.0329 10.8662 18.2484 10.8662H16.2975V13.3023ZM21.8922 9.81333H25.4638C26.9399 9.81333 27.8483 10.5049 27.8483 11.8056C27.8483 12.7346 27.425 13.3849 26.6302 13.6636V13.6843C27.3425 13.7772 27.7244 14.3656 27.7244 15.2636C27.7244 16.2442 27.8689 16.8842 28.127 17.1836H26.7438C26.6096 16.9978 26.5476 16.6675 26.5476 16.0894C26.5476 15.2843 26.4238 14.7681 26.1863 14.5204C25.9489 14.2726 25.598 14.1488 25.1231 14.1488H23.1825V17.1836H21.8922V9.81333ZM23.1825 13.1681H25.3296C26.1038 13.1681 26.558 12.7862 26.558 11.9914C26.558 11.2275 26.1863 10.8662 25.3193 10.8662H23.1825V13.1681ZM32.2983 9.63785C34.497 9.63785 35.8286 11.403 35.8286 13.4985C35.8286 15.6146 34.4867 17.3591 32.2983 17.3591C30.0893 17.3591 28.768 15.6043 28.768 13.4985C28.768 11.403 30.0996 9.63785 32.2983 9.63785ZM30.0583 13.4985C30.0583 14.892 30.719 16.3062 32.2983 16.3062C33.888 16.3062 34.5383 14.9023 34.5383 13.4985C34.5383 12.0946 33.8777 10.6907 32.288 10.6907C30.6983 10.6907 30.0583 12.1049 30.0583 13.4985Z",fill:"black"})]}));uO.displayName="ProBadgePill";const Tm=i.forwardRef(({className:t},e)=>s.jsxs("svg",{ref:e,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:re("h-auto",t),children:[s.jsx("circle",{cx:"13.7979",cy:"13.7979",r:"13.7979",fill:"#F0FF00"}),s.jsx("path",{d:"M24.9454 9.68158C24.8406 9.58838 24.7299 9.5243 24.5785 9.51848C23.9552 9.501 23.5591 9.65828 22.9941 9.9437C22.831 10.0311 22.6446 10.0835 22.4465 10.1476C22.3417 10.1825 22.2135 10.2874 22.0621 10.4563C22.033 10.4912 22.0155 10.532 22.0097 10.5786L21.9805 11.4058C21.9805 11.4058 21.9805 11.4232 21.9805 11.4291C21.9339 11.5689 21.9165 11.7028 21.9223 11.8252C21.9223 11.8426 21.9223 11.8543 21.9106 11.8659C21.9048 11.8776 21.8932 11.8892 21.8757 11.8892C21.8582 11.8951 21.8466 11.8951 21.8349 11.8892C21.8174 11.8892 21.8058
6711.8776 21.8 11.8659L21.3281 11.1145C21.3048 11.0796 21.2757 11.0504 21.2408 11.033C21.2058 11.0097 21.165 11.0038 21.1243 11.0097C20.5942 11.0563 20.0991 11.2019 19.6447 11.4582C19.371 11.6096 19.2486 11.8485 19.2778 12.1747C19.3244 12.6931 19.3884 13.0717 19.4758 13.3163C19.5865 13.6367 19.5981 13.9862 19.4933 14.2542C19.4933 14.2658 19.4933 14.2716 19.4933 14.2833C19.4933 14.2949 19.4991 14.3008 19.5049 14.3066C19.5108 14.3124 19.5224 14.3182 19.5282 14.3241C19.5399 14.3241 19.5457 14.3241 19.5574 14.3241L20.3962 14.1726C20.3962 14.1726 20.4195 14.1668 20.4253 14.161C20.5884 14.0619 20.7631 14.0328 20.9495 14.0678C20.9612 14.0678 20.9728 14.0736 20.9845 14.0852C20.9961 14.0969 21.002 14.1027 21.0078 14.1144C21.0136 14.126 21.0194 14.1377 21.0136 14.1551C21.0136 14.1668 21.0136 14.1843 21.002 14.1901C20.833 14.4755 20.5942 14.5221 20.3496 14.6852C20.3204 14.7085 20.2913 14.7318 20.2797 14.7609C20.1515 14.9648 19.9302 15.1221 19.6156 15.2386C19.1496 15.4017 19.0273 15.1803 18.7419 14.8308C18.5555 14.6037 18.4448 14.4114 18.4098 14.2775L18.2584 13.3746C18.2584 13.3746 18.2526 13.3571 18.2467 13.3455C18.2409 13.3396 18.2293 13.3338 18.2234 13.328C18.2118 13.328 18.206 13.328 18.1943 13.328C18.1827 13.328 18.1768 13.3338 18.1652 13.3396C18.0254 13.4328 17.9089 13.5435 17.8099 13.695C17.6584 13.9396 17.4662 14.2367 17.2216 14.5804C17.0293 14.86 16.6682 15.1221 16.3129 15.0988C16.1731 15.0988 16.0915 15.0755 16.0682 15.058C15.5731 14.6794 15.2003 14.3066 14.9673 13.9338C14.8916 13.8173 14.9149 13.7183 15.0314 13.6309C15.043 13.6192 15.0547 13.6134 15.0722 13.6192C15.0896 13.6192 15.1013 13.6192 15.1129 13.6367L15.2702 13.7532C15.2702 13.7532 15.311 13.7765 15.3284 13.7823C15.6838 13.8814 16.01 13.9454 16.2954 13.9862C16.5517 14.0212 16.7148 13.9105 16.773 13.6658C16.907 13.1299 17.1517 12.6348 17.5128 12.1805C17.7283 11.9067 17.5478 11.6737 17.3439 11.4524C17.006 11.0796 16.7148 10.7708 16.4876 10.5262C16.2022 10.2233 15.8294 10.7184 15.6546 10.864C15.6372 10.8815 15.6139 10.8932 15.5906 10.899C15.5673 10.9106 15.544 10.9106 15.5207 10.9106C15.4974 10.9106 15.4741 10.9048 15.4566 10.8932C15.4333 10.8815 15.4158 10.8699 15.41 10.8524C15.3576 10.7825 15.3517 10.6835 15.3867 10.5611C15.4857 10.2466 15.5789 9.8971 15.6721 9.50683C15.6838 9.4777 15.6838 9.44858 15.6721 9.41945C15.6546 9.34373 15.6139 9.27383 15.5556 9.20976C15.276 8.91268 14.9557 8.60979 14.5887 8.31271C14.3149 8.09136 13.9538 7.76517 13.8081 7.60207C13.5577 7.31665 13.3946 7.66614 13.2955 7.85837C13.2722 7.89914 13.2431 7.92827 13.2082 7.95157C13.1033 8.01564 13.0276 8.10884 12.981 8.23116C12.9577 8.28359 12.9227 8.33019 12.8761 8.35931C12.7072 8.46416 12.4742 8.65638 12.1713 8.93016C12.0199 9.06996 11.7869 9.18063 11.6995 9.3845C11.618 9.57673 11.6471 9.72818 11.7811 9.8505C11.7811 9.8505 11.7869 9.86215 11.7927 9.86215V9.89127C11.7927 9.89127 11.7869 9.90292 11.7811 9.90292C11.717 9.95535 11.717 10.0078 11.7811 10.066C12.0199 10.2874 12.1364 10.5553 12.1364 10.8699C12.1364 10.9572 12.1189 11.0213 12.0898 11.0621C12.084 11.0737 12.0723 11.0854 12.0607 11.0912C12.049 11.1029 12.0374 11.1029 12.0199 11.1029H11.9791C11.9791 11.9791 11.95 11.0912 11.9442 11.0796C11.6413 10.8291 11.3151 10.6543 10.9714 10.567C10.9423 10.5611 10.9131 10.5611 10.8898 10.567C10.8607 10.5786 10.8432 10.5903 10.8258 10.6136C10.6627 10.8349 10.5345 11.0213 10.453 11.1728C10.4355 11.2019 10.418 11.2252 10.3947 11.2543C10.3423 11.3067 10.2899 11.3533 10.2491 11.4174L10.2374 11.4291V11.4524C10.2374 11.4524 10.2141 11.4815 10.2083 11.4931V11.5223L10.0743 12.0057C10.0743 12.0057 10.0627 12.0232 10.0627 12.0349C10.0394 12.1164 9.99862 12.1863 9.93454 12.2446C9.92289 12.2562 9.91707 12.2679 9.91707 12.2795C9.91707 12.297 9.92289 12.3086 9.92872 12.3145C9.96949 12.3611 10.0394 12.3902 10.0743 12.4251C10.1093 12.4601 10.1501 12.5416 10.1908 12.6698C10.2666 12.8853 10.3947 13.0892 10.5695 13.2697C10.6044 13.2989 10.6801 13.4212 10.8141 13.6309C10.884 13.7416 10.8898 13.8755 10.8898 14.0095C10.8898 14.027 10.8957 14.0445 10.9073 14.0561C10.919 14.0678 10.9364 14.0736 10.9539 14.0794C11.1578 14.0911 11.3325 14.0212 11.4956 13.8755C11.6529 13.7357 11.8684 13.6425 12.1364 13.6018C12.1539 13.6018 12.1655 13.5901 12.1772 13.5843L12.2412 13.5202C12.2412 13.5202 12.2703 13.4969 12.2878 13.5027C12.3053 13.5027 12.3228 13.5144 12.3402 13.5202C12.3985 13.5726 12.4334 13.6192 12.4451 13.6717C12.4509 13.695 12.4451 13.7124 12.4451 13.7299C12.4451 13.7532 12.4276 13.7707 12.416 13.7823C12.2005 14.0328 11.9791 14.3241 11.7519 14.6444C11.4956 15.0114 11.1811 15.2619 10.785 15.0056C10.4471 14.7901 10.1501 14.6386 9.89959 14.5
67512H9.88212L9.47437 14.4988C9.47437 14.4988 9.44525 14.4988 9.42777 14.4988C9.4103 14.5046 9.39865 14.5105 9.387 14.5221C9.10158 14.7726 8.88605 15.0347 8.75208 15.2968C8.74043 15.326 8.7113 15.3493 8.68218 15.3609C8.63558 15.3784 8.57733 15.39 8.50743 15.3959C8.33268 15.4133 8.28608 15.5764 8.07638 15.4832C7.87251 15.39 7.76766 15.3434 7.75601 15.3376C7.45312 15.1279 7.24924 14.9881 7.16187 14.9299C7.03954 14.8483 6.94634 14.7609 6.8881 14.6677C6.87645 14.6503 6.87062 14.6328 6.87645 14.6153C6.87645 14.5978 6.8881 14.5804 6.89392 14.5629C6.89975 14.5454 6.91722 14.5338 6.94052 14.5279C6.95799 14.5163 6.97547 14.5221 6.99294 14.5279L7.83174 14.7027C7.83174 14.7027 7.87834 14.7027 7.90164 14.7027C7.92494 14.691 7.94241 14.6852 7.95989 14.6677C7.97736 14.6503 7.98901 14.627 7.99484 14.6095C8.00066 14.5862 8.00649 14.5629 7.99484 14.5396L7.91911 14.2192V14.1901C7.97736 13.6251 8.00649 12.8387 8.32686 12.5067C8.33851 12.495 8.34433 12.4776 8.35016 12.4601C8.40841 12.2213 8.14046 12.1864 7.93659 12.1164C7.92494 12.1164 7.91911 12.1106 7.90746 12.1048L7.07449 11.5572C7.07449 11.5572 7.04537 11.5397 7.02789 11.5339L6.50947 11.33C6.50947 11.33 6.48035 11.3242 6.4687 11.33C6.45705 11.33 6.4454 11.3417 6.43375 11.3533L5.96775 11.93C5.96775 11.93 5.93863 11.9591 5.92115 11.965C5.90368 11.9766 5.88038 11.9766 5.8629 11.9708C5.8396 11.9708 5.82213 11.9591 5.80465 11.9475C5.78718 11.9358 5.77553 11.9184 5.7697 11.9009C5.68233 11.6912 5.64156 11.4582 5.65321 11.2135C5.66486 10.9689 5.56583 10.8174 5.35613 10.7592C5.07071 10.6776 4.85519 10.5611 4.62801 10.3747C4.44162 10.2175 4.33094 10.2291 4.09212 10.2175C3.97562 10.2116 3.74845 10.165 3.40477 10.0835C3.36983 10.0777 3.33488 10.0718 3.30575 10.0835C3.00285 10.1767 2.70578 10.3514 2.61841 10.6485C2.59511 10.7184 2.61841 10.8 2.67083 10.9106C2.83393 11.2485 2.95043 11.5805 3.02033 11.9125C3.02033 11.9242 3.02615 11.93 3.03198 11.9417L3.35818 12.7164C3.35818 12.7164 3.35818 12.7222 3.364 12.728C3.46302 12.8911 3.60282 13.0426 3.60282 13.1824C3.60282 13.2639 3.63777 13.328 3.6902 13.3688C3.82417 13.4678 3.8533 13.6717 3.86495 13.8173C3.86495 13.8464 3.88242 13.8755 3.8999 13.8988C4.03387 14.0736 4.13872 14.2833 4.22027 14.5396C4.23192 14.5687 4.24357 14.592 4.26104 14.6153L4.38337 14.7726C4.41832 14.825 4.44744 14.8716 4.47074 14.9299L4.71539 15.5881C4.71539 15.5881 4.72704 15.6289 4.73286 15.6522L4.76199 15.9376C4.76199 15.9667 4.77946 15.9958 4.79694 16.0191C4.87849 16.1123 4.91926 16.1706 4.93091 16.1939C5.01246 16.4094 5.07071 16.59 5.11149 16.7414C5.22216 17.1666 5.28041 17.3006 5.41438 17.72C5.42021 17.7433 5.43186 17.7608 5.45516 17.7724C5.50176 17.8016 5.51341 17.8307 5.50176 17.8656C5.47846 17.9181 5.47846 17.9588 5.49011 17.9996C5.55418 18.2268 5.57166 18.3549 5.64738 18.5821C5.72893 18.8034 5.66486 19.0015 5.46098 19.1704C5.42603 19.1995 5.40273 19.2403 5.39691 19.2869C5.38526 19.3335 5.39691 19.3801 5.42603 19.4151L5.75223 19.9393C5.75223 19.9393 5.75805 19.9568 5.75805 19.9626C5.75805 19.9684 5.75805 19.9801 5.74641 19.9859L5.86873 20.1024H21.7941L21.7767 20.0908L22.033 19.7471H22.0213C22.0213 19.7471 21.998 19.7354 21.9864 19.7296C21.9747 19.718 21.9689 19.7121 21.9631 19.7005C21.9572 19.6888 21.9572 19.6772 21.9631 19.6655L22.0854 18.8966V18.8675C22.0504 18.6345 22.0388 18.4656 22.0621 18.3375C22.1611 17.7783 22.2019 17.2191 22.4349 16.7065C22.732 16.0657 23.0057 15.4017 23.2562 14.7143C23.2853 14.6386 23.3028 14.5687 23.3145 14.4988C23.3669 14.2076 23.4077 14.027 23.4484 13.9746C23.6407 13.6717 23.7397 13.4853 23.7513 13.4212C23.8271 12.9494 23.862 12.7047 23.862 12.6814C23.862 12.6465 23.9203 12.5358 24.0309 12.3552C24.1241 12.198 24.2173 11.9475 24.3047 11.598C24.3338 11.4931 24.4503 11.2252 24.6658 10.7883C24.8173 10.4854 24.8522 10.1767 24.9746 9.8738C24.992 9.83885 24.992 9.8039 24.9804 9.77478C24.9687 9.73983 24.9513 9.7107 24.928 9.6874L24.9454 9.68158Z",fill:"#232323"})]}));Tm.displayName="FoundingMemberBadge";const Pm=({children:t,...e})=>s.jsx(fp,{delayDuration:400,skipDelayDuration:0,...e,children:t}),Rm=dp,Nm=hp,fl=i.forwardRef(({className:t,sideOffset:e=4,...r},n)=>s.jsx(p2,{ref:n,sideOffset:e,className:re("z-50 overflow-hidden rounded-full border bg-foreground px-3 py-1.5 text-sm text-background shadow-md","animate-in fade-in-0 zoom-in-95 duration-150","data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:duration-100","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
67de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...r}));fl.displayName=p2.displayName;const dO="inline-flex shrink-0 items-center gap-1 rounded-full bg-secondary font-semibold text-foreground whitespace-nowrap",hO={sm:"px-1.5 py-0.5 text-[10px] leading-none",md:"px-2 py-0.5 text-[11px]",lg:"px-2.5 py-1 text-xs"},fO={sm:"h-2.5 w-2.5",md:"h-3 w-3",lg:"h-3.5 w-3.5"},mO={sm:"w-6",md:"w-10",lg:"w-14"};function pO({isFoundingMember:t=!1,size:e="md",label:r="Pro",to:n,tone:o="soft",className:a}){if(t)return s.jsx(Pm,{children:s.jsxs(Rm,{children:[s.jsx(Nm,{asChild:!0,children:s.jsx("span",{className:re("inline-flex",a),children:s.jsx(Tm,{className:mO[e]})})}),s.jsx(fl,{children:s.jsx("p",{className:"text-xs font-medium",children:"Founding Member"})})]})});const l=re(dO,hO[e],o==="acid"&&"bg-acid text-black",n&&"transition-colors hover:bg-foreground hover:text-background",a),c=s.jsxs(s.Fragment,{children:[s.jsx(Zt,{className:fO[e],"aria-hidden":"true"}),r]});return n?s.jsx(G,{to:n,className:l,children:c}):s.jsx("span",{className:l,children:c})}function vO({avatarUrl:t,displayName:e,isPro:r,isFoundingMember:n,size:o="md",className:a}){const l={header:"w-7 h-7",sm:"w-12 h-12",md:"w-24 h-24",lg:"w-32 h-32"},c={header:"-bottom-1.5 left-1/2 -translate-x-1/2",sm:"-bottom-1.5 left-1/2 -translate-x-1/2",md:"-bottom-2 left-1/2 -translate-x-1/2",lg:"-bottom-3 left-1/2 -translate-x-1/2"},u={header:"text-xs",sm:"text-lg",md:"text-3xl",lg:"text-4xl"},d=e.charAt(0).toUpperCase(),[f,h]=i.useState(!1);return s.jsxs("div",{className:re("relative inline-block",a),children:[t&&!f?s.jsx("img",{src:t,alt:e,className:re(l[o],"rounded-full object-cover"),onError:()=>h(!0)}):s.jsx("div",{className:re(l[o],"rounded-full bg-secondary flex items-center justify-center"),children:s.jsx("span",{className:re("font-semibold text-muted-foreground",u[o]),children:d})}),r&&o!=="header"&&s.jsx("div",{className:re("absolute",c[o]),children:s.jsx(pO,{size:"sm",tone:"acid"})})]})}const gO=pp,bO=vp,BR=gp,yO=i.forwardRef(({className:t,inset:e,children:r,...n},o)=>s.jsxs(v2,{ref:o,className:re("flex cursor-default select-none items-center gap-2 rounded-lg px-2 py-1.5 text-sm outline-none ring-0 focus:ring-0 focus-visible:ring-0 focus:outline-none focus-visible:outline-none focus:bg-secondary data-[state=open]:bg-secondary [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e&&"pl-8",t),...n,children:[r,s.jsx(tm,{className:"ml-auto"})]}));yO.displayName=v2.displayName;const wO=i.forwardRef(({className:t,...e},r)=>s.jsx(g2,{"data-ui":"menu",ref:r,className:re("z-50 min-w-[8rem] overflow-hidden rounded-lg border border-border bg-popover p-1 text-popover-foreground shadow-none outline-none focus:outline-none focus-visible:outline-none focus:ring-0 focus-visible:ring-0 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",t),...e}));wO.displayName=g2.displayName;const Mm=i.forwardRef(({className:t,sideOffset:e=4,...r},n)=>s.jsx(mp,{children:s.jsx(b2,{"data-ui":"menu",ref:n,sideOffset:e,className:re("z-50 min-w-[8rem] overflow-hidden rounded-lg border border-border bg-popover p-1 text-popover-foreground shadow-none outline-none focus:outline-none focus-visible:outline-none focus:ring-0 focus-visible:ring-0","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",t),...r})}));Mm.displayName=b2.displayName;const We=i.forwardRef(({className:t,inset:e,...r},n)=>s.jsx(y2,{ref:n,className:re("relative flex cursor-default select-none items-center gap-2 px-2 py-1.5 text-sm outline-none ring-0 focus:ring-0 focus-visible:ring-0 focus:outline-none focus-visible:outline-none transition-colors hover:bg-secondary hover:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",e&&"pl-8",t),...r}));We.displayName=y2.displayName;const xO=i.forwardRef(({className:t,children:e,checked:r,...n},o)=>s.jsxs(w2,{ref:o,className:re("relative flex cursor-default select-none items-center py-1.5 pl-8 pr-2 text-sm outline-none ring-0 focus:ring-0 focus-visible:ring-0 focus:outline-none focus-visible:outline-none transition-colors focus:bg-secondary focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),checked:r,...n,children:[s.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:s.jsx(x2,{children:s.jsx(ol,{className:"h-4 w-4"})})}),e]}));xO.displayName=w2.displayName;const _O=i.forwardRef(({className:t,children:e,...r},n)=>s.jsxs(_2,{ref:n,className:re("relative flex cursor-default select-none items-center py-1.5 pl-8 pr-2 text-sm outline-none ring-0 focus:ring-0 focus-visible:ring-0 focus:outline-none focus-visible:outline-none transition-colors focus:bg-secondary focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...r,children:[s.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:s.jsx(x2,{children:s.jsx(k3,{className:"h-2 w-2 fill-current"})})}),e]}));_O.displayName=_2.displayName;const us=i.forwardRef(({className:t,inset:e,...r},n)=>s.jsx(k2,{ref:n,className:re("px-2 py-1.5 text-sm font-semibold",e&&"pl-8",t),...r}));us.displayName=k2.displayName;const ds=i.forwardRef(({className:t,...e},r)=>s.jsx(j2,{ref:r,className:re("-mx-1 my-1 h-px bg-border",t),...e}));ds.displayName=j2.displayName;const Kh=[{href:"/explore",label:"Explore",authOnly:!1,visId:"nav.explore"},{href:"/collections",label:"Collections",authOnly:!1,visId:"nav.collections"},{href:"/featured",label:"Featured",authOnly:!1,visId:"nav.featured"},{href:"/blog",label:"Blog",authOnly:!1,visId:"nav.blog"},{href:"/activity",label:"Activity",authOnly:!0,visId:"nav.activity"}],kO={"/explore":nm,"/collections":yE,"/featured":em,"/blog":Qf,"/activity":k4};function en({label:t,children:e}){return s.jsxs("section",{className:"mobile-menu-section","aria-label":t,children:[s.jsx("h3",{className:"mobile-menu-label",children:t}),e]})}const jO=i.forwardRef(function(e,r){const n=Me(),o=!n.pathname.startsWith("/admin"),a=B=>B,l=Ki(),{user:c,signOut:u,isLoading:d}=ke(),{startClosingTransition:f}=g4(),[h,m]=i.useState(!1),[v,p]=i.useState(!1),[w,y]=i.useState(!1),{pendingInvites:b}=jm(),{data:_}=sl(),{data:g=0}=aO(),{data:j}=jn(),{isPro:E,isTrial:L,isLoading:D,hasConfirmedStatus:C}=ks(),{theme:$,setTheme:R}=js(),{system:Y,setSystem:ve}=_n(),be=cr(),Pe=be.status==="playing"||be.status==="loading",{isHidden:te}=hl(),ie=async()=>{await u(),l(a("/"))};i.useEffect(()=>{m(!1)},[n.pathname]),i.useEffect(()=>{if(h)return document.body.dataset.mobileMenu="open",()=>{delete document.body.dataset.mobileMenu}},[h]),i.useEffect(()=>{if(!h)return;const B=le=>{le.key==="Escape"&&(m(!1),document.getElementById("mobile-menu-trigger")?.focus())};return document.addEventListener("keydown",B),()=>document.removeEventListener("keydown",B)},[h]);const ue=B=>{const le=Ya[B];
67le&&es(le.name,le.loader)},W=(B,le)=>{le.defaultPrevented||le.button!==0||le.metaKey||le.ctrlKey||le.shiftKey||le.altKey||(le.preventDefault(),n.pathname!==B&&l(B))};return s.jsx("header",{ref:r,role:"banner","data-lab":o||void 0,className:"bg-background/80 backdrop-blur-md supports-[backdrop-filter]:bg-background/75 border-b border-border/60 sticky top-0 z-50",children:s.jsxs("div",{className:"container-fluid",children:[s.jsxs("div",{className:"flex items-center h-[var(--header-h)] transition-[height] duration-200 ease-out",children:[s.jsxs("div",{className:"flex items-center gap-4 md:gap-10",children:[s.jsx("button",{onClick:()=>l(a("/")),className:"hover:opacity-70 transition-opacity cursor-pointer self-center","aria-label":"Unbserved - Home",children:s.jsx(As,{size:48})}),Y==="modern"&&s.jsx(G,{to:"/explore","aria-current":n.pathname.startsWith("/explore")?"page":void 0,className:`header-explore-mobile md:hidden inline-flex h-9 items-center text-[15px] font-semibold transition-opacity active:opacity-60 ${n.pathname.startsWith("/explore")?"text-foreground":"text-muted-foreground"}`,children:"Explore"}),s.jsx("nav",{"aria-label":"Main navigation",className:"hidden md:flex items-center gap-5 font-sans",children:Kh.filter(B=>(!B.authOnly||c)&&!te(B.visId)).map(B=>{const le=n.pathname===a(B.href)||o&&n.pathname.startsWith(a(B.href)+"/");return s.jsx("a",{href:a(B.href),onClick:ce=>W(a(B.href),ce),onMouseEnter:()=>{const ce=Ya[B.href];ce&&es(ce.name,ce.loader)},onTouchStart:()=>{const ce=Ya[B.href];ce&&es(ce.name,ce.loader)},className:`relative inline-flex items-center self-stretch text-[16px] font-semibold tracking-[0.005em] transition-colors ${le?"text-foreground":"text-muted-foreground hover:text-foreground"}`,"aria-current":le?"page":void 0,children:B.href==="/featured"?s.jsxs("span",{className:"relative inline-block",children:[B.label,s.jsx("span",{role:"img","aria-label":"New",title:"New",className:"absolute top-0 -right-2.5 h-1.5 w-1.5 rounded-full bg-acid ring-1 ring-black/15"})]}):B.label},B.href)})})]}),s.jsx("div",{className:"flex-1"}),s.jsxs("div",{className:"flex items-center gap-1",children:[!te("header.trialBanner")&&s.jsx("div",{className:"hidden md:block mr-2",children:s.jsx(Ih,{})}),!te("header.search")&&s.jsx(G,{to:a("/search"),className:"hidden sm:flex p-2.5 rounded-full text-muted-foreground hover:text-foreground hover:bg-secondary transition duration-150 active:scale-95","aria-label":"Search",children:s.jsx(Si,{className:"w-5 h-5"})}),o&&s.jsxs("button",{type:"button",onClick:be.toggleOpen,className:"header-radio-toggle hidden sm:flex p-2.5 rounded-full text-muted-foreground hover:text-foreground hover:bg-secondary transition duration-150 active:scale-95 relative","aria-label":be.closed?"Show radio":"Hide radio","aria-pressed":!be.closed,title:be.closed?"Show radio":"Hide radio",children:[s.jsx(Mh,{className:"w-5 h-5"}),Pe&&s.jsx("span",{className:"absolute top-1.5 right-1.5 h-2 w-2 rounded-full bg-acid ring-2 ring-background","aria-hidden":"true"})]}),d?s.jsx("div",{className:"hidden md:flex w-8 h-8"}):c?s.jsxs(s.Fragment,{children:[b.length>0&&!te("header.invites")&&s.jsxs("button",{onClick:()=>p(!0),className:"hidden md:flex p-2.5 rounded-full text-muted-foreground hover:text-foreground hover:bg-secondary transition duration-150 active:scale-95 relative","aria-label":"Collection Invites",children:[s.jsx(_E,{className:"w-5 h-5"}),s.jsx("span",{className:"absolute -top-0.5 -right-0.5 w-4 h-4 bg-primary text-primary-foreground text-[10px] font-semibold flex items-center justify-center rounded-full",children:b.length})]}),!te("header.notifications")&&s.jsx("div",{className:"hidden md:block",children:s.jsx(Hi,{})}),!te("header.userMenu")&&s.jsxs(gO,{children:[s.jsx(bO,{asChild:!0,children:s.jsxs("button",{className:"hidden md:flex p-2.5 rounded-full text-muted-foreground hover:text-foreground hover:bg-secondary transition duration-150 active:scale-95 relative","aria-label":g>0?`User menu, ${g} unread messages`:"User menu",children:[s.jsx(kh,{className:"w-5 h-5"}),g>0&&!te("header.messages")&&s.jsx("span",{className:"absolute top-1.5 right-1.5 h-2 w-2 rounded-full bg-primary ring-2 ring-background","aria-hidden":"true"})]})}),s.jsxs(Mm,{align:"end",sideOffset:10,collisionPadding:12,className:"account-menu z-[200]",children:[s.jsx(us,{className:"account-menu-label",children:"Worksp
67ace"}),s.jsxs(We,{onSelect:()=>be.toggleOpen(),className:"flex items-center gap-2.5 py-2 px-2.5 text-sm cursor-pointer",children:[s.jsx(Mh,{className:"w-4 h-4"}),"Radio",s.jsx("span",{className:"ml-auto text-xs text-muted-foreground",children:Pe?"On air":be.closed?"Show":"Hide"})]}),!te("menu.submit")&&s.jsx(We,{asChild:!0,children:s.jsxs(G,{to:a("/submit"),className:"flex items-center gap-2.5 py-2 px-2.5 text-sm cursor-pointer",children:[s.jsx(wh,{className:"w-4 h-4"}),"Submit your work"]})}),!te("menu.collections")&&s.jsx(We,{asChild:!0,children:s.jsxs(G,{to:a("/dashboard"),className:"flex items-center gap-2.5 py-2 px-2.5 text-sm cursor-pointer",children:[s.jsx(vE,{className:"w-4 h-4"}),o?"My Library":"My Collections"]})}),!te("header.messages")&&s.jsx(We,{asChild:!0,children:s.jsxs(G,{to:a("/messages"),className:"flex items-center gap-2.5 py-2 px-2.5 text-sm cursor-pointer",children:[s.jsx(Li,{className:"w-4 h-4"}),"Messages",g>0&&s.jsx("span",{className:"ml-auto min-w-5 h-5 px-1.5 bg-primary text-primary-foreground text-[11px] font-semibold flex items-center justify-center rounded-full",children:g>9?"9+":g})]})}),s.jsx(ds,{}),s.jsx(us,{className:"account-menu-label",children:"Account"}),!te("menu.settings")&&s.jsx(We,{asChild:!0,children:s.jsxs(G,{to:a("/settings"),className:"flex items-center gap-2.5 py-2 px-2.5 text-sm cursor-pointer",children:[s.jsx(Oi,{className:"w-4 h-4"}),"Settings"]})}),C&&!E&&!te("menu.upgrade")&&s.jsx(We,{asChild:!0,children:s.jsxs(G,{to:a("/upgrade"),className:"flex items-center gap-2.5 py-2 px-2.5 text-sm cursor-pointer bg-acid text-black font-medium rounded-md",children:[s.jsx(Zt,{className:"w-4 h-4"}),"Upgrade Account"]})}),s.jsxs(We,{onSelect:B=>B.preventDefault(),className:"flex items-center justify-between gap-3 py-2 px-2.5 outline-none ring-0 focus:ring-0 focus:outline-none focus:bg-transparent data-[highlighted]:bg-transparent text-foreground data-[highlighted]:text-foreground",children:[s.jsx("span",{className:"text-sm",children:"System"}),s.jsx("div",{role:"radiogroup","aria-label":"Visual system",className:"menu-system-picker",children:["classic","modern"].map(B=>s.jsx("button",{type:"button",role:"radio","aria-checked":Y===B,onClick:le=>{le.preventDefault(),le.stopPropagation(),ve(B)},children:B==="classic"?"Classic":"Modern"},B))})]}),!te("menu.darkMode")&&s.jsxs(We,{onSelect:B=>B.preventDefault(),className:"flex items-center justify-between py-2 px-2.5 outline-none ring-0 focus:ring-0 focus:outline-none focus-visible:ring-0 focus-visible:outline-none focus:bg-transparent data-[highlighted]:bg-transparent text-foreground data-[highlighted]:text-foreground",children:[s.jsxs("div",{className:"flex items-center gap-2.5",children:[$==="dark"?s.jsx(xh,{className:"w-4 h-4"}):s.jsx(_h,{className:"w-4 h-4"}),s.jsx("span",{className:"text-sm",children:"Dark Mode"})]}),E||!C?s.jsx("button",{role:"switch","aria-checked":$==="dark","aria-label":"Dark mode",disabled:!C,onClick:B=>{B.preventDefault(),B.stopPropagation(),R($==="dark"?"light":"dark",c?.id)},className:`w-9 h-5 rounded-full relative transition-colors outline-none ring-0 focus:ring-0 focus:outline-none focus-visible:ring-0 focus-visible:outline-none ${$==="dark"?"bg-primary":"bg-secondary"}`,children:s.jsx("span",{className:`absolute top-0.5 w-4 h-4 rounded-full bg-background shadow-sm transition ${$==="dark"?"right-0.5":"left-0.5"}`})}):s.jsxs(G,{to:a("/upgrade"),className:"flex items-center gap-1 text-xs text-primary hover:underline",onClick:B=>B.stopPropagation(),children:[s.jsx(Zt,{className:"w-3 h-3"}),"Pro"]})]}),_&&!te("menu.admin")&&s.jsx(s.Fragment,{children:s.jsx(We,{asChild:!0,children:s.jsxs(G,{to:"/admin",className:"flex items-center gap-2.5 py-2 px-2.5 text-sm cursor-pointer text-primary",children:[s.jsx(Sd,{className:"w-4 h-4"}),"Admin Panel"]})})}),s.jsx(ds,{}),s.jsx(us,{className:"account-menu-label",children:"Resources & support"}),!te("menu.extension")&&s.jsx(We,{asChild:!0,children:s.jsxs(G,{to:a("/extension"),className:"flex items-center gap-2.5 py-2 px-2.5 text-sm cursor-pointer",children:[s.jsx(yh,{className:"w-4 h-4"}),"Browser Extension"]})}),!te("menu.privacy")&&s.jsx(We,{asChild:!0,children:s.jsxs(G,{to:"/legal/privacy",className:"flex items-center gap-2.5 py-2 px-2.5 text-sm cursor-pointer",children:[s.jsx(Qf,{className:"w-4 h-4"}),"Privacy Policy"]})}),!te("menu.instagram")&&s.jsx(We,{asChild:!0,children:s.jsxs("a",{href:"https://instagram.com/unbserved",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 py-2 px-2.5 text-sm cursor-pointer",children:[s.jsx(TE,{className:"w-4 h-4"}),"@unbserved"]})}),!te("menu.email")&&s.jsx(We,{asChild:!0,children:s.jsxs("a",{href:"mailto:[email protected]",className:"flex items-center gap-2.5 py-2 px-2.5 text-sm cursor-pointer",children:[s.jsx(EE,{className:"w-4 h-4"}),"Contact us"]})}),!te("menu.feedback")&&s.jsxs(We,{onClick:()=>y(!0),className:"flex items-center gap-2.5 py-2 px-2.5 text-sm cursor-pointer",children:[s.jsx(kE,{className:"w-4 h-4"}),s.jsxs("span",{className:"flex items-center gap-1.5",children:["Feedback",s.jsx("span",{className:"account-menu-beta",children:"BETA"})]})]}),s.jsx(ds,{}),!te("menu.logout")&&s.jsxs(We,{onClick:ie,className:"flex items-center gap-2.5 py-2 px-2.5 text-sm cursor-pointer text-destructive focus:text-destructive",children:[s.jsx(jh,{className:"w-4 h-4"}),"Logout"]})]})]}),!te("header.avatar")&&s.jsx(Pm,{children:s.jsxs(Rm,{children:[s.jsx(Nm,{asChild:!0,children:s.jsx(G,{to:j?.username?o?`/u/${j.username}`:`/u/${j.username}`:"/settings",className:"hidden md:flex rounded-full hover:opacity-80 transition-opacity ml-1","aria-label":"View profile",children:s.jsx(vO,{avatarUrl:j?.avatar_url,displayName:j?.display_name||j?.username||c?.email||"User",isPro:!D&&E,isFoundingMember:j?.is_founding_member,size:"header"})})}),s.jsx(fl,{children:s.jsx("p",{children:"View Profile"})})]})})]}):s.jsxs("div",{className:"hidden md:flex items-center gap-2",children:[s.jsx("span",{"aria-hidden":"true",className:"header-auth-divider mx-2 h-5 w-px bg-border"}),s.jsx(G,{to:Ja(n.pathname+n.search+n.hash),onMouseEnter:()=>ue("/auth"),onFocus:()=>ue("/auth"),className:"header-login inline-flex h-9 items-center rounded-full px-3.5 pt-0.5 text-[13px] leading-none font-semibold tracking-[0.005em] text-foreground transition-colors hover:bg-secondary",children:"Log in"}),s.jsx(G,{to:nl("register",n.pathname+n.search+n.hash),onMouseEnter:()=>ue("/auth"),onFocus:()=>ue("/auth"),className:"header-signup inline-flex h-9 w-[92px] items-center justify-center rounded-full bg-foreground pt-0.5 text-[13px] leading-none font-semibold tracking-[0.005em] text-background transition-opacity hover:opacity-85",children:"Sign up"})]}),s.jsx(tO,{isOpen:v,onClose:()=>p(!1)}),s.jsx(Om,{isOpen:w,onClose:()=>y(!1)}),Y==="classic"&&!n.pathname.startsWith("/explore")&&s.jsx(G,{to:"/explore",className:"header-explore-mobile md:hidden inline-flex h-9 items-center px-2 text-[15px] font-semibold text-foreground transition-opacity active:opacity-60",children:"Explore"}),!c&&s.jsx(G,{to:Ja(n.pathname+n.search+n.hash),onTouchStart:()=>ue("/auth"),className:"header-join header-login-mobile md:hidden inline-flex h-9 items-center rounded-full border border-border bg-secondary px-4 text-[15px] leading-none font-semibold text-foreground transition-colors active:bg-foreground active:text-background",children:"Log in"}),c&&!te("mobile.notifications")&&s.jsx("div",{className:"md:hidden",children:s.jsx(Hi,{})}),s.jsxs("button",{onClick:()=>m(!h),className:"md:hidden p-3 rounded-full text-muted-foreground hover:text-foreground hover:bg-secondary transition duration-150 active:scale-95 relative","aria-label":"Toggle menu",id:"mobile-menu-trigger","aria-controls":"mobile-menu-panel","aria-expanded":h,children:[h?s.jsx(kn,{className:"w-5 h-5"}):s.jsx(kh,{className:"w-5 h-5"}),!h&&g>0&&s.jsx("span",{className:"absolute top-2 right-2 h-2 w-2 rounded-full bg-primary ring-2 ring-background","aria-hidden":"true"})]})]})]}),s.jsx(ys,{children:h&&s.jsx(Mr.div,{initial:{opacity:0,height:0}
67,animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{...cl.soft,duration:.25},className:"account-mobile-panel md:hidden border-t border-border overflow-hidden pb-[max(88px,calc(72px+env(safe-area-inset-bottom)))]",id:"mobile-menu-panel",children:s.jsxs("nav",{"aria-label":"Mobile navigation",className:"mobile-menu",children:[!te("mobile.search")&&s.jsxs(G,{to:a("/search"),onClick:()=>m(!1),onTouchStart:()=>ue("/search"),className:"mobile-menu-search",children:[s.jsx(Si,{}),s.jsx("span",{children:"Search the archive"})]}),s.jsxs(en,{label:"Discover",children:[Kh.filter(B=>(!B.authOnly||c)&&!te(B.visId)).map(B=>{const le=kO[B.href],ce=n.pathname===a(B.href)||o&&n.pathname.startsWith(a(B.href)+"/");return s.jsxs(G,{to:a(B.href),"aria-current":ce?"page":void 0,onClick:()=>{m(!1),window.scrollTo({top:0,behavior:"instant"})},onTouchStart:()=>ue(B.href),className:"mobile-menu-item",children:[le&&s.jsx(le,{}),B.label,B.href==="/featured"&&s.jsx("span",{className:"ml-1 rounded-full bg-acid px-1.5 py-0.5 text-[9px] font-semibold tracking-wide leading-none text-black",children:"NEW"})]},B.href)}),s.jsxs("button",{type:"button",onClick:()=>{be.toggleOpen(),m(!1)},className:"mobile-menu-item",children:[s.jsx(AE,{}),"Radio",s.jsxs("span",{className:"mobile-menu-meta",children:[s.jsx("span",{"aria-hidden":"true",className:`mr-1.5 inline-block h-1.5 w-1.5 rounded-full align-middle ${Pe?"bg-acid":"bg-muted-foreground/40"}`}),Pe?"On air":"Off"]})]})]}),c?s.jsxs(s.Fragment,{children:[s.jsxs(en,{label:"You",children:[!te("mobile.home")&&s.jsxs(G,{to:"/","aria-current":n.pathname==="/"?"page":void 0,onClick:()=>m(!1),className:"mobile-menu-item",children:[s.jsx(rm,{}),"Home"]}),!te("mobile.myProfile")&&s.jsxs(G,{to:j?.username?`/u/${j.username}`:"/settings",onClick:()=>m(!1),onTouchStart:()=>ue(j?.username?"/profile":"/settings"),className:"mobile-menu-item",children:[s.jsx(Xn,{}),"My Profile"]}),!te("mobile.messagesItem")&&s.jsxs(G,{to:a("/messages"),"aria-current":n.pathname.startsWith(a("/messages"))?"page":void 0,onClick:()=>m(!1),onTouchStart:()=>ue("/messages"),className:"mobile-menu-item",children:[s.jsx(Li,{}),"Messages",g>0&&s.jsx("span",{className:"mobile-menu-badge",children:g>9?"9+":g})]}),!te("mobile.submit")&&s.jsxs(G,{to:a("/submit"),"aria-current":n.pathname==="/submit"?"page":void 0,onClick:()=>m(!1),onTouchStart:()=>ue("/submit"),className:"mobile-menu-item",children:[s.jsx(wh,{}),"Submit your work"]})]}),L&&s.jsx("div",{className:"px-1",children:s.jsx(Ih,{})}),C&&!E&&!L&&!te("mobile.goPro")&&s.jsxs(G,{to:a("/upgrade"),onClick:()=>m(!1),onTouchStart:()=>ue("/upgrade"),className:"mx-1 flex min-h-11 items-center justify-center gap-2 rounded-full bg-acid px-4 text-sm font-bold uppercase tracking-wide text-black",children:[s.jsx(Zt,{className:"h-4 w-4"}),"GO PRO"]}),s.jsxs(en,{label:"Account",children:[!te("mobile.editProfile")&&s.jsxs(G,{to:a("/settings?tab=profile"),onClick:()=>m(!1),onTouchStart:()=>ue("/settings"),className:"mobile-menu-item",children:[s.jsx(Xn,{}),"Edit profile"]}),!te("mobile.settings")&&s.jsxs(G,{to:a("/settings"),onClick:()=>m(!1),onTouchStart:()=>ue("/settings"),className:"mobile-menu-item",children:[s.jsx(Oi,{}),"Settings"]}),!te("mobile.extension")&&s.jsxs(G,{to:a("/extension"),onClick:()=>m(!1),onTouchStart:()=>ue("/extension"),className:"mobile-menu-item",children:[s.jsx(yh,{}),"Browser extension"]}),_&&!te("mobile.admin")&&s.jsxs(G,{to:"/admin",onClick:()=>m(!1),className:"mobile-menu-item",children:[s.jsx(Sd,{}),"Admin panel"]})]}),s.jsxs(en,{label:"Appearance",children:[s.jsxs("div",{className:"mobile-menu-row",children:[s.jsx("span",{children:"System"}),s.jsx("div",{role:"radiogroup","aria-label":"Visual system",className:"menu-system-picker",children:["classic","modern"].map(B=>s.jsx("button",{type:"button",role:"radio","aria-checked":Y===B,onClick:le=>{le.preventDefault(),le.stopPropagation(),ve(B)},children:B==="classic"?"Classic":"Modern"},B))})]}),!te("mobile.darkMode")&&s.jsxs("div",{className:"mobile-menu-row",children:[s.jsxs("span",{className:"inline-flex items-center gap-2.5",children:["Dark mode",$==="dark"?s.jsx(xh,{className:"h-4 w-4 text-muted-foreground"}):s.jsx(_h,{className:"h-4 w-4 text-muted-foreground"})]}),E||!C?s.jsx("button",{role:"switch","aria-checked":$==="dark","aria-label":"Dark mode",disabled:!C,onClick:B=>{B.preventDefault(),R($==="dark"?"light":"dark",c?.id)},className:`relative h-5 w-9 rounded-full transition-colors ${$==="dark"?"bg-primary":"bg-secondary"}`,children:s.jsx("span",{className:`absolute top-0.5 h-4 w-4 roun
67ded-full bg-background shadow-sm transition ${$==="dark"?"right-0.5":"left-0.5"}`})}):s.jsxs(G,{to:a("/upgrade"),onClick:()=>m(!1),className:"flex items-center gap-1 text-xs text-primary",children:[s.jsx(Zt,{className:"h-3 w-3"}),"Pro"]})]})]}),!te("mobile.logout")&&s.jsxs("button",{type:"button",onClick:()=>{m(!1),ie()},className:"mobile-menu-item mobile-menu-logout",children:[s.jsx(jh,{}),"Log out"]})]}):s.jsxs(en,{label:"Account",children:[s.jsxs(G,{to:Ja(n.pathname+n.search+n.hash),onClick:()=>m(!1),className:"mobile-menu-item",children:[s.jsx(Xn,{}),"Log in"]}),s.jsxs(G,{to:"/auth/register",onClick:()=>m(!1),className:"mobile-menu-item",children:[s.jsx(em,{}),"Create account"]})]})]})})})]})})});function CO(t){return t.replace(/fill=["']#232323["']/gi,'fill="#E8E8DC"').replace(/fill=["']#000000["']/gi,'fill="#E8E8DC"').replace(/fill=["']#000["']/gi,'fill="#E8E8DC"').replace(/fill=["']black["']/gi,'fill="#E8E8DC"').replace(/stroke=["']#232323["']/gi,'stroke="#E8E8DC"').replace(/stroke=["']#000000["']/gi,'stroke="#E8E8DC"').replace(/stroke=["']#000["']/gi,'stroke="#E8E8DC"')}const EO=i.memo(function({className:e,width:r=120,height:n=32}){const{mainLogoSvg:o,mainLogoSvgDark:a,isLoading:l}=Ss(),{theme:c}=js(),u=c==="dark";if(!l&&o){const d=u&&a?a:o,f=u&&!a?CO(d):d;return s.jsx("div",{className:re("inline-flex items-center shrink-0 [&>svg]:w-full [&>svg]:h-full [&>svg]:max-w-full [&>svg]:max-h-full",e),style:{width:r,height:n},dangerouslySetInnerHTML:{__html:ul(f)},"aria-label":"UNBSERVED"})}return s.jsxs("svg",{viewBox:"0 0 1763 387",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:re("shrink-0",e),width:r,height:n,"aria-label":"UNBSERVED",children:[s.jsx("path",{d:"M1349.3 4.70801C1376.29 4.70801 1397.47 7.84649 1412.85 14.1234C1428.23 20.4004 1439.37 30.9143 1446.28 45.6652C1453.18 60.1022 1456.63 80.3454 1456.63 106.395V279.639C1456.63 305.375 1453.18 325.618 1446.28 340.369C1439.37 355.12 1428.23 365.634 1412.85 371.911C1397.47 378.188 1376.29 381.326 1349.3 381.326H1283.39V4.70801H1349.3ZM1346 67.3207V318.713H1349.77C1361.38 318.713 1370.17 317.772 1376.13 315.889C1382.41 314.006 1386.96 310.239 1389.79 304.59C1392.61 298.941 1394.02 290.624 1394.02 279.639V106.395C1394.02 95.4102 1392.61 87.0932 1389.79 81.4439C1386.96 75.7946 1382.41 72.0285 1376.13 70.1454C1370.17 68.2623 1361.38 67.3207 1349.77 67.3207H1346Z",fill:"currentColor"}),s.jsx("path",{d:"M1160.39 4.70801H1289.85V67.3207H1223V161.475H1289.85V224.559H1223V318.713H1289.85V381.326H1160.39V4.70801Z",fill:"currentColor"}),s.jsx("path",{d:"M1048.06 4.70801L1077.72 313.064L1106.9 4.70801H1169.52L1120.56 381.326H1034.41L985.445 4.70801H1048.06Z",fill:"currentColor"}),s.jsx("path",{d:"M1000.52 347.901C1000.52 356.689 1000.83 363.907 1001.46 369.557C1002.09 374.892 1003.5 378.815 1005.7 381.326H943.083C940.887 378.815 939.474 374.892 938.846 369.557C938.219 363.907 937.905 356.689 937.905 347.901V276.815C937.905 265.83 936.179 257.67 932.727 252.334C929.588 246.685 925.037 243.076 919.074 241.507C913.111 239.623 905.108 238.682 895.065 238.682H889.886V381.326H827.273V4.70801H894.123C921.428 4.70801 942.77 8.16033 958.148 15.065C973.527 21.6558 984.355 32.3267 990.632 47.0775C997.222 61.8284 1000.52 81.9147 1000.52 107.336V135.112C1000.52 156.454 997.379 174.186 991.102 188.309C985.139 202.432 975.881 213.417 963.327 221.263C975.881 225.971 985.139 233.66 991.102 244.331C997.379 255.002 1000.52 269.753 1000.52 288.584V347.901ZM937.905 107.336C937.905 96.3517 936.65 88.0347 934.139 82.3854C931.628 76.7362 927.234 72.8131 920.957 70.6161C914.994 68.4192 906.206 67.3207 894.594 67.3207H889.886V176.069H894.594C911.542 176.069 922.997 173.245 928.96 167.595C934.923 161.632 937.905 150.804 937.905 135.112V107.336Z",fill:"currentColor"}),s.jsx("path",{d:"M702.664 4.70801H832.127V67.3207H765.277V161.475H832.127V224.559H765.277V318.713H832.127V381.326H702.664V4.70801Z",fill:"currentColor"}),s.jsx("path",{d:"M644.535 153.943C660.227 165.869 672.624 176.854 681.726 186.897C690.827 196.94 698.046 209.651 703.381 225.029C709.03 240.094 711.855 258.925 711.855 281.522C711.855 316.359 704.637 342.565 690.2 360.141C676.076 377.403 653.479 386.033 622.408 386.033C600.439 386.033 582.8
6763 382.267 569.682 374.735C556.5 367.203 546.614 353.55 540.023 333.778C533.432 314.005 530.137 285.916 530.137 249.509H608.756C608.756 273.048 609.854 288.584 612.051 296.116C614.248 303.648 617.701 307.414 622.408 307.414C627.116 307.414 630.098 305.531 631.353 301.765C632.608 297.999 633.236 291.251 633.236 281.522C633.236 273.048 632.608 266.3 631.353 261.279C630.098 255.943 627.273 250.451 622.879 244.802C618.485 239.152 611.424 232.248 601.694 224.088L590.396 215.143C576.586 204.158 565.602 194.429 557.442 185.955C549.596 177.481 542.848 166.34 537.198 152.53C531.863 138.407 529.195 120.989 529.195 100.275C529.195 33.4249 558.54 0 617.23 0C647.673 0 670.113 9.57238 684.55 28.7171C698.987 47.548 706.206 77.2067 706.206 117.693H628.058C628.058 102.942 627.116 92.7422 625.233 87.0929C623.664 81.4437 620.996 78.619 617.23 78.619C613.464 78.619 610.953 80.5021 609.697 84.2683C608.442 87.7206 607.814 93.0561 607.814 100.275C607.814 108.435 608.913 115.339 611.11 120.989C613.621 126.324 617.23 131.189 621.938 135.583C626.959 139.976 634.491 146.096 644.535 153.943Z",fill:"currentColor"}),s.jsx("path",{d:"M502.65 184.072C529.641 198.509 543.136 225.03 543.136 263.633V282.935C543.136 306.159 539.684 324.99 532.779 339.427C526.188 353.55 515.361 364.064 500.296 370.969C485.231 377.874 464.831 381.326 439.096 381.326H360.477V4.70801H439.096C465.459 4.70801 485.859 8.16033 500.296 15.065C514.733 21.9696 524.776 32.9543 530.425 48.0191C536.389 63.0838 539.37 83.9547 539.37 110.632V111.573C539.37 147.352 527.13 171.518 502.65 184.072ZM460.751 110.632C460.751 99.6471 459.339 92.4286 456.514 88.9763C454.003 85.2101 448.354 83.327 439.566 83.327H439.096V149.706H439.566C446.471 149.706 451.336 148.921 454.16 147.352C456.985 145.783 458.711 143.272 459.339 139.82C460.28 136.367 460.751 130.561 460.751 122.401V110.632ZM439.096 228.325V302.707H439.566C448.668 302.707 455.102 300.981 458.868 297.529C462.634 294.076 464.517 287.328 464.517 277.285V252.805C464.517 242.762 462.791 236.171 459.339 233.033C455.886 229.894 449.296 228.325 439.566 228.325H439.096Z",fill:"currentColor"}),s.jsx("path",{d:"M167.828 4.70801H246.447L295.878 169.008V4.70801H374.497V381.326H295.878L246.447 217.026V381.326H167.828V4.70801Z",fill:"currentColor"}),s.jsx("path",{d:"M103.099 4.70801H181.718V277.756C181.718 349.941 151.432 386.034 90.8591 386.034C30.2864 386.034 0 349.941 0 277.756V4.70801H78.619V271.636C78.619 282.307 78.7759 289.996 79.0898 294.704C79.7175 299.098 80.816 302.393 82.3852 304.59C83.9544 306.473 86.7791 307.415 90.8591 307.415C94.9391 307.415 97.7638 306.473 99.333 304.59C100.902 302.393 101.844 299.098 102.158 294.704C102.785 289.996 103.099 282.307 103.099 271.636V4.70801Z",fill:"currentColor"}),s.jsx("rect",{x:"1486.26",y:"7.4702",width:"273.327",height:"104.253",rx:"52.1264",fill:"#F0FF00",stroke:"#F0FF00",strokeWidth:"5.52438"}),s.jsx("path",{d:"M1542.78 35.859H1566.64C1575 35.859 1580.77 39.9367 1580.77 47.8882C1580.77 52.7815 1578.39 56.1116 1573.84 58.2184V58.3544C1579.69 59.6456 1582.95 64.2671 1582.95 70.8594C1582.95 79.5585 1576.15 84.3838 1565.41 84.3838H1542.78V35.859ZM1551.28 56.1796H1565.28C1569.15 56.1796 1572.28 53.8009 1572.28 49.3834C1572.28 44.8979 1570.04 42.7911 1565.41 42.7911H1551.28V56.1796ZM1551.28 77.4517H1566.5C1571.33 77.4517 1574.45 74.6652 1574.45 69.772C1574.45 64.8108 1571.19 62.2962 1566.5 62.2962H1551.28V77.4517ZM1590.63 35.859H1625.57V43.1989H1599.13V55.9077H1623.6V62.8399H1599.13V77.0439H1626.04V84.3838H1590.63V35.859ZM1628.82 35.859H1668.1V43.1989H1652.68V84.3838H1644.18V43.1989H1628.82V35.859ZM1680.47 35.859H1689.51L1708.2 84.3838H1699.09L1694.54 71.539H1675.17L1670.62 84.3838H1661.85L1680.47 35.859ZM1685.02 44.2183H1684.82L1677.48 65.0826H1692.3L1685.02 44.2183Z",fill:"#232323"})]})}),SO=[{name:"Chrome",description:"Install from the Chrome Web Store.",href:"https://chromewebstore.google.com/detail/unbserved/kkamipkhgnkmlhacigilmhghoooeomkj",label:"Add to Chrome",published:!0},{name:"Firefox",description:"Install from Firefox Add-ons.",href:"https://addons.mozilla.org/en-US/firefox/addon/unbserved/",label:"Add to Firefox",published:!0},{name:"Safari",description:"Install from the Mac App Store.",href:"https://apps.apple.com/app/unbserved-save-inspiration/id6809651482",label:"Add to Safari",published:!0},{name:"Microsoft Edge",description:"Install from Edge Add-ons.",href:"https://microsoftedge.microsoft.com/addons/detail/bilieciipdnnhepoemlnpbijaohjopjo",label:"Add to Edge",published:!0}];function LO(){const{isHidden:t}=hl();return s.jsx("footer",{className:"site-footer",children:s.jsxs("div",{className:"site-footer-inner",children:[s.jsxs("div",{className:"site-footer-grid",children:[s.jsx("div",{className:"site-footer-brand",children:s.jsx(G,{to:"/","aria-label":"Unbserved - Home",children:s.jsx(EO,{width:120,height:30,"aria-hidden":"true"})})}),s.jsxs("div",{children:[s.jsx("h2",{id:"footer-nav-heading",children:"Discover"}),s.jsxs("nav",{"aria-labelledby":"footer-nav-heading",children:[s.jsx(G,{to:"/explore",children:"Explore"}),s.jsx(G,{to:"/featured",children:"Featured"}),s.jsx(G,{to:"/collections",children:"Collections"}),s.jsx(G,{to:"/featured/creatives",children:"Creatives"}),!t("nav.blog")&&s.jsx(G,{to:"/blog",children:"Blog"})]})]}),s.jsxs("div",{children:[s.jsx("h2",{id:"footer-participate-heading",children:"Participate"}),s.jsxs("nav",{"aria-labelledby":"footer-participate-heading",children:[s.jsx(G,{to:"/submit",children:"Submit your work"}),s.jsx(G,{to:"/upgrade",children:"Go Pro"}),s.jsx(G,{to:"/extension",children:"Browser extension"}),s.jsx("a",{href:"https://www.instagram.com/unbserved/",target:"_blank",rel:"noopener noreferrer",children:"Instagram â"})]})]}),s.jsxs("div",{children:[s.jsx("h2",{id:"footer-extension-heading",children:"Extension"}),s.jsx("nav",{"aria-labelledby":"footer-extension-heading",children:SO.filter(e=>e.published).map(e=>s.jsxs("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",children:[e.name," â"]},e.name))})]}),s.jsxs("div",{children:[s.jsx("h2",{id:"footer-information-heading",children:"Information"}),s.jsxs("nav",{"aria-labelledby":"footer-information-heading",children:[s.jsx(G,{to:"/legal/community",children:"Community guidelines"}),s.jsx(G,{to:"/legal/copyright",children:"Request credit"}),s.jsx("a",{href:"mailto:[email protected]",children:"Contact"})]})]})]}),s.jsxs("div",{className:"site-footer-bottom",children:[s.jsxs("p",{children:["© ",new Date().getFullYear()," Unbserved. All rights reserved."]}),s.jsx(As,{size:48,className:"site-footer-mascot"}),s.jsxs("nav",{"aria-label":"Legal links",children:[s.jsx(G,{to:"/legal/privacy",children:"Privacy"}),s.jsx("span",{"aria-hidden":"true",children:"·"}),s.jsx(G,{to:"/legal/terms",children:"Terms"})]})]})]})})}function OO(t){if(t==="/"||t==="/blog")return!0;const e=["/explore","/featured","/search","/dashboard","/feed","/activity","/colors","/profile","/artists","/collections","/notifications"],r=["/folder/","/c/","/p/","/u/","/artist/","/a/"];return e.some(n=>t===n||t.startsWith(`${n}/`))||r.some(n=>t.startsWith(n))}function $O(){const{pathname:t}=Me();return i.useEffect(()=>{const e=OO(t),r=t.startsWith("/image/");!e&&!r&&window.scrollTo({top:0,behavior:"instant"})},[t]),null}const Im=i.forwardRef(({onClick:t},e)=>s.jsx(Mr.button,{ref:e,initial:{opacity:0,scale:.8,y:20}
67,animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.8,y:20},onClick:t,className:"fixed bottom-20 md:bottom-6 right-6 z-40 p-3 rounded-full bg-primary text-primary-foreground shadow-lg hover:bg-primary/90 active:scale-95 transition-transform touch-target","aria-label":"Scroll to top",children:s.jsx(xE,{className:"w-5 h-5"})}));Im.displayName="ScrollButton";function AO(){const[t,e]=i.useState(!1),r=i.useRef(null);return i.useEffect(()=>{const n=r.current;if(!n)return;const o=new IntersectionObserver(([a])=>e(!a.isIntersecting),{rootMargin:"500px 0px 0px 0px",threshold:0});return o.observe(n),()=>o.disconnect()},[]),s.jsxs(s.Fragment,{children:[s.jsx("div",{ref:r,"aria-hidden":!0,className:"absolute top-0 left-0 h-px w-px pointer-events-none"}),s.jsx(ys,{children:t&&s.jsx(Im,{onClick:()=>window.scrollTo({top:0,behavior:"smooth"})})})]})}const Gh="announcement-banner-dismissed";function TO(){const{announcementMessage:t}=Ss(),[e,r]=i.useState(!0);i.useEffect(()=>{if(!t)return;const o=sessionStorage.getItem(Gh);r(o===t)},[t]);const n=()=>{r(!0),t&&sessionStorage.setItem(Gh,t)};return t?s.jsx(ys,{children:!e&&s.jsx(Mr.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3,ease:"easeInOut"},className:"overflow-hidden",children:s.jsxs("div",{className:"bg-amber-500/15 border-b border-amber-500/20 text-center text-xs py-2.5 px-10 relative",children:[s.jsxs("div",{className:"flex items-center justify-center gap-2",children:[s.jsx(Es,{className:"w-3.5 h-3.5 text-amber-400 flex-shrink-0"}),s.jsx("span",{className:"text-amber-200 font-medium",children:t})]}),s.jsx("button",{onClick:n,className:"absolute right-3 top-1/2 -translate-y-1/2 text-amber-300/60 hover:text-amber-200 transition-colors","aria-label":"Dismiss announcement",children:s.jsx(kn,{className:"w-3.5 h-3.5"})})]})})}):null}function PO(){const[t,e]=i.useState(!1);return i.useEffect(()=>{let r=!1;const o=setTimeout(async()=>{try{await fetch(`${el}/auth/v1/health`,{method:"GET",cache:"no-store",headers:{apikey:tl}}),r||e(!1)}catch{r||e(!0)}},8e3);return()=>{r=!0,clearTimeout(o)}},[]),t?s.jsx("div",{className:"w-full bg-destructive/10 border-b border-destructive/20 px-4 py-3 text-center",children:s.jsx("p",{className:"text-sm text-destructive font-medium",children:"We're temporarily experiencing issues. Some content may not load â please try again shortly."})}):null}const RO=i.forwardRef(function({className:e},r){return s.jsxs("svg",{ref:r,className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"}),s.jsx("path",{d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"}),s.jsx("path",{d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"}),s.jsx("path",{d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"})]})}),NO=i.forwardRef(function({className:e},r){return s.jsx("svg",{ref:r,className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:s.jsx("path",{d:"M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701"})})});function MO({open:t,onClose:e}){const{signInWithGoogle:r,signInWithApple:n}=ke(),o=Ki(),a=async()=>{e(),await r()},l=async()=>{e(),await n()},c=()=>{e(),o("/auth/login")},u=()=>{e(),o("/auth/register")};return s.jsx(dl,{open:t,onOpenChange:d=>{d||e()},children:s.jsxs(Ls,{className:"guest-prompt",children:[s.jsxs("div",{className:"guest-prompt-intro",children:[s.jsx(As,{size:48,className:"guest-prompt-mascot"}),s.jsx(Os,{className:"text-2xl font-medium tracking-tight leading-snug mb-2",children:"Support the Archive"}),s.jsx($s,{className:"text-sm text-muted-foreground max-w-[240px]",children:"UNBSERVED is free. Pro keeps the platform alive â servers, infra, devs â and unlocks extra tools for you."})]}),s.jsxs("div",{className:"guest-prompt-actions",children:[s.jsxs("button",{onClick:()=>{e(),o("/upgrade")},className:"guest-prompt-action guest-prompt-pro",children:[s.jsx(Zt,{className:"w-4 h-4"}),"View Pro plans"]}),s.jsxs("button",{onClick:a,className:"guest-prompt-action",children:[s.jsx(RO,{className:"w-4 h-4"}),"Continue with Google"]}),s.jsxs("button",{onClick:l,className:"guest-prompt-action",children:[s.jsx(NO,{className:"w-4 h-4 -translate-y-
67px"}),"Continue with Apple"]}),s.jsx("button",{onClick:c,className:"guest-prompt-action",children:"Sign in with email"})]}),s.jsx("div",{className:"guest-prompt-footer",children:s.jsxs("p",{className:"text-xs text-muted-foreground",children:["No account?"," ",s.jsx("button",{onClick:u,className:"text-foreground font-medium underline underline-offset-4 hover:opacity-70 transition-opacity",children:"Sign up free"})]})})]})})}const Dm="guest_prompt_dismissed_at",IO=24,DO=6e5;function VO(){try{const t=localStorage.getItem(Dm);return t?(Date.now()-Number(t))/36e5<IO:!1}catch{return!1}}function HO(){const{user:t,isLoading:e}=ke(),r=Me(),[n,o]=i.useState(!1),a=r.pathname.startsWith("/auth");return i.useEffect(()=>{if(t||e||a||VO())return;const c=setTimeout(()=>{o(!0)},DO);return()=>clearTimeout(c)},[t,e,a,r.pathname]),{showModal:n,dismiss:()=>{try{localStorage.setItem(Dm,String(Date.now()))}catch{}o(!1)}}}const BO="__revisit__",Vm="__core_app__",Hm="__admin__",Bm="__auth__",Um="__legal__",qm="__editorial__";function UO(t){return t.startsWith("/p/")||t.startsWith("/image/")||t.includes("/image/")||t.startsWith("/u/")||t.startsWith("/artist/")||t.startsWith("/c/")}function qO(t){return t==="/"||t==="/explore"||t==="/search"||t==="/featured"||t==="/collections"||t==="/artists"||t==="/featured/creatives"||t==="/activity"||t==="/colors"||t==="/blog"||t==="/dashboard"||t==="/messages"||t.startsWith("/messages/")}function FO(t){if(!UO(t))return qO(t)?"page-enter page-enter--gallery":"page-enter page-enter--subtle"}function zO(t){return t==="/featured"||t.startsWith("/featured/")||t.startsWith("/artist/")||t.startsWith("/p/")?qm:t==="/search"||t==="/dashboard"||t==="/profile"||t.startsWith("/profile/")||t.startsWith("/u/")||t==="/notifications"||t.startsWith("/messages")?Vm:t.startsWith("/admin")?Hm:t==="/login"||t==="/register"||t==="/forgot-password"||t==="/reset-password"||t.startsWith("/auth/")?Bm:t.startsWith("/legal/")?Um:t}const WO=new Set([Vm,Hm,Bm,Um,qm]);function ZO({children:t}){const e=Me(),r=i.useRef(new Set),n=zO(e.pathname),o=r.current.has(n),a=i.useRef(n),l=i.useRef(!o),c=i.useRef(n);a.current!==n&&(l.current=!o,c.current=o?BO:n,a.current=n),o||r.current.add(n);const u=i.useMemo(()=>{if(typeof window>"u")return!0;try{return window.matchMedia("(prefers-reduced-motion: reduce)").matches||window.matchMedia("(prefers-reduced-data: reduce)").matches}catch{return!1}},[]),d=l.current,f=WO.has(n)?n:c.current,h=d&&!u?FO(e.pathname):void 0;return s.jsx("div",{className:h,style:{width:"100%"},children:t},f)}function KO(){const{scrollYProgress:t}=Ep(),e=Sp(t,{stiffness:300,damping:40,mass:.2}),r=Lp(t,[0,.005,.01],[0,0,1]);return s.jsx(Mr.div,{style:{opacity:r},className:"fixed top-0 left-0 right-0 h-0.5 z-[60] pointer-events-none origin-left",children:s.jsx(Mr.div,{className:"h-full bg-foreground origin-left",style:{scaleX:e,transformOrigin:"0% 50%"}})})}const GO={disable_ai:!1,disable_realtime:!1,disable_similarity:!1,read_only_mode:!1,banner_message:null,banner_severity:"info"},QO="https://tjidivtwncamikujcpvx.supabase.co",Qh="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InRqaWRpdnR3bmNhbWlrdWpjcHZ4Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NDk0NzY1MzcsImV4cCI6MjA2NTA1MjUzN30.RttDikGNfeO5HYQ75VVwpvbImhvlnalUZbcJCQIyNLI";function YO(){return he({queryKey:["system-status"],queryFn:async()=>{try{const t=await fetch(`${QO}/functions/v1/get-system-status`,{headers:{apikey:Qh,Authorization:`Bearer ${Qh}`}});if(!t.ok)throw new Error(`get-system-status ${t.status}`);return await t.json()}catch(t){throw t instanceof Error?t:new Error("get-system-status unreachable")}},staleTime:5*6e4,gcTime:10*6e4,refetchOnWindowFocus:!0,refetchInterval:5*6e4,placeholderData:GO,throwOnError:!1,retry:1})}function UR(){const t=ae();return z({mutationFn:async e=>{const{data:r,error:n}=await k.from("system_status").update({...e,updated_at:new Date().toISOString()}).eq("id",!0).select().single();if(n)throw n;return r},onSuccess:()=>{t.invalidateQueries({queryKey:["system-status"]})}})}const Yh="system-status-banner-dismissed";function JO(){const{data:t}=YO(),[e,r]=i.useState(()=>typeof window>"u"?null:sessionStorage.getItem(Yh));if(!t?.banner_message)return null;const n=`${t.banner_severity}::${t.banner_message}`;if(e===n&&t.banner_severity!=="critical")return null;const o={info:"bg-blue-500/10 text-blue-700 dark:text-blue-300 border-blue-500/30",warning:"bg-yellow-500/10 text-yellow-700 dark:text-yellow-300 border-yellow-500/30",critical:"bg-red-500/10 text-red-700 dark:text-red-300 border-red-500/30"}[t.banner_severity],a=t.banner_severity==="info"?SE:Es,l=()=>{sessionStorage.setItem(Yh,n),r(n)};return s.jsxs("div",{className:`relative w-full border-b ${o} px-4 py-2 text-sm flex items-center gap-3 z-[60]`,role:"status",children:[s.jsx(a,{className:"h-4 w-4 flex-shrink-0"}),s.jsx("span",{className:"flex-1 leading-snug",children:t.banner_message}),t.banner_severity!=="critical"&&s.jsx("button",{onClick:l,className:"flex-shrink-0 p-1 rounded hover:bg-black/5 dark:hover:bg-white/5","aria-label":"Dismiss",children:s.jsx(kn,{className:"h-4 w-4"})})]})}function XO(t=!1){return he({queryKey:["ai-quota-status"],queryFn:async()=>{const{data:e,error:r}=await k.rpc("get_ai_quota_status");if(r)throw r;return e??[]},enabled:t,staleTime:6e4,refetchInterval:t?6e4:!1,refetchOnWindowFocus:!1})}function qR(){const t=ae();return z({mutationFn:async e=>{const{feature:r,...n}=e,{error:o}=await k.from("ai_quota_limits").update({...n,updated_at:new Date().toISOString()}).eq("feature",r);if(o)throw o},onSuccess:()=>
67t.invalidateQueries({queryKey:["ai-quota-status"]})})}function e$(){const{isAdmin:t}=j5(),{data:e}=XO(!!t),r=i.useMemo(()=>!t||!e?null:e.filter(a=>a.enabled&&a.daily_limit>0&&a.daily_used/a.daily_limit>=.8).sort((a,l)=>l.daily_used/l.daily_limit-a.daily_used/a.daily_limit)[0]??null,[t,e]);if(!r)return null;const n=Math.round(r.daily_used/r.daily_limit*100),o=n>=95?"bg-red-500/10 text-red-700 dark:text-red-300 border-red-500/30":"bg-amber-500/10 text-amber-700 dark:text-amber-300 border-amber-500/30";return s.jsx(G,{to:"/admin/ai-quota",className:`block w-full border-b ${o} px-4 py-2 text-xs hover:opacity-80 transition-opacity z-[60]`,role:"status",children:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(Es,{className:"h-3.5 w-3.5 flex-shrink-0"}),s.jsxs("span",{className:"flex-1",children:["Cota IA ",s.jsx("strong",{children:r.feature})," em ",n,"% (",r.daily_used,"/",r.daily_limit," hoje). Revisar â"]})]})})}function t$(){const{user:t}=ke(),{data:e}=jn(),r=Me(),n=i.useMemo(()=>ll(e),[e]),a=["/auth","/settings","/onboarding"].some(c=>r.pathname.startsWith(c));if(!t||!e||n.isComplete||a)return null;const l=n.missing[0]?.label??"finish setup";return s.jsx(G,{to:"/settings?tab=profile",className:"group block w-full bg-secondary/50 hover:bg-secondary border-b border-border transition-colors","aria-label":`Profile ${n.percent}% complete â click to finish`,children:s.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 py-1.5 flex items-center gap-3",children:[s.jsx("div",{className:"flex-1 h-1 rounded-full bg-border overflow-hidden",children:s.jsx("div",{className:"h-full bg-primary transition duration-500 ease-out",style:{width:`${n.percent}%`}})}),s.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-muted-foreground group-hover:text-foreground transition-colors whitespace-nowrap",children:[s.jsxs("span",{className:"font-medium tabular-nums",children:[n.percent,"%"]}),s.jsxs("span",{className:"hidden sm:inline",children:["â add ",l.toLowerCase()]}),s.jsx(tm,{className:"w-3 h-3"})]})]})})}function Fm(t){return!["/messages","/admin","/auth","/login","/signup","/onboarding"].some(r=>t===r||t.startsWith(`${r}/`))&&!t.includes("/image/")}function r$({hidden:t}){const{pathname:e}=Me(),r=Ki(),{user:n}=ke(),{data:o}=jn(),{isHidden:a}=hl();if(!Fm(e)||t)return null;const c=[{id:"explore",label:"Explore",icon:nm,to:"/explore",match:u=>u.startsWith("/explore"),visId:"mobilenav.explore"},{id:"search",label:"Search",icon:Si,match:u=>u.startsWith("/search"),onClick:()=>{const u=document.querySelector("input[data-search-input]");u?(u.focus(),window.scrollTo({top:0,behavior:"smooth"})):r("/search")},visId:"mobilenav.search"},{id:"saved",label:"Saved",icon:bE,to:n?"/dashboard":"/auth/login?redirect=/dashboard",match:u=>u==="/dashboard"||u.startsWith("/dashboard/"),visId:"mobilenav.saved"},{id:"profile",label:n?"Profile":"Sign in",icon:Xn,to:n?o?.username?`/u/${o.username}`:"/dashboard":"/auth/login",match:u=>n?!!o?.username&&u===`/u/${o.username}`:u.startsWith("/auth/login"),visId:"mobilenav.profile"}].filter(u=>!u.visId||!a(u.visId));return c.length?s.jsx("nav",{role:"navigation","aria-label":"Primary mobile navigation",className:"md:hidden fixed inset-x-0 bottom-3 z-[70] flex justify-center px-3 pb-[env(safe-area-inset-bottom)] pointer-events-none",children:s.jsx("ul",{className:"mobile-bottom-nav pointer-events-auto flex items-stretch gap-1 rounded-2xl border border-border bg-background/85 backdrop-blur-md shadow-lg px-2 py-1 max-w-[calc(100vw-1.5rem)]",children:c.map(u=>{const d=u.match(e),f=u.icon,h=s.jsx("span",{className:re("flex items-center justify-center min-h-11 w-full rounded-xl transition-[color,background-color,transform] duration-100 active:scale-95",d?"text-foreground bg-secondary/70":"text-muted-foreground hover:text-foreground"),children:s.jsx("span",{className:re("flex items-center justify-center w-7 h-7",d&&"text-primary"),children:s.jsx(f,{className:"w-[24px] h-[24px]"})})});return s.jsx("li",{className:"flex-1",children:u.to?s.jsx(G,{to:u.to,"aria-label":u.label,"aria-current":d?"page":void 0,className:"block w-full touch-target",children:h}):s.jsx("button",{type:"button",onClick:u.onClick,"aria-label":u.label,"aria-current":d?"page":void 0,className:"block w-full touch-target",children:h})},u.id)})})}):null}const zm="lq:";function n$(t,e){try{const r=localStorage.getItem(zm+t);if(!r)return;const n=JSON.parse(r);return!n||typeof n.ts!="number"||Date.now()-n.ts>e?void 0:n.data}catch{return}}function s$(t,e){try{const r={data:e,ts:Date.now()};localStorage.setItem(zm+t,JSON.stringify(r))}catch{}}const Jh="featured-projects-v2",o$=3600*1e3;function a$(){return he({queryKey:["featured-projects"],queryFn:async()=>{const{publicEndpoint:t}=await A(async()=>{const{publicEndpoint:r}=await import("./publicEndpoint-Ckwqc1PI.js");return{publicEndpoint:r}},[]),e=t("public-featured");try{const r=await fetch(e.url,{headers:e.headers});if(!r.ok)throw new Error(`public-featured ${r.status}`);const o=(await r.json()).projects||[];return s$(Jh,o),o}catch(r){console.warn("[useFeaturedProjects] edge fetch failed, falling back:",r);const{data:n}=await k.from("projects").select("id, title, slug, url, author, author_url, description, thumbnail_url, provider, category, industry, tags, status, c
67an_embed, view_count, like_count, created_at, updated_at, published_at, author_id, editorial_intro, editorial_opinion").eq("status","published").order("published_at",{ascending:!1,nullsFirst:!1}).order("created_at",{ascending:!1}).limit(200);return(n||[]).map(o=>({...o,assets:[]}))}},placeholderData:()=>n$(Jh,o$),staleTime:5*6e4,gcTime:60*6e4,refetchOnMount:!1,refetchOnWindowFocus:!1,throwOnError:!1})}function FR(){return he({queryKey:["admin-projects"],queryFn:async()=>{const{data:t,error:e}=await k.from("projects").select("*").order("created_at",{ascending:!1}).limit(500);if(e)throw e;if(!t||t.length===0)return[];const r=t.map(c=>c.id),n=[];for(let c=0;c<r.length;c+=100)n.push(r.slice(c,c+100));const o=await Promise.all(n.map(c=>k.from("project_assets").select("id, project_id, external_url, type, width, height, order_index, created_at, clip_vector_id, display_mode").in("project_id",c).order("order_index",{ascending:!0})));Tf(o,"Load project assets");const a=o.flatMap(c=>c.data??[]),l=new Map;for(const c of a){const u=l.get(c.project_id)||[];u.push(c),l.set(c.project_id,u)}return t.map(c=>({...c,slug:c.slug,assets:l.get(c.id)||[]}))},staleTime:6e4,throwOnError:!1})}function zR(){const t=ae();return z({mutationFn:async({id:e,...r})=>{const n=l=>k.from("projects").update({...l,updated_at:new Date().toISOString()}).eq("id",e).select().single(),{data:o,error:a}=await n(r);if(a)throw a;return o},onSuccess:(e,r)=>{t.invalidateQueries({queryKey:["featured-projects"]}),t.invalidateQueries({queryKey:["admin-projects"]}),t.invalidateQueries({queryKey:["project",r.id]}),I.success("Projeto atualizado")},onError:e=>{I.error(`Erro ao atualizar: ${e.message}`)}})}function WR(){const t=ae();return z({mutationFn:async e=>{const{data:r,error:n}=await k.from("project_assets").select("clip_vector_id").eq("project_id",e);if(n)throw n;const o=(r||[]).map(a=>a.clip_vector_id).filter(a=>!!a);o.length>0&&await Ze(k.from("clip_vectors").delete().in("id",o),{min:o.length,label:"Delete project images"}),await Ze(k.from("project_assets").delete().eq("project_id",e),{min:0,label:"Delete project assets"}),await Ze(k.from("projects").delete().eq("id",e),{label:"Delete project"})},onSuccess:()=>{t.invalidateQueries({queryKey:["featured-projects"]}),t.invalidateQueries({queryKey:["admin-projects"]}),t.invalidateQueries({queryKey:["images"]}),t.invalidateQueries({queryKey:["trending-images"]}),I.success("Projeto e imagens removidos")},onError:e=>{I.error(`Erro ao remover: ${e.message}`)}})}function ZR(){const t=ae();return z({mutationFn:async({projectId:e,url:r,type:n="image",orderIndex:o})=>{let a=o;if(a===void 0){const{data:u}=await k.from("project_assets").select("order_index").eq("project_id",e).order("order_index",{ascending:!1}).limit(1);a=(u?.[0]?.order_index??-1)+1}const{data:l,error:c}=await k.from("project_assets").insert({project_id:e,external_url:r,type:n,order_index:a}).select().single();if(c)throw c;return l},onSuccess:(e,r)=>{t.invalidateQueries({queryKey:["project",r.projectId]}),t.invalidateQueries({queryKey:["featured-projects"]}),t.invalidateQueries({queryKey:["admin-projects"]})}})}function KR(){const t=ae();return z({mutationFn:async({assetId:e,projectId:r})=>{const{data:n,error:o}=await k.from("project_assets").select("clip_vector_id").eq("id",e).maybeSingle();if(o)throw o;return n?.clip_vector_id&&await Ze(k.from("clip_vectors").delete().eq("id",n.clip_vector_id),{label:"Delete image"}),await Ze(k.from("project_assets").delete().eq("id",e),{label:"Remove asset"}),r},onSuccess:e=>{t.invalidateQueries({queryKey:["project",e]}),t.invalidateQueries({queryKey:["featured-projects"]}),t.invalidateQueries({queryKey:["admin-projects"]}),t.invalidateQueries({queryKey:["images"]}),t.invalidateQueries({queryKey:["trending-images"]}),I.success("Imagem removida completamente")},onError:e=>{I.error(`Erro ao remover imagem: ${e.message}`)}})}function GR(){const t=ae();return z({mutationFn:async({projectId:e,assetIds:r})=>(await xn(r.map((n,o)=>k.from("project_assets").update({order_index:o}).eq("id",n)),"Reorder assets"),e),onSuccess:e=>{t.invalidateQueries({queryKey:["project",e]}),t.invalidateQueries({queryKey:["featured-projects"]}),t.invalidateQueries({queryKey:["admin-projects"]}),I.success("Ordem atualizada")},onError:e=>{I.error(`Erro ao reordenar: ${e.message}`)}})}function QR(){const t=ae();return z({mutationFn:async e=>{try{return(await Gt("scrape-project-v2",{url:e.url,categories:e.categories,authorHint:e.authorHint,industry:e.industry},"Falha ao extrair projeto")).project}catch(r){const n=r instanceof is?r.status:void 0;if(n!==void 0&&n<500)throw r;return console.warn("V2 scraper failed, trying v1:",r),(await Gt("scrape-project",{url:e.url,categories:e.categories},"Falha ao extrair projeto")).project}},onSuccess:()=>{t.invalidateQueries({queryKey:["featured-projects"]}),t.invalidateQueries({queryKey:["admin-projects"]}),t.invalidateQueries({queryKey:["featured-categories"]}),t.invalidateQueries({queryKey:["admin-categories"]}),I.success("Projeto importado com sucesso (Firecrawl)!")},onError:e=>{I.error(`Erro ao importar: ${e.message}`)}})}function YR(){return z({mutationFn:async t=>{await k.rpc("increment_project_view",{p_project_id:t})}})}function JR(){const t=ae();return z({mutationFn:async({projectId:e,imageUrls:r,existingData:n})=>{const o=await Gt("analyze-project",{projectId:e,imageUrls:r,existingData:n},"Analysis failed");return{...o.analysis,suggestedCategories:o.suggestedCategories||[]}},onSuccess:(e,{projectId:r})=>{t.invalidateQueries({queryKey:["featured-projects"]}),t.invalidateQueries({queryKey:["admin-projects"]}),t.invalidateQueries({queryKey:["project",r]}),t.invalidateQueries({queryKey:["featured-categories"]}),t.invalidateQueries({queryKey:["admin-categories"]});const n=e.suggestedCategories;if(n&&n.length>0){const o=n.map(a=>a.charAt(0).toUpperCase()+a.slice(1)).join(", ");I.success(`Análise AI concluÃda! Categorias: ${o}`)}else I.success("Análise AI concluÃda!")},onError:e=>{I.error(`Erro na análise: ${e.message}`)}})}function XR(){return z({mutationFn:async({field:t,imageUrls:e,existingData:r})=>(await Gt("analyze-project-field",{field:t,imageUrls:e,existingData:r},"Field analysis failed")).result,onError:t=>{I.error(`Field analysis error: ${t.message}`)}})}function eN(){return z({mutationFn:async t=>{const{data:e,error:r}=await k.from("project_assets").select("clip_vector_id").eq("project_id",t).not("clip_vector_id","is",null);if(r)throw r;if(!e||e.length===0)throw new Error("No images with clip_vector_id found");const n=e.map(o=>o.clip_vector_id).filter(o=>!!o);return Gt("generate-embeddings",{imageIds:n,batchSize:5},"Falha ao gerar embeddings")},onSuccess:()=>{I.success("Embeddings em processamento")},onError:t=>{I.error(`Erro ao gerar embeddings: ${t.message}`)}})}function tN(){const t=ae();return z({mutationFn:async e=>Gt("publish-project",{projectId:e},"Falha ao publicar"),onSuccess:(e,r)=>{t.invalidateQueries({queryKey:["featured-projects"]}),t.invalidateQueries({queryKey:["admin-projects"]}),t.invalidateQueries({queryKey:["project",r]}),I.success("Projeto publicado! Imagens agora visÃveis na galeria.")},onError:e=>{I.error(`Erro ao publicar: ${e.message}`)}})}function rN(){const t=ae();return z({mutationFn:async({leftId:e,rightId:r})=>{const{data:n}=await k.from("project_assets").select("id, order_index, project_id").in("id",[e,r]).order("order_index");if(!n||n.length!==2)throw new Error("Assets not found");const[o,a]=n,{data:l,error:c}=await k.from("project_assets").select("id").eq("project_id",o.project_id).order("order_index");if(c)throw c;const u=(l||[]).map(f=>f.id).filter(f=>f!==a.id),d=u.indexOf(o.id);return d!==-1?u.splice(d+1,0,a.id):u.push(a.id),await xn([k.from("project_assets").update({display_mode:"dual-left"}
67).eq("id",o.id),k.from("project_assets").update({display_mode:"dual-right"}).eq("id",a.id),...u.map((f,h)=>k.from("project_assets").update({order_index:h}).eq("id",f))],"Mark dual"),{projectId:o.project_id}},onSuccess:({projectId:e})=>{t.invalidateQueries({queryKey:["admin-projects"]}),t.invalidateQueries({queryKey:["featured-projects"]}),t.invalidateQueries({queryKey:["project-assets-fresh",e]}),I.success("Images marked as dual")},onError:e=>{I.error(`Error: ${e.message}`)}})}function nN(){const t=ae();return z({mutationFn:async({assetIds:e,projectId:r})=>(await xn(e.map(n=>k.from("project_assets").update({display_mode:"single"}).eq("id",n)),"Unmark dual"),{projectId:r}),onSuccess:({projectId:e})=>{t.invalidateQueries({queryKey:["admin-projects"]}),t.invalidateQueries({queryKey:["featured-projects"]}),t.invalidateQueries({queryKey:["project-assets-fresh",e]}),I.success("Dual mode removed")},onError:e=>{I.error(`Error: ${e.message}`)}})}function sN(){const t=ae();return z({mutationFn:async({assetIds:e,projectId:r})=>{const{data:n}=await k.from("project_assets").select("id, clip_vector_id").in("id",e),o=(n||[]).map(l=>l.clip_vector_id).filter(l=>!!l);if(o.length>0&&await k.from("folder_external_images").delete().in("clip_vector_id",o),o.length>0){const{error:l}=await k.from("clip_vectors").delete().in("id",o);l&&console.warn("clip_vectors bulk delete warning:",l.message)}const{error:a}=await k.from("project_assets").delete().in("id",e);if(a)throw a;return{projectId:r,count:e.length}},onSuccess:({projectId:e,count:r})=>{t.invalidateQueries({queryKey:["admin-projects"]}),t.invalidateQueries({queryKey:["featured-projects"]}),t.invalidateQueries({queryKey:["project",e]}),t.invalidateQueries({queryKey:["images"]}),t.invalidateQueries({queryKey:["trending-images"]}),I.success(`${r} ${r===1?"imagem removida":"imagens removidas"}`)},onError:e=>{I.error(`Erro ao remover: ${e.message}`)}})}function i$(){return he({queryKey:["authors"],staleTime:5*6e4,throwOnError:!1,queryFn:async()=>{const{data:t,error:e}=await k.from("authors").select("id, name, slug, bio, avatar_url, cover_url, is_highlighted, is_partner, project_count, folder_count, website_url, behance_url, dribbble_url, instagram_url, twitter_url, unbserved_url, created_at, updated_at, folder_id").order("name");if(e)throw e;return t}})}function oN(t){return he({queryKey:["authors","search",t],staleTime:6e4,throwOnError:!1,queryFn:async()=>{if(!t||t.length<2)return[];const{data:e,error:r}=await k.from("authors").select("id, name, slug, bio, avatar_url, project_count").ilike("name",`%${t}%`).order("project_count",{ascending:!1}).limit(50);if(r)throw r;return e},enabled:t.length>=2})}function aN(t){const e=ae();return he({queryKey:["author",t],staleTime:5*6e4,throwOnError:!1,queryFn:async()=>{if(!t)return null;const{data:r,error:n}=await k.from("authors").select("*").eq("slug",t).maybeSingle();if(n)throw n;if(!r)return null;const{data:o,error:a}=await k.from("projects").select("id, title, slug, thumbnail_url, category, view_count, like_count, created_at, published_at").eq("author_id",r.id).eq("status","published").order("published_at",{ascending:!1,nullsFirst:!1}).order("created_at",{ascending:!1});if(a)throw a;const{data:l,error:c}=await k.from("clip_vectors").select("id, image_url, title, source_url, platform, created_at").eq("author_id",r.id).eq("is_public",!0).order("created_at",{ascending:!1}).limit(60);if(c)throw c;return{...r,projects:o||[],images:l||[]}},enabled:!!t,placeholderData:()=>{if(!t)return;const n=e.getQueryData(["authors","with-projects"])?.find(o=>o.slug===t);if(n)return{...n,projects:(n.projects||[]).map(o=>({category:null,created_at:"",...o})),images:[]}}})}function iN(){const t=ae();return z({mutationFn:async e=>{const{data:r,error:n}=await k.rpc("generate_author_slug",{author_name:e.name});if(n)throw n;const{data:o,error:a}=await k.from("authors").insert({...e,slug:r}).select().single();if(a)throw a;return o},onSuccess:()=>{t.invalidateQueries({queryKey:["authors"]})}})}function lN(){const t=ae();return z({mutationFn:async({projectId:e,authorId:r,authorName:n})=>{const o={author_id:r};n&&(o.author=n);const{error:a}=await k.from("projects").update(o).eq("id",e);if(a)throw a},onSuccess:()=>{t.invalidateQueries({queryKey:["authors"]}),t.invalidateQueries({queryKey:["featured-projects"]})}})}function cN(){return he({queryKey:["authors","with-projects"],staleTime:5*6e4,throwOnError:!1,queryFn:async()=>{const{publicEndpoint:t}=await A(async()=>{const{publicEndpoint:r}=await import("./publicEndpoint-Ckwqc1PI.js");return{publicEndpoint:r}},[]),e=t("public-artists");try{const r=await fetch(e.url,{headers:e.headers});if(!r.ok)throw new Error(`public-artists ${r.status}`);return(await r.json()).authors||[]}catch(r){console.warn("[useAuthorsWithProjects] edge fetch failed, falling back:",r);const{data:n,error:o}
67=await k.from("authors").select("id, name, slug, bio, avatar_url, cover_url, is_highlighted, is_partner, project_count, website_url, behance_url, dribbble_url, instagram_url, twitter_url, unbserved_url, created_at, updated_at").eq("is_artist",!0).order("project_count",{ascending:!1});if(o)throw o;const a=(n||[]).map(f=>f.id);if(a.length===0)return[];const{data:l,error:c}=await k.from("projects").select("id, title, slug, thumbnail_url, author_id, created_at, updated_at, published_at").in("author_id",a).eq("status","published").order("published_at",{ascending:!1,nullsFirst:!1}).order("updated_at",{ascending:!1});if(c)throw c;const u=new Map,d=new Map;for(const f of l||[]){if(!f.author_id)continue;const h=u.get(f.author_id)||[];h.length<4&&h.push({id:f.id,title:f.title,slug:f.slug,thumbnail_url:f.thumbnail_url}),u.set(f.author_id,h);const m=f.published_at||f.updated_at||f.created_at||"";m>(d.get(f.author_id)||"")&&d.set(f.author_id,m)}return(n||[]).map(f=>({...f,projects:u.get(f.id)||[],latest_project_at:d.get(f.id)||null})).filter(f=>f.projects.length>0)}}})}function uN(){return he({queryKey:["authors","admin-artists"],staleTime:6e4,throwOnError:!1,queryFn:async()=>{const{data:t,error:e}=await k.from("authors").select("id, name, slug, bio, avatar_url, cover_url, is_highlighted, is_partner, project_count, website_url, behance_url, dribbble_url, instagram_url, twitter_url, unbserved_url, created_at, updated_at").eq("is_artist",!0).order("name");if(e)throw e;return(t||[]).map(r=>({...r,projects:[]}))}})}const Wm=k.storage.from("media-thumbnails").getPublicUrl("").data.publicUrl.split("/storage/v1/")[0],l$=new Set([new URL(Wm).origin,"https://tjidivtwncamikujcpvx.supabase.co"]),nn="/storage/v1/object/public/",Xh="/storage/v1/render/image/public/",Ui=new Map;let tn,Zm=0;function c$(t){try{const e=new URL(t);if(!l$.has(e.origin))return null;const r=e.pathname.startsWith(nn)?nn:e.pathname.startsWith(Xh)?Xh:null;if(!r)return null;const n=e.pathname.slice(r.length);return{key:decodeURIComponent(n),url:r===nn?t:`${e.origin}${nn}${n}${e.hash}`}}catch{return null}}function Km(){return tn||(Zm=Date.now(),tn=(async()=>{try{const{data:t,error:e}=await k.rpc("media_thumbnail_manifest").abortSignal(AbortSignal.timeout(5e3));if(e||!Array.isArray(t))return;const r=new Map;for(const n of t)Array.isArray(n)&&n.length===3&&n.every(o=>typeof o=="string")&&/^v1\/[a-f0-9-]+\/\d+\/480\.webp$/.test(n[1])&&/^v1\/[a-f0-9-]+\/\d+\/1200\.webp$/.test(n[2])&&r.set(n[0],[n[1],n[2]]);Ui.clear(),r.forEach((n,o)=>Ui.set(o,n))}catch{}})().finally(()=>{tn=void 0}),tn)}function u$(t,e){const r=c$(t);if(!r)return null;typeof window<"u"&&Date.now()-Zm>6e4&&Km();const n=Ui.get(r.key);if(!n)return r.url;const o=n[e<=480?0:1];return`${Wm}${nn}
67media-thumbnails/${o}`}const d$=["cdninstagram.com","scontent","fbcdn.net"],h$=/\.(gif|mp4|webm|mov|m4v)(\?|$)/i;function ml(t,e=400){if(!t)return"";if(t.startsWith("blob:")||t.startsWith("data:"))return t;const r=u$(t,e);if(r)return r;if(t.includes("wsrv.nl")||t.includes("/img-proxy")||d$.some(n=>t.includes(n))||h$.test(t))return t;if(t.startsWith("https://")||t.startsWith("http://")||t.startsWith("//")){const n=t.startsWith("//")?`https:${t}`:t,o=/\.(png|webp|svg)([?#]|$)/i.test(n)?"webp":"jpg";return`https://wsrv.nl/?url=${encodeURIComponent(n)}&w=512&h=512&fit=inside&output=${o}&q=85`}return t}const Gm=/\.gif(\?|#|$)/i,pl=/\.(mp4|webm|mov|m4v)(\?|$)/i;function dN(t){return t?Gm.test(t)||pl.test(t):!1}function hN(t){return t?pl.test(t):!1}function fN(t,e=400){if(!t||pl.test(t))return"";if(Gm.test(t)){if(t.startsWith("blob:")||t.startsWith("data:"))return t;const r=t.startsWith("//")?`https:${t}`:t;if(!/^https?:\/\//.test(r))return t;const n=Math.min(Math.max(Math.round(e),100),1200);return`https://wsrv.nl/?url=${encodeURIComponent(r)}&w=${n}&h=${n}&fit=inside&output=jpg&q=80&n=1`}return ml(t,e)}function mN(t){return t.includes("#")?t:`${t}#t=0.1`}const f$=["Typography","Branding","Logo","Editorial","Packaging","Photography"],m$=[{label:"Explore",to:"/explore"},{label:"Collections",to:"/collections"},{label:"Featured projects",to:"/featured"},{label:"Creatives",to:"/featured/creatives"},{label:"Submit your work",to:"/submit"}],p$=new Intl.DateTimeFormat("en-US",{day:"numeric",month:"long",year:"numeric"}),v$=new Intl.DateTimeFormat("en-US",{weekday:"long",day:"numeric",month:"long",year:"numeric"}),g$={explore:"explore, references",search:"search, references",collections:"collections, community",c:"collections, references",featured:"featured, projects",artist:"creatives, projects",blog:"journal, stories",u:"profiles, collections",profile:"profiles, collections",dashboard:"library, collections",submit:"submissions, studios",upgrade:"pro, membership",settings:"account, settings",notifications:"account, activity",activity:"community, activity",legal:"legal, policies"};function b$(){return s.jsx("p",{className:"blog-shell__date",children:v$.format(new Date)})}function y$({path:t}){const e=t.split("/")[1]??"";return s.jsxs("p",{className:"blog-shell__byline",children:["posted by unbserved · labels: ",g$[e]??"references, archive"]})}const w$=new Intl.RelativeTimeFormat("en",{numeric:"auto"});function x$(t){if(!t)return"";const e=(Date.parse(t)-Date.now())/1e3,r=[["year",31536e3],["month",2592e3],["week",604800],["day",86400],["hour",3600],["minute",60]];for(const[n,o]of r)if(Math.abs(e)>=o)return w$.format(Math.round(e/o),n);return"just now"}function _$(){const t=a$(),e=i.useMemo(()=>(t.data??[]).filter(r=>r.status==="published").sort((r,n)=>(Date.parse(n.published_at||n.created_at)||0)-(Date.parse(r.published_at||r.created_at)||0)).slice(0,6),[t.data]);return!t.isLoading&&e.length===0?null:s.jsxs("section",{className:"blog-widget",children:[s.jsx("h3",{children:"Featured projects"}),t.isLoading?s.jsx("p",{className:"blog-widget__meta",children:"Loadingâ¦"}):s.jsx("ul",{className:"blog-list",children:e.map(r=>{const n=r.slug?`/p/${r.slug}`:`/featured/${r.id}`,o=(r.editorial_intro||r.description||"").trim();return s.jsxs("li",{children:[s.jsxs(G,{className:"blog-list__title",to:n,children:[s.jsx("img",{className:"blog-list__icon",src:"/favicon.png",alt:""}),s.jsx("span",{children:r.title})]}),r.thumbnail_url&&s.jsx(G,{to:n,tabIndex:-1,"aria-hidden":"true",children:s.jsx("img",{className:"blog-list__thumb",src:ml(r.thumbnail_url,200),alt:"",loading:"lazy"})}),s.jsxs("p",{className:"blog-list__excerpt",children:[r.author||r.author_data?.name?s.jsx("strong",{children:r.author||r.author_data?.name}):null,o?` â ${o.length>90?`${o.slice(0,90).trimEnd()}â¦`:o}`:null]}),s.jsx("span",{className:"blog-list__time",children:x$(r.published_at||r.created_at)})]},r.id)})}),s.jsx(G,{to:"/featured",children:"All featured projects"})]})}function k$(){const t=i$(),e=i.useMemo(()=>(t.data??[]).filter(r=>r.avatar_url&&r.slug).sort((r,n)=>Number(n.is_highlighted)-Number(r.is_highlighted)||(n.project_count??0)-(r.project_count??0)),[t.data]);return!t.isLoading&&e.length===0?null:s.jsxs("section",{className:"blog-widget",children:[s.jsx("h3",{children:"Creatives"}),s.jsxs("p",{className:"blog-people__count",children:["Creatives (",e.length,") ",s.jsx(G,{to:"/featured/creatives",children:"See all"})]}),s.jsx("div",{className:"blog-people",children:e.slice(0,18).map(r=>s.jsx(G,{to:`/artist/${r.slug}`,title:r.name,children:s.jsx("img",{src:ml(r.avatar_url,96),alt:r.name,loading:"lazy"})},r.id))})]})}const e2="unbserved-blog-sidebar";function j$({discovery:t=!1}){const[e,r]=i.useState(()=>{try{return localStorage.getItem(e2)==="collapsed"}catch{return!1}});return i.useEffect(()=>{try{localStorage.setItem(e2,e?"collapsed":"open")}catch{}},[e]),s.jsxs("aside",{className:"blog-sidebar","aria-label":"About this weblog","data-collapsed":e,"data-discovery":t,children:[s.jsx("button",{type:"button",className:"blog-sidebar__toggle","aria-expanded":!e,"aria-controls":"blog-sidebar-widgets",onClick:()=>r(n=>!n),children:e?"« sidebar":"hide sidebar »"}),s.jsxs("div",{id:"blog-sidebar-widgets",className:"blog-sidebar__widgets",hidden:e,children:[s.jsxs("section",{className:"blog-widget",children:[s.jsx("h3",{children:"About"}),s.jsx("img",{className:"blog-widget__avatar",src:"/images/home-intro-dragon-only.png",alt:""}),s.jsx("p",{children:"Unbserved is a curated visual library for designers: branding, type, editorial, motion and web references."}),s.jsx(G,{to:"/explore",children:"Browse the archive"})]}),s.jsxs("section",{className:"blog-widget",children:[s.jsx("h3",{children:"Labels"}),s.jsx("ul",{children:f$.map(n=>s.jsx("li",{children:s.jsx(G,{to:`/explore/${n.toLowerCase()}`,children:n})},n))})]}),s.jsxs("section",{className:"blog-widget blog-widget--site-links",children:[s.jsx("h3",{children:"Links"}),s.jsx("ul",{children:m$.map(n=>s.jsx("li",{children:s.jsx(G,{to:n.to,children:n.label})},n.to))})]}),s.jsxs("section",{className:"blog-widget blog-widget--site-links",children:[s.jsx("h3",{children:"Follow"}),s.jsx("p",{children:s.jsx("a",{href:"https://www.instagram.com/unbserved/",target:"_blank",rel:"noopener noreferrer",children:"@unbserved on Instagram"})}),s.jsxs("p",{className:"blog-widget__meta",children:["Last updated ",p$.format(new Date)]})]}),t&&!e&&s.jsx(_$,{}),t&&!e&&s.jsx(k$,{})]})]})}function ii({children:t}){const e=Me(),r=wp(),{showModal:n,dismiss:o}=HO(),a=e.pathname.startsWith("/messages"),l=e.pathname.startsWith("/auth/"),{system:c}=_n(),u=e.pathname,d=c==="classic"&&u!=="/"&&!l&&!a&&!u.startsWith("/admin")&&!u.startsWith("/lab/")&&!u.startsWith("/p/")&&!u.startsWith("/image/"),f=Up(),h=!f&&Fm(e.pathname);return i.useEffect(()=>
67{if(f){const m=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=m}}},[f]),s.jsxs("div",{className:"min-h-screen flex flex-col bg-background overflow-x-hidden",children:[s.jsx($O,{}),s.jsx(KO,{}),s.jsx(JO,{}),s.jsx(e$,{}),s.jsx(TO,{}),s.jsx(PO,{}),!l&&s.jsx(jO,{}),s.jsx(t$,{}),s.jsx(al,{resetKey:e.pathname,fallback:s.jsx(C$,{}),children:s.jsx("main",{id:"main-content",role:"main","aria-label":"Main content",className:h?"flex-1 pb-[calc(4rem+env(safe-area-inset-bottom,0px))] md:pb-0":"flex-1",children:s.jsxs("div",{className:d?"blog-shell":"blog-shell-off",children:[s.jsxs("div",{className:"blog-shell__post",children:[d&&s.jsx(b$,{}),s.jsx(ZO,{children:t??r}),d&&s.jsx(y$,{path:u})]}),d&&s.jsx(j$,{discovery:/^\/(explore|featured|collections)(\/|$)/.test(u)})]})})}),!a&&!l&&s.jsx(LO,{}),s.jsx(AO,{}),h&&s.jsx(r$,{}),s.jsx(MO,{open:n,onClose:o})]})}function C$(){return s.jsx("div",{className:"flex-1 flex items-center justify-center p-8 min-h-[50vh]",children:s.jsxs("div",{className:"text-center space-y-4",children:[s.jsx("p",{className:"text-lg text-foreground",children:"Something went wrong loading this page."}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"This is usually a temporary loading issue. Reload to try again."}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 justify-center pt-2",children:[s.jsx("button",{onClick:()=>{sessionStorage.removeItem("chunk_error_reload"),window.location.reload()},className:"px-4 py-2 rounded-md bg-primary text-primary-foreground text-sm font-medium",children:"Reload page"}),s.jsx("button",{onClick:()=>{sessionStorage.removeItem("chunk_error_reload"),window.location.href="/"},className:"px-4 py-2 rounded-md border border-border text-sm font-medium",children:"Go home"})]})]})})}const li="https://unbserved.com",E$="UNBSERVED â Design Inspiration Library for Designers",ar=[];function Qm(){document.title=ar.length?ar[ar.length-1].title:E$}function S$(t,e){const r=ar.find(n=>n.key===t);r?r.title=e:ar.push({key:t,title:e}),Qm()}function t2(t){const e=ar.findIndex(r=>r.key===t);e!==-1&&(ar.splice(e,1),Qm())}function L$(t){const e=t&&t.length>0?t:typeof window<"u"?window.location.pathname:"/";let r=/^https?:\/\//i.test(e)?e:`${li}${e.startsWith("/")?e:`/${e}`}`;return r=r.replace(/^https?:\/\/(www\.)?unbserved\.com/i,li),r=r.split("#")[0].split("?")[0],r.length>li.length+1&&r.endsWith("/")&&(r=r.slice(0,-1)),r}function ci({title:t,description:e,image:r,url:n,noindex:o,ogType:a,publishedTime:l,modifiedTime:c,author:u}){const d=i.useRef({}).current;i.useEffect(()=>{const f=(C,$,R=!1)=>{let Y=document.querySelector(C);if(Y)Y.content=$;else{Y=document.createElement("meta");const[ve,be]=C.match(/\[(.+?)="(.+?)"\]/)?.slice(1)||[];ve&&be&&(Y.setAttribute(ve,be),Y.content=$,document.head.appendChild(Y))}Y&&R&&(Y.dataset.pageOverride="1")},h={};['meta[property="og:title"]','meta[property="og:description"]','meta[property="og:image"]','meta[property="og:url"]','meta[name="twitter:title"]','meta[name="twitter:description"]','meta[name="twitter:image"]','meta[name="description"]'].forEach(C=>{const $=document.querySelector(C);$&&(h[C]=$.content)});const v=L$(n);if(t){const $=/unbserved/i.test(t)?t:`${t} | UNBSERVED`;S$(d,$),f('meta[property="og:title"]',$),f('meta[name="twitter:title"]',$)}else t2(d);if(e){const C=e.slice(0,160);f('meta[name="description"]',C),f('meta[property="og:description"]',C),f('meta[name="twitter:description"]',C)}const p=document.querySelector('meta[property="og:image"]'),w=document.querySelector('meta[name="twitter:image"]');r&&(f('meta[property="og:image"]',r,!0),f('meta[property="og:image:width"]',"1200"),f('meta[property="og:image:height"]',"630"),f('meta[name="twitter:image"]',r,!0),f('meta[name="twitter:card"]',"summary_large_image"));const y=v;f('meta[property="og:url"]',y),a&&f('meta[property="og:type"]',a);const b=[],_=(C,$)=>{const R=document.createElement("meta");R.setAttribute("property",C),R.content=$,document.head.appendChild(R),b.push(R)};l&&_("article:published_time",l),c&&_("article:modified_time",c),u&&_("article:author",u);let g=document.querySelector('link[rel="canonical"]');const j=!!g;g||(g=document.createElement("link"),g.rel="canonical",document.head.appendChild(g)),g.href=y;let E=document.querySelector('meta[name="robots"]');const L=!!E,D=E?.content??null;return o&&(E||(E=document.createElement("meta"),E.name="robots",document.head.appendChild(E)),E.content="noindex, nofollow"),()=>
67{if(t2(d),Object.entries(h).forEach(([C,$])=>{const R=document.querySelector(C);R&&(R.content=$)}),r&&(delete p?.dataset.pageOverride,delete w?.dataset.pageOverride),a){const C=document.querySelector('meta[property="og:type"]');C&&(C.content="website")}b.forEach(C=>C.remove()),j||document.querySelector('link[rel="canonical"]')?.remove(),o&&E&&(L?D!==null&&(E.content=D):E.remove())}},[t,e,r,n,o,a,l,c,u,d])}function O$(){ci({title:"Extension preview",noindex:!0}),ci({title:"Extension preview",noindex:!0}),ci({title:"Extension preview",noindex:!0}),i.useEffect(()=>{document.title="Extension Preview"},[]);const t=`<svg viewBox="0 0 1456 387" fill="none" xmlns="http://www.w3.org/2000/svg" width="90" height="20" aria-label="UNBSERVED" style="fill:currentColor; color:#f2f0e8; display:block; overflow:visible; flex-shrink:0;"> 68 <path d="M1283.39 4.70801C1310.38 4.70801 1331.56 7.84649 1346.94 14.1234C1362.32 20.4004 1373.46 30.9143 1380.37 45.6652C1387.27 60.1022 1390.72 80.3454 1390.72 106.395V279.639C1390.72 305.375 1387.27 325.618 1380.37 340.369C1373.46 355.12 1362.32 365.634 1346.94 371.911C1331.56 378.188 1310.38 381.326 1283.39 381.326H1217.48V4.70801H1283.39ZM1280.09 67.3207V318.713H1283.86C1295.47 318.713 1304.26 317.772 1310.22 315.889C1316.5 314.006 1321.05 310.239 1323.88 304.59C1326.7 298.941 1328.11 290.624 1328.11 279.639V106.395C1328.11 95.4102 1326.7 87.0932 1323.88 81.4439C1321.05 75.7946 1316.5 72.0285 1310.22 70.1454C1304.26 68.2623 1295.47 67.3207 1283.86 67.3207H1280.09Z" fill="currentColor"/> 69 <path d="M1094.48 4.70801H1223.94V67.3207H1157.09V161.475H1223.94V224.559H1157.09V318.713H1223.94V381.326H1094.48V4.70801Z" fill="currentColor"/> 70 <path d="M982.151 4.70801L1011.81 313.064L1041 4.70801H1103.61L1054.65 381.326H968.497L919.533 4.70801H982.151Z" fill="currentColor"/> 71 <path d="M934.609 347.901C934.609 356.689 934.921 363.907 935.548 369.557C936.176 374.892 937.589 378.815 939.786 381.326H877.169C874.972 378.815 873.56 374.892 872.932 369.557C872.305 363.907 871.991 356.689 871.991 347.901V276.815C871.991 265.83 870.265 257.67 866.813 252.334C863.674 246.685 859.123 243.076 853.16 241.507C847.197 239.623 839.194 238.682 829.151 238.682H823.972V381.326H761.359V4.70801H828.209C855.514 4.70801 876.856 8.16033 892.234 15.065C907.613 21.6558 918.441 32.3267 924.718 47.0775C931.308 61.8284 934.609 81.9147 934.609 107.336V135.112C934.609 156.454 931.465 174.186 925.188 188.309C919.225 202.432 909.967 213.417 897.413 221.263C909.967 225.971 919.225 233.66 925.188 244.331C931.465 255.002 934.609 269.753 934.609 288.584V347.901ZM871.991 107.336C871.991 96.3517 870.736 88.0347 868.225 82.3854C865.714 76.7362 861.32 72.8131 855.043 70.6161C849.08 68.4192 840.292 67.3207 828.68 67.3207H823.972V176.069H828.68C845.628 176.069 857.083 173.245 863.046 167.595C869.009 161.632 871.991 150.804 871.991 135.112V107.336Z" fill="currentColor"/> 72 <path d="M636.75 4.70801H766.213V67.3207H699.363V161.475H766.213V224.559H699.363V318.713H766.213V381.326H636.75V4.70801Z" fill="currentColor"/> 73 <path d="M578.621 153.943C594.313 165.869 606.71 176.854 615.812 186.897C624.913 196.94 632.132 209.651 637.467 225.029C643.116 240.094 645.941 258.925 645.941 281.522C645.941 316.359 638.723 342.565 624.286 360.141C610.162 377.403 587.565 386.033 556.494 386.033C534.525 386.033 516.949 382.267 503.768 374.735C490.586 367.203 480.7 353.55 474.109 333.778C467.518 314.005 464.223 285.916 464.223 249.509H542.842C542.842 273.048 543.94 288.584 546.137 296.116C548.334 303.648 551.787 307.414 556.494 307.414C561.202 307.414 564.184 305.531 565.439 301.765C566.694 297.999 567.322 291.251 567.322 281.522C567.322 273.048 566.694 266.3 565.439 261.279C564.184 255.943 561.359 250.451 556.965 244.802C552.571 239.152 545.51 232.248 535.78 224.088L524.482 215.143C510.672 204.158 499.688 194.429 491.528 185.955C483.682 177.481 476.934 166.34 471.284 152.53C465.949 138.407 463.281 120.989 463.281 100.275C463.281 33.4249 492.626 0 551.316 0C581.759 0 604.199 9.57238 618.636 28.7171C633.073 47.548 640.292 77.2067 640.292 117.693H562.144C562.144 102.942 561.202 92.7422 559.319 87.0929C557.75 81.4437 555.082 78.619 551.316 78.619C547.55 78.619 545.039 80.5021 543.783 84.2683C542.528 87.7206 541.9 93.0561 541.9 100.275C541.9 108.435 542.999 115.339 545.196 120.989C547.707 126.324 551.316 131.189 556.024 135.583C561.045 139.976 568.577 146.096 578.621 153.943Z" fill="currentColor"/> 74 <path d="M436.736 184.072C463.727 198.509 477.222 225.03 477.222 263.633V282.935C477.222 306.159 473.77 324.99 466.865 339.427C460.274 353.55 449.447 364.064 434.382 370.969C419.317 377.874 398.917 381.326 373.182 381.326H294.563V4.70801H373.182C399.545 4.70801 419.945 8.16033 434.382 15.065C448.819 21.9696 458.862 32.9543 464.511 48.0191C470.475 63.0838 473.456 83.9547 473.456 110.
74632V111.573C473.456 147.352 461.216 171.518 436.736 184.072ZM394.837 110.632C394.837 99.6471 393.425 92.4286 390.6 88.9763C388.089 85.2101 382.44 83.327 373.652 83.327H373.182V149.706H373.652C380.557 149.706 385.422 148.921 388.246 147.352C391.071 145.783 392.797 143.272 393.425 139.82C394.366 136.367 394.837 130.561 394.837 122.401V110.632ZM373.182 228.325V302.707H373.652C382.754 302.707 389.188 300.981 392.954 297.529C396.72 294.076 398.603 287.328 398.603 277.285V252.805C398.603 242.762 396.877 236.171 393.425 233.033C389.972 229.894 383.382 228.325 373.652 228.325H373.182Z" fill="currentColor"/> 75 <path d="M101.914 4.70801H180.533L229.964 169.008V4.70801H308.583V381.326H229.964L180.533 217.026V381.326H101.914V4.70801Z" fill="currentColor"/> 76 <path d="M37.1849 4.70801H115.804V277.756C115.804 349.941 85.5178 386.034 24.9451 386.034C-35.6276 386.034 -65.9141 349.941 -65.9141 277.756V4.70801H12.7049V271.636C12.7049 282.307 12.8618 289.996 13.1757 294.704C13.8034 299.098 14.9019 302.393 16.4711 304.59C18.0403 306.473 20.865 307.415 24.9451 307.415C29.0251 307.415 31.8497 306.473 33.4189 304.59C34.9882 302.393 35.9296 299.098 36.2435 294.704C36.8712 289.996 37.1849 282.307 37.1849 271.636V4.70801Z" fill="currentColor"/> 77 </svg>`;return s.jsxs("div",{style:{background:"#1a1a1a",minHeight:"100vh",display:"flex",alignItems:"flex-start",justifyContent:"center",padding:"40px",gap:"40px"},children:[s.jsxs("div",{children:[s.jsx("p",{style:{color:"#888",fontSize:12,marginBottom:8},children:"Login view"}),s.jsxs("div",{style:{width:280,background:"#0e0e0c",color:"#f2f0e8",fontFamily:"system-ui, sans-serif",fontSize:13,lineHeight:1.5,border:"1px solid rgba(255,255,255,0.1)",borderRadius:8,overflow:"hidden"},children:[s.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",padding:"24px 20px 16px",gap:10},children:[s.jsx("div",{dangerouslySetInnerHTML:{__html:t.replace('width="100" height="22"','width="120" height="26"')}}),s.jsx("p",{style:{fontSize:11,color:"rgba(242,240,232,0.3)",textAlign:"center",maxWidth:200},children:"Unobserved visual references from badass designers."})]}),s.jsx("div",{style:{height:1,background:"rgba(242,240,232,0.08)",margin:"0 16px"}}),s.jsxs("div",{style:{padding:16},children:[s.jsx("div",{style:{fontSize:10,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:"rgba(242,240,232,0.3)",marginBottom:12},children:"Sign in to save inspiration"}),s.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:10},children:[s.jsx("input",{style:{padding:"8px 10px",background:"#181816",border:"1px solid rgba(242,240,232,0.08)",borderRadius:6,color:"#f2f0e8",fontSize:13,outline:"none",width:"100%",boxSizing:"border-box"},placeholder:"[email protected]"}),s.jsx("input",{type:"password",style:{padding:"8px 10px",background:"#181816",border:"1px solid rgba(242,240,232,0.08)",borderRadius:6,color:"#f2f0e8",fontSize:13,outline:"none",width:"100%",boxSizing:"border-box"},placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢"}),s.jsx("button",{style:{background:"#F0FF00",color:"#0e0e0c",border:"none",borderRadius:6,padding:"9px 16px",fontSize:13,fontWeight:700,cursor:"pointer",width:"100%"},children:"Sign in"})]})]})]})]}),s.jsxs("div",{children:[s.jsx("p",{style:{color:"#888",fontSize:12,marginBottom:8},children:"Logged-in view (header)"}),s.jsxs("div",{style:{width:280,background:"#0e0e0c",color:"#f2f0e8",fontFamily:"system-ui, sans-serif",fontSize:13,lineHeight:1.5,border:"1px solid rgba(255,255,255,0.1)",borderRadius:8,overflow:"hidden"},children:[s.jsx("div",{style:{background:"#111",borderBottom:"1px solid rgba(255,255,255,0.2)",padding:"4px 8px",fontSize:10,color:"#888",textAlign:"center"},children:"â ATUAL (sem fix)"}),s.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 14px",borderBottom:"1px solid rgba(242,240,232,0.08)"},children:[s.jsx("div",{style:{display:"flex",alignItems:"center",gap:8},dangerouslySetInnerHTML:{__html:t}}),s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6},children:[s.jsx("span",{style:{fontSize:11,color:"rgba(242,240,232,0.5)",maxWidth:100,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:"[email protected]"}),s.jsx("button",{style:{width:24,height:24,background:"transparent",border:"1px solid rgba(242,240,232,0.08)",borderRadius:4,color:"rgba(242,240,232,0.5)",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"},children:"â©"})]})]}),s.jsx("div",{style:{background:"#111",borderBottom:"1px solid rgba(255,255,255,0.2)",padding:"4px 8px",fontSize:10,
77color:"#888",textAlign:"center"},children:"â
COM FIX (flex-shrink:0 + overflow:visible)"}),s.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 14px",borderBottom:"1px solid rgba(242,240,232,0.08)"},children:[s.jsx("div",{style:{display:"flex",alignItems:"center",gap:8,flexShrink:0,overflow:"visible"},dangerouslySetInnerHTML:{__html:t}}),s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,minWidth:0},children:[s.jsx("span",{style:{fontSize:11,color:"rgba(242,240,232,0.5)",maxWidth:80,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:"[email protected]"}),s.jsx("button",{style:{width:24,height:24,background:"transparent",border:"1px solid rgba(242,240,232,0.08)",borderRadius:4,color:"rgba(242,240,232,0.5)",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:"â©"})]})]})]})]})]})}const yn=i.forwardRef(({className:t,shimmer:e=!0,...r},n)=>s.jsx("div",{ref:n,className:re("rounded-lg bg-secondary relative overflow-hidden",!e&&"animate-pulse",t),...r,children:e&&s.jsx("div",{className:"absolute inset-0 skeleton-shimmer"})}));yn.displayName="Skeleton";function $$(){const{id:t}=bs(),{data:e,isLoading:r,error:n}=he({queryKey:["folder-redirect",t],queryFn:async()=>{if(!t)throw new Error("No collection ID");const{data:o,error:a}=await k.from("folders_metadata").select("slug").eq("id",t).maybeSingle();if(a)throw a;return o},enabled:!!t});return r?s.jsxs("div",{className:"max-w-7xl mx-auto px-6 py-8",children:[s.jsx(yn,{className:"h-8 w-1/3 mb-4"}),s.jsx(yn,{className:"h-64 w-full"})]}):n||!e?.slug?s.jsx(Ie,{to:"/dashboard",replace:!0}):s.jsx(Ie,{to:`/c/${e.slug}`,replace:!0})}function A$(){const{id:t}=bs(),{data:e,isLoading:r,error:n}=he({queryKey:["project-redirect",t],queryFn:async()=>{if(!t)throw new Error("No project ID");const{data:o,error:a}=await k.from("projects").select("slug").eq("id",t).maybeSingle();if(a)throw a;return o},enabled:!!t});return r?s.jsxs("div",{className:"max-w-7xl mx-auto px-6 py-8",children:[s.jsx(yn,{className:"h-8 w-1/3 mb-4"}),s.jsx(yn,{className:"h-64 w-full"})]}):n||!e?.slug?s.jsx(Ie,{to:"/featured",replace:!0}):s.jsx(Ie,{to:`/p/${e.slug}`,replace:!0})}q(()=>A(()=>import("./SubmissionBuilderPreviewPage-DNV99W_i.js").then(t=>t.a),__vite__mapDeps([130,1,2,54,131,4,64,5,6,7,21,124,132])));const T$=q(()=>A(()=>import("./HomeLabPage-BsoXa18i.js"),__vite__mapDeps([142,1,2,33,21,4,34,17,16,78,41,23,139,143,144]))),P$=q(()=>A(()=>import("./HomeIntroLabPage-DkllLtg8.js"),__vite__mapDeps([145,1,2,142,33,21,4,34,17,16,78,41,23,139,143,144,146]))),R$=q(()=>A(()=>import("./HomeIntroLabV2Page-DNheXtl6.js"),__vite__mapDeps([147,1,2,142,33,21,4,34,17,16,78,41,23,139,143,144,148]))),Tr=q(()=>A(()=>import("./DiscoveryLabPage-DvfJnZQ7.js"),__vite__mapDeps([149,1,2,4,21,150]))),r2=q(()=>A(()=>import("./ExploreLabPage-C2Fb2Qz1.js"),__vite__mapDeps([151,1,2,0,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,152]))),Kn=q(()=>A(()=>import("./LibraryLabPage-BfNN1moo.js"),__vite__mapDeps([117,1,2,108,4,62,27,25,63,64,65,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,26,24,109,110,91,96,111,89,43,34,48,38,106,70,93,103,92,59,112,88,69,71,90,55,67,94,95,97,98,99,100,101,102,72,73,86,87,8,118]))),n2=q(()=>A(()=>import("./ImagePage-Bu8nCgCk.js"),__vite__mapDeps([50,1,2,16,14,51,9,4,10,11,12,13,15,17,18,19,20,21,22,23,52,24,53,54,49,36,32,55,25,8,56,57]))),N$=q(()=>A(()=>import("./ExtensionConnectPage-B_ng6JAc.js"),__vite__mapDeps([153,1,2,4,21]))),M$=q(()=>A(()=>import("./index-3GC-LO3U.js"),__vite__mapDeps([136,1,2,137,54,4,122,123,91,96,138,139,21,107,140,133])).then(t=>({default:t.LoginPage}))),I$=q(()=>A(()=>import("./index-3GC-LO3U.js"),__vite__mapDeps([136,1,2,137,54,4,122,123,91,96,138,139,21,107,140,133])).then(t=>({default:t.RegisterPage}))),qt=q(()=>A(()=>import("./MoreLabPage-C1fKVbEg.js"),__vite__mapDeps([154,1,2,4,21,155]))),Gn=q(()=>A(()=>import("./AccountLabPage-DzvQLFJt.js"),__vite__mapDeps([156,1,2,4,21,157]))),D$=q(()=>A(()=>import("./FolderImageViewerPage-Bs0LPa8v.js"),__vite__mapDeps([158,1,2,54,16,4,52,23,56,114,25,11,10,13,51,21]))),V$=q(()=>A(()=>import("./NotFoundPage-B4-q2BaI.js"),__vite__mapDeps([159,1,2,4,21]))),H$=q(()=>A(()=>import("./ForgotPasswordPage-CELpP37i.js"),__vite__mapDeps([160,1,2,54,138,4,139,21,107,140,133]))),B$=q(()=>A(()=>import("./ResetPasswordPage-HrpRvpgF.js"),__vite__mapDeps([161,1,2,54,133,4,21]))),U$=q(()=>A(()=>import("./CallbackPage-CN5aheKc.js"),__vite__mapDeps([162,1,2,4,21]))),q$=q(()=>A(()=>import("./CompleteProfilePage-B0Y7sYxC.js"),__vite__mapDeps([163,1,2,137,54,4,122,123,91,96,138,139,21,107]))),s2=q(()=>A(()=>import("./ProjectPage-CkfX1aAz.js"),__vite__mapDeps([79,1,2,16,19,20,4,21,22,23,41,80,42,43,44,45,46,53,54,49,81,47,15,17,10,56,82,8]))),F$=q(()=>A(()=>import("./NotePage-hjeOVTHT.js"),__vite__mapDeps([164,1,2,93,43,23,4,103,21]))),z$=q(()=>A(()=>import("./ExtensionScreenshots-DRsqdH-E.js"),__vite__mapDeps([165,1,2,4,21]))),o2=q(()=>A(()=>import("./BlogEditorPage-BYmTZ1ec.js"),__vite__mapDeps([166,1,2,54,73,167,168,169,110,91,96,170,60,95,90,86,4,87,21])
77)),W$=q(()=>A(()=>import("./TermsPage-Cfxy3cmx.js"),__vite__mapDeps([171,1,2,172,173,4,21]))),Z$=q(()=>A(()=>import("./PrivacyPage-Y8afmsrV.js"),__vite__mapDeps([174,1,2,172,173,4,21]))),K$=q(()=>A(()=>import("./CommunityPage-tJew3Me9.js"),__vite__mapDeps([175,1,2,172,173,4,21]))),G$=q(()=>A(()=>import("./CopyrightPage-DTgCUkfN.js"),__vite__mapDeps([176,1,2,172,173,4,21]))),Q$=q(()=>A(()=>import("./TrademarkPage-BAOy_vjS.js"),__vite__mapDeps([177,1,2,172,173,4,21]))),Y$=q(()=>A(()=>import("./EnforcementPage-x572Z6c7.js"),__vite__mapDeps([178,1,2,172,173,4,21]))),J$=q(()=>A(()=>import("./NonUsersPage-CDlIvwAZ.js"),__vite__mapDeps([179,1,2,172,173,4,21]))),X$=q(()=>A(()=>import("./AdminPage-DckK0-xP.js"),__vite__mapDeps([180,1,2,73,4,181,101,43,45,167,98,99,182,112,116,82,183,184,185,97,186,100,187,21])),{warm:!1}),eA=q(()=>A(()=>import("./AdminUsersPage-BprkSdti.js"),__vite__mapDeps([188,1,2,43,167,73,102,4,94,95,96,97,110,91,99,98,189,101,82,190,54,21])),{warm:!1}),tA=q(()=>A(()=>import("./AdminTagsPage-DAU2QAvk.js"),__vite__mapDeps([191,1,2,73,167,190,54,4,21])),{warm:!1}),rA=q(()=>A(()=>import("./AdminUploadsPage-Bgd0bEJl.js"),__vite__mapDeps([192,1,2,73,167,190,54,4,21])),{warm:!1}),nA=q(()=>A(()=>import("./AdminEmbeddingsPage-C9hYz7db.js"),__vite__mapDeps([193,1,2,73,167,47,4,110,91,96,194,195,187,182,112,82,45,190,54,21])),{warm:!1}),sA=q(()=>A(()=>import("./AdminAnnouncementsPage-BFYTTww2.js"),__vite__mapDeps([196,1,2,73,167,110,91,96,4,190,54,21])),{warm:!1}),oA=q(()=>A(()=>import("./AdminArenaPage-T-0Zk0Ti.js"),__vite__mapDeps([197,1,2,167,73,195,198,190,54,112,4,21])),{warm:!1}),aA=q(()=>A(()=>import("./AdminBulkEditPage-By5kUEa1.js"),__vite__mapDeps([199,1,2,4,22,167,110,91,96,190,54,21])),{warm:!1}),iA=q(()=>A(()=>import("./AdminFeedbackPage-BX1lg2bF.js"),__vite__mapDeps([200,1,2,4,167,190,54,82,21])),{warm:!1}),lA=q(()=>A(()=>import("./AdminHighlightsPage-5L86EA_t.js"),__vite__mapDeps([201,1,2,4,22,73,167,190,54,100,21])),{warm:!1}),cA=q(()=>A(()=>import("./AdminBadgesPage-3_BgqynM.js"),__vite__mapDeps([202,1,2,94,95,96,97,73,167,43,110,91,64,190,54,4,21])),{warm:!1}),uA=q(()=>A(()=>import("./AdminInstagramSettingsPage-3ryGW6yA.js"),__vite__mapDeps([203,1,2,73,4,190,54,82,21])),{warm:!1}),dA=q(()=>A(()=>import("./AdminFeaturedPage-B3hOr9mg.js"),__vite__mapDeps([204,1,2,4,64,73,167,10,205,100,56,101,81,95,96,206,43,207,185,80,42,23,44,45,46,19,20,21,22,53,54,49,47,15,16,17,82,190,208,127])),{warm:!1}),hA=q(()=>A(()=>import("./AdminPricingPage-D4ODU0fI.js"),__vite__mapDeps([209,1,2,126,4,73,167,190,54,210,21])),{warm:!1}),fA=q(()=>A(()=>import("./AdminArtistsPage-B4YqF4i6.js"),__vite__mapDeps([211,1,2,73,95,96,43,4,206,207,190,54,21])),{warm:!1}),mA=q(()=>A(()=>import("./AdminBatchUploadPage-0XfGV393.js"),__vite__mapDeps([212,1,2,73,195,95,96,112,67,68,206,43,167,14,143,110,91,190,54,4,21])),{warm:!1}),pA=q(()=>A(()=>import("./AdminBlogPage-iIggdH3Q.js"),__vite__mapDeps([213,1,2,73,167,86,4,190,54,21])),{warm:!1}),vA=q(()=>A(()=>import("./AdminBlogAuthorsPage-DV80Vo2-.js"),__vite__mapDeps([214,1,2,73,43,167,87,4,215,190,54,21])),{warm:!1}),gA=q(()=>A(()=>import("./AdminEngagementPage-DYDw-pCy.js"),__vite__mapDeps([216,1,2,73,4,190,54,181,205,21])),{warm:!1}),bA=q(()=>A(()=>import("./AdminDuplicatesPage-DfK-oN5g.js"),__vite__mapDeps([217,1,2,73,167,123,91,96,95,4,190,54,97,21])),{warm:!1}),yA=q(()=>A(()=>import("./AdminCardTemplatesPage-DGUZDRiO.js"),__vite__mapDeps([218,1,2,73,110,91,96,81,4,194,123,60,190,54,21])),{warm:!1}),wA=q(()=>A(()=>import("./AdminTrendingPage-BM-vfNBc.js"),__vite__mapDeps([219,1,2,4,22,35,29,6,7,190,54,189,181,21])),{warm:!1}),xA=q(()=>A(()=>import("./AdminColorsPage-BeCkSfT0.js"),__vite__mapDeps([220,1,2,73,194,221,4,190,54,21])),{warm:!1}),_A=q(()=>A(()=>import("./AdminBrandingPage-CxoziDaJ.js"),__vite__mapDeps([222,1,2,73,190,54,4,21])),{warm:!1}),kA=q(()=>A(()=>import("./AdminMenuVisibilityPage-Dnjk37cI.js"),__vite__mapDeps([223,1,2,190,54,4,21])),{warm:!1}),jA=q(()=>A(()=>import("./AdminGalleryScraperPage-BzVQjEB-.js"),__vite__mapDeps([224,1,2,73,195,190,54,112,4,21])),{warm:!1}
77),CA=q(()=>A(()=>import("./AdminVerificationsPage-D3wFBKsF.js"),__vite__mapDeps([225,1,2,4,73,43,190,54,98,21])),{warm:!1}),EA=q(()=>A(()=>import("./AdminPromoCodesPage-Dshy9ULE.js"),__vite__mapDeps([226,1,2,4,167,73,190,54,186,210,21])),{warm:!1}),SA=q(()=>A(()=>import("./AdminErrorLogsPage-C5pr98zB.js"),__vite__mapDeps([227,1,2,73,167,95,96,4,22,208,187,190,54,21])),{warm:!1}),LA=q(()=>A(()=>import("./AdminSubmissionsPage-WCBmbWaM.js"),__vite__mapDeps([228,1,2,4,131,22,73,167,190,54,82,21])),{warm:!1}),OA=q(()=>A(()=>import("./AdminImageMetadataPage-DOjXrC_g.js"),__vite__mapDeps([229,1,2,4,22,73,167,51,190,54,21])),{warm:!1}),$A=q(()=>A(()=>import("./AdminAIFeaturesPage-DIefGRRm.js"),__vite__mapDeps([230,1,2,194,4,190,54,21])),{warm:!1}),AA=q(()=>A(()=>import("./AdminAuthorEnrichmentPage-DAA5MO-E.js"),__vite__mapDeps([231,1,2,4,167,73,198,190,54,21])),{warm:!1}),TA=q(()=>A(()=>import("./AdminAICostsPage-C0Ufjcya.js"),__vite__mapDeps([232,1,2,73,190,54,167,233,4,184,21])),{warm:!1}),PA=q(()=>A(()=>import("./AdminSystemStatusPage-BXyde3tZ.js"),__vite__mapDeps([234,1,2,194,110,91,96,190,54,4,21])),{warm:!1}),RA=q(()=>A(()=>import("./AdminAIQuotaPage-Dor46GL_.js"),__vite__mapDeps([235,1,2,194,190,54,4,21])),{warm:!1}),NA=q(()=>A(()=>import("./AdminRenewalsPage-Lw9eASJ5.js"),__vite__mapDeps([236,1,2,190,54,183,4,21])),{warm:!1}),MA=q(()=>A(()=>import("./AdminScalabilityPage-k8FCHaM0.js"),__vite__mapDeps([237,1,2,4,233,190,54,21])),{warm:!1}),IA=q(()=>A(()=>import("./AdminEdgeHealthPage-DeW8j5Pj.js"),__vite__mapDeps([238,1,2,4,190,54,21])),{warm:!1}),DA=q(()=>A(()=>import("./AdminSecurityLogsPage-DKf8ejEZ.js"),__vite__mapDeps([239,1,2,4,190,54,21])),{warm:!1}),Ym=new kp({defaultOptions:{queries:{staleTime:300*1e3,refetchOnWindowFocus:!1,retry:(t,e)=>{const r=e?.message||"";return r.includes("401")||r.includes("JWT")||r.includes("token")?!1:t<2},retryDelay:t=>Math.min(1e3*2**t,1e4),throwOnError:!1},mutations:{retry:1,retryDelay:1e3}}});um(Ym);function lt({children:t}){const{user:e,isLoading:r}=ke(),n=Me();if(r)return s.jsx(F,{});if(!e){const o=encodeURIComponent(n.pathname+n.search);return s.jsx(Ie,{to:`/auth/login?redirect=${o}`,replace:!0})}return s.jsx(s.Fragment,{children:t})}function ui({children:t}){const{user:e,isLoading:r}=ke(),n=Me();if(r)return s.jsx(F,{});if(e){const o=new URLSearchParams(n.search).get("redirect");return s.jsx(Ie,{to:Pf(o),replace:!0})}return s.jsx(s.Fragment,{children:t})}function me({children:t}){const{user:e,isLoading:r}=ke(),{data:n,isLoading:o,isError:a,refetch:l}=sl(),c=Me();if(r||o)return s.jsx(F,{});if(!e){const u=encodeURIComponent(c.pathname+c.search);return s.jsx(Ie,{to:`/auth/login?redirect=${u}`,replace:!0})}return a?s.jsxs("div",{role:"alert",className:"min-h-[50vh] flex flex-col items-center justify-center gap-4 p-8 text-center",children:[s.jsx("h1",{className:"text-lg font-semibold",children:"Could not verify administrator access"}),s.jsx("p",{className:"text-muted-foreground",children:"Check your connection and try again."}),s.jsx("button",{className:"rounded-full bg-secondary px-6 py-3",onClick:()=>l(),children:"Try again"})]}):n?s.jsx(Iv,{children:s.jsx("div",{className:"admin-lab",children:t})}):s.jsx(Ie,{to:"/dashboard",replace:!0})}function _t({children:t}){const{user:e}=ke(),{data:r,isLoading:n}=jn(),o=Me();if(!e||n||!r)return s.jsx(s.Fragment,{children:t});const l=e.app_metadata?.provider==="google"&&fm(e.created_at)&&!ll(r).isComplete;if(!hm(r)||l){const c=encodeURIComponent(o.pathname+o.search);return s.jsx(Ie,{to:`/auth/complete-profile?redirect=${c}`,replace:!0})}return s.jsx(s.Fragment,{children:t})}function VA(){const t=Me(),e=t.pathname.replace(/^\/lab(?=\/|$)/,"")||"/",r=e==="/home"?"/":e==="/library"?"/dashboard":e.replace(/^\/profile\//,"/u/");return s.jsx(Ie,{to:r+t.search+t.hash,replace:!0,state:t.state})}function HA(){const{slug:t}=bs();return s.jsx(Ie,{to:`/artist/${t??""}`,replace:!0})}function BA(){const{id:t}=bs();return t&&Np(t)?s.jsx(A$,{}):Ip(t)?s.jsx(i.Suspense,{fallback:s.jsx(st,{}),children:s.jsx(Tr,{page:"featured"})}):s.jsx(Ie,{to:"/featured",replace:!0})}function UA(){const t=Me();return i.useEffect(()=>{const e=setTimeout(()=>Bp(t.pathname+t.search,document.title),300);return()=>clearTimeout(e)},[t.pathname,t.search]),null}function qA(){return s.jsx(i.Suspense,{fallback:s.jsx(st,{}),children:s.jsx(R$,{})})}function FA(){const t=Me();i.useEffect(()=>{lm(t.pathname)},[t.pathname]),IE(),DE(),ME(),BE();const{faviconUrl:e,siteName:r,siteDescription:n,ogImageUrl:o}=Ss();i.useEffect(()=>{if(e){const h=document.querySelector("link[rel='icon']");h&&(h.href=e)}if(r&&((m,v)=>{const p=document.querySelector(m);p&&(p.content=v)})('meta[property="og:site_name"]',r),o){const h=(p,w)=>{const y=document.querySelector(p);
77y&&(y.content=w)},m=document.querySelector('meta[property="og:image"]');m&&!m.dataset.pageOverride&&h('meta[property="og:image"]',o);const v=document.querySelector('meta[name="twitter:image"]');v&&!v.dataset.pageOverride&&h('meta[name="twitter:image"]',o)}},[e,r,n,o]);const l=t.state?.backgroundLocation,c=t.pathname.startsWith("/image/")&&!!l,u=c?t.pathname.replace("/image/",""):null,d=t.pathname.startsWith("/p/")&&!!l,f=d?t.pathname.replace("/p/","").split("/")[0]:null;return s.jsxs(S2.Provider,{value:c,children:[s.jsx(UA,{}),s.jsxs(i.Suspense,{fallback:s.jsx(Sh,{}),children:[s.jsxs(_p,{location:l||t,children:[s.jsx(P,{path:"/lab/home-intro",element:s.jsx(ii,{children:s.jsx(i.Suspense,{fallback:s.jsx(st,{}),children:s.jsx(P$,{})})})}),s.jsx(P,{path:"/lab/home-intro-v2",element:s.jsx(Ie,{to:"/",replace:!0})}),s.jsx(P,{path:"/lab/home-original",element:s.jsx(ii,{children:s.jsx(i.Suspense,{fallback:s.jsx(st,{}),children:s.jsx(T$,{})})})}),s.jsx(P,{path:"/lab/*",element:s.jsx(VA,{})}),s.jsx(P,{path:"/image/:id",element:s.jsx(i.Suspense,{fallback:s.jsx(Th,{}),children:s.jsx("div",{className:"viewer-lab",children:s.jsx(n2,{})})})}),s.jsx(P,{path:"/extension-screenshots",element:s.jsx(i.Suspense,{fallback:s.jsx(Sh,{}),children:s.jsx(z$,{})})}),s.jsx(P,{path:"/ext-preview",element:s.jsx(O$,{})}),s.jsxs(P,{element:s.jsx(ii,{}),children:[!1,s.jsx(P,{path:"/",element:s.jsx(qA,{})}),s.jsx(P,{path:"/explore",element:s.jsx(i.Suspense,{fallback:s.jsx(st,{}),children:s.jsx(r2,{})})}),s.jsx(P,{path:"/explore/:categorySlug",element:s.jsx(i.Suspense,{fallback:s.jsx(st,{}),children:s.jsx(r2,{})})}),s.jsx(P,{path:"/search",element:s.jsx(i.Suspense,{fallback:s.jsx(st,{}),children:s.jsx(Tr,{page:"search"})})}),s.jsx(P,{path:"/colors",element:s.jsx(lt,{children:s.jsx(_t,{children:s.jsx(i.Suspense,{fallback:s.jsx(st,{}),children:s.jsx(qt,{page:"colors"})})})})}),s.jsx(P,{path:"/featured",element:s.jsx(i.Suspense,{fallback:s.jsx(st,{}),children:s.jsx(Tr,{page:"featured"})})}),s.jsx(P,{path:"/blog",element:s.jsx(i.Suspense,{fallback:s.jsx(st,{}),children:s.jsx(qt,{page:"blog"})})}),s.jsx(P,{path:"/blog/:slug",element:s.jsx(i.Suspense,{fallback:s.jsx(Ga,{}),children:s.jsx(qt,{page:"article"})})}),s.jsx(P,{path:"/collections",element:s.jsx(i.Suspense,{fallback:s.jsx(st,{}),children:s.jsx(Tr,{page:"collections"})})}),s.jsx(P,{path:"/blog/editor",element:s.jsx(lt,{children:s.jsx(_t,{children:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(o2,{})})})})}),s.jsx(P,{path:"/blog/editor/:id",element:s.jsx(lt,{children:s.jsx(_t,{children:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(o2,{})})})})}),s.jsx(P,{path:"/c/:slug",element:s.jsx(i.Suspense,{fallback:s.jsx(Ga,{}),children:s.jsx(qt,{page:"collection"})})}),s.jsx(P,{path:"/c/:slug/image/:imageId",element:s.jsx(i.Suspense,{fallback:s.jsx(Ga,{}),children:s.jsx(D$,{})})}),s.jsx(P,{path:"/p/:slug",element:s.jsx(i.Suspense,{fallback:s.jsx(Lh,{}),children:s.jsx("div",{className:"viewer-lab",children:s.jsx(s2,{})})})}),s.jsx(P,{path:"/artist/:slug",element:s.jsx(i.Suspense,{fallback:s.jsx(Un,{}),children:s.jsx(qt,{page:"artist"})})}),s.jsx(P,{path:"/author/:slug",element:s.jsx(HA,{})}),s.jsx(P,{path:"/artists",element:s.jsx(Pp,{})}),s.jsx(P,{path:"/featured/creatives",element:s.jsx(i.Suspense,{fallback:s.jsx(st,{}),children:s.jsx(Tr,{page:"artists"})})}),s.jsx(P,{path:"/note/:noteId",element:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(F$,{})})}),s.jsx(P,{path:"/folder/:id",element:s.jsx(lt,{children:s.jsx(_t,{children:s.jsx($$,{})})})}),s.jsx(P,{path:"/featured/:id",element:s.jsx(BA,{})}),s.jsx(P,{path:"/dashboard",element:s.jsx(lt,{children:s.jsx(_t,{children:s.jsx(i.Suspense,{fallback:s.jsx(st,{}),children:s.jsx(Kn,{})})})})}),s.jsx(P,{path:"/profile",element:s.jsx(lt,{children:s.jsx(_t,{children:s.jsx(i.Suspense,{fallback:s.jsx(Un,{}),children:s.jsx(Kn,{})})})})}),s.jsx(P,{path:"/profile/:username",element:s.jsx(i.Suspense,{fallback:s.jsx(Un,{}),children:s.jsx(Kn,{publicView:!0})})}),s.jsx(P,{path:"/settings",element:s.jsx(lt,{children:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(Gn,{page:"settings"})})})}),s.jsx(P,{path:"/messages",element:s.jsx(lt,{children:s.jsx(_t,{children:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(Gn,{page:"messages"})})})})}),s.jsx(P,{path:"/messages/:conversationId",element:s.jsx(lt,{children:s.jsx(_t,{children:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(Gn,{page:"messages"})})})})}),s.jsx(P,{path:"/activity",element:s.jsx(lt,{children:s.jsx(i.Suspense,{fallback:s.jsx(st,{}),children:s.jsx(Tr,{page:"activity"})})})}),s.jsx(P,{path:"/notifications",element:s.jsx(lt,{children:s.jsx(_t,{children:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(Gn,{page:"notifications"})})})})}),s.jsx(P,{path:"/upgrade",element:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(qt,{page:"upgrade"})})}),s.jsx(P,{path:"/submit",element:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(qt,{page:"submit"})})}),s.jsx(P,{path:"/bookmarklet",element:s.jsx(Ie,{to:"/extension",replace:!0})}),s.jsx(P,{path:"/extension/connect",element:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(N$,{})})}),s.jsx(P,{path:"/extension",element:s.jsx(lt,{children:s.jsx(_t,{children:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(qt,{page:"extension"})})})})}),s.jsx(P,{path:"/u/:username",element:s.jsx(i.Suspense,{fallback:s.jsx(Un,{}),children:s.jsx(Kn,{publicView:!0})})}),s.jsx(P,{path:"/auth/login",element:s.jsx(ui,{children:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(M$,{})})})}),s.jsx(P,{path:"/auth/register",element:s.jsx(ui,{children:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(I$,{})})})}),s.jsx(P,{path:"/auth/forgot-password",element:s.jsx(ui,{children:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(H$,{})})})}),s.jsx(P,{path:"/auth/reset-password",element:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(B$,{})})}),s.jsx(P,{path:"/auth/callback",element:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(U$,{})})}),s.jsx(P,{path:"/auth/complete-profile",element:s.jsx(lt,{children:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(q$,{})})})}),s.jsx(P,{path:"/admin",element:s.jsx(me,{children:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(X$,{})})})}),s.jsx(P,{path:"/admin/users",element:s.jsx(me,{children:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(eA,{})})})}),s.jsx(P,{path:"/admin/tags",element:s.jsx(me,{children:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(tA,{})})})}),s.jsx(P,{path:"/admin/uploads",element:s.jsx(me,{children:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(rA,{})})})}),s.jsx(P,{path:"/admin/embeddings",element:s.jsx(me,{children:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(nA,{})})})}),s.jsx(P,{path:"/admin/announcements",element:s.jsx(me,{children:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(sA,{})})})}),s.jsx(P,{path:"/admin/featured",element:s.jsx(me,{children:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(dA,{})})})}),s.jsx(P,{path:"/admin/arena",element:s.jsx(me,{children:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(oA,{})})})}),s.jsx(P,{path:"/admin/pricing",element:s.jsx(me,{children:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(hA,{})})})}),s.jsx(P,{path:"/admin/artists",element:s.jsx(me,{children:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(fA,{})})})}),s.jsx(P,{path:"/admin/batch-upload",element:s.jsx(me,{children:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(mA,{})})})}),s.jsx(P,{path:"/admin/bulk-edit",element:s.jsx(me,{children:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(aA,{})})})}),s.jsx(P,{path:"/admin/feedback",element:s.jsx(me,{children:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(iA,{})})})}),s.jsx(P,{path:"/admin/blog",element:s.jsx(me,{children:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(pA,{})})})}),s.jsx(P,{path:"/admin/blog-authors",element:s.jsx(me,{children:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(vA,{})})})}),s.jsx(P,{path:"/admin/engagement",element:s.jsx(me,{children:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(gA,{})})})}),s.jsx(P,{path:"/admin/highlights",element:s.jsx(me,{children:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(lA,{})})})}),s.jsx(P,{path:"/admin/instagram",element:s.jsx(me,{children:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(uA,{})})})}),s.jsx(P,{path:"/admin/duplicates",element:s.jsx(me,{children:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(bA,{})})})}),s.jsx(P,{path:"/admin/badges",element:s.jsx(me,{children:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(cA,{})})})}),s.jsx(P,{path:"/admin/card-templates",element:s.jsx(me,{children:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(yA,{})})})}),s.jsx(P,{path:"/admin/trending",element:s.jsx(me,{children:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(wA,{})})})}),s.jsx(P,{path:"/admin/colors",element:s.jsx(me,{children:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(xA,{})})})}),s.jsx(P,{path:"/admin/branding",element:s.jsx(me,{children:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(_A,{})})})}),s.jsx(P,{path:"/admin/menu-visibility",element:s.jsx(me,{children:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(kA,{})})})}),s.jsx(P,{path:"/admin/gallery-scrape",element:s.jsx(me,{children:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(jA,{})})})}),s.jsx(P,{path:"/admin/verifications",element:s.jsx(me,{children:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(CA,{})})})}),s.jsx(P,{path:"/admin/promo-codes",element:s.jsx(me,{children:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(EA,{})})})}),s.jsx(P,{path:"/admin/error-logs",element:s.jsx(me,{children:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(SA,{})})})}),s.jsx(P,{path:"/admin/submissions",element:s.jsx(me,{children:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(LA,{})})})}),s.jsx(P,{path:"/admin/image-metadata",element:s.jsx(me,{children:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(OA,{})})})}),s.jsx(P,{path:"/admin/ai-features",element:s.jsx(me,{children:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx($A,{})})})}),s.jsx(P,{path:"/admin/author-enrichment",element:s.jsx(me,{children:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(AA,{})})})}),s.jsx(P,{path:"/admin/ai-costs",element:s.jsx(me,{children:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(TA,{})})})}),s.jsx(P,{path:"/admin/system-status",element:s.jsx(me,{children:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(PA,{})})})}),s.jsx(P,{path:"/admin/ai-quota",element:s.jsx(me,{children:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(RA,{})})})}),s.jsx(P,{path:"/admin/renewals",element:s.jsx(me,{children:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(NA,{})})})}),s.jsx(P,{path:"/admin/scalability",element:s.jsx(me,{children:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(MA,{})})})}),s.jsx(P,{path:"/admin/edge-health",element:s.jsx(me,{children:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(IA,{})})})}),s.jsx(P,{path:"/admin/security-logs",element:s.jsx(me,{children:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(DA,{})})})}),s.jsx(P,{path:"/legal/terms",element:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(W$,{})})}),s.jsx(P,{path:"/legal/privacy",element:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(Z$,{})})}),s.jsx(P,{path:"/legal/community",element:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(K$,{})})}),s.jsx(P,{path:"/legal/copyright",element:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(G$,{})})}),s.jsx(P,{path:"/legal/trademark",element:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(Q$,{})})}),s.jsx(P,{path:"/legal/enforcement",element:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(Y$,{})})}),s.jsx(P,{path:"/legal/non-users",element:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(J$,{})})}),s.jsx(P,{path:"/terms",element:s.jsx(Ie,{to:"/legal/terms",replace:!0})}),s.jsx(P,{path:"/privacy",element:s.jsx(Ie,{to:"/legal/privacy",replace:!0})}),s.jsx(P,{path:"/community",element:s.jsx(Ie,{to:"/legal/community",replace:!0})}),s.jsx(P,{path:"*",element:s.jsx(i.Suspense,{fallback:s.jsx(F,{}),children:s.jsx(V$,{})})})]})]}),c&&u&&s.jsx("div",{id:"image-viewer-scroll",className:"viewer-lab viewer-overlay-enter fixed inset-0 z-50 bg-background overflow-y-auto overscroll-contain",children:s.jsx(i.Suspense,{fallback:s.jsx(Th,{}),children:s.jsx(n2,{isModal:!0,imageId:u})})}),d&&f&&s.jsx("div",{className:"viewer-lab project-overlay-enter fixed inset-0 z-[100] overscroll-contain",children:s.jsx(i.Suspense,{fallback:s.jsx(Lh,{}),children:s.jsx(s2,{slug:f,isModal:!0})})})]})]})}function zA({children:t}){const e=Me();return s.jsx(al,{resetKey:e.pathname,children:t})}function WA(){const{user:t}=ke();return i.useEffect(()=>{const e=WE(3e3,!!t);return YE(4e3),()=>e()},[t]),null}function ZA(){return i.useEffect(()=>{"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual")},[]),s.jsx(al,{children:s.jsx(If,{children:s.jsx(S5,{children:s.jsx(jp,{client:Ym,children:s.jsxs(Nf,{children:[s.jsx(RE,{children:s.jsx(v4,{children:s.jsx(K5,{
77children:s.jsxs(xp,{children:[s.jsx(L5,{}),s.jsx(WA,{}),s.jsx(zA,{children:s.jsx(FA,{})}),s.jsx(m4,{}),s.jsx(yS,{})]})})})}),s.jsx(Sg,{})]})})})})})}const KA='-apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif';function GA(t=KA){try{const e=document.createElement("canvas").getContext("2d");if(!e)return 0;e.font=`500 200px ${t}`;const r=e.measureText("Hxp"),n=e.measureText("H").actualBoundingBoxAscent,o=r.fontBoundingBoxAscent,a=r.fontBoundingBoxDescent;if(!o||!n)return 0;const l=(o-a-n)/2/200;return l>0&&l<.12?l:0}catch{return 0}}function QA(){const t=GA();document.documentElement.style.setProperty("--optical-text-shift",`${t.toFixed(4)}em`)}dm();QA();document.querySelectorAll("[data-prerender]").forEach(t=>t.remove());const a2=document.getElementById("root");if(a2){const t=$p.createRoot(a2);Promise.race([Km(),new Promise(e=>setTimeout(e,600))]).then(()=>t.render(s.jsx(ZA,{})))}else console.error("[MAIN] Root container not found!");export{Pf as $,fT as A,bE as B,kg as C,LP as D,Jf as E,$T as F,cf as G,j$ as H,ff as I,hf as J,dl as K,gP as L,Ls as M,dP as N,km as O,TT as P,Os as Q,Bi as R,dT as S,tP as T,Cm as U,yE as V,YL as W,kn as X,bn as Y,Gt as Z,A as _,ke as a,Tf as a$,aP as a0,nl as a1,Th as a2,yP as a3,Np as a4,BP as a5,jE as a6,Sh as a7,uR as a8,RO as a9,lP as aA,cP as aB,jP as aC,re as aD,sO as aE,Lm as aF,ls as aG,oO as aH,C2 as aI,KL as aJ,GL as aK,xm as aL,sP as aM,KP as aN,nR as aO,Es as aP,as as aQ,De as aR,iL as aS,Zh as aT,WL as aU,Wh as aV,Zn as aW,PR as aX,rL as aY,AR as aZ,nL as a_,NO as aa,sT as ab,pR as ac,ul as ad,ol as ae,Xn as af,NP as ag,Ze as ah,NT as ai,cn as aj,b5 as ak,As as al,EO as am,Lh as an,F as ao,Yf as ap,wh as aq,UP as ar,qP as as,FP as at,zP as au,IP as av,AP as aw,TP as ax,WP as ay,oP as az,a$ as b,iR as b$,xP as b0,vE as b1,yn as b2,IT as b3,DT as b4,wm as b5,gO as b6,bO as b7,HP as b8,Mm as b9,RP as bA,SP as bB,vP as bC,YP as bD,kh as bE,wP as bF,EP as bG,DP as bH,k4 as bI,VT as bJ,aT as bK,gR as bL,Sd as bM,pO as bN,EE as bO,uT as bP,PT as bQ,yT as bR,jg as bS,pT as bT,mP as bU,xe as bV,OO as bW,gT as bX,vT as bY,lT as bZ,Up as b_,We as ba,kP as bb,ds as bc,LE as bd,HT as be,BT as bf,Xf as bg,UT as bh,qT as bi,FT as bj,zT as bk,TE as bl,uP as bm,Qf as bn,$i as bo,rP as bp,wE as bq,_P as br,Zt as bs,OE as bt,Li as bu,MT as bv,sR as bw,em as bx,GP as by,eR as bz,ci as c,Jr as c$,aR as c0,rm as c1,gS as c2,dR as c3,nm as c4,ZP as c5,Ja as c6,ks as c7,d5 as c8,fR as c9,Rm as cA,Nm as cB,fl as cC,LT as cD,ST as cE,ET as cF,iT as cG,_T as cH,CT as cI,jT as cJ,kT as cK,xT as cL,Dp as cM,mR as cN,kR as cO,jR as cP,CP as cQ,QP as cR,AE as cS,jO as cT,Ll as cU,nT as cV,eL as cW,$R as cX,OR as cY,oL as cZ,oi as c_,gE as ca,$s as cb,fP as cc,oR as cd,u$ as ce,OP as cf,VP as cg,CE as ch,Oi as ci,OT as cj,us as ck,BR as cl,_O as cm,xO as cn,cT as co,kE as cp,sl as cq,c5 as cr,rR as cs,vO as ct,IR as cu,jm as cv,iP as cw,Iv as cx,vR as cy,Pm as cz,AT as d,YR as d$,Xr as d0,TL as d1,sm as d2,ZT as d3,KT as d4,GT as d5,QT as d6,WT as d7,TR as d8,YT as d9,sN as dA,rN as dB,nN as dC,i$ as dD,oN as dE,iN as dF,lN as dG,E2 as dH,uN as dI,oT as dJ,LR as dK,hN as dL,Ss as dM,lR as dN,_h as dO,xh as dP,hl as dQ,HR as dR,VR as dS,K2 as dT,l5 as dU,YO as dV,UR as dW,XO as dX,qR as dY,lr as dZ,ir as d_,eP as da,JT as db,XT as dc,MP as dd,$E as de,xE as df,bh as dg,CR as dh,yR as di,xR as dj,_R as dk,SR as dl,wR as dm,ER as dn,FR as dp,WR as dq,zR as dr,QR as ds,ZR as dt,KR as du,GR as dv,JR as dw,XR as dx,eN as dy,tN as dz,mT as e,Ip as e0,rT as e1,tT as e2,Rp as e3,hR as e4,cN as e5,mN as e6,fN as e7,dN as e8,aN as e9,XP as eA,nP as eB,Ni as eC,ZS as eD,G
77S as eE,RT as eF,bS as eG,k5 as ea,_E as eb,Ga as ec,PP as ed,yh as ee,js as ef,bR as eg,cR as eh,ll as ei,tR as ej,Om as ek,wS as el,n$ as em,s$ as en,h5 as eo,lL as ep,RR as eq,NR as er,MR as es,DR as et,JP as eu,bT as ev,wT as ew,SE as ex,SO as ey,pP as ez,hT as f,jn as g,g4 as h,j5 as i,XS as j,tm as k,q as l,$P as m,Si as n,ml as o,hP as p,bP as q,I as r,k as s,O as t,_n as u,Nv as v,af as w,lf as x,uf as y,df 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.