A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
TypeScript agent-skillsaidsh-pluginhacktoberfestjavascriptmcp-serverreactresume-builderself-hostedtypescript
fix: preserve PDF resume fields and complete bullets (RX-93)
Amruth Pillaie3d768b16879
diff --git a/.agents/docs/rx-93-import-followups.md b/.agents/docs/rx-93-import-followups.mdnew file mode 100644index 000000000..15d338ed6--- /dev/null+++ b/.agents/docs/rx-93-import-followups.md@@ -0,0 +1,39 @@+# RX-93 PDF import evidence and remaining limits++Delivery integrates independently approved V10 onto merged main `91c1be2bf6343f3c8a51d4ff1893598bc146a131`, including RX72, RX102 and RX103, on `feature/rx-93`. Later-main paths are disjoint from the 40 reviewed feature paths. Frozen v3–v10 artifacts remain unchanged; V10 evidence is `/tmp/rx93-rework-v10/proof.md`, independent review is `/tmp/rx93-v10-independent-review/report.md`, and delivery integration proof is `/tmp/rx93-root-v12/`. No existing stored document is rewritten.++## Repaired ownership and bounded work++V9's claim that Education-first layouts always retained complete fields/description was false. Independent v9 review found single-year, month-year and empty first periods followed by a range merged two records; the projection then deleted fields that base retained. V10 identifies corroborated school/degree and area/location rows per record before assigning dates. Single dates and ranges use the existing shared date semantics. The tested single-line right-header continuation is folded by stream/font/lane/right-edge evidence; multiple right-only continuation lines remain limited as listed below. Every unassigned span remains description text; uncertain geometry keeps the generic parse instead of rewriting a merged chunk.++Strict source assertions now cover all 54 original reviewer Education failure PDFs and 180 permanent real exports across all 18 templates: single/month-year/empty first periods, reverse order, two singles, three mixed/reverse records, wrapped headers at loose typography, and linked recovered headers. Whole Education items, normalized dates, complete descriptions and source-word retention are compared. These cases establish the tested geometry contract, not a universal Education roundtrip. The original 180 full-section variants remain unchanged and passing.++Known same-stream section ownership and the existing labelled-row check close the earlier Education-as-heading regression. The extra row-trailing-cell guard was not load-bearing and was removed in V10; it receives no fix credit. Known same-stream sections bound identity collection. Page continuation retains body columns even when a text glyph begins above page origin; body-style continuation rows remain owned by the preceding section. Larger name typography cannot become an inset contact field. Website keeps the first HTTP annotation; additional linked identity labels survive as custom fields. When no website exists in source and only custom links are rendered, an untagged PDF can give identical geometry: the first custom link becomes website and the remaining links stay custom. All link text/targets survive, but original slot semantics are ambiguous. No GitHub/LinkedIn keyword guess is used.++The shared geometry owner indexes page/y neighborhoods, caches heading/annotation evidence and charges candidate visits. Dense input is rejected by a deterministic preprocessing-pair cap before pairwise geometry, or falls back when candidate budget is exhausted. The existing flat parser then runs and complete harvested line text is also retained in Summary. This intentionally duplicates content already assigned to sections; it does not produce a clean schema roundtrip. This is bounded degradation, not exact field recovery for arbitrary tables. Time thresholds supplement structural budget tests; abort timers do not bound synchronous work.++## Scope of field evidence++The old 34,473-field corpus covered Experience, basics and custom sections only. It did not certify Education, Summary, Projects, Awards or all schema fields. V9 and V10 freshly reparse that 2,639-PDF corpus and compares every formerly correct included field, even inside broadly bad cases; expected/base/v5/v6/v7 values remain inherited evidence.++A new 180-export oracle compares every identity, Summary, built-in section item, custom item and URL data field (IDs and nontextual style metadata excluded). Expected source JSON, independent Poppler text/geometry, current output and pinned base/v8 values are archived. Every mismatch remains visible in `section-classification.json`; zero newly lost fields does not mean zero mismatches. Education and Projects complete-field assertions are strict on the stated fixtures. V10's fresh 342-reviewer-PDF replay compares every source field against freshly executed base/v9/current readers; previously correct fields inside bad cases remain exposed. The 36 no-website website-slot differences and one existing Award description mapping difference against base remain explicitly unchanged, not counted as source passes. Reference/issuer/proficiency mappings below remain unresolved; partial section assertions explicitly do not certify those fields.++## Existing mapping and layout limits++- A degree wrapping into two right-only continuation lines can merge two Education records in nine templates (including Azurill, Gengar and Pikachu), assigning the second range to the first record and moving the second record into description. All source words survive; V9 and V10 behave identically on the reviewer examples. The tested single-line continuation does not establish multi-line degree fidelity. See the independent review’s 18-template long-degree oracle.+- Role-first Education and `inline`, `date-column`, `compact`, `eyebrow`, or two-column Education layouts can swap or merge fields while retaining text. These valid exported layouts are outside the strict stacked/default-order geometry contract; no universal layout claim is made.+- Grade-only right cells and degrees containing `•` have ambiguous untagged boundaries: grade can become degree, or a degree suffix can become grade. Text remains, but original field identity is not inferred from vocabulary.+- Skills, languages and interests retain text but flatten proficiency/keywords into separate entries. Numeric rating values represented only as graphics cannot be inferred from text alone.+- Profiles can split network/username; linked annotation labels and targets are not fully reconstructed there.+- Awarder, certification issuer, publication publisher, volunteer location and reference position/phone can remain in description rather than their dedicated fields. Some page-seam reference and Award URL cases still fail source equality; base/v8 also fail those exact fields. Raw differences are retained rather than waived as successful imports.+- A trailing undated Inline role, blank-company records and progression `roles[]` still have pre-existing association limits (independent v8 P3). They are not counted as fidelity passes.+- A newly probed Education-only page with one one-line sidebar skill can still lack enough independent column evidence; Leafish/with SQL alone imports no Education in both v9 and V10. This pre-existing sparse-column limit is retained in `/tmp/rx93-rework-v10/new-leafish.json`, not certified by the positive wrapped-header fixtures, which use the reviewer's normal proficiency row.+- The extreme Glalie narrow rail still maps wrapped Skills/Summary tails to custom labels `s`/`y`. Frozen v8 produces identical custom fields/text; V9 preserves every fragment but does not certify this mapping (`narrow-baseline.json`).+- Localized semantic headings, nested/ordered list structure, ambiguous wrapped name boundaries and exact styling remain incomplete. Exported uppercase/letter-spaced labels and glyph substitution are distinct from import loss; independent text evidence is retained.+- Identical untagged geometry can represent different company/title order when place evidence is absent. Accepted ambiguity remains; no English company/title vocabulary is used to invent semantics.++Original senior/freelancer PDFs remain exact and freshly tested through protected API, SQL and owner GET: 10/30 and 4/12 records/bullets. Local bullet leading, hanging indentation, cross-page prose separation, mixed-font spaces/split-word controls, custom-only blank identity, long headers and singleton/empty periods remain mandatory regression coverage. No universal schema/style roundtrip claim follows from adapter parity or a passing-case count.++## Release limits++Browser PDF.js/reader responsiveness and server HTTP health are separate gates. Native script/type checks do not certify a real device, file picker or bearer-token runtime. Hosted CI, production deployment, signing and hardware were not run. Independent V10 source review approved the pinned repair with the explicit limits above. Device and release acceptance remain separate.diff --git a/.agents/docs/rx-93-ponytail-review.md b/.agents/docs/rx-93-ponytail-review.mdnew file mode 100644index 000000000..6a8f424ad--- /dev/null+++ b/.agents/docs/rx-93-ponytail-review.md@@ -0,0 +1,21 @@+What this change does: V10 replaces destructive Education range projection with validated record ownership. It integrates the complete RX-93 feature onto exact merged main `012a76c3d3695191d5d70a873a293537853bd209`, preserving c2 docs and RX76 migration/discovery/recipient-version behavior.++Reviewed connected owners: shared PDF fields/streams, Education title/degree and area/location/date rows, header wrapping, source-span ownership, per-record annotations, generic plain-text fallback, schema dates/defaults, browser read-file and native protected multipart import, SQL create/owner GET. Expected load remains public authenticated untrusted PDFs, 10 MiB import limit/30 pages, synchronous parser on a shared Node process and browser main thread.++V9 self-review missed a real P1: a single/month-year/empty first period let the plain parser merge two schools; projection anchored to the later range and deleted unassigned cells. V10 segments corroborated rows before decoding, folds a wrapped trailing header cell by font/lane/right-edge evidence, uses shared single/range date semantics, retains every unassigned span in description, and declines uncertain projection. Annotation matching uses the same Education cells as record decoding; an additional Azurill linked-header fail-before probe caught and fixed a website-target loss during rework.++The non-load-bearing row-trailing guard is deleted. Earlier Education-heading closure belongs to same-stream section ownership and the existing labelled-row logic. Original 1M preflight/400k candidate budget bytes are unchanged; the unit budget-exhaustion loop is now finite so a broken throw fails instead of hanging. Flat fallback intentionally duplicates harvested content in Summary and parsed sections; it does not promise clean mapping.++Permanent desired-output checks now include 180 current-renderer Education exports (54 core first-date cases plus reverse/two-single/three-record/wrapped/linked controls) across all 18 templates. Whole items, normalized date JSON, source words and complete descriptions are asserted. Three small external-geometry controls verify residual right-column text and uncertain-header fallback. No parser output is used as the desired source oracle. The original 182 ownership and 1,092 import/layout assertions stay unchanged. Final full importer suite passes 1,454.++Fresh protected SQL/owner GET verifies all 54 reviewer PDFs and 180 nearby exports. Failed-before and passing-after actual HTTP and built browser reader receipts exist for original failure variants; linked-header, multi-item and dense controls pass too. Independent old source values are kept separate from current parse results. All 342 reviewer PDFs and 576 earlier reviewer PDFs compare per-field base/v9/current results; correct fields inside bad cases are not waived by a whole-case count. Original senior 10/30 and freelancer 4/12, single/empty Experience, long headers, mixed-font wording, all 54 pagination seams and no-write/ownership guards remain covered.++No new runtime dependency, public API, configuration, schema or migration. Main76 `discovery_source` and `recipientVersion`, main95 handwritten cleanup SQL, main91 Markdown runtime dependency/knip/privacy, history and paging remain unchanged. RX76 local-stub tests pass with CI's explicit unsafe-local-provider test flag; no paid model call. Source/main/packaging hashes, exact checks and cleanup receipts are archived in `/tmp/rx93-rework-v10/proof.md`.++No further concrete lean finding requires an abstraction. `educationCells` is shared by geometry decoding and annotation matching to prevent divergent field ownership. No template, school, degree, company or title vocabulary appears in runtime branches.++Known limits are explicit: no-website custom-link slot ambiguity retains all text/targets; grouped proficiency/profile/ancillary mappings and sparse one-line sidebars can still be wrong; identical untagged semantics and display transformations are not guessed. Strict source equality is claimed only for stated assertions, not every schema/style/layout. Independent V10 source review approved the pinned repair. Root delivery integrates the disjoint RX72/RX102/RX103 later-main paths and explicitly documents multi-line degree, role-first/non-stacked and grade-boundary limits; no parser bytes changed.++Verdict: Ship. Self-review cleanup verdict only, not delivery authorization.++Not checked: real native/device/file-picker/bearer runtime, fresh full dashboard journey, hosted CI/deployment/signing. Full PDF package uses unchanged renderer hashes; the prior large SQL corpus remains historical v9 evidence, not current-parser acceptance. Exact executed/inherited/skipped checks and remaining limits: `/tmp/rx93-rework-v10/proof.md`.diff --git a/apps/web/src/features/documents/new-document-dialog-provider.test.tsx b/apps/web/src/features/documents/new-document-dialog-provider.test.tsxindex 0e48a2d1c..42941876c 100644--- a/apps/web/src/features/documents/new-document-dialog-provider.test.tsx+++ b/apps/web/src/features/documents/new-document-dialog-provider.test.tsx@@ -4,6 +4,7 @@ import { afterEach, beforeEach, expect, it, vi } from "vite-plus/test";import { i18n } from "@lingui/core";import { I18nProvider } from "@lingui/react";import { QueryClient, QueryClientProvider } from "@tanstack/react-query";+import { parseResumeText } from "@reactive-resume/import/plain-text";import { Dialog } from "@reactive-resume/ui/components/dialog";const api = vi.hoisted(() => ({@@ -11,12 +12,12 @@ const api = vi.hoisted(() => ({importResume: vi.fn(),parsePdf: vi.fn(),parseDocx: vi.fn(),- extractPdfLines: vi.fn(),+ readPdfResume: vi.fn(),createLetter: vi.fn(),listDocuments: vi.fn(),}));vi.mock("@tanstack/react-router", () => ({ useNavigate: () => vi.fn() }));-vi.mock("@/features/resume/import/pdf-text", () => ({ extractPdfLines: api.extractPdfLines }));+vi.mock("@/features/resume/import/pdf-text", () => ({ readPdfResume: api.readPdfResume }));vi.mock("@/libs/orpc/client", () => ({client: {documents: { list: api.listDocuments },@@ -43,13 +44,11 @@ beforeEach(() => {api.listDocuments.mockResolvedValue([]);api.providers.mockRejectedValue(new Error("Provider lookup offline"));api.importResume.mockResolvedValue("imported-resume");- api.extractPdfLines.mockResolvedValue([- "Alex Morgan",- "[email protected]",- "Product Manager",- "Experience",- "Customer research",- ]);+ api.readPdfResume.mockResolvedValue(+ parseResumeText(+ ["Alex Morgan", "[email protected]", "Product Manager", "Experience", "Customer research"].join("\n"),+ ),+ );});afterEach(() => {cleanup();@@ -72,7 +71,7 @@ it("imports a PDF through the local text reader when AI connection lookup fails"mount(file);await screen.findByRole("heading", { name: "Imported" });expect(api.providers).toHaveBeenCalled();- expect(api.extractPdfLines).toHaveBeenCalledWith(file);+ expect(api.readPdfResume).toHaveBeenCalledWith(file);expect(api.importResume).toHaveBeenCalledWith({data: expect.objectContaining({ basics: expect.objectContaining({ name: "Alex Morgan" }) }),});@@ -88,7 +87,7 @@ it("keeps a recoverable connection error for Word files that require AI", asyncexpect(screen.getByRole("button", { name: "Try again" })).toBeEnabled();expect(api.importResume).not.toHaveBeenCalled();expect(api.parseDocx).not.toHaveBeenCalled();- expect(api.extractPdfLines).not.toHaveBeenCalled();+ expect(api.readPdfResume).not.toHaveBeenCalled();});it("creates one cover letter while a create is in flight, even across repeat clicks and a reopened dialog", async () => {diff --git a/apps/web/src/features/resume/import/pdf-text.test.ts b/apps/web/src/features/resume/import/pdf-text.test.tsindex 68fa54fe3..b8dec445c 100644--- a/apps/web/src/features/resume/import/pdf-text.test.ts+++ b/apps/web/src/features/resume/import/pdf-text.test.ts@@ -1,13 +1,18 @@import type { RawExtraction } from "@reactive-resume/resume/ats-pdf";-import { describe, expect, it } from "vite-plus/test";+import { describe, expect, it, vi } from "vite-plus/test";+import { parseResumeText } from "@reactive-resume/import/plain-text";import { buildExtractedDocument } from "@reactive-resume/resume/ats-pdf";import { documentToLines } from "./pdf-text";+import { readResumeFile } from "./read-file";++const extract = vi.hoisted(() => vi.fn());+vi.mock("@/features/ats-checker/extract-client", () => ({ extractPdf: extract }));const PAGE = { width: 595, height: 842 };const FONT_SIZE = 10;const CHAR_WIDTH = 5;-type FixtureItem = { text: string; x: number; y: number; width?: number };+type FixtureItem = { text: string; x: number; y: number; width?: number; fontRef?: string };/** `y` is measured from the top of the page; the builder flips it into the PDF's own space. */function rawExtraction(pages: FixtureItem[][]): RawExtraction {@@ -26,7 +31,7 @@ function rawExtraction(pages: FixtureItem[][]): RawExtraction {transform: [FONT_SIZE, 0, 0, FONT_SIZE, item.x, PAGE.height - item.y - FONT_SIZE] as const,width: item.width ?? item.text.length * CHAR_WIDTH,height: FONT_SIZE,- fontRef: "f1",+ fontRef: item.fontRef ?? "f1",hasEol: false,})),operators: null,@@ -90,3 +95,76 @@ describe("documentToLines", () => {).toEqual([...sidebar, ...main]);});});++it.each(["Remote", "Reykjavík", "Singapore"])(+ "reads a PDF without AI through the web import adapter and shared parser (%s)",+ async (location) => {+ extract.mockResolvedValue(+ rawExtraction([+ [+ { text: "Ada Lovelace", x: 260, y: 20 },+ { text: "[email protected]", x: 40, y: 40, width: 500 },+ { text: "SKILLS", x: 40, y: 80 },+ { text: "Rust", x: 40, y: 100 },+ { text: "TypeScript", x: 40, y: 120 },+ { text: "SUMMARY", x: 250, y: 80 },+ { text: "Builds reliable products.", x: 250, y: 100 },+ { text: "EXPERIENCE", x: 250, y: 140 },+ { text: "Example Labs", x: 250, y: 160, fontRef: "bold" },+ { text: location, x: 500, y: 160, width: 50 },+ { text: "Director, Product", x: 250, y: 180, width: 100 },+ { text: "2020 – Present", x: 480, y: 180 },+ { text: "•", x: 250, y: 200 },+ { text: "Built services for", x: 260, y: 200 },+ { text: "Global Customers.", x: 260, y: 215 },+ ],+ ]),+ );+ const data = await readResumeFile(new File(["%PDF-fixture"], "resume.pdf"), "pdf", { aiAvailable: false });+ expect(data.basics.name).toBe("Ada Lovelace");+ expect(data.sections.skills.items.map((item) => item.name)).toEqual(["Rust", "TypeScript"]);+ expect(data.sections.experience.items).toHaveLength(1);+ expect(data.sections.experience.items[0]).toMatchObject({+ company: "Example Labs",+ position: "Director, Product",+ location,+ period: "2020 – Present",+ description: "<ul><li>Built services for Global Customers.</li></ul>",+ });+ },+);++it("does not split tabbed headings when body text crosses the proposed column boundary", () => {+ expect(+ linesOf([+ { text: "SKILLS", x: 40, y: 80 },+ { text: "EXPERIENCE", x: 250, y: 80 },+ { text: "This paragraph spans the page.", x: 40, y: 100, width: 500 },+ { text: "Another full-width paragraph.", x: 40, y: 120, width: 500 },+ { text: "Final paragraph.", x: 40, y: 140, width: 500 },+ ]),+ ).toEqual([+ "SKILLS",+ "EXPERIENCE",+ "This paragraph spans the page.",+ "Another full-width paragraph.",+ "Final paragraph.",+ ]);+});++it("preserves a conventional company/title row followed by place/dates", () => {+ const lines = linesOf([+ { text: "EXPERIENCE", x: 40, y: 60 },+ { text: "Example Labs", x: 40, y: 80 },+ { text: "Engineer", x: 500, y: 80, width: 50 },+ { text: "Paris, France", x: 40, y: 100 },+ { text: "2020 – Present", x: 480, y: 100, width: 70 },+ { text: "• Built tools.", x: 40, y: 120 },+ ]);+ expect(parseResumeText(lines.join("\n")).sections.experience.items[0]).toMatchObject({+ company: "Example Labs",+ position: "Engineer",+ location: "Paris, France",+ period: "2020 – Present",+ });+});diff --git a/apps/web/src/features/resume/import/pdf-text.ts b/apps/web/src/features/resume/import/pdf-text.tsindex ab358cc0e..aca426cd9 100644--- a/apps/web/src/features/resume/import/pdf-text.ts+++ b/apps/web/src/features/resume/import/pdf-text.ts@@ -1,9 +1,10 @@-import { documentToLines } from "@reactive-resume/import/pdf-lines";+import { parsePdfResume } from "@reactive-resume/import/pdf-lines";import { buildExtractedDocument } from "@reactive-resume/resume/ats-pdf";import { extractPdf } from "@/features/ats-checker/extract-client";export { documentToLines } from "@reactive-resume/import/pdf-lines";-export async function extractPdfLines(file: File): Promise<string[]> {- return documentToLines(buildExtractedDocument(await extractPdf(file, { operatorBudgetMs: 0 })));+export async function readPdfResume(file: File) {+ const doc = buildExtractedDocument(await extractPdf(file, { operatorBudgetMs: 0 }));+ return doc.lines.length ? parsePdfResume(doc) : null;}diff --git a/apps/web/src/features/resume/import/read-file.ts b/apps/web/src/features/resume/import/read-file.tsindex 837b802c4..b2d0a3618 100644--- a/apps/web/src/features/resume/import/read-file.ts+++ b/apps/web/src/features/resume/import/read-file.ts@@ -176,18 +176,15 @@ export async function readResumeFile(return client.ai.parsePdf({ file: { name: file.name, data: base64 } });}- const [{ extractPdfLines }, { parseResumeText }] = await Promise.all([- import("./pdf-text"),- import("@reactive-resume/import/plain-text"),- ]);- const lines = await extractPdfLines(file);- if (lines.length === 0) {+ const { readPdfResume } = await import("./pdf-text");+ const data = await readPdfResume(file);+ if (!data) {throw new ImportError(t`This PDF is a scanned image. There's no text to read. Try the Word version, or start blank and paste sections in.`,);}options.onRead?.(t`text layer found`);- return parseResumeText(lines.join("\n"));+ return data;}/** What an import found: sections with content, their entries, and dates flagged for a look. */diff --git a/packages/api/src/features/resume/fixtures/README.md b/packages/api/src/features/resume/fixtures/README.mdnew file mode 100644index 000000000..fc3533ca6--- /dev/null+++ b/packages/api/src/features/resume/fixtures/README.md@@ -0,0 +1,50 @@+# PDF import regressions++These fictional resumes were exported by Reactive Resume during the October 2026 product audit. Original files were recovered from `.agents/docs/product-audit-evidence/` in the main checkout.++- `senior.pdf`: RX-93's original three-page, single-column source. Ten roles, three wrapped bullets per role. Company/location occupy the first header row; position/dates occupy the second.+- `freelancer-azurill.pdf`: two-column Azurill export from the same audit. Four roles, three wrapped bullets per role. A full-width contact header precedes Skills/Languages in the sidebar and Summary/Education/Experience in the main column. The last role continues on page two.++`imports.test.ts` reads the actual bytes through PDF.js, the shared layout/text parser, schema validation, authenticated import, and the create-service boundary. Only authentication/database lookups and persistence are mocked; PDF extraction and parsing are real. Web adapter coverage lives in `apps/web/src/features/resume/import/pdf-text.test.ts` and supplies raw extraction at the worker boundary.++The expanded suite also renders ten diverse roles through all 18 current templates and imports every shipped template PDF through the same authenticated handler. It checks experience company, position, location, dates and every bullet's full text; both audit fixtures additionally assert all skill text values, including Research. It does not claim exact education, language or grouped-skill reconstruction. Those existing defects and concrete follow-up acceptance are recorded in `.agents/docs/rx-93-import-followups.md`.++V4 adds three frozen fictional PDFs from independent review:++- `custom-only.pdf`: Onyx with SELECTED TALKS and no standard English section. Its complete summary must survive.+- `ditto-short.pdf`: centered name/email above a single short role. Header contacts and aligned place/date stubs must not establish a sidebar.+- `bullet-prose-page.pdf`: ordinary A4 Onyx. A completed bullet ends page one; a separately indented paragraph starts page two and must stay outside the list.++The suite also exports six boundary variants through all 18 templates: English/localized custom-only sections, a short/empty role, and bullet-plus-paragraph on A4/small pages. It asserts every experience header field and complete description, or complete custom title/content. Exact basics checks target the centered Ditto header at normal page size. Wrapped-name reconstruction is an existing separate limit; these assertions do not certify every basics field on every layout. Real PostgreSQL and real web harvesting evidence for v4 is in `/tmp/rx93-rework-v4/proof.md`.++V5 adds four unchanged fictional PDFs from the next independent review: `custom-flat.pdf`, `custom-no-name.pdf`, `indented-prose.pdf`, and `glalie-rail.pdf`. The rail fixture asserts all four roles, every company/title/location/date and both complete bullets per role, rather than only checking that Experience exists. A further 180 real exports cover ten variations across all 18 templates: custom headings with matching fonts, blank name, blank identity, title case and Unicode labels; short and wrapped bullets followed by indented prose at line heights 1.5, 2 and 2.5. Heading assertions conserve all displayed label characters; templates may intentionally uppercase labels.++V5 proof is `/tmp/rx93-rework-v5/proof.md`. It includes actual PostgreSQL readback, field-by-field base/v4 comparisons inside already failing cases, and an explicit classification of the remaining column/header limits. PDF equality between adapters is reported separately from source fidelity.++V6 adds `external-word-runs.pdf`, a fictional non-Forme PDF written with ordinary Helvetica/Helvetica-Bold/Helvetica-Oblique content streams. Explicit spaces separate `Built Important Systems for customers.`; adjacent font runs split `Inter` + `operable` without a space. The authenticated import test asserts complete wording and record fields. Shared extraction tests also shuffle raw items, preserve explicit separators, keep true split words joined, align mixed-size baselines, and prevent whitespace rectangles from bridging a gutter.++V6 export/import cases exercise all 18 templates with Inline, Compact, Date column, Eyebrow and role-first headers; two/three item columns and four records; empty place fields; local list-item line heights 2/2.5 and 14pt text; rich font-run wording; matching-font custom date/URL/multiple-URL bodies, blank identity, custom sections after Experience, larger body typography, digit and sentence titles. Desired checks retain complete role fields and bullet association. Displayed uppercase Eyebrow wording is checked explicitly, because original source case is absent from that PDF text layer. PostgreSQL, full-field comparisons, counterexamples, omissions and cleanup receipts are in `/tmp/rx93-rework-v6/proof.md`.++V7 integrates the complete feature onto main `ed8c13624d257326f5b0b4413e493c792e937f96`. `import-layouts.test.ts` checks whole identity (name, headline, email, phone, location, linked website and custom fields) and every company, position, location, period and complete description for all 18 shipped PDFs. `shipped-import.json` is an independent transcription: source PDF text checked with Poppler bbox extraction, complete contact targets checked against PDF link annotations. It is not a parser snapshot.++Another 216 actual exports cover all 18 templates: first/middle/last single-year, month-year and empty periods; long wrapped company/title/place fields with dated and undated records; and rich wording plus whole identity. Normalized date objects are asserted against the source too. Intentional Persian uppercase names and Smeargle letter-spaced headlines are explicit displayed-text expectations. The wrapped rail fixture now checks every displayed name character, complete annotated email, absence of bogus custom sections, and its existing four complete roles. No company/title/place vocabulary chooses semantics.++V7 evidence: `/tmp/rx93-rework-v7/proof.md`. Includes fail-before repros, field-level comparisons against pinned base/v5/v6, protected importer and SQL/getById readbacks, actual integrated-main pagination exports, browser login/PDF.js import, multipart HTTP used by native, cross-owner/no-write guards, exact checks and owned-resource cleanup. Remaining mapping/display limits are classified individually; no universal schema/style roundtrip is claimed.++V8 is an integration-only refresh onto main `385271cd3ecefbeb1fe0af9b898a50989a90897f`. Runtime behavior, fixture bytes, independent shipped oracle and permanent assertions match frozen v7. Importer suites and fresh SQL/getById desired-output checks, including normalized dates, original audit and all shipped controls, were rerun; 54 actual current-main pagination exports and multipart HTTP also pass. The expensive v7 corpus replay is explicitly inherited with owner/source hashes, not reported as freshly executed. Proof: `/tmp/rx93-rework-v8/proof.md`.++## V9 ownership and bounded-work regressions++`pdf-ownership.ts` builds fictional complete-section sources for all 18 shipped templates: Education before/after Experience, default/full-width/two-column, empty/graded descriptions, small/loose typography, long identity and extra identity links. `import-ownership.test.ts` renders actual PDFs, exercises authenticated import, and compares full identity, Summary, Education, Projects, complete Experience, custom content and supported fields in other sections. `ownershipFields` exposes every section/URL data field for the external all-field oracle; it does not certify currently unresolved profile/proficiency/ancillary positional mappings.++`dense-2p.pdf` is the independent review's synthetic Helvetica 6pt grid, 2 pages ×100 rows ×8 cells. Each cell is `w{page}x{row}y{column}`; no personal data. Source: `/tmp/rx93-v8-independent-r1/dense/grid-2p-100x8.pdf`. Permanent authenticated-import assertion requires all 1,600 cells in bounded fallback Summary. Deterministic candidate-budget tests live in `packages/import/src/pdf-geometry.test.ts`; actual dense 2/3/5/10-page costs, HTTP health, browser worker responsiveness and full-field source/base comparisons are archived at `/tmp/rx93-rework-v9/proof.md`.++`glalie-narrow.pdf` preserves the earlier reviewer-generated fictional narrow identity rail. Its large name-font fragments must remain name text, not location, with both complete roles retained. Source: `/tmp/rx93-review-v4-ko74ewle/frozen-pdfs/glalie-sidebar-narrow.pdf`. The display-word boundaries are ambiguous; the test preserves every extracted fragment rather than inventing word joins.++## V10 Education record ownership++`pdf-education.ts` uses reviewer-authored Berkeley/Imperial source values, not parser output. The 54 core cases put a month-year, year-only or empty first period before a ranged second record on all 18 templates. Another 126 cases cover reverse ordering, two single periods, three mixed/reverse records loose wrapped-header layouts and linked recovered headers. `import-education.test.ts` compares whole Education items including dates/degree/area/grade/location/website/complete description, plus every source word. The same assertion fails on v9 before repair.++`packages/import/src/pdf-lines.test.ts` checks external geometry: unassigned right-hand body text survives; a later uncorroborated title pair declines projection; identical typography keeps generic parsing. These guards keep ambiguous chunks from losing fields when precise reconstruction is unsupported. No dependency, template/company/degree vocabulary or migration was added. Original 180 all-section source assertions remain unchanged.++Exact archived reviewer PDFs/source reconstruction, fresh base/v9/current per-field comparison, protected SQL/owner GET, failed-before/passing-after multipart and real built browser reader receipts: `/tmp/rx93-rework-v10/proof.md`. The no-website/custom-link slot ambiguity and intentional Summary duplication on bounded fallback are documented in `.agents/docs/rx-93-import-followups.md`.diff --git a/packages/api/src/features/resume/fixtures/bullet-prose-page.pdf b/packages/api/src/features/resume/fixtures/bullet-prose-page.pdfnew file mode 100644index 000000000..5e5251cdaBinary files /dev/null and b/packages/api/src/features/resume/fixtures/bullet-prose-page.pdf differdiff --git a/packages/api/src/features/resume/fixtures/custom-flat.pdf b/packages/api/src/features/resume/fixtures/custom-flat.pdfnew file mode 100644index 000000000..fd0c0978dBinary files /dev/null and b/packages/api/src/features/resume/fixtures/custom-flat.pdf differdiff --git a/packages/api/src/features/resume/fixtures/custom-no-name.pdf b/packages/api/src/features/resume/fixtures/custom-no-name.pdfnew file mode 100644index 000000000..bfe8d2676Binary files /dev/null and b/packages/api/src/features/resume/fixtures/custom-no-name.pdf differdiff --git a/packages/api/src/features/resume/fixtures/custom-only.pdf b/packages/api/src/features/resume/fixtures/custom-only.pdfnew file mode 100644index 000000000..2a5f6fb7cBinary files /dev/null and b/packages/api/src/features/resume/fixtures/custom-only.pdf differdiff --git a/packages/api/src/features/resume/fixtures/dense-2p.pdf b/packages/api/src/features/resume/fixtures/dense-2p.pdfnew file mode 100644index 000000000..c818ec43b--- /dev/null+++ b/packages/api/src/features/resume/fixtures/dense-2p.pdf@@ -0,0 +1,1645 @@+%PDF-1.4+1 0 obj+<< /Type /Catalog /Pages 2 0 R >>+endobj+2 0 obj+<< /Type /Pages /Kids [4 0 R 6 0 R] /Count 2 >>+endobj+3 0 obj+<< /Type /Font /Subtype /Type1 /BaseFont /Helvetica >>+endobj+4 0 obj+<< /Type /Page /Parent 2 0 R /MediaBox [0 0 612 792] /Resources << /Font << /F1 3 0 R >> >> /Contents 5 0 R >>+endobj+5 0 obj+<< /Length 28454 >>+stream+BT /F1 6 Tf+1 0 0 1 20.0 780.0 Tm (w0x0y0) Tj+1 0 0 1 91.2 780.0 Tm (w0x0y1) Tj+1 0 0 1 162.5 780.0 Tm (w0x0y2) Tj+1 0 0 1 233.8 780.0 Tm (w0x0y3) Tj+1 0 0 1 305.0 780.0 Tm (w0x0y4) Tj+1 0 0 1 376.2 780.0 Tm (w0x0y5) Tj+1 0 0 1 447.5 780.0 Tm (w0x0y6) Tj+1 0 0 1 518.8 780.0 Tm (w0x0y7) Tj+1 0 0 1 20.0 772.4 Tm (w0x1y0) Tj+1 0 0 1 91.2 772.4 Tm (w0x1y1) Tj+1 0 0 1 162.5 772.4 Tm (w0x1y2) Tj+1 0 0 1 233.8 772.4 Tm (w0x1y3) Tj+1 0 0 1 305.0 772.4 Tm (w0x1y4) Tj+1 0 0 1 376.2 772.4 Tm (w0x1y5) Tj+1 0 0 1 447.5 772.4 Tm (w0x1y6) Tj+1 0 0 1 518.8 772.4 Tm (w0x1y7) Tj+1 0 0 1 20.0 764.8 Tm (w0x2y0) Tj+1 0 0 1 91.2 764.8 Tm (w0x2y1) Tj+1 0 0 1 162.5 764.8 Tm (w0x2y2) Tj+1 0 0 1 233.8 764.8 Tm (w0x2y3) Tj+1 0 0 1 305.0 764.8 Tm (w0x2y4) Tj+1 0 0 1 376.2 764.8 Tm (w0x2y5) Tj+1 0 0 1 447.5 764.8 Tm (w0x2y6) Tj+1 0 0 1 518.8 764.8 Tm (w0x2y7) Tj+1 0 0 1 20.0 757.2 Tm (w0x3y0) Tj+1 0 0 1 91.2 757.2 Tm (w0x3y1) Tj+1 0 0 1 162.5 757.2 Tm (w0x3y2) Tj+1 0 0 1 233.8 757.2 Tm (w0x3y3) Tj+1 0 0 1 305.0 757.2 Tm (w0x3y4) Tj+1 0 0 1 376.2 757.2 Tm (w0x3y5) Tj+1 0 0 1 447.5 757.2 Tm (w0x3y6) Tj+1 0 0 1 518.8 757.2 Tm (w0x3y7) Tj+1 0 0 1 20.0 749.6 Tm (w0x4y0) Tj+1 0 0 1 91.2 749.6 Tm (w0x4y1) Tj+1 0 0 1 162.5 749.6 Tm (w0x4y2) Tj+1 0 0 1 233.8 749.6 Tm (w0x4y3) Tj+1 0 0 1 305.0 749.6 Tm (w0x4y4) Tj+1 0 0 1 376.2 749.6 Tm (w0x4y5) Tj+1 0 0 1 447.5 749.6 Tm (w0x4y6) Tj+1 0 0 1 518.8 749.6 Tm (w0x4y7) Tj+1 0 0 1 20.0 742.0 Tm (w0x5y0) Tj+1 0 0 1 91.2 742.0 Tm (w0x5y1) Tj+1 0 0 1 162.5 742.0 Tm (w0x5y2) Tj+1 0 0 1 233.8 742.0 Tm (w0x5y3) Tj+1 0 0 1 305.0 742.0 Tm (w0x5y4) Tj+1 0 0 1 376.2 742.0 Tm (w0x5y5) Tj+1 0 0 1 447.5 742.0 Tm (w0x5y6) Tj+1 0 0 1 518.8 742.0 Tm (w0x5y7) Tj+1 0 0 1 20.0 734.4 Tm (w0x6y0) Tj+1 0 0 1 91.2 734.4 Tm (w0x6y1) Tj+1 0 0 1 162.5 734.4 Tm (w0x6y2) Tj+1 0 0 1 233.8 734.4 Tm (w0x6y3) Tj+1 0 0 1 305.0 734.4 Tm (w0x6y4) Tj+1 0 0 1 376.2 734.4 Tm (w0x6y5) Tj+1 0 0 1 447.5 734.4 Tm (w0x6y6) Tj+1 0 0 1 518.8 734.4 Tm (w0x6y7) Tj+1 0 0 1 20.0 726.8 Tm (w0x7y0) Tj+1 0 0 1 91.2 726.8 Tm (w0x7y1) Tj+1 0 0 1 162.5 726.8 Tm (w0x7y2) Tj+1 0 0 1 233.8 726.8 Tm (w0x7y3) Tj+1 0 0 1 305.0 726.8 Tm (w0x7y4) Tj+1 0 0 1 376.2 726.8 Tm (w0x7y5) Tj+1 0 0 1 447.5 726.8 Tm (w0x7y6) Tj+1 0 0 1 518.8 726.8 Tm (w0x7y7) Tj+1 0 0 1 20.0 719.2 Tm (w0x8y0) Tj+1 0 0 1 91.2 719.2 Tm (w0x8y1) Tj+1 0 0 1 162.5 719.2 Tm (w0x8y2) Tj+1 0 0 1 233.8 719.2 Tm (w0x8y3) Tj+1 0 0 1 305.0 719.2 Tm (w0x8y4) Tj+1 0 0 1 376.2 719.2 Tm (w0x8y5) Tj+1 0 0 1 447.5 719.2 Tm (w0x8y6) Tj+1 0 0 1 518.8 719.2 Tm (w0x8y7) Tj+1 0 0 1 20.0 711.6 Tm (w0x9y0) Tj+1 0 0 1 91.2 711.6 Tm (w0x9y1) Tj+1 0 0 1 162.5 711.6 Tm (w0x9y2) Tj+1 0 0 1 233.8 711.6 Tm (w0x9y3) Tj+1 0 0 1 305.0 711.6 Tm (w0x9y4) Tj+1 0 0 1 376.2 711.6 Tm (w0x9y5) Tj+1 0 0 1 447.5 711.6 Tm (w0x9y6) Tj+1 0 0 1 518.8 711.6 Tm (w0x9y7) Tj+1 0 0 1 20.0 704.0 Tm (w0x10y0) Tj+1 0 0 1 91.2 704.0 Tm (w0x10y1) Tj+1 0 0 1 162.5 704.0 Tm (w0x10y2) Tj+1 0 0 1 233.8 704.0 Tm (w0x10y3) Tj+1 0 0 1 305.0 704.0 Tm (w0x10y4) Tj+1 0 0 1 376.2 704.0 Tm (w0x10y5) Tj+1 0 0 1 447.5 704.0 Tm (w0x10y6) Tj+1 0 0 1 518.8 704.0 Tm (w0x10y7) Tj+1 0 0 1 20.0 696.4 Tm (w0x11y0) Tj+1 0 0 1 91.2 696.4 Tm (w0x11y1) Tj+1 0 0 1 162.5 696.4 Tm (w0x11y2) Tj+1 0 0 1 233.8 696.4 Tm (w0x11y3) Tj+1 0 0 1 305.0 696.4 Tm (w0x11y4) Tj+1 0 0 1 376.2 696.4 Tm (w0x11y5) Tj+1 0 0 1 447.5 696.4 Tm (w0x11y6) Tj+1 0 0 1 518.8 696.4 Tm (w0x11y7) Tj+1 0 0 1 20.0 688.8 Tm (w0x12y0) Tj+1 0 0 1 91.2 688.8 Tm (w0x12y1) Tj+1 0 0 1 162.5 688.8 Tm (w0x12y2) Tj+1 0 0 1 233.8 688.8 Tm (w0x12y3) Tj+1 0 0 1 305.0 688.8 Tm (w0x12y4) Tj+1 0 0 1 376.2 688.8 Tm (w0x12y5) Tj+1 0 0 1 447.5 688.8 Tm (w0x12y6) Tj+1 0 0 1 518.8 688.8 Tm (w0x12y7) Tj+1 0 0 1 20.0 681.2 Tm (w0x13y0) Tj+1 0 0 1 91.2 681.2 Tm (w0x13y1) Tj+1 0 0 1 162.5 681.2 Tm (w0x13y2) Tj+1 0 0 1 233.8 681.2 Tm (w0x13y3) Tj+1 0 0 1 305.0 681.2 Tm (w0x13y4) Tj+1 0 0 1 376.2 681.2 Tm (w0x13y5) Tj+1 0 0 1 447.5 681.2 Tm (w0x13y6) Tj+1 0 0 1 518.8 681.2 Tm (w0x13y7) Tj+1 0 0 1 20.0 673.6 Tm (w0x14y0) Tj+1 0 0 1 91.2 673.6 Tm (w0x14y1) Tj+1 0 0 1 162.5 673.6 Tm (w0x14y2) Tj+1 0 0 1 233.8 673.6 Tm (w0x14y3) Tj+1 0 0 1 305.0 673.6 Tm (w0x14y4) Tj+1 0 0 1 376.2 673.6 Tm (w0x14y5) Tj+1 0 0 1 447.5 673.6 Tm (w0x14y6) Tj+1 0 0 1 518.8 673.6 Tm (w0x14y7) Tj+1 0 0 1 20.0 666.0 Tm (w0x15y0) Tj+1 0 0 1 91.2 666.0 Tm (w0x15y1) Tj+1 0 0 1 162.5 666.0 Tm (w0x15y2) Tj+1 0 0 1 233.8 666.0 Tm (w0x15y3) Tj+1 0 0 1 305.0 666.0 Tm (w0x15y4) Tj+1 0 0 1 376.2 666.0 Tm (w0x15y5) Tj+1 0 0 1 447.5 666.0 Tm (w0x15y6) Tj+1 0 0 1 518.8 666.0 Tm (w0x15y7) Tj+1 0 0 1 20.0 658.4 Tm (w0x16y0) Tj+1 0 0 1 91.2 658.4 Tm (w0x16y1) Tj+1 0 0 1 162.5 658.4 Tm (w0x16y2) Tj+1 0 0 1 233.8 658.4 Tm (w0x16y3) Tj+1 0 0 1 305.0 658.4 Tm (w0x16y4) Tj+1 0 0 1 376.2 658.4 Tm (w0x16y5) Tj+1 0 0 1 447.5 658.4 Tm (w0x16y6) Tj+1 0 0 1 518.8 658.4 Tm (w0x16y7) Tj+1 0 0 1 20.0 650.8 Tm (w0x17y0) Tj+1 0 0 1 91.2 650.8 Tm (w0x17y1) Tj+1 0 0 1 162.5 650.8 Tm (w0x17y2) Tj+1 0 0 1 233.8 650.8 Tm (w0x17y3) Tj+1 0 0 1 305.0 650.8 Tm (w0x17y4) Tj+1 0 0 1 376.2 650.8 Tm (w0x17y5) Tj+1 0 0 1 447.5 650.8 Tm (w0x17y6) Tj+1 0 0 1 518.8 650.8 Tm (w0x17y7) Tj+1 0 0 1 20.0 643.2 Tm (w0x18y0) Tj+1 0 0 1 91.2 643.2 Tm (w0x18y1) Tj+1 0 0 1 162.5 643.2 Tm (w0x18y2) Tj+1 0 0 1 233.8 643.2 Tm (w0x18y3) Tj+1 0 0 1 305.0 643.2 Tm (w0x18y4) Tj+1 0 0 1 376.2 643.2 Tm (w0x18y5) Tj+1 0 0 1 447.5 643.2 Tm (w0x18y6) Tj+1 0 0 1 518.8 643.2 Tm (w0x18y7) Tj+1 0 0 1 20.0 635.6 Tm (w0x19y0) Tj+1 0 0 1 91.2 635.6 Tm (w0x19y1) Tj+1 0 0 1 162.5 635.6 Tm (w0x19y2) Tj+1 0 0 1 233.8 635.6 Tm (w0x19y3) Tj+1 0 0 1 305.0 635.6 Tm (w0x19y4) Tj+1 0 0 1 376.2 635.6 Tm (w0x19y5) Tj+1 0 0 1 447.5 635.6 Tm (w0x19y6) Tj+1 0 0 1 518.8 635.6 Tm (w0x19y7) Tj+1 0 0 1 20.0 628.0 Tm (w0x20y0) Tj+1 0 0 1 91.2 628.0 Tm (w0x20y1) Tj+1 0 0 1 162.5 628.0 Tm (w0x20y2) Tj+1 0 0 1 233.8 628.0 Tm (w0x20y3) Tj+1 0 0 1 305.0 628.0 Tm (w0x20y4) Tj+1 0 0 1 376.2 628.0 Tm (w0x20y5) Tj+1 0 0 1 447.5 628.0 Tm (w0x20y6) Tj+1 0 0 1 518.8 628.0 Tm (w0x20y7) Tj+1 0 0 1 20.0 620.4 Tm (w0x21y0) Tj+1 0 0 1 91.2 620.4 Tm (w0x21y1) Tj+1 0 0 1 162.5 620.4 Tm (w0x21y2) Tj+1 0 0 1 233.8 620.4 Tm (w0x21y3) Tj+1 0 0 1 305.0 620.4 Tm (w0x21y4) Tj+1 0 0 1 376.2 620.4 Tm (w0x21y5) Tj+1 0 0 1 447.5 620.4 Tm (w0x21y6) Tj+1 0 0 1 518.8 620.4 Tm (w0x21y7) Tj+1 0 0 1 20.0 612.8 Tm (w0x22y0) Tj+1 0 0 1 91.2 612.8 Tm (w0x22y1) Tj+1 0 0 1 162.5 612.8 Tm (w0x22y2) Tj+1 0 0 1 233.8 612.8 Tm (w0x22y3) Tj+1 0 0 1 305.0 612.8 Tm (w0x22y4) Tj+1 0 0 1 376.2 612.8 Tm (w0x22y5) Tj+1 0 0 1 447.5 612.8 Tm (w0x22y6) Tj+1 0 0 1 518.8 612.8 Tm (w0x22y7) Tj+1 0 0 1 20.0 605.2 Tm (w0x23y0) Tj+1 0 0 1 91.2 605.2 Tm (w0x23y1) Tj+1 0 0 1 162.5 605.2 Tm (w0x23y2) Tj+1 0 0 1 233.8 605.2 Tm (w0x23y3) Tj+1 0 0 1 305.0 605.2 Tm (w0x23y4) Tj+1 0 0 1 376.2 605.2 Tm (w0x23y5) Tj+1 0 0 1 447.5 605.2 Tm (w0x23y6) Tj+1 0 0 1 518.8 605.2 Tm (w0x23y7) Tj+1 0 0 1 20.0 597.6 Tm (w0x24y0) Tj+1 0 0 1 91.2 597.6 Tm (w0x24y1) Tj+1 0 0 1 162.5 597.6 Tm (w0x24y2) Tj+1 0 0 1 233.8 597.6 Tm (w0x24y3) Tj+1 0 0 1 305.0 597.6 Tm (w0x24y4) Tj+1 0 0 1 376.2 597.6 Tm (w0x24y5) Tj+1 0 0 1 447.5 597.6 Tm (w0x24y6) Tj+1 0 0 1 518.8 597.6 Tm (w0x24y7) Tj+1 0 0 1 20.0 590.0 Tm (w0x25y0) Tj+1 0 0 1 91.2 590.0 Tm (w0x25y1) Tj+1 0 0 1 162.5 590.0 Tm (w0x25y2) Tj+1 0 0 1 233.8 590.0 Tm (w0x25y3) Tj+1 0 0 1 305.0 590.0 Tm (w0x25y4) Tj+1 0 0 1 376.2 590.0 Tm (w0x25y5) Tj+1 0 0 1 447.5 590.0 Tm (w0x25y6) Tj+1 0 0 1 518.8 590.0 Tm (w0x25y7) Tj+1 0 0 1 20.0 582.4 Tm (w0x26y0) Tj+1 0 0 1 91.2 582.4 Tm (w0x26y1) Tj+1 0 0 1 162.5 582.4 Tm (w0x26y2) Tj+1 0 0 1 233.8 582.4 Tm (w0x26y3) Tj+1 0 0 1 305.0 582.4 Tm (w0x26y4) Tj+1 0 0 1 376.2 582.4 Tm (w0x26y5) Tj+1 0 0 1 447.5 582.4 Tm (w0x26y6) Tj+1 0 0 1 518.8 582.4 Tm (w0x26y7) Tj+1 0 0 1 20.0 574.8 Tm (w0x27y0) Tj+1 0 0 1 91.2 574.8 Tm (w0x27y1) Tj+1 0 0 1 162.5 574.8 Tm (w0x27y2) Tj+1 0 0 1 233.8 574.8 Tm (w0x27y3) Tj+1 0 0 1 305.0 574.8 Tm (w0x27y4) Tj+1 0 0 1 376.2 574.8 Tm (w0x27y5) Tj+1 0 0 1 447.5 574.8 Tm (w0x27y6) Tj+1 0 0 1 518.8 574.8 Tm (w0x27y7) Tj+1 0 0 1 20.0 567.2 Tm (w0x28y0) Tj+1 0 0 1 91.2 567.2 Tm (w0x28y1) Tj+1 0 0 1 162.5 567.2 Tm (w0x28y2) Tj+1 0 0 1 233.8 567.2 Tm (w0x28y3) Tj+1 0 0 1 305.0 567.2 Tm (w0x28y4) Tj+1 0 0 1 376.2 567.2 Tm (w0x28y5) Tj+1 0 0 1 447.5 567.2 Tm (w0x28y6) Tj+1 0 0 1 518.8 567.2 Tm (w0x28y7) Tj+1 0 0 1 20.0 559.6 Tm (w0x29y0) Tj+1 0 0 1 91.2 559.6 Tm (w0x29y1) Tj+1 0 0 1 162.5 559.6 Tm (w0x29y2) Tj+1 0 0 1 233.8 559.6 Tm (w0x29y3) Tj+1 0 0 1 305.0 559.6 Tm (w0x29y4) Tj+1 0 0 1 376.2 559.6 Tm (w0x29y5) Tj+1 0 0 1 447.5 559.6 Tm (w0x29y6) Tj+1 0 0 1 518.8 559.6 Tm (w0x29y7) Tj+1 0 0 1 20.0 552.0 Tm (w0x30y0) Tj+1 0 0 1 91.2 552.0 Tm (w0x30y1) Tj+1 0 0 1 162.5 552.0 Tm (w0x30y2) Tj+1 0 0 1 233.8 552.0 Tm (w0x30y3) Tj+1 0 0 1 305.0 552.0 Tm (w0x30y4) Tj+1 0 0 1 376.2 552.0 Tm (w0x30y5) Tj+1 0 0 1 447.5 552.0 Tm (w0x30y6) Tj+1 0 0 1 518.8 552.0 Tm (w0x30y7) Tj+1 0 0 1 20.0 544.4 Tm (w0x31y0) Tj+1 0 0 1 91.2 544.4 Tm (w0x31y1) Tj+1 0 0 1 162.5 544.4 Tm (w0x31y2) Tj+1 0 0 1 233.8 544.4 Tm (w0x31y3) Tj+1 0 0 1 305.0 544.4 Tm (w0x31y4) Tj+1 0 0 1 376.2 544.4 Tm (w0x31y5) Tj+1 0 0 1 447.5 544.4 Tm (w0x31y6) Tj+1 0 0 1 518.8 544.4 Tm (w0x31y7) Tj+1 0 0 1 20.0 536.8 Tm (w0x32y0) Tj+1 0 0 1 91.2 536.8 Tm (w0x32y1) Tj+1 0 0 1 162.5 536.8 Tm (w0x32y2) Tj+1 0 0 1 233.8 536.8 Tm (w0x32y3) Tj+1 0 0 1 305.0 536.8 Tm (w0x32y4) Tj+1 0 0 1 376.2 536.8 Tm (w0x32y5) Tj+1 0 0 1 447.5 536.8 Tm (w0x32y6) Tj+1 0 0 1 518.8 536.8 Tm (w0x32y7) Tj+1 0 0 1 20.0 529.2 Tm (w0x33y0) Tj+1 0 0 1 91.2 529.2 Tm (w0x33y1) Tj+1 0 0 1 162.5 529.2 Tm (w0x33y2) Tj+1 0 0 1 233.8 529.2 Tm (w0x33y3) Tj+1 0 0 1 305.0 529.2 Tm (w0x33y4) Tj+1 0 0 1 376.2 529.2 Tm (w0x33y5) Tj+1 0 0 1 447.5 529.2 Tm (w0x33y6) Tj+1 0 0 1 518.8 529.2 Tm (w0x33y7) Tj+1 0 0 1 20.0 521.6 Tm (w0x34y0) Tj+1 0 0 1 91.2 521.6 Tm (w0x34y1) Tj+1 0 0 1 162.5 521.6 Tm (w0x34y2) Tj+1 0 0 1 233.8 521.6 Tm (w0x34y3) Tj+1 0 0 1 305.0 521.6 Tm (w0x34y4) Tj+1 0 0 1 376.2 521.6 Tm (w0x34y5) Tj+1 0 0 1 447.5 521.6 Tm (w0x34y6) Tj+1 0 0 1 518.8 521.6 Tm (w0x34y7) Tj+1 0 0 1 20.0 514.0 Tm (w0x35y0) Tj+1 0 0 1 91.2 514.0 Tm (w0x35y1) Tj+1 0 0 1 162.5 514.0 Tm (w0x35y2) Tj+1 0 0 1 233.8 514.0 Tm (w0x35y3) Tj+1 0 0 1 305.0 514.0 Tm (w0x35y4) Tj+1 0 0 1 376.2 514.0 Tm (w0x35y5) Tj+1 0 0 1 447.5 514.0 Tm (w0x35y6) Tj+1 0 0 1 518.8 514.0 Tm (w0x35y7) Tj+1 0 0 1 20.0 506.4 Tm (w0x36y0) Tj+1 0 0 1 91.2 506.4 Tm (w0x36y1) Tj+1 0 0 1 162.5 506.4 Tm (w0x36y2) Tj+1 0 0 1 233.8 506.4 Tm (w0x36y3) Tj+1 0 0 1 305.0 506.4 Tm (w0x36y4) Tj+1 0 0 1 376.2 506.4 Tm (w0x36y5) Tj+1 0 0 1 447.5 506.4 Tm (w0x36y6) Tj+1 0 0 1 518.8 506.4 Tm (w0x36y7) Tj+1 0 0 1 20.0 498.8 Tm (w0x37y0) Tj+1 0 0 1 91.2 498.8 Tm (w0x37y1) Tj+1 0 0 1 162.5 498.8 Tm (w0x37y2) Tj+1 0 0 1 233.8 498.8 Tm (w0x37y3) Tj+1 0 0 1 305.0 498.8 Tm (w0x37y4) Tj+1 0 0 1 376.2 498.8 Tm (w0x37y5) Tj+1 0 0 1 447.5 498.8 Tm (w0x37y6) Tj+1 0 0 1 518.8 498.8 Tm (w0x37y7) Tj+1 0 0 1 20.0 491.2 Tm (w0x38y0) Tj+1 0 0 1 91.2 491.2 Tm (w0x38y1) Tj+1 0 0 1 162.5 491.2 Tm (w0x38y2) Tj+1 0 0 1 233.8 491.2 Tm (w0x38y3) Tj+1 0 0 1 305.0 491.2 Tm (w0x38y4) Tj+1 0 0 1 376.2 491.2 Tm (w0x38y5) Tj+1 0 0 1 447.5 491.2 Tm (w0x38y6) Tj+1 0 0 1 518.8 491.2 Tm (w0x38y7) Tj+1 0 0 1 20.0 483.6 Tm (w0x39y0) Tj+1 0 0 1 91.2 483.6 Tm (w0x39y1) Tj+1 0 0 1 162.5 483.6 Tm (w0x39y2) Tj+1 0 0 1 233.8 483.6 Tm (w0x39y3) Tj+1 0 0 1 305.0 483.6 Tm (w0x39y4) Tj+1 0 0 1 376.2 483.6 Tm (w0x39y5) Tj+1 0 0 1 447.5 483.6 Tm (w0x39y6) Tj+1 0 0 1 518.8 483.6 Tm (w0x39y7) Tj+1 0 0 1 20.0 476.0 Tm (w0x40y0) Tj+1 0 0 1 91.2 476.0 Tm (w0x40y1) Tj+1 0 0 1 162.5 476.0 Tm (w0x40y2) Tj+1 0 0 1 233.8 476.0 Tm (w0x40y3) Tj+1 0 0 1 305.0 476.0 Tm (w0x40y4) Tj+1 0 0 1 376.2 476.0 Tm (w0x40y5) Tj+1 0 0 1 447.5 476.0 Tm (w0x40y6) Tj+1 0 0 1 518.8 476.0 Tm (w0x40y7) Tj+1 0 0 1 20.0 468.4 Tm (w0x41y0) Tj+1 0 0 1 91.2 468.4 Tm (w0x41y1) Tj+1 0 0 1 162.5 468.4 Tm (w0x41y2) Tj+1 0 0 1 233.8 468.4 Tm (w0x41y3) Tj+1 0 0 1 305.0 468.4 Tm (w0x41y4) Tj+1 0 0 1 376.2 468.4 Tm (w0x41y5) Tj+1 0 0 1 447.5 468.4 Tm (w0x41y6) Tj+1 0 0 1 518.8 468.4 Tm (w0x41y7) Tj+1 0 0 1 20.0 460.8 Tm (w0x42y0) Tj+1 0 0 1 91.2 460.8 Tm (w0x42y1) Tj+1 0 0 1 162.5 460.8 Tm (w0x42y2) Tj+1 0 0 1 233.8 460.8 Tm (w0x42y3) Tj+1 0 0 1 305.0 460.8 Tm (w0x42y4) Tj+1 0 0 1 376.2 460.8 Tm (w0x42y5) Tj+1 0 0 1 447.5 460.8 Tm (w0x42y6) Tj+1 0 0 1 518.8 460.8 Tm (w0x42y7) Tj+1 0 0 1 20.0 453.2 Tm (w0x43y0) Tj+1 0 0 1 91.2 453.2 Tm (w0x43y1) Tj+1 0 0 1 162.5 453.2 Tm (w0x43y2) Tj+1 0 0 1 233.8 453.2 Tm (w0x43y3) Tj+1 0 0 1 305.0 453.2 Tm (w0x43y4) Tj+1 0 0 1 376.2 453.2 Tm (w0x43y5) Tj+1 0 0 1 447.5 453.2 Tm (w0x43y6) Tj+1 0 0 1 518.8 453.2 Tm (w0x43y7) Tj+1 0 0 1 20.0 445.6 Tm (w0x44y0) Tj+1 0 0 1 91.2 445.6 Tm (w0x44y1) Tj+1 0 0 1 162.5 445.6 Tm (w0x44y2) Tj+1 0 0 1 233.8 445.6 Tm (w0x44y3) Tj+1 0 0 1 305.0 445.6 Tm (w0x44y4) Tj+1 0 0 1 376.2 445.6 Tm (w0x44y5) Tj+1 0 0 1 447.5 445.6 Tm (w0x44y6) Tj+1 0 0 1 518.8 445.6 Tm (w0x44y7) Tj+1 0 0 1 20.0 438.0 Tm (w0x45y0) Tj+1 0 0 1 91.2 438.0 Tm (w0x45y1) Tj+1 0 0 1 162.5 438.0 Tm (w0x45y2) Tj+1 0 0 1 233.8 438.0 Tm (w0x45y3) Tj+1 0 0 1 305.0 438.0 Tm (w0x45y4) Tj+1 0 0 1 376.2 438.0 Tm (w0x45y5) Tj+1 0 0 1 447.5 438.0 Tm (w0x45y6) Tj+1 0 0 1 518.8 438.0 Tm (w0x45y7) Tj+1 0 0 1 20.0 430.4 Tm (w0x46y0) Tj+1 0 0 1 91.2 430.4 Tm (w0x46y1) Tj+1 0 0 1 162.5 430.4 Tm (w0x46y2) Tj+1 0 0 1 233.8 430.4 Tm (w0x46y3) Tj+1 0 0 1 305.0 430.4 Tm (w0x46y4) Tj+1 0 0 1 376.2 430.4 Tm (w0x46y5) Tj+1 0 0 1 447.5 430.4 Tm (w0x46y6) Tj+1 0 0 1 518.8 430.4 Tm (w0x46y7) Tj+1 0 0 1 20.0 422.8 Tm (w0x47y0) Tj+1 0 0 1 91.2 422.8 Tm (w0x47y1) Tj+1 0 0 1 162.5 422.8 Tm (w0x47y2) Tj+1 0 0 1 233.8 422.8 Tm (w0x47y3) Tj+1 0 0 1 305.0 422.8 Tm (w0x47y4) Tj+1 0 0 1 376.2 422.8 Tm (w0x47y5) Tj+1 0 0 1 447.5 422.8 Tm (w0x47y6) Tj+1 0 0 1 518.8 422.8 Tm (w0x47y7) Tj+1 0 0 1 20.0 415.2 Tm (w0x48y0) Tj+1 0 0 1 91.2 415.2 Tm (w0x48y1) Tj+1 0 0 1 162.5 415.2 Tm (w0x48y2) Tj+1 0 0 1 233.8 415.2 Tm (w0x48y3) Tj+1 0 0 1 305.0 415.2 Tm (w0x48y4) Tj+1 0 0 1 376.2 415.2 Tm (w0x48y5) Tj+1 0 0 1 447.5 415.2 Tm (w0x48y6) Tj+1 0 0 1 518.8 415.2 Tm (w0x48y7) Tj+1 0 0 1 20.0 407.6 Tm (w0x49y0) Tj+1 0 0 1 91.2 407.6 Tm (w0x49y1) Tj+1 0 0 1 162.5 407.6 Tm (w0x49y2) Tj+1 0 0 1 233.8 407.6 Tm (w0x49y3) Tj+1 0 0 1 305.0 407.6 Tm (w0x49y4) Tj+1 0 0 1 376.2 407.6 Tm (w0x49y5) Tj+1 0 0 1 447.5 407.6 Tm (w0x49y6) Tj+1 0 0 1 518.8 407.6 Tm (w0x49y7) Tj+1 0 0 1 20.0 400.0 Tm (w0x50y0) Tj+1 0 0 1 91.2 400.0 Tm (w0x50y1) Tj+1 0 0 1 162.5 400.0 Tm (w0x50y2) Tj+1 0 0 1 233.8 400.0 Tm (w0x50y3) Tj+1 0 0 1 305.0 400.0 Tm (w0x50y4) Tj+1 0 0 1 376.2 400.0 Tm (w0x50y5) Tj+1 0 0 1 447.5 400.0 Tm (w0x50y6) Tj+1 0 0 1 518.8 400.0 Tm (w0x50y7) Tj+1 0 0 1 20.0 392.4 Tm (w0x51y0) Tj+1 0 0 1 91.2 392.4 Tm (w0x51y1) Tj+1 0 0 1 162.5 392.4 Tm (w0x51y2) Tj+1 0 0 1 233.8 392.4 Tm (w0x51y3) Tj+1 0 0 1 305.0 392.4 Tm (w0x51y4) Tj+1 0 0 1 376.2 392.4 Tm (w0x51y5) Tj+1 0 0 1 447.5 392.4 Tm (w0x51y6) Tj+1 0 0 1 518.8 392.4 Tm (w0x51y7) Tj+1 0 0 1 20.0 384.8 Tm (w0x52y0) Tj+1 0 0 1 91.2 384.8 Tm (w0x52y1) Tj+1 0 0 1 162.5 384.8 Tm (w0x52y2) Tj+1 0 0 1 233.8 384.8 Tm (w0x52y3) Tj+1 0 0 1 305.0 384.8 Tm (w0x52y4) Tj+1 0 0 1 376.2 384.8 Tm (w0x52y5) Tj+1 0 0 1 447.5 384.8 Tm (w0x52y6) Tj+1 0 0 1 518.8 384.8 Tm (w0x52y7) Tj+1 0 0 1 20.0 377.2 Tm (w0x53y0) Tj+1 0 0 1 91.2 377.2 Tm (w0x53y1) Tj+1 0 0 1 162.5 377.2 Tm (w0x53y2) Tj+1 0 0 1 233.8 377.2 Tm (w0x53y3) Tj+1 0 0 1 305.0 377.2 Tm (w0x53y4) Tj+1 0 0 1 376.2 377.2 Tm (w0x53y5) Tj+1 0 0 1 447.5 377.2 Tm (w0x53y6) Tj+1 0 0 1 518.8 377.2 Tm (w0x53y7) Tj+1 0 0 1 20.0 369.6 Tm (w0x54y0) Tj+1 0 0 1 91.2 369.6 Tm (w0x54y1) Tj+1 0 0 1 162.5 369.6 Tm (w0x54y2) Tj+1 0 0 1 233.8 369.6 Tm (w0x54y3) Tj+1 0 0 1 305.0 369.6 Tm (w0x54y4) Tj+1 0 0 1 376.2 369.6 Tm (w0x54y5) Tj+1 0 0 1 447.5 369.6 Tm (w0x54y6) Tj+1 0 0 1 518.8 369.6 Tm (w0x54y7) Tj+1 0 0 1 20.0 362.0 Tm (w0x55y0) Tj+1 0 0 1 91.2 362.0 Tm (w0x55y1) Tj+1 0 0 1 162.5 362.0 Tm (w0x55y2) Tj+1 0 0 1 233.8 362.0 Tm (w0x55y3) Tj+1 0 0 1 305.0 362.0 Tm (w0x55y4) Tj+1 0 0 1 376.2 362.0 Tm (w0x55y5) Tj+1 0 0 1 447.5 362.0 Tm (w0x55y6) Tj+1 0 0 1 518.8 362.0 Tm (w0x55y7) Tj+1 0 0 1 20.0 354.4 Tm (w0x56y0) Tj+1 0 0 1 91.2 354.4 Tm (w0x56y1) Tj+1 0 0 1 162.5 354.4 Tm (w0x56y2) Tj+1 0 0 1 233.8 354.4 Tm (w0x56y3) Tj+1 0 0 1 305.0 354.4 Tm (w0x56y4) Tj+1 0 0 1 376.2 354.4 Tm (w0x56y5) Tj+1 0 0 1 447.5 354.4 Tm (w0x56y6) Tj+1 0 0 1 518.8 354.4 Tm (w0x56y7) Tj+1 0 0 1 20.0 346.8 Tm (w0x57y0) Tj+1 0 0 1 91.2 346.8 Tm (w0x57y1) Tj+1 0 0 1 162.5 346.8 Tm (w0x57y2) Tj+1 0 0 1 233.8 346.8 Tm (w0x57y3) Tj+1 0 0 1 305.0 346.8 Tm (w0x57y4) Tj+1 0 0 1 376.2 346.8 Tm (w0x57y5) Tj+1 0 0 1 447.5 346.8 Tm (w0x57y6) Tj+1 0 0 1 518.8 346.8 Tm (w0x57y7) Tj+1 0 0 1 20.0 339.2 Tm (w0x58y0) Tj+1 0 0 1 91.2 339.2 Tm (w0x58y1) Tj+1 0 0 1 162.5 339.2 Tm (w0x58y2) Tj+1 0 0 1 233.8 339.2 Tm (w0x58y3) Tj+1 0 0 1 305.0 339.2 Tm (w0x58y4) Tj+1 0 0 1 376.2 339.2 Tm (w0x58y5) Tj+1 0 0 1 447.5 339.2 Tm (w0x58y6) Tj+1 0 0 1 518.8 339.2 Tm (w0x58y7) Tj+1 0 0 1 20.0 331.6 Tm (w0x59y0) Tj+1 0 0 1 91.2 331.6 Tm (w0x59y1) Tj+1 0 0 1 162.5 331.6 Tm (w0x59y2) Tj+1 0 0 1 233.8 331.6 Tm (w0x59y3) Tj+1 0 0 1 305.0 331.6 Tm (w0x59y4) Tj+1 0 0 1 376.2 331.6 Tm (w0x59y5) Tj+1 0 0 1 447.5 331.6 Tm (w0x59y6) Tj+1 0 0 1 518.8 331.6 Tm (w0x59y7) Tj+1 0 0 1 20.0 324.0 Tm (w0x60y0) Tj+1 0 0 1 91.2 324.0 Tm (w0x60y1) Tj+1 0 0 1 162.5 324.0 Tm (w0x60y2) Tj+1 0 0 1 233.8 324.0 Tm (w0x60y3) Tj+1 0 0 1 305.0 324.0 Tm (w0x60y4) Tj+1 0 0 1 376.2 324.0 Tm (w0x60y5) Tj+1 0 0 1 447.5 324.0 Tm (w0x60y6) Tj+1 0 0 1 518.8 324.0 Tm (w0x60y7) Tj+1 0 0 1 20.0 316.4 Tm (w0x61y0) Tj+1 0 0 1 91.2 316.4 Tm (w0x61y1) Tj+1 0 0 1 162.5 316.4 Tm (w0x61y2) Tj+1 0 0 1 233.8 316.4 Tm (w0x61y3) Tj+1 0 0 1 305.0 316.4 Tm (w0x61y4) Tj+1 0 0 1 376.2 316.4 Tm (w0x61y5) Tj+1 0 0 1 447.5 316.4 Tm (w0x61y6) Tj+1 0 0 1 518.8 316.4 Tm (w0x61y7) Tj+1 0 0 1 20.0 308.8 Tm (w0x62y0) Tj+1 0 0 1 91.2 308.8 Tm (w0x62y1) Tj+1 0 0 1 162.5 308.8 Tm (w0x62y2) Tj+1 0 0 1 233.8 308.8 Tm (w0x62y3) Tj+1 0 0 1 305.0 308.8 Tm (w0x62y4) Tj+1 0 0 1 376.2 308.8 Tm (w0x62y5) Tj+1 0 0 1 447.5 308.8 Tm (w0x62y6) Tj+1 0 0 1 518.8 308.8 Tm (w0x62y7) Tj+1 0 0 1 20.0 301.2 Tm (w0x63y0) Tj+1 0 0 1 91.2 301.2 Tm (w0x63y1) Tj+1 0 0 1 162.5 301.2 Tm (w0x63y2) Tj+1 0 0 1 233.8 301.2 Tm (w0x63y3) Tj+1 0 0 1 305.0 301.2 Tm (w0x63y4) Tj+1 0 0 1 376.2 301.2 Tm (w0x63y5) Tj+1 0 0 1 447.5 301.2 Tm (w0x63y6) Tj+1 0 0 1 518.8 301.2 Tm (w0x63y7) Tj+1 0 0 1 20.0 293.6 Tm (w0x64y0) Tj+1 0 0 1 91.2 293.6 Tm (w0x64y1) Tj+1 0 0 1 162.5 293.6 Tm (w0x64y2) Tj+1 0 0 1 233.8 293.6 Tm (w0x64y3) Tj+1 0 0 1 305.0 293.6 Tm (w0x64y4) Tj+1 0 0 1 376.2 293.6 Tm (w0x64y5) Tj+1 0 0 1 447.5 293.6 Tm (w0x64y6) Tj+1 0 0 1 518.8 293.6 Tm (w0x64y7) Tj+1 0 0 1 20.0 286.0 Tm (w0x65y0) Tj+1 0 0 1 91.2 286.0 Tm (w0x65y1) Tj+1 0 0 1 162.5 286.0 Tm (w0x65y2) Tj+1 0 0 1 233.8 286.0 Tm (w0x65y3) Tj+1 0 0 1 305.0 286.0 Tm (w0x65y4) Tj+1 0 0 1 376.2 286.0 Tm (w0x65y5) Tj+1 0 0 1 447.5 286.0 Tm (w0x65y6) Tj+1 0 0 1 518.8 286.0 Tm (w0x65y7) Tj+1 0 0 1 20.0 278.4 Tm (w0x66y0) Tj+1 0 0 1 91.2 278.4 Tm (w0x66y1) Tj+1 0 0 1 162.5 278.4 Tm (w0x66y2) Tj+1 0 0 1 233.8 278.4 Tm (w0x66y3) Tj+1 0 0 1 305.0 278.4 Tm (w0x66y4) Tj+1 0 0 1 376.2 278.4 Tm (w0x66y5) Tj+1 0 0 1 447.5 278.4 Tm (w0x66y6) Tj+1 0 0 1 518.8 278.4 Tm (w0x66y7) Tj+1 0 0 1 20.0 270.8 Tm (w0x67y0) Tj+1 0 0 1 91.2 270.8 Tm (w0x67y1) Tj+1 0 0 1 162.5 270.8 Tm (w0x67y2) Tj+1 0 0 1 233.8 270.8 Tm (w0x67y3) Tj+1 0 0 1 305.0 270.8 Tm (w0x67y4) Tj+1 0 0 1 376.2 270.8 Tm (w0x67y5) Tj+1 0 0 1 447.5 270.8 Tm (w0x67y6) Tj+1 0 0 1 518.8 270.8 Tm (w0x67y7) Tj+1 0 0 1 20.0 263.2 Tm (w0x68y0) Tj+1 0 0 1 91.2 263.2 Tm (w0x68y1) Tj+1 0 0 1 162.5 263.2 Tm (w0x68y2) Tj+1 0 0 1 233.8 263.2 Tm (w0x68y3) Tj+1 0 0 1 305.0 263.2 Tm (w0x68y4) Tj+1 0 0 1 376.2 263.2 Tm (w0x68y5) Tj+1 0 0 1 447.5 263.2 Tm (w0x68y6) Tj+1 0 0 1 518.8 263.2 Tm (w0x68y7) Tj+1 0 0 1 20.0 255.6 Tm (w0x69y0) Tj+1 0 0 1 91.2 255.6 Tm (w0x69y1) Tj+1 0 0 1 162.5 255.6 Tm (w0x69y2) Tj+1 0 0 1 233.8 255.6 Tm (w0x69y3) Tj+1 0 0 1 305.0 255.6 Tm (w0x69y4) Tj+1 0 0 1 376.2 255.6 Tm (w0x69y5) Tj+1 0 0 1 447.5 255.6 Tm (w0x69y6) Tj+1 0 0 1 518.8 255.6 Tm (w0x69y7) Tj+1 0 0 1 20.0 248.0 Tm (w0x70y0) Tj+1 0 0 1 91.2 248.0 Tm (w0x70y1) Tj+1 0 0 1 162.5 248.0 Tm (w0x70y2) Tj+1 0 0 1 233.8 248.0 Tm (w0x70y3) Tj+1 0 0 1 305.0 248.0 Tm (w0x70y4) Tj+1 0 0 1 376.2 248.0 Tm (w0x70y5) Tj+1 0 0 1 447.5 248.0 Tm (w0x70y6) Tj+1 0 0 1 518.8 248.0 Tm (w0x70y7) Tj+1 0 0 1 20.0 240.4 Tm (w0x71y0) Tj+1 0 0 1 91.2 240.4 Tm (w0x71y1) Tj+1 0 0 1 162.5 240.4 Tm (w0x71y2) Tj+1 0 0 1 233.8 240.4 Tm (w0x71y3) Tj+1 0 0 1 305.0 240.4 Tm (w0x71y4) Tj+1 0 0 1 376.2 240.4 Tm (w0x71y5) Tj+1 0 0 1 447.5 240.4 Tm (w0x71y6) Tj+1 0 0 1 518.8 240.4 Tm (w0x71y7) Tj+1 0 0 1 20.0 232.8 Tm (w0x72y0) Tj+1 0 0 1 91.2 232.8 Tm (w0x72y1) Tj+1 0 0 1 162.5 232.8 Tm (w0x72y2) Tj+1 0 0 1 233.8 232.8 Tm (w0x72y3) Tj+1 0 0 1 305.0 232.8 Tm (w0x72y4) Tj+1 0 0 1 376.2 232.8 Tm (w0x72y5) Tj+1 0 0 1 447.5 232.8 Tm (w0x72y6) Tj+1 0 0 1 518.8 232.8 Tm (w0x72y7) Tj+1 0 0 1 20.0 225.2 Tm (w0x73y0) Tj+1 0 0 1 91.2 225.2 Tm (w0x73y1) Tj+1 0 0 1 162.5 225.2 Tm (w0x73y2) Tj+1 0 0 1 233.8 225.2 Tm (w0x73y3) Tj+1 0 0 1 305.0 225.2 Tm (w0x73y4) Tj+1 0 0 1 376.2 225.2 Tm (w0x73y5) Tj+1 0 0 1 447.5 225.2 Tm (w0x73y6) Tj+1 0 0 1 518.8 225.2 Tm (w0x73y7) Tj+1 0 0 1 20.0 217.6 Tm (w0x74y0) Tj+1 0 0 1 91.2 217.6 Tm (w0x74y1) Tj+1 0 0 1 162.5 217.6 Tm (w0x74y2) Tj+1 0 0 1 233.8 217.6 Tm (w0x74y3) Tj+1 0 0 1 305.0 217.6 Tm (w0x74y4) Tj+1 0 0 1 376.2 217.6 Tm (w0x74y5) Tj+1 0 0 1 447.5 217.6 Tm (w0x74y6) Tj+1 0 0 1 518.8 217.6 Tm (w0x74y7) Tj+1 0 0 1 20.0 210.0 Tm (w0x75y0) Tj+1 0 0 1 91.2 210.0 Tm (w0x75y1) Tj+1 0 0 1 162.5 210.0 Tm (w0x75y2) Tj+1 0 0 1 233.8 210.0 Tm (w0x75y3) Tj+1 0 0 1 305.0 210.0 Tm (w0x75y4) Tj+1 0 0 1 376.2 210.0 Tm (w0x75y5) Tj+1 0 0 1 447.5 210.0 Tm (w0x75y6) Tj+1 0 0 1 518.8 210.0 Tm (w0x75y7) Tj+1 0 0 1 20.0 202.4 Tm (w0x76y0) Tj+1 0 0 1 91.2 202.4 Tm (w0x76y1) Tj+1 0 0 1 162.5 202.4 Tm (w0x76y2) Tj+1 0 0 1 233.8 202.4 Tm (w0x76y3) Tj+1 0 0 1 305.0 202.4 Tm (w0x76y4) Tj+1 0 0 1 376.2 202.4 Tm (w0x76y5) Tj+1 0 0 1 447.5 202.4 Tm (w0x76y6) Tj+1 0 0 1 518.8 202.4 Tm (w0x76y7) Tj+1 0 0 1 20.0 194.8 Tm (w0x77y0) Tj+1 0 0 1 91.2 194.8 Tm (w0x77y1) Tj+1 0 0 1 162.5 194.8 Tm (w0x77y2) Tj+1 0 0 1 233.8 194.8 Tm (w0x77y3) Tj+1 0 0 1 305.0 194.8 Tm (w0x77y4) Tj+1 0 0 1 376.2 194.8 Tm (w0x77y5) Tj+1 0 0 1 447.5 194.8 Tm (w0x77y6) Tj+1 0 0 1 518.8 194.8 Tm (w0x77y7) Tj+1 0 0 1 20.0 187.2 Tm (w0x78y0) Tj+1 0 0 1 91.2 187.2 Tm (w0x78y1) Tj+1 0 0 1 162.5 187.2 Tm (w0x78y2) Tj+1 0 0 1 233.8 187.2 Tm (w0x78y3) Tj+1 0 0 1 305.0 187.2 Tm (w0x78y4) Tj+1 0 0 1 376.2 187.2 Tm (w0x78y5) Tj+1 0 0 1 447.5 187.2 Tm (w0x78y6) Tj+1 0 0 1 518.8 187.2 Tm (w0x78y7) Tj+1 0 0 1 20.0 179.6 Tm (w0x79y0) Tj+1 0 0 1 91.2 179.6 Tm (w0x79y1) Tj+1 0 0 1 162.5 179.6 Tm (w0x79y2) Tj+1 0 0 1 233.8 179.6 Tm (w0x79y3) Tj+1 0 0 1 305.0 179.6 Tm (w0x79y4) Tj+1 0 0 1 376.2 179.6 Tm (w0x79y5) Tj+1 0 0 1 447.5 179.6 Tm (w0x79y6) Tj+1 0 0 1 518.8 179.6 Tm (w0x79y7) Tj+1 0 0 1 20.0 172.0 Tm (w0x80y0) Tj+1 0 0 1 91.2 172.0 Tm (w0x80y1) Tj+1 0 0 1 162.5 172.0 Tm (w0x80y2) Tj+1 0 0 1 233.8 172.0 Tm (w0x80y3) Tj+1 0 0 1 305.0 172.0 Tm (w0x80y4) Tj+1 0 0 1 376.2 172.0 Tm (w0x80y5) Tj+1 0 0 1 447.5 172.0 Tm (w0x80y6) Tj+1 0 0 1 518.8 172.0 Tm (w0x80y7) Tj+1 0 0 1 20.0 164.4 Tm (w0x81y0) Tj+1 0 0 1 91.2 164.4 Tm (w0x81y1) Tj+1 0 0 1 162.5 164.4 Tm (w0x81y2) Tj+1 0 0 1 233.8 164.4 Tm (w0x81y3) Tj+1 0 0 1 305.0 164.4 Tm (w0x81y4) Tj+1 0 0 1 376.2 164.4 Tm (w0x81y5) Tj+1 0 0 1 447.5 164.4 Tm (w0x81y6) Tj+1 0 0 1 518.8 164.4 Tm (w0x81y7) Tj+1 0 0 1 20.0 156.8 Tm (w0x82y0) Tj+1 0 0 1 91.2 156.8 Tm (w0x82y1) Tj+1 0 0 1 162.5 156.8 Tm (w0x82y2) Tj+1 0 0 1 233.8 156.8 Tm (w0x82y3) Tj+1 0 0 1 305.0 156.8 Tm (w0x82y4) Tj+1 0 0 1 376.2 156.8 Tm (w0x82y5) Tj+1 0 0 1 447.5 156.8 Tm (w0x82y6) Tj+1 0 0 1 518.8 156.8 Tm (w0x82y7) Tj+1 0 0 1 20.0 149.2 Tm (w0x83y0) Tj+1 0 0 1 91.2 149.2 Tm (w0x83y1) Tj+1 0 0 1 162.5 149.2 Tm (w0x83y2) Tj+1 0 0 1 233.8 149.2 Tm (w0x83y3) Tj+1 0 0 1 305.0 149.2 Tm (w0x83y4) Tj+1 0 0 1 376.2 149.2 Tm (w0x83y5) Tj+1 0 0 1 447.5 149.2 Tm (w0x83y6) Tj+1 0 0 1 518.8 149.2 Tm (w0x83y7) Tj+1 0 0 1 20.0 141.6 Tm (w0x84y0) Tj+1 0 0 1 91.2 141.6 Tm (w0x84y1) Tj+1 0 0 1 162.5 141.6 Tm (w0x84y2) Tj+1 0 0 1 233.8 141.6 Tm (w0x84y3) Tj+1 0 0 1 305.0 141.6 Tm (w0x84y4) Tj+1 0 0 1 376.2 141.6 Tm (w0x84y5) Tj+1 0 0 1 447.5 141.6 Tm (w0x84y6) Tj+1 0 0 1 518.8 141.6 Tm (w0x84y7) Tj+1 0 0 1 20.0 134.0 Tm (w0x85y0) Tj+1 0 0 1 91.2 134.0 Tm (w0x85y1) Tj+1 0 0 1 162.5 134.0 Tm (w0x85y2) Tj+1 0 0 1 233.8 134.0 Tm (w0x85y3) Tj+1 0 0 1 305.0 134.0 Tm (w0x85y4) Tj+1 0 0 1 376.2 134.0 Tm (w0x85y5) Tj+1 0 0 1 447.5 134.0 Tm (w0x85y6) Tj+1 0 0 1 518.8 134.0 Tm (w0x85y7) Tj+1 0 0 1 20.0 126.4 Tm (w0x86y0) Tj+1 0 0 1 91.2 126.4 Tm (w0x86y1) Tj+1 0 0 1 162.5 126.4 Tm (w0x86y2) Tj+1 0 0 1 233.8 126.4 Tm (w0x86y3) Tj+1 0 0 1 305.0 126.4 Tm (w0x86y4) Tj+1 0 0 1 376.2 126.4 Tm (w0x86y5) Tj+1 0 0 1 447.5 126.4 Tm (w0x86y6) Tj+1 0 0 1 518.8 126.4 Tm (w0x86y7) Tj+1 0 0 1 20.0 118.8 Tm (w0x87y0) Tj+1 0 0 1 91.2 118.8 Tm (w0x87y1) Tj+1 0 0 1 162.5 118.8 Tm (w0x87y2) Tj+1 0 0 1 233.8 118.8 Tm (w0x87y3) Tj+1 0 0 1 305.0 118.8 Tm (w0x87y4) Tj+1 0 0 1 376.2 118.8 Tm (w0x87y5) Tj+1 0 0 1 447.5 118.8 Tm (w0x87y6) Tj+1 0 0 1 518.8 118.8 Tm (w0x87y7) Tj+1 0 0 1 20.0 111.2 Tm (w0x88y0) Tj+1 0 0 1 91.2 111.2 Tm (w0x88y1) Tj+1 0 0 1 162.5 111.2 Tm (w0x88y2) Tj+1 0 0 1 233.8 111.2 Tm (w0x88y3) Tj+1 0 0 1 305.0 111.2 Tm (w0x88y4) Tj+1 0 0 1 376.2 111.2 Tm (w0x88y5) Tj+1 0 0 1 447.5 111.2 Tm (w0x88y6) Tj+1 0 0 1 518.8 111.2 Tm (w0x88y7) Tj+1 0 0 1 20.0 103.6 Tm (w0x89y0) Tj+1 0 0 1 91.2 103.6 Tm (w0x89y1) Tj+1 0 0 1 162.5 103.6 Tm (w0x89y2) Tj+1 0 0 1 233.8 103.6 Tm (w0x89y3) Tj+1 0 0 1 305.0 103.6 Tm (w0x89y4) Tj+1 0 0 1 376.2 103.6 Tm (w0x89y5) Tj+1 0 0 1 447.5 103.6 Tm (w0x89y6) Tj+1 0 0 1 518.8 103.6 Tm (w0x89y7) Tj+1 0 0 1 20.0 96.0 Tm (w0x90y0) Tj+1 0 0 1 91.2 96.0 Tm (w0x90y1) Tj+1 0 0 1 162.5 96.0 Tm (w0x90y2) Tj+1 0 0 1 233.8 96.0 Tm (w0x90y3) Tj+1 0 0 1 305.0 96.0 Tm (w0x90y4) Tj+1 0 0 1 376.2 96.0 Tm (w0x90y5) Tj+1 0 0 1 447.5 96.0 Tm (w0x90y6) Tj+1 0 0 1 518.8 96.0 Tm (w0x90y7) Tj+1 0 0 1 20.0 88.4 Tm (w0x91y0) Tj+1 0 0 1 91.2 88.4 Tm (w0x91y1) Tj+1 0 0 1 162.5 88.4 Tm (w0x91y2) Tj+1 0 0 1 233.8 88.4 Tm (w0x91y3) Tj+1 0 0 1 305.0 88.4 Tm (w0x91y4) Tj+1 0 0 1 376.2 88.4 Tm (w0x91y5) Tj+1 0 0 1 447.5 88.4 Tm (w0x91y6) Tj+1 0 0 1 518.8 88.4 Tm (w0x91y7) Tj+1 0 0 1 20.0 80.8 Tm (w0x92y0) Tj+1 0 0 1 91.2 80.8 Tm (w0x92y1) Tj+1 0 0 1 162.5 80.8 Tm (w0x92y2) Tj+1 0 0 1 233.8 80.8 Tm (w0x92y3) Tj+1 0 0 1 305.0 80.8 Tm (w0x92y4) Tj+1 0 0 1 376.2 80.8 Tm (w0x92y5) Tj+1 0 0 1 447.5 80.8 Tm (w0x92y6) Tj+1 0 0 1 518.8 80.8 Tm (w0x92y7) Tj+1 0 0 1 20.0 73.2 Tm (w0x93y0) Tj+1 0 0 1 91.2 73.2 Tm (w0x93y1) Tj+1 0 0 1 162.5 73.2 Tm (w0x93y2) Tj+1 0 0 1 233.8 73.2 Tm (w0x93y3) Tj+1 0 0 1 305.0 73.2 Tm (w0x93y4) Tj+1 0 0 1 376.2 73.2 Tm (w0x93y5) Tj+1 0 0 1 447.5 73.2 Tm (w0x93y6) Tj+1 0 0 1 518.8 73.2 Tm (w0x93y7) Tj+1 0 0 1 20.0 65.6 Tm (w0x94y0) Tj+1 0 0 1 91.2 65.6 Tm (w0x94y1) Tj+1 0 0 1 162.5 65.6 Tm (w0x94y2) Tj+1 0 0 1 233.8 65.6 Tm (w0x94y3) Tj+1 0 0 1 305.0 65.6 Tm (w0x94y4) Tj+1 0 0 1 376.2 65.6 Tm (w0x94y5) Tj+1 0 0 1 447.5 65.6 Tm (w0x94y6) Tj+1 0 0 1 518.8 65.6 Tm (w0x94y7) Tj+1 0 0 1 20.0 58.0 Tm (w0x95y0) Tj+1 0 0 1 91.2 58.0 Tm (w0x95y1) Tj+1 0 0 1 162.5 58.0 Tm (w0x95y2) Tj+1 0 0 1 233.8 58.0 Tm (w0x95y3) Tj+1 0 0 1 305.0 58.0 Tm (w0x95y4) Tj+1 0 0 1 376.2 58.0 Tm (w0x95y5) Tj+1 0 0 1 447.5 58.0 Tm (w0x95y6) Tj+1 0 0 1 518.8 58.0 Tm (w0x95y7) Tj+1 0 0 1 20.0 50.4 Tm (w0x96y0) Tj+1 0 0 1 91.2 50.4 Tm (w0x96y1) Tj+1 0 0 1 162.5 50.4 Tm (w0x96y2) Tj+1 0 0 1 233.8 50.4 Tm (w0x96y3) Tj+1 0 0 1 305.0 50.4 Tm (w0x96y4) Tj+1 0 0 1 376.2 50.4 Tm (w0x96y5) Tj+1 0 0 1 447.5 50.4 Tm (w0x96y6) Tj+1 0 0 1 518.8 50.4 Tm (w0x96y7) Tj+1 0 0 1 20.0 42.8 Tm (w0x97y0) Tj+1 0 0 1 91.2 42.8 Tm (w0x97y1) Tj+1 0 0 1 162.5 42.8 Tm (w0x97y2) Tj+1 0 0 1 233.8 42.8 Tm (w0x97y3) Tj+1 0 0 1 305.0 42.8 Tm (w0x97y4) Tj+1 0 0 1 376.2 42.8 Tm (w0x97y5) Tj+1 0 0 1 447.5 42.8 Tm (w0x97y6) Tj+1 0 0 1 518.8 42.8 Tm (w0x97y7) Tj+1 0 0 1 20.0 35.2 Tm (w0x98y0) Tj+1 0 0 1 91.2 35.2 Tm (w0x98y1) Tj+1 0 0 1 162.5 35.2 Tm (w0x98y2) Tj+1 0 0 1 233.8 35.2 Tm (w0x98y3) Tj+1 0 0 1 305.0 35.2 Tm (w0x98y4) Tj+1 0 0 1 376.2 35.2 Tm (w0x98y5) Tj+1 0 0 1 447.5 35.2 Tm (w0x98y6) Tj+1 0 0 1 518.8 35.2 Tm (w0x98y7) Tj+1 0 0 1 20.0 27.6 Tm (w0x99y0) Tj+1 0 0 1 91.2 27.6 Tm (w0x99y1) Tj+1 0 0 1 162.5 27.6 Tm (w0x99y2) Tj+1 0 0 1 233.8 27.6 Tm (w0x99y3) Tj+1 0 0 1 305.0 27.6 Tm (w0x99y4) Tj+1 0 0 1 376.2 27.6 Tm (w0x99y5) Tj+1 0 0 1 447.5 27.6 Tm (w0x99y6) Tj+1 0 0 1 518.8 27.6 Tm (w0x99y7) Tj+ET+endstream+endobj+6 0 obj+<< /Type /Page /Parent 2 0 R /MediaBox [0 0 612 792] /Resources << /Font << /F1 3 0 R >> >> /Contents 7 0 R >>+endobj+7 0 obj+<< /Length 28454 >>+stream+BT /F1 6 Tf+1 0 0 1 20.0 780.0 Tm (w1x0y0) Tj+1 0 0 1 91.2 780.0 Tm (w1x0y1) Tj+1 0 0 1 162.5 780.0 Tm (w1x0y2) Tj+1 0 0 1 233.8 780.0 Tm (w1x0y3) Tj+1 0 0 1 305.0 780.0 Tm (w1x0y4) Tj+1 0 0 1 376.2 780.0 Tm (w1x0y5) Tj+1 0 0 1 447.5 780.0 Tm (w1x0y6) Tj+1 0 0 1 518.8 780.0 Tm (w1x0y7) Tj+1 0 0 1 20.0 772.4 Tm (w1x1y0) Tj+1 0 0 1 91.2 772.4 Tm (w1x1y1) Tj+1 0 0 1 162.5 772.4 Tm (w1x1y2) Tj+1 0 0 1 233.8 772.4 Tm (w1x1y3) Tj+1 0 0 1 305.0 772.4 Tm (w1x1y4) Tj+1 0 0 1 376.2 772.4 Tm (w1x1y5) Tj+1 0 0 1 447.5 772.4 Tm (w1x1y6) Tj+1 0 0 1 518.8 772.4 Tm (w1x1y7) Tj+1 0 0 1 20.0 764.8 Tm (w1x2y0) Tj+1 0 0 1 91.2 764.8 Tm (w1x2y1) Tj+1 0 0 1 162.5 764.8 Tm (w1x2y2) Tj+1 0 0 1 233.8 764.8 Tm (w1x2y3) Tj+1 0 0 1 305.0 764.8 Tm (w1x2y4) Tj+1 0 0 1 376.2 764.8 Tm (w1x2y5) Tj+1 0 0 1 447.5 764.8 Tm (w1x2y6) Tj+1 0 0 1 518.8 764.8 Tm (w1x2y7) Tj+1 0 0 1 20.0 757.2 Tm (w1x3y0) Tj+1 0 0 1 91.2 757.2 Tm (w1x3y1) Tj+1 0 0 1 162.5 757.2 Tm (w1x3y2) Tj+1 0 0 1 233.8 757.2 Tm (w1x3y3) Tj+1 0 0 1 305.0 757.2 Tm (w1x3y4) Tj+1 0 0 1 376.2 757.2 Tm (w1x3y5) Tj+1 0 0 1 447.5 757.2 Tm (w1x3y6) Tj+1 0 0 1 518.8 757.2 Tm (w1x3y7) Tj+1 0 0 1 20.0 749.6 Tm (w1x4y0) Tj+1 0 0 1 91.2 749.6 Tm (w1x4y1) Tj+1 0 0 1 162.5 749.6 Tm (w1x4y2) Tj+1 0 0 1 233.8 749.6 Tm (w1x4y3) Tj+1 0 0 1 305.0 749.6 Tm (w1x4y4) Tj+1 0 0 1 376.2 749.6 Tm (w1x4y5) Tj+1 0 0 1 447.5 749.6 Tm (w1x4y6) Tj+1 0 0 1 518.8 749.6 Tm (w1x4y7) Tj+1 0 0 1 20.0 742.0 Tm (w1x5y0) Tj+1 0 0 1 91.2 742.0 Tm (w1x5y1) Tj+1 0 0 1 162.5 742.0 Tm (w1x5y2) Tj+1 0 0 1 233.8 742.0 Tm (w1x5y3) Tj+1 0 0 1 305.0 742.0 Tm (w1x5y4) Tj+1 0 0 1 376.2 742.0 Tm (w1x5y5) Tj+1 0 0 1 447.5 742.0 Tm (w1x5y6) Tj+1 0 0 1 518.8 742.0 Tm (w1x5y7) Tj+1 0 0 1 20.0 734.4 Tm (w1x6y0) Tj+1 0 0 1 91.2 734.4 Tm (w1x6y1) Tj+1 0 0 1 162.5 734.4 Tm (w1x6y2) Tj+1 0 0 1 233.8 734.4 Tm (w1x6y3) Tj+1 0 0 1 305.0 734.4 Tm (w1x6y4) Tj+1 0 0 1 376.2 734.4 Tm (w1x6y5) Tj+1 0 0 1 447.5 734.4 Tm (w1x6y6) Tj+1 0 0 1 518.8 734.4 Tm (w1x6y7) Tj+1 0 0 1 20.0 726.8 Tm (w1x7y0) Tj+1 0 0 1 91.2 726.8 Tm (w1x7y1) Tj+1 0 0 1 162.5 726.8 Tm (w1x7y2) Tj+1 0 0 1 233.8 726.8 Tm (w1x7y3) Tj+1 0 0 1 305.0 726.8 Tm (w1x7y4) Tj+1 0 0 1 376.2 726.8 Tm (w1x7y5) Tj+1 0 0 1 447.5 726.8 Tm (w1x7y6) Tj+1 0 0 1 518.8 726.8 Tm (w1x7y7) Tj+1 0 0 1 20.0 719.2 Tm (w1x8y0) Tj+1 0 0 1 91.2 719.2 Tm (w1x8y1) Tj+1 0 0 1 162.5 719.2 Tm (w1x8y2) Tj+1 0 0 1 233.8 719.2 Tm (w1x8y3) Tj+1 0 0 1 305.0 719.2 Tm (w1x8y4) Tj+1 0 0 1 376.2 719.2 Tm (w1x8y5) Tj+1 0 0 1 447.5 719.2 Tm (w1x8y6) Tj+1 0 0 1 518.8 719.2 Tm (w1x8y7) Tj+1 0 0 1 20.0 711.6 Tm (w1x9y0) Tj+1 0 0 1 91.2 711.6 Tm (w1x9y1) Tj+1 0 0 1 162.5 711.6 Tm (w1x9y2) Tj+1 0 0 1 233.8 711.6 Tm (w1x9y3) Tj+1 0 0 1 305.0 711.6 Tm (w1x9y4) Tj+1 0 0 1 376.2 711.6 Tm (w1x9y5) Tj+1 0 0 1 447.5 711.6 Tm (w1x9y6) Tj+1 0 0 1 518.8 711.6 Tm (w1x9y7) Tj+1 0 0 1 20.0 704.0 Tm (w1x10y0) Tj+1 0 0 1 91.2 704.0 Tm (w1x10y1) Tj+1 0 0 1 162.5 704.0 Tm (w1x10y2) Tj+1 0 0 1 233.8 704.0 Tm (w1x10y3) Tj+1 0 0 1 305.0 704.0 Tm (w1x10y4) Tj+1 0 0 1 376.2 704.0 Tm (w1x10y5) Tj+1 0 0 1 447.5 704.0 Tm (w1x10y6) Tj+1 0 0 1 518.8 704.0 Tm (w1x10y7) Tj+1 0 0 1 20.0 696.4 Tm (w1x11y0) Tj+1 0 0 1 91.2 696.4 Tm (w1x11y1) Tj+1 0 0 1 162.5 696.4 Tm (w1x11y2) Tj+1 0 0 1 233.8 696.4 Tm (w1x11y3) Tj+1 0 0 1 305.0 696.4 Tm (w1x11y4) Tj+1 0 0 1 376.2 696.4 Tm (w1x11y5) Tj+1 0 0 1 447.5 696.4 Tm (w1x11y6) Tj+1 0 0 1 518.8 696.4 Tm (w1x11y7) Tj+1 0 0 1 20.0 688.8 Tm (w1x12y0) Tj+1 0 0 1 91.2 688.8 Tm (w1x12y1) Tj+1 0 0 1 162.5 688.8 Tm (w1x12y2) Tj+1 0 0 1 233.8 688.8 Tm (w1x12y3) Tj+1 0 0 1 305.0 688.8 Tm (w1x12y4) Tj+1 0 0 1 376.2 688.8 Tm (w1x12y5) Tj+1 0 0 1 447.5 688.8 Tm (w1x12y6) Tj+1 0 0 1 518.8 688.8 Tm (w1x12y7) Tj+1 0 0 1 20.0 681.2 Tm (w1x13y0) Tj+1 0 0 1 91.2 681.2 Tm (w1x13y1) Tj+1 0 0 1 162.5 681.2 Tm (w1x13y2) Tj+1 0 0 1 233.8 681.2 Tm (w1x13y3) Tj+1 0 0 1 305.0 681.2 Tm (w1x13y4) Tj+1 0 0 1 376.2 681.2 Tm (w1x13y5) Tj+1 0 0 1 447.5 681.2 Tm (w1x13y6) Tj+1 0 0 1 518.8 681.2 Tm (w1x13y7) Tj+1 0 0 1 20.0 673.6 Tm (w1x14y0) Tj+1 0 0 1 91.2 673.6 Tm (w1x14y1) Tj+1 0 0 1 162.5 673.6 Tm (w1x14y2) Tj+1 0 0 1 233.8 673.6 Tm (w1x14y3) Tj+1 0 0 1 305.0 673.6 Tm (w1x14y4) Tj+1 0 0 1 376.2 673.6 Tm (w1x14y5) Tj+1 0 0 1 447.5 673.6 Tm (w1x14y6) Tj+1 0 0 1 518.8 673.6 Tm (w1x14y7) Tj+1 0 0 1 20.0 666.0 Tm (w1x15y0) Tj+1 0 0 1 91.2 666.0 Tm (w1x15y1) Tj+1 0 0 1 162.5 666.0 Tm (w1x15y2) Tj+1 0 0 1 233.8 666.0 Tm (w1x15y3) Tj+1 0 0 1 305.0 666.0 Tm (w1x15y4) Tj+1 0 0 1 376.2 666.0 Tm (w1x15y5) Tj+1 0 0 1 447.5 666.0 Tm (w1x15y6) Tj+1 0 0 1 518.8 666.0 Tm (w1x15y7) Tj+1 0 0 1 20.0 658.4 Tm (w1x16y0) Tj+1 0 0 1 91.2 658.4 Tm (w1x16y1) Tj+1 0 0 1 162.5 658.4 Tm (w1x16y2) Tj+1 0 0 1 233.8 658.4 Tm (w1x16y3) Tj+1 0 0 1 305.0 658.4 Tm (w1x16y4) Tj+1 0 0 1 376.2 658.4 Tm (w1x16y5) Tj+1 0 0 1 447.5 658.4 Tm (w1x16y6) Tj+1 0 0 1 518.8 658.4 Tm (w1x16y7) Tj+1 0 0 1 20.0 650.8 Tm (w1x17y0) Tj+1 0 0 1 91.2 650.8 Tm (w1x17y1) Tj+1 0 0 1 162.5 650.8 Tm (w1x17y2) Tj+1 0 0 1 233.8 650.8 Tm (w1x17y3) Tj+1 0 0 1 305.0 650.8 Tm (w1x17y4) Tj+1 0 0 1 376.2 650.8 Tm (w1x17y5) Tj+1 0 0 1 447.5 650.8 Tm (w1x17y6) Tj+1 0 0 1 518.8 650.8 Tm (w1x17y7) Tj+1 0 0 1 20.0 643.2 Tm (w1x18y0) Tj+1 0 0 1 91.2 643.2 Tm (w1x18y1) Tj+1 0 0 1 162.5 643.2 Tm (w1x18y2) Tj+1 0 0 1 233.8 643.2 Tm (w1x18y3) Tj+1 0 0 1 305.0 643.2 Tm (w1x18y4) Tj+1 0 0 1 376.2 643.2 Tm (w1x18y5) Tj+1 0 0 1 447.5 643.2 Tm (w1x18y6) Tj+1 0 0 1 518.8 643.2 Tm (w1x18y7) Tj+1 0 0 1 20.0 635.6 Tm (w1x19y0) Tj+1 0 0 1 91.2 635.6 Tm (w1x19y1) Tj+1 0 0 1 162.5 635.6 Tm (w1x19y2) Tj+1 0 0 1 233.8 635.6 Tm (w1x19y3) Tj+1 0 0 1 305.0 635.6 Tm (w1x19y4) Tj+1 0 0 1 376.2 635.6 Tm (w1x19y5) Tj+1 0 0 1 447.5 635.6 Tm (w1x19y6) Tj+1 0 0 1 518.8 635.6 Tm (w1x19y7) Tj+1 0 0 1 20.0 628.0 Tm (w1x20y0) Tj+1 0 0 1 91.2 628.0 Tm (w1x20y1) Tj+1 0 0 1 162.5 628.0 Tm (w1x20y2) Tj+1 0 0 1 233.8 628.0 Tm (w1x20y3) Tj+1 0 0 1 305.0 628.0 Tm (w1x20y4) Tj+1 0 0 1 376.2 628.0 Tm (w1x20y5) Tj+1 0 0 1 447.5 628.0 Tm (w1x20y6) Tj+1 0 0 1 518.8 628.0 Tm (w1x20y7) Tj+1 0 0 1 20.0 620.4 Tm (w1x21y0) Tj+1 0 0 1 91.2 620.4 Tm (w1x21y1) Tj+1 0 0 1 162.5 620.4 Tm (w1x21y2) Tj+1 0 0 1 233.8 620.4 Tm (w1x21y3) Tj+1 0 0 1 305.0 620.4 Tm (w1x21y4) Tj+1 0 0 1 376.2 620.4 Tm (w1x21y5) Tj+1 0 0 1 447.5 620.4 Tm (w1x21y6) Tj+1 0 0 1 518.8 620.4 Tm (w1x21y7) Tj+1 0 0 1 20.0 612.8 Tm (w1x22y0) Tj+1 0 0 1 91.2 612.8 Tm (w1x22y1) Tj+1 0 0 1 162.5 612.8 Tm (w1x22y2) Tj+1 0 0 1 233.8 612.8 Tm (w1x22y3) Tj+1 0 0 1 305.0 612.8 Tm (w1x22y4) Tj+1 0 0 1 376.2 612.8 Tm (w1x22y5) Tj+1 0 0 1 447.5 612.8 Tm (w1x22y6) Tj+1 0 0 1 518.8 612.8 Tm (w1x22y7) Tj+1 0 0 1 20.0 605.2 Tm (w1x23y0) Tj+1 0 0 1 91.2 605.2 Tm (w1x23y1) Tj+1 0 0 1 162.5 605.2 Tm (w1x23y2) Tj+1 0 0 1 233.8 605.2 Tm (w1x23y3) Tj+1 0 0 1 305.0 605.2 Tm (w1x23y4) Tj+1 0 0 1 376.2 605.2 Tm (w1x23y5) Tj+1 0 0 1 447.5 605.2 Tm (w1x23y6) Tj+1 0 0 1 518.8 605.2 Tm (w1x23y7) Tj+1 0 0 1 20.0 597.6 Tm (w1x24y0) Tj+1 0 0 1 91.2 597.6 Tm (w1x24y1) Tj+1 0 0 1 162.5 597.6 Tm (w1x24y2) Tj+1 0 0 1 233.8 597.6 Tm (w1x24y3) Tj+1 0 0 1 305.0 597.6 Tm (w1x24y4) Tj+1 0 0 1 376.2 597.6 Tm (w1x24y5) Tj+1 0 0 1 447.5 597.6 Tm (w1x24y6) Tj+1 0 0 1 518.8 597.6 Tm (w1x24y7) Tj+1 0 0 1 20.0 590.0 Tm (w1x25y0) Tj+1 0 0 1 91.2 590.0 Tm (w1x25y1) Tj+1 0 0 1 162.5 590.0 Tm (w1x25y2) Tj+1 0 0 1 233.8 590.0 Tm (w1x25y3) Tj+1 0 0 1 305.0 590.0 Tm (w1x25y4) Tj+1 0 0 1 376.2 590.0 Tm (w1x25y5) Tj+1 0 0 1 447.5 590.0 Tm (w1x25y6) Tj+1 0 0 1 518.8 590.0 Tm (w1x25y7) Tj+1 0 0 1 20.0 582.4 Tm (w1x26y0) Tj+1 0 0 1 91.2 582.4 Tm (w1x26y1) Tj+1 0 0 1 162.5 582.4 Tm (w1x26y2) Tj+1 0 0 1 233.8 582.4 Tm (w1x26y3) Tj+1 0 0 1 305.0 582.4 Tm (w1x26y4) Tj+1 0 0 1 376.2 582.4 Tm (w1x26y5) Tj+1 0 0 1 447.5 582.4 Tm (w1x26y6) Tj+1 0 0 1 518.8 582.4 Tm (w1x26y7) Tj+1 0 0 1 20.0 574.8 Tm (w1x27y0) Tj+1 0 0 1 91.2 574.8 Tm (w1x27y1) Tj+1 0 0 1 162.5 574.8 Tm (w1x27y2) Tj+1 0 0 1 233.8 574.8 Tm (w1x27y3) Tj+1 0 0 1 305.0 574.8 Tm (w1x27y4) Tj+1 0 0 1 376.2 574.8 Tm (w1x27y5) Tj+1 0 0 1 447.5 574.8 Tm (w1x27y6) Tj+1 0 0 1 518.8 574.8 Tm (w1x27y7) Tj+1 0 0 1 20.0 567.2 Tm (w1x28y0) Tj+1 0 0 1 91.2 567.2 Tm (w1x28y1) Tj+1 0 0 1 162.5 567.2 Tm (w1x28y2) Tj+1 0 0 1 233.8 567.2 Tm (w1x28y3) Tj+1 0 0 1 305.0 567.2 Tm (w1x28y4) Tj+1 0 0 1 376.2 567.2 Tm (w1x28y5) Tj+1 0 0 1 447.5 567.2 Tm (w1x28y6) Tj+1 0 0 1 518.8 567.2 Tm (w1x28y7) Tj+1 0 0 1 20.0 559.6 Tm (w1x29y0) Tj+1 0 0 1 91.2 559.6 Tm (w1x29y1) Tj+1 0 0 1 162.5 559.6 Tm (w1x29y2) Tj+1 0 0 1 233.8 559.6 Tm (w1x29y3) Tj+1 0 0 1 305.0 559.6 Tm (w1x29y4) Tj+1 0 0 1 376.2 559.6 Tm (w1x29y5) Tj+1 0 0 1 447.5 559.6 Tm (w1x29y6) Tj+1 0 0 1 518.8 559.6 Tm (w1x29y7) Tj+1 0 0 1 20.0 552.0 Tm (w1x30y0) Tj+1 0 0 1 91.2 552.0 Tm (w1x30y1) Tj+1 0 0 1 162.5 552.0 Tm (w1x30y2) Tj+1 0 0 1 233.8 552.0 Tm (w1x30y3) Tj+1 0 0 1 305.0 552.0 Tm (w1x30y4) Tj+1 0 0 1 376.2 552.0 Tm (w1x30y5) Tj+1 0 0 1 447.5 552.0 Tm (w1x30y6) Tj+1 0 0 1 518.8 552.0 Tm (w1x30y7) Tj+1 0 0 1 20.0 544.4 Tm (w1x31y0) Tj+1 0 0 1 91.2 544.4 Tm (w1x31y1) Tj+1 0 0 1 162.5 544.4 Tm (w1x31y2) Tj+1 0 0 1 233.8 544.4 Tm (w1x31y3) Tj+1 0 0 1 305.0 544.4 Tm (w1x31y4) Tj+1 0 0 1 376.2 544.4 Tm (w1x31y5) Tj+1 0 0 1 447.5 544.4 Tm (w1x31y6) Tj+1 0 0 1 518.8 544.4 Tm (w1x31y7) Tj+1 0 0 1 20.0 536.8 Tm (w1x32y0) Tj+1 0 0 1 91.2 536.8 Tm (w1x32y1) Tj+1 0 0 1 162.5 536.8 Tm (w1x32y2) Tj+1 0 0 1 233.8 536.8 Tm (w1x32y3) Tj+1 0 0 1 305.0 536.8 Tm (w1x32y4) Tj+1 0 0 1 376.2 536.8 Tm (w1x32y5) Tj+1 0 0 1 447.5 536.8 Tm (w1x32y6) Tj+1 0 0 1 518.8 536.8 Tm (w1x32y7) Tj+1 0 0 1 20.0 529.2 Tm (w1x33y0) Tj+1 0 0 1 91.2 529.2 Tm (w1x33y1) Tj+1 0 0 1 162.5 529.2 Tm (w1x33y2) Tj+1 0 0 1 233.8 529.2 Tm (w1x33y3) Tj+1 0 0 1 305.0 529.2 Tm (w1x33y4) Tj+1 0 0 1 376.2 529.2 Tm (w1x33y5) Tj+1 0 0 1 447.5 529.2 Tm (w1x33y6) Tj+1 0 0 1 518.8 529.2 Tm (w1x33y7) Tj+1 0 0 1 20.0 521.6 Tm (w1x34y0) Tj+1 0 0 1 91.2 521.6 Tm (w1x34y1) Tj+1 0 0 1 162.5 521.6 Tm (w1x34y2) Tj+1 0 0 1 233.8 521.6 Tm (w1x34y3) Tj+1 0 0 1 305.0 521.6 Tm (w1x34y4) Tj+1 0 0 1 376.2 521.6 Tm (w1x34y5) Tj+1 0 0 1 447.5 521.6 Tm (w1x34y6) Tj+1 0 0 1 518.8 521.6 Tm (w1x34y7) Tj+1 0 0 1 20.0 514.0 Tm (w1x35y0) Tj+1 0 0 1 91.2 514.0 Tm (w1x35y1) Tj+1 0 0 1 162.5 514.0 Tm (w1x35y2) Tj+1 0 0 1 233.8 514.0 Tm (w1x35y3) Tj+1 0 0 1 305.0 514.0 Tm (w1x35y4) Tj+1 0 0 1 376.2 514.0 Tm (w1x35y5) Tj+1 0 0 1 447.5 514.0 Tm (w1x35y6) Tj+1 0 0 1 518.8 514.0 Tm (w1x35y7) Tj+1 0 0 1 20.0 506.4 Tm (w1x36y0) Tj+1 0 0 1 91.2 506.4 Tm (w1x36y1) Tj+1 0 0 1 162.5 506.4 Tm (w1x36y2) Tj+1 0 0 1 233.8 506.4 Tm (w1x36y3) Tj+1 0 0 1 305.0 506.4 Tm (w1x36y4) Tj+1 0 0 1 376.2 506.4 Tm (w1x36y5) Tj+1 0 0 1 447.5 506.4 Tm (w1x36y6) Tj+1 0 0 1 518.8 506.4 Tm (w1x36y7) Tj+1 0 0 1 20.0 498.8 Tm (w1x37y0) Tj+1 0 0 1 91.2 498.8 Tm (w1x37y1) Tj+1 0 0 1 162.5 498.8 Tm (w1x37y2) Tj+1 0 0 1 233.8 498.8 Tm (w1x37y3) Tj+1 0 0 1 305.0 498.8 Tm (w1x37y4) Tj+1 0 0 1 376.2 498.8 Tm (w1x37y5) Tj+1 0 0 1 447.5 498.8 Tm (w1x37y6) Tj+1 0 0 1 518.8 498.8 Tm (w1x37y7) Tj+1 0 0 1 20.0 491.2 Tm (w1x38y0) Tj+1 0 0 1 91.2 491.2 Tm (w1x38y1) Tj+1 0 0 1 162.5 491.2 Tm (w1x38y2) Tj+1 0 0 1 233.8 491.2 Tm (w1x38y3) Tj+1 0 0 1 305.0 491.2 Tm (w1x38y4) Tj+1 0 0 1 376.2 491.2 Tm (w1x38y5) Tj+1 0 0 1 447.5 491.2 Tm (w1x38y6) Tj+1 0 0 1 518.8 491.2 Tm (w1x38y7) Tj+1 0 0 1 20.0 483.6 Tm (w1x39y0) Tj+1 0 0 1 91.2 483.6 Tm (w1x39y1) Tj+1 0 0 1 162.5 483.6 Tm (w1x39y2) Tj+1 0 0 1 233.8 483.6 Tm (w1x39y3) Tj+1 0 0 1 305.0 483.6 Tm (w1x39y4) Tj+1 0 0 1 376.2 483.6 Tm (w1x39y5) Tj+1 0 0 1 447.5 483.6 Tm (w1x39y6) Tj+1 0 0 1 518.8 483.6 Tm (w1x39y7) Tj+1 0 0 1 20.0 476.0 Tm (w1x40y0) Tj+1 0 0 1 91.2 476.0 Tm (w1x40y1) Tj+1 0 0 1 162.5 476.0 Tm (w1x40y2) Tj+1 0 0 1 233.8 476.0 Tm (w1x40y3) Tj+1 0 0 1 305.0 476.0 Tm (w1x40y4) Tj+1 0 0 1 376.2 476.0 Tm (w1x40y5) Tj+1 0 0 1 447.5 476.0 Tm (w1x40y6) Tj+1 0 0 1 518.8 476.0 Tm (w1x40y7) Tj+1 0 0 1 20.0 468.4 Tm (w1x41y0) Tj+1 0 0 1 91.2 468.4 Tm (w1x41y1) Tj+1 0 0 1 162.5 468.4 Tm (w1x41y2) Tj+1 0 0 1 233.8 468.4 Tm (w1x41y3) Tj+1 0 0 1 305.0 468.4 Tm (w1x41y4) Tj+1 0 0 1 376.2 468.4 Tm (w1x41y5) Tj+1 0 0 1 447.5 468.4 Tm (w1x41y6) Tj+1 0 0 1 518.8 468.4 Tm (w1x41y7) Tj+1 0 0 1 20.0 460.8 Tm (w1x42y0) Tj+1 0 0 1 91.2 460.8 Tm (w1x42y1) Tj+1 0 0 1 162.5 460.8 Tm (w1x42y2) Tj+1 0 0 1 233.8 460.8 Tm (w1x42y3) Tj+1 0 0 1 305.0 460.8 Tm (w1x42y4) Tj+1 0 0 1 376.2 460.8 Tm (w1x42y5) Tj+1 0 0 1 447.5 460.8 Tm (w1x42y6) Tj+1 0 0 1 518.8 460.8 Tm (w1x42y7) Tj+1 0 0 1 20.0 453.2 Tm (w1x43y0) Tj+1 0 0 1 91.2 453.2 Tm (w1x43y1) Tj+1 0 0 1 162.5 453.2 Tm (w1x43y2) Tj+1 0 0 1 233.8 453.2 Tm (w1x43y3) Tj+1 0 0 1 305.0 453.2 Tm (w1x43y4) Tj+1 0 0 1 376.2 453.2 Tm (w1x43y5) Tj+1 0 0 1 447.5 453.2 Tm (w1x43y6) Tj+1 0 0 1 518.8 453.2 Tm (w1x43y7) Tj+1 0 0 1 20.0 445.6 Tm (w1x44y0) Tj+1 0 0 1 91.2 445.6 Tm (w1x44y1) Tj+1 0 0 1 162.5 445.6 Tm (w1x44y2) Tj+1 0 0 1 233.8 445.6 Tm (w1x44y3) Tj+1 0 0 1 305.0 445.6 Tm (w1x44y4) Tj+1 0 0 1 376.2 445.6 Tm (w1x44y5) Tj+1 0 0 1 447.5 445.6 Tm (w1x44y6) Tj+1 0 0 1 518.8 445.6 Tm (w1x44y7) Tj+1 0 0 1 20.0 438.0 Tm (w1x45y0) Tj+1 0 0 1 91.2 438.0 Tm (w1x45y1) Tj+1 0 0 1 162.5 438.0 Tm (w1x45y2) Tj+1 0 0 1 233.8 438.0 Tm (w1x45y3) Tj+1 0 0 1 305.0 438.0 Tm (w1x45y4) Tj+1 0 0 1 376.2 438.0 Tm (w1x45y5) Tj+1 0 0 1 447.5 438.0 Tm (w1x45y6) Tj+1 0 0 1 518.8 438.0 Tm (w1x45y7) Tj+1 0 0 1 20.0 430.4 Tm (w1x46y0) Tj+1 0 0 1 91.2 430.4 Tm (w1x46y1) Tj+1 0 0 1 162.5 430.4 Tm (w1x46y2) Tj+1 0 0 1 233.8 430.4 Tm (w1x46y3) Tj+1 0 0 1 305.0 430.4 Tm (w1x46y4) Tj+1 0 0 1 376.2 430.4 Tm (w1x46y5) Tj+1 0 0 1 447.5 430.4 Tm (w1x46y6) Tj+1 0 0 1 518.8 430.4 Tm (w1x46y7) Tj+1 0 0 1 20.0 422.8 Tm (w1x47y0) Tj+1 0 0 1 91.2 422.8 Tm (w1x47y1) Tj+1 0 0 1 162.5 422.8 Tm (w1x47y2) Tj+1 0 0 1 233.8 422.8 Tm (w1x47y3) Tj+1 0 0 1 305.0 422.8 Tm (w1x47y4) Tj+1 0 0 1 376.2 422.8 Tm (w1x47y5) Tj+1 0 0 1 447.5 422.8 Tm (w1x47y6) Tj+1 0 0 1 518.8 422.8 Tm (w1x47y7) Tj+1 0 0 1 20.0 415.2 Tm (w1x48y0) Tj+1 0 0 1 91.2 415.2 Tm (w1x48y1) Tj+1 0 0 1 162.5 415.2 Tm (w1x48y2) Tj+1 0 0 1 233.8 415.2 Tm (w1x48y3) Tj+1 0 0 1 305.0 415.2 Tm (w1x48y4) Tj+1 0 0 1 376.2 415.2 Tm (w1x48y5) Tj+1 0 0 1 447.5 415.2 Tm (w1x48y6) Tj+1 0 0 1 518.8 415.2 Tm (w1x48y7) Tj+1 0 0 1 20.0 407.6 Tm (w1x49y0) Tj+1 0 0 1 91.2 407.6 Tm (w1x49y1) Tj+1 0 0 1 162.5 407.6 Tm (w1x49y2) Tj+1 0 0 1 233.8 407.6 Tm (w1x49y3) Tj+1 0 0 1 305.0 407.6 Tm (w1x49y4) Tj+1 0 0 1 376.2 407.6 Tm (w1x49y5) Tj+1 0 0 1 447.5 407.6 Tm (w1x49y6) Tj+1 0 0 1 518.8 407.6 Tm (w1x49y7) Tj+1 0 0 1 20.0 400.0 Tm (w1x50y0) Tj+1 0 0 1 91.2 400.0 Tm (w1x50y1) Tj+1 0 0 1 162.5 400.0 Tm (w1x50y2) Tj+1 0 0 1 233.8 400.0 Tm (w1x50y3) Tj+1 0 0 1 305.0 400.0 Tm (w1x50y4) Tj+1 0 0 1 376.2 400.0 Tm (w1x50y5) Tj+1 0 0 1 447.5 400.0 Tm (w1x50y6) Tj+1 0 0 1 518.8 400.0 Tm (w1x50y7) Tj+1 0 0 1 20.0 392.4 Tm (w1x51y0) Tj+1 0 0 1 91.2 392.4 Tm (w1x51y1) Tj+1 0 0 1 162.5 392.4 Tm (w1x51y2) Tj+1 0 0 1 233.8 392.4 Tm (w1x51y3) Tj+1 0 0 1 305.0 392.4 Tm (w1x51y4) Tj+1 0 0 1 376.2 392.4 Tm (w1x51y5) Tj+1 0 0 1 447.5 392.4 Tm (w1x51y6) Tj+1 0 0 1 518.8 392.4 Tm (w1x51y7) Tj+1 0 0 1 20.0 384.8 Tm (w1x52y0) Tj+1 0 0 1 91.2 384.8 Tm (w1x52y1) Tj+1 0 0 1 162.5 384.8 Tm (w1x52y2) Tj+1 0 0 1 233.8 384.8 Tm (w1x52y3) Tj+1 0 0 1 305.0 384.8 Tm (w1x52y4) Tj+1 0 0 1 376.2 384.8 Tm (w1x52y5) Tj+1 0 0 1 447.5 384.8 Tm (w1x52y6) Tj+1 0 0 1 518.8 384.8 Tm (w1x52y7) Tj+1 0 0 1 20.0 377.2 Tm (w1x53y0) Tj+1 0 0 1 91.2 377.2 Tm (w1x53y1) Tj+1 0 0 1 162.5 377.2 Tm (w1x53y2) Tj+1 0 0 1 233.8 377.2 Tm (w1x53y3) Tj+1 0 0 1 305.0 377.2 Tm (w1x53y4) Tj+1 0 0 1 376.2 377.2 Tm (w1x53y5) Tj+1 0 0 1 447.5 377.2 Tm (w1x53y6) Tj+1 0 0 1 518.8 377.2 Tm (w1x53y7) Tj+1 0 0 1 20.0 369.6 Tm (w1x54y0) Tj+1 0 0 1 91.2 369.6 Tm (w1x54y1) Tj+1 0 0 1 162.5 369.6 Tm (w1x54y2) Tj+1 0 0 1 233.8 369.6 Tm (w1x54y3) Tj+1 0 0 1 305.0 369.6 Tm (w1x54y4) Tj+1 0 0 1 376.2 369.6 Tm (w1x54y5) Tj+1 0 0 1 447.5 369.6 Tm (w1x54y6) Tj+1 0 0 1 518.8 369.6 Tm (w1x54y7) Tj+1 0 0 1 20.0 362.0 Tm (w1x55y0) Tj+1 0 0 1 91.2 362.0 Tm (w1x55y1) Tj+1 0 0 1 162.5 362.0 Tm (w1x55y2) Tj+1 0 0 1 233.8 362.0 Tm (w1x55y3) Tj+1 0 0 1 305.0 362.0 Tm (w1x55y4) Tj+1 0 0 1 376.2 362.0 Tm (w1x55y5) Tj+1 0 0 1 447.5 362.0 Tm (w1x55y6) Tj+1 0 0 1 518.8 362.0 Tm (w1x55y7) Tj+1 0 0 1 20.0 354.4 Tm (w1x56y0) Tj+1 0 0 1 91.2 354.4 Tm (w1x56y1) Tj+1 0 0 1 162.5 354.4 Tm (w1x56y2) Tj+1 0 0 1 233.8 354.4 Tm (w1x56y3) Tj+1 0 0 1 305.0 354.4 Tm (w1x56y4) Tj+1 0 0 1 376.2 354.4 Tm (w1x56y5) Tj+1 0 0 1 447.5 354.4 Tm (w1x56y6) Tj+1 0 0 1 518.8 354.4 Tm (w1x56y7) Tj+1 0 0 1 20.0 346.8 Tm (w1x57y0) Tj+1 0 0 1 91.2 346.8 Tm (w1x57y1) Tj+1 0 0 1 162.5 346.8 Tm (w1x57y2) Tj+1 0 0 1 233.8 346.8 Tm (w1x57y3) Tj+1 0 0 1 305.0 346.8 Tm (w1x57y4) Tj+1 0 0 1 376.2 346.8 Tm (w1x57y5) Tj+1 0 0 1 447.5 346.8 Tm (w1x57y6) Tj+1 0 0 1 518.8 346.8 Tm (w1x57y7) Tj+1 0 0 1 20.0 339.2 Tm (w1x58y0) Tj+1 0 0 1 91.2 339.2 Tm (w1x58y1) Tj+1 0 0 1 162.5 339.2 Tm (w1x58y2) Tj+1 0 0 1 233.8 339.2 Tm (w1x58y3) Tj+1 0 0 1 305.0 339.2 Tm (w1x58y4) Tj+1 0 0 1 376.2 339.2 Tm (w1x58y5) Tj+1 0 0 1 447.5 339.2 Tm (w1x58y6) Tj+1 0 0 1 518.8 339.2 Tm (w1x58y7) Tj+1 0 0 1 20.0 331.6 Tm (w1x59y0) Tj+1 0 0 1 91.2 331.6 Tm (w1x59y1) Tj+1 0 0 1 162.5 331.6 Tm (w1x59y2) Tj+1 0 0 1 233.8 331.6 Tm (w1x59y3) Tj+1 0 0 1 305.0 331.6 Tm (w1x59y4) Tj+1 0 0 1 376.2 331.6 Tm (w1x59y5) Tj+1 0 0 1 447.5 331.6 Tm (w1x59y6) Tj+1 0 0 1 518.8 331.6 Tm (w1x59y7) Tj+1 0 0 1 20.0 324.0 Tm (w1x60y0) Tj+1 0 0 1 91.2 324.0 Tm (w1x60y1) Tj+1 0 0 1 162.5 324.0 Tm (w1x60y2) Tj+1 0 0 1 233.8 324.0 Tm (w1x60y3) Tj+1 0 0 1 305.0 324.0 Tm (w1x60y4) Tj+1 0 0 1 376.2 324.0 Tm (w1x60y5) Tj+1 0 0 1 447.5 324.0 Tm (w1x60y6) Tj+1 0 0 1 518.8 324.0 Tm (w1x60y7) Tj+1 0 0 1 20.0 316.4 Tm (w1x61y0) Tj+1 0 0 1 91.2 316.4 Tm (w1x61y1) Tj+1 0 0 1 162.5 316.4 Tm (w1x61y2) Tj+1 0 0 1 233.8 316.4 Tm (w1x61y3) Tj+1 0 0 1 305.0 316.4 Tm (w1x61y4) Tj+1 0 0 1 376.2 316.4 Tm (w1x61y5) Tj+1 0 0 1 447.5 316.4 Tm (w1x61y6) Tj+1 0 0 1 518.8 316.4 Tm (w1x61y7) Tj+1 0 0 1 20.0 308.8 Tm (w1x62y0) Tj+1 0 0 1 91.2 308.8 Tm (w1x62y1) Tj+1 0 0 1 162.5 308.8 Tm (w1x62y2) Tj+1 0 0 1 233.8 308.8 Tm (w1x62y3) Tj+1 0 0 1 305.0 308.8 Tm (w1x62y4) Tj+1 0 0 1 376.2 308.8 Tm (w1x62y5) Tj+1 0 0 1 447.5 308.8 Tm (w1x62y6) Tj+1 0 0 1 518.8 308.8 Tm (w1x62y7) Tj+1 0 0 1 20.0 301.2 Tm (w1x63y0) Tj+1 0 0 1 91.2 301.2 Tm (w1x63y1) Tj+1 0 0 1 162.5 301.2 Tm (w1x63y2) Tj+1 0 0 1 233.8 301.2 Tm (w1x63y3) Tj+1 0 0 1 305.0 301.2 Tm (w1x63y4) Tj+1 0 0 1 376.2 301.2 Tm (w1x63y5) Tj+1 0 0 1 447.5 301.2 Tm (w1x63y6) Tj+1 0 0 1 518.8 301.2 Tm (w1x63y7) Tj+1 0 0 1 20.0 293.6 Tm (w1x64y0) Tj+1 0 0 1 91.2 293.6 Tm (w1x64y1) Tj+1 0 0 1 162.5 293.6 Tm (w1x64y2) Tj+1 0 0 1 233.8 293.6 Tm (w1x64y3) Tj+1 0 0 1 305.0 293.6 Tm (w1x64y4) Tj+1 0 0 1 376.2 293.6 Tm (w1x64y5) Tj+1 0 0 1 447.5 293.6 Tm (w1x64y6) Tj+1 0 0 1 518.8 293.6 Tm (w1x64y7) Tj+1 0 0 1 20.0 286.0 Tm (w1x65y0) Tj+1 0 0 1 91.2 286.0 Tm (w1x65y1) Tj+1 0 0 1 162.5 286.0 Tm (w1x65y2) Tj+1 0 0 1 233.8 286.0 Tm (w1x65y3) Tj+1 0 0 1 305.0 286.0 Tm (w1x65y4) Tj+1 0 0 1 376.2 286.0 Tm (w1x65y5) Tj+1 0 0 1 447.5 286.0 Tm (w1x65y6) Tj+1 0 0 1 518.8 286.0 Tm (w1x65y7) Tj+1 0 0 1 20.0 278.4 Tm (w1x66y0) Tj+1 0 0 1 91.2 278.4 Tm (w1x66y1) Tj+1 0 0 1 162.5 278.4 Tm (w1x66y2) Tj+1 0 0 1 233.8 278.4 Tm (w1x66y3) Tj+1 0 0 1 305.0 278.4 Tm (w1x66y4) Tj+1 0 0 1 376.2 278.4 Tm (w1x66y5) Tj+1 0 0 1 447.5 278.4 Tm (w1x66y6) Tj+1 0 0 1 518.8 278.4 Tm (w1x66y7) Tj+1 0 0 1 20.0 270.8 Tm (w1x67y0) Tj+1 0 0 1 91.2 270.8 Tm (w1x67y1) Tj+1 0 0 1 162.5 270.8 Tm (w1x67y2) Tj+1 0 0 1 233.8 270.8 Tm (w1x67y3) Tj+1 0 0 1 305.0 270.8 Tm (w1x67y4) Tj+1 0 0 1 376.2 270.8 Tm (w1x67y5) Tj+1 0 0 1 447.5 270.8 Tm (w1x67y6) Tj+1 0 0 1 518.8 270.8 Tm (w1x67y7) Tj+1 0 0 1 20.0 263.2 Tm (w1x68y0) Tj+1 0 0 1 91.2 263.2 Tm (w1x68y1) Tj+1 0 0 1 162.5 263.2 Tm (w1x68y2) Tj+1 0 0 1 233.8 263.2 Tm (w1x68y3) Tj+1 0 0 1 305.0 263.2 Tm (w1x68y4) Tj+1 0 0 1 376.2 263.2 Tm (w1x68y5) Tj+1 0 0 1 447.5 263.2 Tm (w1x68y6) Tj+1 0 0 1 518.8 263.2 Tm (w1x68y7) Tj+1 0 0 1 20.0 255.6 Tm (w1x69y0) Tj+1 0 0 1 91.2 255.6 Tm (w1x69y1) Tj+1 0 0 1 162.5 255.6 Tm (w1x69y2) Tj+1 0 0 1 233.8 255.6 Tm (w1x69y3) Tj+1 0 0 1 305.0 255.6 Tm (w1x69y4) Tj+1 0 0 1 376.2 255.6 Tm (w1x69y5) Tj+1 0 0 1 447.5 255.6 Tm (w1x69y6) Tj+1 0 0 1 518.8 255.6 Tm (w1x69y7) Tj+1 0 0 1 20.0 248.0 Tm (w1x70y0) Tj+1 0 0 1 91.2 248.0 Tm (w1x70y1) Tj+1 0 0 1 162.5 248.0 Tm (w1x70y2) Tj+1 0 0 1 233.8 248.0 Tm (w1x70y3) Tj+1 0 0 1 305.0 248.0 Tm (w1x70y4) Tj+1 0 0 1 376.2 248.0 Tm (w1x70y5) Tj+1 0 0 1 447.5 248.0 Tm (w1x70y6) Tj+1 0 0 1 518.8 248.0 Tm (w1x70y7) Tj+1 0 0 1 20.0 240.4 Tm (w1x71y0) Tj+1 0 0 1 91.2 240.4 Tm (w1x71y1) Tj+1 0 0 1 162.5 240.4 Tm (w1x71y2) Tj+1 0 0 1 233.8 240.4 Tm (w1x71y3) Tj+1 0 0 1 305.0 240.4 Tm (w1x71y4) Tj+1 0 0 1 376.2 240.4 Tm (w1x71y5) Tj+1 0 0 1 447.5 240.4 Tm (w1x71y6) Tj+1 0 0 1 518.8 240.4 Tm (w1x71y7) Tj+1 0 0 1 20.0 232.8 Tm (w1x72y0) Tj+1 0 0 1 91.2 232.8 Tm (w1x72y1) Tj+1 0 0 1 162.5 232.8 Tm (w1x72y2) Tj+1 0 0 1 233.8 232.8 Tm (w1x72y3) Tj+1 0 0 1 305.0 232.8 Tm (w1x72y4) Tj+1 0 0 1 376.2 232.8 Tm (w1x72y5) Tj+1 0 0 1 447.5 232.8 Tm (w1x72y6) Tj+1 0 0 1 518.8 232.8 Tm (w1x72y7) Tj+1 0 0 1 20.0 225.2 Tm (w1x73y0) Tj+1 0 0 1 91.2 225.2 Tm (w1x73y1) Tj+1 0 0 1 162.5 225.2 Tm (w1x73y2) Tj+1 0 0 1 233.8 225.2 Tm (w1x73y3) Tj+1 0 0 1 305.0 225.2 Tm (w1x73y4) Tj+1 0 0 1 376.2 225.2 Tm (w1x73y5) Tj+1 0 0 1 447.5 225.2 Tm (w1x73y6) Tj+1 0 0 1 518.8 225.2 Tm (w1x73y7) Tj+1 0 0 1 20.0 217.6 Tm (w1x74y0) Tj+1 0 0 1 91.2 217.6 Tm (w1x74y1) Tj+1 0 0 1 162.5 217.6 Tm (w1x74y2) Tj+1 0 0 1 233.8 217.6 Tm (w1x74y3) Tj+1 0 0 1 305.0 217.6 Tm (w1x74y4) Tj+1 0 0 1 376.2 217.6 Tm (w1x74y5) Tj+1 0 0 1 447.5 217.6 Tm (w1x74y6) Tj+1 0 0 1 518.8 217.6 Tm (w1x74y7) Tj+1 0 0 1 20.0 210.0 Tm (w1x75y0) Tj+1 0 0 1 91.2 210.0 Tm (w1x75y1) Tj+1 0 0 1 162.5 210.0 Tm (w1x75y2) Tj+1 0 0 1 233.8 210.0 Tm (w1x75y3) Tj+1 0 0 1 305.0 210.0 Tm (w1x75y4) Tj+1 0 0 1 376.2 210.0 Tm (w1x75y5) Tj+1 0 0 1 447.5 210.0 Tm (w1x75y6) Tj+1 0 0 1 518.8 210.0 Tm (w1x75y7) Tj+1 0 0 1 20.0 202.4 Tm (w1x76y0) Tj+1 0 0 1 91.2 202.4 Tm (w1x76y1) Tj+1 0 0 1 162.5 202.4 Tm (w1x76y2) Tj+1 0 0 1 233.8 202.4 Tm (w1x76y3) Tj+1 0 0 1 305.0 202.4 Tm (w1x76y4) Tj+1 0 0 1 376.2 202.4 Tm (w1x76y5) Tj+1 0 0 1 447.5 202.4 Tm (w1x76y6) Tj+1 0 0 1 518.8 202.4 Tm (w1x76y7) Tj+1 0 0 1 20.0 194.8 Tm (w1x77y0) Tj+1 0 0 1 91.2 194.8 Tm (w1x77y1) Tj+1 0 0 1 162.5 194.8 Tm (w1x77y2) Tj+1 0 0 1 233.8 194.8 Tm (w1x77y3) Tj+1 0 0 1 305.0 194.8 Tm (w1x77y4) Tj+1 0 0 1 376.2 194.8 Tm (w1x77y5) Tj+1 0 0 1 447.5 194.8 Tm (w1x77y6) Tj+1 0 0 1 518.8 194.8 Tm (w1x77y7) Tj+1 0 0 1 20.0 187.2 Tm (w1x78y0) Tj+1 0 0 1 91.2 187.2 Tm (w1x78y1) Tj+1 0 0 1 162.5 187.2 Tm (w1x78y2) Tj+1 0 0 1 233.8 187.2 Tm (w1x78y3) Tj+1 0 0 1 305.0 187.2 Tm (w1x78y4) Tj+1 0 0 1 376.2 187.2 Tm (w1x78y5) Tj+1 0 0 1 447.5 187.2 Tm (w1x78y6) Tj+1 0 0 1 518.8 187.2 Tm (w1x78y7) Tj+1 0 0 1 20.0 179.6 Tm (w1x79y0) Tj+1 0 0 1 91.2 179.6 Tm (w1x79y1) Tj+1 0 0 1 162.5 179.6 Tm (w1x79y2) Tj+1 0 0 1 233.8 179.6 Tm (w1x79y3) Tj+1 0 0 1 305.0 179.6 Tm (w1x79y4) Tj+1 0 0 1 376.2 179.6 Tm (w1x79y5) Tj+1 0 0 1 447.5 179.6 Tm (w1x79y6) Tj+1 0 0 1 518.8 179.6 Tm (w1x79y7) Tj+1 0 0 1 20.0 172.0 Tm (w1x80y0) Tj+1 0 0 1 91.2 172.0 Tm (w1x80y1) Tj+1 0 0 1 162.5 172.0 Tm (w1x80y2) Tj+1 0 0 1 233.8 172.0 Tm (w1x80y3) Tj+1 0 0 1 305.0 172.0 Tm (w1x80y4) Tj+1 0 0 1 376.2 172.0 Tm (w1x80y5) Tj+1 0 0 1 447.5 172.0 Tm (w1x80y6) Tj+1 0 0 1 518.8 172.0 Tm (w1x80y7) Tj+1 0 0 1 20.0 164.4 Tm (w1x81y0) Tj+1 0 0 1 91.2 164.4 Tm (w1x81y1) Tj+1 0 0 1 162.5 164.4 Tm (w1x81y2) Tj+1 0 0 1 233.8 164.4 Tm (w1x81y3) Tj+1 0 0 1 305.0 164.4 Tm (w1x81y4) Tj+1 0 0 1 376.2 164.4 Tm (w1x81y5) Tj+1 0 0 1 447.5 164.4 Tm (w1x81y6) Tj+1 0 0 1 518.8 164.4 Tm (w1x81y7) Tj+1 0 0 1 20.0 156.8 Tm (w1x82y0) Tj+1 0 0 1 91.2 156.8 Tm (w1x82y1) Tj+1 0 0 1 162.5 156.8 Tm (w1x82y2) Tj+1 0 0 1 233.8 156.8 Tm (w1x82y3) Tj+1 0 0 1 305.0 156.8 Tm (w1x82y4) Tj+1 0 0 1 376.2 156.8 Tm (w1x82y5) Tj+1 0 0 1 447.5 156.8 Tm (w1x82y6) Tj+1 0 0 1 518.8 156.8 Tm (w1x82y7) Tj+1 0 0 1 20.0 149.2 Tm (w1x83y0) Tj+1 0 0 1 91.2 149.2 Tm (w1x83y1) Tj+1 0 0 1 162.5 149.2 Tm (w1x83y2) Tj+1 0 0 1 233.8 149.2 Tm (w1x83y3) Tj+1 0 0 1 305.0 149.2 Tm (w1x83y4) Tj+1 0 0 1 376.2 149.2 Tm (w1x83y5) Tj+1 0 0 1 447.5 149.2 Tm (w1x83y6) Tj+1 0 0 1 518.8 149.2 Tm (w1x83y7) Tj+1 0 0 1 20.0 141.6 Tm (w1x84y0) Tj+1 0 0 1 91.2 141.6 Tm (w1x84y1) Tj+1 0 0 1 162.5 141.6 Tm (w1x84y2) Tj+1 0 0 1 233.8 141.6 Tm (w1x84y3) Tj+1 0 0 1 305.0 141.6 Tm (w1x84y4) Tj+1 0 0 1 376.2 141.6 Tm (w1x84y5) Tj+1 0 0 1 447.5 141.6 Tm (w1x84y6) Tj+1 0 0 1 518.8 141.6 Tm (w1x84y7) Tj+1 0 0 1 20.0 134.0 Tm (w1x85y0) Tj+1 0 0 1 91.2 134.0 Tm (w1x85y1) Tj+1 0 0 1 162.5 134.0 Tm (w1x85y2) Tj+1 0 0 1 233.8 134.0 Tm (w1x85y3) Tj+1 0 0 1 305.0 134.0 Tm (w1x85y4) Tj+1 0 0 1 376.2 134.0 Tm (w1x85y5) Tj+1 0 0 1 447.5 134.0 Tm (w1x85y6) Tj+1 0 0 1 518.8 134.0 Tm (w1x85y7) Tj+1 0 0 1 20.0 126.4 Tm (w1x86y0) Tj+1 0 0 1 91.2 126.4 Tm (w1x86y1) Tj+1 0 0 1 162.5 126.4 Tm (w1x86y2) Tj+1 0 0 1 233.8 126.4 Tm (w1x86y3) Tj+1 0 0 1 305.0 126.4 Tm (w1x86y4) Tj+1 0 0 1 376.2 126.4 Tm (w1x86y5) Tj+1 0 0 1 447.5 126.4 Tm (w1x86y6) Tj+1 0 0 1 518.8 126.4 Tm (w1x86y7) Tj+1 0 0 1 20.0 118.8 Tm (w1x87y0) Tj+1 0 0 1 91.2 118.8 Tm (w1x87y1) Tj+1 0 0 1 162.5 118.8 Tm (w1x87y2) Tj+1 0 0 1 233.8 118.8 Tm (w1x87y3) Tj+1 0 0 1 305.0 118.8 Tm (w1x87y4) Tj+1 0 0 1 376.2 118.8 Tm (w1x87y5) Tj+1 0 0 1 447.5 118.8 Tm (w1x87y6) Tj+1 0 0 1 518.8 118.8 Tm (w1x87y7) Tj+1 0 0 1 20.0 111.2 Tm (w1x88y0) Tj+1 0 0 1 91.2 111.2 Tm (w1x88y1) Tj+1 0 0 1 162.5 111.2 Tm (w1x88y2) Tj+1 0 0 1 233.8 111.2 Tm (w1x88y3) Tj+1 0 0 1 305.0 111.2 Tm (w1x88y4) Tj+1 0 0 1 376.2 111.2 Tm (w1x88y5) Tj+1 0 0 1 447.5 111.2 Tm (w1x88y6) Tj+1 0 0 1 518.8 111.2 Tm (w1x88y7) Tj+1 0 0 1 20.0 103.6 Tm (w1x89y0) Tj+1 0 0 1 91.2 103.6 Tm (w1x89y1) Tj+1 0 0 1 162.5 103.6 Tm (w1x89y2) Tj+1 0 0 1 233.8 103.6 Tm (w1x89y3) Tj+1 0 0 1 305.0 103.6 Tm (w1x89y4) Tj+1 0 0 1 376.2 103.6 Tm (w1x89y5) Tj+1 0 0 1 447.5 103.6 Tm (w1x89y6) Tj+1 0 0 1 518.8 103.6 Tm (w1x89y7) Tj+1 0 0 1 20.0 96.0 Tm (w1x90y0) Tj+1 0 0 1 91.2 96.0 Tm (w1x90y1) Tj+1 0 0 1 162.5 96.0 Tm (w1x90y2) Tj+1 0 0 1 233.8 96.0 Tm (w1x90y3) Tj+1 0 0 1 305.0 96.0 Tm (w1x90y4) Tj+1 0 0 1 376.2 96.0 Tm (w1x90y5) Tj+1 0 0 1 447.5 96.0 Tm (w1x90y6) Tj+1 0 0 1 518.8 96.0 Tm (w1x90y7) Tj+1 0 0 1 20.0 88.4 Tm (w1x91y0) Tj+1 0 0 1 91.2 88.4 Tm (w1x91y1) Tj+1 0 0 1 162.5 88.4 Tm (w1x91y2) Tj+1 0 0 1 233.8 88.4 Tm (w1x91y3) Tj+1 0 0 1 305.0 88.4 Tm (w1x91y4) Tj+1 0 0 1 376.2 88.4 Tm (w1x91y5) Tj+1 0 0 1 447.5 88.4 Tm (w1x91y6) Tj+1 0 0 1 518.8 88.4 Tm (w1x91y7) Tj+1 0 0 1 20.0 80.8 Tm (w1x92y0) Tj+1 0 0 1 91.2 80.8 Tm (w1x92y1) Tj+1 0 0 1 162.5 80.8 Tm (w1x92y2) Tj+1 0 0 1 233.8 80.8 Tm (w1x92y3) Tj+1 0 0 1 305.0 80.8 Tm (w1x92y4) Tj+1 0 0 1 376.2 80.8 Tm (w1x92y5) Tj+1 0 0 1 447.5 80.8 Tm (w1x92y6) Tj+1 0 0 1 518.8 80.8 Tm (w1x92y7) Tj+1 0 0 1 20.0 73.2 Tm (w1x93y0) Tj+1 0 0 1 91.2 73.2 Tm (w1x93y1) Tj+1 0 0 1 162.5 73.2 Tm (w1x93y2) Tj+1 0 0 1 233.8 73.2 Tm (w1x93y3) Tj+1 0 0 1 305.0 73.2 Tm (w1x93y4) Tj+1 0 0 1 376.2 73.2 Tm (w1x93y5) Tj+1 0 0 1 447.5 73.2 Tm (w1x93y6) Tj+1 0 0 1 518.8 73.2 Tm (w1x93y7) Tj+1 0 0 1 20.0 65.6 Tm (w1x94y0) Tj+1 0 0 1 91.2 65.6 Tm (w1x94y1) Tj+1 0 0 1 162.5 65.6 Tm (w1x94y2) Tj+1 0 0 1 233.8 65.6 Tm (w1x94y3) Tj+1 0 0 1 305.0 65.6 Tm (w1x94y4) Tj+1 0 0 1 376.2 65.6 Tm (w1x94y5) Tj+1 0 0 1 447.5 65.6 Tm (w1x94y6) Tj+1 0 0 1 518.8 65.6 Tm (w1x94y7) Tj+1 0 0 1 20.0 58.0 Tm (w1x95y0) Tj+1 0 0 1 91.2 58.0 Tm (w1x95y1) Tj+1 0 0 1 162.5 58.0 Tm (w1x95y2) Tj+1 0 0 1 233.8 58.0 Tm (w1x95y3) Tj+1 0 0 1 305.0 58.0 Tm (w1x95y4) Tj+1 0 0 1 376.2 58.0 Tm (w1x95y5) Tj+1 0 0 1 447.5 58.0 Tm (w1x95y6) Tj+1 0 0 1 518.8 58.0 Tm (w1x95y7) Tj+1 0 0 1 20.0 50.4 Tm (w1x96y0) Tj+1 0 0 1 91.2 50.4 Tm (w1x96y1) Tj+1 0 0 1 162.5 50.4 Tm (w1x96y2) Tj+1 0 0 1 233.8 50.4 Tm (w1x96y3) Tj+1 0 0 1 305.0 50.4 Tm (w1x96y4) Tj+1 0 0 1 376.2 50.4 Tm (w1x96y5) Tj+1 0 0 1 447.5 50.4 Tm (w1x96y6) Tj+1 0 0 1 518.8 50.4 Tm (w1x96y7) Tj+1 0 0 1 20.0 42.8 Tm (w1x97y0) Tj+1 0 0 1 91.2 42.8 Tm (w1x97y1) Tj+1 0 0 1 162.5 42.8 Tm (w1x97y2) Tj+1 0 0 1 233.8 42.8 Tm (w1x97y3) Tj+1 0 0 1 305.0 42.8 Tm (w1x97y4) Tj+1 0 0 1 376.2 42.8 Tm (w1x97y5) Tj+1 0 0 1 447.5 42.8 Tm (w1x97y6) Tj+1 0 0 1 518.8 42.8 Tm (w1x97y7) Tj+1 0 0 1 20.0 35.2 Tm (w1x98y0) Tj+1 0 0 1 91.2 35.2 Tm (w1x98y1) Tj+1 0 0 1 162.5 35.2 Tm (w1x98y2) Tj+1 0 0 1 233.8 35.2 Tm (w1x98y3) Tj+1 0 0 1 305.0 35.2 Tm (w1x98y4) Tj+1 0 0 1 376.2 35.2 Tm (w1x98y5) Tj+1 0 0 1 447.5 35.2 Tm (w1x98y6) Tj+1 0 0 1 518.8 35.2 Tm (w1x98y7) Tj+1 0 0 1 20.0 27.6 Tm (w1x99y0) Tj+1 0 0 1 91.2 27.6 Tm (w1x99y1) Tj+1 0 0 1 162.5 27.6 Tm (w1x99y2) Tj+1 0 0 1 233.8 27.6 Tm (w1x99y3) Tj+1 0 0 1 305.0 27.6 Tm (w1x99y4) Tj+1 0 0 1 376.2 27.6 Tm (w1x99y5) Tj+1 0 0 1 447.5 27.6 Tm (w1x99y6) Tj+1 0 0 1 518.8 27.6 Tm (w1x99y7) Tj+ET+endstream+endobj+xref+0 8+0000000000 65535 f+0000000009 00000 n+0000000058 00000 n+0000000121 00000 n+0000000191 00000 n+0000000317 00000 n+0000028824 00000 n+0000028950 00000 n+trailer+<< /Size 8 /Root 1 0 R >>+startxref+57457+%%EOFdiff --git a/packages/api/src/features/resume/fixtures/ditto-short.pdf b/packages/api/src/features/resume/fixtures/ditto-short.pdfnew file mode 100644index 000000000..01b1e37b0Binary files /dev/null and b/packages/api/src/features/resume/fixtures/ditto-short.pdf differdiff --git a/packages/api/src/features/resume/fixtures/external-word-runs.pdf b/packages/api/src/features/resume/fixtures/external-word-runs.pdfnew file mode 100644index 000000000..6c3ebce45--- /dev/null+++ b/packages/api/src/features/resume/fixtures/external-word-runs.pdf@@ -0,0 +1,48 @@+%PDF-1.4+1 0 obj+<< /Type /Catalog /Pages 2 0 R >>+endobj+2 0 obj+<< /Type /Pages /Kids [3 0 R] /Count 1 >>+endobj+3 0 obj+<< /Type /Page /Parent 2 0 R /MediaBox [0 0 595 842] /Resources << /Font << /R 4 0 R /B 5 0 R /I 6 0 R >> >> /Contents 7 0 R >>+endobj+4 0 obj+<< /Type /Font /Subtype /Type1 /BaseFont /Helvetica >>+endobj+5 0 obj+<< /Type /Font /Subtype /Type1 /BaseFont /Helvetica-Bold >>+endobj+6 0 obj+<< /Type /Font /Subtype /Type1 /BaseFont /Helvetica-Oblique >>+endobj+7 0 obj+<< /Length 495 >>+stream+BT /R 20 Tf 50 770 Td (Fictional Example) Tj ET+BT /B 14 Tf 50 720 Td (Experience) Tj ET+BT /B 11 Tf 50 690 Td (External Labs) Tj ET+BT /R 11 Tf 430 674 Td (2020 - 2021) Tj ET+BT /R 11 Tf 50 674 Td (Engineer) Tj ET+BT /R 11 Tf 490 690 Td (Remote) Tj ET+BT /R 11 Tf 55 640 Td (-) Tj ET+BT /R 11 Tf 67 640 Td (Built ) Tj /B 11 Tf (Important) Tj /R 11 Tf ( ) Tj /I 11 Tf (Systems) Tj /R 11 Tf ( for customers.) Tj ET+BT /R 11 Tf 50 605 Td (Inter) Tj /B 11 Tf (operable) Tj /R 11 Tf ( tools.) Tj ET+endstream+endobj+xref+0 8+0000000000 65535 f+0000000009 00000 n+0000000058 00000 n+0000000115 00000 n+0000000258 00000 n+0000000328 00000 n+0000000403 00000 n+0000000481 00000 n+trailer+<< /Size 8 /Root 1 0 R >>+startxref+1026+%%EOFdiff --git a/packages/api/src/features/resume/fixtures/freelancer-azurill.pdf b/packages/api/src/features/resume/fixtures/freelancer-azurill.pdfnew file mode 100644index 000000000..258bb6405Binary files /dev/null and b/packages/api/src/features/resume/fixtures/freelancer-azurill.pdf differdiff --git a/packages/api/src/features/resume/fixtures/glalie-narrow.pdf b/packages/api/src/features/resume/fixtures/glalie-narrow.pdfnew file mode 100644index 000000000..43dfe7362Binary files /dev/null and b/packages/api/src/features/resume/fixtures/glalie-narrow.pdf differdiff --git a/packages/api/src/features/resume/fixtures/glalie-rail.pdf b/packages/api/src/features/resume/fixtures/glalie-rail.pdfnew file mode 100644index 000000000..12fe95711Binary files /dev/null and b/packages/api/src/features/resume/fixtures/glalie-rail.pdf differdiff --git a/packages/api/src/features/resume/fixtures/indented-prose.pdf b/packages/api/src/features/resume/fixtures/indented-prose.pdfnew file mode 100644index 000000000..4c87298e8Binary files /dev/null and b/packages/api/src/features/resume/fixtures/indented-prose.pdf differdiff --git a/packages/api/src/features/resume/fixtures/pdf-education.ts b/packages/api/src/features/resume/fixtures/pdf-education.tsnew file mode 100644index 000000000..1ba857df4--- /dev/null+++ b/packages/api/src/features/resume/fixtures/pdf-education.ts@@ -0,0 +1,162 @@+import type { ResumeData } from "@reactive-resume/schema/resume/data";+import { readLegacyDates } from "@reactive-resume/schema/resume/dates";+import { defaultResumeData } from "@reactive-resume/schema/resume/default";+import { templateSchema } from "@reactive-resume/schema/templates";++export const educationCases = templateSchema.options.flatMap((template) =>+ [+ "month-first",+ "year-first",+ "empty-first",+ "reverse",+ "two-single",+ "three-mixed",+ "three-reverse",+ "wrapped",+ "wrapped-empty",+ "linked",+ ].map((kind) => ({+ template,+ kind,+ })),+);+export function educationSource({ kind }: (typeof educationCases)[number]): ResumeData {+ const data = structuredClone(defaultResumeData);+ data.picture.hidden = true;+ data.basics = {+ ...data.basics,+ name: "Mariana Okafor",+ headline: "Staff Data Engineer",+ email: "[email protected]",+ phone: "+44 20 7946 0958",+ location: "Manchester, UK",+ website: { url: "https://okafor.invalid/", label: "Portfolio" },+ };+ const first =+ kind === "year-first"+ ? "2014"+ : kind === "empty-first" || kind === "three-mixed" || kind === "wrapped-empty"+ ? ""+ : "May 2014";+ const make = (+ school: string,+ degree: string,+ area: string,+ grade: string,+ location: string,+ period: string,+ description: string,+ ) => ({+ id: school,+ hidden: false,+ school,+ degree,+ area,+ grade,+ location,+ period,+ dates: readLegacyDates(period, { locale: "en-US", single: !period.includes("–") }),+ website: { url: "", label: "", inlineLink: false },+ description,+ });+ const a = make(+ "University of California, Berkeley",+ "Bachelor of Science",+ "Electrical Engineering",+ "",+ "Berkeley, CA",+ first,+ "",+ );+ const b = make(+ "Imperial College London",+ "MSc",+ "Data Science",+ "Distinction",+ "London, UK",+ kind === "two-single" ? "2016" : "2015 – 2016",+ "<p>Thesis on exactly-once streaming joins.</p>",+ );+ const c = make(+ "Polytechnic Institute",+ "Certificate",+ "Accessible Computing",+ "Merit",+ "Zürich, CH",+ kind === "three-reverse" ? "" : "Jan 2019",+ "<ul><li>Studied inclusive systems and reliable data.</li><li>Completed independent field research.</li></ul>",+ );+ data.sections.education.items =+ kind === "reverse"+ ? [b, a]+ : kind === "three-mixed"+ ? [a, c, b]+ : kind === "three-reverse"+ ? [b, { ...a, period: "2014", dates: readLegacyDates("2014", { locale: "en-US", single: true }) }, c]+ : [a, b];+ if (kind === "linked") {+ a.degree = "Bachelor of Engineering (Honours)";+ a.website = { url: "https://example.invalid/education", label: "Details", inlineLink: false };+ data.metadata.layout.pages = [{ fullWidth: false, main: ["education"], sidebar: ["skills"] }];+ data.sections.skills.items = [+ {+ id: "skill",+ hidden: false,+ icon: "",+ iconColor: "",+ name: "SQL",+ proficiency: "Expert",+ level: 0,+ keywords: [],+ },+ ];+ }+ if (kind.startsWith("wrapped")) {+ a.degree = "Bachelor of Engineering (Honours)";+ data.metadata.typography.body.fontSize = 11.5;+ data.metadata.typography.body.lineHeight = 1.9;+ data.metadata.layout.pages = [{ fullWidth: false, main: ["education"], sidebar: ["skills"] }];+ data.sections.skills.items = [+ {+ id: "skill",+ hidden: false,+ icon: "",+ iconColor: "",+ name: "SQL",+ proficiency: "Expert",+ level: 0,+ keywords: [],+ },+ ];+ }+ return data;+}+export const educationFields = (items: ResumeData["sections"]["education"]["items"]) =>+ items.map(({ school, degree, area, grade, location, period, dates, website, description }) => ({+ school,+ degree,+ area,+ grade,+ location,+ period,+ dates,+ website,+ description,+ }));+/** Every authored word in Education must remain somewhere in stored Education, even when mapping is uncertain. */+export function educationWords(items: ResumeData["sections"]["education"]["items"]) {+ return (+ educationFields(items)+ .flatMap((item) => [+ item.school,+ item.degree,+ item.area,+ item.grade,+ item.location,+ item.period,+ item.description.replace(/<[^>]+>/g, " "),+ ])+ .join(" ")+ .match(/[\p{L}\p{N}]+/gu) ?? []+ );+}diff --git a/packages/api/src/features/resume/fixtures/pdf-import.ts b/packages/api/src/features/resume/fixtures/pdf-import.tsnew file mode 100644index 000000000..53f322b2e--- /dev/null+++ b/packages/api/src/features/resume/fixtures/pdf-import.ts@@ -0,0 +1,71 @@+import { defaultResumeData } from "@reactive-resume/schema/resume/default";+import { sampleResumeData } from "@reactive-resume/schema/resume/sample";+import { templateSchema } from "@reactive-resume/schema/templates";+import { generateId } from "@reactive-resume/utils/string";++export const pdfImportCases = templateSchema.options.flatMap((template) => [+ ...["2018", "Jan 2020", ""].flatMap((period) =>+ [0, 1, 2].map((index) => ({ template, kind: "date", period, index })),+ ),+ ...[0, 1].map((index) => ({ template, kind: "wrapped", period: index ? "" : "2020 – 2021", index })),+ { template, kind: "identity", period: "2020 – 2021", index: 0 },+]);++export function pdfImportSource(c: (typeof pdfImportCases)[number]) {+ const data = structuredClone(defaultResumeData);+ data.picture.hidden = true;+ data.basics = {+ ...data.basics,+ name: "Jordan Sample",+ headline: "Product & Platform Lead",+ email: "[email protected]",+ phone: "+1 (202) 555-0199",+ location: "Singapore",+ website: { url: "https://example.invalid/work", label: "Selected work" },+ };+ data.metadata.layout.pages = [{ fullWidth: true, main: ["experience"], sidebar: [] }];+ const original = sampleResumeData.sections.experience.items[0];+ if (!original) throw new Error("Missing sample role");+ data.sections.experience.items = [0, 1, 2].map((i) => ({+ ...original,+ id: generateId(),+ company: ["Orbital Labs", "eBay", "3M"][i] ?? "",+ position: ["Engineer, Platform", "Director, Product", "Staff Engineer"][i] ?? "",+ location: ["HQ", "Berlin, Germany", "Remote"][i] ?? "",+ period: `${2020 - i} – ${2021 - i}`,+ dates: { start: String(2020 - i), end: String(2021 - i), present: false },+ roles: [],+ website: { url: "", label: "", inlineLink: false },+ description: `<ul><li>Built <strong>Important Systems ${i}</strong> for <em>Customers Worldwide</em> With Reliable Tools Across Every Supported Platform And All Supported Devices.</li><li>Completed achievement ${i} with exact wording.</li></ul>`,+ }));+ const role = data.sections.experience.items[c.index];+ if (!role) throw new Error("Missing indexed role");+ if (c.kind !== "identity") {+ role.period = c.period;+ role.dates = {+ start: c.period === "2018" ? "2018" : c.period === "Jan 2020" ? "2020-01" : c.period ? "2020" : null,+ end: c.period.includes("–") ? "2021" : null,+ present: false,+ };+ }+ if (c.kind === "wrapped") {+ role.company = "The Extremely Long Fictional Enterprise Technology Corporation International";+ role.position = "Principal Engineer for Platform Reliability and Developer Experience";+ role.location = "Mountain View, California, United States";+ if (c.index) {+ role.company = "International Institute for Accessible Platforms and Distributed Product Systems";+ role.position = "Senior Director of Engineering for Customer Reliability and Developer Enablement";+ role.location = "São Paulo, State of São Paulo, Federative Republic of Brazil";+ }+ }+ return data;+}++export const pdfExperienceFields = (items: ReturnType<typeof pdfImportSource>["sections"]["experience"]["items"]) =>+ items.map(({ company, position, location, period, description }) => ({+ company,+ position,+ location,+ period,+ description: description.replace(/<\/?(?:strong|em)>/g, ""),+ }));diff --git a/packages/api/src/features/resume/fixtures/pdf-ownership.ts b/packages/api/src/features/resume/fixtures/pdf-ownership.tsnew file mode 100644index 000000000..19b19f6ee--- /dev/null+++ b/packages/api/src/features/resume/fixtures/pdf-ownership.ts@@ -0,0 +1,203 @@+import type { ResumeData } from "@reactive-resume/schema/resume/data";+import { createEntry } from "@reactive-resume/resume/entries";+import { readLegacyDates } from "@reactive-resume/schema/resume/dates";+import { defaultResumeData, sectionDefaults } from "@reactive-resume/schema/resume/default";+import { templateSchema } from "@reactive-resume/schema/templates";++export const ownershipCases = templateSchema.options.flatMap((template) =>+ [+ "default-empty",+ "default-grade",+ "full-before",+ "full-after",+ "two-before",+ "two-after",+ "loose",+ "small",+ "long-identity",+ "custom-links",+ ].map((kind) => ({ template, kind })),+);+export function ownershipSource({ kind }: (typeof ownershipCases)[number]): ResumeData {+ const d = structuredClone(defaultResumeData);+ d.picture.hidden = true;+ d.basics = {+ ...d.basics,+ name: "Jordan Sample",+ headline: "Product & Platform Lead",+ email: "[email protected]",+ phone: "+1 (202) 555-0199",+ location: "Singapore",+ website: { url: "https://example.invalid/work", label: "Selected work" },+ customFields:+ kind === "custom-links"+ ? [+ { id: "linkedin", icon: "", text: "linkedin.com/in/jordan", link: "https://linkedin.com/in/jordan" },+ { id: "github", icon: "", text: "github.com/jordan", link: "https://github.com/jordan" },+ ]+ : [],+ };+ d.summary.content = "<p>Berlin-based engineer building accessible platforms.</p>";+ const period = "2012 – 2016";+ const dates = readLegacyDates(period, { locale: "en-US", single: false });+ const values: Record<string, Record<string, unknown>> = {+ experience: {+ company: "eBay",+ position: "Engineer, Platform",+ location: "Remote",+ period: "2020 – 2021",+ dates: { start: "2020", end: "2021", present: false },+ description:+ "<ul><li>Built reliable tools for customers across every supported device.</li><li>Mentored engineers with exact complete wording.</li></ul>",+ },+ education: {+ school: "Synthetic University",+ degree: kind === "full-after" ? "Master of Science" : "BSc",+ area: "Computer Science",+ grade: kind === "default-grade" ? "First class" : "",+ location: "Leeds, UK",+ period,+ dates,+ description: ["default-empty", "full-before", "two-before"].includes(kind)+ ? ""+ : "<p>Studied distributed systems and accessible products.</p>",+ },+ projects: {+ name: "Atlas",+ period: "2022 – 2023",+ dates: { start: "2022", end: "2023", present: false },+ description: "<p>Open-source scheduling toolkit.</p>",+ },+ awards: {+ title: "Engineering Prize",+ awarder: "Acme Foundation",+ date: "2019",+ dates: { start: "2019", end: null, present: false },+ description: "<p>Recognized careful platform delivery.</p>",+ },+ certifications: {+ title: "Platform Certification",+ issuer: "Fiction Institute",+ date: "2021",+ dates: { start: "2021", end: null, present: false },+ description: "<p>Verified reliable systems knowledge.</p>",+ },+ publications: {+ title: "Calm Releases",+ publisher: "Technical Journal",+ date: "2020",+ dates: { start: "2020", end: null, present: false },+ description: "<p>Explained practical release methods.</p>",+ },+ volunteer: {+ organization: "Code Club",+ location: "Leeds",+ period: "2015 – 2016",+ dates: { start: "2015", end: "2016", present: false },+ description: "<p>Taught weekly sessions.</p>",+ },+ references: {+ name: "Pat Example",+ position: "CTO",+ phone: "+1 (202) 555-0111",+ description: "<p>Available on request.</p>",+ },+ profiles: {+ network: "LinkedIn",+ username: "jordan",+ website: { url: "https://linkedin.com/in/jordan", label: "Professional profile", inlineLink: false },+ },+ skills: { name: "TypeScript", proficiency: "Advanced", level: 3, keywords: ["Research", "Accessibility"] },+ languages: { language: "German", fluency: "Fluent", level: 3 },+ interests: { name: "Cycling", keywords: ["City routes"] },+ };+ for (const key of Object.keys(d.sections) as (keyof typeof d.sections)[]) {+ const entry = Object.assign(createEntry(key), values[key]);+ if ("website" in entry && key !== "profiles")+ entry.website = { url: `https://example.invalid/${key}`, label: "Details", inlineLink: false };+ d.sections[key].items = [entry] as never;+ }+ const customId = "talks";+ d.customSections = [+ {+ ...sectionDefaults(customId),+ id: customId,+ type: "summary",+ title: "SELECTED TALKS",+ items: [+ { id: "talk-1", hidden: false, content: "<p>Presented accessible engineering at a fictional conference.</p>" },+ ],+ },+ ];+ const first = kind.endsWith("after") ? ["experience", "education"] : ["education", "experience"];+ const rest = ["projects", "volunteer", "certifications", "publications", "awards", "references", customId];+ if (!kind.startsWith("default"))+ d.metadata.layout.pages = [+ {+ fullWidth: !kind.startsWith("two"),+ main: ["summary", ...first, ...rest],+ sidebar: ["profiles", "skills", "languages", "interests"],+ },+ ];+ else d.metadata.layout.pages[0]?.main.push(customId);+ if (!kind.startsWith("default") && !kind.startsWith("two")) {+ const page = d.metadata.layout.pages[0];+ if (page) {+ page.main.push(...page.sidebar);+ page.sidebar = [];+ }+ }+ if (kind === "loose") {+ d.metadata.typography.body.lineHeight = 1.9;+ d.metadata.typography.body.fontSize = 11.5;+ }+ if (kind === "small") {+ d.metadata.typography.body.fontSize = 9;+ d.metadata.typography.body.lineHeight = 1.2;+ }+ if (kind === "long-identity") {+ d.basics.headline =+ "Principal Product Engineer and Accessibility Advocate for Distributed Healthcare Platforms Worldwide";+ d.basics.location = "Washington, D.C., United States of America";+ }+ return d;+}++/** Every data field in these sections is compared; only non-textual identity/style metadata is excluded. */+export function ownershipFields(data: ResumeData): Record<string, unknown> {+ const fields: Record<string, unknown> = {};+ const walk = (value: unknown, path: string) => {+ if (Array.isArray(value)) {+ fields[path + ".count"] = value.length;+ value.forEach((item, index) => walk(item, path + "." + index));+ return;+ }+ if (value && typeof value === "object") {+ for (const [key, item] of Object.entries(value)) {+ if (+ [+ "id",+ "hidden",+ "icon",+ "iconColor",+ "inlineLink",+ "columns",+ "keepTogether",+ "startOnNewPage",+ "showHeading",+ ].includes(key)+ )+ continue;+ walk(item, path + "." + key);+ }+ return;+ }+ fields[path] = value;+ };+ walk(data.basics, "basics");+ walk({ title: data.summary.title, content: data.summary.content }, "summary");+ for (const [key, section] of Object.entries(data.sections))+ walk({ title: section.title, items: section.items }, "sections." + key);+ walk(data.customSections, "customSections");+ return fields;+}diff --git a/packages/api/src/features/resume/fixtures/senior.pdf b/packages/api/src/features/resume/fixtures/senior.pdfnew file mode 100644index 000000000..df687da72Binary files /dev/null and b/packages/api/src/features/resume/fixtures/senior.pdf differdiff --git a/packages/api/src/features/resume/fixtures/shipped-import.json b/packages/api/src/features/resume/fixtures/shipped-import.jsonnew file mode 100644index 000000000..62aaa1808--- /dev/null+++ b/packages/api/src/features/resume/fixtures/shipped-import.json@@ -0,0 +1,623 @@+[+ {+ "template": "azurill",+ "basics": {+ "name": "Maya Bennett",+ "headline": "Senior Product Designer",+ "email": "[email protected]",+ "phone": "+1 (202) 555-0110",+ "location": "London, UK",+ "website": {+ "url": "https://example.com/maya.bennett",+ "label": "mayabennett.example.com"+ },+ "customFields": []+ },+ "experience": [+ {+ "company": "Northstar Health",+ "position": "Senior Product Designer",+ "location": "London, UK",+ "period": "2022 – Present",+ "description": "<ul><li>Led a patient booking redesign across web and mobile, increasing completed appointments by 28% in six months.</li><li>Built an accessible component library used by six squads; reduced design handoff time from five days to two.</li><li>Partnered with clinicians and engineers to test early concepts with 42 patients and prioritise launch scope.</li></ul>"+ },+ {+ "company": "Studio Assembly",+ "position": "Product Designer",+ "location": "London, UK",+ "period": "2019 – 2022",+ "description": "<ul><li>Designed self-service journeys for retail and education clients, improving task success from 64% to 89%.</li><li>Introduced weekly critique and research playback sessions to align a distributed team of 12 specialists.</li><li>Delivered responsive interfaces, motion studies and production specifications for eight product launches.</li></ul>"+ },+ {+ "company": "Westbridge Partners",+ "position": "Associate, Digital product design",+ "location": "London, UK",+ "period": "2017 – 2019",+ "description": "<ul><li>Supported client projects from research and planning through delivery, building a strong foundation in digital product design.</li><li>Maintained accurate project documentation, coordinated stakeholder feedback and presented clear recommendations to senior colleagues.</li></ul>"+ }+ ]+ },+ {+ "template": "bronzor",+ "basics": {+ "name": "Daniel Brooks",+ "headline": "Senior Software Engineer",+ "email": "[email protected]",+ "phone": "+1 (202) 555-0111",+ "location": "Austin, TX",+ "website": {+ "url": "https://example.com/daniel.brooks",+ "label": "danielbrooks.example.com"+ },+ "customFields": []+ },+ "experience": [+ {+ "company": "Cedar Cloud",+ "position": "Senior Software Engineer",+ "location": "Austin, TX",+ "period": "2022 – Present",+ "description": "<ul><li>Built a multi-tenant reporting platform serving 180 business customers and more than two million events daily.</li><li>Reduced API latency by 46% through query tuning, cache design and instrumentation of critical workflows.</li><li>Led migration to typed service contracts with staged releases and no customer downtime.</li></ul>"+ },+ {+ "company": "Bridgewell Labs",+ "position": "Software Engineer",+ "location": "Austin, TX",+ "period": "2019 – 2022",+ "description": "<ul><li>Shipped subscription and account workflows with product managers, designers and a six-person engineering team.</li><li>Introduced contract tests and deployment checks that cut production regressions by 35% over two quarters.</li><li>Coached four engineers through design reviews, pairing and ownership of small production services.</li></ul>"+ }+ ]+ },+ {+ "template": "chikorita",+ "basics": {+ "name": "Leila Morgan",+ "headline": "Brand & Creative Strategist",+ "email": "[email protected]",+ "phone": "+1 (202) 555-0112",+ "location": "Amsterdam, Netherlands",+ "website": {+ "url": "https://example.com/leila.morgan",+ "label": "leilamorgan.example.com"+ },+ "customFields": []+ },+ "experience": [+ {+ "company": "Fieldwork Collective",+ "position": "Brand & Creative Strategist",+ "location": "Amsterdam, Netherlands",+ "period": "2022 – Present",+ "description": "<ul><li>Developed brand positioning for a sustainable homeware business entering three European markets.</li><li>Led a six-person creative team on an integrated launch reaching 3.2 million people in its first quarter.</li><li>Established a verbal identity and campaign toolkit adopted by 24 regional marketing partners.</li></ul>"+ },+ {+ "company": "Paper & Form",+ "position": "Brand & Creative Strategist",+ "location": "Amsterdam, Netherlands",+ "period": "2019 – 2022",+ "description": "<ul><li>Translated customer interviews and cultural research into distinctive narratives for consumer brands.</li><li>Directed identity, packaging and digital projects from briefing through production and launch review.</li><li>Built long-term client relationships that increased repeat project revenue by 31% in one year.</li></ul>"+ },+ {+ "company": "Westbridge Partners",+ "position": "Associate, Brand strategy and storytelling",+ "location": "Amsterdam, Netherlands",+ "period": "2017 – 2019",+ "description": "<ul><li>Supported client projects from research and planning through delivery, building a strong foundation in brand strategy and storytelling.</li><li>Maintained accurate project documentation, coordinated stakeholder feedback and presented clear recommendations to senior colleagues.</li></ul>"+ }+ ]+ },+ {+ "template": "ditgar",+ "basics": {+ "name": "Adrian Cole",+ "headline": "Data Analytics Lead",+ "email": "[email protected]",+ "phone": "+1 (202) 555-0113",+ "location": "Toronto, Canada",+ "website": {+ "url": "https://example.com/adrian.cole",+ "label": "adriancole.example.com"+ },+ "customFields": []+ },+ "experience": [+ {+ "company": "Maple Market",+ "position": "Data Analytics Lead",+ "location": "Toronto, Canada",+ "period": "2022 – Present",+ "description": "<ul><li>Led a five-person analytics team supporting pricing, retention and merchandising for a national marketplace.</li><li>Created a shared commercial metrics layer that eliminated conflicting reports across nine business teams.</li><li>Designed experiments that identified a checkout change generating a 7.4% increase in conversion.</li></ul>"+ },+ {+ "company": "Clearview Analytics",+ "position": "Data Analytics Specialist",+ "location": "Toronto, Canada",+ "period": "2019 – 2022",+ "description": "<ul><li>Built forecast models and executive dashboards for subscription, logistics and financial services clients.</li><li>Automated recurring data quality checks, reducing reporting incidents by 52% over twelve months.</li><li>Partnered with operations leaders to translate ambiguous questions into clear decisions and measurable outcomes.</li></ul>"+ },+ {+ "company": "Westbridge Partners",+ "position": "Associate, Commercial analytics",+ "location": "Toronto, Canada",+ "period": "2017 – 2019",+ "description": "<ul><li>Supported client projects from research and planning through delivery, building a strong foundation in commercial analytics.</li><li>Maintained accurate project documentation, coordinated stakeholder feedback and presented clear recommendations to senior colleagues.</li></ul>"+ }+ ]+ },+ {+ "template": "ditto",+ "basics": {+ "name": "Nina Patel",+ "headline": "Architect & Urban Designer",+ "email": "[email protected]",+ "phone": "+1 (202) 555-0114",+ "location": "Bristol, UK",+ "website": {+ "url": "https://example.com/nina.patel",+ "label": "ninapatel.example.com"+ },+ "customFields": []+ },+ "experience": [+ {+ "company": "Common Ground Architects",+ "position": "Architect & Urban Designer",+ "location": "Bristol, UK",+ "period": "2022 – Present",+ "description": "<ul><li>Led design development for a 48-home low-carbon housing scheme from concept through planning approval.</li><li>Coordinated structural, landscape and environmental consultants to resolve site constraints within budget.</li><li>Presented design options to residents and local authorities through clear drawings and public workshops.</li></ul>"+ },+ {+ "company": "Rowan Design Studio",+ "position": "Architect & Urban Designer",+ "location": "Bristol, UK",+ "period": "2019 – 2022",+ "description": "<ul><li>Delivered adaptive reuse and workplace projects with construction values between GBP 1m and GBP 8m.</li><li>Developed detailed drawing packages and material schedules to support efficient tender and site delivery.</li><li>Introduced a shared embodied-carbon review process used at every concept-stage project checkpoint.</li></ul>"+ },+ {+ "company": "Westbridge Partners",+ "position": "Associate, Sustainable architecture",+ "location": "Bristol, UK",+ "period": "2017 – 2019",+ "description": "<ul><li>Supported client projects from research and planning through delivery, building a strong foundation in sustainable architecture.</li><li>Maintained accurate project documentation, coordinated stakeholder feedback and presented clear recommendations to senior colleagues.</li></ul>"+ }+ ]+ },+ {+ "template": "gengar",+ "basics": {+ "name": "Sofia Reyes",+ "headline": "Growth Marketing Manager",+ "email": "[email protected]",+ "phone": "+1 (202) 555-0115",+ "location": "Barcelona, Spain",+ "website": {+ "url": "https://example.com/sofia.reyes",+ "label": "sofiareyes.example.com"+ },+ "customFields": []+ },+ "experience": [+ {+ "company": "Lumen Learning",+ "position": "Growth Marketing Manager",+ "location": "Barcelona, Spain",+ "period": "2022 – Present",+ "description": "<ul><li>Owned acquisition strategy across five markets, increasing qualified trial registrations by 38% year over year.</li><li>Rebuilt onboarding email journeys to improve trial-to-paid conversion from 11% to 17% in two quarters.</li><li>Managed a EUR 650k annual media budget and reduced blended acquisition cost by 22% through testing.</li></ul>"+ },+ {+ "company": "Brightside Digital",+ "position": "Growth Marketing Coordinator",+ "location": "Barcelona, Spain",+ "period": "2019 – 2022",+ "description": "<ul><li>Planned integrated campaigns for education, travel and subscription brands across paid and organic channels.</li><li>Built a repeatable landing page testing programme that improved conversion across six core funnels.</li><li>Aligned creative, sales and analytics partners around weekly performance reviews and clear learning goals.</li></ul>"+ },+ {+ "company": "Westbridge Partners",+ "position": "Associate, Customer acquisition and growth",+ "location": "Barcelona, Spain",+ "period": "2017 – 2019",+ "description": "<ul><li>Supported client projects from research and planning through delivery, building a strong foundation in customer acquisition and growth.</li><li>Maintained accurate project documentation, coordinated stakeholder feedback and presented clear recommendations to senior colleagues.</li></ul>"+ }+ ]+ },+ {+ "template": "glalie",+ "basics": {+ "name": "Amelia Hart",+ "headline": "Environmental Project Manager",+ "email": "[email protected]",+ "phone": "+1 (202) 555-0116",+ "location": "Melbourne, Australia",+ "website": {+ "url": "https://example.com/amelia.hart",+ "label": "ameliahart.example.com"+ },+ "customFields": []+ },+ "experience": [+ {+ "company": "Greenline Advisory",+ "position": "Environmental Project Manager",+ "location": "Melbourne, Australia",+ "period": "2022 – Present",+ "description": "<ul><li>Managed a portfolio of six decarbonisation projects for local government and infrastructure partners.</li><li>Built emissions baselines and practical transition plans covering 84 facilities and a fleet of 320 vehicles.</li><li>Secured stakeholder agreement on a phased investment roadmap projected to cut operational emissions by 34%.</li></ul>"+ },+ {+ "company": "Coastal Futures",+ "position": "Environmental Project Coordinator",+ "location": "Melbourne, Australia",+ "period": "2019 – 2022",+ "description": "<ul><li>Coordinated coastal restoration programmes with ecologists, contractors and community volunteers.</li><li>Improved project reporting and risk escalation, delivering 95% of milestones within agreed timeframes.</li><li>Prepared evidence-led funding applications that secured AUD 1.8m for habitat restoration and monitoring.</li></ul>"+ },+ {+ "company": "Westbridge Partners",+ "position": "Associate, Climate and environmental programmes",+ "location": "Melbourne, Australia",+ "period": "2017 – 2019",+ "description": "<ul><li>Supported client projects from research and planning through delivery, building a strong foundation in climate and environmental programmes.</li><li>Maintained accurate project documentation, coordinated stakeholder feedback and presented clear recommendations to senior colleagues.</li></ul>"+ }+ ]+ },+ {+ "template": "kakuna",+ "basics": {+ "name": "Marcus Evans",+ "headline": "Operations & Supply Chain Manager",+ "email": "[email protected]",+ "phone": "+1 (202) 555-0117",+ "location": "Chicago, IL",+ "website": {+ "url": "https://example.com/marcus.evans",+ "label": "marcusevans.example.com"+ },+ "customFields": []+ },+ "experience": [+ {+ "company": "Horizon Goods",+ "position": "Operations & Supply Chain Manager",+ "location": "Chicago, IL",+ "period": "2022 – Present",+ "description": "<ul><li>Led fulfilment operations across two distribution sites supporting 420 retail partners nationwide.</li><li>Reduced stockouts by 29% through improved demand reviews, supplier scorecards and safety-stock policies.</li><li>Delivered USD 740k in annual savings by redesigning freight routes and consolidating supplier contracts.</li></ul>"+ },+ {+ "company": "Oakridge Distribution",+ "position": "Operations & Supply Chain Coordinator",+ "location": "Chicago, IL",+ "period": "2019 – 2022",+ "description": "<ul><li>Supervised 28 warehouse and planning staff while maintaining a strong safety and service performance record.</li><li>Introduced daily visual management and root-cause reviews that improved on-time dispatch to 98.6%.</li><li>Coordinated a warehouse system rollout with phased training, clear cutover plans and uninterrupted shipping.</li></ul>"+ }+ ]+ },+ {+ "template": "lapras",+ "basics": {+ "name": "Ethan Park",+ "headline": "Financial Planning & Analysis Manager",+ "email": "[email protected]",+ "phone": "+1 (202) 555-0118",+ "location": "Singapore",+ "website": {+ "url": "https://example.com/ethan.park",+ "label": "ethanpark.example.com"+ },+ "customFields": []+ },+ "experience": [+ {+ "company": "Meridian Technologies",+ "position": "Financial Planning & Analysis Manager",+ "location": "Singapore",+ "period": "2022 – Present",+ "description": "<ul><li>Owned annual planning and rolling forecasts for a SaaS business with SGD 48m in annual recurring revenue.</li><li>Built a driver-based revenue model that improved quarterly forecast accuracy from 87% to 96%.</li><li>Partnered with sales and product leaders on pricing decisions, resource allocation and investment cases.</li></ul>"+ },+ {+ "company": "Harbour Finance Partners",+ "position": "Financial Planning & Analysis Coordinator",+ "location": "Singapore",+ "period": "2019 – 2022",+ "description": "<ul><li>Prepared management accounts, cash flow scenarios and performance packs for mid-market growth businesses.</li><li>Automated consolidation and reporting workflows, cutting the monthly close reporting cycle by three days.</li><li>Translated financial results into actionable recommendations for department heads and executive teams.</li></ul>"+ }+ ]+ },+ {+ "template": "leafish",+ "basics": {+ "name": "Oliver Chen",+ "headline": "Customer Success Lead",+ "email": "[email protected]",+ "phone": "+1 (202) 555-0119",+ "location": "Vancouver, Canada",+ "website": {+ "url": "https://example.com/oliver.chen",+ "label": "oliverchen.example.com"+ },+ "customFields": []+ },+ "experience": [+ {+ "company": "Evergreen Software",+ "position": "Customer Success Lead",+ "location": "Vancouver, Canada",+ "period": "2022 – Present",+ "description": "<ul><li>Led a team of six customer success managers supporting 140 business accounts and CAD 12m in recurring revenue.</li><li>Introduced outcome-based account plans that increased net revenue retention from 106% to 119%.</li><li>Built a risk review programme combining product signals and customer feedback to improve renewal confidence.</li></ul>"+ },+ {+ "company": "Anchor Systems",+ "position": "Customer Success Specialist",+ "location": "Vancouver, Canada",+ "period": "2019 – 2022",+ "description": "<ul><li>Managed onboarding and expansion for a portfolio of 45 accounts across retail, media and professional services.</li><li>Created practical training resources and office hours that reduced time to first value by 32%.</li><li>Partnered with product teams to prioritise customer feedback and close the loop on high-impact improvements.</li></ul>"+ },+ {+ "company": "Westbridge Partners",+ "position": "Associate, Customer success and adoption",+ "location": "Vancouver, Canada",+ "period": "2017 – 2019",+ "description": "<ul><li>Supported client projects from research and planning through delivery, building a strong foundation in customer success and adoption.</li><li>Maintained accurate project documentation, coordinated stakeholder feedback and presented clear recommendations to senior colleagues.</li></ul>"+ }+ ]+ },+ {+ "template": "meowth",+ "basics": {+ "name": "Alex Robinson",+ "headline": "People & Culture Partner",+ "email": "[email protected]",+ "phone": "+1 (202) 555-0120",+ "location": "Atlanta, GA",+ "website": {+ "url": "https://alexrobinson.example.com/",+ "label": "alexrobinson.example.com"+ },+ "customFields": []+ },+ "experience": [+ {+ "company": "Kindred Health",+ "position": "People & Culture Partner",+ "location": "Atlanta, GA",+ "period": "2022 – Present",+ "description": "<ul><li>Partnered with senior leaders across a 360-person healthcare technology organisation during rapid growth.</li><li>Redesigned manager onboarding and coaching support, increasing new manager confidence scores by 26 points.</li><li>Led engagement action planning that improved employee participation to 91% and strengthened team follow-through.</li></ul>"+ },+ {+ "company": "Crescent Partners",+ "position": "People & Culture Partner",+ "location": "Atlanta, GA",+ "period": "2019 – 2022",+ "description": "<ul><li>Delivered recruitment, employee relations and development support for teams across three regional offices.</li><li>Created clear career frameworks and promotion guidance to improve consistency and employee visibility.</li><li>Facilitated leadership workshops focused on feedback, inclusive decision-making and effective team communication.</li></ul>"+ }+ ]+ },+ {+ "template": "onyx",+ "basics": {+ "name": "Charlotte Wilson",+ "headline": "Clinical Research Coordinator",+ "email": "[email protected]",+ "phone": "+1 (202) 555-0121",+ "location": "Edinburgh, UK",+ "website": {+ "url": "https://example.com/charlotte.wilson",+ "label": "charlottewilson.example.com"+ },+ "customFields": []+ },+ "experience": [+ {+ "company": "Caledonian Research Centre",+ "position": "Clinical Research Coordinator",+ "location": "Edinburgh, UK",+ "period": "2022 – Present",+ "description": "<ul><li>Coordinated four multicentre clinical studies across cardiology and long-term condition management.</li><li>Improved participant retention to 94% through accessible study information and proactive appointment support.</li><li>Maintained accurate source records and audit-ready documentation with no major findings at sponsor review.</li></ul>"+ },+ {+ "company": "Northbridge Clinical Trials",+ "position": "Clinical Research Coordinator",+ "location": "Edinburgh, UK",+ "period": "2019 – 2022",+ "description": "<ul><li>Supported recruitment, consent administration and data collection for studies involving more than 280 participants.</li><li>Worked closely with investigators, nurses and sponsors to resolve queries within agreed quality timelines.</li><li>Created clear visit checklists and training resources that reduced incomplete study records by 37%.</li></ul>"+ }+ ]+ },+ {+ "template": "persian",+ "basics": {+ "name": "LUCAS MARTINS",+ "headline": "Senior Product Manager",+ "email": "[email protected]",+ "phone": "+1 (202) 555-0122",+ "location": "Lisbon, Portugal",+ "website": {+ "url": "https://example.com/lucas.martins",+ "label": "lucasmartins.example.com"+ },+ "customFields": []+ },+ "experience": [+ {+ "company": "Atlas Mobility",+ "position": "Senior Product Manager",+ "location": "Lisbon, Portugal",+ "period": "2022 – Present",+ "description": "<ul><li>Owned the rider experience roadmap for a mobility platform operating in 12 European cities.</li><li>Led two cross-functional squads to launch flexible booking, increasing repeat usage by 21% in six months.</li><li>Established a discovery cadence combining interviews, funnel analysis and experiments to guide investment.</li></ul>"+ },+ {+ "company": "Waypoint Digital",+ "position": "Product Coordinator",+ "location": "Lisbon, Portugal",+ "period": "2019 – 2022",+ "description": "<ul><li>Managed B2B workflow products from concept to launch in close partnership with design and engineering.</li><li>Simplified account activation and reduced average onboarding time from nine days to four.</li><li>Aligned commercial and technical teams around measurable goals, transparent priorities and regular launch reviews.</li></ul>"+ },+ {+ "company": "Westbridge Partners",+ "position": "Associate, Customer-focused product development",+ "location": "Lisbon, Portugal",+ "period": "2017 – 2019",+ "description": "<ul><li>Supported client projects from research and planning through delivery, building a strong foundation in customer- focused product development.</li><li>Maintained accurate project documentation, coordinated stakeholder feedback and presented clear recommendations to senior colleagues.</li></ul>"+ }+ ]+ },+ {+ "template": "pikachu",+ "basics": {+ "name": "Grace Okafor",+ "headline": "Learning Experience Designer",+ "email": "[email protected]",+ "phone": "+1 (202) 555-0123",+ "location": "Dublin, Ireland",+ "website": {+ "url": "https://example.com/grace.okafor",+ "label": "graceokafor.example.com"+ },+ "customFields": []+ },+ "experience": [+ {+ "company": "Open Path Learning",+ "position": "Learning Experience Designer",+ "location": "Dublin, Ireland",+ "period": "2022 – Present",+ "description": "<ul><li>Designed blended learning programmes for more than 4,500 employees across financial and professional services.</li><li>Rebuilt compliance training around realistic scenarios, improving assessment scores by 24 percentage points.</li><li>Led discovery sessions with subject experts to turn complex policies into clear and useful learning activities.</li></ul>"+ },+ {+ "company": "Bright Oak Education",+ "position": "Learning Experience Designer",+ "location": "Dublin, Ireland",+ "period": "2019 – 2022",+ "description": "<ul><li>Produced interactive modules, facilitator guides and performance support resources for distributed teams.</li><li>Introduced accessible templates and quality reviews that reduced production rework by 30%.</li><li>Evaluated learner feedback and completion data to refine content and support continuous programme improvement.</li></ul>"+ },+ {+ "company": "Westbridge Partners",+ "position": "Associate, Practical learning and development",+ "location": "Dublin, Ireland",+ "period": "2017 – 2019",+ "description": "<ul><li>Supported client projects from research and planning through delivery, building a strong foundation in practical learning and development.</li><li>Maintained accurate project documentation, coordinated stakeholder feedback and presented clear recommendations to senior colleagues.</li></ul>"+ }+ ]+ },+ {+ "template": "porygon",+ "basics": {+ "name": "Isabella Rossi",+ "headline": "Hospitality & Guest Experience Manager",+ "email": "[email protected]",+ "phone": "+1 (202) 555-0124",+ "location": "Milan, Italy",+ "website": {+ "url": "https://example.com/isabella.rossi",+ "label": "isabellarossi.example.com"+ },+ "customFields": []+ },+ "experience": [+ {+ "company": "Casa Aurelia Hotels",+ "position": "Hospitality & Guest Experience Manager",+ "location": "Milan, Italy",+ "period": "2022 – Present",+ "description": "<ul><li>Led front office and guest relations for a 126-room boutique hotel with a team of 24 colleagues.</li><li>Raised guest satisfaction from 88% to 95% through service coaching and a structured feedback response process.</li><li>Built local partnerships and personalised stay experiences that increased ancillary revenue by 18%.</li></ul>"+ },+ {+ "company": "The Linden Collection",+ "position": "Hospitality & Guest Experience Coordinator",+ "location": "Milan, Italy",+ "period": "2019 – 2022",+ "description": "<ul><li>Managed daily guest operations and supported opening preparations for two city-centre hotel properties.</li><li>Introduced service standards and cross-training that improved consistency during peak occupancy periods.</li><li>Coordinated reservations, housekeeping and food service teams to resolve issues quickly and discreetly.</li></ul>"+ }+ ]+ },+ {+ "template": "rhyhorn",+ "basics": {+ "name": "Gabriel Santos",+ "headline": "Mechanical Design Engineer",+ "email": "[email protected]",+ "phone": "+1 (202) 555-0125",+ "location": "Rotterdam, Netherlands",+ "website": {+ "url": "https://example.com/gabriel.santos",+ "label": "gabrielsantos.example.com"+ },+ "customFields": []+ },+ "experience": [+ {+ "company": "Delta Motion Systems",+ "position": "Mechanical Design Engineer",+ "location": "Rotterdam, Netherlands",+ "period": "2022 – Present",+ "description": "<ul><li>Designed precision assemblies for automated handling equipment deployed at 18 manufacturing sites.</li><li>Reduced assembly cost by 17% through component standardisation, tolerance review and supplier collaboration.</li><li>Led prototype testing and design verification to resolve reliability issues before production release.</li></ul>"+ },+ {+ "company": "Forge Engineering",+ "position": "Mechanical Design Engineer",+ "location": "Rotterdam, Netherlands",+ "period": "2019 – 2022",+ "description": "<ul><li>Developed CAD models, technical drawings and test fixtures for industrial equipment and tooling projects.</li><li>Worked with manufacturing teams to improve build quality and reduce assembly time by 22%.</li><li>Maintained clear engineering change records and supported customer installation and commissioning reviews.</li></ul>"+ }+ ]+ },+ {+ "template": "scizor",+ "basics": {+ "name": "Noah Williams",+ "headline": "Information Security Analyst",+ "email": "[email protected]",+ "phone": "+1 (202) 555-0126",+ "location": "Manchester, UK",+ "website": {+ "url": "https://example.com/noah.williams",+ "label": "noahwilliams.example.com"+ },+ "customFields": []+ },+ "experience": [+ {+ "company": "Fortis Financial",+ "position": "Information Security Analyst",+ "location": "Manchester, UK",+ "period": "2022 – Present",+ "description": "<ul><li>Improved detection and response processes across a financial services environment supporting 1,800 colleagues.</li><li>Tuned monitoring rules and investigation playbooks to reduce non-actionable alerts by 43%.</li><li>Partnered with infrastructure teams to remediate critical vulnerabilities within agreed service targets.</li></ul>"+ },+ {+ "company": "Signal Defence",+ "position": "Information Security Analyst",+ "location": "Manchester, UK",+ "period": "2019 – 2022",+ "description": "<ul><li>Investigated security events and supported incident coordination for managed service customers across the UK.</li><li>Built practical awareness workshops and phishing follow-up guidance that improved reporting rates by 36%.</li><li>Documented evidence and control improvements to support customer assurance reviews and annual audits.</li></ul>"+ }+ ]+ },+ {+ "template": "smeargle",+ "basics": {+ "name": "James Walker",+ "headline": "S E N I O R C O N T E N T D E S I G N E R",+ "email": "[email protected]",+ "phone": "+1 (202) 555-0127",+ "location": "New York, NY",+ "website": {+ "url": "https://example.com/james.walker",+ "label": "jameswalker.example.com"+ },+ "customFields": []+ },+ "experience": [+ {+ "company": "Civic Works Digital",+ "position": "Senior Content Designer",+ "location": "New York, NY",+ "period": "2022 – Present",+ "description": "<ul><li>Led content design for public service journeys used by more than 600,000 residents annually.</li><li>Simplified eligibility guidance and application forms, reducing avoidable support contacts by 27%.</li><li>Established inclusive language standards and reusable content patterns across a growing service portfolio.</li></ul>"+ },+ {+ "company": "Plainspoken Studio",+ "position": "Content Designer",+ "location": "New York, NY",+ "period": "2019 – 2022",+ "description": "<ul><li>Designed onboarding, account and help content for consumer finance and education products.</li><li>Tested terminology and task flows with diverse users to improve comprehension and successful completion.</li><li>Built collaborative review processes that brought legal, policy, design and engineering teams into early decisions.</li></ul>"+ }+ ]+ }+]diff --git a/packages/api/src/features/resume/import-education.test.ts b/packages/api/src/features/resume/import-education.test.tsnew file mode 100644index 000000000..c59d1ef88--- /dev/null+++ b/packages/api/src/features/resume/import-education.test.ts@@ -0,0 +1,38 @@+import type { ResumeData } from "@reactive-resume/schema/resume/data";+import { expect, it, vi } from "vite-plus/test";+import { call } from "@orpc/server";+import { createResumePdfFile } from "@reactive-resume/pdf/server";+const create = vi.hoisted(() => vi.fn());+vi.mock("./service", () => ({ resumeService: { create } }));+vi.mock("@reactive-resume/auth/config", () => ({+ auth: { api: { getSession: vi.fn().mockResolvedValue({ user: { id: "owner" } }) } },+ verifyOAuthToken: vi.fn(),+}));+vi.mock("@reactive-resume/db/client", () => ({+ db: { select: () => ({ from: () => ({ where: () => ({ limit: async () => [{ id: "owner", banned: false }] }) }) }) },+}));+const { importResumeFile } = await import("./imports");++import { educationCases, educationSource, educationFields, educationWords } from "./fixtures/pdf-education";+const save = async (file: File) => {+ create.mockClear();+ await call(importResumeFile, { file, format: "PDF" }, { context: { locale: "en-US", reqHeaders: new Headers() } });+ expect(create).toHaveBeenCalledTimes(1);+ const saved = create.mock.calls[0]?.[0] as { data: ResumeData } | undefined;+ if (!saved) throw Error("No imported data");+ return saved.data;+};++it.each(educationCases)(+ "preserves whole mixed-date Education records / $template / $kind",+ async (c) => {+ const source = educationSource(c);+ const file = await createResumePdfFile({ data: source, template: c.template, filename: "education.pdf" });+ const data = await save(file);+ expect(educationFields(data.sections.education.items)).toEqual(educationFields(source.sections.education.items));+ const actual = new Set(educationWords(data.sections.education.items));+ expect(educationWords(source.sections.education.items).filter((word) => !actual.has(word))).toEqual([]);+ expect(data.customSections).toEqual([]);+ },+ 60000,+);diff --git a/packages/api/src/features/resume/import-layouts.test.ts b/packages/api/src/features/resume/import-layouts.test.tsnew file mode 100644index 000000000..a8624ccb0--- /dev/null+++ b/packages/api/src/features/resume/import-layouts.test.ts@@ -0,0 +1,71 @@+import type { ResumeData } from "@reactive-resume/schema/resume/data";+import { readFileSync } from "node:fs";+import { expect, it, vi } from "vite-plus/test";+import { call } from "@orpc/server";+import { createResumePdfFile } from "@reactive-resume/pdf/server";+const create = vi.hoisted(() => vi.fn());+vi.mock("./service", () => ({ resumeService: { create } }));+vi.mock("@reactive-resume/auth/config", () => ({+ auth: { api: { getSession: vi.fn().mockResolvedValue({ user: { id: "owner" } }) } },+ verifyOAuthToken: vi.fn(),+}));+vi.mock("@reactive-resume/db/client", () => ({+ db: { select: () => ({ from: () => ({ where: () => ({ limit: async () => [{ id: "owner", banned: false }] }) }) }) },+}));+const { importResumeFile } = await import("./imports");++import { pdfImportCases, pdfImportSource, pdfExperienceFields } from "./fixtures/pdf-import";+import shipped from "./fixtures/shipped-import.json";+const save = async (file: File) => {+ create.mockClear();+ await call(importResumeFile, { file, format: "PDF" }, { context: { locale: "en-US", reqHeaders: new Headers() } });+ expect(create).toHaveBeenCalledTimes(1);+ const saved = create.mock.calls[0]?.[0] as { data: ResumeData } | undefined;+ if (!saved) throw new Error("Import must create a resume");+ return saved.data;+};+it.each(shipped)("preserves complete shipped identity and work history / $template", async (c) => {+ const data = await save(+ new File(+ [readFileSync(new URL(`../../../../../apps/web/public/templates/pdf/${c.template}.pdf`, import.meta.url))],+ `${c.template}.pdf`,+ ),+ );+ expect(data.basics).toEqual(c.basics);+ expect(pdfExperienceFields(data.sections.experience.items)).toEqual(c.experience);+ expect(data.customSections.filter((section) => section.title !== "Community")).toEqual([]);+});+it.each(pdfImportCases)(+ "preserves whole identity, record fields and rich wording / $template / $kind / $period / $index",+ async (c) => {+ const source = pdfImportSource(c);+ const file = await createResumePdfFile({ data: source, template: c.template, filename: "regression.pdf" });+ const data = await save(file);+ const expectedBasics = { ...source.basics };+ if (c.template === "persian") expectedBasics.name = "JORDAN SAMPLE";+ if (c.template === "smeargle") expectedBasics.headline = "P R O D U C T & P L A T F O R M L E A D";+ expect(data.basics).toEqual(expectedBasics);+ expect(pdfExperienceFields(data.sections.experience.items)).toEqual(+ pdfExperienceFields(source.sections.experience.items),+ );+ expect(data.sections.experience.items.map((item) => item.dates)).toEqual(+ source.sections.experience.items.map((item) => item.dates),+ );+ expect(data.customSections).toEqual([]);+ },+ 60000,+);+it("keeps a wrapped rail contact as identity and preserves every displayed name character", async () => {+ const data = await save(new File([readFileSync(new URL("./fixtures/glalie-rail.pdf", import.meta.url))], "rail.pdf"));+ expect(data.basics).toEqual({+ name: "Fiction al Review er",+ headline: "",+ email: "[email protected]",+ phone: "",+ location: "",+ website: { url: "", label: "" },+ customFields: [],+ });+ expect(data.customSections).toEqual([]);+ expect(data.sections.experience.items).toHaveLength(4);+});diff --git a/packages/api/src/features/resume/import-ownership.test.ts b/packages/api/src/features/resume/import-ownership.test.tsnew file mode 100644index 000000000..6708c22ef--- /dev/null+++ b/packages/api/src/features/resume/import-ownership.test.ts@@ -0,0 +1,146 @@+import type { ResumeData } from "@reactive-resume/schema/resume/data";+import { readFileSync } from "node:fs";+import { expect, it, vi } from "vite-plus/test";+import { call } from "@orpc/server";+import { createResumePdfFile } from "@reactive-resume/pdf/server";+const create = vi.hoisted(() => vi.fn());+vi.mock("./service", () => ({ resumeService: { create } }));+vi.mock("@reactive-resume/auth/config", () => ({+ auth: { api: { getSession: vi.fn().mockResolvedValue({ user: { id: "owner" } }) } },+ verifyOAuthToken: vi.fn(),+}));+vi.mock("@reactive-resume/db/client", () => ({+ db: { select: () => ({ from: () => ({ where: () => ({ limit: async () => [{ id: "owner", banned: false }] }) }) }) },+}));+const { importResumeFile } = await import("./imports");++import { ownershipCases, ownershipSource } from "./fixtures/pdf-ownership";+const save = async (file: File) => {+ create.mockClear();+ await call(importResumeFile, { file, format: "PDF" }, { context: { locale: "en-US", reqHeaders: new Headers() } });+ expect(create).toHaveBeenCalledTimes(1);+ const saved = create.mock.calls[0]?.[0] as { data: ResumeData } | undefined;+ if (!saved) throw Error("No imported data");+ return saved.data;+};+it.each(ownershipCases)(+ "keeps identity and section ownership / $template / $kind",+ async (c) => {+ const source = ownershipSource(c);+ const file = await createResumePdfFile({ data: source, template: c.template, filename: "ownership.pdf" });+ const data = await save(file);+ const basics = { ...source.basics };+ if (c.template === "persian") basics.name = "JORDAN SAMPLE";+ if (c.template === "smeargle") basics.headline = [...basics.headline.toUpperCase()].join(" ").replace(/ {3}/g, " ");+ const pick = (b: ResumeData["basics"]) => ({+ ...b,+ customFields: b.customFields.map(({ text, link }) => ({ text, link })),+ });+ expect(pick(data.basics)).toEqual(pick(basics));+ expect(data.summary.content).toBe(source.summary.content);+ expect(data.customSections).toHaveLength(1);+ expect(data.customSections[0]?.items[0]).toMatchObject({+ content:+ source.customSections[0]?.items[0] && "content" in source.customSections[0].items[0]+ ? source.customSections[0].items[0].content+ : "",+ });+ const withoutIds = (items: unknown[]) =>+ JSON.parse(JSON.stringify(items, (key, value) => (key === "id" ? undefined : value)));+ expect(withoutIds(data.sections.education.items)).toEqual(withoutIds(source.sections.education.items));+ expect(withoutIds(data.sections.projects.items)).toEqual(withoutIds(source.sections.projects.items));+ for (const key of ["awards", "certifications", "publications", "volunteer"] as const) {+ const actual = data.sections[key].items[0];+ const expected = source.sections[key].items[0];+ expect(actual).toBeDefined();+ if (!actual || !expected) throw Error("Missing section record");+ // Existing positional mappings retain secondary header fields in descriptions.+ expect(actual.dates).toEqual(expected.dates);+ expect(actual.description).toContain(expected.description);+ }+ expect(data.sections.skills.items[0]?.name).toBe(source.sections.skills.items[0]?.name);+ expect(data.sections.languages.items[0]?.language).toBe(source.sections.languages.items[0]?.language);+ expect(data.sections.interests.items[0]?.name).toBe(source.sections.interests.items[0]?.name);++ expect(+ data.sections.experience.items.map(({ company, position, location, period, dates, description }) => ({+ company,+ position,+ location,+ period,+ dates,+ description,+ })),+ ).toEqual(+ source.sections.experience.items.map(({ company, position, location, period, dates, description }) => ({+ company,+ position,+ location,+ period,+ dates,+ description,+ })),+ );+ },+ 60000,+);++// Real dense input must take the bounded fallback and retain every cell, not freeze the event loop.+it("keeps every cell of a dense two-page PDF through authenticated import", async () => {+ const file = new File([readFileSync(new URL("./fixtures/dense-2p.pdf", import.meta.url))], "dense.pdf");+ const data = await save(file);+ const words = data.summary.content.match(/w\d+x\d+y\d+/g);+ const expected = Array.from({ length: 2 }, (_, page) =>+ Array.from({ length: 100 }, (_, row) =>+ Array.from({ length: 8 }, (_, column) => `w${page}x${row}y${column}`),+ ).flat(),+ ).flat();+ expect(words).toEqual(expected);+});++it("keeps all wrapped name-font fragments out of an inset contact location", async () => {+ const data = await save(+ new File([readFileSync(new URL("./fixtures/glalie-narrow.pdf", import.meta.url))], "narrow.pdf"),+ );+ expect(data.basics).toEqual({+ name: "Fic tio na l Re vie we r",+ headline: "",+ email: "[email protected]",+ phone: "",+ location: "",+ website: { url: "", label: "" },+ customFields: [],+ });+ expect(+ data.sections.experience.items.map(({ company, position, location, period, description }) => ({+ company,+ position,+ location,+ period,+ description,+ })),+ ).toEqual([+ {+ company: "eBay",+ position: "Engineer, Platform",+ location: "Remote",+ period: "2020 – 2021",+ description:+ "<ul><li>Built <systems> & tools for Global Customers With Careful Accessibility Reviews Across Every Product Surface And Deployment And Better Reliability Across All Supported Devices</li><li>Research</li><li>Delivered Capitalized Continuation Across Each Product Surface Without A Final Full Stop</li></ul>",+ },+ {+ company: "3M",+ position: "Director, Product",+ location: "Berlin, Germany",+ period: "2019 – 2020",+ description: "<ul><li>Second role delivery with café, naïve, Straße, €25, £30, ±5% and ≥99% uptime.</li></ul>",+ },+ ]);+ // Existing narrow wrapped-label mapping is incomplete in v8 too; every body fragment must survive.+ expect(+ data.customSections.flatMap((section) => section.items.map((item) => ("content" in item ? item.content : ""))),+ ).toEqual([+ "<p>Engin eerin</p><p>g Advan ced</p><p>TypeSc ript, Resear ch, Tools</p>",+ "<p>Experi enced profes sional buildi</p><p>ng</p><p>access ible syste ms.</p>",+ ]);+});diff --git a/packages/api/src/features/resume/imports.test.ts b/packages/api/src/features/resume/imports.test.tsindex c7b994929..6f233c613 100644--- a/packages/api/src/features/resume/imports.test.ts+++ b/packages/api/src/features/resume/imports.test.ts@@ -1,5 +1,12 @@+import type { ResumeData } from "@reactive-resume/schema/resume/data";+import { readFileSync } from "node:fs";import { expect, it, vi } from "vite-plus/test";import { call } from "@orpc/server";+import { createResumePdfFile } from "@reactive-resume/pdf/server";+import { defaultResumeData } from "@reactive-resume/schema/resume/default";+import { sampleResumeData } from "@reactive-resume/schema/resume/sample";+import { templateSchema } from "@reactive-resume/schema/templates";+import { generateId } from "@reactive-resume/utils/string";const create = vi.hoisted(() => vi.fn());vi.mock("./service", () => ({ resumeService: { create } }));vi.mock("@reactive-resume/auth/config", () => ({@@ -11,6 +18,64 @@ vi.mock("@reactive-resume/db/client", () => ({}));const { importResumeFile } = await import("./imports");+it.each([+ {+ name: "senior.pdf",+ roles: 10,+ position: (role: number) => `Engineering Role ${role}`,+ person: "Morgan Chen",+ period: (index: number) => (index === 0 ? "2020 – Present" : `${2020 - index - 1} – ${2020 - index}`),+ },+ {+ name: "freelancer-azurill.pdf",+ roles: 4,+ position: () => "Consultant",+ person: "Sam Taylor",+ period: () => "2020 – Present",+ },+])(+ "imports $name through extraction, validation and authenticated creation",+ async ({ name, roles, position, person, period }) => {+ create.mockClear();+ const bytes = readFileSync(new URL(`./fixtures/${name}`, import.meta.url));+ await call(+ importResumeFile,+ { file: new File([bytes], name), format: "PDF" },+ {+ context: { locale: "en-US", reqHeaders: new Headers() },+ },+ );+ const saved = create.mock.calls[0]?.[0] as { userId: string; data: ResumeData };+ expect(create).toHaveBeenCalledTimes(1);+ expect(saved.userId).toBe("owner");+ expect(saved.data.basics.name).toBe(person);+ expect(saved.data.sections.experience.items).toHaveLength(roles);+ for (const [index, entry] of saved.data.sections.experience.items.entries()) {+ const role = index + 1;+ expect(entry).toMatchObject({+ company: `Synthetic Studio ${role}`,+ position: position(role),+ location: "Remote",+ period: period(index),+ });+ expect(entry.description).toBe(+ `<ul>${[1, 2, 3].map((bullet) => `<li>Project ${role}.${bullet}: Built accessible services for global customers, mentored four engineers, and reduced processing time by 25%. Tracked reliability and customer feedback.</li>`).join("")}</ul>`,+ );+ }+ expect(saved.data.sections.skills.items.map((item) => item.name)).toEqual([+ "Engineering",+ "Advanced",+ "TypeScript",+ "Accessibility",+ "Product strategy",+ "Research",+ ]);+ expect(saved.data.sections.skills.items.some((item) => item.name.includes("Synthetic Studio"))).toBe(false);+ expect(saved.data.summary.content).toContain("Experienced professional");+ expect(saved.data.sections.education.items[0]?.school).toBe("Synthetic University");+ },+);+it("imports JSON Resume into the authenticated account and rejects invalid files before writing", async () => {const context = { locale: "en-US" as const, reqHeaders: new Headers() };const id = await call(@@ -32,3 +97,643 @@ it("imports JSON Resume into the authenticated account and rejects invalid files).rejects.toMatchObject({ code: "BAD_REQUEST" });expect(create).not.toHaveBeenCalled();});++const diverseRoles = [+ ["eBay", "Senior Engineer", "Remote"],+ ["3M", "Engineer, Platform", "Mountain View, CA"],+ ["iRobot", "Staff Engineer", "Boston, MA"],+ ["1Password", "Director, Product", "Singapore"],+ ["Globex", "Engineering Manager", "Berlin, Germany"],+ ["Initech", "Developer", "Austin, TX"],+ ["Umbrella", "Analyst", "Hybrid"],+ ["Hooli", "Engineer", "Palo Alto, CA"],+ ["Stark Industries", "Consultant", "New York, NY"],+ ["Wayne Enterprises", "Intern", "Gotham, NJ"],+] as const;+const bulletText = (role: number, bullet: number) =>+ [+ `Shipped ${role}.${bullet} the Analytics Platform for Global Enterprise Customers Across Europe And North America With Stronger Reliability`,+ `Reduced costs ${role}.${bullet} for the data pipeline used by the finance and operations organisation by 35`,+ `Mentored engineers ${role}.${bullet} through design reviews and pairing sessions and ownership of production services`,+ ][bullet - 1] ?? "";++it.each(templateSchema.options)(+ "exports and imports complete role headers and bullets through %s",+ async (template) => {+ const source = structuredClone(sampleResumeData);+ source.picture.hidden = true;+ const sampleRole = source.sections.experience.items[0];+ if (!sampleRole) throw new Error("Sample resume must include an experience fixture.");+ source.sections.experience.items = diverseRoles.map(([company, position, location], index) => ({+ ...sampleRole,+ id: generateId(),+ company,+ position,+ location,+ period: `${2020 - index} – ${2021 - index}`,+ dates: { start: String(2020 - index), end: String(2021 - index), present: false },+ description: `<ul>${[1, 2, 3].map((bullet) => `<li>${bulletText(index + 1, bullet)}</li>`).join("")}</ul>`,+ }));+ const file = await createResumePdfFile({ data: source, template, filename: `${template}.pdf` });+ create.mockClear();+ await call(importResumeFile, { file, format: "PDF" }, { context: { locale: "en-US", reqHeaders: new Headers() } });+ const saved = create.mock.calls[0]?.[0] as { userId: string; data: ResumeData };+ expect(saved.userId).toBe("owner");+ expect(saved.data.sections.experience.items).toHaveLength(diverseRoles.length);+ for (const [index, original] of source.sections.experience.items.entries()) {+ expect(saved.data.sections.experience.items[index]).toMatchObject({+ company: original.company,+ position: original.position,+ location: original.location,+ period: original.period,+ description: original.description,+ });+ }+ },+ 60000,+);++it.each(templateSchema.options)("imports the shipped %s PDF without losing its work history", async (template) => {+ const file = new File(+ [readFileSync(new URL(`../../../../../apps/web/public/templates/pdf/${template}.pdf`, import.meta.url))],+ `${template}.pdf`,+ );+ create.mockClear();+ await call(importResumeFile, { file, format: "PDF" }, { context: { locale: "en-US", reqHeaders: new Headers() } });+ const saved = create.mock.calls[0]?.[0] as { data: ResumeData };+ const threeRoles = ["azurill", "chikorita", "ditgar", "ditto", "gengar", "glalie", "leafish", "persian", "pikachu"];+ expect(saved.data.sections.experience.items).toHaveLength(threeRoles.includes(template) ? 3 : 2);+ for (const role of saved.data.sections.experience.items) {+ expect(role.company).not.toBe("");+ expect(role.position).not.toBe("");+ expect(role.period).not.toBe("");+ expect(role.description).toContain("<li>");+ }+});++const flowCases = [+ "singleton",+ "custom",+ "flat-custom",+ "spacing-2",+ "spacing-2.5",+ "page-split",+ "column-page",+ "long-a4",+] as const;+const flowTemplates = templateSchema.options.flatMap((template) => flowCases.map((kind) => ({ template, kind })));+const flowingBullet = "TARGET " + "Built useful systems for Global Customers. ".repeat(15).trim() + " END";+const spacedBullet =+ "Built useful systems for Global Customers With Careful Accessibility Reviews Across Every Product Surface And Deployment And Better Reliability Across All Supported Devices";+const talkId = "019bef5a-93e4-7746-ad39-111111111111";++it.each(flowTemplates)(+ "preserves $kind sections and complete saved bullets in $template",+ async ({ template, kind }) => {+ const source = structuredClone(defaultResumeData);+ source.basics.name = "Fictional Reviewer";+ source.picture.hidden = true;+ source.metadata.layout.pages = [{ fullWidth: true, main: ["experience"], sidebar: [] }];+ const text =+ kind === "page-split" || kind === "column-page"+ ? flowingBullet+ : kind === "long-a4"+ ? "TARGET " ++ "Built accessible systems for global customers with careful reliability reviews. ".repeat(160).trim() ++ " END"+ : kind.startsWith("spacing")+ ? spacedBullet+ : "Built useful tools";+ if (kind === "singleton" || kind === "flat-custom") {+ source.metadata.typography.body = {+ ...source.metadata.typography.body,+ fontFamily: "Helvetica",+ fontSize: 10,+ fontWeights: ["400"],+ };+ source.metadata.typography.heading = { ...source.metadata.typography.body };+ }+ if (kind.startsWith("spacing")) source.metadata.typography.body.lineHeight = kind === "spacing-2" ? 2 : 2.5;+ if (kind === "page-split" || kind === "column-page" || kind === "long-a4") {+ source.metadata.typography.body.fontFamily = "Helvetica";+ source.metadata.typography.heading.fontFamily = "Helvetica";+ if (kind !== "long-a4")+ source.metadata.stylesheet = {+ mode: "semantic",+ source: { languageVersion: 1, text: "@version 1; page { size: 300pt 300pt; }" },+ };+ if (kind === "column-page") {+ source.metadata.layout.pages = [{ fullWidth: false, main: ["experience"], sidebar: ["skills"] }];+ source.sections.skills = structuredClone(sampleResumeData.sections.skills);+ }+ }+ const original = sampleResumeData.sections.experience.items[0];+ if (!original) throw new Error("Sample must include an experience fixture.");+ source.sections.experience.items = [+ {+ ...original,+ company: "Example Labs",+ position: "Engineer",+ location: "Remote",+ period: "2020 – 2021",+ dates: { start: "2020", end: "2021", present: false },+ description: `<ul><li>${text}</li><li>Second complete bullet</li></ul>`,+ },+ ];+ if (kind === "custom" || kind === "flat-custom") {+ source.customSections = [+ {+ id: talkId,+ type: "summary",+ title: "SELECTED TALKS",+ icon: "",+ columns: 1,+ hidden: false,+ keepTogether: false,+ startOnNewPage: false,+ items: [{ id: generateId(), hidden: false, content: "<p>Spoke at Fictional Conference.</p>" }],+ },+ ];+ source.metadata.layout.pages[0]?.main.push(talkId);+ }+ const file = await createResumePdfFile({ data: source, template, filename: `${kind}-${template}.pdf` });+ create.mockClear();+ await call(importResumeFile, { file, format: "PDF" }, { context: { locale: "en-US", reqHeaders: new Headers() } });+ const saved = create.mock.calls[0]?.[0] as { userId: string; data: ResumeData };+ expect(saved.userId).toBe("owner");+ expect(saved.data.sections.experience.items).toHaveLength(1);+ expect(saved.data.sections.experience.items[0]).toMatchObject({+ company: "Example Labs",+ position: "Engineer",+ location: "Remote",+ period: "2020 – 2021",+ description: source.sections.experience.items[0]?.description,+ });+ expect(saved.data.customSections).toHaveLength(kind === "custom" || kind === "flat-custom" ? 1 : 0);+ if (kind === "custom" || kind === "flat-custom") {+ expect(saved.data.customSections[0]?.title.replace(/\s/g, "")).toBe("SELECTEDTALKS");+ expect(saved.data.customSections[0]?.items).toMatchObject([{ content: "<p>Spoke at Fictional Conference.</p>" }]);+ }+ },+ 60000,+);++const boundaryCases = ["custom-only", "custom-localized", "short", "empty", "paragraph-a4", "paragraph-small"] as const;+const boundaryTemplates = templateSchema.options.flatMap((template) =>+ boundaryCases.map((kind) => ({ template, kind })),+);+it.each(boundaryTemplates)(+ "preserves role/custom content and block association for $template / $kind",+ async ({ template, kind }) => {+ const source = structuredClone(defaultResumeData);+ source.basics.name = "Fictional Reviewer";+ source.basics.email = "[email protected]";+ source.picture.hidden = true;+ source.metadata.layout.pages = [{ fullWidth: true, main: ["experience"], sidebar: [] }];+ const original = sampleResumeData.sections.experience.items[0];+ if (!original) throw new Error("Missing role fixture");+ let description = kind === "empty" ? "" : "<ul><li>Built useful tools</li></ul>";+ if (kind.startsWith("paragraph")) {+ source.metadata.typography.body.fontFamily = "Helvetica";+ source.metadata.typography.heading.fontFamily = "Helvetica";+ const repeats = kind === "paragraph-a4" ? 113 : 6;+ description = `<ul><li>${"Delivered Global Products For Every Customer. ".repeat(repeats).trim()}</li></ul><p>References available on request.</p>`;+ if (kind === "paragraph-small")+ source.metadata.stylesheet = {+ mode: "semantic",+ source: { languageVersion: 1, text: "@version 1; page { size: 300pt 250pt; }" },+ };+ }+ source.sections.experience.items = [+ {+ ...original,+ company: "eBay",+ position: "Engineer, Platform",+ location: "Remote",+ period: "2020 – 2021",+ dates: { start: "2020", end: "2021", present: false },+ website: { url: "", label: "", inlineLink: false },+ description,+ },+ ];+ if (kind.startsWith("custom")) {+ source.sections.experience.items = [];+ source.customSections = [+ {+ id: talkId,+ type: "summary",+ title: kind === "custom-only" ? "SELECTED TALKS" : "AUSGEWÄHLTE VORTRÄGE",+ icon: "",+ columns: 1,+ hidden: false,+ keepTogether: false,+ startOnNewPage: false,+ items: [+ { id: generateId(), hidden: false, content: "<p>Spoke at Fictional Conference about useful systems.</p>" },+ ],+ },+ ];+ source.metadata.layout.pages = [{ fullWidth: true, main: [talkId], sidebar: [] }];+ }+ const file = await createResumePdfFile({ data: source, template, filename: `${template}-${kind}.pdf` });+ create.mockClear();+ await call(importResumeFile, { file, format: "PDF" }, { context: { locale: "en-US", reqHeaders: new Headers() } });+ const saved = create.mock.calls[0]?.[0] as { data: ResumeData };+ const data = saved.data;+ // Exact identity check targets the introduced centered-header regression. Wrapped names are a separate mapper limit.+ if (template === "ditto" && kind !== "paragraph-small")+ expect(data.basics).toMatchObject({ name: source.basics.name, email: source.basics.email });+ expect(data.sections.experience.items).toHaveLength(source.sections.experience.items.length);+ if (kind.startsWith("custom")) {+ expect(data.customSections).toHaveLength(1);+ expect(data.customSections[0]?.items).toMatchObject([+ { content: "<p>Spoke at Fictional Conference about useful systems.</p>" },+ ]);+ expect(data.customSections[0]?.title.replace(/\s/g, "")).toBe(source.customSections[0]?.title.replace(/\s/g, ""));+ } else+ expect(data.sections.experience.items[0]).toMatchObject({+ company: "eBay",+ position: "Engineer, Platform",+ location: "Remote",+ period: "2020 – 2021",+ description,+ });+ },+ 60000,+);++it.each(["custom-only.pdf", "ditto-short.pdf", "bullet-prose-page.pdf"])(+ "preserves the frozen real regression %s",+ async (name) => {+ create.mockClear();+ const file = new File([readFileSync(new URL(`./fixtures/${name}`, import.meta.url))], name);+ await call(importResumeFile, { file, format: "PDF" }, { context: { locale: "en-US", reqHeaders: new Headers() } });+ const saved = create.mock.calls[0]?.[0] as { data: ResumeData };+ const data = saved.data;+ if (name === "custom-only.pdf")+ expect(data.customSections[0]?.items).toMatchObject([+ { content: "<p>Spoke at Fictional Conference about useful systems.</p>" },+ ]);+ else if (name === "ditto-short.pdf") {+ expect(data.basics).toMatchObject({ name: "Fictional Reviewer", email: "[email protected]" });+ expect(data.sections.experience.items).toHaveLength(1);+ expect(data.sections.experience.items[0]).toMatchObject({+ company: "eBay",+ position: "Engineer, Platform",+ location: "Remote",+ period: "2020 – 2021",+ description: "<ul><li>Built useful tools</li></ul>",+ });+ } else+ expect(data.sections.experience.items[0]?.description).toBe(+ `<ul><li>${"Delivered Global Products For Every Customer. ".repeat(113).trim()}</li></ul><p>References available on request.</p>`,+ );+ },+);++const geometryCases = [+ "custom-flat",+ "custom-no-name",+ "custom-flat-no-name",+ "custom-flat-no-identity",+ "custom-title-flat",+ "custom-localized-flat",+ "prose-1.5",+ "prose-2",+ "prose-2.5",+ "wrapped-prose",+] as const;+it.each(templateSchema.options.flatMap((template) => geometryCases.map((kind) => ({ template, kind }))))(+ "preserves geometry boundaries in $template / $kind",+ async ({ template, kind }) => {+ const source = structuredClone(defaultResumeData);+ source.basics.name = "Morgan Fiction";+ source.basics.email = "[email protected]";+ source.picture.hidden = true;+ source.metadata.layout.pages = [{ fullWidth: true, main: ["experience"], sidebar: [] }];+ if (kind.includes("flat")) {+ source.metadata.typography.body = {+ ...source.metadata.typography.body,+ fontFamily: "Helvetica",+ fontSize: 10,+ fontWeights: ["400"],+ };+ source.metadata.typography.heading = { ...source.metadata.typography.body };+ }+ const custom = kind.startsWith("custom");+ if (custom) {+ if (kind.includes("no-name") || kind.includes("no-identity")) source.basics.name = "";+ if (kind.includes("no-identity")) source.basics.email = "";+ source.customSections = [+ {+ id: talkId,+ type: "summary",+ title:+ kind === "custom-title-flat"+ ? "Selected conversations"+ : kind === "custom-localized-flat"+ ? "AUSGEWÄHLTE VORTRÄGE"+ : "SELECTED TALKS",+ icon: "",+ columns: 1,+ hidden: false,+ keepTogether: false,+ startOnNewPage: false,+ items: [+ { id: generateId(), hidden: false, content: "<p>Spoke at Fictional Conference about useful systems.</p>" },+ ],+ },+ ];+ source.metadata.layout.pages = [{ fullWidth: true, main: [talkId], sidebar: [] }];+ } else {+ const original = sampleResumeData.sections.experience.items[0];+ if (!original) throw new Error("Missing role");+ source.metadata.typography.body.lineHeight = kind === "prose-2" ? 2 : kind === "prose-2.5" ? 2.5 : 1.5;+ const text =+ kind === "wrapped-prose"+ ? "Built reliable tools for Global Customers Across Every Supported Platform. ".repeat(8).trim()+ : "Built useful tools";+ source.sections.experience.items = [+ {+ ...original,+ company: "eBay",+ position: "Engineer, Platform",+ location: "Remote",+ period: "2020 – 2021",+ dates: { start: "2020", end: "2021", present: false },+ website: { url: "", label: "", inlineLink: false },+ description: `<ul><li>${text}</li></ul><p style="margin-left: 12pt">References available on request.</p>`,+ },+ ];+ }+ const file = await createResumePdfFile({ data: source, template, filename: `geometry-${template}-${kind}.pdf` });+ create.mockClear();+ await call(importResumeFile, { file, format: "PDF" }, { context: { locale: "en-US", reqHeaders: new Headers() } });+ const saved = create.mock.calls[0]?.[0] as { data: ResumeData };+ const data = saved.data;+ expect(data.sections.experience.items).toHaveLength(custom ? 0 : 1);+ if (custom) {+ expect(data.customSections).toHaveLength(1);+ expect(data.customSections[0]?.title.replace(/\s/g, "").toUpperCase()).toBe(+ source.customSections[0]?.title.replace(/\s/g, "").toUpperCase(),+ );+ expect(data.customSections[0]?.items).toMatchObject([+ { content: "<p>Spoke at Fictional Conference about useful systems.</p>" },+ ]);+ } else {+ const expected = source.sections.experience.items[0];+ expect(data.sections.experience.items[0]).toMatchObject({+ company: expected?.company,+ position: expected?.position,+ location: expected?.location,+ period: expected?.period,+ description: expected?.description.replace(' style="margin-left: 12pt"', ""),+ });+ }+ },+ 60000,+);++it.each(["custom-flat.pdf", "custom-no-name.pdf", "indented-prose.pdf", "glalie-rail.pdf"])(+ "preserves frozen v4 review content / %s",+ async (name) => {+ create.mockClear();+ await call(+ importResumeFile,+ { file: new File([readFileSync(new URL(`./fixtures/${name}`, import.meta.url))], name), format: "PDF" },+ { context: { locale: "en-US", reqHeaders: new Headers() } },+ );+ const saved = create.mock.calls[0]?.[0] as { data: ResumeData };+ const data = saved.data;+ if (name.startsWith("custom")) {+ expect(data.customSections).toHaveLength(1);+ expect(data.customSections[0]).toMatchObject({+ title: "SELECTED TALKS",+ items: [{ content: "<p>Spoke at Fictional Conference about useful systems.</p>" }],+ });+ } else if (name === "indented-prose.pdf")+ expect(data.sections.experience.items[0]).toMatchObject({+ company: "eBay",+ position: "Engineer, Platform",+ location: "Remote",+ period: "2020 – 2021",+ description: "<ul><li>Built useful tools</li></ul><p>References available on request.</p>",+ });+ else {+ expect(data.sections.experience.items).toHaveLength(4);+ const companies = ["eBay", "3M", "iRobot", "eBay"];+ const positions = ["Engineer, Platform", "Director, Product", "Staff Engineer", "Engineer, Platform"];+ const locations = ["Remote", "Berlin, Germany", "Mountain View, CA", "Remote"];+ const text =+ "Start " ++ "Built Global Products For All Customers Across Every Single Supported Platform. ".repeat(4).trim() ++ " END";+ for (const [i, entry] of data.sections.experience.items.entries())+ expect(entry).toMatchObject({+ company: companies[i],+ position: positions[i],+ location: locations[i],+ period: `${2020 - i} – ${2021 - i}`,+ description: `<ul><li>${text}</li><li>Last complete bullet</li></ul>`,+ });+ }+ },+);++const recordCases = [+ "inline",+ "compact",+ "date-column",+ "eyebrow",+ "role-first",+ "item-columns",+ "three-columns",+ "four-records",+ "inline-no-place",+ "compact-no-place",+ "local-leading",+ "local-leading-2.5",+ "local-size",+ "rich",+ "custom-date",+ "custom-second",+ "custom-bodylarge",+ "custom-digit",+ "custom-url",+ "custom-links",+ "custom-sentence",+] as const;+it.each(templateSchema.options.flatMap((template) => recordCases.map((kind) => ({ template, kind }))))(+ "imports structured records and complete wording in $template / $kind",+ async ({ template, kind }) => {+ const source = structuredClone(defaultResumeData);+ source.basics.name = "Jordan Sample";+ source.basics.email = "[email protected]";+ source.picture.hidden = true;+ source.metadata.layout.pages = [{ fullWidth: true, main: ["experience"], sidebar: [] }];+ const original = sampleResumeData.sections.experience.items[0];+ if (!original) throw new Error("Missing role fixture");+ const words =+ "Delivered reliable tools Across Every Platform For Every Customer With Precise Content And Ownership. "+ .repeat(5)+ .trim();+ source.sections.experience.items = [+ {+ ...original,+ company: "Orbital Labs",+ position: "Engineer, Platform",+ location: "HQ",+ period: "2020 – 2021",+ dates: { start: "2020", end: "2021", present: false },+ website: { url: "", label: "", inlineLink: false },+ description: `<ul><li>${words}</li><li>Final item</li></ul>`,+ },+ ];+ const firstRecord = source.sections.experience.items[0];+ if (!firstRecord) throw new Error("Missing source record");+ if (kind === "item-columns" || kind === "three-columns" || kind === "four-records") {+ source.sections.experience.columns = kind === "three-columns" ? 3 : 2;+ source.sections.experience.items.push({+ ...firstRecord,+ id: generateId(),+ company: "eBay",+ position: "Director, Product",+ location: "Berlin, Germany",+ period: "2019 – 2020",+ dates: { start: "2019", end: "2020", present: false },+ description: "<ul><li>Second employer complete achievement</li></ul>",+ });+ if (kind === "three-columns" || kind === "four-records")+ source.sections.experience.items.push({+ ...firstRecord,+ id: generateId(),+ company: "3M",+ position: "Staff Engineer",+ location: "Remote",+ period: "2018 – 2019",+ dates: { start: "2018", end: "2019", present: false },+ });+ if (kind === "four-records")+ source.sections.experience.items.push({+ ...firstRecord,+ id: generateId(),+ company: "iRobot",+ position: "Analyst",+ location: "Boston",+ period: "2017 – 2018",+ dates: { start: "2017", end: "2018", present: false },+ });+ } else if (kind === "local-leading") firstRecord.description = `<ul><li style="line-height: 2">${words}</li></ul>`;+ else if (kind === "local-leading-2.5")+ firstRecord.description = `<ul><li style="line-height: 2.5">${words}</li></ul>`;+ else if (kind === "local-size")+ firstRecord.description = `<ul><li><span style="font-size: 14pt">${words}</span></li></ul>`;+ else if (kind === "rich")+ firstRecord.description =+ "<ul><li>Built <strong>Important Systems</strong> for <em>Customers Worldwide</em> With Reliable Tools Across Every Supported Platform</li></ul>";+ else if (+ kind === "custom-date" ||+ kind === "custom-url" ||+ kind === "custom-links" ||+ kind === "custom-sentence" ||+ kind === "custom-second" ||+ kind === "custom-bodylarge" ||+ kind === "custom-digit"+ ) {+ if (kind !== "custom-second") source.sections.experience.items = [];+ source.basics.name = "";+ source.metadata.typography.body = {+ ...source.metadata.typography.body,+ fontFamily: "Helvetica",+ fontSize: 11,+ fontWeights: ["400"],+ };+ source.metadata.typography.heading = { ...source.metadata.typography.body };+ if (kind === "custom-bodylarge") source.metadata.typography.body.fontSize = 15;+ source.customSections = [+ {+ id: talkId,+ type: "summary",+ title:+ kind === "custom-digit"+ ? "TALKS 2026"+ : kind === "custom-sentence"+ ? "A place for things."+ : "Chosen conversations",+ icon: "",+ columns: 1,+ hidden: false,+ keepTogether: false,+ startOnNewPage: false,+ items: [+ {+ id: generateId(),+ hidden: false,+ content:+ kind === "custom-date"+ ? "<p>Presented 2020 – 2021 research</p>"+ : kind === "custom-links"+ ? "<p>Discussed https://one.invalid and https://two.invalid systems</p>"+ : "<p>Discussed https://example.invalid systems with colleagues</p>",+ },+ ],+ },+ ];+ source.metadata.layout.pages = [+ { fullWidth: true, main: kind === "custom-second" ? ["experience", talkId] : [talkId], sidebar: [] },+ ];+ } else+ source.metadata.design.entry = {+ layout:+ kind === "role-first"+ ? "stacked"+ : kind === "inline-no-place"+ ? "inline"+ : kind === "compact-no-place"+ ? "compact"+ : kind,+ lead: kind === "role-first" ? "role" : "organization",+ accent: "none",+ };+ if (kind === "inline-no-place" || kind === "compact-no-place") firstRecord.location = "";+ const file = await createResumePdfFile({ data: source, template, filename: `records-${template}-${kind}.pdf` });+ create.mockClear();+ await call(importResumeFile, { file, format: "PDF" }, { context: { locale: "en-US", reqHeaders: new Headers() } });+ const saved = create.mock.calls[0]?.[0] as { userId: string; data: ResumeData };+ expect(saved.userId).toBe("owner");+ expect(saved.data.sections.experience.items).toHaveLength(source.sections.experience.items.length);+ for (const [i, record] of source.sections.experience.items.entries()) {+ expect(saved.data.sections.experience.items[i]).toMatchObject({+ company: record.company,+ position: kind === "eyebrow" ? record.position.toUpperCase() : record.position,+ location: kind === "eyebrow" ? record.location.toUpperCase() : record.location,+ period: record.period,+ description: record.description.replace(/ style="[^"]*"/g, "").replace(/<\/?(?:strong|em|span)[^>]*>/g, ""),+ });+ }+ if (kind.startsWith("custom")) {+ expect(saved.data.customSections).toHaveLength(1);+ expect(saved.data.customSections[0]?.items[0]?.content).toBe(source.customSections[0]?.items[0]?.content);+ expect(saved.data.basics.email).toBe(source.basics.email);+ }+ },+ 60000,+);++it("preserves external PDF word separators and adjacent split words", async () => {+ const file = new File(+ [readFileSync(new URL("./fixtures/external-word-runs.pdf", import.meta.url))],+ "external-word-runs.pdf",+ );+ create.mockClear();+ await call(importResumeFile, { file, format: "PDF" }, { context: { locale: "en-US", reqHeaders: new Headers() } });+ const saved = create.mock.calls[0]?.[0] as { data: ResumeData };+ expect(saved.data.sections.experience.items).toHaveLength(1);+ expect(saved.data.sections.experience.items[0]).toMatchObject({+ company: "External Labs",+ position: "Engineer",+ location: "Remote",+ period: "2020 – 2021",+ description: "<ul><li>Built Important Systems for customers.</li></ul><p>Interoperable tools.</p>",+ });+});diff --git a/packages/api/src/features/resume/imports.ts b/packages/api/src/features/resume/imports.tsindex 7544452b0..ec629c1d1 100644--- a/packages/api/src/features/resume/imports.ts+++ b/packages/api/src/features/resume/imports.ts@@ -26,18 +26,16 @@ export const importResumeFile = protectedProcedurelet data;try {if (input.format === "PDF") {- const [{ extractPdf }, { documentToLines }, { buildExtractedDocument }, { parseResumeText }] =- await Promise.all([- import("./pdf-analysis"),- import("@reactive-resume/import/pdf-lines"),- import("@reactive-resume/resume/ats-pdf"),- import("@reactive-resume/import/plain-text"),- ]);+ const [{ extractPdf }, { parsePdfResume }, { buildExtractedDocument }] = await Promise.all([+ import("./pdf-analysis"),+ import("@reactive-resume/import/pdf-lines"),+ import("@reactive-resume/resume/ats-pdf"),+ ]);const raw = await extractPdf(input.file, signal, 0);if (raw.truncated) throw new Error("The PDF has too many pages to import completely.");- const lines = documentToLines(buildExtractedDocument(raw));- if (lines.length === 0) throw new Error("The PDF has no readable text layer.");- data = parseResumeText(lines.join("\n"));+ const document = buildExtractedDocument(raw);+ if (document.lines.length === 0) throw new Error("The PDF has no readable text layer.");+ data = parsePdfResume(document);} else if (input.format === "LINKEDIN") {const { parseLinkedInExport } = await import("@reactive-resume/import/linkedin");data = parseLinkedInExport(new Uint8Array(await input.file.arrayBuffer()));diff --git a/packages/import/src/html.test.ts b/packages/import/src/html.test.tsnew file mode 100644index 000000000..2ea5202a2--- /dev/null+++ b/packages/import/src/html.test.ts@@ -0,0 +1,26 @@+import { describe, expect, it } from "vite-plus/test";+import { BULLET_PATTERN, toHtmlBlocks } from "./html";++describe("plain-text HTML blocks", () => {+ it("preserves paragraphs around a single bullet and escapes source markup", () => {+ expect(toHtmlBlocks(["Intro.", "•Built <systems> that 25% more users can use.", "Conclusion."])).toBe(+ "<p>Intro.</p><ul><li>Built <systems> that 25% more users can use.</li></ul><p>Conclusion.</p>",+ );+ });+ it("does not attach lowercase or digit-led prose to a preceding bullet", () => {+ expect(toHtmlBlocks(["•Built tools", "references available on request", "3 offices worldwide"])).toBe(+ "<ul><li>Built tools</li></ul><p>references available on request</p><p>3 offices worldwide</p>",+ );+ });+ it.each(["•Built it", "◦Built it", "‣Built it", "·Built it", "- Built it", "* Built it"])(+ "recognizes marker in %s",+ (text) => {+ expect(text.replace(BULLET_PATTERN, "")).toBe("Built it");+ },+ );+ it("does not mistake punctuation inside a word for a bullet", () => {+ expect(toHtmlBlocks(["-based systems", "*pointer", "—word"])).toBe(+ "<p>-based systems</p><p>*pointer</p><p>—word</p>",+ );+ });+});diff --git a/packages/import/src/html.ts b/packages/import/src/html.tsindex 342653ab2..c3921d2ec 100644--- a/packages/import/src/html.ts+++ b/packages/import/src/html.ts@@ -15,19 +15,35 @@ export function arrayToHtmlList(items: string[]): string {return `<ul>${items.map((item) => `<li>${escapeHtml(item)}</li>`).join("")}</ul>`;}-export const BULLET_PATTERN = /^\s*[-–—•*◦‣·]\s+/;+// Glyph markers need no space; punctuation markers do, so "-based" remains prose.+export const BULLET_PATTERN = /^\s*(?:[•◦‣·]\s*|[-–—*]\s+)/;-/**- * Converts plain-text lines into escaped HTML: a <ul> when most lines are bullets, otherwise one <p> per line.- */+/** Preserves prose and contiguous bullet lists, including a single bullet. */+export function toHtmlBlocks(lines: string[]): string {+ const blocks: string[] = [];+ let bullets: string[] = [];+ const flush = () => {+ if (bullets.length) blocks.push(arrayToHtmlList(bullets));+ bullets = [];+ };+ for (const line of lines.map((value) => value.trim()).filter(Boolean)) {+ if (BULLET_PATTERN.test(line)) {+ bullets.push(line.replace(BULLET_PATTERN, ""));+ } else {+ flush();+ blocks.push(`<p>${escapeHtml(line)}</p>`);+ }+ }+ flush();+ return blocks.join("");+}++/** LinkedIn's historical rule treats predominantly bulleted descriptions as a list. */export function toHtml(lines: string[]): string {const cleaned = lines.map((line) => line.trim()).filter(Boolean);- if (cleaned.length === 0) return "";-const bulleted = cleaned.filter((line) => BULLET_PATTERN.test(line));if (bulleted.length >= 2 && bulleted.length * 2 >= cleaned.length) {return arrayToHtmlList(cleaned.map((line) => line.replace(BULLET_PATTERN, "")));}-return cleaned.map((line) => `<p>${escapeHtml(line.replace(BULLET_PATTERN, ""))}</p>`).join(""); // nosemgrep}diff --git a/packages/import/src/pdf-geometry.test.ts b/packages/import/src/pdf-geometry.test.tsnew file mode 100644index 000000000..2b4e1054a--- /dev/null+++ b/packages/import/src/pdf-geometry.test.ts@@ -0,0 +1,34 @@+import { expect, it } from "vite-plus/test";+import { GeometryIndex, GeometryLimit } from "./pdf-geometry";+const line = (y: number, page = 1) => ({+ page,+ x: 10,+ y,+ width: 100,+ height: 10,+ text: "field",+ spans: [],+ fontSize: 10,+ fontRef: "body",+ meanStreamIndex: 0,+});+it("indexes page-local y windows rather than scanning other pages", () => {+ const fields = Array.from({ length: 8000 }, (_, i) => line((i % 100) * 10, Math.floor(i / 100) + 1));+ const index = new GeometryIndex(fields);+ expect(index.near(line(100, 4), 10, 10).map((row) => row.y)).toEqual([90, 100, 110]);+ expect(index.visits).toBe(3);+});+it("bounds nested candidate work deterministically across shared indexes", () => {+ const index = new GeometryIndex(Array.from({ length: 100 }, (_, i) => line(i)));+ const spans = new GeometryIndex(index.fields, index.budget);+ let queries = 0;+ expect(() => {+ for (let iteration = 0; iteration < 4000; iteration++) {+ index.all();+ spans.all();+ queries++;+ }+ }).toThrow(GeometryLimit);+ expect(queries).toBe(2000);+ expect(index.visits).toBe(400100);+});diff --git a/packages/import/src/pdf-geometry.ts b/packages/import/src/pdf-geometry.tsnew file mode 100644index 000000000..55bea79b0--- /dev/null+++ b/packages/import/src/pdf-geometry.ts@@ -0,0 +1,71 @@+import type { ExtractedDocument } from "@reactive-resume/resume/ats-pdf";++type Line = ExtractedDocument["lines"][number];++export class GeometryLimit extends Error {}++/** Counts candidate visits, not elapsed time: synchronous work cannot be interrupted by an abort timer. */+export class GeometryIndex {+ private readonly pages = new Map<number, Line[]>();+ get visits() {+ return this.budget.visits;+ }++ constructor(+ readonly fields: readonly Line[],+ readonly budget = { remaining: 400_000, visits: 0 },+ ) {+ for (const field of fields) {+ const page = this.pages.get(field.page) ?? [];+ page.push(field);+ this.pages.set(field.page, page);+ }+ for (const page of this.pages.values()) page.sort((a, b) => a.y - b.y || a.x - b.x);+ }++ charge(visits: number) {+ this.budget.remaining -= visits;+ this.budget.visits += visits;+ if (this.budget.remaining < 0) throw new GeometryLimit(`candidate visits: ${this.budget.visits}`);+ }+ private take<T>(values: readonly T[]): readonly T[] {+ this.charge(values.length);+ return values;+ }++ all() {+ return this.take(this.fields);+ }++ page(number: number) {+ return this.take(this.pages.get(number) ?? []);+ }++ near(line: Line, before: number, after: number) {+ const page = this.pages.get(line.page) ?? [];+ const lower = (y: number) => {+ let left = 0;+ let right = page.length;+ while (left < right) {+ const middle = (left + right) >>> 1;+ if ((page[middle]?.y ?? Infinity) < y) left = middle + 1;+ else right = middle;+ }+ return left;+ };+ return this.take(page.slice(lower(line.y - before), lower(line.y + after + 0.001)));+ }+}++/** Bound preprocessing too, before any pairwise layout or annotation matching. */+export function allowsPdfGeometry(doc: ExtractedDocument): boolean {+ let pairs = 0;+ const links = new Map<number, number>();+ for (const link of doc.links ?? []) links.set(link.page, (links.get(link.page) ?? 0) + 1);+ for (const page of doc.pages) {+ const count = page.lines.reduce((n, line) => n + line.spans.length, 0) + (links.get(page.pageNumber) ?? 0);+ pairs += count * count;+ if (pairs > 1_000_000) return false;+ }+ return true;+}diff --git a/packages/import/src/pdf-lines.test.ts b/packages/import/src/pdf-lines.test.tsnew file mode 100644index 000000000..01e9fdfbc--- /dev/null+++ b/packages/import/src/pdf-lines.test.ts@@ -0,0 +1,103 @@+import type { RawExtraction } from "@reactive-resume/resume/ats-pdf";+import { expect, it } from "vite-plus/test";+import { buildExtractedDocument } from "@reactive-resume/resume/ats-pdf";+import { parsePdfResume } from "./pdf-lines";++type Cell = { text: string; x: number; y: number; font?: string };+function document(cells: Cell[]) {+ const raw: RawExtraction = {+ version: 1,+ file: { name: "external.pdf", sizeBytes: 1000, magicBytesOk: true },+ pageCount: 1,+ truncated: false,+ pages: [+ {+ pageNumber: 1,+ width: 595,+ height: 842,+ rotation: 0,+ operators: null,+ items: cells.map((c) => ({+ str: c.text,+ transform: [10, 0, 0, 10, c.x, 832 - c.y],+ width: c.text.length * 5,+ height: 10,+ fontRef: c.font ?? "body",+ hasEol: false,+ })),+ },+ ],+ fonts: [],+ links: [],+ metadata: {+ producer: null,+ creator: null,+ title: null,+ author: null,+ language: null,+ pdfVersion: null,+ isEncrypted: false,+ isXfa: false,+ isCollection: false,+ isTagged: false,+ hasAcroForm: false,+ },+ operatorsAvailable: false,+ };+ return buildExtractedDocument(raw);+}+const prefix: Cell[] = [+ { text: "Fictional Reviewer", x: 40, y: 20 },+ { text: "[email protected]", x: 40, y: 40 },+ { text: "Education", x: 40, y: 80, font: "heading" },+];+const first: Cell[] = [+ { text: "School Alpha", x: 40, y: 110, font: "strong" },+ { text: "Degree Alpha", x: 450, y: 110 },+ { text: "Area Alpha", x: 40, y: 130 },+ { text: "Place Alpha • 2010 – 2014", x: 385, y: 130 },+];+it("keeps an unassigned right-hand body cell in its record description", () => {+ const data = parsePdfResume(+ document([...prefix, ...first, { text: "Unassigned right-hand detail", x: 300, y: 165 }]),+ );+ expect(data.sections.education.items[0]).toMatchObject({+ school: "School Alpha",+ degree: "Degree Alpha",+ area: "Area Alpha",+ location: "Place Alpha",+ period: "2010 – 2014",+ description: "<p>Unassigned right-hand detail</p>",+ });+});+it("declines destructive projection when a later title pair lacks a corroborated second row", () => {+ const data = parsePdfResume(+ document([+ ...prefix,+ ...first,+ { text: "School Beta", x: 40, y: 170, font: "strong" },+ { text: "Degree Beta", x: 455, y: 170 },+ { text: "Uncertain external header and prose", x: 40, y: 195 },+ ]),+ );+ const stored = JSON.stringify(data.sections.education.items);+ for (const text of [+ "School Alpha",+ "Degree Alpha",+ "Area Alpha",+ "Place Alpha",+ "2010 – 2014",+ "School Beta",+ "Degree Beta",+ "Uncertain external header and prose",+ ])+ expect(stored).toContain(text);+ expect(data.sections.education.items[0]?.area).toBe("");+});+it("leaves identical-typography external records with the generic parser and retains their text", () => {+ const data = parsePdfResume(document([...prefix, ...first.map((cell) => ({ ...cell, font: "body" }))]));+ const stored = JSON.stringify(data.sections.education.items);+ for (const text of ["School Alpha", "Degree Alpha", "Area Alpha", "Place Alpha", "2010 – 2014"])+ expect(stored).toContain(text);+ expect(data.sections.education.items[0]?.area).toBe("");+});diff --git a/packages/import/src/pdf-lines.ts b/packages/import/src/pdf-lines.tsindex 722397cb8..394f9b703 100644--- a/packages/import/src/pdf-lines.ts+++ b/packages/import/src/pdf-lines.ts@@ -1,10 +1,25 @@import type { ExtractedDocument } from "@reactive-resume/resume/ats-pdf";+import type { ResumeData } from "@reactive-resume/schema/resume/data";+import { columnSegments } from "@reactive-resume/resume/ats-pdf";+import { parseResumeData } from "@reactive-resume/schema/resume/data";+import { readLegacyDates } from "@reactive-resume/schema/resume/dates";+import { generateId } from "@reactive-resume/utils/string";+import { BULLET_PATTERN, toHtmlBlocks } from "./html";+import { allowsPdfGeometry, GeometryIndex, GeometryLimit } from "./pdf-geometry";+import {+ hasContactDetails,+ isContactLine,+ knownHeading,+ parseResumeText,+ standaloneDate,+ findPeriod,+} from "./plain-text";/*** Turns a PDF into the plain lines `parseResumeText` reads.** The extraction itself is the ATS checker's — same worker configuration, same size and password- * guards, same font-relative line clustering and column-gutter detection. Only the joining differs:+ * guards and font-relative line clustering. Import-specific ordering keeps body columns separate:* the ATS text is prose, while the importer splits header rows on runs of two or more spaces, so a* tabbed "Company Role Location" has to survive as three fields rather than one phrase.*/@@ -14,13 +29,26 @@ const FIELD_GAP_RATIO = 1.5;/** Narrower gaps are still a word break; matches the ratio the ATS extractor joins prose with. */const SPACE_GAP_RATIO = 0.25;-/** The evidence the ATS layout rules require before calling a page two-column. */-const GUTTER_COVERAGE = 0.85;-const GUTTER_SPLIT_RATIO = 0.25;-type PageGeometry = ExtractedDocument["pages"][number];+type ImportPage = PageGeometry & { identityRailX?: number };+type TextLine = PageGeometry["lines"][number];type TextSpan = PageGeometry["lines"][number]["spans"][number];+function fieldsOf(line: TextLine): TextLine[] {+ return columnSegments(line, FIELD_GAP_RATIO).flatMap((field) => {+ const [label, body] = field.spans;+ if (+ !label ||+ !body ||+ !knownHeading(label.text) ||+ label.fontRef === body.fontRef ||+ body.x - label.x - label.width < Math.max(label.fontSize, body.fontSize) * 0.8+ )+ return [field];+ return [lineWithSpans(field, [label]), lineWithSpans(field, field.spans.slice(1))];+ });+}+function joinSpans(spans: readonly TextSpan[]): string {let text = "";let previous: TextSpan | null = null;@@ -31,7 +59,8 @@ function joinSpans(spans: readonly TextSpan[]): string {const fontSize = Math.max(previous.fontSize, span.fontSize, 1);if (gap > FIELD_GAP_RATIO * fontSize) text += " ";- else if (gap > SPACE_GAP_RATIO * fontSize && !/\s$/.test(text) && !/^\s/.test(span.text)) text += " ";+ else if ((span.spaceBefore || gap > SPACE_GAP_RATIO * fontSize) && !/\s$/.test(text) && !/^\s/.test(span.text))+ text += " ";}text += span.text;@@ -41,36 +70,1736 @@ function joinSpans(spans: readonly TextSpan[]): string {return text.trim();}-/** Mid-point of a convincing gutter, or null on a page that reads as one column. */-function columnSplitX(page: PageGeometry): number | null {+type RecordHeader = { company: string; position: string; location: string; period: string };+type ImportLine = TextLine & {+ heading: boolean;+ identity?: boolean;+ stream: string;+ right?: number | undefined;+ recordDate?: boolean;+ record?: RecordHeader;+};++function lineWithSpans(source: TextLine, spans: readonly TextSpan[]): TextLine {+ const first = spans[0];+ const last = spans.at(-1);+ const dominant = spans.reduce<TextSpan | undefined>(+ (best, span) => (!best || span.text.length > best.text.length ? span : best),+ undefined,+ );+ return {+ ...source,+ spans,+ text: joinSpans(spans),+ x: first?.x ?? source.x,+ y: spans.reduce((y, span) => Math.min(y, span.y), first?.y ?? source.y),+ width: first && last ? last.x + last.width - first.x : 0,+ height: spans.reduce((height, span) => Math.max(height, span.height), 0),+ fontRef: dominant?.fontRef ?? source.fontRef,+ fontSize: dominant?.fontSize ?? source.fontSize,+ };+}++const annotationCache = new WeakMap<ExtractedDocument, WeakMap<TextSpan, string>>();+function annotationTarget(doc: ExtractedDocument, span: TextSpan): string | undefined {+ let targets = annotationCache.get(doc);+ if (!targets) {+ targets = new WeakMap();+ const links = new Map<number, NonNullable<ExtractedDocument["links"]>[number][]>();+ for (const link of doc.links ?? []) {+ const page = links.get(link.page) ?? [];+ page.push(link);+ links.set(link.page, page);+ }+ for (const page of doc.pages)+ for (const cell of page.lines.flatMap((line) => line.spans)) {+ const x = cell.x + cell.width / 2;+ const y = page.height - cell.y - cell.height / 2;+ const link = links+ .get(page.pageNumber)+ ?.find((link) => x >= link.rect[0] && x <= link.rect[2] && y >= link.rect[1] && y <= link.rect[3]);+ if (link?.url) targets.set(cell, link.url);+ }+ annotationCache.set(doc, targets);+ }+ return targets.get(span);+}++/** Separate a corroborated identity rail before its name and an adjacent label become one field. */+function separateIdentityRail(page: PageGeometry): ImportPage {const gutter = page.gutter;- if (!gutter || gutter.coverage < GUTTER_COVERAGE || gutter.splitRatio < GUTTER_SPLIT_RATIO) return null;+ const spans = page.lines.flatMap((line) => line.spans);+ const candidates = gutter && gutter.coverage >= 0.85 ? [gutter.x + gutter.width / 2] : [];+ let edge = 0;+ for (const span of [...spans].sort((a, b) => a.x - b.x)) {+ if (edge && span.x - edge >= Math.max(8, span.fontSize * 0.8)) candidates.push((edge + span.x) / 2);+ edge = Math.max(edge, span.x + span.width);+ }+ for (const x of candidates) {+ if (spans.some((span) => span.x < x && span.x + span.width > x)) continue;+ const sides = [spans.filter((span) => span.x < x), spans.filter((span) => span.x >= x)];+ const rail = sides.some((side, index) => {+ const body = sides[1 - index] ?? [];+ const top = side.reduce((y, span) => Math.min(y, span.y), Infinity);+ const bodyTop = body.reduce((y, span) => Math.min(y, span.y), Infinity);+ return (+ hasContactDetails(side.map((span) => span.text).join("")) &&+ !side.some((span) => standaloneDate(span.text) || BULLET_PATTERN.test(span.text) || knownHeading(span.text)) &&+ body.length > 1 &&+ Math.abs(top - bodyTop) < side.reduce((height, span) => Math.max(height, span.height), 0) * 2+ );+ });+ if (!rail) continue;+ return {+ ...page,+ identityRailX: x,+ lines: page.lines.flatMap((line) =>+ sides+ .map((_, index) => line.spans.filter((span) => span.x >= x === (index === 1)))+ .filter((part) => part.length)+ .map((part) => lineWithSpans(line, part)),+ ),+ };+ }+ return page;+}- return gutter.x + gutter.width / 2;+/** Rejoin a label wrapped in a narrow heading rail before testing its typography. */+function joinWrappedLabels(page: PageGeometry): PageGeometry {+ const spans = page.lines.flatMap((line) => line.spans);+ const replacements = new Map<TextSpan, TextSpan>();+ const removed = new Set<TextSpan>();+ for (const span of spans) {+ if (removed.has(span) || knownHeading(span.text)) continue;+ const next = spans+ .filter(+ (other) =>+ other.y > span.y &&+ Math.abs(other.x - span.x) < 1 &&+ other.fontRef === span.fontRef &&+ Math.abs(other.fontSize - span.fontSize) < 1,+ )+ .sort((a, b) => a.y - b.y)[0];+ if (!next || next.y - span.y > span.fontSize * 2 || !knownHeading(span.text + next.text)) continue;+ if (!spans.some((peer) => Math.abs(peer.y - span.y) < span.fontSize && peer.x > span.x + span.width)) continue;+ replacements.set(span, { ...span, text: span.text + next.text });+ removed.add(next);+ }+ return {+ ...page,+ lines: page.lines.flatMap((line) => {+ const kept = line.spans.filter((span) => !removed.has(span)).map((span) => replacements.get(span) ?? span);+ return kept.length ? [lineWithSpans(line, kept)] : [];+ }),+ };}-/**- * Lines grouped by baseline alone interleave a sidebar with the body, which drops a whole work- * history into the skills section. On a two-column page each column is read out in full instead.- */-function pageToLines(page: PageGeometry): string[] {- const splitX = columnSplitX(page);- if (splitX === null) return page.lines.map((line) => joinSpans(line.spans));+/** A section label has consistent typography. Body words that happen to be aliases are not labels. */+function headingTest(doc: ExtractedDocument) {+ const headingKeys = new Map<string, ReturnType<typeof knownHeading>>();+ const headingKey = (text: string) => {+ if (headingKeys.has(text)) return headingKeys.get(text) ?? null;+ const key = knownHeading(text);+ headingKeys.set(text, key);+ return key;+ };+ const fields = doc.lines.flatMap(fieldsOf);+ const index = new GeometryIndex(fields);+ const spanIndex = new GeometryIndex(+ doc.lines.flatMap((line) => line.spans.map((span) => lineWithSpans(line, [span]))),+ index.budget,+ );+ const sharesRow = (a: TextLine, b: TextLine) =>+ Math.min(a.y + a.height, b.y + b.height) - Math.max(a.y, b.y) > Math.min(a.height, b.height) * 0.5;+ const overlaps = (a: TextLine, b: TextLine) => Math.min(a.x + a.width, b.x + b.width) > Math.max(a.x, b.x);+ const isolationCache = new Map<string, boolean>();+ const cacheKey = (line: TextLine) => `${line.page}:${line.x}:${line.y}:${line.width}:${line.text}`;+ const isolatedRaw = (line: PageGeometry["lines"][number], overlap = false) => {+ let before: PageGeometry["lines"][number] | undefined;+ let after: PageGeometry["lines"][number] | undefined;+ for (const other of index.page(line.page)) {+ if (+ other.page !== line.page ||+ (Math.abs(other.x - line.x) > Math.max(line.fontSize, other.fontSize) &&+ (!overlap || Math.min(other.x + other.width, line.x + line.width) <= Math.max(other.x, line.x)))+ )+ continue;+ if (other.y < line.y - 2 && (!before || other.y > before.y)) before = other;+ if (other.y > line.y + 2 && (!after || other.y < after.y)) after = other;+ }+ if (!before) return true;+ const gapBefore = line.y - before.y - before.height;+ return after ? gapBefore > after.y - line.y - line.height + 2 : gapBefore > before.height + line.height;+ };+ const isolated = (line: TextLine, overlap = false) => {+ const key = cacheKey(line) + overlap;+ const value = isolationCache.get(key);+ if (value !== undefined) return value;+ const result = isolatedRaw(line, overlap);+ isolationCache.set(key, result);+ return result;+ };+ const contacts = index+ .page(1)+ .filter(+ (line) =>+ line.page === 1 &&+ (isContactLine(line.text) || line.spans.filter((span) => isContactLine(span.text)).length > 1),+ )+ .filter(+ (contact) =>+ !index+ .all()+ .some(+ (label) =>+ label.page === 1 &&+ overlaps(label, contact) &&+ label.y < contact.y - 2 &&+ !isContactLine(label.text) &&+ index.page(1).some((before) => before.page === 1 && before.y < label.y - 2 && overlaps(before, label)) &&+ isolated(label, true) &&+ !index+ .all()+ .some((peer) => peer.page === 1 && Math.abs(peer.y - label.y) < 2 && isContactLine(peer.text)),+ ),+ );+ const names = index+ .all()+ .filter(+ (line) =>+ line.page === 1 &&+ !headingKey(line.text) &&+ !isContactLine(line.text) &&+ !index.page(1).some((peer) => peer.page === line.page && Math.abs(peer.y - line.y) < 2 && peer.x < line.x) &&+ !index.page(1).some((before) => before.page === 1 && before.y < line.y - 2 && overlaps(before, line)) &&+ index+ .all()+ .some(+ (heading) =>+ heading.page === 1 &&+ ((!BULLET_PATTERN.test(heading.text) && headingKey(heading.text) && isolated(heading)) ||+ (heading.text.length <= 48 && /^\p{Lu}[\p{Lu}\s]+$/u.test(heading.text))) &&+ line.fontSize > heading.fontSize * 1.08,+ ),+ );+ const legacyIdentity = (line: TextLine) =>+ contacts.some((contact) => contact.spans.some((span) => line.spans.includes(span))) ||+ contacts.some(+ (contact) =>+ line.page === 1 &&+ ((line.y < contact.y && overlaps(line, contact)) ||+ (!headingKey(line.text) &&+ Math.abs(line.y - contact.y) < 2 &&+ (doc.pages.find((page) => page.pageNumber === 1) as ImportPage)?.identityRailX === undefined)) &&+ !index+ .all()+ .some(+ (between) =>+ between.page === 1 &&+ between.y > line.y &&+ between.y < contact.y &&+ overlaps(between, line) &&+ headingKey(between.text),+ ),+ ) ||+ names.some(+ (name) =>+ line.page === 1 &&+ overlaps(line, name) &&+ line.fontRef === name.fontRef &&+ Math.abs(line.fontSize - name.fontSize) < 1,+ );++ const owned = new Set<TextSpan>();+ let identityColumns: { x: number; top: number } | null = null;+ const page = doc.pages[0];+ if (page) {+ const first = index.all().filter((line) => line.page === 1);+ const known = (line: TextLine) =>+ Boolean(headingKey(line.text)) &&+ !BULLET_PATTERN.test(line.text) &&+ (isolated(line) || line.fontSize > (doc.modalFontSize ?? line.fontSize) * 1.08) &&+ !first.some((other) => headingKey(other.text) === headingKey(line.text) && other.fontSize > line.fontSize * 1.08);+ const columns = bodyColumns(page, known, index);+ identityColumns = columns;+ const groupOf = (line: TextLine) =>+ !columns || line.y < columns.top ? "prefix" : line.x < columns.x ? "left" : "right";+ const groups = new Map<string, TextLine[]>();+ for (const line of first) {+ const key = groupOf(line);+ const group = groups.get(key) ?? [];+ group.push(line);+ groups.set(key, group);+ }+ for (const group of groups.values()) {+ const blocks: TextLine[][] = [];+ let block: TextLine[] = [];+ let bottom = -Infinity;+ const flush = () => {+ if (block.length) blocks.push(block);+ block = [];+ bottom = -Infinity;+ };+ for (const line of group.sort((a, b) => a.y - b.y || a.x - b.x)) {+ if (known(line)) {+ flush();+ continue;+ }+ const height = Math.max(line.height, block.at(-1)?.height ?? 0);+ const previous = block.at(-1);+ const contactRow =+ previous &&+ Math.abs(line.fontSize - previous.fontSize) < 1 &&+ line.y - previous.y <= line.fontSize * 2.5 &&+ group.some((peer) => Math.abs(peer.y - line.y) < 2 && peer.spans.some((span) => annotationTarget(doc, span)));+ if (line.y - bottom > height && !contactRow) flush();+ block.push(line);+ bottom = Math.max(bottom, line.y + line.height);+ }+ flush();+ const limit = group+ .filter((line) => standaloneDate(line.text) || BULLET_PATTERN.test(line.text))+ .reduce((y, line) => Math.min(y, line.y), Infinity);+ const contact = blocks.find(+ (rows) =>+ rows.every((row) => row.y < limit) &&+ rows.some(+ (row) =>+ isContactLine(row.text) ||+ row.spans.some((span) => /^(?:mailto:|tel:)/.test(annotationTarget(doc, span) ?? "")),+ ),+ );+ if (contact) {+ const seed = contact.find(+ (row) =>+ isContactLine(row.text) ||+ row.spans.some((span) => /^(?:mailto:|tel:)/.test(annotationTarget(doc, span) ?? "")),+ );+ const last = contact.at(-1);+ if (seed && last) {+ let bottom = last.y;+ for (const row of group.filter((row) => row.y > bottom).sort((a, b) => a.y - b.y)) {+ if (+ known(row) ||+ standaloneDate(row.text) ||+ Math.abs(row.x - seed.x) > seed.fontSize * 0.25 ||+ row.y - bottom > seed.fontSize * 2.5+ )+ break;+ contact.push(row);+ bottom = row.y;+ }+ }+ }+ for (const rows of blocks)+ if (+ rows === contact ||+ (rows.every((row) => row.y < limit) &&+ rows.some((row) => names.some((name) => name.spans.some((span) => row.spans.includes(span)))))+ )+ for (const row of rows) for (const span of row.spans) owned.add(span);+ }+ }+ const sectionBefore = (line: TextLine) =>+ index+ .page(line.page)+ .some(+ (label) =>+ headingKey(label.text) &&+ (label.fontSize > (doc.modalFontSize ?? label.fontSize) * 1.08 || isolated(label)) &&+ label.y < line.y - 2 &&+ overlaps(label, line),+ );+ const identityRaw = (line: TextLine) =>+ !headingKey(line.text) &&+ !standaloneDate(line.text) &&+ (line.spans.every((span) => owned.has(span)) ||+ (!sectionBefore(line) &&+ legacyIdentity(line) &&+ (!identityColumns ||+ contacts.some(+ (contact) =>+ contact.page === line.page &&+ line.y < contact.y &&+ overlaps(line, contact) &&+ line.fontSize > contact.fontSize + 0.1,+ ))));+ const identityCache = new Map<string, boolean>();+ const identity = (line: TextLine) => {+ const key = cacheKey(line);+ const value = identityCache.get(key);+ if (value !== undefined) return value;+ const result = identityRaw(line);+ identityCache.set(key, result);+ return result;+ };+ const entryHeader = (line: TextLine) => {+ const paired = index+ .near(line, line.fontSize * 4, 2)+ .filter((other) => sameStream(line, other))+ .some(+ (lead) =>+ lead.page === line.page &&+ lead.y <= line.y + 2 &&+ line.y - lead.y < lead.fontSize * 4 &&+ index+ .near(lead, 2, 2)+ .filter((other) => sameStream(lead, other))+ .some(+ (place) =>+ place.page === lead.page &&+ Math.abs(place.y - lead.y) < 2 &&+ place.x > lead.x + lead.width + lead.fontSize &&+ place.fontRef !== lead.fontRef &&+ index+ .near(lead, 0, lead.fontSize * 4)+ .filter((other) => sameStream(lead, other))+ .some(+ (role) =>+ role.page === lead.page &&+ role.y > lead.y + 2 &&+ role.y - lead.y < lead.fontSize * 4 &&+ Math.abs(role.x - lead.x) < lead.fontSize * 0.2 &&+ role.fontRef === place.fontRef &&+ !BULLET_PATTERN.test(role.text) &&+ index+ .near(role, 0, role.fontSize * 2)+ .filter((other) => sameStream(role, other))+ .some(+ (body) =>+ body.page === lead.page &&+ body.y > role.y &&+ body.y - role.y < role.fontSize * 2 &&+ BULLET_PATTERN.test(body.text),+ ),+ ) &&+ ((Math.abs(line.y - lead.y) < 2 &&+ line.x >= lead.x - lead.fontSize * 0.2 &&+ line.x + line.width <= place.x + place.width + lead.fontSize * 0.2) ||+ Math.abs(line.x - lead.x) < lead.fontSize * 0.2),+ ),+ );+ if (paired) return true;+ return spanIndex+ .near(line, line.fontSize * 6, line.fontSize * 6)+ .filter((date) => sameStream(line, date))+ .some((date) => {+ if (!standaloneDate(date.text)) return false;+ index.charge(line.spans.length);+ return line.spans.some((part) => {+ const size = Math.max(part.fontSize, date.fontSize);+ if (Math.abs(part.y - date.y) - Math.min(part.height, date.height) > size * 4) return false;+ const cell = lineWithSpans(line, [part]);+ if (+ spanIndex+ .near(cell, Math.max(0, part.y - date.y), Math.max(0, date.y - part.y))+ .some(+ (middle) =>+ middle.y > Math.min(part.y, date.y) + 2 &&+ middle.y < Math.max(part.y, date.y) - 2 &&+ Math.abs(middle.x - part.x) < size &&+ !isContactLine(middle.text),+ )+ )+ return false;+ return (+ Math.abs(part.x + part.width - date.x - date.width) < size ||+ spanIndex+ .near(date, 2, 2)+ .some(+ (lead) =>+ lead.spans[0] !== date.spans[0] && Math.abs(lead.x - part.x) < size && !isContactLine(lead.text),+ )+ );+ });+ });+ };+ const styles = new Map<string, Set<string>>();+ const styleOf = (line: PageGeometry["lines"][number]) => `${line.fontRef}:${Math.round(line.fontSize)}`;+ for (const line of fields) {+ const key = headingKey(line.text);+ if (!key) continue;+ const style = styleOf(line);+ const keys = styles.get(style) ?? new Set<string>();+ keys.add(key);+ styles.set(style, keys);+ }+ const anchored = new Set(+ fields+ .filter(+ (line) =>+ headingKey(line.text) && (line.fontSize > (doc.modalFontSize ?? line.fontSize) * 1.08 || isolated(line)),+ )+ .map(styleOf),+ );+ const streamColumns = new Map<number, { x: number; top: number } | null>();+ const sameStream = (a: TextLine, b: TextLine) => {+ if (a.page !== b.page) return false;+ if (!streamColumns.has(a.page)) {+ const page = doc.pages.find((page) => page.pageNumber === a.page);+ streamColumns.set(+ a.page,+ page+ ? bodyColumns(+ page,+ (line) => Boolean(headingKey(line.text)) || (anchored.has(styleOf(line)) && isolated(line)),+ index,+ )+ : null,+ );+ }+ const cut = streamColumns.get(a.page);+ return !cut || a.y < cut.top || b.y < cut.top || a.x < cut.x === b.x < cut.x;+ };+ const mostKeys = Array.from(styles.values()).reduce((most, keys) => Math.max(most, keys.size), 0);+ const test = (line: PageGeometry["lines"][number]) => {+ if (isContactLine(line.text) || identity(line) || BULLET_PATTERN.test(line.text)) return false;+ const consistent = (styles.get(styleOf(line))?.size ?? 0) >= Math.max(1, mostKeys);+ const larger =+ line.fontSize > (doc.modalFontSize ?? line.fontSize) * 1.08 ||+ doc.lines.some(+ (row) =>+ row.page === line.page &&+ row.y > line.y &&+ row.y - line.y < line.fontSize * 6 &&+ row.x <= line.x &&+ row.x + row.width >= line.x + line.width &&+ dateSpans(row).length &&+ line.fontSize > row.fontSize * 1.08,+ );+ if (+ headingKey(line.text) &&+ index+ .all()+ .some(+ (other) =>+ headingKey(other.text) === headingKey(line.text) &&+ other.fontSize > line.fontSize * 1.08 &&+ isolated(other),+ )+ )+ return false;+ const distinct =+ line.fontRef !== doc.modalFontRef || Math.abs(line.fontSize - (doc.modalFontSize ?? line.fontSize)) > 1;+ if (headingKey(line.text))+ return (+ larger ||+ (consistent && anchored.has(styleOf(line)) && (distinct || isolated(line))) ||+ (/^[A-Z][A-Z\s]+$/.test(line.text) && isolated(line))+ );++ if (line.spans.some((span) => annotationTarget(doc, span)) && !anchored.has(styleOf(line))) return false;+ if (+ !anchored.has(styleOf(line)) &&+ !larger &&+ index+ .all()+ .some(+ (label) =>+ headingKey(label.text) &&+ (label.page < line.page || (label.page === line.page && label.y < line.y - 2)) &&+ (label.page === line.page ? sameStream(line, label) : overlaps(line, label)),+ )+ )+ return false;+ if (entryHeader(line)) return false;+ const letters = line.text.replace(/[^\p{L}]/gu, "");+ const capitalized =+ letters.length > 1 && letters === letters.toLocaleUpperCase() && letters !== letters.toLocaleLowerCase();+ const page = doc.pages.find((page) => page.pageNumber === line.page);+ const centered = page && Math.abs(line.x + line.width / 2 - page.width / 2) < line.fontSize;+ const followingBody = index+ .all()+ .some(+ (other) =>+ other.page === line.page &&+ (other.y > line.y + 2 ||+ (Math.abs(other.y - line.y) < 2 &&+ other.x > line.x + line.width &&+ (other.fontRef !== line.fontRef || Math.abs(other.fontSize - line.fontSize) > 1))) &&+ other.y < line.y + line.height * 4 &&+ (centered ||+ Math.min(other.x + other.width, line.x + line.width) > Math.max(other.x, line.x) ||+ (Math.abs(other.y - line.y) < 2 && other.x > line.x + line.width)) &&+ !identity(other),+ );+ const startsBody =+ !index+ .page(line.page)+ .some(+ (other) =>+ headingKey(other.text) &&+ other.y < line.y - 2 &&+ (!identityColumns || other.x < identityColumns.x === line.x < identityColumns.x),+ ) &&+ !index+ .all()+ .some(+ (other) =>+ (other.page < line.page || (other.page === line.page && other.y < line.y - 2)) &&+ overlaps(line, other) &&+ !identity(other),+ );+ const labelledRow = index+ .all()+ .some(+ (label) =>+ label.page === line.page &&+ label.x < line.x &&+ !hasContactDetails(label.text) &&+ sharesRow(label, line) &&+ ((headingKey(label.text) && anchored.has(styleOf(label))) ||+ (label.fontSize < line.fontSize &&+ isolated(label, true) &&+ !index+ .all()+ .some(+ (before) =>+ before.page === label.page &&+ before.y < label.y - 2 &&+ overlaps(before, label) &&+ !identity(before),+ ))) &&+ !index+ .all()+ .some(+ (body) =>+ body.page === line.page &&+ body.y > label.y + 2 &&+ overlaps(body, label) &&+ !headingKey(body.text) &&+ !identity(body),+ ),+ );+ const independent =+ (capitalized || startsBody || (consistent && anchored.has(styleOf(line)) && isolated(line, true))) &&+ followingBody &&+ (startsBody || isolated(line, true)) &&+ !labelledRow;+ if (/[.!?;,]$/.test(line.text.trim()) && !independent) return false;+ return (+ ((consistent && anchored.has(styleOf(line))) || independent) &&+ (independent || distinct || (capitalized && isolated(line))) &&+ (capitalized ? line.text.replace(/\s/g, "").length : line.text.length) <= 48 &&+ (line.text.split(/\s+/).length <= 6 || capitalized) &&+ (!/\d/.test(line.text) || independent)+ );+ };+ const testCache = new Map<string, boolean>();+ const cachedTest = (line: TextLine) => {+ const key = cacheKey(line);+ const value = testCache.get(key);+ if (value !== undefined) return value;+ const result = test(line);+ testCache.set(key, result);+ return result;+ };+ return Object.assign(cachedTest, { identity, index });+}++/** Find the actual empty band, not the heading's inset: sidebar text may start left of its heading. */+function bodyColumns(+ page: ImportPage,+ isHeading: (line: TextLine) => boolean,+ index: GeometryIndex,+): { x: number; top: number } | null {+ if (page.identityRailX !== undefined) return { x: page.identityRailX, top: 0 };+ const headings = page.lines.flatMap(fieldsOf).filter(isHeading);+ const headingSpans = new Set(headings.flatMap((heading) => heading.spans));+ const fields = page.lines.flatMap(fieldsOf);+ const dates = fields.filter((line) => standaloneDate(line.text) !== "");+ const bodySpans = new Set(+ fields+ .filter(+ (line) =>+ !hasContactDetails(line.text) &&+ !standaloneDate(line.text) &&+ !dates.some(+ (date) =>+ date.y > line.y &&+ date.y - line.y < line.height * 2 &&+ Math.abs(date.x + date.width - line.x - line.width) < line.fontSize,+ ),+ )+ .flatMap((line) => line.spans)+ .filter((span) => !headingSpans.has(span)),+ );+ const starts = new Set<number>([0]);+ // Aligned section labels provide evidence of a body below a full-width header.+ let band: { y: number; size: number; left: number; right: number } | null = null;+ for (const heading of headings) {+ if (!band || heading.y - band.y > Math.max(band.size, heading.fontSize) * 2) {+ band = { y: heading.y, size: heading.fontSize, left: heading.x, right: heading.x };+ } else {+ band.left = Math.min(band.left, heading.x);+ band.right = Math.max(band.right, heading.x);+ if (band.right - band.left > Math.max(band.size, heading.fontSize) * 2) starts.add(band.y);+ }+ }+ for (const top of starts) {+ const spans = page.lines+ .filter((line) => line.y >= top)+ .flatMap((line) => line.spans)+ .sort((a, b) => a.x - b.x);+ let edge = spans[0]?.x ?? 0;+ const cuts: number[] = [];+ for (const span of spans) {+ if (span.x - edge >= Math.max(8, span.fontSize * 0.8)) cuts.push((edge + span.x) / 2);+ edge = Math.max(edge, span.x + span.width);+ }+ for (const x of cuts) {+ index.charge(spans.length * (headings.length + 4));+ const rightOrigin = headings+ .filter((heading) => heading.x >= x)+ .reduce((edge, heading) => Math.min(edge, heading.x), Infinity);+ const dateCells = page.lines.flatMap((line) => line.spans).filter((span) => standaloneDate(span.text));+ index.charge(dateCells.length * fields.length);+ if (+ dateCells.some(+ (date) =>+ date.x >= x &&+ date.x + date.width < rightOrigin &&+ fields.some(+ (lead) =>+ lead.x < x &&+ Math.abs(lead.y + lead.height - date.y - date.height) < 2 &&+ !standaloneDate(lead.text) &&+ !hasContactDetails(lead.text),+ ),+ )+ )+ continue;+ // Two right-aligned place/date fields are a header, not an independent sidebar.+ const leftHeading = headings.some((heading) => heading.x < x);+ const rightHeading = headings.some((heading) => heading.x >= x);+ const headingSize = headings.reduce(+ (size, heading) => Math.min(size, heading.fontSize),+ Number.POSITIVE_INFINITY,+ );+ const identitySide = spans.some(+ (span) =>+ bodySpans.has(span) &&+ span.fontSize > headingSize * 1.08 &&+ (span.x < x ? !leftHeading : !rightHeading) &&+ headings.some((heading) => heading.x < x !== span.x < x && Math.abs(heading.y - span.y) < span.fontSize),+ );+ if (!(leftHeading && rightHeading) && !identitySide) continue;+ const sides = [spans.filter((span) => span.x < x), spans.filter((span) => span.x >= x)];+ // A heading rail (Bronzor) is one reading stream, not a sidebar. Both sides need body text.+ if (+ sides.every(+ (side) =>+ new Set(side.filter((span) => bodySpans.has(span)).map((span) => Math.round(span.y))).size >=+ (identitySide ? 1 : 2),+ )+ )+ return { x, top };+ }+ }+ return null;+}++function pageToLines(+ page: PageGeometry,+ isHeading: ReturnType<typeof headingTest>,+ previousColumns: { x: number; top: number } | null,+) {+ const makeLine = (source: PageGeometry["lines"][number], spans = source.spans): ImportLine => {+ const line = lineWithSpans(source, spans);+ return { ...line, heading: isHeading(line), identity: isHeading.identity(line), stream: "main" };+ };+ const carry =+ previousColumns &&+ page.lines.every((line) =>+ line.spans.every((span) => span.x >= previousColumns.x || span.x + span.width <= previousColumns.x),+ )+ ? { ...previousColumns, top: 0 }+ : null;+ const columns = bodyColumns(page, isHeading, isHeading.index) ?? carry;+ const streams: ImportLine[][] = columns ? [[], [], []] : [[]];+ for (const source of page.lines) {+ if (!columns) {+ streams[0]?.push(makeLine(source));+ continue;+ }+ if (source.y + source.height <= columns.top) {+ streams[0]?.push(makeLine(source));+ continue;+ }+ for (const [side, index] of [+ [false, 1],+ [true, 2],+ ] as const) {+ const spans = source.spans.filter((span) => span.x >= columns.x === side);+ if (spans.length) streams[index]?.push(makeLine(source, spans));+ }+ }+ // Header contact details belong before the sections, even when they sit above just one column.+ if (columns && page.pageNumber === 1) {+ for (const stream of streams.slice(1)) {+ const firstHeading = stream.findIndex((line) => fieldsOf(line).some((field) => knownHeading(field.text)));+ if (firstHeading > 0) streams[0]?.push(...stream.splice(0, firstHeading));+ }+ streams[0]?.sort((a, b) => a.y - b.y || a.x - b.x);+ }+ const expand = (stream: ImportLine[], kind: ImportLine["stream"]) =>+ stream+ .flatMap((line) => {+ const fields = fieldsOf(line);+ if (fields.length <= 1 || !fields.some(isHeading)) return [line];+ const result: ImportLine[] = [];+ let content: TextSpan[] = [];+ const flush = () => {+ if (content.length) result.push(makeLine(line, content));+ content = [];+ };+ for (const field of fields) {+ if (isHeading(field)) {+ flush();+ result.push(makeLine(field));+ } else content.push(...field.spans);+ }+ flush();+ return result;+ })+ .map((line) => ({+ ...line,+ stream: kind,+ right: columns && (kind === "sidebar") === (sidebarIndex === 1) ? columns.x : page.width - page.margins.right,+ }));+ const sidebarIndex = columns && columns.x < page.width / 2 ? 1 : 2;+ return {+ columns,+ prefix: columns ? expand(streams[0] ?? [], "prefix") : [],+ sidebar: columns ? expand(streams[sidebarIndex] ?? [], "sidebar") : [],+ main: expand(streams[columns ? 3 - sidebarIndex : 0] ?? [], "main"),+ };+}++const dateSpans = (line: TextLine) => line.spans.filter((span) => span.text.trim() && standaloneDate(span.text) !== "");++/** Parallel date cells corroborate item columns even when the gutter is narrower than a word-field gap. */+function splitExperienceItems(source: ImportLine[]): ImportLine[] {+ const out: ImportLine[] = [];+ for (let start = 0; start < source.length;) {+ const heading = source[start];+ if (!heading) {+ start++;+ continue;+ }+ out.push(heading);+ start++;+ if (!heading.heading || knownHeading(heading.text) !== "experience") continue;+ let end = start;+ while (end < source.length && !source[end]?.heading) end++;+ const run = source.slice(start, end);+ const paired = run.find((line) => dateSpans(line).length > 1);+ if (!paired) {+ out.push(...run);+ start = end;+ continue;+ }+ const dates = dateSpans(paired).sort((a, b) => a.x - b.x);+ const cuts: number[] = [];+ for (const date of dates.slice(0, -1)) {+ const after =+ run+ .filter((row) => row.page === paired.page && row.y <= paired.y)+ .flatMap((row) => row.spans)+ .filter((span) => span.x >= date.x + date.width - 0.1 && span !== date && !dateSpans(paired).includes(span))+ .sort((a, b) => a.x - b.x)[0] ??+ paired.spans.find((span) => span.x >= date.x + date.width - 0.1 && span !== date);+ if (after) cuts.push((date.x + date.width + after.x) / 2);+ }+ if (!cuts.length) {+ out.push(...run);+ start = end;+ continue;+ }+ const sideOf = (span: TextSpan) => cuts.filter((x) => span.x >= x).length;+ const origins = dates.map((date, i) =>+ run+ .filter((row) => row.page === paired.page && row.y <= paired.y)+ .flatMap((row) => row.spans)+ .filter((span) => sideOf(span) === i && !dateSpans(paired).includes(span))+ .reduce((x, span) => Math.min(x, span.x), date.x),+ );+ const bands: number[] = [];+ for (const [i, line] of run.entries()) {+ if (+ !dateSpans(line).length ||+ (dateSpans(line).length < 2 &&+ !line.spans.some(+ (span) =>+ !dateSpans(line).includes(span) &&+ Math.abs(span.x - (origins[sideOf(span)] ?? span.x)) < span.fontSize * 0.2,+ ))+ )+ continue;+ const previous = run[i - 1];+ const headerAbove =+ previous &&+ previous.page === line.page &&+ !BULLET_PATTERN.test(previous.text) &&+ !dateSpans(previous).length &&+ previous.spans.some((span) => Math.abs(span.x - (origins[sideOf(span)] ?? Infinity)) < span.fontSize * 0.2);+ let begin = headerAbove ? i - 1 : i;+ while (begin > 0) {+ const prior = run[begin - 1];+ if (!prior || prior.page !== line.page || BULLET_PATTERN.test(prior.text) || dateSpans(prior).length) break;+ begin--;+ }+ if (bands.at(-1) !== begin) bands.push(begin);+ }+ if (!bands.length) {+ out.push(...run);+ start = end;+ continue;+ }+ out.push(...run.slice(0, bands[0]));+ for (const [band, index] of bands.entries()) {+ const rows = run.slice(index, bands[band + 1] ?? run.length);+ for (let side = 0; side <= cuts.length; side++)+ for (const row of rows) {+ const spans = row.spans.filter((span) => sideOf(span) === side);+ if (!spans.length) continue;+ out.push({+ ...lineWithSpans(row, spans),+ heading: false,+ stream: `${row.stream}:items:${band}:${side}`,+ right: cuts[side] ?? row.right,+ });+ }+ }+ start = end;+ }+ return out;+}++/** Fold wrapped stacked fields by their left/right lanes before assigning their semantic roles. */+function foldStackedHeaders(source: ImportLine[]): ImportLine[] {+ const out: ImportLine[] = [];+ let experience = false;+ for (const line of source) {+ if (line.heading) experience = knownHeading(line.text) === "experience";+ if (experience && BULLET_PATTERN.test(line.text)) {+ let start = out.length;+ while (start > 0) {+ const prior = out[start - 1];+ if (+ !prior ||+ prior.heading ||+ prior.identity ||+ prior.stream !== line.stream ||+ BULLET_PATTERN.test(prior.text) ||+ prior.record+ )+ break;+ start--;+ }+ const rows = out.slice(start);+ const spans = rows.flatMap((row) => row.spans);+ const dates = spans.filter((span) => standaloneDate(span.text));+ const date = dates[0];+ const text = spans.filter((span) => !dates.includes(span));+ const left = text.reduce((x, span) => Math.min(x, span.x), Infinity);+ const leftRuns = text.filter((span) => Math.abs(span.x - left) < span.fontSize * 0.2);+ const lead = leftRuns.find((span) => span.fontRef !== (date?.fontRef ?? leftRuns.at(-1)?.fontRef));+ if (lead) {+ const first = rows.findIndex((row) => row.spans.includes(lead));+ const dateRow = date ? rows.findIndex((row) => row.spans.includes(date)) : -1;+ const headerRows = rows.slice(first, dateRow >= 0 ? dateRow + 1 : undefined);+ const headerSpans = headerRows.flatMap((row) => row.spans);+ const content = headerSpans.filter((span) => !dates.includes(span));+ const right = date ? date.x + date.width : (headerRows[0]?.right ?? Infinity);+ const place = content.filter(+ (span) => span.x > left + span.fontSize && Math.abs(span.x + span.width - right) < span.fontSize,+ );+ const strong = content.filter(+ (span) => span.fontRef === lead.fontRef && Math.abs(span.x - left) < span.fontSize * 0.2,+ );+ const regular = content.filter(+ (span) => span.fontRef !== lead.fontRef && Math.abs(span.x - left) < span.fontSize * 0.2,+ );+ const accounted = new Set([...place, ...strong, ...regular]);+ if (+ place.length &&+ strong.length &&+ regular.length &&+ content.every((span) => accounted.has(span)) &&+ !content.some((span) => span.text.includes(" · "))+ ) {+ const joined = (parts: TextSpan[]) => parts.map((span) => span.text).join(" ");+ const roleFirst =+ content.findIndex((span) => span === place[0]) > content.findIndex((span) => span === regular[0]);+ const record = {+ company: joined(roleFirst ? regular : strong),+ position: joined(roleFirst ? strong : regular),+ location: joined(place),+ period: date?.text.trim() ?? "",+ };+ const origin = headerRows[0];+ if (origin) {+ const tail = out.splice(start + first + headerRows.length);+ out.splice(start + first, headerRows.length);+ out.push({+ ...origin,+ text: `${record.company} ${record.position} ${record.location}`,+ spans: content,+ record,+ });+ if (date)+ out.push({+ ...origin,+ ...lineWithSpans(origin, [date]),+ page: headerRows.find((row) => row.spans.includes(date))?.page ?? origin.page,+ recordDate: true,+ });+ out.push(...tail);+ }+ }+ }+ }+ out.push(line);+ }+ return out;+}++/** Wrapped header dates stay with the adjacent header in their own item stream. */+function attachRecordDates(source: ImportLine[]): ImportLine[] {+ const lines: ImportLine[] = [];+ let experience = false;+ for (const line of source) {+ if (line.heading) experience = knownHeading(line.text) === "experience";+ const previous = lines.at(-1);+ if (+ experience &&+ previous &&+ !previous.heading &&+ !previous.record &&+ previous.stream === line.stream &&+ previous.page === line.page &&+ !BULLET_PATTERN.test(previous.text) &&+ !dateSpans(previous).length &&+ line.spans.length === dateSpans(line).length &&+ (line.spans[0]?.x ?? 0) > previous.x + previous.fontSize+ ) {+ lines[lines.length - 1] = {+ ...previous,+ ...lineWithSpans(previous, [...previous.spans, ...line.spans]),+ text: `${previous.text} ${line.text}`,+ };+ } else lines.push(line);+ }+ return lines;+}++/** Record fields remain structured; delimiters in a company or title never become parser syntax. */+function orderExperienceHeaders(source: ImportLine[]): ImportLine[] {+ const out: ImportLine[] = [];+ let experience = false;+ const parts = (line: ImportLine, withoutDates = false) => {+ const spans = withoutDates ? line.spans.filter((span) => !dateSpans(line).includes(span)) : line.spans;+ if (!spans.length) return [];+ return fieldsOf(lineWithSpans(line, spans));+ };+ const stackedParts = (line: ImportLine) => {+ const fields = parts(line);+ if (fields.length !== 1) return fields;+ const first = line.spans[0];+ const boundary = line.spans.findIndex((span) => span.fontRef !== first?.fontRef);+ return boundary > 0+ ? [lineWithSpans(line, line.spans.slice(0, boundary)), lineWithSpans(line, line.spans.slice(boundary))]+ : fields;+ };+ const details = (text: string) => {+ const index = text.lastIndexOf(" · ");+ return index < 0 ? null : { position: text.slice(0, index).trim(), location: text.slice(index + 3).trim() };+ };+ for (let i = 0; i < source.length; i++) {+ const line = source[i];+ if (!line) continue;+ if (line.heading) {+ experience = knownHeading(line.text) === "experience";+ out.push(line);+ continue;+ }+ if (line.record || line.recordDate || !experience || BULLET_PATTERN.test(line.text) || !dateSpans(line).length) {+ out.push(line);+ continue;+ }+ const period = dateSpans(line)[0]?.text.trim() ?? "";+ const current = parts(line, true);+ const previous = out.at(-1);+ const next = source[i + 1];+ const same = (other: ImportLine | undefined) =>+ other &&+ !other.heading &&+ other.stream === line.stream &&+ other.page <= line.page &&+ !BULLET_PATTERN.test(other.text) &&+ !dateSpans(other).length;+ const before = same(previous) ? previous : undefined;+ const after = same(next) ? next : undefined;+ const lead = current+ .map((p) => p.text)+ .join(" ")+ .trim();+ let record: RecordHeader | undefined;+ let first = line;+ let takeNext = false;+ const above = before ? details(before.text) : null;+ const below = after ? details(after.text) : null;+ if (above && current.length === 1) {+ record = { company: lead, ...above, period };+ first = before ?? line;+ out.pop();+ } else if (below && current.length === 1) {+ record = { company: lead, ...below, period };+ takeNext = true;+ } else if (current.length === 1 && /\([^()]*\)/.test(lead)) {+ const textSpans = line.spans.filter((span) => !dateSpans(line).includes(span));+ const firstSpan = textSpans[0];+ const boundary = textSpans.findIndex(+ (span) => span.fontRef !== firstSpan?.fontRef || Math.abs(span.fontSize - (firstSpan?.fontSize ?? 0)) > 1,+ );+ const match = /^(.*?)\s*\(([^()]*)\)\s*(.*)$/.exec(lead);+ if (match && boundary > 0) {+ const leading = joinSpans(textSpans.slice(0, boundary));+ const tail = joinSpans(textSpans.slice(boundary));+ const tailMatch = /^(.*?)\s*\(([^()]*)\)\s*$/.exec(tail);+ record = match[3]+ ? { company: match[3], position: match[1] ?? "", location: match[2] ?? "", period }+ : tailMatch+ ? { company: leading, position: tailMatch[1] ?? "", location: tailMatch[2] ?? "", period }+ : undefined;+ }+ } else if (before) {+ const prior = stackedParts(before);+ const a = prior[0];+ const b = prior[1];+ if (+ a &&+ b &&+ a.fontRef !== line.fontRef &&+ (Math.abs(b.x + b.width - (dateSpans(line)[0]?.x ?? 0) - (dateSpans(line)[0]?.width ?? 0)) < b.fontSize ||+ (Math.abs(a.x - (current[0]?.x ?? Infinity)) < a.fontSize &&+ b.x > (current[0]?.x ?? Infinity) + (current[0]?.width ?? 0)))+ ) {+ record = { company: a.text, position: lead, location: b.text, period };+ first = before;+ out.pop();+ }+ }+ if (!record && after) {+ const following = stackedParts(after);+ const a = following[0];+ const b = following[1];+ if (a && b && a.fontRef !== line.fontRef) {+ record = { company: a.text, position: lead, location: b.text, period };+ takeNext = true;+ }+ }+ if (!record && current.length === 1) {+ const runs = line.spans.filter((span) => !dateSpans(line).includes(span));+ const boundary = runs.findIndex((span) => span.fontRef !== runs[0]?.fontRef);+ if (boundary > 0)+ record = {+ company: joinSpans(runs.slice(0, boundary)),+ position: joinSpans(runs.slice(boundary)),+ location: "",+ period,+ };+ else if (+ after &&+ parts(after).length === 1 &&+ after.fontRef !== line.fontRef &&+ after.y - line.y <= Math.max(line.fontSize, after.fontSize) * 2+ ) {+ record = { company: lead, position: after.text, location: "", period };+ takeNext = true;+ }+ }+ if (!record) {+ out.push(line);+ continue;+ }+ out.push({ ...first, text: `${record.company} ${record.position} ${record.location}`, heading: false, record });+ out.push({ ...line, text: period, heading: false, recordDate: true, spans: dateSpans(line) });+ if (takeNext) i++;+ }+ return out;+}- const left: string[] = [];- const right: string[] = [];+/** A marker may have its own baseline when its item's local font size or leading changes. */+function attachListMarkers(source: ImportLine[]): ImportLine[] {+ const lines: ImportLine[] = [];+ for (let i = 0; i < source.length; i++) {+ const line = source[i];+ if (!line) continue;+ const marker = line.spans[0];+ const next = source[i + 1];+ const content = next?.spans[0];+ if (+ marker &&+ next &&+ content &&+ line.spans.length === 1 &&+ BULLET_PATTERN.test(line.text) &&+ !line.text.replace(BULLET_PATTERN, "") &&+ line.page === next.page &&+ line.stream === next.stream &&+ content.x > marker.x &&+ content.x - marker.x < Math.max(marker.fontSize, content.fontSize) * 2 &&+ Math.abs(content.y + content.height - marker.y - marker.height) <+ Math.max(marker.fontSize, content.fontSize) * 1.5 &&+ !BULLET_PATTERN.test(next.text) &&+ !dateSpans(next).length+ ) {+ lines.push({ ...line, ...lineWithSpans(line, [marker, ...next.spans]), heading: false });+ i++;+ } else lines.push(line);+ }+ return lines;+}- for (const line of page.lines) {- const leftSpans = line.spans.filter((span) => span.x + span.width / 2 < splitX);- if (leftSpans.length > 0) left.push(joinSpans(leftSpans));+function importLines(source: ExtractedDocument): ImportLine[] {+ const pages = source.pages.map(joinWrappedLabels).map(separateIdentityRail);+ const doc = { ...source, pages, lines: pages.flatMap((page) => page.lines) };+ const isHeading = headingTest(doc);+ const lines: ImportLine[] = [];+ let bullet: {+ x: number;+ markerX: number;+ size: number;+ font: string;+ last: TextSpan;+ page: number;+ stream: ImportLine["stream"];+ leading?: number;+ line: ImportLine;+ } | null = null;+ const prefix: ImportLine[] = [];+ const sidebar: ImportLine[] = [];+ const main: ImportLine[] = [];+ let columns: { x: number; top: number } | null = null;+ for (const page of doc.pages) {+ const streams = pageToLines(page, isHeading, columns);+ columns = streams.columns;+ prefix.push(...streams.prefix);+ sidebar.push(...streams.sidebar);+ main.push(...streams.main);+ }+ const all = [...prefix, ...sidebar, ...main];+ const ordered = attachListMarkers(+ orderExperienceHeaders(+ attachRecordDates(+ foldStackedHeaders(+ splitExperienceItems([...all.filter((line) => line.identity), ...all.filter((line) => !line.identity)]),+ ),+ ),+ ),+ );+ const baseline = (span: TextSpan) => span.y + span.height;+ const wrapsInto = (previous: ImportLine, next: TextSpan) => {+ const right = previous.right ?? doc.pages.find((page) => page.pageNumber === previous.page)?.width ?? 0;+ const edge = previous.spans.reduce((x, span) => Math.max(x, span.x + span.width), previous.x);+ const word = next.text.trim().split(/\s+/)[0] ?? "";+ const wordWidth = (next.width * word.length) / Math.max(1, next.text.length);+ return right - edge <= Math.max(wordWidth, next.fontSize) * 1.5;+ };+ let inDescription = false;+ for (const [index, line] of ordered.entries()) {+ if (line.heading) inDescription = knownHeading(line.text) === null;+ if (line.record) inDescription = true;+ const first = line.spans[0];+ if (!first || !line.text) continue;+ const following = ordered[index + 1];+ const followingFirst = following?.spans[0];+ const nextGap =+ following &&+ followingFirst &&+ following.stream === line.stream &&+ following.page === line.page &&+ !BULLET_PATTERN.test(following.text) &&+ Math.abs(followingFirst.x - first.x) < first.fontSize * 0.2 &&+ Math.abs(followingFirst.fontSize - first.fontSize) < 1+ ? baseline(followingFirst) - baseline(first)+ : undefined;+ const gap = bullet ? baseline(first) - baseline(bullet.last) : 0;+ const credible =+ bullet &&+ (bullet.leading !== undefined+ ? Math.abs(gap - bullet.leading) <= first.fontSize * 0.15+ : nextGap !== undefined && nextGap > 0+ ? Math.abs(gap - nextGap) <= first.fontSize * 0.15+ : gap <= first.fontSize * 1.5 + first.fontSize * 0.15 || wrapsInto(bullet.line, first));- const rightSpans = line.spans.filter((span) => span.x + span.width / 2 >= splitX);- if (rightSpans.length > 0) right.push(joinSpans(rightSpans));+ if (BULLET_PATTERN.test(line.text)) {+ const content =+ BULLET_PATTERN.test(first.text) && !first.text.replace(BULLET_PATTERN, "") ? line.spans[1] : first;+ bullet = {+ x: content?.x ?? first.x,+ markerX: first.x,+ size: content?.fontSize ?? first.fontSize,+ font: content?.fontRef ?? first.fontRef,+ last: content ?? first,+ line,+ page: line.page,+ stream: line.stream,+ };+ } else if (+ bullet &&+ line.stream === bullet.stream &&+ (!line.heading || (first.fontRef === bullet.font && Math.abs(first.x - bullet.x) < bullet.size * 0.2)) &&+ Math.abs(first.fontSize - bullet.size) < 1 &&+ (first.fontRef === bullet.font || wrapsInto(bullet.line, first)) &&+ ((line.page === bullet.page &&+ gap > 0 &&+ gap <= first.fontSize * 4 &&+ first.x > bullet.markerX &&+ Math.abs(first.x - bullet.x) <= bullet.size * 0.9 &&+ credible) ||+ (line.page > bullet.page &&+ first.x > bullet.markerX &&+ Math.abs(first.x - bullet.x) <= bullet.size * 0.9 &&+ fieldsOf(line).length === 1))+ ) {+ const previous = lines.at(-1);+ if (previous) previous.text += ` ${line.text}`;+ if (line.page !== bullet.page) bullet.markerX = first.x - (bullet.x - bullet.markerX);+ bullet.x = first.x;+ if (line.page === bullet.page) bullet.leading ??= gap;+ bullet.last = first;+ bullet.line = line;+ bullet.page = line.page;+ continue;+ } else bullet = null;+ const previous = lines.at(-1);+ const previousSpan = previous?.spans[0];+ if (+ !inDescription &&+ previous &&+ previousSpan &&+ !line.heading &&+ isContactLine(previous.text) &&+ !isContactLine(line.text) &&+ !/\s/.test(line.text) &&+ previous.stream === line.stream &&+ previous.page === line.page &&+ first.fontRef === previousSpan.fontRef &&+ Math.abs(first.x - previousSpan.x) < first.fontSize * 0.2 &&+ baseline(first) - baseline(previousSpan) > 0 &&+ baseline(first) - baseline(previousSpan) <= first.fontSize * 1.6 &&+ wrapsInto(previous, first)+ ) {+ previous.text += line.text;+ previous.spans = line.spans;+ previous.y = line.y;+ continue;+ }++ if (+ inDescription &&+ previous &&+ previousSpan &&+ !previous.heading &&+ !previous.record &&+ !line.heading &&+ !line.record &&+ !BULLET_PATTERN.test(previous.text) &&+ !BULLET_PATTERN.test(line.text) &&+ !dateSpans(previous).length &&+ !dateSpans(line).length &&+ previous.stream === line.stream &&+ previous.page === line.page &&+ Math.abs(previousSpan.x - first.x) < first.fontSize * 0.2 &&+ Math.abs(previousSpan.fontSize - first.fontSize) < 1 &&+ baseline(first) - baseline(previousSpan) > 0 &&+ baseline(first) - baseline(previousSpan) <= first.fontSize * 4 &&+ wrapsInto(previous, first)+ ) {+ previous.text += ` ${line.text}`;+ previous.spans = line.spans;+ previous.y = line.y;+ continue;+ }+ lines.push(line);}+ return lines;+}- return [...left, ...right];+function boundedLines(doc: ExtractedDocument): ImportLine[] | null {+ if (!allowsPdfGeometry(doc)) return null;+ try {+ return importLines(doc);+ } catch (error) {+ if (error instanceof GeometryLimit) return null;+ throw error;+ }}export function documentToLines(doc: ExtractedDocument): string[] {- return doc.pages.flatMap(pageToLines).filter((line) => line.length > 0);+ return (boundedLines(doc) ?? doc.lines).map((line) => line.text);+}++function readIdentity(lines: ImportLine[], doc: ExtractedDocument) {+ const identity = lines.filter((line) => line.identity);+ if (!identity.length) return;+ const fields = identity.flatMap(fieldsOf).flatMap((field) => {+ const spans = field.spans.filter((span) => !standaloneDate(span.text));+ return spans.length ? [lineWithSpans(field, spans)] : [];+ });+ const linked = new Map<string, TextSpan[]>();+ for (const span of fields.flatMap((field) => field.spans)) {+ const target = annotationTarget(doc, span);+ if (!target) continue;+ const spans = linked.get(target) ?? [];+ if (!spans.includes(span)) spans.push(span);+ linked.set(target, spans);+ }+ const contactFields = fields.filter(+ (field) => hasContactDetails(field.text) || field.spans.some((span) => annotationTarget(doc, span)),+ );+ const contactTop = contactFields.reduce((y, line) => Math.min(y, line.y), Infinity);+ const text = fields+ .flatMap((field) => {+ const spans = field.spans.filter((span) => !annotationTarget(doc, span));+ return spans.length ? [lineWithSpans(field, spans)] : [];+ })+ .filter((field) => !isContactLine(field.text));+ const contactX = contactFields.reduce((x, field) => Math.min(x, field.x), Infinity);+ const nameSize = text.reduce((size, field) => Math.max(size, field.fontSize), 0);+ const identityLeft = text+ .filter((field) => Math.abs(field.fontSize - nameSize) < 1)+ .reduce((x, field) => Math.min(x, field.x), Infinity);+ const contactSize = contactFields.reduce((size, field) => Math.max(size, field.fontSize), 0);+ const isInsetContact = (field: TextLine) =>+ !(nameSize > contactSize + 1 && Math.abs(field.fontSize - nameSize) < 1) &&+ contactX > identityLeft + field.fontSize * 0.5 &&+ Math.abs(field.x - contactX) < field.fontSize * 0.25;+ const before = text.filter((field) => field.y < contactTop && !isInsetContact(field));+ const biggest = before.reduce((size, line) => Math.max(size, line.fontSize), 0);+ const names = before.filter((line) => Math.abs(line.fontSize - biggest) < 1);+ const nameRows =+ names.length === before.length && biggest <= Math.max(...contactFields.map((field) => field.fontSize)) + 1+ ? names.slice(0, 1)+ : names;+ const name = nameRows.map((line) => line.text).join(" ");+ const headline = before+ .filter((line) => !nameRows.includes(line))+ .map((line) => line.text)+ .join(" ");+ const contact = parseResumeText(identity.map((line) => line.text).join("\n")).basics;+ let email = contact.email;+ let phone = contact.phone;+ let website = contact.website;+ let seenWebsite = false;+ const customFields: { id: string; icon: string; text: string; link: string }[] = [];+ for (const [url, spans] of linked) {+ if (url.startsWith("mailto:")) email = url.slice(7).split("?")[0] ?? email;+ else if (url.startsWith("tel:")) phone = url.slice(4);+ else if (/^https?:\/\//i.test(url)) {+ const label = joinSpans(spans);+ const displayed = /^https?:\/\//i.test(label) && URL.canParse(label) && new URL(label).href === url;+ if (!seenWebsite) {+ website = { url: displayed ? label : url, label: displayed ? "" : label };+ seenWebsite = true;+ } else customFields.push({ id: generateId(), icon: "", text: label, link: url });+ }+ }+ const location = text+ .filter((field) => field.y >= contactTop || isInsetContact(field))+ .map((line) => line.text)+ .join(" ");+ return { name, headline, email, phone, location, website, customFields };+}++function educationCells(row: TextLine) {+ const fields = fieldsOf(row);+ if (fields.length !== 1 || !row.spans[0]) return fields;+ const font = row.spans[0].fontRef;+ const split = row.spans.findIndex((span) => span.fontRef !== font);+ return split > 0+ ? [lineWithSpans(row, row.spans.slice(0, split)), lineWithSpans(row, row.spans.slice(split))]+ : fields;+}++/** Decode only corroborated stacked records; every unassigned span stays in the record description. */+function educationRecords(+ source: ImportLine[],+ work: GeometryIndex,+ locale: string,+): ResumeData["sections"]["education"]["items"] | null {+ work.charge(source.reduce((n, row) => n + row.spans.length, 0) * 4);+ const run: ImportLine[] = [];+ for (let index = 0; index < source.length; index++) {+ const row = source[index];+ if (!row) continue;+ const next = source[index + 1];+ const following = source[index + 2];+ const lead = educationCells(row);+ const pair = next ? educationCells(next) : [];+ const below = following ? educationCells(following) : [];+ const school = lead[0];+ const degree = pair[0];+ const area = below[0];+ const tail = below[1];+ // A split row can wrap its right cell below the title while preserving both column edges.+ if (+ next &&+ following &&+ lead.length === 1 &&+ pair.length === 1 &&+ below.length === 2 &&+ school &&+ degree &&+ area &&+ tail &&+ school.fontRef !== degree.fontRef &&+ area.fontRef === degree.fontRef &&+ Math.abs(area.x - school.x) < school.fontSize * 0.25 &&+ degree.x > school.x + school.fontSize &&+ Math.abs(degree.x + degree.width - tail.x - tail.width) < school.fontSize * 0.25 &&+ row.page === following.page &&+ row.stream === following.stream+ ) {+ run.push({ ...row, ...lineWithSpans(row, [...row.spans, ...next.spans]) });+ index++;+ } else run.push(row);+ }+ const rows = run.map(educationCells);+ const first = rows[0]?.[0];+ if (!first) return null;+ const isLead = (index: number) => {+ const row = rows[index];+ const next = rows[index + 1];+ const lead = row?.[0];+ const pair = row?.[1];+ const area = next?.[0];+ const tail = next?.[1];+ return Boolean(+ lead &&+ pair &&+ area &&+ tail &&+ row?.length === 2 &&+ next?.length === 2 &&+ Math.abs(lead.x - first.x) < lead.fontSize * 0.25 &&+ lead.fontRef === first.fontRef &&+ lead.fontRef !== pair.fontRef &&+ Math.abs(area.x - lead.x) < lead.fontSize * 0.25 &&+ area.fontRef !== lead.fontRef &&+ pair.x > lead.x + lead.fontSize &&+ tail.x > area.x + area.fontSize &&+ Math.abs(pair.x + pair.width - tail.x - tail.width) < lead.fontSize * 0.25 &&+ run[index]?.page === run[index + 1]?.page &&+ run[index]?.stream === run[index + 1]?.stream,+ );+ };+ if (!isLead(0)) return null;+ if (+ rows.some((row, index) => {+ const lead = row[0];+ const pair = row[1];+ return (+ lead &&+ pair &&+ Math.abs(lead.x - first.x) < lead.fontSize * 0.25 &&+ lead.fontRef === first.fontRef &&+ lead.fontRef !== pair.fontRef &&+ !isLead(index)+ );+ })+ )+ return null;+ const starts = run.flatMap((_, index) => (isLead(index) ? [index] : []));+ const items: ResumeData["sections"]["education"]["items"] = [];+ for (const [record, start] of starts.entries()) {+ const end = starts[record + 1] ?? run.length;+ const lead = rows[start]?.[0];+ const pair = rows[start]?.[1];+ const area = rows[start + 1]?.[0];+ const tail = rows[start + 1]?.[1];+ if (!lead || !pair || !area || !tail) return null;+ const parts = pair.text.split(/\s+•\s+/);+ const locationParts = tail.text.split(/\s+•\s+/);+ const last = locationParts.at(-1) ?? "";+ const period = standaloneDate(last);+ if (period) locationParts.pop();+ const assigned = new Set([...lead.spans, ...pair.spans, ...area.spans, ...tail.spans]);+ const residual = run.slice(start, end).flatMap((row) => {+ const spans = row.spans.filter((span) => !assigned.has(span));+ return spans.length ? [joinSpans(spans)] : [];+ });+ work.charge(run.slice(start, end).reduce((n, row) => n + row.spans.length, 0));+ items.push({+ id: generateId(),+ hidden: false,+ school: lead.text,+ degree: parts[0] ?? "",+ grade: parts.slice(1).join(" • "),+ area: area.text,+ location: locationParts.join(" • "),+ period,+ dates: readLegacyDates(period, { locale, single: !findPeriod(period) }),+ website: { url: "", label: "", inlineLink: false },+ description: toHtmlBlocks(residual),+ });+ }+ return items;+}++/** Match records within their section stream, so links and split header cells cannot escape into prose. */+function projectSectionFields(data: ResumeData, lines: ImportLine[], doc: ExtractedDocument): ResumeData {+ const work = new GeometryIndex(lines);+ for (let start = 0; start < lines.length; start++) {+ const heading = lines[start];+ if (!heading?.heading) continue;+ const key = knownHeading(heading.text);+ if (!key || key === "summary") continue;+ let end = start + 1;+ while (end < lines.length && !lines[end]?.heading) end++;+ const run = lines.slice(start + 1, end);+ const section = data.sections[key];+ if (key === "education") {+ const records = educationRecords(run, work, data.metadata.page.locale);+ if (records) data.sections.education.items = records;+ }+ let cursor = 0;+ const items = section.items as unknown as Record<string, unknown>[];+ for (let itemIndex = 0; itemIndex < items.length; itemIndex++) {+ const item = items[itemIndex];+ if (!item) continue;+ const title = ["company", "school", "organization", "title", "name", "network"]+ .map((field) => item[field])+ .find((value) => typeof value === "string" && value);+ if (typeof title !== "string") continue;+ const matches = (line: ImportLine, value: string) => {+ if (line.record?.company === value || fieldsOf(line).some((field) => field.text === value)) return true;+ if (key !== "education") return false;+ work.charge(line.spans.length);+ return educationCells(line).some((field) => field.text === value);+ };+ work.charge(run.length * 3);+ const relative = run.slice(cursor).findIndex((line) => matches(line, title));+ if (relative < 0) continue;+ const begin = cursor + relative;+ const next = items[itemIndex + 1];+ const nextTitle =+ next &&+ ["company", "school", "organization", "title", "name", "network"]+ .map((field) => next[field])+ .find((value) => typeof value === "string" && value);+ const offset =+ typeof nextTitle === "string" ? run.slice(begin + 1).findIndex((line) => matches(line, nextTitle)) : -1;+ const finish = offset >= 0 ? begin + 1 + offset : run.length;+ cursor = finish;+ const chunk = run.slice(begin, finish);+ const linked = chunk.filter(+ (line) =>+ line.spans.length &&+ line.spans.every((span) => /^https?:\/\//i.test(annotationTarget(doc, span) ?? "")) &&+ new Set(line.spans.map((span) => annotationTarget(doc, span))).size === 1,+ );+ const slot = linked.at(-1);+ const linkedSpan = slot?.spans[0];+ if (slot && linkedSpan && "website" in item) {+ const url = annotationTarget(doc, linkedSpan) ?? "";+ const label = slot.text;+ const displayed = URL.canParse(label) && new URL(label).href === url;+ item.website = { url: displayed ? label : url, label: displayed ? "" : label, inlineLink: false };+ if (typeof item.description === "string") {+ const suffix = toHtmlBlocks([slot.text]);+ if (item.description.endsWith(suffix)) item.description = item.description.slice(0, -suffix.length);+ }+ }+ }+ start = end - 1;+ }+ return data;+}++/** shortcut: dense/expensive geometry retains complete text in Summary; exact field mapping needs tagged PDF evidence. */+function flatPdfResume(doc: ExtractedDocument) {+ const flat = parseResumeText(doc.fullText);+ flat.summary.content = toHtmlBlocks(doc.lines.map((line) => line.text));+ return parseResumeData(flat);+}++export function parsePdfResume(doc: ExtractedDocument) {+ try {+ return parseGeometryResume(doc);+ } catch (error) {+ if (error instanceof GeometryLimit) return flatPdfResume(doc);+ throw error;+ }+}++function parseGeometryResume(doc: ExtractedDocument) {+ const lines = boundedLines(doc);+ if (!lines) return flatPdfResume(doc);++ const parsed = parseResumeText(+ lines.map((line) => line.text).join("\n"),+ new Set(lines.flatMap((line, index) => (line.heading ? [index] : []))),+ );+ const firstSection = lines.findIndex((line) => line.heading);+ const name = lines.find(+ (line) => line.identity && !isContactLine(line.text) && line.fontSize > (doc.modalFontSize ?? line.fontSize),+ );+ if (name && firstSection > 0) {+ const introduction = lines+ .slice(0, firstSection)+ .filter(+ (line) =>+ !line.identity && !isContactLine(line.text) && line.y > name.y + name.height && line.page === name.page,+ );+ if (introduction.length)+ parsed.summary.content = toHtmlBlocks(introduction.map((line) => line.text)) + parsed.summary.content;+ }+ const basics = readIdentity(lines, doc);+ if (basics) parsed.basics = { ...parsed.basics, ...basics };+ const records: { header: RecordHeader; body: string[] }[] = [];+ let active: (typeof records)[number] | undefined;+ for (const line of lines) {+ if (line.heading) active = undefined;+ if (line.record) {+ active = { header: line.record, body: [] };+ records.push(active);+ } else if (active && !line.recordDate) active.body.push(line.text);+ }+ if (+ !records.length ||+ (records.length !== parsed.sections.experience.items.length &&+ parsed.sections.experience.items.some(+ (item) => !records.some((record) => record.header.company === item.company),+ ))+ )+ return parseResumeData(projectSectionFields(parsed, lines, doc));+ return parseResumeData(+ projectSectionFields(+ {+ ...parsed,+ sections: {+ ...parsed.sections,+ experience: {+ ...parsed.sections.experience,+ items: records.map(({ header, body }, index) => ({+ id: generateId(),+ hidden: false,+ website: { url: "", label: "", inlineLink: false },+ roles: [],+ ...parsed.sections.experience.items[index],+ ...header,+ dates: readLegacyDates(header.period, { locale: parsed.metadata.page.locale, single: false }),+ description: toHtmlBlocks(body),+ })),+ },+ },+ },+ lines,+ doc,+ ),+ );}diff --git a/packages/import/src/plain-text.test.ts b/packages/import/src/plain-text.test.tsindex e56c54c95..22bc6d097 100644--- a/packages/import/src/plain-text.test.ts+++ b/packages/import/src/plain-text.test.ts@@ -1,6 +1,6 @@import { describe, expect, it } from "vite-plus/test";import { resumeDataSchema } from "@reactive-resume/schema/resume/data";-import { parseResumeText } from "./plain-text";+import { parseResumeText, standaloneDate } from "./plain-text";const SAMPLE = `Ada LovelaceSenior Software Engineer@@ -249,3 +249,52 @@ describe("parseResumeText keeps content the layout hides", () => {expect(data.sections.certifications.items).toHaveLength(0);});});++describe("plain-text header conservation", () => {+ it.each(["eBay", "3M", "iRobot", "1Password"])("does not append %s to an unfinished bullet", (company) => {+ for (const header of [`${company} Senior Engineer 2018 – 2020`, `${company} Senior Engineer\n2018 – 2020`]) {+ const data = parseResumeText(+ `EXPERIENCE\nAcme Engineer\n2020 – 2021\n• Built tools\n${header}\n• Shipped search\n`,+ );+ expect(data.sections.experience.items).toHaveLength(2);+ expect(data.sections.experience.items[0]).toMatchObject({+ company: "Acme",+ description: "<ul><li>Built tools</li></ul>",+ });+ expect(data.sections.experience.items[1]).toMatchObject({+ company,+ position: "Senior Engineer",+ period: "2018 – 2020",+ description: "<ul><li>Shipped search</li></ul>",+ });+ }+ });+ it.each([+ ["Google", "Software Engineer, Cloud", "Mountain View, CA"],+ ["Acme", "Director, Product", "Remote"],+ ])("preserves commas inside conventional %s headers", (company, position, location) => {+ const data = parseResumeText(`EXPERIENCE\n${company} ${position}\n${location} 2019 – 2021\n• Built things.\n`);+ expect(data.sections.experience.items[0]).toMatchObject({ company, position, location, period: "2019 – 2021" });+ });+ it("keeps lower-case prose after a bullet as prose", () => {+ const data = parseResumeText(+ "EXPERIENCE\nAcme Engineer 2020 – 2021\n• Built tools\nreferences available on request\n",+ );+ expect(data.sections.experience.items[0]?.description).toBe(+ "<ul><li>Built tools</li></ul><p>references available on request</p>",+ );+ });+});++it.each(["2018", "Jan 2020", "2020 – 2021", "Jan 2020 – Present"])(+ "uses exact dates as record evidence / %s",+ (value) => {+ expect(standaloneDate(value)).toBe(value);+ },+);+it.each(["Presented 2020 – 2021 research", "Built systems in 2018", "https://example.invalid/2020", "• 2018", ""])(+ "keeps date mentions inside body text / %s",+ (value) => {+ expect(standaloneDate(value)).toBe("");+ },+);diff --git a/packages/import/src/plain-text.ts b/packages/import/src/plain-text.tsindex 6006b9048..7b3b58b64 100644--- a/packages/import/src/plain-text.ts+++ b/packages/import/src/plain-text.ts@@ -3,7 +3,7 @@ import { parseResumeData } from "@reactive-resume/schema/resume/data";import { defaultResumeData } from "@reactive-resume/schema/resume/default";import { parsePeriod, parseSingleDate } from "@reactive-resume/schema/resume/period";import { generateId } from "@reactive-resume/utils/string";-import { BULLET_PATTERN, toHtml } from "./html";+import { BULLET_PATTERN, toHtmlBlocks as toHtml } from "./html";type SectionKey = SectionType | "summary";@@ -109,11 +109,16 @@ const normalizeHeading = (line: string) =>.trim().toLowerCase();-function knownHeading(line: string): SectionKey | null {- const normalized = normalizeHeading(line);- if (!normalized || normalized.split(" ").length > MAX_HEADING_WORDS) return null;+const COMPACT_SECTION_ALIASES: Readonly<Record<string, SectionKey>> = Object.fromEntries(+ Object.entries(SECTION_ALIASES).map(([name, key]) => [name.replaceAll(" ", ""), key]),+);- return SECTION_ALIASES[normalized] ?? null;+export function knownHeading(line: string): SectionKey | null {+ if (/[.!?;,]$/.test(line.trim())) return null;+ const normalized = normalizeHeading(line);+ if (!normalized) return null;+ // Letter spacing can be emitted as partial words ("E D U CAT I O N").+ return SECTION_ALIASES[normalized] ?? COMPACT_SECTION_ALIASES[normalized.replaceAll(" ", "")] ?? null;}function looksLikeHeading(line: string): boolean {@@ -155,11 +160,14 @@ function looksLikeEntryHeader(line: string): boolean {return trimmed.split(/\s+/).length <= MAX_ENTRY_HEADER_WORDS;}-function findPeriod(line: string): string {+export function findPeriod(line: string): string {PERIOD_CANDIDATE.lastIndex = 0;for (const match of line.match(PERIOD_CANDIDATE) ?? []) {if (parsePeriod(match)) return match.trim();+ // The optional month can consume a role title before a year-only range ("Engineer 2020 – Present").+ const yearRange = match.replace(/^\p{L}{3,}\.?\s+/u, "");+ if (parsePeriod(yearRange)) return yearRange.trim();}return "";@@ -188,6 +196,27 @@ function extractPhone(text: string): string {return "";}+/** Contact rows belong to the identity block, not independent PDF body columns. */+export function hasContactDetails(text: string): boolean {+ return EMAIL_PATTERN.test(text) || URL_TEST.test(text) || extractPhone(text) !== "";+}++/** A contact row, rather than prose which happens to mention an address or URL. */+export function isContactLine(text: string): boolean {+ const email = text.match(EMAIL_PATTERN)?.[0];+ const urls = text.match(URL_PATTERN) ?? [];+ const phone = extractPhone(text);+ const count = Number(Boolean(email)) + urls.length + Number(Boolean(phone));+ const rest = text.replace(EMAIL_PATTERN, "").replace(URL_PATTERN, "").replace(phone, "");+ return count > 0 && rest.replace(/[\s|•·,;()+-]/g, "") === "";+}++/** Exact record date evidence; a date mentioned inside prose is not a date cell. */+export function standaloneDate(text: string): string {+ const value = text.trim();+ return value && (findPeriod(value) === value || parseSingleDate(value) !== null) ? value : "";+}+function isDateLine(line: string, allowSingleDate = true): boolean {if (findPeriod(line)) return true;// A section grouped without single dates reads a bare "2022" as text, so the lookahead has to@@ -195,7 +224,7 @@ function isDateLine(line: string, allowSingleDate = true): boolean {if (!allowSingleDate) return false;const bare = line.replace(BULLET_PATTERN, "").trim();- return bare !== "" && parseSingleDate(bare) !== null;+ return standaloneDate(bare) !== "";}function introducesEntry(lines: readonly string[], index: number, allowSingleDate = true): boolean {@@ -464,9 +493,13 @@ function buildSectionItems(key: SectionKey, lines: string[]): unknown[] {}));}-function segment(lines: string[]): { header: string[]; segments: Segment[] } {+function segment(lines: string[], headingLines?: ReadonlySet<number>): { header: string[]; segments: Segment[] } {const records = lines- .map((line, index) => ({ line: line.trim(), precededByBlank: index > 0 && !lines[index - 1]?.trim() }))+ .map((line, index) => ({+ sourceIndex: index,+ line: line.trim(),+ precededByBlank: index > 0 && !lines[index - 1]?.trim(),+ })).filter((record) => record.line);const cleaned = records.map((record) => record.line);const boundary = headerBoundary(cleaned);@@ -474,16 +507,19 @@ function segment(lines: string[]): { header: string[]; segments: Segment[] } {const segments: Segment[] = [];let current: Segment | null = null;- for (const [index, { line, precededByBlank }] of records.entries()) {- const key = knownHeading(line);+ for (const [index, { line, precededByBlank, sourceIndex }] of records.entries()) {+ const mayBeHeading = headingLines === undefined || headingLines.has(sourceIndex);+ const key = mayBeHeading ? knownHeading(line) : null;const isolatedTitleCase = precededByBlank && looksLikeTitleCaseHeading(line);// With no section open the entry-preamble guard has nothing to protect: skipping it there keeps// a dated custom section that opens the body from being swallowed into the contact header.const unknown =key === null &&- index > boundary &&- (looksLikeHeading(line) || isolatedTitleCase) &&- (current === null || isolatedTitleCase || !introducesEntry(cleaned, index));+ (headingLines !== undefined || index > boundary) &&+ (headingLines !== undefined+ ? mayBeHeading+ : (looksLikeHeading(line) || isolatedTitleCase) &&+ (current === null || isolatedTitleCase || !introducesEntry(cleaned, index)));if (key !== null || unknown) {if (current) segments.push(current);@@ -529,9 +565,9 @@ function parseHeader(lines: string[]) {};}-export function parseResumeText(text: string): ResumeData {+export function parseResumeText(text: string, headingLines?: ReadonlySet<number>): ResumeData {const lines = text.replace(/\r\n?/g, "\n").split("\n");- const { header, segments } = segment(lines);+ const { header, segments } = segment(lines, headingLines);const contact = parseHeader(header);const data: ResumeData = structuredClone(defaultResumeData);diff --git a/packages/resume/src/ats-pdf/extract.test.ts b/packages/resume/src/ats-pdf/extract.test.tsindex a4dfe97bc..78b4df5e1 100644--- a/packages/resume/src/ats-pdf/extract.test.ts+++ b/packages/resume/src/ats-pdf/extract.test.ts@@ -1,6 +1,6 @@import { describe, expect, it } from "vite-plus/test";import fc from "fast-check";-import { buildExtractedDocument } from "./extract";+import { buildExtractedDocument, columnSegments } from "./extract";import { healthyResume, healthyResumeLines, makeRawExtraction } from "./test-fixtures";describe("buildExtractedDocument", () => {@@ -51,3 +51,34 @@ describe("buildExtractedDocument", () => {);});});++it("keeps explicit word spaces across font runs, without splitting words or bridging columns", () => {+ const raw = makeRawExtraction({+ lines: [+ { text: "Built", x: 50, y: 50 },+ { text: " ", x: 75, y: 50 },+ { text: "Important", x: 80, y: 50, fontRef: "bold" },+ { text: "Sys", x: 50, y: 70 },+ { text: "tems", x: 65, y: 70, fontRef: "bold" },+ { text: "Company", x: 50, y: 90 },+ { text: " ", x: 85, y: 90 },+ { text: "2020 – 2021", x: 235, y: 90 },+ { text: "Heading", x: 50, y: 110, size: 12 },+ { text: "Date", x: 200, y: 112, size: 10 },+ ],+ });+ const page = raw.pages[0];+ if (!page) throw new Error("Missing fixture page");+ for (const order of [page.items, [...page.items].reverse()]) {+ const doc = buildExtractedDocument({ ...raw, pages: [{ ...page, items: order }] });+ expect(doc.lines.map((line) => line.text)).toEqual([+ "Built Important",+ "Systems",+ "Company 2020 – 2021",+ "Heading Date",+ ]);+ const row = doc.lines[2];+ if (!row) throw new Error("Missing column row");+ expect(columnSegments(row)).toHaveLength(2);+ }+});diff --git a/packages/resume/src/ats-pdf/extract.ts b/packages/resume/src/ats-pdf/extract.tsindex 856d0b201..ff72471ee 100644--- a/packages/resume/src/ats-pdf/extract.ts+++ b/packages/resume/src/ats-pdf/extract.ts@@ -51,6 +51,17 @@ function fontSizeOf(item: RawPage["items"][number]): number {function buildSpans(page: RawPage): TextSpan[] {const spans: TextSpan[] = [];+ const spaces = new Map<string, { x: number; baseline: number }[]>();+ const spaceKey = (x: number, baseline: number) => `${Math.round(x * 10)}:${Math.round(baseline * 10)}`;+ for (const item of page.items) {+ if (!item.str || item.str.trim()) continue;+ const x = item.transform[4] + item.width;+ const baseline = item.transform[5];+ const key = spaceKey(x, baseline);+ const bucket = spaces.get(key) ?? [];+ bucket.push({ x, baseline });+ spaces.set(key, bucket);+ }page.items.forEach((item, streamIndex) => {if (item.str.trim().length === 0) return;@@ -71,6 +82,15 @@ function buildSpans(page: RawPage): TextSpan[] {fontRef: item.fontRef,fontSize,streamIndex,+ ...([-0.1, 0, 0.1].some((dx) =>+ [-0.1, 0, 0.1].some((dy) =>+ spaces+ .get(spaceKey(e + dx, f + dy))+ ?.some((space) => Math.abs(space.x - e) <= 0.11 && Math.abs(space.baseline - f) <= 0.11),+ ),+ )+ ? { spaceBefore: true }+ : {}),});});@@ -108,22 +128,24 @@ function modalOf(values: readonly number[]): number | null {* stream happened to be written. Stream order is measured separately, as inversion.*/function clusterLines(spans: readonly TextSpan[], pageNumber: number, tolerance: number): TextLine[] {- const sorted = [...spans].sort((a, b) => a.y - b.y || a.x - b.x || (a.text < b.text ? -1 : a.text > b.text ? 1 : 0));+ const sorted = [...spans].sort(+ (a, b) => a.y + a.height - b.y - b.height || a.x - b.x || (a.text < b.text ? -1 : a.text > b.text ? 1 : 0),+ );const groups: TextSpan[][] = [];let current: TextSpan[] = [];let anchor = Number.NaN;for (const span of sorted) {- if (current.length === 0 || Math.abs(span.y - anchor) <= tolerance) {- if (current.length === 0) anchor = span.y;+ if (current.length === 0 || Math.abs(span.y + span.height - anchor) <= tolerance) {+ if (current.length === 0) anchor = span.y + span.height;current.push(span);continue;}groups.push(current);current = [span];- anchor = span.y;+ anchor = span.y + span.height;}if (current.length > 0) groups.push(current);@@ -142,7 +164,7 @@ function toLine(group: readonly TextSpan[], pageNumber: number): TextLine {if (previous) {const gap = span.x - (previous.x + previous.width);const threshold = SPACE_GAP_RATIO * Math.max(previous.fontSize, span.fontSize, 1);- const needsSpace = gap > threshold && !/\s$/.test(text) && !/^\s/.test(span.text);+ const needsSpace = (span.spaceBefore || gap > threshold) && !/\s$/.test(text) && !/^\s/.test(span.text);if (needsSpace) text += " ";}@@ -314,7 +336,7 @@ function findGutter(spans: readonly TextSpan[], page: RawPage): ColumnGutter | n* content line ("Profiles GitHub"). The pieces are still analysed as one line everywhere else;* this view exists for consumers that need the column-separated parts.*/-export function columnSegments(line: TextLine): TextLine[] {+export function columnSegments(line: TextLine, gapRatio = COLUMN_GAP_RATIO): TextLine[] {const [first, ...rest] = line.spans;if (!first || rest.length === 0) return [line];@@ -322,7 +344,7 @@ export function columnSegments(line: TextLine): TextLine[] {let previous = first;for (const span of rest) {const gap = span.x - (previous.x + previous.width);- const threshold = Math.max(MIN_COLUMN_GAP_PT, COLUMN_GAP_RATIO * Math.max(previous.fontSize, span.fontSize, 1));+ const threshold = Math.max(MIN_COLUMN_GAP_PT, gapRatio * Math.max(previous.fontSize, span.fontSize, 1));if (gap > threshold) groups.push([span]);else groups[groups.length - 1]?.push(span);@@ -438,6 +460,7 @@ export function buildExtractedDocument(raw: RawExtraction): ExtractedDocument {[...fontWeights.entries()].sort((a, b) => b[1] - a[1] || a[0].localeCompare(b[0]))[0]?.[0] ?? null;return {+ links: raw.links,pages,lines,fullText,diff --git a/packages/resume/src/ats-pdf/index.ts b/packages/resume/src/ats-pdf/index.tsindex 4e9403fe6..24189d7c3 100644--- a/packages/resume/src/ats-pdf/index.ts+++ b/packages/resume/src/ats-pdf/index.ts@@ -156,7 +156,7 @@ export type {export type { PdfRuleCode };export { buildResumeSemantics } from "./analyze/semantics";export { PDF_ATS_RULE_CODES } from "./catalog";-export { buildExtractedDocument } from "./extract";+export { buildExtractedDocument, columnSegments } from "./extract";export { HARVEST_DEFAULTS, harvestPdfDocument } from "./harvest";export { surfaceFormsOf } from "./jd/aliases";export { matchJobDescription } from "./jd/match";diff --git a/packages/resume/src/ats-pdf/types.ts b/packages/resume/src/ats-pdf/types.tsindex abef74799..71986998a 100644--- a/packages/resume/src/ats-pdf/types.ts+++ b/packages/resume/src/ats-pdf/types.ts@@ -114,6 +114,8 @@ type BoundingBox = { x: number; y: number; width: number; height: number };export type TextSpan = BoundingBox & {text: string;+ /** An explicit text-layer separator ending here; it does not occupy the column gutter. */+ spaceBefore?: boolean;fontRef: string;fontSize: number;/** Index of the source item in the page's stream order. */@@ -163,6 +165,8 @@ export type PageGeometry = {};export type ExtractedDocument = {+ /** Standard PDF link targets remain available when displayed contact text wraps. */+ links?: readonly RawLinkAnnotation[];pages: readonly PageGeometry[];/** All lines across all pages, in geometric reading order. */lines: readonly TextLine[];