@bicharts/shape-core 0.5.121 → 0.6.0
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/dist/index.mjs +1 -1
- package/dist/testing.mjs +4 -0
- package/dist/types/host/services.d.ts +120 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/models.d.ts +1 -0
- package/dist/types/testing/index.d.ts +13 -0
- package/package.json +6 -1
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! @bicharts/shape-core — Apache-2.0. Bundled reference data: GeoNames (https://www.geonames.org/) CC BY 4.0; US Census/TIGER (public domain). Full text: NOTICE in this package. */
|
|
2
|
-
import{a as dt,b as gt}from"./chunk-UQU75XXR.mjs";import{a as mt,b as pt}from"./chunk-IJXTU62R.mjs";import{A as it,B as rt,C as st,D as at,E as lt,F as ut,G as ct,I as ft,a as
|
|
2
|
+
import{a as dt,b as gt}from"./chunk-UQU75XXR.mjs";import{a as mt,b as pt}from"./chunk-IJXTU62R.mjs";import{A as it,B as rt,C as st,D as at,E as lt,F as ut,G as ct,I as ft,a as De,b as _e,c as Le,d as we,e as Ge,f as Ee,g as Oe,h as ze,i as $e,j as Be,k as He,l as Ke,m as Ue,n as Ve,o as We,p as je,q as qe,r as Ze,s as Xe,t as Ye,u as Je,v as Qe,w as et,x as tt,y as nt,z as ot}from"./chunk-TDTXRIHS.mjs";import{a as ke}from"./chunk-QEH7WTLB.mjs";import{a as Ne,b as Fe}from"./chunk-2LR73DNS.mjs";import{a as U,b as V,c as be,d as Me,e as ve,f as Ie}from"./chunk-OZEOA6ZE.mjs";import{a as b,f as M,g as C,h as v,i as k,j as ge,k as ye,l as K,m as d,n as Ce,o as he,p as Pe,q as I,r as xe,s as Se,t as Re,u as Ae,v as N,w as Te}from"./chunk-E6SVTFAW.mjs";import"./chunk-5MRZID36.mjs";import{a as me,b as pe,c as de}from"./chunk-DMLWYEQ2.mjs";import{a as ee,b as te,d as ne,e as oe,f as ie,g as re,h as se,i as ae,j as le,k as ue,l as ce,m as fe}from"./chunk-FUTSF2X5.mjs";var F=2,q=400;function E(i){return!!M(i)}function S(i){let n=new Set;for(let t of i){if(t==null)continue;let r=b(String(t));if(!v(r)&&!n.has(r)&&(n.add(r),n.size>=q))break}return Array.from(n)}function x(i){let n=S(i);if(n.length===0||O(i)<95)return!1;let t=n.filter(c=>E(c)&&!d(c)).length,r=n.filter(c=>!E(c)&&!!d(c)).length;return t>=1&&t>=r}function W(i,n){if(!d(i))return!1;let t=M(i);return t?n==="world"?!0:K.has(t):!1}function O(i){let n=S(i);if(n.length===0)return 0;let t=0;for(let r of n)E(r)&&t++;return Math.round(t/n.length*1e3)/10}function D(i){let n=S(i);if(n.length===0)return 0;let t=0;for(let r of n)d(r)&&t++;return Math.round(t/n.length*1e3)/10}function $(i){let n=new Set;for(let t of i){if(t==null)continue;let r=String(t).trim();if(!v(b(r))&&!n.has(r)&&(n.add(r),n.size>=q))break}return Array.from(n)}function z(i){let n=$(i);if(n.length===0)return 0;let t=0;for(let r of n)I(r).length>0&&t++;return Math.round(t/n.length*1e3)/10}function j(i,n){return V(n,U)?!0:$(i).some(t=>/^\d{5}(-\d{4})?$/.test(t.replace(/\.0+$/,"")))}function yt(i,n){let t=S(i);if(t.length===0)return 0;let r=0;for(let c of t)N(c,n)&&r++;return Math.round(r/t.length*1e3)/10}function G(i,n){let t=0;for(let r of S(i))n(r)&&t++;return t}function Ct(i,n){let t=0;for(let r of $(i))n(r)&&t++;return t}function ht(i,n,t,r,c){let l=[],a=[],o={},R={},h=new Set(i),f=e=>n.map(s=>s[e]);for(let e of["city","country"]){let s=t?.[e];s&&h.has(s)&&(o[e]=s)}let Y=new Set(c??i);for(let e of["lat","lon"]){let s=t?.[e];s&&Y.has(s)&&(o[e]=s)}let g=t?.zip;if(g&&h.has(g)){let e=f(g),s=z(e);s<95?a.push(`zip=${g} (only ${s}% of values read as ZIPs)`):j(e,g)?o.zip=g:a.push(`zip=${g} (all values are 3-4 digits with nothing to say they are postal)`)}let p=t?.state;if(p&&h.has(p)){let e=f(p),s=S(e);s.length>0&&s.every(u=>W(u,r))?a.push(`state=${p} (every value is "CA", which is both Canada and California)`):x(e)?(a.push(`state=${p} (every value is a country, not a state)`),o.country||(o.country=p)):D(e)<95?a.push(`state=${p} (only ${D(e)}% of values are states/provinces)`):o.state=p}let y=new Set(Object.values(o).filter(Boolean)),A=i.filter(e=>!y.has(e)&&!e.startsWith("__"));if(!o.state){let e=null;for(let s of A){let u=f(s);if(x(u))continue;let m=D(u);if(m<95)continue;let w=G(u,T=>!!d(T)),Q=G(u,T=>!!d(T)&&!W(T,r));w<F&&Q<1||(!e||m>e.pct)&&(e={name:s,pct:m})}e&&(o.state=e.name,y.add(e.name),l.push(`state=${e.name} (${e.pct}% states/provinces)`))}if(!o.zip)for(let e of A){if(y.has(e))continue;let s=f(e),u=z(s);if(!(u<95)&&j(s,e)&&!(Ct(s,m=>I(m).length>0)<F)){o.zip=e,y.add(e),l.push(`zip=${e} (${u}% ZIP codes)`);break}}let P=o.country;if(!P||!x(f(P))){let e=null;for(let s of A){if(y.has(s)||!x(f(s)))continue;let u=O(f(s));(!e||u>e.pct)&&(e={name:s,pct:u})}e&&(P&&(a.push(`country=${P} (only ${O(f(P))}% of values are country identifiers; using ${e.name} instead)`),R.country=P),o.country=e.name,y.add(e.name),l.push(`country=${e.name}`))}if(!o.city){let e=null;for(let s of A){if(y.has(s))continue;let u=f(s),m=yt(u,r);m<k||G(u,w=>N(w,r))<F||(!e||m>e.pct)&&(e={name:s,pct:m})}e&&(o.city=e.name,l.push(`city=${e.name} (${e.pct}% known cities)`))}let B=o.country?f(o.country):[],_=!!o.country&&x(B),J=_?new Set(B.map(e=>M(e==null?null:String(e))).filter(Boolean)).size:0,H=_&&J>=2,L=!!(o.lat&&o.lon)&&n.some(e=>{let s=+String(e[o.lat]??"").trim(),u=+String(e[o.lon]??"").trim();return isFinite(s)&&isFinite(u)&&s>=-90&&s<=90&&u>=-180&&u<=180&&String(e[o.lat]??"").trim()!==""&&String(e[o.lon]??"").trim()!==""});return o.lat&&o.lon&&!L&&a.push(`lat/lon=${o.lat}/${o.lon} (no row holds a usable coordinate pair)`),o.country&&!H&&!(o.city||o.state||o.zip||L)&&a.push(_?`country=${o.country} (every row resolves to the same country - nothing to place apart)`:`country=${o.country} (values are not country identifiers)`),{bind:!!(o.city||o.state||o.zip||H||L)?o:null,backfilled:l,refused:a,...Object.keys(R).length?{labelFallback:R}:{}}}function Z(i,n){let t=n?.freemiumMaxShapeColumns;return typeof t!="number"||!isFinite(t)||t<1?null:!isFinite(i)||i<=t?0:Math.round(i-t)}function Pt(i,n,t){let r=Z(i,n);if(r===null||r<=0)return null;let c=typeof n?.freemiumColumnCapPivot=="number"?n.freemiumColumnCapPivot:4,l=r>c?n?.freemiumColumnCapMessageMany:n?.freemiumColumnCapMessageFew;if(typeof l!="string"||l.trim().length===0)return null;let a=l.split("{n}").join(String(r)).split("{fields}").join(r===1?"field":"fields"),o=X(t);return o.length===0?a:a+" "+o.join(" ")}function X(i){if(!i||i.length===0)return[];let n=[],t=new Map,r=new Map;for(let l of i){let a=typeof l?.dateGroupId=="string"?l.dateGroupId.trim():"";if(a!==""&&(t.has(a)||(n.push(a),t.set(a,0)),l.isDatePart===!0&&t.set(a,t.get(a)+1),l.isReassembledDate===!0&&!r.has(a))){let o=typeof l.sourceField=="string"?l.sourceField.trim():"",R=typeof l.name=="string"?l.name.trim():"",h=o!==""?o:R;h!==""&&r.set(a,h)}}let c=[];for(let l of n){let a=r.get(l),o=t.get(l)??0;!a||o===0||c.push(`'${a}' is a date hierarchy and counts as ${o+1} fields - bind the date itself instead of its hierarchy.`)}return c}export{k as CITY_ROLE_MATCH_PCT,tt as DEFAULT_GAP_FACTOR,re as DEFAULT_TEMPERATURE,oe as GET_RANDOM,Ee as INTENSIVE_SUFFIX_TOKENS,Ge as INTENSIVE_WORD_TOKENS,ft as IndexedText,nt as MAX_RUN_BOUNDS,ze as POSITIONAL_SUFFIX_TOKENS,Oe as POSITIONAL_WORD_TOKENS,dt as PREVIEW_OMITTED_FIELDS,C as ROLE_MATCH_PCT,ne as SIMPLE_STRING_HASH,te as STR,D as admin1MatchPct,qe as allowedAggregations,Ie as buildGeoIsoColumn,Re as buildGeoPointColumns,Te as cityMatchPct,Ae as cityTagsFor,ut as classifyAdditivity,je as classifyForAggregation,ct as classifyNumericValueNature,at as classifyTemporal,Ke as codeNeedsLegacyAggNames,Je as codeReadsColumn,Qe as codeReadsColumnsByRoleOrPosition,He as collapseRepeatedAggPrefix,et as columnsTheCodeReads,Le as countryRegion,Ze as defaultAggregation,ke as detectFormatSignature,be as detectGeo,de as detectOrdinalDomain,st as detectTextDatePattern,mt as engineTypeForSqlType,Ue as englishImplicitAggNames,Pt as freemiumColumnCapRefusal,Z as freemiumColumnsOverCap,X as freemiumDateHierarchyClauses,Be as hasDefaultAggPrefix,lt as hostAggHint,pt as ingest,Xe as isAggregationAllowed,v as isBlankLike,ye as isCityTableLoaded,ie as isDeterministicRefusal,xe as isGeoPointAmbiguity,rt as isIdentifierName,ve as isJoinGeoKind,me as isOrdinalFriendlyName,ce as localMidnightDateColumns,ue as localMidnightToUtcDay,x as looksLikeCountryColumn,it as measureCadence,Fe as monthLookupFor,We as nameLooksIntensiveRate,Ve as nameLooksPositional,ee as nameWords,Ce as normalizeCountry,fe as normalizeLocalMidnightDates,Ne as normalizeMonthKey,b as normalizePlaceName,Pe as normalizeZip5,se as parseDateStable,ot as parseTemporalPoint,gt as payloadPreview,ge as registerCityTable,_e as registerIso3Regions,d as resolveAdmin1,Se as resolveGeoPoint,ht as resolvePointRoles,pe as safeDistinctValuesToShip,Ye as shareOfTotalIsHonest,$e as stripHostAggPrefix,we as summarizeCountryRegions,De as summarizeGeoExtent,Me as toGeoIso,ae as wholeDayFrame,le as wholeDayIso,z as zipMatchPct,I as zipPrefixCandidates,he as zipToPrefix3};
|
package/dist/testing.mjs
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! @bicharts/shape-core — Apache-2.0. Bundled reference data: GeoNames (https://www.geonames.org/) CC BY 4.0; US Census/TIGER (public domain). Full text: NOTICE in this package. */
|
|
2
|
+
var e=class extends Error{contract;failures;constructor(n,i){super(`${n} conformance failed:
|
|
3
|
+
- ${i.join(`
|
|
4
|
+
- `)}`),this.name="ConformanceError",this.contract=n,this.failures=i}},r=class{constructor(n){this.contract=n}contract;failures=[];check(n,i){n||this.failures.push(i)}fail(n){this.failures.push(n)}throwIfFailed(){if(this.failures.length)throw new e(this.contract,this.failures.slice())}},a="H4sIAAAAAAAAA6tWyk0tSs5ITUxRslIqS8wpTVWqBQBL0RbkEwAAAA==",g="H4sIAAAAAAAAA6tWSkksSVSyUsrMyyrKz1OqBQBVrD9YEAAAAA==";function h(t){return t instanceof Error?`${t.name}: ${t.message}`:String(t)}function d(t){let n=new r("WireSigner");(!t||typeof t.sign!="function")&&(n.fail("the signer has no sign() method"),n.throwIfFailed());let i,s,o;try{i=t.sign(a),s=t.sign(a),o=t.sign(g)}catch(c){n.fail(`sign() threw on an ordinary encoded body: ${h(c)}`),n.throwIfFailed()}n.check(typeof i=="string",`sign() returned ${typeof i}, not a string`),n.check(typeof i!="string"||i.trim()!=="","sign() returned a blank signature"),n.check(i===s,"sign() is not deterministic: the same body signed twice gave two signatures"),n.check(i!==o,"sign() gave two different bodies the same signature"),n.throwIfFailed()}export{e as ConformanceError,d as assertWireSignerConformance};
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Signs an encoded request body. Every host that sends requests has one; the key stays in the
|
|
3
|
+
* host (each keeps its own obfuscated literal) and the algorithm lives in the package.
|
|
4
|
+
*
|
|
5
|
+
* `sign` receives the body exactly as it will be sent - already encoded - and returns the
|
|
6
|
+
* signature header value. It must be deterministic for a given body and must never return a
|
|
7
|
+
* blank string: a well-formed signature that every request fails on reads as a network fault.
|
|
8
|
+
*/
|
|
9
|
+
export interface WireSigner {
|
|
10
|
+
sign(encodedBody: string): string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* The response half of a transport. `body` is the raw byte stream when the platform exposes
|
|
14
|
+
* one (browser fetch, Node fetch) and null when it does not; `text()` always works and reads
|
|
15
|
+
* the whole body. A consumer that streams reads `body`; one that does not calls `text()`.
|
|
16
|
+
* Calling both on one response is not supported, as with fetch.
|
|
17
|
+
*/
|
|
18
|
+
export interface WireResponse {
|
|
19
|
+
status: number;
|
|
20
|
+
/** The Content-Type header as sent, or null when the server sent none. */
|
|
21
|
+
contentType: string | null;
|
|
22
|
+
body: ReadableStream<Uint8Array> | null;
|
|
23
|
+
text(): Promise<string>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Posts an encoded body. Every host provides one: the visual over its HTTP client, the
|
|
27
|
+
* add-in over fetch with an abort controller, the MCP server over Node's fetch.
|
|
28
|
+
*
|
|
29
|
+
* `timeoutMs` is the host's deadline for the whole exchange; `signal` lets a caller cancel
|
|
30
|
+
* earlier. A timeout or an abort rejects the promise; an HTTP error status does NOT reject -
|
|
31
|
+
* it resolves with that status, because a 4xx body carries the server's own explanation.
|
|
32
|
+
*/
|
|
33
|
+
export interface WireTransport {
|
|
34
|
+
post(url: string, encodedBody: string, headers: Record<string, string>, opts: {
|
|
35
|
+
timeoutMs: number;
|
|
36
|
+
signal?: AbortSignal;
|
|
37
|
+
}): Promise<WireResponse>;
|
|
38
|
+
}
|
|
39
|
+
/** The licence triple as the wire carries it. Any member may be the empty string. */
|
|
40
|
+
export interface CredentialTriple {
|
|
41
|
+
licensee: string;
|
|
42
|
+
licenseKey: string;
|
|
43
|
+
secretKey: string;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* What a request is entitled by. `triple()` is required: every host that sends requests can
|
|
47
|
+
* answer it, even if every member is empty (a sign-in host before sign-in).
|
|
48
|
+
*
|
|
49
|
+
* Optional members, each from the host matrix:
|
|
50
|
+
* - `linkNonce`: a host that signs in by a linked session rather than a typed key. Today the
|
|
51
|
+
* Excel add-in only; absent elsewhere.
|
|
52
|
+
* - `freemiumKey`: a host with a free tier minted per install. Today the Power BI visual only;
|
|
53
|
+
* the add-in and the MCP server have no free tier by decision, and a page with no
|
|
54
|
+
* credentials has none either.
|
|
55
|
+
* - `instanceKey`: an opaque per-install id for reporting, not a credential. The visual and
|
|
56
|
+
* the add-in mint one; the MCP server does not.
|
|
57
|
+
*
|
|
58
|
+
* Each returns null when the host supports it but has no value right now.
|
|
59
|
+
*/
|
|
60
|
+
export interface CredentialSource {
|
|
61
|
+
triple(): CredentialTriple;
|
|
62
|
+
linkNonce?: (() => string | null) | null;
|
|
63
|
+
freemiumKey?: (() => string | null) | null;
|
|
64
|
+
instanceKey?: (() => string | null) | null;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* The drawing area a request should be sized for, in CSS pixels. Provided by every host that
|
|
68
|
+
* draws: the visual measures its tile, the add-in its pane, a web page its container. The MCP
|
|
69
|
+
* server takes the size as arguments and passes none.
|
|
70
|
+
*/
|
|
71
|
+
export interface ViewportSource {
|
|
72
|
+
measure(): {
|
|
73
|
+
width: number;
|
|
74
|
+
height: number;
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
/** Milliseconds since the epoch. Every host has one; a test passes a fixed one. */
|
|
78
|
+
export interface Clock {
|
|
79
|
+
now(): number;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* One diagnostics breadcrumb: a short event name and an optional detail value. The sink owns
|
|
83
|
+
* timestamping, summarising and shipping - the visual and the add-in each keep a bounded ring
|
|
84
|
+
* and their own ship policy.
|
|
85
|
+
*/
|
|
86
|
+
export interface DiagnosticEntry {
|
|
87
|
+
event: string;
|
|
88
|
+
detail?: unknown;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Where diagnostics breadcrumbs go. The visual and the add-in each provide one (a bounded
|
|
92
|
+
* ring shipped to the server). The MCP server writes to stdio and keeps no verbose log, and a
|
|
93
|
+
* demo page has nothing to ship to, so both pass none. `record` must never throw: a logger
|
|
94
|
+
* that can break what it observes is worse than no logger.
|
|
95
|
+
*/
|
|
96
|
+
export interface DiagnosticsSink {
|
|
97
|
+
record(entry: DiagnosticEntry): void;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* A chart renderer a host can execute. The set a host passes is what it can RUN, and is what
|
|
101
|
+
* the request's supports* fields will be derived from, so a request can no longer ask for a
|
|
102
|
+
* chart its host cannot draw. The MCP server generates without rendering, and passes the set
|
|
103
|
+
* it asks the server for.
|
|
104
|
+
*/
|
|
105
|
+
export type RendererId = "D3" | "PLOTLY" | "VEGA" | "PYTHON";
|
|
106
|
+
/**
|
|
107
|
+
* The wire-level subset of the services object a host constructs. The full object, with the
|
|
108
|
+
* render-level services beside these, is `HostServices` in @bicharts/chart-host.
|
|
109
|
+
*/
|
|
110
|
+
export interface WireServices {
|
|
111
|
+
signer: WireSigner;
|
|
112
|
+
transport: WireTransport;
|
|
113
|
+
credentials: CredentialSource;
|
|
114
|
+
clock: Clock;
|
|
115
|
+
renderers: ReadonlySet<RendererId>;
|
|
116
|
+
/** Absent on the MCP server (sizes come as arguments). */
|
|
117
|
+
viewport?: ViewportSource | null;
|
|
118
|
+
/** Absent on the MCP server (stdio, no verbose log) and on a demo page. */
|
|
119
|
+
diagnostics?: DiagnosticsSink | null;
|
|
120
|
+
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -30,3 +30,4 @@ export type { PayloadPreviewOptions } from "./payloadPreview";
|
|
|
30
30
|
export { codeReadsColumn, codeReadsColumnsByRoleOrPosition, columnsTheCodeReads } from "./codeColumnReads";
|
|
31
31
|
export { freemiumColumnsOverCap, freemiumColumnCapRefusal, freemiumDateHierarchyClauses } from "./freemiumCaps";
|
|
32
32
|
export type { FreemiumColumnCapStatus, FreemiumDateGroupColumn } from "./freemiumCaps";
|
|
33
|
+
export type { WireSigner, WireTransport, WireResponse, CredentialTriple, CredentialSource, ViewportSource, Clock, DiagnosticEntry, DiagnosticsSink, RendererId, WireServices, } from "./host/services";
|
package/dist/types/models.d.ts
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { WireSigner } from "../host/services";
|
|
2
|
+
/** Thrown by every conformance check. `failures` names each property the adapter broke. */
|
|
3
|
+
export declare class ConformanceError extends Error {
|
|
4
|
+
readonly contract: string;
|
|
5
|
+
readonly failures: readonly string[];
|
|
6
|
+
constructor(contract: string, failures: readonly string[]);
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* A WireSigner signs deterministically, returns a non-blank string, and gives two different
|
|
10
|
+
* bodies two different signatures. It does not check the KEY - only the server can say
|
|
11
|
+
* whether a signature is accepted, and a known-answer test in the host is where that lives.
|
|
12
|
+
*/
|
|
13
|
+
export declare function assertWireSignerConformance(signer: WireSigner): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bicharts/shape-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Host-agnostic data-shape profiler: ingest a dataset's rows through IValueCollection.addRow and read back the measured shape as an LLMColumnWithValue[] payload — types, cardinality, temporal/ordinal detection, geographic region and point resolution, cross-column signals. MEASUREMENT only: the policy that decides what a measured shape means for chart selection lives server-side.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -64,6 +64,11 @@
|
|
|
64
64
|
"import": "./dist/payloadPreview.mjs",
|
|
65
65
|
"default": "./dist/payloadPreview.mjs"
|
|
66
66
|
},
|
|
67
|
+
"./testing": {
|
|
68
|
+
"types": "./dist/types/testing/index.d.ts",
|
|
69
|
+
"import": "./dist/testing.mjs",
|
|
70
|
+
"default": "./dist/testing.mjs"
|
|
71
|
+
},
|
|
67
72
|
"./package.json": "./package.json",
|
|
68
73
|
"./geoPointCities": {
|
|
69
74
|
"types": "./dist/types/geoPointCities.generated.d.ts",
|