OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.
fix: favicons come from icon services, brand logos ship with the dashboard (#626)
Carl-Gerhard Lindesvärdbfb256d1da0b
diff --git a/apps/start/package.json b/apps/start/package.jsonindex fde6ae85a..a78493f89 100644--- a/apps/start/package.json+++ b/apps/start/package.json@@ -35,6 +35,7 @@"@nivo/sankey": "0.99.0","@number-flow/react": "0.5.10","@openpanel/core": "workspace:^",+ "@openpanel/logos": "workspace:*","@openpanel/payments": "workspace:*","@openpanel/sdk-info": "workspace:^","@openpanel/shared": "workspace:*",diff --git a/apps/start/src/components/report-chart/common/serie-icon.domains.ts b/apps/start/src/components/report-chart/common/serie-icon.domains.tsnew file mode 100644index 000000000..167b4505d--- /dev/null+++ b/apps/start/src/components/report-chart/common/serie-icon.domains.ts@@ -0,0 +1,123 @@+// Serie names (referrers, mail clients, ad networks) whose icon is the site's+// own favicon, served through the api's favicon proxy. Browser, OS and device+// logos live in @openpanel/logos instead.++// biome-ignore format: one entry per line reads better+const domains: Readonly<Record<string, string>> = {+ 'openpanel.dev': 'https://openpanel.dev',+ 'vstat.info': 'https://vstat.info',+ 'yahoo!': 'https://yahoo.com',+ kakaotalk: 'https://www.kakaocorp.com/',+ bing: 'https://bing.com',+ electron: 'https://www.electronjs.org',+ whale: 'https://whale.naver.com',+ wechat: 'https://wechat.com',+ webkit: 'https://webkit.org',+ duckduckgo: 'https://duckduckgo.com',+ ecosia: 'https://ecosia.com',+ facebook: 'https://facebook.com',+ fairphone: 'https://www.fairphone.com',+ github: 'https://github.com',+ gmail: 'https://mail.google.com',+ google: 'https://google.com',+ gsa: 'https://google.com', // Google Search App+ instagram: 'https://instagram.com',+ linkedin: 'https://linkedin.com',+ weibo: 'https://weibo.com',+ microlaunch: 'https://microlaunch.net',+ nokia: 'https://www.nokia.com',+ openalternative: 'https://openalternative.co',+ pinterest: 'https://www.pinterest.se',+ producthunt: 'https://www.producthunt.com',+ reddit: 'https://reddit.com',+ slack: 'https://slack.com',+ snapchat: 'https://snapchat.com',+ taaft: 'https://theresanaiforthat.com',+ twitter: 'https://twitter.com',+ yandex: 'https://yandex.com',+ youtube: 'https://youtube.com',+ ossgallery: 'https://oss.gallery',+ convertkit: 'https://convertkit.com',+ whatsapp: 'https://www.whatsapp.com/',+ telegram: 'https://telegram.org/',+ tiktok: 'https://tiktok.com',+ sharpspring: 'https://sharpspring.com',+ 'hacker news': 'https://news.ycombinator.com',+ betalist: 'https://betalist.com',+ qwant: 'https://www.qwant.com',+ flipboard: 'https://flipboard.com/',+ trustpilot: 'https://trustpilot.com',+ 'outlook.com': 'https://login.live.com/',+ notion: 'https://notion.so',+ brave: 'https://brave.com',+ perplexity: 'https://perplexity.ai',+ vercel: 'https://vercel.com',+ discord: 'https://discord.com',+ openstatus: 'https://openstatus.dev',+ baidu: 'https://baidu.com',+ medium: 'https://medium.com',+ 'google news': 'https://news.google.com',+ 'google ads': 'https://ads.google.com',+ 'google shopping': 'https://www.google.com/shopping',+ gmb: 'https://business.google.com',+ 'google business profile': 'https://business.google.com',+ yahoo: 'https://www.yahoo.com',+ 'yahoo! mail': 'https://mail.yahoo.com',+ 'yahoo! images': 'https://images.search.yahoo.com',+ startpagina: 'https://www.startpagina.nl',+ ask: 'https://www.ask.com',+ lycos: 'https://www.lycos.com',+ infospace: 'https://www.infospace.com',+ shenma: 'https://m.sm.cn',+ '360.cn': 'https://www.360.cn',+ naver: 'https://www.naver.com',+ daum: 'https://www.daum.net',+ seznam: 'https://www.seznam.cz',+ 'seznam mail': 'https://email.seznam.cz',+ 't-online': 'https://www.t-online.de',+ 'web.de': 'https://web.de',+ gmx: 'https://www.gmx.net',+ 'mail.ru': 'https://mail.ru',+ 'mail.com': 'https://www.mail.com',+ 'orange webmail': 'https://mail.orange.fr',+ aol: 'https://www.aol.com',+ 'aol mail': 'https://mail.aol.com',+ fb: 'https://www.facebook.com',+ 'facebook ads': 'https://www.facebook.com/business/ads',+ meta: 'https://about.facebook.com',+ meta_ads: 'https://www.facebook.com/business/ads',+ ig: 'https://www.instagram.com',+ threads: 'https://www.threads.net',+ x: 'https://x.com',+ pinterst: 'https://www.pinterest.com',+ twitch: 'https://www.twitch.tv',+ quora: 'https://www.quora.com',+ bluesky: 'https://bsky.app',+ vkontakte: 'https://vk.com',+ substack: 'https://substack.com',+ taboola: 'https://www.taboola.com',+ outbrain: 'https://www.outbrain.com',+ criteo: 'https://www.criteo.com',+ doubleclick: 'https://doubleclick.net',+ rakuten: 'https://www.rakuten.com',+ paypal: 'https://www.paypal.com',+ ebay: 'https://www.ebay.com',+ gitlab: 'https://gitlab.com',+ 'stack overflow': 'https://stackoverflow.com',+ figma: 'https://www.figma.com',+ dropbox: 'https://www.dropbox.com',+ openai: 'https://openai.com',+ 'chatgpt.com': 'https://chatgpt.com',+ 'copilot.com': 'https://www.copilot.com',+ mailchimp: 'https://mailchimp.com',+ activecampaign: 'https://www.activecampaign.com',+ 'customer.io': 'https://customer.io',+ iterable: 'https://iterable.com',+ moengage: 'https://www.moengage.com',+ klaviyo: 'https://www.klaviyo.com',+ brevo: 'https://www.brevo.com',+ tumblr: 'https://www.tumblr.com',+ dailymotion: 'https://www.dailymotion.com',+};++export default domains;diff --git a/apps/start/src/components/report-chart/common/serie-icon.tsx b/apps/start/src/components/report-chart/common/serie-icon.tsxindex dca6f95cc..50ecf70ce 100644--- a/apps/start/src/components/report-chart/common/serie-icon.tsx+++ b/apps/start/src/components/report-chart/common/serie-icon.tsx@@ -1,4 +1,5 @@import { NOT_SET_VALUE } from '@openpanel/core/modules/report/report.constants';+import { getLogo, type Logo } from '@openpanel/logos';import type { LucideProps } from 'lucide-react';import {ActivityIcon,@@ -18,7 +19,8 @@ import {TvIcon,} from 'lucide-react';import { useState } from 'react';-import iconsWithUrls from './serie-icon.urls';+import faviconDomains from './serie-icon.domains';+import { useTheme } from '@/components/theme-provider';import { useAppContext } from '@/hooks/use-app-context';// ============================================================================@@ -36,11 +38,12 @@ type SerieIconProps = Omit<LucideProps, 'name' | 'fill'> & {fill?: boolean;};-type IconType = 'lucide' | 'image' | 'flag';-+// `logo` is a static file shipped with the dashboard; `favicon` goes through+// the api's proxy and needs the api origin prefixed at render time.type ResolvedIcon =| { type: 'lucide'; Icon: React.ComponentType<LucideProps> }- | { type: 'image'; url: string }+ | { type: 'logo'; logo: Logo }+ | { type: 'favicon'; path: string }| { type: 'flag'; code: string }| null;@@ -252,7 +255,7 @@ const FLAG_CODES = new Set(['ci',]);-function getProxyImageUrl(url: string): string {+function faviconPath(url: string): string {return `/misc/favicon?url=${encodeURIComponent(url)}`;}@@ -264,9 +267,14 @@ function resolveIcon(name: string): ResolvedIcon {return { type: 'lucide', Icon: lucideIcon };}- const imageUrl = iconsWithUrls[key as keyof typeof iconsWithUrls];- if (imageUrl) {- return { type: 'image', url: getProxyImageUrl(imageUrl) };+ const logo = getLogo(key);+ if (logo) {+ return { type: 'logo', logo };+ }++ const domainUrl = faviconDomains[key];+ if (domainUrl) {+ return { type: 'favicon', path: faviconPath(domainUrl) };}if (FLAG_CODES.has(key)) {@@ -274,11 +282,11 @@ function resolveIcon(name: string): ResolvedIcon {}if (name.includes('http')) {- return { type: 'image', url: getProxyImageUrl(name) };+ return { type: 'favicon', path: faviconPath(name) };}if (name.match(/^.+\.\w{2,3}$/)) {- return { type: 'image', url: getProxyImageUrl(`https://${name}`) };+ return { type: 'favicon', path: faviconPath(`https://${name}`) };}return null;@@ -304,16 +312,24 @@ function IconWrapper({);}-function ImageIcon({ url, fill }: { url: string; fill?: boolean }) {- const context = useAppContext();+function LogoIcon({ logo, fill }: { logo: Logo; fill?: boolean }) {+ const { theme } = useTheme();+ const src = theme === 'dark' ? (logo.dark ?? logo.light) : logo.light;+ return <ImageIcon fill={fill} src={src} />;+}++function FaviconIcon({ path, fill }: { path: string; fill?: boolean }) {+ const { apiUrl } = useAppContext();+ return <ImageIcon fill={fill} src={`${apiUrl?.replace(/\/$/, '')}${path}`} />;+}++function ImageIcon({ src, fill }: { src: string; fill?: boolean }) {const [hasError, setHasError] = useState(false);if (hasError) {return null;}- const fullUrl = context.apiUrl?.replace(/\/$/, '') + url;-return (<IconWrapper fill={fill}><img@@ -326,7 +342,7 @@ function ImageIcon({ url, fill }: { url: string; fill?: boolean }) {decoding="async"loading="lazy"onError={() => setHasError(true)}- src={fullUrl}+ src={src}/></IconWrapper>);@@ -379,8 +395,10 @@ export function SerieIcon({ name: names, fill, ...props }: SerieIconProps) {switch (resolved.type) {case 'lucide':return <LucideIconWrapper fill={fill} Icon={resolved.Icon} {...props} />;- case 'image':- return <ImageIcon fill={fill} url={resolved.url} />;+ case 'logo':+ return <LogoIcon fill={fill} logo={resolved.logo} />;+ case 'favicon':+ return <FaviconIcon fill={fill} path={resolved.path} />;case 'flag':return <FlagIcon code={resolved.code} fill={fill} />;}diff --git a/apps/start/src/components/report-chart/common/serie-icon.urls.ts b/apps/start/src/components/report-chart/common/serie-icon.urls.tsdeleted file mode 100644index 3542b033a..000000000--- a/apps/start/src/components/report-chart/common/serie-icon.urls.ts+++ /dev/null@@ -1,159 +0,0 @@-// biome-ignore format: annoying--const data = {- amazon: 'https://upload.wikimedia.org/wikipedia/commons/4/4a/Amazon_icon.svg',- 'chromium os': 'https://upload.wikimedia.org/wikipedia/commons/2/28/Chromium_Logo.svg',- 'mac os': 'https://upload.wikimedia.org/wikipedia/commons/f/fa/Apple_logo_black.svg',- 'macos': 'https://upload.wikimedia.org/wikipedia/commons/f/fa/Apple_logo_black.svg',- apple: 'https://sladesportfolio.wordpress.com/wp-content/uploads/2015/08/apple_logo_black-svg.png',- huawei: 'https://upload.wikimedia.org/wikipedia/en/0/04/Huawei_Standard_logo.svg',- xiaomi: 'https://upload.wikimedia.org/wikipedia/commons/2/29/Xiaomi_logo.svg',- sony: 'https://serialtrainer7.com/wp-content/uploads/2021/07/sony-logo-300px-square.png',- lg: 'https://upload.wikimedia.org/wikipedia/commons/2/20/LG_symbol.svg',- samsung: 'https://seekvectors.com/storage/images/Samsung-Logo-22.svg',- oppo: 'https://indoleads.nyc3.cdn.digitaloceanspaces.com/uploads/offers/logos/8695_95411e367b832.png',- motorola: 'https://upload.wikimedia.org/wikipedia/commons/8/8f/Motorola_M_symbol_blue.svg',- oneplus: 'https://pbs.twimg.com/profile_images/1709165009148809216/ebHb4xhF_400x400.png',- asus: 'https://cdn-icons-png.freepik.com/512/5969/5969050.png',- fairphone: 'https://cdn.dribbble.com/users/433772/screenshots/2109827/fairphone_dribbble.jpg',- nokia: 'https://www.gizchina.com/wp-content/uploads/images/2023/02/Nokia-logo.webp',- 'mobile safari': 'https://upload.wikimedia.org/wikipedia/commons/5/52/Safari_browser_logo.svg',- 'openpanel.dev': 'https://openpanel.dev',- 'samsung internet': 'https://upload.wikimedia.org/wikipedia/commons/thumb/e/e9/Samsung_Internet_logo.svg/1024px-Samsung_Internet_logo.svg.png',- 'vstat.info': 'https://vstat.info',- 'yahoo!': 'https://yahoo.com',- android: 'https://upload.wikimedia.org/wikipedia/commons/thumb/d/d7/Android_robot.svg/1745px-Android_robot.svg.png',- 'android browser': 'https://image.similarpng.com/very-thumbnail/2020/08/Android-icon-on-transparent--background-PNG.png',- silk: 'https://m.media-amazon.com/images/I/51VCjQCvF0L.png',- kakaotalk: 'https://www.kakaocorp.com/',- bing: 'https://bing.com',- electron: 'https://www.electronjs.org',- whale: 'https://whale.naver.com',- wechat: 'https://wechat.com',- chrome: 'https://upload.wikimedia.org/wikipedia/commons/e/e1/Google_Chrome_icon_%28February_2022%29.svg',- 'mobile chrome': 'https://upload.wikimedia.org/wikipedia/commons/e/e1/Google_Chrome_icon_%28February_2022%29.svg',- 'chrome webview': 'https://upload.wikimedia.org/wikipedia/commons/e/e1/Google_Chrome_icon_%28February_2022%29.svg',- 'chrome headless': 'https://upload.wikimedia.org/wikipedia/commons/e/e1/Google_Chrome_icon_%28February_2022%29.svg',- chromecast: 'https://upload.wikimedia.org/wikipedia/commons/archive/2/26/20161130022732%21Chromecast_cast_button_icon.svg',- webkit: 'https://webkit.org',- duckduckgo: 'https://duckduckgo.com',- ecosia: 'https://ecosia.com',- edge: 'https://upload.wikimedia.org/wikipedia/commons/7/7e/Microsoft_Edge_logo_%282019%29.png',- facebook: 'https://facebook.com',- firefox: 'https://upload.wikimedia.org/wikipedia/commons/thumb/a/a0/Firefox_logo%2C_2019.svg/1920px-Firefox_logo%2C_2019.svg.png',- 'mobile firefox': 'https://upload.wikimedia.org/wikipedia/commons/thumb/a/a0/Firefox_logo%2C_2019.svg/1920px-Firefox_logo%2C_2019.svg.png',- github: 'https://github.com',- gmail: 'https://mail.google.com',- google: 'https://google.com',- gsa: 'https://google.com', // Google Search App- instagram: 'https://instagram.com',- ios: 'https://upload.wikimedia.org/wikipedia/commons/c/ca/IOS_logo.svg',- linkedin: 'https://linkedin.com',- linux: 'https://upload.wikimedia.org/wikipedia/commons/3/35/Tux.svg',- ubuntu: 'https://upload.wikimedia.org/wikipedia/commons/a/ab/Logo-ubuntu_cof-orange-hex.svg',- weibo: 'https://en.wikipedia.org/wiki/Weibo#/media/File:Sina_Weibo.svg',- microlaunch: 'https://microlaunch.net',- openalternative: 'https://openalternative.co',- opera: 'https://upload.wikimedia.org/wikipedia/commons/thumb/4/49/Opera_2015_icon.svg/1920px-Opera_2015_icon.svg.png',- 'opera touch': 'https://upload.wikimedia.org/wikipedia/commons/thumb/4/49/Opera_2015_icon.svg/1920px-Opera_2015_icon.svg.png',- 'miui browser': 'https://www.apkmirror.com/wp-content/themes/APKMirror/ap_resize/ap_resize.php?src=https%3A%2F%2Fdownloadr2.apkmirror.com%2Fwp-content%2Fuploads%2F2020%2F07%2F79%2F5f06abb0c532a.png',- 'huawei browser': 'https://www.apkmirror.com/wp-content/themes/APKMirror/ap_resize/ap_resize.php?src=https%3A%2F%2Fdownloadr2.apkmirror.com%2Fwp-content%2Fuploads%2F2021%2F09%2F49%2F613e45827fe31.png',- 'vivo browser': 'https://play-lh.googleusercontent.com/SYGXsBZOFsI4p72IoWtJiuAdp2Acv0WB4e6R1jxNcQdPcOdP1sXk_Cfcr1KBt2lzZQ=w480-h960-rw',- 'qqbrowser': 'https://cdn6.aptoide.com/imgs/6/1/4/614713aba4f9ca93a4e20257014d0713_icon.png',- 'quark': 'https://play-lh.googleusercontent.com/o__Uwu3TEsDVJ92m6zacy2GXotP2faFAlLQJOgOxYFsgoDkDYwODQ4STHY1fe0n_imlpiiUiE-QgRQaWdyi99w=w240-h480-rw',- pinterest: 'https://www.pinterest.se',- producthunt: 'https://www.producthunt.com',- reddit: 'https://reddit.com',- safari: 'https://upload.wikimedia.org/wikipedia/commons/5/52/Safari_browser_logo.svg',- slack: 'https://slack.com',- snapchat: 'https://snapchat.com',- taaft: 'https://theresanaiforthat.com',- twitter: 'https://twitter.com',- windows: 'https://upload.wikimedia.org/wikipedia/commons/c/c7/Windows_logo_-_2012.png',- yandex: 'https://yandex.com',- youtube: 'https://youtube.com',- ossgallery: 'https://oss.gallery',- convertkit: 'https://convertkit.com',- whatsapp: 'https://www.whatsapp.com/',- telegram: 'https://telegram.org/',- tiktok: 'https://tiktok.com',- sharpspring: 'https://sharpspring.com',- 'hacker news': 'https://news.ycombinator.com',- betalist: 'https://betalist.com',- qwant: 'https://www.qwant.com',- flipboard: 'https://flipboard.com/',- trustpilot: 'https://trustpilot.com',- 'outlook.com': 'https://login.live.com/',- notion: 'https://notion.so',- brave: 'https://brave.com',- perplexity: 'https://perplexity.ai',- vercel: 'https://vercel.com',- discord: 'https://discord.com',- openstatus: 'https://openstatus.dev',- baidu: 'https://baidu.com',- medium: 'https://medium.com',- "google news": "https://news.google.com",- "google ads": "https://ads.google.com",- "google shopping": "https://www.google.com/shopping",- "gmb": "https://business.google.com",- "google business profile": "https://business.google.com",- "yahoo": "https://www.yahoo.com",- "yahoo! mail": "https://mail.yahoo.com",- "yahoo! images": "https://images.search.yahoo.com",- "startpagina": "https://www.startpagina.nl",- "ask": "https://www.ask.com",- "lycos": "https://www.lycos.com",- "infospace": "https://www.infospace.com",- "shenma": "https://m.sm.cn",- "360.cn": "https://www.360.cn",- "naver": "https://www.naver.com",- "daum": "https://www.daum.net",- "seznam": "https://www.seznam.cz",- "seznam mail": "https://email.seznam.cz",- "t-online": "https://www.t-online.de",- "web.de": "https://web.de",- "gmx": "https://www.gmx.net",- "mail.ru": "https://mail.ru",- "mail.com": "https://www.mail.com",- "orange webmail": "https://mail.orange.fr",- "aol": "https://www.aol.com",- "aol mail": "https://mail.aol.com",- "fb": "https://www.facebook.com",- "facebook ads": "https://www.facebook.com/business/ads",- "meta": "https://about.facebook.com",- "meta_ads": "https://www.facebook.com/business/ads",- "ig": "https://www.instagram.com",- "threads": "https://www.threads.net",- "x": "https://x.com",- "pinterst": "https://www.pinterest.com",- "twitch": "https://www.twitch.tv",- "quora": "https://www.quora.com",- "bluesky": "https://bsky.app",- "vkontakte": "https://vk.com",- "substack": "https://substack.com",- "taboola": "https://www.taboola.com",- "outbrain": "https://www.outbrain.com",- "criteo": "https://www.criteo.com",- "doubleclick": "https://doubleclick.net",- "rakuten": "https://www.rakuten.com",- "paypal": "https://www.paypal.com",- "ebay": "https://www.ebay.com",- "gitlab": "https://gitlab.com",- "stack overflow": "https://stackoverflow.com",- "figma": "https://www.figma.com",- "dropbox": "https://www.dropbox.com",- "openai": "https://openai.com",- "chatgpt.com": "https://chatgpt.com",- "copilot.com": "https://www.copilot.com",- "mailchimp": "https://mailchimp.com",- "activecampaign": "https://www.activecampaign.com",- "customer.io": "https://customer.io",- "iterable": "https://iterable.com",- "moengage": "https://www.moengage.com",- "klaviyo": "https://www.klaviyo.com",- "brevo": "https://www.brevo.com",- "tumblr": "https://www.tumblr.com",- "dailymotion": "https://www.dailymotion.com",-};--export default data;diff --git a/bun.lock b/bun.lockindex 1b3f06d79..331825626 100644--- a/bun.lock+++ b/bun.lock@@ -111,6 +111,7 @@"@nivo/sankey": "0.99.0","@number-flow/react": "0.5.10","@openpanel/core": "workspace:^",+ "@openpanel/logos": "workspace:*","@openpanel/payments": "workspace:*","@openpanel/sdk-info": "workspace:^","@openpanel/shared": "workspace:*",@@ -350,11 +351,9 @@"prom-client": "15.1.3","qrcode": "1.5.4","ramda": "0.29.1",- "sharp": "0.33.5","short-unique-id": "5.0.3","superjson": "2.2.2","unzipper": "0.12.5",- "url-metadata": "5.4.1","uuid": "9.0.1","zod": "catalog:",},@@ -417,6 +416,16 @@"typescript": "catalog:",},},+ "packages/logos": {+ "name": "@openpanel/logos",+ "version": "0.0.1",+ "devDependencies": {+ "@openpanel/tsconfig": "workspace:*",+ "@types/node": "catalog:",+ "sharp": "0.35.5",+ "typescript": "catalog:",+ },+ },"packages/payments": {"name": "@openpanel/payments","version": "0.0.1",@@ -1391,53 +1400,57 @@"@img/colour": ["@img/[email protected]", "", {}, "sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ=="],- "@img/sharp-darwin-arm64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-darwin-arm64": "1.0.4" }, "os": "darwin", "cpu": "arm64" }, "sha512-UT4p+iz/2H4twwAoLCqfA9UH5pI6DggwKEGuaPy7nCVQ8ZsiY5PIcrRvD1DzuY3qYL07NtIQcWnBSY/heikIFQ=="],+ "@img/sharp-darwin-arm64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-darwin-arm64": "1.3.4" }, "os": "darwin", "cpu": "arm64" }, "sha512-QRUlFQ0WxvdWyqqG/WtI3iupfD5rBzmCHXSdPsY91sAtVtTo7Q4cb6zOccZ3gqEqkr0f1As1ehLqmEpDsRf+lg=="],++ "@img/sharp-darwin-x64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-darwin-x64": "1.3.4" }, "os": "darwin", "cpu": "x64" }, "sha512-+BR255RhDlpygUpOc/Jdt1nT6DQ3XG/ERo5wbcdOf5Q320dKtPCKPLR1LJs9VGXRaMa8l1uUa0tkCNOXiAxZUw=="],- "@img/sharp-darwin-x64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-darwin-x64": "1.0.4" }, "os": "darwin", "cpu": "x64" }, "sha512-fyHac4jIc1ANYGRDxtiqelIbdWkIuQaI84Mv45KvGRRxSAa7o7d1ZKAOBaYbnepLC1WqxfpimdeWfvqqSGwR2Q=="],+ "@img/sharp-freebsd-wasm32": ["@img/[email protected]", "", { "dependencies": { "@img/sharp-wasm32": "0.35.5" }, "os": "freebsd" }, "sha512-Y/z91nEZ4uIBX5X3nfTovjU9lHNKFYbL2lpHCLVNmXQK03VIZvXBBt0KxbPGp2SdGSF+2mQU4e+hQaWOt86iAw=="],- "@img/sharp-libvips-darwin-arm64": ["@img/[email protected]", "", { "os": "darwin", "cpu": "arm64" }, "sha512-XblONe153h0O2zuFfTAbQYAX2JhYmDHeWikp1LM9Hul9gVPjFY427k6dFEcOL72O01QxQsWi761svJ/ev9xEDg=="],+ "@img/sharp-libvips-darwin-arm64": ["@img/[email protected]", "", { "os": "darwin", "cpu": "arm64" }, "sha512-5R89nBYiRdUlSWJxPhO+GVtaXzXSxKnRu/xqMn3KTA3L9EB9Oy/P+Nn2f2vlhPuUdy/Zusb2DarbyTpGCfEDuw=="],- "@img/sharp-libvips-darwin-x64": ["@img/[email protected]", "", { "os": "darwin", "cpu": "x64" }, "sha512-xnGR8YuZYfJGmWPvmlunFaWJsb9T/AO2ykoP3Fz/0X5XV2aoYBPkX6xqCQvUTKKiLddarLaxpzNe+b1hjeWHAQ=="],+ "@img/sharp-libvips-darwin-x64": ["@img/[email protected]", "", { "os": "darwin", "cpu": "x64" }, "sha512-iR2OKH80yi0U+dUplyh3/xdpFvps6YkCwsXenIJxqxR1v9o+xtKTGbS9H7cps+2Vxjc8B1j96p75NmTGjIhtpQ=="],- "@img/sharp-libvips-linux-arm": ["@img/[email protected]", "", { "os": "linux", "cpu": "arm" }, "sha512-gvcC4ACAOPRNATg/ov8/MnbxFDJqf/pDePbBnuBDcjsI8PssmjoKMAz4LtLaVi+OnSb5FK/yIOamqDwGmXW32g=="],+ "@img/sharp-libvips-linux-arm": ["@img/[email protected]", "", { "os": "linux", "cpu": "arm", "libc": "glibc" }, "sha512-LmRtTsOHuvM2+wlO2Db37dx5MiZhB0FvSunciw48YjdOkZz9KAiRbm8ujeMOA1INqmei5NapFxYEK1D1ZSidmw=="],- "@img/sharp-libvips-linux-arm64": ["@img/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-9B+taZ8DlyyqzZQnoeIvDVR/2F4EbMepXMc/NdVbkzsJbzkUjhXv/70GQJ7tdLA4YJgNP25zukcxpX2/SueNrA=="],+ "@img/sharp-libvips-linux-arm64": ["@img/[email protected]", "", { "os": "linux", "cpu": "arm64", "libc": "glibc" }, "sha512-Y3dgX/6lE2QhQb+Gxy0WZxfg9MEm/JBjamZpS2IklP7xIQoKN4hzAm7KcMVGtaVDt3neE9OKBC7vAfonA/Lr1A=="],- "@img/sharp-libvips-linux-ppc64": ["@img/[email protected]", "", { "os": "linux", "cpu": "ppc64" }, "sha512-FMuvGijLDYG6lW+b/UvyilUWu5Ayu+3r2d1S8notiGCIyYU/76eig1UfMmkZ7vwgOrzKzlQbFSuQfgm7GYUPpA=="],+ "@img/sharp-libvips-linux-ppc64": ["@img/[email protected]", "", { "os": "linux", "cpu": "ppc64", "libc": "glibc" }, "sha512-Le6boB8Tai0Nis+gIxIpKx68UDVVIqdR8Tin5Yf1z2LJJQLDJvCDRqRu+jC2qCoD+eIomonmOwB4smBRxfVpYQ=="],- "@img/sharp-libvips-linux-riscv64": ["@img/[email protected]", "", { "os": "linux", "cpu": "none" }, "sha512-oVDbcR4zUC0ce82teubSm+x6ETixtKZBh/qbREIOcI3cULzDyb18Sr/Wcyx7NRQeQzOiHTNbZFF1UwPS2scyGA=="],+ "@img/sharp-libvips-linux-riscv64": ["@img/[email protected]", "", { "os": "linux", "cpu": "none", "libc": "glibc" }, "sha512-aHkkIEHPRdQEegJN20MLmGtxYD9R2wQr3Cwpddnu5+YKMt6Uzax7S9h5gpZTo8wyrGuZSlfQ63OevL5mTyOC7Q=="],- "@img/sharp-libvips-linux-s390x": ["@img/[email protected]", "", { "os": "linux", "cpu": "s390x" }, "sha512-u7Wz6ntiSSgGSGcjZ55im6uvTrOxSIS8/dgoVMoiGE9I6JAfU50yH5BoDlYA1tcuGS7g/QNtetJnxA6QEsCVTA=="],+ "@img/sharp-libvips-linux-s390x": ["@img/[email protected]", "", { "os": "linux", "cpu": "s390x", "libc": "glibc" }, "sha512-ra/mB6MikESDUO7Yg+Mi95bFBb9GsObURuhnOv3OqknjGe9sZrG8tCe9q0xSIGrtLgvgw0gKnFWcK4blSgQOuQ=="],- "@img/sharp-libvips-linux-x64": ["@img/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-MmWmQ3iPFZr0Iev+BAgVMb3ZyC4KeFc3jFxnNbEPas60e1cIfevbtuyf9nDGIzOaW9PdnDciJm+wFFaTlj5xYw=="],+ "@img/sharp-libvips-linux-x64": ["@img/[email protected]", "", { "os": "linux", "cpu": "x64", "libc": "glibc" }, "sha512-GJ//SSXbnwSDes02umB3nDJLFcQzw8a18V8fyhqr6tV515tOEMdImjjxj1AoafMRz56F3PHgftnj1QEKSU1zkw=="],- "@img/sharp-libvips-linuxmusl-arm64": ["@img/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-9Ti+BbTYDcsbp4wfYib8Ctm1ilkugkA/uscUn6UXK1ldpC1JjiXbLfFZtRlBhjPZ5o1NCLiDbg8fhUPKStHoTA=="],+ "@img/sharp-libvips-linuxmusl-arm64": ["@img/[email protected]", "", { "os": "linux", "cpu": "arm64", "libc": "musl" }, "sha512-hvulFwtjUcagsis6BBxHwGFwWoNZjgYmULGVrZcyfNbjA8hKILbRxGg15/7w5HDyXHXUos/j6baAWqnCyQ2DWA=="],- "@img/sharp-libvips-linuxmusl-x64": ["@img/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-viYN1KX9m+/hGkJtvYYp+CCLgnJXwiQB39damAO7WMdKWlIhmYTfHjwSbQeUK/20vY154mwezd9HflVFM1wVSw=="],+ "@img/sharp-libvips-linuxmusl-x64": ["@img/[email protected]", "", { "os": "linux", "cpu": "x64", "libc": "musl" }, "sha512-6zXKeE/p39I1AmA3cJG35eyBGNqNddLnUXjhwBnsGjFPWqf5VKkDBEqaEkPDoTEtkxwi2vv8Tcr2mDyP4So7Fg=="],- "@img/sharp-linux-arm": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm": "1.0.5" }, "os": "linux", "cpu": "arm" }, "sha512-JTS1eldqZbJxjvKaAkxhZmBqPRGmxgu+qFKSInv8moZ2AmT5Yib3EQ1c6gp493HvrvV8QgdOXdyaIBrhvFhBMQ=="],+ "@img/sharp-linux-arm": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm": "1.3.4" }, "os": "linux", "cpu": "arm", "libc": "glibc" }, "sha512-LEaXK2WdXVK5ykcw0buWyPMsmLLL2vpHLD6yrNSW+JGEL3BZPA4tpKN6iaMc4AxTTAoaX/sU1rOL51lcIz48ZQ=="],- "@img/sharp-linux-arm64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm64": "1.0.4" }, "os": "linux", "cpu": "arm64" }, "sha512-JMVv+AMRyGOHtO1RFBiJy/MBsgz0x4AWrT6QoEVVTyh1E39TrCUpTRI7mx9VksGX4awWASxqCYLCV4wBZHAYxA=="],+ "@img/sharp-linux-arm64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm64": "1.3.4" }, "os": "linux", "cpu": "arm64", "libc": "glibc" }, "sha512-LYVx5JTsOM2CBzmxreh+nl64/3H6Xb09iSLknqH47z2T2DFFxDeFLP5y4dJwe6H7uGQlHPyEEtIqyo3DYsRwdQ=="],- "@img/sharp-linux-ppc64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-ppc64": "1.2.4" }, "os": "linux", "cpu": "ppc64" }, "sha512-7zznwNaqW6YtsfrGGDA6BRkISKAAE1Jo0QdpNYXNMHu2+0dTrPflTLNkpc8l7MUP5M16ZJcUvysVWWrMefZquA=="],+ "@img/sharp-linux-ppc64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-ppc64": "1.3.4" }, "os": "linux", "cpu": "ppc64", "libc": "glibc" }, "sha512-QVxAAq8evVRI9ia2vqgwrmWucn5Dfv+JdWzj75pD8omHLPSP7f8p20O8jxzjCcuCEQEOtYOZUmX1hkiZ0kdevA=="],- "@img/sharp-linux-riscv64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-riscv64": "1.2.4" }, "os": "linux", "cpu": "none" }, "sha512-51gJuLPTKa7piYPaVs8GmByo7/U7/7TZOq+cnXJIHZKavIRHAP77e3N2HEl3dgiqdD/w0yUfiJnII77PuDDFdw=="],+ "@img/sharp-linux-riscv64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-riscv64": "1.3.4" }, "os": "linux", "cpu": "none", "libc": "glibc" }, "sha512-LtdreXguaavKODPIfzJ4kffx7UNt1omwtK0rch4EBbbSTXPnxWmYSayXdLJw0fJzQ97kHt1gL/yh4tvU+nCyRQ=="],- "@img/sharp-linux-s390x": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-s390x": "1.0.4" }, "os": "linux", "cpu": "s390x" }, "sha512-y/5PCd+mP4CA/sPDKl2961b+C9d+vPAveS33s6Z3zfASk2j5upL6fXVPZi7ztePZ5CuH+1kW8JtvxgbuXHRa4Q=="],+ "@img/sharp-linux-s390x": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-s390x": "1.3.4" }, "os": "linux", "cpu": "s390x", "libc": "glibc" }, "sha512-UZasTOFiYzotTsGOCu42BfUzP6Tu6Do/947iRm1RsLKvlllxwGcn4RN27LibGWceix4Y+Pmw3jsnTcCQIgWjqA=="],- "@img/sharp-linux-x64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-x64": "1.0.4" }, "os": "linux", "cpu": "x64" }, "sha512-opC+Ok5pRNAzuvq1AG0ar+1owsu842/Ab+4qvU879ippJBHvyY5n2mxF1izXqkPYlGuP/M556uh53jRLJmzTWA=="],+ "@img/sharp-linux-x64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-x64": "1.3.4" }, "os": "linux", "cpu": "x64", "libc": "glibc" }, "sha512-SxFtLTeJInhAA9Q836kux2vZNeOBQEx658qvbboZScr0wIARym3IcGmW7KpVD5sbVg0Ojy+udFQdayYIZyoNog=="],- "@img/sharp-linuxmusl-arm64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linuxmusl-arm64": "1.0.4" }, "os": "linux", "cpu": "arm64" }, "sha512-XrHMZwGQGvJg2V/oRSUfSAfjfPxO+4DkiRh6p2AFjLQztWUuY/o8Mq0eMQVIY7HJ1CDQUJlxGGZRw1a5bqmd1g=="],+ "@img/sharp-linuxmusl-arm64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linuxmusl-arm64": "1.3.4" }, "os": "linux", "cpu": "arm64", "libc": "musl" }, "sha512-9HbMclmI1zlNkFRs3z9/eBtDjfD0sGlrX1z6b1qwmiFY5ElDLh4BC0LPBdVp7z1DXFiKlIcznf+ZlsuZzLxQqg=="],- "@img/sharp-linuxmusl-x64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linuxmusl-x64": "1.0.4" }, "os": "linux", "cpu": "x64" }, "sha512-WT+d/cgqKkkKySYmqoZ8y3pxx7lx9vVejxW/W4DOFMYVSkErR+w7mf2u8m/y4+xHe7yY9DAXQMWQhpnMuFfScw=="],+ "@img/sharp-linuxmusl-x64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linuxmusl-x64": "1.3.4" }, "os": "linux", "cpu": "x64", "libc": "musl" }, "sha512-4KOphqB035HrVdqLZfCgMzzERrQkkzOwRhl4OAkRO1YCldbaFjySXMaK534Mo0V+LndnlJk+sbUyLeU0ULyD1A=="],- "@img/sharp-wasm32": ["@img/[email protected]", "", { "dependencies": { "@emnapi/runtime": "^1.2.0" }, "cpu": "none" }, "sha512-ykUW4LVGaMcU9lu9thv85CbRMAwfeadCJHRsg2GmeRa/cJxsVY9Rbd57JcMxBkKHag5U/x7TSBpScF4U8ElVzg=="],+ "@img/sharp-wasm32": ["@img/[email protected]", "", { "dependencies": { "@emnapi/runtime": "^1.7.0" }, "cpu": "none" }, "sha512-OdWTEiVkY2PHwqkbBI8frFxQQFekHaSSkUIJkwzclWZe64O1X4UlUjqqqLaPbUpMOQk6FBu/HtlGXNblIs0huw=="],- "@img/sharp-win32-arm64": ["@img/[email protected]", "", { "os": "win32", "cpu": "arm64" }, "sha512-WQ3AgWCWYSb2yt+IG8mnC6Jdk9Whs7O0gxphblsLvdhSpSTtmu69ZG1Gkb6NuvxsNACwiPV6cNSZNzt0KPsw7g=="],+ "@img/sharp-webcontainers-wasm32": ["@img/[email protected]", "", { "dependencies": { "@img/sharp-wasm32": "0.35.5" }, "cpu": "none" }, "sha512-hfhF/FmoQyTUkA0bIKFOtw536BQSeBMe6BF6QyWlrPxT754+TFLaZ7sKKTfvvM0yJgKgaYTwnFCIZ/GuDw5SUA=="],- "@img/sharp-win32-ia32": ["@img/[email protected]", "", { "os": "win32", "cpu": "ia32" }, "sha512-T36PblLaTwuVJ/zw/LaH0PdZkRz5rd3SmMHX8GSmR7vtNSP5Z6bQkExdSK7xGWyxLw4sUknBuugTelgw2faBbQ=="],+ "@img/sharp-win32-arm64": ["@img/[email protected]", "", { "os": "win32", "cpu": "arm64" }, "sha512-X4t7g+7ZA5DKblCBEXGjUqqemj4vczING/5viFwAL8h4N3qYeyjwdCvRLHi4EdOUI+2Z7UFlp1VM+p/AuEtm6Q=="],- "@img/sharp-win32-x64": ["@img/[email protected]", "", { "os": "win32", "cpu": "x64" }, "sha512-MpY/o8/8kj+EcnxwvrP4aTJSWw/aZ7JIGR4aBeZkZw5B7/Jn+tY9/VNwtcoGmdT7GfggGIU4kygOMSbYnOrAbg=="],+ "@img/sharp-win32-ia32": ["@img/[email protected]", "", { "os": "win32", "cpu": "ia32" }, "sha512-5Zm82LoBc43nhwNybZlG7Y1KO//Zhsn306fQl29ZOuStHLGTo3BWL83q3cznX0poxSAMuYL1On/BHBxkBeKr6A=="],++ "@img/sharp-win32-x64": ["@img/[email protected]", "", { "os": "win32", "cpu": "x64" }, "sha512-x76eH0vEiHlcMQu8Y8IenntaACtddpT6W0wmXtWrnKcnKI7ME5DdgqhAD6SEWOEl1v2zDvkZDhFA9KnURwpfqg=="],"@inquirer/figures": ["@inquirer/[email protected]", "", {}, "sha512-t2IEY+unGHOzAaVM5Xx6DEWKeXlDDcNPeDyUpsRc6CUhBfU3VQOEl+Vssh7VNp1dR8MdUJBWhuObjXCsVpjN5g=="],@@ -1651,6 +1664,8 @@"@openpanel/express": ["@openpanel/express@workspace:packages/sdks/express"],+ "@openpanel/logos": ["@openpanel/logos@workspace:packages/logos"],+"@openpanel/nextjs": ["@openpanel/nextjs@workspace:packages/sdks/nextjs"],"@openpanel/nuxt": ["@openpanel/nuxt@workspace:packages/sdks/nuxt"],@@ -5251,8 +5266,6 @@"remove-accents": ["[email protected]", "", {}, "sha512-8g3/Otx1eJaVD12e31UbJj1YzdtVvzH85HV7t+9MJYk/u3XmkOUJ5Ys9wQrf9PCPK8+xn4ymzqYCiZl6QWKn+A=="],- "request-filtering-agent": ["[email protected]", "", { "dependencies": { "ipaddr.js": "^2.1.0" } }, "sha512-QvD3qwthEt9J+2hCdQ3wTn3Z/ZsgyiMECjY9yVJ0F8FtnGfNQG+dRz65eKayYRHIRQ6OGjH8Zuqr1lw7G6pz1Q=="],-"require-directory": ["[email protected]", "", {}, "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q=="],"require-from-string": ["[email protected]", "", {}, "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw=="],@@ -5393,7 +5406,7 @@"shallow-equal": ["[email protected]", "", {}, "sha512-S4vJDjHHMBaiZuT9NPb616CSmLf618jawtv3sufLl6ivK8WocjAo58cXwbRV1cgqxH0Qbv+iUt6m05eqEa2IRA=="],- "sharp": ["[email protected]", "", { "dependencies": { "color": "^4.2.3", "detect-libc": "^2.0.3", "semver": "^7.6.3" }, "optionalDependencies": { "@img/sharp-darwin-arm64": "0.33.5", "@img/sharp-darwin-x64": "0.33.5", "@img/sharp-libvips-darwin-arm64": "1.0.4", "@img/sharp-libvips-darwin-x64": "1.0.4", "@img/sharp-libvips-linux-arm": "1.0.5", "@img/sharp-libvips-linux-arm64": "1.0.4", "@img/sharp-libvips-linux-s390x": "1.0.4", "@img/sharp-libvips-linux-x64": "1.0.4", "@img/sharp-libvips-linuxmusl-arm64": "1.0.4", "@img/sharp-libvips-linuxmusl-x64": "1.0.4", "@img/sharp-linux-arm": "0.33.5", "@img/sharp-linux-arm64": "0.33.5", "@img/sharp-linux-s390x": "0.33.5", "@img/sharp-linux-x64": "0.33.5", "@img/sharp-linuxmusl-arm64": "0.33.5", "@img/sharp-linuxmusl-x64": "0.33.5", "@img/sharp-wasm32": "0.33.5", "@img/sharp-win32-ia32": "0.33.5", "@img/sharp-win32-x64": "0.33.5" } }, "sha512-haPVm1EkS9pgvHrQ/F3Xy+hgcuMV0Wm9vfIBSiwZ05k+xgb0PkBQpGsAA/oWdDobNaZTH5ppvHtzCFbnSEwHVw=="],+ "sharp": ["[email protected]", "", { "dependencies": { "@img/colour": "^1.1.0", "detect-libc": "^2.1.2", "semver": "^7.8.5" }, "optionalDependencies": { "@img/sharp-darwin-arm64": "0.35.5", "@img/sharp-darwin-x64": "0.35.5", "@img/sharp-freebsd-wasm32": "0.35.5", "@img/sharp-libvips-darwin-arm64": "1.3.4", "@img/sharp-libvips-darwin-x64": "1.3.4", "@img/sharp-libvips-linux-arm": "1.3.4", "@img/sharp-libvips-linux-arm64": "1.3.4", "@img/sharp-libvips-linux-ppc64": "1.3.4", "@img/sharp-libvips-linux-riscv64": "1.3.4", "@img/sharp-libvips-linux-s390x": "1.3.4", "@img/sharp-libvips-linux-x64": "1.3.4", "@img/sharp-libvips-linuxmusl-arm64": "1.3.4", "@img/sharp-libvips-linuxmusl-x64": "1.3.4", "@img/sharp-linux-arm": "0.35.5", "@img/sharp-linux-arm64": "0.35.5", "@img/sharp-linux-ppc64": "0.35.5", "@img/sharp-linux-riscv64": "0.35.5", "@img/sharp-linux-s390x": "0.35.5", "@img/sharp-linux-x64": "0.35.5", "@img/sharp-linuxmusl-arm64": "0.35.5", "@img/sharp-linuxmusl-x64": "0.35.5", "@img/sharp-webcontainers-wasm32": "0.35.5", "@img/sharp-win32-arm64": "0.35.5", "@img/sharp-win32-ia32": "0.35.5", "@img/sharp-win32-x64": "0.35.5" }, "peerDependencies": { "@types/node": "*" }, "optionalPeers": ["@types/node"] }, "sha512-Ywn4OnzGukp7CDMrp08RQ50YKmuwG47brZgIVPTvBaaAfQlRlygrRqSrxdCiL9M+LlzLBiJ68IR1QqvzHyjC7g=="],"shebang-command": ["[email protected]", "", { "dependencies": { "shebang-regex": "^3.0.0" } }, "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA=="],@@ -5789,8 +5802,6 @@"uqr": ["[email protected]", "", {}, "sha512-0rjE8iEJe4YmT9TOhwsZtqCMRLc5DXZUI2UEYUUg63ikBkqqE5EYWaI0etFe/5KUcmcYwLih2RND1kq+hrUJXA=="],- "url-metadata": ["[email protected]", "", { "dependencies": { "cheerio": "^1.0.0", "node-fetch": "^2.7.0", "request-filtering-agent": "2.0.1" } }, "sha512-Q2QZSnnN75DyccBMsi4jEldGk/kdz/IwU8yKKyAJyzDok4QhAadc2x2/orZB5zFoH0cFlawk+TacU+w1TpumWA=="],-"urlpattern-polyfill": ["[email protected]", "", {}, "sha512-IGjKp/o0NL3Bso1PymYURCJxMPNAf/ILOpendP9f5B6e1rTJgdgiOvgfoT8VxCAdY+Wisb9uhGaJJf3yZ2V9nw=="],"use-callback-ref": ["[email protected]", "", { "dependencies": { "tslib": "^2.0.0" }, "peerDependencies": { "@types/react": "*", "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-jQL3lRnocaFtu3V00JToYz/4QkNWswxijDaCVNZRiRTO3HQDLsdu1ZtmIUvV4yPp+rvWm5j0y0TG/S61cuijTg=="],@@ -6173,6 +6184,10 @@"@hyperdx/node-opentelemetry/semver": ["[email protected]", "", { "bin": "bin/semver.js" }, "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA=="],+ "@img/sharp-freebsd-wasm32/@img/sharp-wasm32": ["@img/[email protected]", "", { "dependencies": { "@emnapi/runtime": "^1.11.3" } }, "sha512-Ptsga1su4tQx+LLF1ECS9U6nz5kmrXKo6XVbtR48Ke3ZRxxgaWBu7IDtEe1quo8hiupwm6WFqxVlXaSf7IINGQ=="],++ "@img/sharp-webcontainers-wasm32/@img/sharp-wasm32": ["@img/[email protected]", "", { "dependencies": { "@emnapi/runtime": "^1.11.3" } }, "sha512-Ptsga1su4tQx+LLF1ECS9U6nz5kmrXKo6XVbtR48Ke3ZRxxgaWBu7IDtEe1quo8hiupwm6WFqxVlXaSf7IINGQ=="],+"@isaacs/cliui/string-width": ["[email protected]", "", { "dependencies": { "eastasianwidth": "^0.2.0", "emoji-regex": "^9.2.2", "strip-ansi": "^7.0.1" } }, "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA=="],"@isaacs/cliui/strip-ansi": ["[email protected]", "", { "dependencies": { "ansi-regex": "^6.2.2" } }, "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w=="],@@ -7151,6 +7166,8 @@"next/postcss": ["[email protected]", "", { "dependencies": { "nanoid": "^3.3.6", "picocolors": "^1.0.0", "source-map-js": "^1.0.2" } }, "sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ=="],+ "next/sharp": ["[email protected]", "", { "dependencies": { "color": "^4.2.3", "detect-libc": "^2.0.3", "semver": "^7.6.3" }, "optionalDependencies": { "@img/sharp-darwin-arm64": "0.33.5", "@img/sharp-darwin-x64": "0.33.5", "@img/sharp-libvips-darwin-arm64": "1.0.4", "@img/sharp-libvips-darwin-x64": "1.0.4", "@img/sharp-libvips-linux-arm": "1.0.5", "@img/sharp-libvips-linux-arm64": "1.0.4", "@img/sharp-libvips-linux-s390x": "1.0.4", "@img/sharp-libvips-linux-x64": "1.0.4", "@img/sharp-libvips-linuxmusl-arm64": "1.0.4", "@img/sharp-libvips-linuxmusl-x64": "1.0.4", "@img/sharp-linux-arm": "0.33.5", "@img/sharp-linux-arm64": "0.33.5", "@img/sharp-linux-s390x": "0.33.5", "@img/sharp-linux-x64": "0.33.5", "@img/sharp-linuxmusl-arm64": "0.33.5", "@img/sharp-linuxmusl-x64": "0.33.5", "@img/sharp-wasm32": "0.33.5", "@img/sharp-win32-ia32": "0.33.5", "@img/sharp-win32-x64": "0.33.5" } }, "sha512-haPVm1EkS9pgvHrQ/F3Xy+hgcuMV0Wm9vfIBSiwZ05k+xgb0PkBQpGsAA/oWdDobNaZTH5ppvHtzCFbnSEwHVw=="],+"nitropack/@rollup/plugin-alias": ["@rollup/[email protected]", "", { "peerDependencies": { "rollup": ">=4.0.0" }, "optionalPeers": ["rollup"] }, "sha512-tPCzJOtS7uuVZd+xPhoy5W4vThe6KWXNmsFCNktaAh5RTqcLiSfT4huPQIXkgJ6YCOjJHvecOAzQxLFhPxKr+g=="],"nitropack/@rollup/plugin-commonjs": ["@rollup/[email protected]", "", { "dependencies": { "@rollup/pluginutils": "^5.0.1", "commondir": "^1.0.1", "estree-walker": "^2.0.2", "fdir": "^6.2.0", "is-reference": "1.2.1", "magic-string": "^0.30.3", "picomatch": "^4.0.2" }, "peerDependencies": { "rollup": "^2.68.0||^3.0.0||^4.0.0" }, "optionalPeers": ["rollup"] }, "sha512-ZaOxZceP7SOUW7Lqw5IRVweSQYWaeIPnXIGLiB690EBA3FGJTO40EEr2L5yZplJWsgTCogILRSpcAe7+U0Otdg=="],@@ -8105,6 +8122,10 @@"astro/sharp/@img/sharp-libvips-linux-arm64": ["@img/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-excjX8DfsIcJ10x1Kzr4RcWe1edC9PquDRRPx3YVCvQv+U5p7Yin2s32ftzikXojb1PIFc/9Mt28/y+iRklkrw=="],+ "astro/sharp/@img/sharp-libvips-linux-ppc64": ["@img/[email protected]", "", { "os": "linux", "cpu": "ppc64" }, "sha512-FMuvGijLDYG6lW+b/UvyilUWu5Ayu+3r2d1S8notiGCIyYU/76eig1UfMmkZ7vwgOrzKzlQbFSuQfgm7GYUPpA=="],++ "astro/sharp/@img/sharp-libvips-linux-riscv64": ["@img/[email protected]", "", { "os": "linux", "cpu": "none" }, "sha512-oVDbcR4zUC0ce82teubSm+x6ETixtKZBh/qbREIOcI3cULzDyb18Sr/Wcyx7NRQeQzOiHTNbZFF1UwPS2scyGA=="],+"astro/sharp/@img/sharp-libvips-linux-s390x": ["@img/[email protected]", "", { "os": "linux", "cpu": "s390x" }, "sha512-qmp9VrzgPgMoGZyPvrQHqk02uyjA0/QrTO26Tqk6l4ZV0MPWIW6LTkqOIov+J1yEu7MbFQaDpwdwJKhbJvuRxQ=="],"astro/sharp/@img/sharp-libvips-linux-x64": ["@img/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-tJxiiLsmHc9Ax1bz3oaOYBURTXGIRDODBqhveVHonrHJ9/+k89qbLl0bcJns+e4t4rvaNBxaEZsFtSfAdquPrw=="],@@ -8117,6 +8138,10 @@"astro/sharp/@img/sharp-linux-arm64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm64": "1.2.4" }, "os": "linux", "cpu": "arm64" }, "sha512-bKQzaJRY/bkPOXyKx5EVup7qkaojECG6NLYswgktOZjaXecSAeCWiZwwiFf3/Y+O1HrauiE3FVsGxFg8c24rZg=="],+ "astro/sharp/@img/sharp-linux-ppc64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-ppc64": "1.2.4" }, "os": "linux", "cpu": "ppc64" }, "sha512-7zznwNaqW6YtsfrGGDA6BRkISKAAE1Jo0QdpNYXNMHu2+0dTrPflTLNkpc8l7MUP5M16ZJcUvysVWWrMefZquA=="],++ "astro/sharp/@img/sharp-linux-riscv64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-riscv64": "1.2.4" }, "os": "linux", "cpu": "none" }, "sha512-51gJuLPTKa7piYPaVs8GmByo7/U7/7TZOq+cnXJIHZKavIRHAP77e3N2HEl3dgiqdD/w0yUfiJnII77PuDDFdw=="],+"astro/sharp/@img/sharp-linux-s390x": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-s390x": "1.2.4" }, "os": "linux", "cpu": "s390x" }, "sha512-nQtCk0PdKfho3eC5MrbQoigJ2gd1CgddUMkabUj+rBevs8tZ2cULOx46E7oyX+04WGfABgIwmMC0VqieTiR4jg=="],"astro/sharp/@img/sharp-linux-x64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-x64": "1.2.4" }, "os": "linux", "cpu": "x64" }, "sha512-MEzd8HPKxVxVenwAa+JRPwEC7QFjoPWuS5NZnBt6B3pu7EG2Ge0id1oLHZpPJdn3OQK+BQDiw9zStiHBTJQQQQ=="],@@ -8125,7 +8150,7 @@"astro/sharp/@img/sharp-linuxmusl-x64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linuxmusl-x64": "1.2.4" }, "os": "linux", "cpu": "x64" }, "sha512-Jg8wNT1MUzIvhBFxViqrEhWDGzqymo3sV7z7ZsaWbZNDLXRJZoRGrjulp60YYtV4wfY8VIKcWidjojlLcWrd8Q=="],- "astro/sharp/@img/sharp-wasm32": ["@img/[email protected]", "", { "dependencies": { "@emnapi/runtime": "^1.7.0" }, "cpu": "none" }, "sha512-OdWTEiVkY2PHwqkbBI8frFxQQFekHaSSkUIJkwzclWZe64O1X4UlUjqqqLaPbUpMOQk6FBu/HtlGXNblIs0huw=="],+ "astro/sharp/@img/sharp-win32-arm64": ["@img/[email protected]", "", { "os": "win32", "cpu": "arm64" }, "sha512-WQ3AgWCWYSb2yt+IG8mnC6Jdk9Whs7O0gxphblsLvdhSpSTtmu69ZG1Gkb6NuvxsNACwiPV6cNSZNzt0KPsw7g=="],"astro/sharp/@img/sharp-win32-ia32": ["@img/[email protected]", "", { "os": "win32", "cpu": "ia32" }, "sha512-FV9m/7NmeCmSHDD5j4+4pNI8Cp3aW+JvLoXcTUo0IqyjSfAZJ8dIUmijx1qaJsIiU+Hosw6xM5KijAWRJCSgNg=="],@@ -8371,6 +8396,10 @@"miniflare/sharp/@img/sharp-libvips-linux-arm64": ["@img/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-excjX8DfsIcJ10x1Kzr4RcWe1edC9PquDRRPx3YVCvQv+U5p7Yin2s32ftzikXojb1PIFc/9Mt28/y+iRklkrw=="],+ "miniflare/sharp/@img/sharp-libvips-linux-ppc64": ["@img/[email protected]", "", { "os": "linux", "cpu": "ppc64" }, "sha512-FMuvGijLDYG6lW+b/UvyilUWu5Ayu+3r2d1S8notiGCIyYU/76eig1UfMmkZ7vwgOrzKzlQbFSuQfgm7GYUPpA=="],++ "miniflare/sharp/@img/sharp-libvips-linux-riscv64": ["@img/[email protected]", "", { "os": "linux", "cpu": "none" }, "sha512-oVDbcR4zUC0ce82teubSm+x6ETixtKZBh/qbREIOcI3cULzDyb18Sr/Wcyx7NRQeQzOiHTNbZFF1UwPS2scyGA=="],+"miniflare/sharp/@img/sharp-libvips-linux-s390x": ["@img/[email protected]", "", { "os": "linux", "cpu": "s390x" }, "sha512-qmp9VrzgPgMoGZyPvrQHqk02uyjA0/QrTO26Tqk6l4ZV0MPWIW6LTkqOIov+J1yEu7MbFQaDpwdwJKhbJvuRxQ=="],"miniflare/sharp/@img/sharp-libvips-linux-x64": ["@img/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-tJxiiLsmHc9Ax1bz3oaOYBURTXGIRDODBqhveVHonrHJ9/+k89qbLl0bcJns+e4t4rvaNBxaEZsFtSfAdquPrw=="],@@ -8383,6 +8412,10 @@"miniflare/sharp/@img/sharp-linux-arm64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm64": "1.2.4" }, "os": "linux", "cpu": "arm64" }, "sha512-bKQzaJRY/bkPOXyKx5EVup7qkaojECG6NLYswgktOZjaXecSAeCWiZwwiFf3/Y+O1HrauiE3FVsGxFg8c24rZg=="],+ "miniflare/sharp/@img/sharp-linux-ppc64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-ppc64": "1.2.4" }, "os": "linux", "cpu": "ppc64" }, "sha512-7zznwNaqW6YtsfrGGDA6BRkISKAAE1Jo0QdpNYXNMHu2+0dTrPflTLNkpc8l7MUP5M16ZJcUvysVWWrMefZquA=="],++ "miniflare/sharp/@img/sharp-linux-riscv64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-riscv64": "1.2.4" }, "os": "linux", "cpu": "none" }, "sha512-51gJuLPTKa7piYPaVs8GmByo7/U7/7TZOq+cnXJIHZKavIRHAP77e3N2HEl3dgiqdD/w0yUfiJnII77PuDDFdw=="],+"miniflare/sharp/@img/sharp-linux-s390x": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-s390x": "1.2.4" }, "os": "linux", "cpu": "s390x" }, "sha512-nQtCk0PdKfho3eC5MrbQoigJ2gd1CgddUMkabUj+rBevs8tZ2cULOx46E7oyX+04WGfABgIwmMC0VqieTiR4jg=="],"miniflare/sharp/@img/sharp-linux-x64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-x64": "1.2.4" }, "os": "linux", "cpu": "x64" }, "sha512-MEzd8HPKxVxVenwAa+JRPwEC7QFjoPWuS5NZnBt6B3pu7EG2Ge0id1oLHZpPJdn3OQK+BQDiw9zStiHBTJQQQQ=="],@@ -8391,7 +8424,7 @@"miniflare/sharp/@img/sharp-linuxmusl-x64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linuxmusl-x64": "1.2.4" }, "os": "linux", "cpu": "x64" }, "sha512-Jg8wNT1MUzIvhBFxViqrEhWDGzqymo3sV7z7ZsaWbZNDLXRJZoRGrjulp60YYtV4wfY8VIKcWidjojlLcWrd8Q=="],- "miniflare/sharp/@img/sharp-wasm32": ["@img/[email protected]", "", { "dependencies": { "@emnapi/runtime": "^1.7.0" }, "cpu": "none" }, "sha512-OdWTEiVkY2PHwqkbBI8frFxQQFekHaSSkUIJkwzclWZe64O1X4UlUjqqqLaPbUpMOQk6FBu/HtlGXNblIs0huw=="],+ "miniflare/sharp/@img/sharp-win32-arm64": ["@img/[email protected]", "", { "os": "win32", "cpu": "arm64" }, "sha512-WQ3AgWCWYSb2yt+IG8mnC6Jdk9Whs7O0gxphblsLvdhSpSTtmu69ZG1Gkb6NuvxsNACwiPV6cNSZNzt0KPsw7g=="],"miniflare/sharp/@img/sharp-win32-ia32": ["@img/[email protected]", "", { "os": "win32", "cpu": "ia32" }, "sha512-FV9m/7NmeCmSHDD5j4+4pNI8Cp3aW+JvLoXcTUo0IqyjSfAZJ8dIUmijx1qaJsIiU+Hosw6xM5KijAWRJCSgNg=="],@@ -8469,6 +8502,46 @@"next/postcss/nanoid": ["[email protected]", "", { "bin": "bin/nanoid.cjs" }, "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w=="],+ "next/sharp/@img/sharp-darwin-arm64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-darwin-arm64": "1.0.4" }, "os": "darwin", "cpu": "arm64" }, "sha512-UT4p+iz/2H4twwAoLCqfA9UH5pI6DggwKEGuaPy7nCVQ8ZsiY5PIcrRvD1DzuY3qYL07NtIQcWnBSY/heikIFQ=="],++ "next/sharp/@img/sharp-darwin-x64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-darwin-x64": "1.0.4" }, "os": "darwin", "cpu": "x64" }, "sha512-fyHac4jIc1ANYGRDxtiqelIbdWkIuQaI84Mv45KvGRRxSAa7o7d1ZKAOBaYbnepLC1WqxfpimdeWfvqqSGwR2Q=="],++ "next/sharp/@img/sharp-libvips-darwin-arm64": ["@img/[email protected]", "", { "os": "darwin", "cpu": "arm64" }, "sha512-XblONe153h0O2zuFfTAbQYAX2JhYmDHeWikp1LM9Hul9gVPjFY427k6dFEcOL72O01QxQsWi761svJ/ev9xEDg=="],++ "next/sharp/@img/sharp-libvips-darwin-x64": ["@img/[email protected]", "", { "os": "darwin", "cpu": "x64" }, "sha512-xnGR8YuZYfJGmWPvmlunFaWJsb9T/AO2ykoP3Fz/0X5XV2aoYBPkX6xqCQvUTKKiLddarLaxpzNe+b1hjeWHAQ=="],++ "next/sharp/@img/sharp-libvips-linux-arm": ["@img/[email protected]", "", { "os": "linux", "cpu": "arm" }, "sha512-gvcC4ACAOPRNATg/ov8/MnbxFDJqf/pDePbBnuBDcjsI8PssmjoKMAz4LtLaVi+OnSb5FK/yIOamqDwGmXW32g=="],++ "next/sharp/@img/sharp-libvips-linux-arm64": ["@img/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-9B+taZ8DlyyqzZQnoeIvDVR/2F4EbMepXMc/NdVbkzsJbzkUjhXv/70GQJ7tdLA4YJgNP25zukcxpX2/SueNrA=="],++ "next/sharp/@img/sharp-libvips-linux-s390x": ["@img/[email protected]", "", { "os": "linux", "cpu": "s390x" }, "sha512-u7Wz6ntiSSgGSGcjZ55im6uvTrOxSIS8/dgoVMoiGE9I6JAfU50yH5BoDlYA1tcuGS7g/QNtetJnxA6QEsCVTA=="],++ "next/sharp/@img/sharp-libvips-linux-x64": ["@img/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-MmWmQ3iPFZr0Iev+BAgVMb3ZyC4KeFc3jFxnNbEPas60e1cIfevbtuyf9nDGIzOaW9PdnDciJm+wFFaTlj5xYw=="],++ "next/sharp/@img/sharp-libvips-linuxmusl-arm64": ["@img/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-9Ti+BbTYDcsbp4wfYib8Ctm1ilkugkA/uscUn6UXK1ldpC1JjiXbLfFZtRlBhjPZ5o1NCLiDbg8fhUPKStHoTA=="],++ "next/sharp/@img/sharp-libvips-linuxmusl-x64": ["@img/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-viYN1KX9m+/hGkJtvYYp+CCLgnJXwiQB39damAO7WMdKWlIhmYTfHjwSbQeUK/20vY154mwezd9HflVFM1wVSw=="],++ "next/sharp/@img/sharp-linux-arm": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm": "1.0.5" }, "os": "linux", "cpu": "arm" }, "sha512-JTS1eldqZbJxjvKaAkxhZmBqPRGmxgu+qFKSInv8moZ2AmT5Yib3EQ1c6gp493HvrvV8QgdOXdyaIBrhvFhBMQ=="],++ "next/sharp/@img/sharp-linux-arm64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm64": "1.0.4" }, "os": "linux", "cpu": "arm64" }, "sha512-JMVv+AMRyGOHtO1RFBiJy/MBsgz0x4AWrT6QoEVVTyh1E39TrCUpTRI7mx9VksGX4awWASxqCYLCV4wBZHAYxA=="],++ "next/sharp/@img/sharp-linux-s390x": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-s390x": "1.0.4" }, "os": "linux", "cpu": "s390x" }, "sha512-y/5PCd+mP4CA/sPDKl2961b+C9d+vPAveS33s6Z3zfASk2j5upL6fXVPZi7ztePZ5CuH+1kW8JtvxgbuXHRa4Q=="],++ "next/sharp/@img/sharp-linux-x64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-x64": "1.0.4" }, "os": "linux", "cpu": "x64" }, "sha512-opC+Ok5pRNAzuvq1AG0ar+1owsu842/Ab+4qvU879ippJBHvyY5n2mxF1izXqkPYlGuP/M556uh53jRLJmzTWA=="],++ "next/sharp/@img/sharp-linuxmusl-arm64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linuxmusl-arm64": "1.0.4" }, "os": "linux", "cpu": "arm64" }, "sha512-XrHMZwGQGvJg2V/oRSUfSAfjfPxO+4DkiRh6p2AFjLQztWUuY/o8Mq0eMQVIY7HJ1CDQUJlxGGZRw1a5bqmd1g=="],++ "next/sharp/@img/sharp-linuxmusl-x64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linuxmusl-x64": "1.0.4" }, "os": "linux", "cpu": "x64" }, "sha512-WT+d/cgqKkkKySYmqoZ8y3pxx7lx9vVejxW/W4DOFMYVSkErR+w7mf2u8m/y4+xHe7yY9DAXQMWQhpnMuFfScw=="],++ "next/sharp/@img/sharp-wasm32": ["@img/[email protected]", "", { "dependencies": { "@emnapi/runtime": "^1.2.0" }, "cpu": "none" }, "sha512-ykUW4LVGaMcU9lu9thv85CbRMAwfeadCJHRsg2GmeRa/cJxsVY9Rbd57JcMxBkKHag5U/x7TSBpScF4U8ElVzg=="],++ "next/sharp/@img/sharp-win32-ia32": ["@img/[email protected]", "", { "os": "win32", "cpu": "ia32" }, "sha512-T36PblLaTwuVJ/zw/LaH0PdZkRz5rd3SmMHX8GSmR7vtNSP5Z6bQkExdSK7xGWyxLw4sUknBuugTelgw2faBbQ=="],++ "next/sharp/@img/sharp-win32-x64": ["@img/[email protected]", "", { "os": "win32", "cpu": "x64" }, "sha512-MpY/o8/8kj+EcnxwvrP4aTJSWw/aZ7JIGR4aBeZkZw5B7/Jn+tY9/VNwtcoGmdT7GfggGIU4kygOMSbYnOrAbg=="],++ "next/sharp/semver": ["[email protected]", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA=="],+"nitropack/@rollup/plugin-commonjs/picomatch": ["[email protected]", "", {}, "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA=="],"nitropack/chokidar/readdirp": ["[email protected]", "", {}, "sha512-Kko+Y5XQ6fM+Ce3dq3m9YGxnacYZYl9cA1wZjaF3Vbry2L3i1qVg8+CAgNPsXRArPMUMCaOR7oa9Nqntc43JKA=="],@@ -8721,6 +8794,8 @@"react-email/next/postcss": ["[email protected]", "", { "dependencies": { "nanoid": "^3.3.6", "picocolors": "^1.0.0", "source-map-js": "^1.0.2" } }, "sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ=="],+ "react-email/next/sharp": ["[email protected]", "", { "dependencies": { "color": "^4.2.3", "detect-libc": "^2.0.3", "semver": "^7.6.3" }, "optionalDependencies": { "@img/sharp-darwin-arm64": "0.33.5", "@img/sharp-darwin-x64": "0.33.5", "@img/sharp-libvips-darwin-arm64": "1.0.4", "@img/sharp-libvips-darwin-x64": "1.0.4", "@img/sharp-libvips-linux-arm": "1.0.5", "@img/sharp-libvips-linux-arm64": "1.0.4", "@img/sharp-libvips-linux-s390x": "1.0.4", "@img/sharp-libvips-linux-x64": "1.0.4", "@img/sharp-libvips-linuxmusl-arm64": "1.0.4", "@img/sharp-libvips-linuxmusl-x64": "1.0.4", "@img/sharp-linux-arm": "0.33.5", "@img/sharp-linux-arm64": "0.33.5", "@img/sharp-linux-s390x": "0.33.5", "@img/sharp-linux-x64": "0.33.5", "@img/sharp-linuxmusl-arm64": "0.33.5", "@img/sharp-linuxmusl-x64": "0.33.5", "@img/sharp-wasm32": "0.33.5", "@img/sharp-win32-ia32": "0.33.5", "@img/sharp-win32-x64": "0.33.5" } }, "sha512-haPVm1EkS9pgvHrQ/F3Xy+hgcuMV0Wm9vfIBSiwZ05k+xgb0PkBQpGsAA/oWdDobNaZTH5ppvHtzCFbnSEwHVw=="],+"react-native/yargs/cliui": ["[email protected]", "", { "dependencies": { "string-width": "^4.2.0", "strip-ansi": "^6.0.1", "wrap-ansi": "^7.0.0" } }, "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ=="],"react-native/yargs/yargs-parser": ["[email protected]", "", {}, "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw=="],@@ -9155,6 +9230,10 @@"@opennextjs/aws/next/sharp/@img/sharp-libvips-linux-arm64": ["@img/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-excjX8DfsIcJ10x1Kzr4RcWe1edC9PquDRRPx3YVCvQv+U5p7Yin2s32ftzikXojb1PIFc/9Mt28/y+iRklkrw=="],+ "@opennextjs/aws/next/sharp/@img/sharp-libvips-linux-ppc64": ["@img/[email protected]", "", { "os": "linux", "cpu": "ppc64" }, "sha512-FMuvGijLDYG6lW+b/UvyilUWu5Ayu+3r2d1S8notiGCIyYU/76eig1UfMmkZ7vwgOrzKzlQbFSuQfgm7GYUPpA=="],++ "@opennextjs/aws/next/sharp/@img/sharp-libvips-linux-riscv64": ["@img/[email protected]", "", { "os": "linux", "cpu": "none" }, "sha512-oVDbcR4zUC0ce82teubSm+x6ETixtKZBh/qbREIOcI3cULzDyb18Sr/Wcyx7NRQeQzOiHTNbZFF1UwPS2scyGA=="],+"@opennextjs/aws/next/sharp/@img/sharp-libvips-linux-s390x": ["@img/[email protected]", "", { "os": "linux", "cpu": "s390x" }, "sha512-qmp9VrzgPgMoGZyPvrQHqk02uyjA0/QrTO26Tqk6l4ZV0MPWIW6LTkqOIov+J1yEu7MbFQaDpwdwJKhbJvuRxQ=="],"@opennextjs/aws/next/sharp/@img/sharp-libvips-linux-x64": ["@img/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-tJxiiLsmHc9Ax1bz3oaOYBURTXGIRDODBqhveVHonrHJ9/+k89qbLl0bcJns+e4t4rvaNBxaEZsFtSfAdquPrw=="],@@ -9167,6 +9246,10 @@"@opennextjs/aws/next/sharp/@img/sharp-linux-arm64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm64": "1.2.4" }, "os": "linux", "cpu": "arm64" }, "sha512-bKQzaJRY/bkPOXyKx5EVup7qkaojECG6NLYswgktOZjaXecSAeCWiZwwiFf3/Y+O1HrauiE3FVsGxFg8c24rZg=="],+ "@opennextjs/aws/next/sharp/@img/sharp-linux-ppc64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-ppc64": "1.2.4" }, "os": "linux", "cpu": "ppc64" }, "sha512-7zznwNaqW6YtsfrGGDA6BRkISKAAE1Jo0QdpNYXNMHu2+0dTrPflTLNkpc8l7MUP5M16ZJcUvysVWWrMefZquA=="],++ "@opennextjs/aws/next/sharp/@img/sharp-linux-riscv64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-riscv64": "1.2.4" }, "os": "linux", "cpu": "none" }, "sha512-51gJuLPTKa7piYPaVs8GmByo7/U7/7TZOq+cnXJIHZKavIRHAP77e3N2HEl3dgiqdD/w0yUfiJnII77PuDDFdw=="],+"@opennextjs/aws/next/sharp/@img/sharp-linux-s390x": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-s390x": "1.2.4" }, "os": "linux", "cpu": "s390x" }, "sha512-nQtCk0PdKfho3eC5MrbQoigJ2gd1CgddUMkabUj+rBevs8tZ2cULOx46E7oyX+04WGfABgIwmMC0VqieTiR4jg=="],"@opennextjs/aws/next/sharp/@img/sharp-linux-x64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-x64": "1.2.4" }, "os": "linux", "cpu": "x64" }, "sha512-MEzd8HPKxVxVenwAa+JRPwEC7QFjoPWuS5NZnBt6B3pu7EG2Ge0id1oLHZpPJdn3OQK+BQDiw9zStiHBTJQQQQ=="],@@ -9175,7 +9258,7 @@"@opennextjs/aws/next/sharp/@img/sharp-linuxmusl-x64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linuxmusl-x64": "1.2.4" }, "os": "linux", "cpu": "x64" }, "sha512-Jg8wNT1MUzIvhBFxViqrEhWDGzqymo3sV7z7ZsaWbZNDLXRJZoRGrjulp60YYtV4wfY8VIKcWidjojlLcWrd8Q=="],- "@opennextjs/aws/next/sharp/@img/sharp-wasm32": ["@img/[email protected]", "", { "dependencies": { "@emnapi/runtime": "^1.7.0" }, "cpu": "none" }, "sha512-OdWTEiVkY2PHwqkbBI8frFxQQFekHaSSkUIJkwzclWZe64O1X4UlUjqqqLaPbUpMOQk6FBu/HtlGXNblIs0huw=="],+ "@opennextjs/aws/next/sharp/@img/sharp-win32-arm64": ["@img/[email protected]", "", { "os": "win32", "cpu": "arm64" }, "sha512-WQ3AgWCWYSb2yt+IG8mnC6Jdk9Whs7O0gxphblsLvdhSpSTtmu69ZG1Gkb6NuvxsNACwiPV6cNSZNzt0KPsw7g=="],"@opennextjs/aws/next/sharp/@img/sharp-win32-ia32": ["@img/[email protected]", "", { "os": "win32", "cpu": "ia32" }, "sha512-FV9m/7NmeCmSHDD5j4+4pNI8Cp3aW+JvLoXcTUo0IqyjSfAZJ8dIUmijx1qaJsIiU+Hosw6xM5KijAWRJCSgNg=="],@@ -9201,6 +9284,10 @@"@opennextjs/cloudflare/next/sharp/@img/sharp-libvips-linux-arm64": ["@img/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-excjX8DfsIcJ10x1Kzr4RcWe1edC9PquDRRPx3YVCvQv+U5p7Yin2s32ftzikXojb1PIFc/9Mt28/y+iRklkrw=="],+ "@opennextjs/cloudflare/next/sharp/@img/sharp-libvips-linux-ppc64": ["@img/[email protected]", "", { "os": "linux", "cpu": "ppc64" }, "sha512-FMuvGijLDYG6lW+b/UvyilUWu5Ayu+3r2d1S8notiGCIyYU/76eig1UfMmkZ7vwgOrzKzlQbFSuQfgm7GYUPpA=="],++ "@opennextjs/cloudflare/next/sharp/@img/sharp-libvips-linux-riscv64": ["@img/[email protected]", "", { "os": "linux", "cpu": "none" }, "sha512-oVDbcR4zUC0ce82teubSm+x6ETixtKZBh/qbREIOcI3cULzDyb18Sr/Wcyx7NRQeQzOiHTNbZFF1UwPS2scyGA=="],+"@opennextjs/cloudflare/next/sharp/@img/sharp-libvips-linux-s390x": ["@img/[email protected]", "", { "os": "linux", "cpu": "s390x" }, "sha512-qmp9VrzgPgMoGZyPvrQHqk02uyjA0/QrTO26Tqk6l4ZV0MPWIW6LTkqOIov+J1yEu7MbFQaDpwdwJKhbJvuRxQ=="],"@opennextjs/cloudflare/next/sharp/@img/sharp-libvips-linux-x64": ["@img/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-tJxiiLsmHc9Ax1bz3oaOYBURTXGIRDODBqhveVHonrHJ9/+k89qbLl0bcJns+e4t4rvaNBxaEZsFtSfAdquPrw=="],@@ -9213,6 +9300,10 @@"@opennextjs/cloudflare/next/sharp/@img/sharp-linux-arm64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm64": "1.2.4" }, "os": "linux", "cpu": "arm64" }, "sha512-bKQzaJRY/bkPOXyKx5EVup7qkaojECG6NLYswgktOZjaXecSAeCWiZwwiFf3/Y+O1HrauiE3FVsGxFg8c24rZg=="],+ "@opennextjs/cloudflare/next/sharp/@img/sharp-linux-ppc64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-ppc64": "1.2.4" }, "os": "linux", "cpu": "ppc64" }, "sha512-7zznwNaqW6YtsfrGGDA6BRkISKAAE1Jo0QdpNYXNMHu2+0dTrPflTLNkpc8l7MUP5M16ZJcUvysVWWrMefZquA=="],++ "@opennextjs/cloudflare/next/sharp/@img/sharp-linux-riscv64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-riscv64": "1.2.4" }, "os": "linux", "cpu": "none" }, "sha512-51gJuLPTKa7piYPaVs8GmByo7/U7/7TZOq+cnXJIHZKavIRHAP77e3N2HEl3dgiqdD/w0yUfiJnII77PuDDFdw=="],+"@opennextjs/cloudflare/next/sharp/@img/sharp-linux-s390x": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-s390x": "1.2.4" }, "os": "linux", "cpu": "s390x" }, "sha512-nQtCk0PdKfho3eC5MrbQoigJ2gd1CgddUMkabUj+rBevs8tZ2cULOx46E7oyX+04WGfABgIwmMC0VqieTiR4jg=="],"@opennextjs/cloudflare/next/sharp/@img/sharp-linux-x64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-x64": "1.2.4" }, "os": "linux", "cpu": "x64" }, "sha512-MEzd8HPKxVxVenwAa+JRPwEC7QFjoPWuS5NZnBt6B3pu7EG2Ge0id1oLHZpPJdn3OQK+BQDiw9zStiHBTJQQQQ=="],@@ -9221,7 +9312,7 @@"@opennextjs/cloudflare/next/sharp/@img/sharp-linuxmusl-x64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linuxmusl-x64": "1.2.4" }, "os": "linux", "cpu": "x64" }, "sha512-Jg8wNT1MUzIvhBFxViqrEhWDGzqymo3sV7z7ZsaWbZNDLXRJZoRGrjulp60YYtV4wfY8VIKcWidjojlLcWrd8Q=="],- "@opennextjs/cloudflare/next/sharp/@img/sharp-wasm32": ["@img/[email protected]", "", { "dependencies": { "@emnapi/runtime": "^1.7.0" }, "cpu": "none" }, "sha512-OdWTEiVkY2PHwqkbBI8frFxQQFekHaSSkUIJkwzclWZe64O1X4UlUjqqqLaPbUpMOQk6FBu/HtlGXNblIs0huw=="],+ "@opennextjs/cloudflare/next/sharp/@img/sharp-win32-arm64": ["@img/[email protected]", "", { "os": "win32", "cpu": "arm64" }, "sha512-WQ3AgWCWYSb2yt+IG8mnC6Jdk9Whs7O0gxphblsLvdhSpSTtmu69ZG1Gkb6NuvxsNACwiPV6cNSZNzt0KPsw7g=="],"@opennextjs/cloudflare/next/sharp/@img/sharp-win32-ia32": ["@img/[email protected]", "", { "os": "win32", "cpu": "ia32" }, "sha512-FV9m/7NmeCmSHDD5j4+4pNI8Cp3aW+JvLoXcTUo0IqyjSfAZJ8dIUmijx1qaJsIiU+Hosw6xM5KijAWRJCSgNg=="],@@ -9499,6 +9590,10 @@"public/next/sharp/@img/sharp-libvips-linux-arm64": ["@img/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-excjX8DfsIcJ10x1Kzr4RcWe1edC9PquDRRPx3YVCvQv+U5p7Yin2s32ftzikXojb1PIFc/9Mt28/y+iRklkrw=="],+ "public/next/sharp/@img/sharp-libvips-linux-ppc64": ["@img/[email protected]", "", { "os": "linux", "cpu": "ppc64" }, "sha512-FMuvGijLDYG6lW+b/UvyilUWu5Ayu+3r2d1S8notiGCIyYU/76eig1UfMmkZ7vwgOrzKzlQbFSuQfgm7GYUPpA=="],++ "public/next/sharp/@img/sharp-libvips-linux-riscv64": ["@img/[email protected]", "", { "os": "linux", "cpu": "none" }, "sha512-oVDbcR4zUC0ce82teubSm+x6ETixtKZBh/qbREIOcI3cULzDyb18Sr/Wcyx7NRQeQzOiHTNbZFF1UwPS2scyGA=="],+"public/next/sharp/@img/sharp-libvips-linux-s390x": ["@img/[email protected]", "", { "os": "linux", "cpu": "s390x" }, "sha512-qmp9VrzgPgMoGZyPvrQHqk02uyjA0/QrTO26Tqk6l4ZV0MPWIW6LTkqOIov+J1yEu7MbFQaDpwdwJKhbJvuRxQ=="],"public/next/sharp/@img/sharp-libvips-linux-x64": ["@img/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-tJxiiLsmHc9Ax1bz3oaOYBURTXGIRDODBqhveVHonrHJ9/+k89qbLl0bcJns+e4t4rvaNBxaEZsFtSfAdquPrw=="],@@ -9511,6 +9606,10 @@"public/next/sharp/@img/sharp-linux-arm64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm64": "1.2.4" }, "os": "linux", "cpu": "arm64" }, "sha512-bKQzaJRY/bkPOXyKx5EVup7qkaojECG6NLYswgktOZjaXecSAeCWiZwwiFf3/Y+O1HrauiE3FVsGxFg8c24rZg=="],+ "public/next/sharp/@img/sharp-linux-ppc64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-ppc64": "1.2.4" }, "os": "linux", "cpu": "ppc64" }, "sha512-7zznwNaqW6YtsfrGGDA6BRkISKAAE1Jo0QdpNYXNMHu2+0dTrPflTLNkpc8l7MUP5M16ZJcUvysVWWrMefZquA=="],++ "public/next/sharp/@img/sharp-linux-riscv64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-riscv64": "1.2.4" }, "os": "linux", "cpu": "none" }, "sha512-51gJuLPTKa7piYPaVs8GmByo7/U7/7TZOq+cnXJIHZKavIRHAP77e3N2HEl3dgiqdD/w0yUfiJnII77PuDDFdw=="],+"public/next/sharp/@img/sharp-linux-s390x": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-s390x": "1.2.4" }, "os": "linux", "cpu": "s390x" }, "sha512-nQtCk0PdKfho3eC5MrbQoigJ2gd1CgddUMkabUj+rBevs8tZ2cULOx46E7oyX+04WGfABgIwmMC0VqieTiR4jg=="],"public/next/sharp/@img/sharp-linux-x64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-x64": "1.2.4" }, "os": "linux", "cpu": "x64" }, "sha512-MEzd8HPKxVxVenwAa+JRPwEC7QFjoPWuS5NZnBt6B3pu7EG2Ge0id1oLHZpPJdn3OQK+BQDiw9zStiHBTJQQQQ=="],@@ -9519,7 +9618,7 @@"public/next/sharp/@img/sharp-linuxmusl-x64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linuxmusl-x64": "1.2.4" }, "os": "linux", "cpu": "x64" }, "sha512-Jg8wNT1MUzIvhBFxViqrEhWDGzqymo3sV7z7ZsaWbZNDLXRJZoRGrjulp60YYtV4wfY8VIKcWidjojlLcWrd8Q=="],- "public/next/sharp/@img/sharp-wasm32": ["@img/[email protected]", "", { "dependencies": { "@emnapi/runtime": "^1.7.0" }, "cpu": "none" }, "sha512-OdWTEiVkY2PHwqkbBI8frFxQQFekHaSSkUIJkwzclWZe64O1X4UlUjqqqLaPbUpMOQk6FBu/HtlGXNblIs0huw=="],+ "public/next/sharp/@img/sharp-win32-arm64": ["@img/[email protected]", "", { "os": "win32", "cpu": "arm64" }, "sha512-WQ3AgWCWYSb2yt+IG8mnC6Jdk9Whs7O0gxphblsLvdhSpSTtmu69ZG1Gkb6NuvxsNACwiPV6cNSZNzt0KPsw7g=="],"public/next/sharp/@img/sharp-win32-ia32": ["@img/[email protected]", "", { "os": "win32", "cpu": "ia32" }, "sha512-FV9m/7NmeCmSHDD5j4+4pNI8Cp3aW+JvLoXcTUo0IqyjSfAZJ8dIUmijx1qaJsIiU+Hosw6xM5KijAWRJCSgNg=="],@@ -9533,6 +9632,46 @@"react-email/next/postcss/nanoid": ["[email protected]", "", { "bin": "bin/nanoid.cjs" }, "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w=="],+ "react-email/next/sharp/@img/sharp-darwin-arm64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-darwin-arm64": "1.0.4" }, "os": "darwin", "cpu": "arm64" }, "sha512-UT4p+iz/2H4twwAoLCqfA9UH5pI6DggwKEGuaPy7nCVQ8ZsiY5PIcrRvD1DzuY3qYL07NtIQcWnBSY/heikIFQ=="],++ "react-email/next/sharp/@img/sharp-darwin-x64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-darwin-x64": "1.0.4" }, "os": "darwin", "cpu": "x64" }, "sha512-fyHac4jIc1ANYGRDxtiqelIbdWkIuQaI84Mv45KvGRRxSAa7o7d1ZKAOBaYbnepLC1WqxfpimdeWfvqqSGwR2Q=="],++ "react-email/next/sharp/@img/sharp-libvips-darwin-arm64": ["@img/[email protected]", "", { "os": "darwin", "cpu": "arm64" }, "sha512-XblONe153h0O2zuFfTAbQYAX2JhYmDHeWikp1LM9Hul9gVPjFY427k6dFEcOL72O01QxQsWi761svJ/ev9xEDg=="],++ "react-email/next/sharp/@img/sharp-libvips-darwin-x64": ["@img/[email protected]", "", { "os": "darwin", "cpu": "x64" }, "sha512-xnGR8YuZYfJGmWPvmlunFaWJsb9T/AO2ykoP3Fz/0X5XV2aoYBPkX6xqCQvUTKKiLddarLaxpzNe+b1hjeWHAQ=="],++ "react-email/next/sharp/@img/sharp-libvips-linux-arm": ["@img/[email protected]", "", { "os": "linux", "cpu": "arm" }, "sha512-gvcC4ACAOPRNATg/ov8/MnbxFDJqf/pDePbBnuBDcjsI8PssmjoKMAz4LtLaVi+OnSb5FK/yIOamqDwGmXW32g=="],++ "react-email/next/sharp/@img/sharp-libvips-linux-arm64": ["@img/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-9B+taZ8DlyyqzZQnoeIvDVR/2F4EbMepXMc/NdVbkzsJbzkUjhXv/70GQJ7tdLA4YJgNP25zukcxpX2/SueNrA=="],++ "react-email/next/sharp/@img/sharp-libvips-linux-s390x": ["@img/[email protected]", "", { "os": "linux", "cpu": "s390x" }, "sha512-u7Wz6ntiSSgGSGcjZ55im6uvTrOxSIS8/dgoVMoiGE9I6JAfU50yH5BoDlYA1tcuGS7g/QNtetJnxA6QEsCVTA=="],++ "react-email/next/sharp/@img/sharp-libvips-linux-x64": ["@img/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-MmWmQ3iPFZr0Iev+BAgVMb3ZyC4KeFc3jFxnNbEPas60e1cIfevbtuyf9nDGIzOaW9PdnDciJm+wFFaTlj5xYw=="],++ "react-email/next/sharp/@img/sharp-libvips-linuxmusl-arm64": ["@img/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-9Ti+BbTYDcsbp4wfYib8Ctm1ilkugkA/uscUn6UXK1ldpC1JjiXbLfFZtRlBhjPZ5o1NCLiDbg8fhUPKStHoTA=="],++ "react-email/next/sharp/@img/sharp-libvips-linuxmusl-x64": ["@img/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-viYN1KX9m+/hGkJtvYYp+CCLgnJXwiQB39damAO7WMdKWlIhmYTfHjwSbQeUK/20vY154mwezd9HflVFM1wVSw=="],++ "react-email/next/sharp/@img/sharp-linux-arm": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm": "1.0.5" }, "os": "linux", "cpu": "arm" }, "sha512-JTS1eldqZbJxjvKaAkxhZmBqPRGmxgu+qFKSInv8moZ2AmT5Yib3EQ1c6gp493HvrvV8QgdOXdyaIBrhvFhBMQ=="],++ "react-email/next/sharp/@img/sharp-linux-arm64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm64": "1.0.4" }, "os": "linux", "cpu": "arm64" }, "sha512-JMVv+AMRyGOHtO1RFBiJy/MBsgz0x4AWrT6QoEVVTyh1E39TrCUpTRI7mx9VksGX4awWASxqCYLCV4wBZHAYxA=="],++ "react-email/next/sharp/@img/sharp-linux-s390x": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-s390x": "1.0.4" }, "os": "linux", "cpu": "s390x" }, "sha512-y/5PCd+mP4CA/sPDKl2961b+C9d+vPAveS33s6Z3zfASk2j5upL6fXVPZi7ztePZ5CuH+1kW8JtvxgbuXHRa4Q=="],++ "react-email/next/sharp/@img/sharp-linux-x64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-x64": "1.0.4" }, "os": "linux", "cpu": "x64" }, "sha512-opC+Ok5pRNAzuvq1AG0ar+1owsu842/Ab+4qvU879ippJBHvyY5n2mxF1izXqkPYlGuP/M556uh53jRLJmzTWA=="],++ "react-email/next/sharp/@img/sharp-linuxmusl-arm64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linuxmusl-arm64": "1.0.4" }, "os": "linux", "cpu": "arm64" }, "sha512-XrHMZwGQGvJg2V/oRSUfSAfjfPxO+4DkiRh6p2AFjLQztWUuY/o8Mq0eMQVIY7HJ1CDQUJlxGGZRw1a5bqmd1g=="],++ "react-email/next/sharp/@img/sharp-linuxmusl-x64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linuxmusl-x64": "1.0.4" }, "os": "linux", "cpu": "x64" }, "sha512-WT+d/cgqKkkKySYmqoZ8y3pxx7lx9vVejxW/W4DOFMYVSkErR+w7mf2u8m/y4+xHe7yY9DAXQMWQhpnMuFfScw=="],++ "react-email/next/sharp/@img/sharp-wasm32": ["@img/[email protected]", "", { "dependencies": { "@emnapi/runtime": "^1.2.0" }, "cpu": "none" }, "sha512-ykUW4LVGaMcU9lu9thv85CbRMAwfeadCJHRsg2GmeRa/cJxsVY9Rbd57JcMxBkKHag5U/x7TSBpScF4U8ElVzg=="],++ "react-email/next/sharp/@img/sharp-win32-ia32": ["@img/[email protected]", "", { "os": "win32", "cpu": "ia32" }, "sha512-T36PblLaTwuVJ/zw/LaH0PdZkRz5rd3SmMHX8GSmR7vtNSP5Z6bQkExdSK7xGWyxLw4sUknBuugTelgw2faBbQ=="],++ "react-email/next/sharp/@img/sharp-win32-x64": ["@img/[email protected]", "", { "os": "win32", "cpu": "x64" }, "sha512-MpY/o8/8kj+EcnxwvrP4aTJSWw/aZ7JIGR4aBeZkZw5B7/Jn+tY9/VNwtcoGmdT7GfggGIU4kygOMSbYnOrAbg=="],++ "react-email/next/sharp/semver": ["[email protected]", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA=="],+"react-native/yargs/cliui/wrap-ansi": ["[email protected]", "", { "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", "strip-ansi": "^6.0.0" } }, "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q=="],"react-svg-worldmap/d3-geo/d3-array/internmap": ["[email protected]", "", {}, "sha512-lDB5YccMydFBtasVtxnZ3MRBHuaoE8GKsppq+EchKL2U4nK/DmEpPHNH8MZe5HkMtpSiTSOZwfN0tzYjO/lJEw=="],diff --git a/packages/core/package.json b/packages/core/package.jsonindex f86d10809..443925505 100644--- a/packages/core/package.json+++ b/packages/core/package.json@@ -63,11 +63,9 @@"prom-client": "15.1.3","qrcode": "1.5.4","ramda": "0.29.1",- "sharp": "0.33.5","short-unique-id": "5.0.3","superjson": "2.2.2","unzipper": "0.12.5",- "url-metadata": "5.4.1","uuid": "9.0.1","zod": "catalog:"},diff --git a/packages/core/src/http/rate-limit.test.ts b/packages/core/src/http/rate-limit.test.tsindex 4640ec716..5c3089e28 100644--- a/packages/core/src/http/rate-limit.test.ts+++ b/packages/core/src/http/rate-limit.test.ts@@ -5,12 +5,13 @@ import { describe, expect, test } from 'bun:test';import { HTTP_RATE_LIMITS, limitFor } from './rate-limit';// The published rate-limits page's numbers, for the first three entries;-// `/mcp` is pinned here only.+// `/mcp` and `/misc/favicon` are pinned here only.const PUBLISHED_LIMITS = {'/manage/clients': { max: 20, windowMs: 10_000 },'/export/events': { max: 100, windowMs: 10_000 },'/insights/acme-web/overview': { max: 100, windowMs: 10_000 },'/mcp': { max: 60, windowMs: 60_000 },+ '/misc/favicon': { max: 100, windowMs: 10_000 },} as const;describe('HTTP rate limits', () => {@@ -46,4 +47,10 @@ describe('HTTP rate limits', () => {expect(new Set(scopes).size).toBe(scopes.length);expect(scopes.every(Boolean)).toBe(true);});++ test('only the favicon route under /misc is limited', () => {+ expect(limitFor('/misc/favicon')?.scope).toBe('favicon');+ expect(limitFor('/misc/ping')).toBeUndefined();+ expect(limitFor('/misc/stats')).toBeUndefined();+ });});diff --git a/packages/core/src/http/rate-limit.ts b/packages/core/src/http/rate-limit.tsindex 00eb41556..8930d60bf 100644--- a/packages/core/src/http/rate-limit.ts+++ b/packages/core/src/http/rate-limit.ts@@ -83,7 +83,9 @@ export async function isRateLimited(/*** The first matching prefix wins. `/export`, `/insights` and `/manage` are the* published limits; `/track`, `/profile` and `/import` are absent on purpose:- * the docs promise they are unlimited.+ * the docs promise they are unlimited. `/misc/favicon` asks third-party icon+ * services on the caller's behalf, and one dashboard page loads a few dozen+ * icons at once.*/export const HTTP_RATE_LIMITS: readonly (HttpRateLimit & {prefix: string;@@ -92,6 +94,7 @@ export const HTTP_RATE_LIMITS: readonly (HttpRateLimit & {{ prefix: '/export', scope: 'export', max: 100, windowMs: 10_000 },{ prefix: '/insights', scope: 'insights', max: 100, windowMs: 10_000 },{ prefix: '/mcp', scope: 'mcp', max: 60, windowMs: 60_000 },+ { prefix: '/misc/favicon', scope: 'favicon', max: 100, windowMs: 10_000 },];export function limitFor(pathname: string): HttpRateLimit | undefined {diff --git a/packages/core/src/modules/misc/misc.routes.ts b/packages/core/src/modules/misc/misc.routes.tsindex befd0917a..c965f8c55 100644--- a/packages/core/src/modules/misc/misc.routes.ts+++ b/packages/core/src/modules/misc/misc.routes.ts@@ -3,7 +3,6 @@ import { defineRoutes } from '../../http/define';import {getFavicon,getGeoReport,- getOgImage,getStats,insertPingRecord,} from './misc.service';@@ -36,19 +35,7 @@ export const miscRoutes = defineRoutes((app) =>.get('/misc/favicon',async ({ query, ctx, set }) => {- const result = await getFavicon(ctx.config, query.url, ctx.logger);- set.status = result.status;- for (const [name, value] of Object.entries(result.headers)) {- set.headers[name] = value;- }- return result.status === 200 ? result.buffer : result.body;- },- { query: zImageQuery, detail: { tags: TAGS } }- )- .get(- '/misc/og',- async ({ query, ctx, set }) => {- const result = await getOgImage(ctx.config, query.url, ctx.logger);+ const result = await getFavicon(query.url, ctx.logger);set.status = result.status;for (const [name, value] of Object.entries(result.headers)) {set.headers[name] = value;diff --git a/packages/core/src/modules/misc/misc.service.ts b/packages/core/src/modules/misc/misc.service.tsindex 7698b4191..61a492774 100644--- a/packages/core/src/modules/misc/misc.service.ts+++ b/packages/core/src/modules/misc/misc.service.ts@@ -1,10 +1,4 @@-import crypto from 'node:crypto';import { getCache, getRedisCache } from '@openpanel/redis';-import {- assertPublicUrl,- BlockedUrlError,- safeFetch,-} from '@openpanel/shared/server';import { chQuery } from '../../ch-query';import { type GeoLocation, getGeoLocation } from '../../clients/geo';import type { CoreConfig } from '../../config';@@ -16,24 +10,17 @@ import {DEFAULT_IP_HEADER_ORDER,getClientIpFromHeaders,} from '../../shared/get-client-ip';-import {- ALLOWED_IMAGE_CONTENT_TYPES,- normalizeContentType,- processImage,- processOgImage,-} from './src/image-proxy';-import { parseUrlMeta } from './src/parse-url-meta';+import { FAVICON_PROVIDERS, fetchProviderIcon } from './src/favicon-providers';+import { hostnameFromInput } from './src/hostname';-const CACHE_TTL_SECONDS = 60 * 60 * 24; // 24h — binary favicon/og cache-const MAX_FETCH_BYTES = 1_000_000; // 1MB cap-const FETCH_TIMEOUT_MS = 10_000;-const FAVICON_USER_AGENT =- 'OpenPanel-FaviconProxy/1.0 (+https://openpanel.dev)';+const CACHE_TTL_SECONDS = 60 * 60 * 24;+// Every provider and redirect hop of one lookup shares this deadline, so a+// slow service cannot hold a request open for the sum of the per-hop timeouts.+const FAVICON_LOOKUP_TIMEOUT_MS = 20_000;const CACHED_ASSET_CACHE_CONTROL = 'public, max-age=604800, immutable'; // 7dconst FRESH_ASSET_CACHE_CONTROL = 'public, max-age=3600, immutable'; // 1hconst STATS_CACHE_TTL_SECONDS = 60 * 60;const STATS_CACHE_KEY = 'api:stats';-const IMAGE_EXTENSIONS = ['svg', 'png', 'jpg', 'jpeg', 'gif', 'webp', 'ico'];export interface ImageAssetOk {status: 200;@@ -41,38 +28,16 @@ export interface ImageAssetOk {headers: Record<string, string>;}export interface ImageAssetFailure {- status: 400 | 404;+ status: 404;body: string;headers: Record<string, string>;}export type ImageAssetResult = ImageAssetOk | ImageAssetFailure;-function createCacheKey(url: string, prefix = 'favicon'): string {- const hash = crypto.createHash('sha256').update(url).digest('hex');- // v3: entries written before the SVG/raw-passthrough fix could hold- // attacker-controlled bytes with an attacker-chosen content type, so the- // old namespace is abandoned rather than served from.- return `${prefix}:v3:${hash}`;-}--/**- * Shape check only. The destination is validated by `assertPublicUrl` /- * `safeFetch` right before each outbound request, because a hostname can- * resolve differently between validation and connection.- */-function validateUrl(raw?: string): URL | null {- try {- if (!raw) {- throw new Error('Missing ?url');- }- const url = new URL(raw);- if (url.protocol !== 'http:' && url.protocol !== 'https:') {- throw new Error('Only http/https URLs are allowed');- }- return url;- } catch {- return null;- }+// v4: keyed by hostname. Earlier namespaces were keyed by the caller's URL and+// held bytes rasterized from it.+function createCacheKey(hostname: string): string {+ return `favicon:v4:${hostname}`;}// Reaches the redis singleton directly: callers of these two functions hold no `deps`/`ctx`.@@ -102,64 +67,6 @@ async function setToCacheBinary(]);}-async function fetchImage(- url: URL,- logger?: Pick<Logger, 'debug' | 'warn'>-): Promise<{ buffer: Buffer; contentType: string; status: number }> {- try {- // `safeFetch` validates and pins every hop, so a redirect cannot be used- // to reach an internal address after the initial URL checks out.- const result = await safeFetch(url, {- timeoutMs: FETCH_TIMEOUT_MS,- maxBytes: MAX_FETCH_BYTES,- headers: {- 'user-agent': FAVICON_USER_AGENT,- accept: 'image/*,*/*;q=0.8',- },- });-- if (result.status !== 200) {- return {- buffer: Buffer.alloc(0),- contentType: 'text/plain',- status: result.status,- };- }-- const contentType = normalizeContentType(- result.headers.get('content-type')- );- if (!ALLOWED_IMAGE_CONTENT_TYPES.has(contentType)) {- logger?.debug(- { url: url.toString(), contentType },- 'Refusing non-image response'- );- return {- buffer: Buffer.alloc(0),- contentType: 'text/plain',- status: 415,- };- }-- return { buffer: result.body, contentType, status: 200 };- } catch (error) {- if (error instanceof BlockedUrlError) {- logger?.warn(- { url: url.toString(), reason: error.message },- 'Blocked image fetch'- );- }- return { buffer: Buffer.alloc(0), contentType: 'text/plain', status: 500 };- }-}--function isDirectImage(url: URL): boolean {- return (- IMAGE_EXTENSIONS.some((ext) => url.pathname.endsWith(`.${ext}`)) ||- url.toString().includes('googleusercontent.com')- );-}-function imageHeaders(contentType: string,cacheControl: string@@ -173,162 +80,72 @@ function imageHeaders(};}-function textFailure(status: 400 | 404, body: string): ImageAssetFailure {- return { status, body, headers: { 'content-type': 'text/plain' } };+function imageOk(+ buffer: Buffer,+ contentType: string,+ cacheControl: string+): ImageAssetOk {+ return {+ status: 200,+ buffer,+ headers: imageHeaders(contentType, cacheControl),+ };}-function blockedOrErrorResult(- isProduction: boolean,- error: unknown-): ImageAssetFailure {- if (error instanceof BlockedUrlError) {- return {- ...textFailure(400, 'Bad request'),- headers: { 'content-type': 'text/plain', 'cache-control': 'no-store' },- };- }- const message = isProduction- ? 'Bad request'- : ((error as Error)?.message ?? 'Error');+function notFound(): ImageAssetFailure {return {- ...textFailure(400, message),+ status: 404,+ body: 'Not found',headers: { 'content-type': 'text/plain', 'cache-control': 'no-store' },};}+/** `GET /misc/favicon?url=` — the site's icon as the icon services have it, unmodified. */export async function getFavicon(- config: CoreConfig,rawUrl: string | undefined,logger?: Pick<Logger, 'debug' | 'warn' | 'error'>): Promise<ImageAssetResult> {- const url = validateUrl(rawUrl);- if (!url) {- return textFailure(404, 'Not found');+ const hostname = hostnameFromInput(rawUrl);+ if (!hostname) {+ return notFound();}try {- // Check the destination before anything else, so a blocked host is not- // leaked to the DuckDuckGo fallback below either.- await assertPublicUrl(url);-- const cacheKey = createCacheKey(url.toString());- const cached = await getFromCacheBinary(cacheKey);+ // The cache is an optimisation: a Redis failure must not turn a lookup+ // into a 404 or discard an icon that was just fetched.+ const cacheKey = createCacheKey(hostname);+ const cached = await getFromCacheBinary(cacheKey).catch((error) => {+ logger?.warn({ err: error, hostname }, 'Favicon cache read failed');+ return null;+ });if (cached) {- return {- status: 200,- buffer: cached.buffer,- headers: imageHeaders(cached.contentType, CACHED_ASSET_CACHE_CONTROL),- };- }-- let imageUrl: URL;- if (isDirectImage(url)) {- imageUrl = url;- } else {- const meta = await parseUrlMeta(url.toString());- imageUrl = meta?.favicon- ? new URL(meta.favicon)- : new URL(`${url.origin}/favicon.ico`);- }-- let { buffer, contentType } = await fetchImage(imageUrl, logger);-- if (buffer.length === 0 && !imageUrl.hostname.includes('duckduckgo.com')) {- const duckduckgoUrl = new URL(- `https://icons.duckduckgo.com/ip3/${url.hostname}.ico`+ return imageOk(+ cached.buffer,+ cached.contentType,+ CACHED_ASSET_CACHE_CONTROL);- const duckduckgoResult = await fetchImage(duckduckgoUrl, logger);- buffer = duckduckgoResult.buffer;- contentType = duckduckgoResult.contentType;- imageUrl = duckduckgoUrl;}- if (buffer.length === 0) {- return textFailure(404, 'Not found');- }-- // Process the image (resize to 30x30 PNG, or serve ICO as-is)- const processedBuffer = await processImage(- buffer,- imageUrl.toString(),- contentType,- logger- );-- // `processImage` either passed an ICO through untouched or rasterized to- // PNG, so the response type is derived from what we produced rather than- // from whatever the upstream server claimed.- const responseContentType =- processedBuffer === buffer ? 'image/x-icon' : 'image/png';-- await setToCacheBinary(cacheKey, processedBuffer, responseContentType);-- return {- status: 200,- buffer: processedBuffer,- headers: imageHeaders(responseContentType, FRESH_ASSET_CACHE_CONTROL),- };- } catch (error) {- logger?.error?.({ err: error, url: rawUrl }, 'Favicon fetch error');- return blockedOrErrorResult(config.isProduction, error);- }-}--export async function getOgImage(- config: CoreConfig,- rawUrl: string | undefined,- logger?: Pick<Logger, 'debug' | 'warn' | 'error'>-): Promise<ImageAssetResult> {- const url = validateUrl(rawUrl);- if (!url) {- return getFavicon(config, rawUrl, logger);- }-- try {- await assertPublicUrl(url);-- const cacheKey = createCacheKey(url.toString(), 'og');- const cached = await getFromCacheBinary(cacheKey);- if (cached) {- return {- status: 200,- buffer: cached.buffer,- headers: imageHeaders(cached.contentType, CACHED_ASSET_CACHE_CONTROL),- };- }-- let imageUrl: URL;- if (isDirectImage(url)) {- imageUrl = url;- } else {- const meta = await parseUrlMeta(url.toString());- if (!meta?.ogImage) {- return getFavicon(config, rawUrl, logger);+ const signal = AbortSignal.timeout(FAVICON_LOOKUP_TIMEOUT_MS);+ for (const provider of FAVICON_PROVIDERS) {+ const icon = await fetchProviderIcon(provider(hostname), {+ logger,+ signal,+ });+ if (!icon) {+ continue;}- imageUrl = new URL(meta.ogImage);- }-- const { buffer, status } = await fetchImage(imageUrl, logger);- if (status !== 200 || buffer.length === 0) {- return getFavicon(config, rawUrl, logger);+ await setToCacheBinary(cacheKey, icon.buffer, icon.contentType).catch(+ (error) => {+ logger?.warn({ err: error, hostname }, 'Favicon cache write failed');+ }+ );+ return imageOk(icon.buffer, icon.contentType, FRESH_ASSET_CACHE_CONTROL);}-- // Rasterize to a 300px-wide PNG- const processedBuffer = await processOgImage(- buffer,- imageUrl.toString(),- logger- );- await setToCacheBinary(cacheKey, processedBuffer, 'image/png');-- return {- status: 200,- buffer: processedBuffer,- headers: imageHeaders('image/png', FRESH_ASSET_CACHE_CONTROL),- };+ return notFound();} catch (error) {- logger?.error?.({ err: error, url: rawUrl }, 'OG image fetch error');- return blockedOrErrorResult(config.isProduction, error);+ logger?.error?.({ err: error, hostname }, 'Favicon lookup failed');+ return notFound();}}diff --git a/packages/core/src/modules/misc/src/favicon-providers.test.ts b/packages/core/src/modules/misc/src/favicon-providers.test.tsnew file mode 100644index 000000000..b58eb17f8--- /dev/null+++ b/packages/core/src/modules/misc/src/favicon-providers.test.ts@@ -0,0 +1,119 @@+import { describe, expect, it } from 'bun:test';+import type { SafeFetchResult } from '@openpanel/shared/server';+import {+ FAVICON_PROVIDERS,+ fetchProviderIcon,+ isAllowedProviderUrl,+} from './favicon-providers';++const PNG = Buffer.from([0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0, 0]);++function answer(+ status: number,+ body: Buffer | string = '',+ headers: Record<string, string> = {}+): SafeFetchResult {+ return {+ status,+ headers: new Headers(headers),+ body: Buffer.isBuffer(body) ? body : Buffer.from(body),+ finalUrl: '',+ chain: [],+ };+}++/** A fake network: each URL answers from the table; every request is recorded. */+function network(table: Record<string, SafeFetchResult>) {+ const requested: string[] = [];+ const fetch = (url: URL) => {+ requested.push(url.toString());+ const hit = table[url.toString()];+ if (!hit) {+ throw new Error(`unexpected request ${url}`);+ }+ return Promise.resolve(hit);+ };+ return { fetch, requested };+}++describe('isAllowedProviderUrl', () => {+ it('allows the providers and the gstatic redirect hosts over https', () => {+ for (const provider of FAVICON_PROVIDERS) {+ expect(isAllowedProviderUrl(provider('example.com'))).toBe(true);+ }+ expect(+ isAllowedProviderUrl(new URL('https://t2.gstatic.com/faviconV2?x=1'))+ ).toBe(true);+ });++ it('refuses any other host, and plain http', () => {+ for (const url of [+ 'https://example.com/favicon.ico',+ 'https://evil.gstatic.com.attacker.net/',+ 'https://notgstatic.com/',+ 'http://icons.duckduckgo.com/ip3/example.com.ico',+ 'http://t0.gstatic.com/faviconV2',+ ]) {+ expect([url, isAllowedProviderUrl(new URL(url))]).toEqual([url, false]);+ }+ });+});++describe('fetchProviderIcon', () => {+ const google = new URL('https://www.google.com/s2/favicons?domain=x.com');++ it("follows Google's redirect to gstatic and sniffs the content type", async () => {+ const { fetch, requested } = network({+ [google.toString()]: answer(302, '', {+ location: 'https://t1.gstatic.com/faviconV2?x',+ }),+ 'https://t1.gstatic.com/faviconV2?x': answer(200, PNG, {+ 'content-type': 'application/octet-stream',+ }),+ });+ const icon = await fetchProviderIcon(google, { fetch });+ expect(icon?.contentType).toBe('image/png');+ expect(requested).toHaveLength(2);+ });++ it('does not connect to a redirect outside the allowed hosts', async () => {+ const { fetch, requested } = network({+ [google.toString()]: answer(302, '', {+ location: 'https://attacker.example/anything.png',+ }),+ });+ expect(await fetchProviderIcon(google, { fetch })).toBeNull();+ expect(requested).toEqual([google.toString()]);+ });++ it('hands the shared deadline to every hop', async () => {+ const seen: (AbortSignal | undefined)[] = [];+ const fetch = (url: URL, signal?: AbortSignal) => {+ seen.push(signal);+ return Promise.resolve(+ url.hostname === 'www.google.com'+ ? answer(302, '', { location: 'https://t1.gstatic.com/x' })+ : answer(200, PNG)+ );+ };+ const signal = AbortSignal.timeout(10_000);+ await fetchProviderIcon(google, { signal, fetch });+ expect(seen).toEqual([signal, signal]);+ });++ it('returns null for a non-image body, a 404 and a redirect loop', async () => {+ const html = network({ [google.toString()]: answer(200, '<html/>') });+ expect(await fetchProviderIcon(google, { fetch: html.fetch })).toBeNull();++ const missing = network({ [google.toString()]: answer(404) });+ expect(+ await fetchProviderIcon(google, { fetch: missing.fetch })+ ).toBeNull();++ const loop = network({+ [google.toString()]: answer(302, '', { location: google.toString() }),+ });+ expect(await fetchProviderIcon(google, { fetch: loop.fetch })).toBeNull();+ expect(loop.requested.length).toBeLessThanOrEqual(4);+ });+});diff --git a/packages/core/src/modules/misc/src/favicon-providers.ts b/packages/core/src/modules/misc/src/favicon-providers.tsnew file mode 100644index 000000000..cae5f511a--- /dev/null+++ b/packages/core/src/modules/misc/src/favicon-providers.ts@@ -0,0 +1,108 @@+// The icon services the favicon proxy asks, and the only hosts it will+// connect to. Google answers with a redirect to `t{n}.gstatic.com`, so that+// domain is allowed too; a redirect anywhere else is not followed.++import { type SafeFetchResult, safeFetch } from '@openpanel/shared/server';+import type { Logger } from '../../../logger';+import { contentTypeFor, detectImageFormat } from './image-format';++const PROVIDER_HOSTS = new Set(['icons.duckduckgo.com', 'www.google.com']);+const PROVIDER_REDIRECT_DOMAIN = '.gstatic.com';+const MAX_PROVIDER_REDIRECTS = 3;+const REDIRECT_STATUSES = new Set([301, 302, 303, 307, 308]);+const MAX_ICON_BYTES = 256 * 1024;+const FETCH_TIMEOUT_MS = 10_000;+const FAVICON_USER_AGENT =+ 'OpenPanel-FaviconProxy/1.0 (+https://openpanel.dev)';++export const FAVICON_PROVIDERS: readonly ((hostname: string) => URL)[] = [+ (hostname) => new URL(`https://icons.duckduckgo.com/ip3/${hostname}.ico`),+ (hostname) =>+ new URL(`https://www.google.com/s2/favicons?domain=${hostname}&sz=64`),+];++export interface ProviderIcon {+ buffer: Buffer;+ contentType: string;+}++/** One hop: a 3xx is returned, not followed, so the walk below can vet it. */+export type FetchHop = (+ url: URL,+ signal?: AbortSignal+) => Promise<SafeFetchResult>;++export interface FetchProviderIconOptions {+ logger?: Pick<Logger, 'debug' | 'warn'>;+ /** One deadline for every hop and provider of a lookup. */+ signal?: AbortSignal;+ fetch?: FetchHop;+}++export function isAllowedProviderUrl(url: URL): boolean {+ if (url.protocol !== 'https:') {+ return false;+ }+ return (+ PROVIDER_HOSTS.has(url.hostname) ||+ url.hostname.endsWith(PROVIDER_REDIRECT_DOMAIN)+ );+}++function fetchHop(url: URL, signal?: AbortSignal): Promise<SafeFetchResult> {+ return safeFetch(url, {+ followRedirects: false,+ timeoutMs: FETCH_TIMEOUT_MS,+ maxBytes: MAX_ICON_BYTES,+ headers: { 'user-agent': FAVICON_USER_AGENT, accept: 'image/*' },+ signal,+ });+}++/**+ * The icon a provider answers with, or `null`. Walks the redirects itself so+ * every hop is checked against the allowlist before it is connected to;+ * `safeFetch` still validates and pins each address.+ */+export async function fetchProviderIcon(+ providerUrl: URL,+ { logger, signal, fetch = fetchHop }: FetchProviderIconOptions = {}+): Promise<ProviderIcon | null> {+ let url = providerUrl;+ try {+ for (let hop = 0; hop <= MAX_PROVIDER_REDIRECTS; hop += 1) {+ if (!isAllowedProviderUrl(url)) {+ logger?.warn(+ { url: url.toString() },+ 'Icon service redirected outside the allowed hosts'+ );+ return null;+ }+ const result = await fetch(url, signal);+ const location = result.headers.get('location');+ if (REDIRECT_STATUSES.has(result.status) && location) {+ url = new URL(location, url);+ continue;+ }+ if (result.status !== 200) {+ return null;+ }+ const format = detectImageFormat(result.body);+ if (!format) {+ logger?.debug(+ { url: url.toString() },+ 'Icon service returned a non-image'+ );+ return null;+ }+ return { buffer: result.body, contentType: contentTypeFor(format) };+ }+ return null;+ } catch (error) {+ logger?.warn(+ { err: error, url: url.toString() },+ 'Icon service fetch failed'+ );+ return null;+ }+}diff --git a/packages/core/src/modules/misc/src/hostname.test.ts b/packages/core/src/modules/misc/src/hostname.test.tsnew file mode 100644index 000000000..7a5c67692--- /dev/null+++ b/packages/core/src/modules/misc/src/hostname.test.ts@@ -0,0 +1,36 @@+import { describe, expect, it } from 'bun:test';+import { hostnameFromInput } from './hostname';++describe('hostnameFromInput', () => {+ it('reduces URLs and bare hosts to a lower-cased hostname', () => {+ expect(hostnameFromInput('https://GitHub.com/openpanel')).toBe(+ 'github.com'+ );+ expect(hostnameFromInput('http://news.ycombinator.com:8080/x?y=1')).toBe(+ 'news.ycombinator.com'+ );+ expect(hostnameFromInput('openpanel.dev')).toBe('openpanel.dev');+ expect(hostnameFromInput('https://user:[email protected]/')).toBe(+ 'example.com'+ );+ expect(hostnameFromInput('https://münchen.de')).toBe('xn--mnchen-3ya.de');+ });++ it('rejects what has no public favicon', () => {+ for (const input of [+ undefined,+ '',+ 'not a url',+ 'ftp://example.com',+ 'javascript:alert(1)',+ 'https://localhost',+ 'https://127.0.0.1',+ 'https://[::1]',+ 'https://10.0.0.1:8123',+ 'https://example.com.',+ 'https://-bad-.com',+ ]) {+ expect([input, hostnameFromInput(input)]).toEqual([input, null]);+ }+ });+});diff --git a/packages/core/src/modules/misc/src/hostname.ts b/packages/core/src/modules/misc/src/hostname.tsnew file mode 100644index 000000000..d5d58004c--- /dev/null+++ b/packages/core/src/modules/misc/src/hostname.ts@@ -0,0 +1,35 @@+// The favicon proxy never connects to what the caller sends: it only needs+// a hostname to ask the icon services about, so the input is reduced to that+// and everything else (path, port, credentials, scheme) is dropped.++const MAX_HOSTNAME_LENGTH = 253;+const HOSTNAME_LABEL = '[a-z0-9](?:[a-z0-9-]*[a-z0-9])?';+const HOSTNAME_PATTERN = new RegExp(+ `^${HOSTNAME_LABEL}(?:\\.${HOSTNAME_LABEL})+$`+);+const NUMERIC_LAST_LABEL = /\.\d+$/;+const HAS_SCHEME = /^[a-z][a-z0-9+.-]*:\/\//i;++/** The lower-cased DNS name in a URL or bare host, or `null`. IP addresses+ * and single-label names such as `localhost` have no public favicon. */+export function hostnameFromInput(raw: string | undefined): string | null {+ if (!raw) {+ return null;+ }+ const withScheme = HAS_SCHEME.test(raw) ? raw : `https://${raw}`;+ let url: URL;+ try {+ url = new URL(withScheme);+ } catch {+ return null;+ }+ if (url.protocol !== 'http:' && url.protocol !== 'https:') {+ return null;+ }+ const hostname = url.hostname.toLowerCase();+ const isDnsName =+ hostname.length <= MAX_HOSTNAME_LENGTH &&+ HOSTNAME_PATTERN.test(hostname) &&+ !NUMERIC_LAST_LABEL.test(hostname);+ return isDnsName ? hostname : null;+}diff --git a/packages/core/src/modules/misc/src/image-format.test.ts b/packages/core/src/modules/misc/src/image-format.test.tsnew file mode 100644index 000000000..b107be1df--- /dev/null+++ b/packages/core/src/modules/misc/src/image-format.test.ts@@ -0,0 +1,47 @@+import { describe, expect, it } from 'bun:test';+import { contentTypeFor, detectImageFormat } from './image-format';++const ACCEPTED: Record<string, Buffer> = {+ png: Buffer.from([0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0, 0]),+ jpeg: Buffer.from([0xff, 0xd8, 0xff, 0xe0, 0x00, 0x10]),+ gif: Buffer.from('GIF89a', 'ascii'),+ webp: Buffer.concat([+ Buffer.from('RIFF', 'ascii'),+ Buffer.from([0x10, 0, 0, 0]),+ Buffer.from('WEBPVP8 ', 'ascii'),+ ]),+ ico: Buffer.from([0x00, 0x00, 0x01, 0x00, 0x01, 0x00]),+};++const REFUSED: Record<string, Buffer> = {+ svg: Buffer.from('<svg xmlns="http://www.w3.org/2000/svg"/>'),+ html: Buffer.from('<html><script>alert(1)</script></html>'),+ json: Buffer.from('{"error":"not found"}'),+ 'riff without webp': Buffer.concat([+ Buffer.from('RIFF', 'ascii'),+ Buffer.from([0x10, 0, 0, 0]),+ Buffer.from('WAVEfmt ', 'ascii'),+ ]),+ 'cursor (ico type 2)': Buffer.from([0x00, 0x00, 0x02, 0x00]),+ empty: Buffer.alloc(0),+};++describe('detectImageFormat', () => {+ it('recognises the raster formats icon services return', () => {+ for (const [format, bytes] of Object.entries(ACCEPTED)) {+ expect(detectImageFormat(bytes)).toBe(format as never);+ }+ });++ it('refuses anything that is not a raster image', () => {+ for (const [name, bytes] of Object.entries(REFUSED)) {+ expect([name, detectImageFormat(bytes)]).toEqual([name, null]);+ }+ });++ it('maps every format to an image/* content type', () => {+ for (const format of Object.keys(ACCEPTED)) {+ expect(contentTypeFor(format as never)).toMatch(/^image\//);+ }+ });+});diff --git a/packages/core/src/modules/misc/src/image-format.ts b/packages/core/src/modules/misc/src/image-format.tsnew file mode 100644index 000000000..c860e0a54--- /dev/null+++ b/packages/core/src/modules/misc/src/image-format.ts@@ -0,0 +1,58 @@+// The response content type comes from the bytes, never from the upstream+// header: whatever an icon service returns is served from the api origin,+// so an HTML error page or an SVG must never go out as an image.++export type FaviconFormat = 'png' | 'jpeg' | 'webp' | 'gif' | 'ico';++const PNG_SIGNATURE = Buffer.from([+ 0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a,+]);+const JPEG_SIGNATURE = Buffer.from([0xff, 0xd8, 0xff]);+const GIF_SIGNATURE = Buffer.from('GIF8', 'ascii');+const RIFF_SIGNATURE = Buffer.from('RIFF', 'ascii');+const WEBP_SIGNATURE = Buffer.from('WEBP', 'ascii');+const WEBP_SIGNATURE_OFFSET = 8;+// Reserved field = 0, image type = 1 (icon).+const ICO_SIGNATURE = Buffer.from([0x00, 0x00, 0x01, 0x00]);++const CONTENT_TYPES: Readonly<Record<FaviconFormat, string>> = {+ png: 'image/png',+ jpeg: 'image/jpeg',+ webp: 'image/webp',+ gif: 'image/gif',+ ico: 'image/x-icon',+};++function startsWith(buffer: Buffer, signature: Buffer, offset = 0): boolean {+ return (+ buffer.length >= offset + signature.length &&+ buffer.subarray(offset, offset + signature.length).equals(signature)+ );+}++/** The raster format the bytes actually are, or `null` for anything else. */+export function detectImageFormat(buffer: Buffer): FaviconFormat | null {+ if (startsWith(buffer, PNG_SIGNATURE)) {+ return 'png';+ }+ if (startsWith(buffer, JPEG_SIGNATURE)) {+ return 'jpeg';+ }+ if (startsWith(buffer, GIF_SIGNATURE)) {+ return 'gif';+ }+ if (+ startsWith(buffer, RIFF_SIGNATURE) &&+ startsWith(buffer, WEBP_SIGNATURE, WEBP_SIGNATURE_OFFSET)+ ) {+ return 'webp';+ }+ if (startsWith(buffer, ICO_SIGNATURE)) {+ return 'ico';+ }+ return null;+}++export function contentTypeFor(format: FaviconFormat): string {+ return CONTENT_TYPES[format];+}diff --git a/packages/core/src/modules/misc/src/image-proxy.test.ts b/packages/core/src/modules/misc/src/image-proxy.test.tsdeleted file mode 100644index b51ac650e..000000000--- a/packages/core/src/modules/misc/src/image-proxy.test.ts+++ /dev/null@@ -1,140 +0,0 @@-import { describe, expect, it } from 'bun:test';-import sharp from 'sharp';-import {- ALLOWED_IMAGE_CONTENT_TYPES,- hasIcoMagicBytes,- normalizeContentType,- processImage,- processOgImage,-} from './image-proxy';--const PNG_MAGIC = Buffer.from([0x89, 0x50, 0x4e, 0x47]);--const maliciousSvg = Buffer.from(- '<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64">' +- '<rect width="64" height="64" fill="red"/>' +- '<script>alert(document.domain)</script>' +- '</svg>'-);--async function makePng() {- return sharp({- create: {- width: 64,- height: 64,- channels: 3,- background: { r: 255, g: 0, b: 0 },- },- })- .png()- .toBuffer();-}--describe('processImage', () => {- it('rasterizes SVG instead of serving it verbatim (GHSA-r7hx-q6f4-vj6h)', async () => {- const result = await processImage(- maliciousSvg,- 'https://evil.example/x.svg',- 'image/svg+xml'- );-- expect(result.subarray(0, 4)).toEqual(PNG_MAGIC);- expect(result.includes(Buffer.from('script'))).toBe(false);- expect(result.includes(Buffer.from('alert'))).toBe(false);- expect(result.equals(maliciousSvg)).toBe(false);- });-- it('rasterizes SVG even when only the content type gives it away', async () => {- const result = await processImage(- maliciousSvg,- 'https://evil.example/favicon',- 'image/svg+xml'- );-- expect(result.subarray(0, 4)).toEqual(PNG_MAGIC);- expect(result.includes(Buffer.from('alert'))).toBe(false);- });-- it('rasterizes small images rather than passing the bytes through', async () => {- // A sub-5KB body must not be returned verbatim with the upstream content type, or an- // attacker could serve arbitrary content from the API origin.- const png = await makePng();- expect(png.length).toBeLessThan(5000);-- const result = await processImage(- png,- 'https://evil.example/small.png',- 'image/png'- );-- expect(result.subarray(0, 4)).toEqual(PNG_MAGIC);- });-- it('rejects a non-image body claiming to be an icon', async () => {- const html = Buffer.from('<html><script>alert(1)</script></html>');-- // Sharp cannot decode it and the ICO magic bytes are absent, so it must- // not reach the passthrough.- expect(hasIcoMagicBytes(html)).toBe(false);- await expect(- processImage(html, 'https://evil.example/x.ico', 'image/x-icon')- ).rejects.toThrow();- });-- it('passes a real ICO through untouched', async () => {- // Minimal ICO header: reserved=0, type=1, count=1- const ico = Buffer.concat([- Buffer.from([0x00, 0x00, 0x01, 0x00, 0x01, 0x00]),- Buffer.alloc(32),- ]);-- const result = await processImage(- ico,- 'https://example.com/favicon.ico',- 'image/x-icon'- );-- expect(result).toBe(ico);- });-});--describe('processOgImage', () => {- it('rasterizes SVG instead of serving it verbatim', async () => {- const result = await processOgImage(- maliciousSvg,- 'https://evil.example/x.svg'- );-- expect(result.subarray(0, 4)).toEqual(PNG_MAGIC);- expect(result.includes(Buffer.from('alert'))).toBe(false);- });-- it('rasterizes small images rather than passing the bytes through', async () => {- const png = await makePng();- expect(png.length).toBeLessThan(10_000);-- const result = await processOgImage(png, 'https://example.com/og.png');- expect(result.subarray(0, 4)).toEqual(PNG_MAGIC);- });-});--describe('content type handling', () => {- it('strips parameters and lowercases', () => {- expect(normalizeContentType('Image/SVG+XML; charset=utf-8')).toBe(- 'image/svg+xml'- );- expect(normalizeContentType(null)).toBe('');- });-- it('does not allow non-image types through the proxy', () => {- for (const type of [- 'text/html',- 'application/json',- 'text/plain',- 'application/octet-stream',- '',- ]) {- expect(ALLOWED_IMAGE_CONTENT_TYPES.has(type), type).toBe(false);- }- });-});diff --git a/packages/core/src/modules/misc/src/image-proxy.ts b/packages/core/src/modules/misc/src/image-proxy.tsdeleted file mode 100644index d8df32c90..000000000--- a/packages/core/src/modules/misc/src/image-proxy.ts+++ /dev/null@@ -1,111 +0,0 @@-// These bytes come from a third-party server and are then served from the API-// origin, which also serves the credentialed `/trpc` and `/oauth` endpoints.-// Anything returned verbatim is therefore attacker-controlled content on a-// trusted origin — an SVG passed through untouched executes its `<script>` as-// the victim. Everything Sharp can decode is rasterized to PNG, which drops-// active content along with every other non-pixel payload-// (GHSA-r7hx-q6f4-vj6h).--import sharp from 'sharp';-import type { Logger } from '../../../logger';--const FAVICON_SIZE = 30;-const OG_IMAGE_WIDTH = 300;--/** Content types we are willing to hand back to a browser. Anything else is- * dropped rather than proxied. */-export const ALLOWED_IMAGE_CONTENT_TYPES = new Set([- 'image/png',- 'image/jpeg',- 'image/jpg',- 'image/gif',- 'image/webp',- 'image/avif',- 'image/svg+xml',- 'image/x-icon',- 'image/vnd.microsoft.icon',- 'image/bmp',- 'image/tiff',-]);--export function normalizeContentType(raw: string | null): string {- return (raw ?? '').split(';')[0]!.trim().toLowerCase();-}--export function isIcoFile(url: string, contentType?: string): boolean {- return (- url.toLowerCase().endsWith('.ico') ||- contentType === 'image/x-icon' ||- contentType === 'image/vnd.microsoft.icon'- );-}--/**- * ICO is the one format Sharp cannot decode, so it is passed through raw.- * Verify the magic bytes (reserved=0, type=1) so the passthrough cannot be- * used to serve something that merely claims to be an icon.- */-export function hasIcoMagicBytes(buffer: Buffer): boolean {- return (- buffer.length >= 4 &&- buffer[0] === 0x00 &&- buffer[1] === 0x00 &&- buffer[2] === 0x01 &&- buffer[3] === 0x00- );-}--export async function processImage(- buffer: Buffer,- originalUrl?: string,- contentType?: string,- logger?: Pick<Logger, 'debug' | 'warn'>-): Promise<Buffer> {- // ICO is the only format Sharp cannot decode, so it is the only passthrough.- // Everything else — SVG very much included — is rasterized.- if (- originalUrl &&- isIcoFile(originalUrl, contentType) &&- hasIcoMagicBytes(buffer)- ) {- logger?.debug(- { originalUrl, bufferSize: buffer.length },- 'Serving ICO file directly'- );- return buffer;- }-- try {- return await sharp(buffer)- .resize(FAVICON_SIZE, FAVICON_SIZE, { fit: 'cover' })- .png()- .toBuffer();- } catch (error) {- logger?.warn(- { err: error, originalUrl, bufferSize: buffer.length },- 'Sharp failed to process image'- );- throw error;- }-}--export async function processOgImage(- buffer: Buffer,- originalUrl?: string,- logger?: Pick<Logger, 'warn'>-): Promise<Buffer> {- // Always rasterize. Returning the upstream bytes verbatim would let an- // attacker serve arbitrary content from the API origin.- try {- return await sharp(buffer)- .resize(OG_IMAGE_WIDTH, null, { fit: 'inside', withoutEnlargement: true })- .png()- .toBuffer();- } catch (error) {- logger?.warn(- { err: error, originalUrl, bufferSize: buffer.length },- 'Sharp failed to process OG image'- );- throw error;- }-}diff --git a/packages/core/src/modules/misc/src/parse-url-meta.ts b/packages/core/src/modules/misc/src/parse-url-meta.tsdeleted file mode 100644index 2215f210e..000000000--- a/packages/core/src/modules/misc/src/parse-url-meta.ts+++ /dev/null@@ -1,85 +0,0 @@-import urlMetadata from 'url-metadata';--const URL_METADATA_TIMEOUT_MS = 500;--interface UrlMetaData {- favicons: {- rel: string;- href: string;- sizes: string;- }[];- 'og:image'?: string;- 'og:image:url'?: string;- 'og:image:secure_url'?: string;- 'twitter:image'?: string;- 'twitter:image:src'?: string;-}--function fallbackFavicon(url: string) {- try {- const hostname = new URL(url).hostname;- return `https://icons.duckduckgo.com/ip3/${hostname}.ico`;- } catch {- // If URL parsing fails, use the original string- return `https://icons.duckduckgo.com/ip3/${url}.ico`;- }-}--function findBestFavicon(favicons: UrlMetaData['favicons']) {- const match = favicons- .sort((a, b) => a.rel.length - b.rel.length)- .find(- (favicon) =>- favicon.rel === 'shortcut icon' ||- favicon.rel === 'icon' ||- favicon.rel === 'apple-touch-icon'- );-- return match ? match.href : null;-}--function findBestOgImage(data: UrlMetaData): string | null {- // Priority order for OG images- const candidates = [- data['og:image:secure_url'],- data['og:image:url'],- data['og:image'],- data['twitter:image:src'],- data['twitter:image'],- ];-- for (const candidate of candidates) {- if (candidate?.trim()) {- return candidate.trim();- }- }-- return null;-}--function transform(data: UrlMetaData, url: string) {- const favicon = findBestFavicon(data.favicons);- const ogImage = findBestOgImage(data);-- return {- favicon: favicon ? new URL(favicon, url).toString() : fallbackFavicon(url),- ogImage: ogImage ? new URL(ogImage, url).toString() : null,- };-}--// This fetch is guarded by url-metadata's own bundled `request-filtering-agent`,-// not by this module's `assertPublicUrl`/`safeFetch` (used for the image fetch-// that follows) — a different SSRF implementation for this hop, not the same one.-export async function parseUrlMeta(url: string) {- try {- const metadata = (await urlMetadata(url, {- timeout: URL_METADATA_TIMEOUT_MS,- })) as UrlMetaData;- return transform(metadata, url);- } catch {- return {- favicon: fallbackFavicon(url),- ogImage: null,- };- }-}diff --git a/packages/logos/README.md b/packages/logos/README.mdnew file mode 100644index 000000000..90e480985--- /dev/null+++ b/packages/logos/README.md@@ -0,0 +1,16 @@+# @openpanel/logos++Brand logos the dashboard shows next to browser, OS, device and a few+referrer names: committed PNGs plus the map from a name to its file.++They used to be hotlinked from Wikipedia, blogs and app stores and+rasterized by the api on request. Now they are files in this package, so the+dashboard needs no image proxy for them and they do not change under it.++- `src/sources.ts` says where each logo comes from and which names map to it.+ A logo that is a black glyph sets `dark: 'invert'` (or a separate source+ URL) and gets a `-dark.png` the dashboard shows on the dark theme.+- `bun run generate` downloads the sources, renders each to a 64x64+ transparent PNG in `assets/` and rewrites `src/index.ts`. Run it on a dev+ machine when a source changes and commit the result; it is not a build step,+ so CI never downloads anything.diff --git a/packages/logos/assets/amazon.png b/packages/logos/assets/amazon.pngnew file mode 100644index 000000000..cc904b33dBinary files /dev/null and b/packages/logos/assets/amazon.png differdiff --git a/packages/logos/assets/android.png b/packages/logos/assets/android.pngnew file mode 100644index 000000000..a80b4e475Binary files /dev/null and b/packages/logos/assets/android.png differdiff --git a/packages/logos/assets/apple-dark.png b/packages/logos/assets/apple-dark.pngnew file mode 100644index 000000000..8f148ef7cBinary files /dev/null and b/packages/logos/assets/apple-dark.png differdiff --git a/packages/logos/assets/apple.png b/packages/logos/assets/apple.pngnew file mode 100644index 000000000..4fee1b235Binary files /dev/null and b/packages/logos/assets/apple.png differdiff --git a/packages/logos/assets/asus-dark.png b/packages/logos/assets/asus-dark.pngnew file mode 100644index 000000000..32927f07cBinary files /dev/null and b/packages/logos/assets/asus-dark.png differdiff --git a/packages/logos/assets/asus.png b/packages/logos/assets/asus.pngnew file mode 100644index 000000000..917f6a3e6Binary files /dev/null and b/packages/logos/assets/asus.png differdiff --git a/packages/logos/assets/chrome.png b/packages/logos/assets/chrome.pngnew file mode 100644index 000000000..b186e42a5Binary files /dev/null and b/packages/logos/assets/chrome.png differdiff --git a/packages/logos/assets/chromecast-dark.png b/packages/logos/assets/chromecast-dark.pngnew file mode 100644index 000000000..81e081a88Binary files /dev/null and b/packages/logos/assets/chromecast-dark.png differdiff --git a/packages/logos/assets/chromecast.png b/packages/logos/assets/chromecast.pngnew file mode 100644index 000000000..1c5765382Binary files /dev/null and b/packages/logos/assets/chromecast.png differdiff --git a/packages/logos/assets/chromium.png b/packages/logos/assets/chromium.pngnew file mode 100644index 000000000..591139c7fBinary files /dev/null and b/packages/logos/assets/chromium.png differdiff --git a/packages/logos/assets/edge.png b/packages/logos/assets/edge.pngnew file mode 100644index 000000000..1cd0ce5c3Binary files /dev/null and b/packages/logos/assets/edge.png differdiff --git a/packages/logos/assets/firefox.png b/packages/logos/assets/firefox.pngnew file mode 100644index 000000000..300aaec56Binary files /dev/null and b/packages/logos/assets/firefox.png differdiff --git a/packages/logos/assets/huawei-browser.png b/packages/logos/assets/huawei-browser.pngnew file mode 100644index 000000000..92a4b0399Binary files /dev/null and b/packages/logos/assets/huawei-browser.png differdiff --git a/packages/logos/assets/huawei.png b/packages/logos/assets/huawei.pngnew file mode 100644index 000000000..590ddf0adBinary files /dev/null and b/packages/logos/assets/huawei.png differdiff --git a/packages/logos/assets/ios.png b/packages/logos/assets/ios.pngnew file mode 100644index 000000000..56afbb145Binary files /dev/null and b/packages/logos/assets/ios.png differdiff --git a/packages/logos/assets/lg.png b/packages/logos/assets/lg.pngnew file mode 100644index 000000000..51d442eeaBinary files /dev/null and b/packages/logos/assets/lg.png differdiff --git a/packages/logos/assets/linux.png b/packages/logos/assets/linux.pngnew file mode 100644index 000000000..a2e18ccdaBinary files /dev/null and b/packages/logos/assets/linux.png differdiff --git a/packages/logos/assets/miui-browser.png b/packages/logos/assets/miui-browser.pngnew file mode 100644index 000000000..932e84e81Binary files /dev/null and b/packages/logos/assets/miui-browser.png differdiff --git a/packages/logos/assets/motorola.png b/packages/logos/assets/motorola.pngnew file mode 100644index 000000000..43bf31e61Binary files /dev/null and b/packages/logos/assets/motorola.png differdiff --git a/packages/logos/assets/oneplus.png b/packages/logos/assets/oneplus.pngnew file mode 100644index 000000000..2753f9001Binary files /dev/null and b/packages/logos/assets/oneplus.png differdiff --git a/packages/logos/assets/opera.png b/packages/logos/assets/opera.pngnew file mode 100644index 000000000..964858db3Binary files /dev/null and b/packages/logos/assets/opera.png differdiff --git a/packages/logos/assets/oppo.png b/packages/logos/assets/oppo.pngnew file mode 100644index 000000000..7504e1be9Binary files /dev/null and b/packages/logos/assets/oppo.png differdiff --git a/packages/logos/assets/qqbrowser.png b/packages/logos/assets/qqbrowser.pngnew file mode 100644index 000000000..efb0cb02bBinary files /dev/null and b/packages/logos/assets/qqbrowser.png differdiff --git a/packages/logos/assets/quark.png b/packages/logos/assets/quark.pngnew file mode 100644index 000000000..7c8bab3a7Binary files /dev/null and b/packages/logos/assets/quark.png differdiff --git a/packages/logos/assets/safari.png b/packages/logos/assets/safari.pngnew file mode 100644index 000000000..a8b8d651cBinary files /dev/null and b/packages/logos/assets/safari.png differdiff --git a/packages/logos/assets/samsung-internet.png b/packages/logos/assets/samsung-internet.pngnew file mode 100644index 000000000..2fe2811adBinary files /dev/null and b/packages/logos/assets/samsung-internet.png differdiff --git a/packages/logos/assets/samsung.png b/packages/logos/assets/samsung.pngnew file mode 100644index 000000000..c076fb670Binary files /dev/null and b/packages/logos/assets/samsung.png differdiff --git a/packages/logos/assets/silk.png b/packages/logos/assets/silk.pngnew file mode 100644index 000000000..afc7940acBinary files /dev/null and b/packages/logos/assets/silk.png differdiff --git a/packages/logos/assets/sony-dark.png b/packages/logos/assets/sony-dark.pngnew file mode 100644index 000000000..0d586a02dBinary files /dev/null and b/packages/logos/assets/sony-dark.png differdiff --git a/packages/logos/assets/sony.png b/packages/logos/assets/sony.pngnew file mode 100644index 000000000..a3008103dBinary files /dev/null and b/packages/logos/assets/sony.png differdiff --git a/packages/logos/assets/ubuntu.png b/packages/logos/assets/ubuntu.pngnew file mode 100644index 000000000..8bc3d90acBinary files /dev/null and b/packages/logos/assets/ubuntu.png differdiff --git a/packages/logos/assets/vivo-browser.png b/packages/logos/assets/vivo-browser.pngnew file mode 100644index 000000000..41999a52aBinary files /dev/null and b/packages/logos/assets/vivo-browser.png differdiff --git a/packages/logos/assets/windows.png b/packages/logos/assets/windows.pngnew file mode 100644index 000000000..adf366ca6Binary files /dev/null and b/packages/logos/assets/windows.png differdiff --git a/packages/logos/assets/xiaomi.png b/packages/logos/assets/xiaomi.pngnew file mode 100644index 000000000..bb8d1223dBinary files /dev/null and b/packages/logos/assets/xiaomi.png differdiff --git a/packages/logos/package.json b/packages/logos/package.jsonnew file mode 100644index 000000000..144a47275--- /dev/null+++ b/packages/logos/package.json@@ -0,0 +1,20 @@+{+ "name": "@openpanel/logos",+ "version": "0.0.1",+ "type": "module",+ "private": true,+ "sideEffects": false,+ "exports": {+ ".": "./src/index.ts"+ },+ "scripts": {+ "typecheck": "tsc --noEmit",+ "generate": "bun scripts/generate.ts"+ },+ "devDependencies": {+ "@openpanel/tsconfig": "workspace:*",+ "@types/node": "catalog:",+ "sharp": "0.35.5",+ "typescript": "catalog:"+ }+}diff --git a/packages/logos/scripts/generate.ts b/packages/logos/scripts/generate.tsnew file mode 100644index 000000000..bd1ea4f72--- /dev/null+++ b/packages/logos/scripts/generate.ts@@ -0,0 +1,200 @@+// Downloads every source in src/sources.ts, renders it to a square+// transparent PNG in assets/ (plus a `-dark` one where configured) and+// rewrites src/index.ts. Run by hand, commit the result. Exits non-zero if+// any source failed so a broken logo is never silently dropped from the map.+// Existing PNGs are kept unless `--force` is passed, so a rerun only fetches+// what is missing.++import { access, mkdir, readFile, writeFile } from 'node:fs/promises';+import path from 'node:path';+import { fileURLToPath } from 'node:url';+import sharp from 'sharp';+import { LOGO_SOURCES } from '../src/sources';++const LOGO_SIZE = 64;+// Rasterize SVGs at a high density so a 64px downscale stays crisp.+const SVG_DENSITY = 300;+const FETCH_TIMEOUT_MS = 15_000;+// Wikimedia throttles bursts; space the downloads and back off on 429.+const PAUSE_BETWEEN_DOWNLOADS_MS = 4000;+const RETRY_DELAYS_MS = [20_000, 60_000, 120_000];+const HTTP_TOO_MANY_REQUESTS = 429;+// Wikimedia's policy wants a descriptive agent with a contact and throttles+// anonymous browser strings; some other hosts refuse anything but a browser.+const WIKIMEDIA_USER_AGENT =+ 'OpenPanelLogoFetcher/1.0 (https://openpanel.dev; [email protected])';+const BROWSER_USER_AGENT =+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0 Safari/537.36';+const TRANSPARENT = { r: 0, g: 0, b: 0, alpha: 0 };++const packageRoot = fileURLToPath(new URL('..', import.meta.url));+const assetsDir = path.join(packageRoot, 'assets');+const indexFile = path.join(packageRoot, 'src', 'index.ts');++const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms));++function userAgentFor(url: string): string {+ return new URL(url).hostname.endsWith('wikimedia.org')+ ? WIKIMEDIA_USER_AGENT+ : BROWSER_USER_AGENT;+}++async function download(url: string, attempt = 0): Promise<Buffer> {+ const response = await fetch(url, {+ headers: { 'user-agent': userAgentFor(url), accept: 'image/*,*/*;q=0.8' },+ signal: AbortSignal.timeout(FETCH_TIMEOUT_MS),+ });+ if (+ response.status === HTTP_TOO_MANY_REQUESTS &&+ attempt < RETRY_DELAYS_MS.length+ ) {+ await sleep(RETRY_DELAYS_MS[attempt]!);+ return download(url, attempt + 1);+ }+ if (!response.ok) {+ throw new Error(`HTTP ${response.status}`);+ }+ return Buffer.from(await response.arrayBuffer());+}++async function exists(file: string): Promise<boolean> {+ try {+ await access(file);+ return true;+ } catch {+ return false;+ }+}++async function render(source: Buffer): Promise<Buffer> {+ return sharp(source, { density: SVG_DENSITY })+ .resize(LOGO_SIZE, LOGO_SIZE, { fit: 'contain', background: TRANSPARENT })+ .png()+ .toBuffer();+}++function toIdentifier(slug: string): string {+ return slug.replace(/-([a-z0-9])/g, (_, char: string) => char.toUpperCase());+}++/** Negates the colour channels and keeps the alpha, so a black glyph turns white. */+function invert(png: Buffer): Promise<Buffer> {+ return sharp(png).negate({ alpha: false }).png().toBuffer();+}++async function renderDark(+ dark: string | 'invert',+ lightFile: string+): Promise<Buffer> {+ if (dark === 'invert') {+ return invert(await readFile(lightFile));+ }+ return render(await download(dark));+}++const PLAIN_KEY = /^[a-z_$][a-z0-9_$]*$/i;++// Biome wants quotes only where needed.+function key(name: string): string {+ return PLAIN_KEY.test(name) ? name : `'${name}'`;+}++function renderIndex(slugs: string[]): string {+ const imports = slugs+ .flatMap((slug) => {+ const id = toIdentifier(slug);+ const lines = [`import ${id} from '../assets/${slug}.png';`];+ if (LOGO_SOURCES[slug]!.dark) {+ lines.push(`import ${id}Dark from '../assets/${slug}-dark.png';`);+ }+ return lines;+ })+ .join('\n');+ const entries = slugs+ .flatMap((slug) => {+ const id = toIdentifier(slug);+ const value = LOGO_SOURCES[slug]!.dark+ ? `{ light: ${id}, dark: ${id}Dark }`+ : `{ light: ${id} }`;+ return [...LOGO_SOURCES[slug]!.names]+ .sort()+ .map((name) => ` ${key(name)}: ${value},`);+ })+ .join('\n');+ return `// Generated by scripts/generate.ts from src/sources.ts. Do not edit.++${imports}++export type LogoTheme = 'light' | 'dark';++export interface Logo {+ light: string;+ /** Only where the light file would vanish on a dark background. */+ dark?: string;+}++/** Lower-cased serie name (browser, OS, device, referrer) to its logo files. */+export const LOGOS: Readonly<Record<string, Logo>> = {+${entries}+};++export function getLogo(name: string): Logo | undefined {+ return LOGOS[name.toLowerCase()];+}++/** The file to show for the theme; falls back to the light one. */+export function getLogoUrl(+ name: string,+ theme: LogoTheme = 'light'+): string | undefined {+ const logo = getLogo(name);+ if (!logo) {+ return undefined;+ }+ return theme === 'dark' ? (logo.dark ?? logo.light) : logo.light;+}+`;+}++async function main(): Promise<void> {+ await mkdir(assetsDir, { recursive: true });+ const slugs = Object.keys(LOGO_SOURCES).sort();+ const force = process.argv.includes('--force');+ const failures: string[] = [];++ for (const slug of slugs) {+ const { url, dark } = LOGO_SOURCES[slug]!;+ const file = path.join(assetsDir, `${slug}.png`);+ const darkFile = path.join(assetsDir, `${slug}-dark.png`);+ try {+ if (force || !(await exists(file))) {+ const png = await render(await download(url));+ await writeFile(file, png);+ console.log(`ok ${slug} (${png.length} bytes)`);+ await sleep(PAUSE_BETWEEN_DOWNLOADS_MS);+ } else {+ console.log(`keep ${slug}`);+ }+ if (dark && (force || !(await exists(darkFile)))) {+ const png = await renderDark(dark, file);+ await writeFile(darkFile, png);+ console.log(`ok ${slug}-dark (${png.length} bytes)`);+ }+ } catch (error) {+ failures.push(slug);+ console.error(`FAIL ${slug}: ${(error as Error).message} <- ${url}`);+ }+ }++ // The committed index stays as it is when a source fails, so a rerun with+ // `--force` cannot drop a logo whose PNG is still there.+ if (failures.length > 0) {+ console.error(+ `\n${failures.length} logo(s) failed: ${failures.join(', ')}`+ );+ process.exit(1);+ }+ await writeFile(indexFile, renderIndex(slugs));+}++await main();diff --git a/packages/logos/src/assets.d.ts b/packages/logos/src/assets.d.tsnew file mode 100644index 000000000..faeb9d477--- /dev/null+++ b/packages/logos/src/assets.d.ts@@ -0,0 +1,4 @@+declare module '*.png' {+ const url: string;+ export default url;+}diff --git a/packages/logos/src/index.ts b/packages/logos/src/index.tsnew file mode 100644index 000000000..0b224d74d--- /dev/null+++ b/packages/logos/src/index.ts@@ -0,0 +1,104 @@+// Generated by scripts/generate.ts from src/sources.ts. Do not edit.++import amazon from '../assets/amazon.png';+import android from '../assets/android.png';+import apple from '../assets/apple.png';+import appleDark from '../assets/apple-dark.png';+import asus from '../assets/asus.png';+import asusDark from '../assets/asus-dark.png';+import chrome from '../assets/chrome.png';+import chromecast from '../assets/chromecast.png';+import chromecastDark from '../assets/chromecast-dark.png';+import chromium from '../assets/chromium.png';+import edge from '../assets/edge.png';+import firefox from '../assets/firefox.png';+import huawei from '../assets/huawei.png';+import huaweiBrowser from '../assets/huawei-browser.png';+import ios from '../assets/ios.png';+import lg from '../assets/lg.png';+import linux from '../assets/linux.png';+import miuiBrowser from '../assets/miui-browser.png';+import motorola from '../assets/motorola.png';+import oneplus from '../assets/oneplus.png';+import opera from '../assets/opera.png';+import oppo from '../assets/oppo.png';+import qqbrowser from '../assets/qqbrowser.png';+import quark from '../assets/quark.png';+import safari from '../assets/safari.png';+import samsung from '../assets/samsung.png';+import samsungInternet from '../assets/samsung-internet.png';+import silk from '../assets/silk.png';+import sony from '../assets/sony.png';+import sonyDark from '../assets/sony-dark.png';+import ubuntu from '../assets/ubuntu.png';+import vivoBrowser from '../assets/vivo-browser.png';+import windows from '../assets/windows.png';+import xiaomi from '../assets/xiaomi.png';++export type LogoTheme = 'light' | 'dark';++export interface Logo {+ light: string;+ /** Only where the light file would vanish on a dark background. */+ dark?: string;+}++/** Lower-cased serie name (browser, OS, device, referrer) to its logo files. */+export const LOGOS: Readonly<Record<string, Logo>> = {+ amazon: { light: amazon },+ android: { light: android },+ 'android browser': { light: android },+ apple: { light: apple, dark: appleDark },+ 'mac os': { light: apple, dark: appleDark },+ macos: { light: apple, dark: appleDark },+ asus: { light: asus, dark: asusDark },+ chrome: { light: chrome },+ 'chrome headless': { light: chrome },+ 'chrome webview': { light: chrome },+ 'mobile chrome': { light: chrome },+ chromecast: { light: chromecast, dark: chromecastDark },+ chromium: { light: chromium },+ 'chromium os': { light: chromium },+ edge: { light: edge },+ firefox: { light: firefox },+ 'mobile firefox': { light: firefox },+ huawei: { light: huawei },+ 'huawei browser': { light: huaweiBrowser },+ ios: { light: ios },+ lg: { light: lg },+ linux: { light: linux },+ 'miui browser': { light: miuiBrowser },+ motorola: { light: motorola },+ oneplus: { light: oneplus },+ opera: { light: opera },+ 'opera touch': { light: opera },+ oppo: { light: oppo },+ qqbrowser: { light: qqbrowser },+ quark: { light: quark },+ 'mobile safari': { light: safari },+ safari: { light: safari },+ samsung: { light: samsung },+ 'samsung internet': { light: samsungInternet },+ silk: { light: silk },+ sony: { light: sony, dark: sonyDark },+ ubuntu: { light: ubuntu },+ 'vivo browser': { light: vivoBrowser },+ windows: { light: windows },+ xiaomi: { light: xiaomi },+};++export function getLogo(name: string): Logo | undefined {+ return LOGOS[name.toLowerCase()];+}++/** The file to show for the theme; falls back to the light one. */+export function getLogoUrl(+ name: string,+ theme: LogoTheme = 'light'+): string | undefined {+ const logo = getLogo(name);+ if (!logo) {+ return undefined;+ }+ return theme === 'dark' ? (logo.dark ?? logo.light) : logo.light;+}diff --git a/packages/logos/src/sources.ts b/packages/logos/src/sources.tsnew file mode 100644index 000000000..49a420a48--- /dev/null+++ b/packages/logos/src/sources.ts@@ -0,0 +1,141 @@+// Where each logo comes from, and which serie names show it. The slug is the+// file name under assets/. Keep sources on Wikimedia where one exists: the+// others have moved or disappeared before.++export interface LogoSource {+ url: string;+ names: readonly string[];+ /**+ * The dark-theme file: a separate source, or `'invert'` to negate the+ * light one, which is right for a single-colour black glyph.+ */+ dark?: string | 'invert';+}++export const LOGO_SOURCES: Readonly<Record<string, LogoSource>> = {+ amazon: {+ url: 'https://upload.wikimedia.org/wikipedia/commons/4/4a/Amazon_icon.svg',+ names: ['amazon'],+ },+ android: {+ url: 'https://upload.wikimedia.org/wikipedia/commons/d/d7/Android_robot.svg',+ names: ['android', 'android browser'],+ },+ apple: {+ url: 'https://upload.wikimedia.org/wikipedia/commons/f/fa/Apple_logo_black.svg',+ dark: 'invert',+ names: ['apple', 'mac os', 'macos'],+ },+ asus: {+ url: 'https://upload.wikimedia.org/wikipedia/commons/2/2e/ASUS_Logo.svg',+ dark: 'invert',+ names: ['asus'],+ },+ chrome: {+ url: 'https://upload.wikimedia.org/wikipedia/commons/e/e1/Google_Chrome_icon_%28February_2022%29.svg',+ names: ['chrome', 'mobile chrome', 'chrome webview', 'chrome headless'],+ },+ chromecast: {+ url: 'https://upload.wikimedia.org/wikipedia/commons/archive/2/26/20161130022732%21Chromecast_cast_button_icon.svg',+ dark: 'invert',+ names: ['chromecast'],+ },+ chromium: {+ url: 'https://upload.wikimedia.org/wikipedia/commons/2/28/Chromium_Logo.svg',+ names: ['chromium', 'chromium os'],+ },+ edge: {+ url: 'https://upload.wikimedia.org/wikipedia/commons/7/7e/Microsoft_Edge_logo_%282019%29.png',+ names: ['edge'],+ },+ firefox: {+ url: 'https://upload.wikimedia.org/wikipedia/commons/a/a0/Firefox_logo%2C_2019.svg',+ names: ['firefox', 'mobile firefox'],+ },+ huawei: {+ url: 'https://upload.wikimedia.org/wikipedia/en/0/04/Huawei_Standard_logo.svg',+ names: ['huawei'],+ },+ 'huawei-browser': {+ url: 'https://www.apkmirror.com/wp-content/themes/APKMirror/ap_resize/ap_resize.php?src=https%3A%2F%2Fdownloadr2.apkmirror.com%2Fwp-content%2Fuploads%2F2021%2F09%2F49%2F613e45827fe31.png',+ names: ['huawei browser'],+ },+ ios: {+ url: 'https://upload.wikimedia.org/wikipedia/commons/c/ca/IOS_logo.svg',+ names: ['ios'],+ },+ lg: {+ url: 'https://upload.wikimedia.org/wikipedia/commons/2/20/LG_symbol.svg',+ names: ['lg'],+ },+ linux: {+ url: 'https://upload.wikimedia.org/wikipedia/commons/3/35/Tux.svg',+ names: ['linux'],+ },+ 'miui-browser': {+ url: 'https://www.apkmirror.com/wp-content/themes/APKMirror/ap_resize/ap_resize.php?src=https%3A%2F%2Fdownloadr2.apkmirror.com%2Fwp-content%2Fuploads%2F2020%2F07%2F79%2F5f06abb0c532a.png',+ names: ['miui browser'],+ },+ motorola: {+ url: 'https://upload.wikimedia.org/wikipedia/commons/8/8f/Motorola_M_symbol_blue.svg',+ names: ['motorola'],+ },+ oneplus: {+ url: 'https://pbs.twimg.com/profile_images/1709165009148809216/ebHb4xhF_400x400.png',+ names: ['oneplus'],+ },+ opera: {+ url: 'https://upload.wikimedia.org/wikipedia/commons/4/49/Opera_2015_icon.svg',+ names: ['opera', 'opera touch'],+ },+ oppo: {+ url: 'https://indoleads.nyc3.cdn.digitaloceanspaces.com/uploads/offers/logos/8695_95411e367b832.png',+ names: ['oppo'],+ },+ qqbrowser: {+ url: 'https://cdn6.aptoide.com/imgs/6/1/4/614713aba4f9ca93a4e20257014d0713_icon.png',+ names: ['qqbrowser'],+ },+ quark: {+ url: 'https://play-lh.googleusercontent.com/o__Uwu3TEsDVJ92m6zacy2GXotP2faFAlLQJOgOxYFsgoDkDYwODQ4STHY1fe0n_imlpiiUiE-QgRQaWdyi99w=w240-h480-rw',+ names: ['quark'],+ },+ // Wikimedia no longer hosts the Safari compass; simpleicons' glyph in Safari blue.+ safari: {+ url: 'https://cdn.simpleicons.org/safari/006CFF',+ names: ['safari', 'mobile safari'],+ },+ samsung: {+ url: 'https://upload.wikimedia.org/wikipedia/commons/6/61/Samsung_old_logo_before_year_2015.svg',+ names: ['samsung'],+ },+ 'samsung-internet': {+ url: 'https://upload.wikimedia.org/wikipedia/commons/e/e9/Samsung_Internet_logo.svg',+ names: ['samsung internet'],+ },+ silk: {+ url: 'https://m.media-amazon.com/images/I/51VCjQCvF0L.png',+ names: ['silk'],+ },+ sony: {+ url: 'https://upload.wikimedia.org/wikipedia/commons/c/ca/Sony_logo.svg',+ dark: 'invert',+ names: ['sony'],+ },+ ubuntu: {+ url: 'https://upload.wikimedia.org/wikipedia/commons/a/ab/Logo-ubuntu_cof-orange-hex.svg',+ names: ['ubuntu'],+ },+ 'vivo-browser': {+ url: 'https://play-lh.googleusercontent.com/SYGXsBZOFsI4p72IoWtJiuAdp2Acv0WB4e6R1jxNcQdPcOdP1sXk_Cfcr1KBt2lzZQ=w480-h960-rw',+ names: ['vivo browser'],+ },+ windows: {+ url: 'https://upload.wikimedia.org/wikipedia/commons/c/c7/Windows_logo_-_2012.png',+ names: ['windows'],+ },+ xiaomi: {+ url: 'https://upload.wikimedia.org/wikipedia/commons/2/29/Xiaomi_logo.svg',+ names: ['xiaomi'],+ },+};diff --git a/packages/logos/tsconfig.json b/packages/logos/tsconfig.jsonnew file mode 100644index 000000000..cdc077b0f--- /dev/null+++ b/packages/logos/tsconfig.json@@ -0,0 +1,10 @@+{+ "extends": "@openpanel/tsconfig/base.json",+ "compilerOptions": {+ "lib": ["ESNext", "DOM"],+ "types": ["node"],+ "tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json"+ },+ "include": ["src", "scripts"],+ "exclude": ["node_modules"]+}