@yudaocode/univer-pdfs 0.0.0-stage → 1.6.204
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +190 -0
- package/README.md +26 -2
- package/lib/cjs/facade/index.js +3607 -0
- package/lib/cjs/facade/index.js.map +1 -0
- package/lib/cjs/index.js +23097 -0
- package/lib/cjs/index.js.map +1 -0
- package/lib/cjs/jsx/index.js +12234 -0
- package/lib/cjs/jsx/index.js.map +1 -0
- package/lib/cjs/jsx/jsx-dev-runtime.js +82 -0
- package/lib/cjs/jsx/jsx-dev-runtime.js.map +1 -0
- package/lib/cjs/jsx/jsx-runtime.js +82 -0
- package/lib/cjs/jsx/jsx-runtime.js.map +1 -0
- package/lib/es/chunk-7J2ODILT.js +15332 -0
- package/lib/es/chunk-7J2ODILT.js.map +1 -0
- package/lib/es/chunk-CGOQSYGL.js +160 -0
- package/lib/es/chunk-CGOQSYGL.js.map +1 -0
- package/lib/es/facade/index.js +3681 -0
- package/lib/es/facade/index.js.map +1 -0
- package/lib/es/index.js +7803 -0
- package/lib/es/index.js.map +1 -0
- package/lib/es/jsx/index.js +81 -0
- package/lib/es/jsx/index.js.map +1 -0
- package/lib/es/jsx/jsx-dev-runtime.js +13 -0
- package/lib/es/jsx/jsx-dev-runtime.js.map +1 -0
- package/lib/es/jsx/jsx-runtime.js +13 -0
- package/lib/es/jsx/jsx-runtime.js.map +1 -0
- package/lib/types/facade/index.d.ts +1155 -0
- package/lib/types/index.d.ts +2025 -0
- package/lib/types/jsx/index.d.ts +45 -0
- package/lib/types/jsx/jsx-dev-runtime.d.ts +2 -0
- package/lib/types/jsx/jsx-runtime.d.ts +2 -0
- package/lib/types/jsx-dev-runtime-5tXCUq4v.d.ts +1484 -0
- package/package.json +94 -3
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/jsx/jsx-dev-runtime.ts
|
|
21
|
+
var jsx_dev_runtime_exports = {};
|
|
22
|
+
__export(jsx_dev_runtime_exports, {
|
|
23
|
+
Fragment: () => Fragment,
|
|
24
|
+
jsx: () => jsx,
|
|
25
|
+
jsxDEV: () => jsxDEV,
|
|
26
|
+
jsxs: () => jsxs
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(jsx_dev_runtime_exports);
|
|
29
|
+
|
|
30
|
+
// src/jsx/types.ts
|
|
31
|
+
var PDF_JSX_ELEMENT_SYMBOL = /* @__PURE__ */ Symbol.for("univer.pdfs.jsx.element");
|
|
32
|
+
var PDF_JSX_FRAGMENT_SYMBOL = /* @__PURE__ */ Symbol.for("univer.pdfs.jsx.fragment");
|
|
33
|
+
|
|
34
|
+
// src/jsx/node.ts
|
|
35
|
+
function createPdfJsxNode(kind, props, key) {
|
|
36
|
+
return {
|
|
37
|
+
$$typeof: PDF_JSX_ELEMENT_SYMBOL,
|
|
38
|
+
kind,
|
|
39
|
+
props: props ?? {},
|
|
40
|
+
key: key ?? null
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function Fragment(props) {
|
|
44
|
+
return createPdfJsxNode("Fragment", props);
|
|
45
|
+
}
|
|
46
|
+
Fragment.$$fragment = PDF_JSX_FRAGMENT_SYMBOL;
|
|
47
|
+
function evaluatePdfJsxElement(type, rawProps, key) {
|
|
48
|
+
const props = rawProps ? { ...rawProps } : {};
|
|
49
|
+
if (type === PDF_JSX_FRAGMENT_SYMBOL || type === Fragment || type === "Fragment") {
|
|
50
|
+
return createPdfJsxNode("Fragment", props, key);
|
|
51
|
+
}
|
|
52
|
+
if (typeof type === "function") {
|
|
53
|
+
const rendered = type(props);
|
|
54
|
+
if (!rendered) {
|
|
55
|
+
return createPdfJsxNode("Fragment", { children: [] }, key);
|
|
56
|
+
}
|
|
57
|
+
if (key !== void 0 && key !== null && rendered.key == null) {
|
|
58
|
+
return { ...rendered, key };
|
|
59
|
+
}
|
|
60
|
+
return rendered;
|
|
61
|
+
}
|
|
62
|
+
return createPdfJsxNode(type, props, key);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// src/jsx/jsx-runtime.ts
|
|
66
|
+
function jsx(type, props, key) {
|
|
67
|
+
return evaluatePdfJsxElement(type, props, key);
|
|
68
|
+
}
|
|
69
|
+
function jsxs(type, props, key) {
|
|
70
|
+
return evaluatePdfJsxElement(type, props, key);
|
|
71
|
+
}
|
|
72
|
+
function jsxDEV(type, props, key) {
|
|
73
|
+
return evaluatePdfJsxElement(type, props, key);
|
|
74
|
+
}
|
|
75
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
76
|
+
0 && (module.exports = {
|
|
77
|
+
Fragment,
|
|
78
|
+
jsx,
|
|
79
|
+
jsxDEV,
|
|
80
|
+
jsxs
|
|
81
|
+
});
|
|
82
|
+
//# sourceMappingURL=jsx-dev-runtime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/jsx/jsx-dev-runtime.ts","../../../src/jsx/types.ts","../../../src/jsx/node.ts","../../../src/jsx/jsx-runtime.ts"],"sourcesContent":["export { Fragment, jsx, jsxDEV, jsxs, type JSX } from './jsx-runtime';\n","import type { PdfPaperPresetName } from '../diagnostics/pdf-template-doctor';\nimport type { IPdfExportOptions } from '../exporter/pdf-exporter';\nimport type {\n PdfBarcodeFormat,\n PdfColorSpaceType,\n PdfTextFormatMode,\n} from '../types/pdf-data';\n\nexport const PDF_JSX_ELEMENT_SYMBOL = Symbol.for('univer.pdfs.jsx.element');\nexport const PDF_JSX_FRAGMENT_SYMBOL = Symbol.for('univer.pdfs.jsx.fragment');\n\nexport type PdfJsxIntrinsicKind =\n | 'Fragment'\n | 'Document'\n | 'Page'\n | 'Header'\n | 'Footer'\n | 'Static'\n | 'Absolute'\n | 'Stack'\n | 'Row'\n | 'Box'\n | 'Spacer'\n | 'PageBreak'\n | 'Text'\n | 'MultiVariableText'\n | 'Image'\n | 'Svg'\n | 'Rectangle'\n | 'Ellipse'\n | 'Line'\n | 'List'\n | 'Table'\n | 'Barcode'\n | 'QrCode';\n\nexport type PdfJsxPaddingSpec =\n | number\n | [number, number]\n | [number, number, number, number]\n | { top?: number; right?: number; bottom?: number; left?: number };\n\nexport type PdfJsxChild =\n | IPdfJsxNode\n | string\n | number\n | boolean\n | null\n | undefined\n | PdfJsxChild[];\n\nexport interface IPdfJsxNode<P = Record<string, any>> {\n $$typeof: typeof PDF_JSX_ELEMENT_SYMBOL;\n kind: PdfJsxIntrinsicKind;\n props: P;\n key?: string | number | null;\n}\n\nexport type PdfJsxComponent<P = any> = (props: P) => IPdfJsxNode | null;\n\nexport interface IJsxContainerStyleProps {\n /** Width in millimeters (optional; defaults to available parent width or flex share) */\n width?: number;\n /** Fixed or minimum height in millimeters */\n height?: number;\n minHeight?: number;\n /** Flex grow factor inside `<Row>` */\n flex?: number;\n /** Padding in millimeters */\n padding?: PdfJsxPaddingSpec;\n backgroundColor?: string;\n borderColor?: string;\n /** Border stroke width in points (default `0` unless `borderColor` is set, then `1`) */\n borderWidth?: number;\n borderDashArray?: number[];\n opacity?: number;\n name?: string;\n children?: PdfJsxChild;\n}\n\nexport interface IJsxDocumentProps {\n name?: string;\n title?: string;\n colorType?: PdfColorSpaceType;\n sampleData?: Record<string, unknown>;\n children?: PdfJsxChild;\n}\n\nexport interface IJsxPageProps {\n size?: PdfPaperPresetName | string | { width: number; height: number };\n orientation?: 'portrait' | 'landscape';\n /** Page margins in millimeters (default `[15, 15, 15, 15]`) */\n padding?: PdfJsxPaddingSpec;\n margins?: PdfJsxPaddingSpec;\n backgroundColor?: string;\n title?: string;\n children?: PdfJsxChild;\n}\n\nexport interface IJsxHeaderFooterProps extends IJsxContainerStyleProps {\n /** Vertical offset in millimeters from top (for Header) or bottom (for Footer) */\n offsetMm?: number;\n}\n\nexport interface IJsxStaticProps {\n x?: number;\n y?: number;\n width?: number;\n height?: number;\n children?: PdfJsxChild;\n}\n\nexport interface IJsxAbsoluteProps extends IJsxContainerStyleProps {\n /** X position in millimeters from page left */\n x: number;\n /** Y position in millimeters from page top */\n y: number;\n rotate?: number;\n flipX?: boolean;\n flipY?: boolean;\n}\n\nexport interface IJsxStackProps extends IJsxContainerStyleProps {\n /** Vertical gap between children in millimeters (default `0`) */\n gap?: number;\n alignItems?: 'start' | 'center' | 'end' | 'stretch';\n}\n\nexport interface IJsxRowProps extends IJsxContainerStyleProps {\n /** Horizontal gap between children in millimeters (default `0`) */\n gap?: number;\n alignItems?: 'start' | 'center' | 'end' | 'stretch';\n justifyContent?: 'start' | 'center' | 'end' | 'space-between';\n}\n\nexport interface IJsxBoxProps extends IJsxContainerStyleProps {\n gap?: number;\n}\n\nexport interface IJsxSpacerProps {\n /** Size in millimeters (vertical in `<Stack>`, horizontal in `<Row>`) */\n size?: number;\n width?: number;\n height?: number;\n flex?: number;\n}\n\nexport interface IJsxPageBreakProps {\n key?: string | number;\n}\n\nexport interface IJsxTextProps {\n name?: string;\n field?: string;\n content?: string;\n width?: number;\n height?: number;\n flex?: number;\n fontSize?: number;\n fontFamily?: string;\n fontWeight?: 'normal' | 'bold';\n bold?: boolean;\n italic?: boolean;\n underline?: boolean;\n color?: string;\n backgroundColor?: string;\n borderColor?: string;\n borderWidth?: number;\n padding?: number;\n lineHeight?: number;\n align?: 'left' | 'center' | 'right';\n verticalAlign?: 'top' | 'middle' | 'bottom';\n textFormat?: PdfTextFormatMode;\n overflow?: 'clip' | 'shrink' | 'expand';\n rotate?: number;\n flipX?: boolean;\n flipY?: boolean;\n required?: boolean;\n linkUrl?: string;\n children?: PdfJsxChild;\n}\n\nexport interface IJsxMultiVariableTextProps extends IJsxTextProps {\n variables?: string[];\n}\n\nexport interface IJsxImageProps {\n name?: string;\n field?: string;\n src?: string;\n width?: number;\n height?: number;\n flex?: number;\n fit?: 'contain' | 'cover' | 'fill';\n objectPosition?: string;\n alt?: string;\n opacity?: number;\n rotate?: number;\n flipX?: boolean;\n flipY?: boolean;\n}\n\nexport interface IJsxSvgProps {\n name?: string;\n field?: string;\n svg?: string;\n content?: string;\n width?: number;\n height?: number;\n flex?: number;\n opacity?: number;\n rotate?: number;\n flipX?: boolean;\n flipY?: boolean;\n children?: PdfJsxChild;\n}\n\nexport interface IJsxShapeProps {\n name?: string;\n width?: number;\n height?: number;\n flex?: number;\n fill?: string;\n fillColor?: string;\n stroke?: string;\n strokeColor?: string;\n strokeWidth?: number;\n dashArray?: number[];\n opacity?: number;\n rotate?: number;\n flipX?: boolean;\n flipY?: boolean;\n}\n\nexport interface IJsxLineProps {\n name?: string;\n width?: number;\n height?: number;\n flex?: number;\n color?: string;\n strokeColor?: string;\n thickness?: number;\n strokeWidth?: number;\n dashArray?: number[];\n startArrow?: boolean;\n endArrow?: boolean;\n opacity?: number;\n rotate?: number;\n}\n\nexport interface IJsxListProps {\n name?: string;\n items?: string[];\n ordered?: boolean;\n listType?: 'bullet' | 'ordered' | 'check';\n width?: number;\n height?: number;\n flex?: number;\n fontSize?: number;\n lineHeight?: number;\n color?: string;\n overflow?: 'clip' | 'expand';\n children?: PdfJsxChild;\n}\n\nexport interface IJsxTableColumnSpec {\n header: string;\n field?: string;\n widthRatio?: number;\n align?: 'left' | 'center' | 'right';\n format?: 'text' | 'number' | 'currency' | 'percent';\n currencySymbol?: string;\n decimals?: number;\n summaryType?: 'none' | 'sum' | 'avg' | 'count';\n}\n\nexport interface IJsxTableProps {\n name?: string;\n field?: string;\n columns?: Array<string | IJsxTableColumnSpec>;\n rows?: unknown[][];\n width?: number;\n height?: number;\n flex?: number;\n headerHeight?: number;\n rowHeight?: number;\n borderColor?: string;\n zebraStripeColor?: string;\n showPageSubtotal?: boolean;\n showGrandTotal?: boolean;\n avoidOrphanHeader?: boolean;\n}\n\nexport interface IJsxBarcodeProps {\n name?: string;\n field?: string;\n value?: string;\n content?: string;\n format?: PdfBarcodeFormat;\n width?: number;\n height?: number;\n flex?: number;\n displayValue?: boolean;\n foregroundColor?: string;\n backgroundColor?: string;\n rotate?: number;\n}\n\nexport interface IJsxQrCodeProps {\n name?: string;\n field?: string;\n value?: string;\n content?: string;\n size?: number;\n width?: number;\n height?: number;\n flex?: number;\n foregroundColor?: string;\n backgroundColor?: string;\n rotate?: number;\n}\n\nexport interface IRenderJsxOptions {\n name?: string;\n defaultPageSize?: PdfPaperPresetName | string | { width: number; height: number };\n defaultPaddingMm?: PdfJsxPaddingSpec;\n}\n\nexport interface IExportJsxToPdfOptions extends IRenderJsxOptions, IPdfExportOptions {}\n","import {\n type IPdfJsxNode,\n PDF_JSX_ELEMENT_SYMBOL,\n PDF_JSX_FRAGMENT_SYMBOL,\n type PdfJsxChild,\n type PdfJsxComponent,\n type PdfJsxIntrinsicKind,\n type PdfJsxPaddingSpec,\n} from './types';\n\nexport function isPdfJsxNode(value: unknown): value is IPdfJsxNode {\n return Boolean(\n value &&\n typeof value === 'object' &&\n (value as IPdfJsxNode).$$typeof === PDF_JSX_ELEMENT_SYMBOL &&\n typeof (value as IPdfJsxNode).kind === 'string'\n );\n}\n\nexport function createPdfJsxNode<P extends Record<string, any>>(\n kind: PdfJsxIntrinsicKind,\n props?: P | null,\n key?: string | number | null\n): IPdfJsxNode<P> {\n return {\n $$typeof: PDF_JSX_ELEMENT_SYMBOL,\n kind,\n props: (props ?? ({} as P)) as P,\n key: key ?? null,\n };\n}\n\n/**\n * Zero-React JSX Fragment component (`<>...</>`).\n */\nexport function Fragment(props: { children?: PdfJsxChild }): IPdfJsxNode<{ children?: PdfJsxChild }> {\n return createPdfJsxNode('Fragment', props);\n}\n(Fragment as any).$$fragment = PDF_JSX_FRAGMENT_SYMBOL;\n\n/**\n * Evaluates a JSX tag (`string`, `Fragment`, or function component) into a normalized `IPdfJsxNode`.\n */\nexport function evaluatePdfJsxElement(\n type: PdfJsxIntrinsicKind | typeof PDF_JSX_FRAGMENT_SYMBOL | PdfJsxComponent | string,\n rawProps: Record<string, any> | null | undefined,\n key?: string | number | null\n): IPdfJsxNode {\n const props = rawProps ? { ...rawProps } : {};\n if (type === PDF_JSX_FRAGMENT_SYMBOL || type === Fragment || type === 'Fragment') {\n return createPdfJsxNode('Fragment', props, key);\n }\n if (typeof type === 'function') {\n const rendered = type(props);\n if (!rendered) {\n return createPdfJsxNode('Fragment', { children: [] }, key);\n }\n if (key !== undefined && key !== null && rendered.key == null) {\n return { ...rendered, key };\n }\n return rendered;\n }\n return createPdfJsxNode(type as PdfJsxIntrinsicKind, props, key);\n}\n\n/**\n * Flattens nested `Fragment`s and arrays of `PdfJsxChild` into concrete `IPdfJsxNode` children\n * (converting stray primitive strings/numbers into `<Text>` nodes when inside layout containers).\n */\nexport function flattenJsxChildrenToNodes(children: PdfJsxChild): IPdfJsxNode[] {\n const out: IPdfJsxNode[] = [];\n\n const visit = (item: PdfJsxChild) => {\n if (item === null || item === undefined || typeof item === 'boolean') return;\n if (Array.isArray(item)) {\n for (const sub of item) visit(sub);\n return;\n }\n if (isPdfJsxNode(item)) {\n if (item.kind === 'Fragment') {\n visit(item.props?.children);\n } else {\n out.push(item);\n }\n return;\n }\n if (typeof item === 'string' || typeof item === 'number') {\n const str = String(item);\n if (str.length > 0) {\n out.push(createPdfJsxNode('Text', { content: str }));\n }\n }\n };\n\n visit(children);\n return out;\n}\n\n/**\n * Extracts concatenated plain string text from JSX `children` (for `<Text>{'Invoice #'}{101}</Text>`).\n */\nexport function extractJsxTextContent(children: PdfJsxChild, fallback = ''): string {\n if (children === null || children === undefined || typeof children === 'boolean') {\n return fallback;\n }\n const parts: string[] = [];\n const visit = (item: PdfJsxChild) => {\n if (item === null || item === undefined || typeof item === 'boolean') return;\n if (Array.isArray(item)) {\n for (const sub of item) visit(sub);\n return;\n }\n if (typeof item === 'string' || typeof item === 'number') {\n parts.push(String(item));\n return;\n }\n if (isPdfJsxNode(item)) {\n if (typeof item.props?.content === 'string') {\n parts.push(item.props.content);\n } else if (item.props?.children !== undefined) {\n visit(item.props.children);\n }\n }\n };\n visit(children);\n return parts.length > 0 ? parts.join('') : fallback;\n}\n\n/**\n * Normalizes a `PdfJsxPaddingSpec` into `[topMm, rightMm, bottomMm, leftMm]`.\n */\nexport function resolvePaddingMm(\n spec: PdfJsxPaddingSpec | undefined,\n defaultAll = 0\n): [number, number, number, number] {\n if (spec === undefined || spec === null) {\n return [defaultAll, defaultAll, defaultAll, defaultAll];\n }\n if (typeof spec === 'number') {\n const v = Math.max(0, spec);\n return [v, v, v, v];\n }\n if (Array.isArray(spec)) {\n if (spec.length === 2) {\n const v = Math.max(0, spec[0]);\n const h = Math.max(0, spec[1]);\n return [v, h, v, h];\n }\n return [\n Math.max(0, spec[0] ?? 0),\n Math.max(0, spec[1] ?? 0),\n Math.max(0, spec[2] ?? 0),\n Math.max(0, spec[3] ?? 0),\n ];\n }\n return [\n Math.max(0, spec.top ?? 0),\n Math.max(0, spec.right ?? 0),\n Math.max(0, spec.bottom ?? 0),\n Math.max(0, spec.left ?? 0),\n ];\n}\n","import { evaluatePdfJsxElement, Fragment } from './node';\nimport type {\n IPdfJsxNode,\n PDF_JSX_FRAGMENT_SYMBOL,\n PdfJsxComponent,\n PdfJsxIntrinsicKind,\n} from './types';\n\nexport { Fragment };\n\nexport function jsx(\n type: PdfJsxIntrinsicKind | typeof PDF_JSX_FRAGMENT_SYMBOL | PdfJsxComponent | string,\n props: Record<string, any> | null,\n key?: string | number\n): IPdfJsxNode {\n return evaluatePdfJsxElement(type, props, key);\n}\n\nexport function jsxs(\n type: PdfJsxIntrinsicKind | typeof PDF_JSX_FRAGMENT_SYMBOL | PdfJsxComponent | string,\n props: Record<string, any> | null,\n key?: string | number\n): IPdfJsxNode {\n return evaluatePdfJsxElement(type, props, key);\n}\n\nexport function jsxDEV(\n type: PdfJsxIntrinsicKind | typeof PDF_JSX_FRAGMENT_SYMBOL | PdfJsxComponent | string,\n props: Record<string, any> | null,\n key?: string | number\n): IPdfJsxNode {\n return evaluatePdfJsxElement(type, props, key);\n}\n\n// eslint-disable-next-line @typescript-eslint/no-namespace\nexport namespace JSX {\n export type Element = IPdfJsxNode;\n export interface ElementChildrenAttribute {\n children: {};\n }\n export interface IntrinsicAttributes {\n key?: string | number | null;\n }\n export interface IntrinsicElements {\n [elemName: string]: Record<string, any>;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACQO,IAAM,yBAAyB,uBAAO,IAAI,yBAAyB;AACnE,IAAM,0BAA0B,uBAAO,IAAI,0BAA0B;;;ACUrE,SAAS,iBACd,MACA,OACA,KACgB;AAChB,SAAO;AAAA,IACL,UAAU;AAAA,IACV;AAAA,IACA,OAAQ,SAAU,CAAC;AAAA,IACnB,KAAK,OAAO;AAAA,EACd;AACF;AAKO,SAAS,SAAS,OAA4E;AACnG,SAAO,iBAAiB,YAAY,KAAK;AAC3C;AACC,SAAiB,aAAa;AAKxB,SAAS,sBACd,MACA,UACA,KACa;AACb,QAAM,QAAQ,WAAW,EAAE,GAAG,SAAS,IAAI,CAAC;AAC5C,MAAI,SAAS,2BAA2B,SAAS,YAAY,SAAS,YAAY;AAChF,WAAO,iBAAiB,YAAY,OAAO,GAAG;AAAA,EAChD;AACA,MAAI,OAAO,SAAS,YAAY;AAC9B,UAAM,WAAW,KAAK,KAAK;AAC3B,QAAI,CAAC,UAAU;AACb,aAAO,iBAAiB,YAAY,EAAE,UAAU,CAAC,EAAE,GAAG,GAAG;AAAA,IAC3D;AACA,QAAI,QAAQ,UAAa,QAAQ,QAAQ,SAAS,OAAO,MAAM;AAC7D,aAAO,EAAE,GAAG,UAAU,IAAI;AAAA,IAC5B;AACA,WAAO;AAAA,EACT;AACA,SAAO,iBAAiB,MAA6B,OAAO,GAAG;AACjE;;;ACrDO,SAAS,IACd,MACA,OACA,KACa;AACb,SAAO,sBAAsB,MAAM,OAAO,GAAG;AAC/C;AAEO,SAAS,KACd,MACA,OACA,KACa;AACb,SAAO,sBAAsB,MAAM,OAAO,GAAG;AAC/C;AAEO,SAAS,OACd,MACA,OACA,KACa;AACb,SAAO,sBAAsB,MAAM,OAAO,GAAG;AAC/C;","names":[]}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/jsx/jsx-runtime.ts
|
|
21
|
+
var jsx_runtime_exports = {};
|
|
22
|
+
__export(jsx_runtime_exports, {
|
|
23
|
+
Fragment: () => Fragment,
|
|
24
|
+
jsx: () => jsx,
|
|
25
|
+
jsxDEV: () => jsxDEV,
|
|
26
|
+
jsxs: () => jsxs
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(jsx_runtime_exports);
|
|
29
|
+
|
|
30
|
+
// src/jsx/types.ts
|
|
31
|
+
var PDF_JSX_ELEMENT_SYMBOL = /* @__PURE__ */ Symbol.for("univer.pdfs.jsx.element");
|
|
32
|
+
var PDF_JSX_FRAGMENT_SYMBOL = /* @__PURE__ */ Symbol.for("univer.pdfs.jsx.fragment");
|
|
33
|
+
|
|
34
|
+
// src/jsx/node.ts
|
|
35
|
+
function createPdfJsxNode(kind, props, key) {
|
|
36
|
+
return {
|
|
37
|
+
$$typeof: PDF_JSX_ELEMENT_SYMBOL,
|
|
38
|
+
kind,
|
|
39
|
+
props: props ?? {},
|
|
40
|
+
key: key ?? null
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function Fragment(props) {
|
|
44
|
+
return createPdfJsxNode("Fragment", props);
|
|
45
|
+
}
|
|
46
|
+
Fragment.$$fragment = PDF_JSX_FRAGMENT_SYMBOL;
|
|
47
|
+
function evaluatePdfJsxElement(type, rawProps, key) {
|
|
48
|
+
const props = rawProps ? { ...rawProps } : {};
|
|
49
|
+
if (type === PDF_JSX_FRAGMENT_SYMBOL || type === Fragment || type === "Fragment") {
|
|
50
|
+
return createPdfJsxNode("Fragment", props, key);
|
|
51
|
+
}
|
|
52
|
+
if (typeof type === "function") {
|
|
53
|
+
const rendered = type(props);
|
|
54
|
+
if (!rendered) {
|
|
55
|
+
return createPdfJsxNode("Fragment", { children: [] }, key);
|
|
56
|
+
}
|
|
57
|
+
if (key !== void 0 && key !== null && rendered.key == null) {
|
|
58
|
+
return { ...rendered, key };
|
|
59
|
+
}
|
|
60
|
+
return rendered;
|
|
61
|
+
}
|
|
62
|
+
return createPdfJsxNode(type, props, key);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// src/jsx/jsx-runtime.ts
|
|
66
|
+
function jsx(type, props, key) {
|
|
67
|
+
return evaluatePdfJsxElement(type, props, key);
|
|
68
|
+
}
|
|
69
|
+
function jsxs(type, props, key) {
|
|
70
|
+
return evaluatePdfJsxElement(type, props, key);
|
|
71
|
+
}
|
|
72
|
+
function jsxDEV(type, props, key) {
|
|
73
|
+
return evaluatePdfJsxElement(type, props, key);
|
|
74
|
+
}
|
|
75
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
76
|
+
0 && (module.exports = {
|
|
77
|
+
Fragment,
|
|
78
|
+
jsx,
|
|
79
|
+
jsxDEV,
|
|
80
|
+
jsxs
|
|
81
|
+
});
|
|
82
|
+
//# sourceMappingURL=jsx-runtime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/jsx/jsx-runtime.ts","../../../src/jsx/types.ts","../../../src/jsx/node.ts"],"sourcesContent":["import { evaluatePdfJsxElement, Fragment } from './node';\nimport type {\n IPdfJsxNode,\n PDF_JSX_FRAGMENT_SYMBOL,\n PdfJsxComponent,\n PdfJsxIntrinsicKind,\n} from './types';\n\nexport { Fragment };\n\nexport function jsx(\n type: PdfJsxIntrinsicKind | typeof PDF_JSX_FRAGMENT_SYMBOL | PdfJsxComponent | string,\n props: Record<string, any> | null,\n key?: string | number\n): IPdfJsxNode {\n return evaluatePdfJsxElement(type, props, key);\n}\n\nexport function jsxs(\n type: PdfJsxIntrinsicKind | typeof PDF_JSX_FRAGMENT_SYMBOL | PdfJsxComponent | string,\n props: Record<string, any> | null,\n key?: string | number\n): IPdfJsxNode {\n return evaluatePdfJsxElement(type, props, key);\n}\n\nexport function jsxDEV(\n type: PdfJsxIntrinsicKind | typeof PDF_JSX_FRAGMENT_SYMBOL | PdfJsxComponent | string,\n props: Record<string, any> | null,\n key?: string | number\n): IPdfJsxNode {\n return evaluatePdfJsxElement(type, props, key);\n}\n\n// eslint-disable-next-line @typescript-eslint/no-namespace\nexport namespace JSX {\n export type Element = IPdfJsxNode;\n export interface ElementChildrenAttribute {\n children: {};\n }\n export interface IntrinsicAttributes {\n key?: string | number | null;\n }\n export interface IntrinsicElements {\n [elemName: string]: Record<string, any>;\n }\n}\n","import type { PdfPaperPresetName } from '../diagnostics/pdf-template-doctor';\nimport type { IPdfExportOptions } from '../exporter/pdf-exporter';\nimport type {\n PdfBarcodeFormat,\n PdfColorSpaceType,\n PdfTextFormatMode,\n} from '../types/pdf-data';\n\nexport const PDF_JSX_ELEMENT_SYMBOL = Symbol.for('univer.pdfs.jsx.element');\nexport const PDF_JSX_FRAGMENT_SYMBOL = Symbol.for('univer.pdfs.jsx.fragment');\n\nexport type PdfJsxIntrinsicKind =\n | 'Fragment'\n | 'Document'\n | 'Page'\n | 'Header'\n | 'Footer'\n | 'Static'\n | 'Absolute'\n | 'Stack'\n | 'Row'\n | 'Box'\n | 'Spacer'\n | 'PageBreak'\n | 'Text'\n | 'MultiVariableText'\n | 'Image'\n | 'Svg'\n | 'Rectangle'\n | 'Ellipse'\n | 'Line'\n | 'List'\n | 'Table'\n | 'Barcode'\n | 'QrCode';\n\nexport type PdfJsxPaddingSpec =\n | number\n | [number, number]\n | [number, number, number, number]\n | { top?: number; right?: number; bottom?: number; left?: number };\n\nexport type PdfJsxChild =\n | IPdfJsxNode\n | string\n | number\n | boolean\n | null\n | undefined\n | PdfJsxChild[];\n\nexport interface IPdfJsxNode<P = Record<string, any>> {\n $$typeof: typeof PDF_JSX_ELEMENT_SYMBOL;\n kind: PdfJsxIntrinsicKind;\n props: P;\n key?: string | number | null;\n}\n\nexport type PdfJsxComponent<P = any> = (props: P) => IPdfJsxNode | null;\n\nexport interface IJsxContainerStyleProps {\n /** Width in millimeters (optional; defaults to available parent width or flex share) */\n width?: number;\n /** Fixed or minimum height in millimeters */\n height?: number;\n minHeight?: number;\n /** Flex grow factor inside `<Row>` */\n flex?: number;\n /** Padding in millimeters */\n padding?: PdfJsxPaddingSpec;\n backgroundColor?: string;\n borderColor?: string;\n /** Border stroke width in points (default `0` unless `borderColor` is set, then `1`) */\n borderWidth?: number;\n borderDashArray?: number[];\n opacity?: number;\n name?: string;\n children?: PdfJsxChild;\n}\n\nexport interface IJsxDocumentProps {\n name?: string;\n title?: string;\n colorType?: PdfColorSpaceType;\n sampleData?: Record<string, unknown>;\n children?: PdfJsxChild;\n}\n\nexport interface IJsxPageProps {\n size?: PdfPaperPresetName | string | { width: number; height: number };\n orientation?: 'portrait' | 'landscape';\n /** Page margins in millimeters (default `[15, 15, 15, 15]`) */\n padding?: PdfJsxPaddingSpec;\n margins?: PdfJsxPaddingSpec;\n backgroundColor?: string;\n title?: string;\n children?: PdfJsxChild;\n}\n\nexport interface IJsxHeaderFooterProps extends IJsxContainerStyleProps {\n /** Vertical offset in millimeters from top (for Header) or bottom (for Footer) */\n offsetMm?: number;\n}\n\nexport interface IJsxStaticProps {\n x?: number;\n y?: number;\n width?: number;\n height?: number;\n children?: PdfJsxChild;\n}\n\nexport interface IJsxAbsoluteProps extends IJsxContainerStyleProps {\n /** X position in millimeters from page left */\n x: number;\n /** Y position in millimeters from page top */\n y: number;\n rotate?: number;\n flipX?: boolean;\n flipY?: boolean;\n}\n\nexport interface IJsxStackProps extends IJsxContainerStyleProps {\n /** Vertical gap between children in millimeters (default `0`) */\n gap?: number;\n alignItems?: 'start' | 'center' | 'end' | 'stretch';\n}\n\nexport interface IJsxRowProps extends IJsxContainerStyleProps {\n /** Horizontal gap between children in millimeters (default `0`) */\n gap?: number;\n alignItems?: 'start' | 'center' | 'end' | 'stretch';\n justifyContent?: 'start' | 'center' | 'end' | 'space-between';\n}\n\nexport interface IJsxBoxProps extends IJsxContainerStyleProps {\n gap?: number;\n}\n\nexport interface IJsxSpacerProps {\n /** Size in millimeters (vertical in `<Stack>`, horizontal in `<Row>`) */\n size?: number;\n width?: number;\n height?: number;\n flex?: number;\n}\n\nexport interface IJsxPageBreakProps {\n key?: string | number;\n}\n\nexport interface IJsxTextProps {\n name?: string;\n field?: string;\n content?: string;\n width?: number;\n height?: number;\n flex?: number;\n fontSize?: number;\n fontFamily?: string;\n fontWeight?: 'normal' | 'bold';\n bold?: boolean;\n italic?: boolean;\n underline?: boolean;\n color?: string;\n backgroundColor?: string;\n borderColor?: string;\n borderWidth?: number;\n padding?: number;\n lineHeight?: number;\n align?: 'left' | 'center' | 'right';\n verticalAlign?: 'top' | 'middle' | 'bottom';\n textFormat?: PdfTextFormatMode;\n overflow?: 'clip' | 'shrink' | 'expand';\n rotate?: number;\n flipX?: boolean;\n flipY?: boolean;\n required?: boolean;\n linkUrl?: string;\n children?: PdfJsxChild;\n}\n\nexport interface IJsxMultiVariableTextProps extends IJsxTextProps {\n variables?: string[];\n}\n\nexport interface IJsxImageProps {\n name?: string;\n field?: string;\n src?: string;\n width?: number;\n height?: number;\n flex?: number;\n fit?: 'contain' | 'cover' | 'fill';\n objectPosition?: string;\n alt?: string;\n opacity?: number;\n rotate?: number;\n flipX?: boolean;\n flipY?: boolean;\n}\n\nexport interface IJsxSvgProps {\n name?: string;\n field?: string;\n svg?: string;\n content?: string;\n width?: number;\n height?: number;\n flex?: number;\n opacity?: number;\n rotate?: number;\n flipX?: boolean;\n flipY?: boolean;\n children?: PdfJsxChild;\n}\n\nexport interface IJsxShapeProps {\n name?: string;\n width?: number;\n height?: number;\n flex?: number;\n fill?: string;\n fillColor?: string;\n stroke?: string;\n strokeColor?: string;\n strokeWidth?: number;\n dashArray?: number[];\n opacity?: number;\n rotate?: number;\n flipX?: boolean;\n flipY?: boolean;\n}\n\nexport interface IJsxLineProps {\n name?: string;\n width?: number;\n height?: number;\n flex?: number;\n color?: string;\n strokeColor?: string;\n thickness?: number;\n strokeWidth?: number;\n dashArray?: number[];\n startArrow?: boolean;\n endArrow?: boolean;\n opacity?: number;\n rotate?: number;\n}\n\nexport interface IJsxListProps {\n name?: string;\n items?: string[];\n ordered?: boolean;\n listType?: 'bullet' | 'ordered' | 'check';\n width?: number;\n height?: number;\n flex?: number;\n fontSize?: number;\n lineHeight?: number;\n color?: string;\n overflow?: 'clip' | 'expand';\n children?: PdfJsxChild;\n}\n\nexport interface IJsxTableColumnSpec {\n header: string;\n field?: string;\n widthRatio?: number;\n align?: 'left' | 'center' | 'right';\n format?: 'text' | 'number' | 'currency' | 'percent';\n currencySymbol?: string;\n decimals?: number;\n summaryType?: 'none' | 'sum' | 'avg' | 'count';\n}\n\nexport interface IJsxTableProps {\n name?: string;\n field?: string;\n columns?: Array<string | IJsxTableColumnSpec>;\n rows?: unknown[][];\n width?: number;\n height?: number;\n flex?: number;\n headerHeight?: number;\n rowHeight?: number;\n borderColor?: string;\n zebraStripeColor?: string;\n showPageSubtotal?: boolean;\n showGrandTotal?: boolean;\n avoidOrphanHeader?: boolean;\n}\n\nexport interface IJsxBarcodeProps {\n name?: string;\n field?: string;\n value?: string;\n content?: string;\n format?: PdfBarcodeFormat;\n width?: number;\n height?: number;\n flex?: number;\n displayValue?: boolean;\n foregroundColor?: string;\n backgroundColor?: string;\n rotate?: number;\n}\n\nexport interface IJsxQrCodeProps {\n name?: string;\n field?: string;\n value?: string;\n content?: string;\n size?: number;\n width?: number;\n height?: number;\n flex?: number;\n foregroundColor?: string;\n backgroundColor?: string;\n rotate?: number;\n}\n\nexport interface IRenderJsxOptions {\n name?: string;\n defaultPageSize?: PdfPaperPresetName | string | { width: number; height: number };\n defaultPaddingMm?: PdfJsxPaddingSpec;\n}\n\nexport interface IExportJsxToPdfOptions extends IRenderJsxOptions, IPdfExportOptions {}\n","import {\n type IPdfJsxNode,\n PDF_JSX_ELEMENT_SYMBOL,\n PDF_JSX_FRAGMENT_SYMBOL,\n type PdfJsxChild,\n type PdfJsxComponent,\n type PdfJsxIntrinsicKind,\n type PdfJsxPaddingSpec,\n} from './types';\n\nexport function isPdfJsxNode(value: unknown): value is IPdfJsxNode {\n return Boolean(\n value &&\n typeof value === 'object' &&\n (value as IPdfJsxNode).$$typeof === PDF_JSX_ELEMENT_SYMBOL &&\n typeof (value as IPdfJsxNode).kind === 'string'\n );\n}\n\nexport function createPdfJsxNode<P extends Record<string, any>>(\n kind: PdfJsxIntrinsicKind,\n props?: P | null,\n key?: string | number | null\n): IPdfJsxNode<P> {\n return {\n $$typeof: PDF_JSX_ELEMENT_SYMBOL,\n kind,\n props: (props ?? ({} as P)) as P,\n key: key ?? null,\n };\n}\n\n/**\n * Zero-React JSX Fragment component (`<>...</>`).\n */\nexport function Fragment(props: { children?: PdfJsxChild }): IPdfJsxNode<{ children?: PdfJsxChild }> {\n return createPdfJsxNode('Fragment', props);\n}\n(Fragment as any).$$fragment = PDF_JSX_FRAGMENT_SYMBOL;\n\n/**\n * Evaluates a JSX tag (`string`, `Fragment`, or function component) into a normalized `IPdfJsxNode`.\n */\nexport function evaluatePdfJsxElement(\n type: PdfJsxIntrinsicKind | typeof PDF_JSX_FRAGMENT_SYMBOL | PdfJsxComponent | string,\n rawProps: Record<string, any> | null | undefined,\n key?: string | number | null\n): IPdfJsxNode {\n const props = rawProps ? { ...rawProps } : {};\n if (type === PDF_JSX_FRAGMENT_SYMBOL || type === Fragment || type === 'Fragment') {\n return createPdfJsxNode('Fragment', props, key);\n }\n if (typeof type === 'function') {\n const rendered = type(props);\n if (!rendered) {\n return createPdfJsxNode('Fragment', { children: [] }, key);\n }\n if (key !== undefined && key !== null && rendered.key == null) {\n return { ...rendered, key };\n }\n return rendered;\n }\n return createPdfJsxNode(type as PdfJsxIntrinsicKind, props, key);\n}\n\n/**\n * Flattens nested `Fragment`s and arrays of `PdfJsxChild` into concrete `IPdfJsxNode` children\n * (converting stray primitive strings/numbers into `<Text>` nodes when inside layout containers).\n */\nexport function flattenJsxChildrenToNodes(children: PdfJsxChild): IPdfJsxNode[] {\n const out: IPdfJsxNode[] = [];\n\n const visit = (item: PdfJsxChild) => {\n if (item === null || item === undefined || typeof item === 'boolean') return;\n if (Array.isArray(item)) {\n for (const sub of item) visit(sub);\n return;\n }\n if (isPdfJsxNode(item)) {\n if (item.kind === 'Fragment') {\n visit(item.props?.children);\n } else {\n out.push(item);\n }\n return;\n }\n if (typeof item === 'string' || typeof item === 'number') {\n const str = String(item);\n if (str.length > 0) {\n out.push(createPdfJsxNode('Text', { content: str }));\n }\n }\n };\n\n visit(children);\n return out;\n}\n\n/**\n * Extracts concatenated plain string text from JSX `children` (for `<Text>{'Invoice #'}{101}</Text>`).\n */\nexport function extractJsxTextContent(children: PdfJsxChild, fallback = ''): string {\n if (children === null || children === undefined || typeof children === 'boolean') {\n return fallback;\n }\n const parts: string[] = [];\n const visit = (item: PdfJsxChild) => {\n if (item === null || item === undefined || typeof item === 'boolean') return;\n if (Array.isArray(item)) {\n for (const sub of item) visit(sub);\n return;\n }\n if (typeof item === 'string' || typeof item === 'number') {\n parts.push(String(item));\n return;\n }\n if (isPdfJsxNode(item)) {\n if (typeof item.props?.content === 'string') {\n parts.push(item.props.content);\n } else if (item.props?.children !== undefined) {\n visit(item.props.children);\n }\n }\n };\n visit(children);\n return parts.length > 0 ? parts.join('') : fallback;\n}\n\n/**\n * Normalizes a `PdfJsxPaddingSpec` into `[topMm, rightMm, bottomMm, leftMm]`.\n */\nexport function resolvePaddingMm(\n spec: PdfJsxPaddingSpec | undefined,\n defaultAll = 0\n): [number, number, number, number] {\n if (spec === undefined || spec === null) {\n return [defaultAll, defaultAll, defaultAll, defaultAll];\n }\n if (typeof spec === 'number') {\n const v = Math.max(0, spec);\n return [v, v, v, v];\n }\n if (Array.isArray(spec)) {\n if (spec.length === 2) {\n const v = Math.max(0, spec[0]);\n const h = Math.max(0, spec[1]);\n return [v, h, v, h];\n }\n return [\n Math.max(0, spec[0] ?? 0),\n Math.max(0, spec[1] ?? 0),\n Math.max(0, spec[2] ?? 0),\n Math.max(0, spec[3] ?? 0),\n ];\n }\n return [\n Math.max(0, spec.top ?? 0),\n Math.max(0, spec.right ?? 0),\n Math.max(0, spec.bottom ?? 0),\n Math.max(0, spec.left ?? 0),\n ];\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACQO,IAAM,yBAAyB,uBAAO,IAAI,yBAAyB;AACnE,IAAM,0BAA0B,uBAAO,IAAI,0BAA0B;;;ACUrE,SAAS,iBACd,MACA,OACA,KACgB;AAChB,SAAO;AAAA,IACL,UAAU;AAAA,IACV;AAAA,IACA,OAAQ,SAAU,CAAC;AAAA,IACnB,KAAK,OAAO;AAAA,EACd;AACF;AAKO,SAAS,SAAS,OAA4E;AACnG,SAAO,iBAAiB,YAAY,KAAK;AAC3C;AACC,SAAiB,aAAa;AAKxB,SAAS,sBACd,MACA,UACA,KACa;AACb,QAAM,QAAQ,WAAW,EAAE,GAAG,SAAS,IAAI,CAAC;AAC5C,MAAI,SAAS,2BAA2B,SAAS,YAAY,SAAS,YAAY;AAChF,WAAO,iBAAiB,YAAY,OAAO,GAAG;AAAA,EAChD;AACA,MAAI,OAAO,SAAS,YAAY;AAC9B,UAAM,WAAW,KAAK,KAAK;AAC3B,QAAI,CAAC,UAAU;AACb,aAAO,iBAAiB,YAAY,EAAE,UAAU,CAAC,EAAE,GAAG,GAAG;AAAA,IAC3D;AACA,QAAI,QAAQ,UAAa,QAAQ,QAAQ,SAAS,OAAO,MAAM;AAC7D,aAAO,EAAE,GAAG,UAAU,IAAI;AAAA,IAC5B;AACA,WAAO;AAAA,EACT;AACA,SAAO,iBAAiB,MAA6B,OAAO,GAAG;AACjE;;;AFrDO,SAAS,IACd,MACA,OACA,KACa;AACb,SAAO,sBAAsB,MAAM,OAAO,GAAG;AAC/C;AAEO,SAAS,KACd,MACA,OACA,KACa;AACb,SAAO,sBAAsB,MAAM,OAAO,GAAG;AAC/C;AAEO,SAAS,OACd,MACA,OACA,KACa;AACb,SAAO,sBAAsB,MAAM,OAAO,GAAG;AAC/C;","names":[]}
|