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KACXY,EAAE,KAAKI,CAAM,EACbhB,EAAI,OAAS,EACZY,EAAE,MAAMZ,EAAI,MAAM,eAAea,CAAG,EAAGG,CAAM,EAC7C,GAEL,MAAO,CACN,MAAOJ,EAAE,MAAMM,CAAS,EACxB,YAAaN,EAAE,KAAKO,EAAMC,EAAOL,EAAGX,EAAUJ,CAAG,CAAC,EAAGgB,CAAM,EAAIK,EAAST,EAAE,IAAA,CAE5E,CAGO,SAASU,EAAmBX,EAA6C,CAC/E,MAAMY,EAAOZ,IAAW,KAAO,CAAC,GAAGlB,EAAe,GAAGG,CAAa,EAAIA,EACtE,OAAO,OAAO,YAAY2B,EAAK,IAAKzB,GAAM,CAACC,EAAaD,CAAC,EAAGY,EAAYZ,EAAGa,CAAM,CAAC,CAAC,CAAC,CACrF","names":["SIZE_PAGE_BASE","SIZE_PAGE_INCHES","SIZE_PAGE_CM","_","i","SIZE_PAGES_IN","v","chartRow","SIZE_PAGES_CM","BY_SLUG","r","sizePagePath","row","sizePageBySlug","slug","sizePageFor","sideShare","WORDS","n","o","p","l","sizePageSeo","locale","w","tag","LOCALE_INFO","n1","longer","inch","titleSize","size","other","rarity","sizePageSeoEntries","rows"],"sources":["../../../../../../src/lib/tools/size-pages.ts"],"sourcesContent":["import { chartRow, type ChartRow } from './size-chart';\nimport { LOCALE_INFO, type Locale } from '$lib/i18n/locales';\n\n/**\n * One page per erect length (RAT-609, RAT-610): \"7 inch penis\" (12.1K a month,\n * US), \"6 inch penis\" (9.9K), \"pene de 18 cm\" (3.6K, MX) and the rest of the\n * N-inch cluster (~100K a month, KD 25–44, Semrush 2026-10-11) had no page of\n * their own. Inch pages are English; the cm pages exist in every language,\n * since that's how the other markets search. Each page's numbers come from\n * the chart's own row (Veale 2015), so no two pages say the same thing.\n */\n\nexport const SIZE_PAGE_BASE = '/tools/penis-size';\nexport const SIZE_PAGE_INCHES = [4, 4.5, 5, 5.5, 6, 6.5, 7, 7.5, 8, 8.5, 9, 9.5, 10];\nexport const SIZE_PAGE_CM = Array.from({ length: 16 }, (_, i) => 10 + i);\n\nexport const SIZE_PAGES_IN: ChartRow[] = SIZE_PAGE_INCHES.map((v) => chartRow(v, 'in'));\nexport const SIZE_PAGES_CM: ChartRow[] = SIZE_PAGE_CM.map((v) => chartRow(v, 'cm'));\n\nconst BY_SLUG = new Map([...SIZE_PAGES_IN, ...SIZE_PAGES_CM].map((r) => [r.id, r]));\n\nexport const sizePagePath = (row: Pick<ChartRow, 'id'>) => `${SIZE_PAGE_BASE}/${row.id}`;\n\nexport function sizePageBySlug(slug: string): ChartRow | undefined {\n\treturn BY_SLUG.get(slug);\n}\n\n/** The page for a chart row, if that size has one. */\nexport function sizePageFor(row: Pick<ChartRow, 'id'>): string | null {\n\treturn BY_SLUG.has(row.id) ? sizePagePath(row) : null;\n}\n\nexport const SIZE_PAGE_PATHS_IN = SIZE_PAGES_IN.map(sizePagePath);\nexport const SIZE_PAGE_PATHS_CM = SIZE_PAGES_CM.map(sizePagePath);\n\nexport type SizePageSeo = { title: string; description: string };\n\n/** Share of men on the row's side, never rounded up to 100. */\nconst sideShare = (r: ChartRow) => Math.min(99.9, r.side === 'longer' ? r.pct : 100 - r.pct);\n\ntype Words = {\n\t/** \"in\" in the language, after a converted length */\n\tinch: string;\n\ttitle: (n: string) => string;\n\tlead: (n: string, other: string, pct: string, longer: boolean) => string;\n\toneIn: (n: string, longer: boolean) => string;\n\trare: (longer: boolean) => string;\n\ttail: string;\n};\n\n/** Titles and descriptions per language, written for the local search\n *  (\"pene de 18 cm\", \"18 cm Penis\"), not translated from the English line. */\nconst WORDS: Record<Locale, Words> = {\n\ten: {\n\t\tinch: 'in',\n\t\ttitle: (n) => `${n} Penis: Is It Big? Percentile & Rarity | RateMyD`,\n\t\t// \"An 8-inch\", \"An 18 cm\"\n\t\tlead: (n, o, p, l) =>\n\t\t\t`${/^(8|11|18)/.test(n) ? 'An' : 'A'} ${n} (${o}) erect penis is ${l ? 'longer' : 'shorter'} than ${p}% of men`,\n\t\toneIn: (n, l) => `, about 1 in ${n} is ${l ? 'longer' : 'shorter'}`,\n\t\trare: (l) => `, fewer than 1 in 10,000 are ${l ? 'longer' : 'shorter'}`,\n\t\ttail: '. Is it big, how it compares to the average, and how to measure.'\n\t},\n\tde: {\n\t\tinch: 'Zoll',\n\t\ttitle: (n) => `${n} Penis: Ist das groß? Perzentil & Seltenheit | RateMyD`,\n\t\tlead: (n, o, p, l) =>\n\t\t\t`Ein erigierter Penis von ${n} (${o}) ist ${l ? 'länger' : 'kürzer'} als ${p} % der Männer`,\n\t\toneIn: (n, l) => `, etwa 1 von ${n} ist ${l ? 'länger' : 'kürzer'}`,\n\t\trare: (l) => `, unter 1 von 10.000 ist ${l ? 'länger' : 'kürzer'}`,\n\t\ttail: '. Ob das groß ist und wie man richtig misst.'\n\t},\n\tes: {\n\t\tinch: 'pulgadas',\n\t\ttitle: (n) => `Pene de ${n}: ¿es grande? Percentil y rareza | RateMyD`,\n\t\tlead: (n, o, p, l) =>\n\t\t\t`Un pene erecto de ${n} (${o}) es más ${l ? 'largo' : 'corto'} que el ${p} % de los hombres`,\n\t\toneIn: (n, l) => `, más o menos 1 de cada ${n} es más ${l ? 'largo' : 'corto'}`,\n\t\trare: (l) => `, menos de 1 de cada 10.000 es más ${l ? 'largo' : 'corto'}`,\n\t\ttail: '. Si es grande y cómo medirlo bien.'\n\t},\n\tit: {\n\t\tinch: 'pollici',\n\t\ttitle: (n) => `Pene di ${n}: è grande? Percentile e rarità | RateMyD`,\n\t\tlead: (n, o, p, l) =>\n\t\t\t`Un pene eretto di ${n} (${o}) è più ${l ? 'lungo' : 'corto'} del ${p}% degli uomini`,\n\t\toneIn: (n, l) => `, circa 1 su ${n} è più ${l ? 'lungo' : 'corto'}`,\n\t\trare: (l) => `, meno di 1 su 10.000 è più ${l ? 'lungo' : 'corto'}`,\n\t\ttail: '. Se è grande e come misurarlo bene.'\n\t},\n\tfr: {\n\t\tinch: 'pouces',\n\t\ttitle: (n) => `Pénis de ${n} : est-ce grand ? Percentile et rareté | RateMyD`,\n\t\tlead: (n, o, p, l) =>\n\t\t\t`Un pénis en érection de ${n} (${o}) est plus ${l ? 'long' : 'court'} que ${p} % des hommes`,\n\t\toneIn: (n, l) => `, environ 1 sur ${n} est plus ${l ? 'long' : 'court'}`,\n\t\trare: (l) => `, moins de 1 sur 10 000 est plus ${l ? 'long' : 'court'}`,\n\t\ttail: '. S’il est grand et comment bien mesurer.'\n\t},\n\tpt: {\n\t\tinch: 'polegadas',\n\t\ttitle: (n) => `Pênis de ${n}: é grande? Percentil e raridade | RateMyD`,\n\t\tlead: (n, o, p, l) =>\n\t\t\t`Um pênis ereto de ${n} (${o}) é ${l ? 'maior' : 'menor'} que ${p}% dos homens`,\n\t\toneIn: (n, l) => `, cerca de 1 em ${n} é ${l ? 'maior' : 'menor'}`,\n\t\trare: (l) => `, menos de 1 em 10.000 é ${l ? 'maior' : 'menor'}`,\n\t\ttail: '. Se é grande, a comparação com a média e como medir.'\n\t},\n\thu: {\n\t\tinch: 'hüvelyk',\n\t\ttitle: (n) => `${n}-es pénisz: nagynak számít? Percentilis és ritkaság | RateMyD`,\n\t\tlead: (n, o, p, l) =>\n\t\t\t`Egy ${n}-es (${o}) merev pénisz ${l ? 'hosszabb' : 'rövidebb'} a férfiak ${p}%-ánál`,\n\t\toneIn: (n, l) => `; nagyjából minden ${n}. férfié ${l ? 'hosszabb' : 'rövidebb'}`,\n\t\trare: (l) => `; 10 000 férfiból kevesebb mint egyé ${l ? 'hosszabb' : 'rövidebb'}`,\n\t\ttail: '. Nagynak számít-e, és hogyan mérd le pontosan.'\n\t}\n};\n\n/** The page's title and description in a language. Inch pages are English\n *  only; a cm page has one per language. */\nexport function sizePageSeo(row: ChartRow, locale: Locale): SizePageSeo {\n\tconst w = WORDS[locale];\n\tconst tag = LOCALE_INFO[locale].hreflang;\n\tconst n1 = (v: number) => v.toLocaleString(tag, { maximumFractionDigits: 1 });\n\tconst longer = row.side === 'longer';\n\tconst inch = row.unit === 'in';\n\t// \"7 Inch\" in an English title, \"7-inch\" in its sentence; \"18 cm\" everywhere\n\tconst titleSize = inch ? `${n1(row.value)} Inch` : `${n1(row.value)} cm`;\n\tconst size = inch ? `${n1(row.value)}-inch` : `${n1(row.value)} cm`;\n\tconst other = inch ? `${n1(row.cm)} cm` : `${n1(row.cm / 2.54)} ${w.inch}`;\n\tconst rarity =\n\t\trow.oneIn === null\n\t\t\t? w.rare(longer)\n\t\t\t: row.oneIn >= 3\n\t\t\t\t? w.oneIn(row.oneIn.toLocaleString(tag), longer)\n\t\t\t\t: '';\n\t// The sculpture test pages (RAT-654) keep this title and description too (RAT-810): see size-sculpt.ts\n\treturn {\n\t\ttitle: w.title(titleSize),\n\t\tdescription: w.lead(size, other, n1(sideShare(row)), longer) + rarity + w.tail\n\t};\n}\n\n/** SEO entries for every size page in a language, keyed by path. */\nexport function sizePageSeoEntries(locale: Locale): Record<string, SizePageSeo> {\n\tconst rows = locale === 'en' ? [...SIZE_PAGES_IN, ...SIZE_PAGES_CM] : SIZE_PAGES_CM;\n\treturn Object.fromEntries(rows.map((r) => [sizePagePath(r), sizePageSeo(r, locale)]));\n}\n"],"version":3}