@graphysdk/viz-engine 1.9.0-beta.1792399585685 → 1.9.0-beta.1792400629887

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.cjs CHANGED
@@ -1,4 +1,4 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var Il=Object.create,Qn=Object.defineProperty,Tl=Object.getOwnPropertyDescriptor,Ll=Object.getOwnPropertyNames,El=Object.getPrototypeOf,Rl=Object.prototype.hasOwnProperty,wl=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=Ll(t),i=0,o=a.length,s;i<o;i++)s=a[i],!Rl.call(e,s)&&s!==r&&Qn(e,s,{get:(l=>t[l]).bind(null,s),enumerable:!(n=Tl(t,s))||n.enumerable});return e},Cl=(e,t,r)=>(r=e!=null?Il(El(e)):{},wl(t||!e||!e.__esModule?Qn(r,"default",{value:e,enumerable:!0}):r,e));const c=require("./annotations-C1es4xyP.cjs"),d=require("./compiler-B_PO2LJB.cjs"),b=require("./spec-builder-BDPzAa9e.cjs");let L=require("lodash-es"),ft=require("humanize-duration");ft=Cl(ft,1);let P=require("d3-shape"),Pl=require("d3-delaunay");typeof window<"u"&&(window.__GRAPHY_SDK__??={},window.__GRAPHY_SDK__.vizEngine="1.9.0-beta.1792399585685");var Ml=1e6;function F(e){return String(Math.round(e*Ml))}function q(e,t){return e.geom===t}var nt="…",ea=(e,t,r)=>{if(t<=0||e.length===0)return"";if(r(e)<=t)return e;if(r(nt)>t)return"";let n=0,a=e.length-1,i=0;for(;n<=a;){const o=n+a>>>1;r(e.slice(0,o)+nt)<=t?(i=o,n=o+1):a=o-1}return e.slice(0,i)+nt};var E={timeZone:"UTC"},T=e=>t=>{if(!c.isStrictTemporalDataValue(t))return"–";try{return e(t)}catch{return"n/a"}},Y=e=>t=>c.isStrictNumericDataValue(t)?e(t):"–",_t=e=>t=>c.isStrictCategoricalDataValue(t)?t:"–",xe=new Map,Ae=new Map,ta=256,me=(e,t)=>{const r=ra(e,t),n=xe.get(r);if(n!==void 0)return n;xe.size>=ta&&xe.clear();const a=new Intl.NumberFormat(e,t);return xe.set(r,a),a},R=(e,t)=>{const r=ra(e,t),n=Ae.get(r);if(n!==void 0)return n;Ae.size>=ta&&Ae.clear();const a=new Intl.DateTimeFormat(e,t);return Ae.set(r,a),a},ra=(e,t)=>`${e}\0${JSON.stringify(t)}`,Dl=ft.default.humanizer({language:"en",spacer:"",delimiter:" ",languages:{en:{y:()=>"y",mo:()=>"mo",w:()=>"w",d:()=>"d",h:()=>"h",m:()=>"m",s:()=>"s",ms:()=>"ms"}}}),Be={signDisplay:"negative"},na=({valueFormat:e,locale:t,numberFormat:r,intlOptions:n})=>Y(a=>{const i=typeof r.decimals=="number"?r.decimals:2,o=Nt(a,i),{base:s,suffix:l}=Vt(a,r.abbreviation);return`${me(t,{...o,...Be,...c.isCurrencyValueFormat(e)?{style:"currency",currencyDisplay:"narrowSymbol",currency:e.iso}:{},...n}).format(s)}${l}`}),aa=({locale:e,numberFormat:t,intlOptions:r})=>Y(n=>{const{base:a,suffix:i}=Vt(n,t.abbreviation);return`${me(e,{...Nt(a,t.decimals),...Be,...r}).format(a)}${i}`}),kt=e=>Y(t=>{const r=Dl(Math.abs(t));return t<0?`-${r}`:r}),ia=({locale:e,intlOptions:t})=>{const r=me(e,{maximumFractionDigits:0,...Be,...t});return Y(n=>r.format(n))},oa=({locale:e,numberFormat:t,intlOptions:r})=>Y(n=>me(e,{...Nt(n,t.decimals),...Be,...r,style:"percent"}).format(n)),Vt=(e,t="none")=>{switch(t){case"none":return{base:e,suffix:""};case"auto":{const r=Ol(e);return Vt(e,r)}default:return{base:e/c.SUFFIX_MULTIPLIERS[t],suffix:t}}},Nt=(e,t)=>{if(typeof t=="number")return{minimumFractionDigits:t,maximumFractionDigits:t};const r=Math.ceil(Math.log10(Math.abs(e))),n=r>=3?0:r===2?1:2;return{minimumFractionDigits:t==="auto"?0:n,maximumFractionDigits:n}},Ol=e=>{const t=Math.abs(e);return t>=c.SUFFIX_MULTIPLIERS.b?"b":t>=c.SUFFIX_MULTIPLIERS.m?"m":t>=c.SUFFIX_MULTIPLIERS.k?"k":"none"},_l=1440*60*1e3,kl=({locale:e,intlOptions:t})=>{const r=R(e,{dateStyle:"medium",...E,...t});return T(n=>r.format(n))},Vl=({locale:e,intlOptions:t})=>{const r=R(e,{dateStyle:"medium",timeStyle:"medium",...E,...t});return T(n=>Nl(r.formatToParts(n)))},sa=({locale:e,intlOptions:t})=>{const r=R(e,{day:"numeric",month:"long",...E,...t});return T(n=>r.format(n))},la=({locale:e,intlOptions:t})=>{const r=R(e,{month:"long",...E,...t});return T(n=>r.format(n))},Ft=({locale:e,intlOptions:t})=>{const r=R(e,{month:"short",year:"numeric",...E,...t});return T(n=>r.format(n))},Bt=e=>T(t=>`Q${Math.floor(t.getUTCMonth()/3)+1} ${t.getUTCFullYear()}`),ca=({locale:e,intlOptions:t})=>{const r=R(e,{day:"numeric",month:"long",...E,...t,year:void 0});return T(n=>r.formatRange(n,ma(n,6)))},ua=({locale:e,intlOptions:t})=>{const r=R(e,{dateStyle:"medium",...E,...t});return T(n=>r.formatRange(n,ma(n,6)))},Gt=({locale:e,intlOptions:t})=>{const r=R(e,{year:"numeric",...E,...t});return T(n=>r.format(n))},da=({locale:e,intlOptions:t})=>{const r=R(e,{timeStyle:"short",...E,...t});return T(n=>r.format(n))},ma=(e,t)=>new Date(e.getTime()+t*_l),Nl=e=>{const t=e.findIndex(n=>n.type==="hour")-1,r=e[t];return e.map((n,a)=>a===t&&r?.type==="literal"&&r.value===", "?" • ":n.value).join("")},_r=1e3,Fl=({valueFormat:e,locale:t,tickValues:r,intlOptions:n})=>Y(a=>{const i={...$t(a,r),notation:"compact",...c.isCurrencyValueFormat(e)?{style:"currency",currencyDisplay:"narrowSymbol",currency:e.iso}:{},...n};return Ht(a,t,i)}),Bl=({locale:e,tickValues:t,intlOptions:r})=>Y(n=>{const a={...$t(n,t),notation:"compact",...r};return Ht(n,e,a)}),Gl=({locale:e,tickValues:t,intlOptions:r})=>Y(n=>{const a={...$t(n,t),notation:"compact",...r,style:"percent"};return Ht(n,e,a)}),Ht=(e,t,r)=>me(t,r).formatToParts(e).map(n=>n.type==="compact"?n.value.toLowerCase():n.value).join(""),ha=e=>Math.abs(e)>_r?ha(e/_r):Number.isInteger(e),Hl=e=>{if(e.length<2)return!1;const[t,r]=e;return typeof t!="number"||typeof r!="number"?!1:Math.abs(r-t)<1},$t=(e,t)=>ha(e)?{minimumFractionDigits:0,maximumFractionDigits:0}:Hl(t)?{minimumFractionDigits:0,maximumFractionDigits:4}:{minimumFractionDigits:0,maximumFractionDigits:Math.max(1,$l(t))},$l=e=>{const t=e.filter(u=>typeof u=="number"&&Number.isFinite(u)),r=t[0],n=t[1];if(r===void 0||n===void 0)return 0;const a=Math.abs(n-r);if(a===0)return 0;let i=0;for(const u of t)i=Math.max(i,Math.abs(u));if(i===0)return 0;const o=Math.floor(Math.log10(i)/3),s=a/10**(Math.max(0,o)*3);if(s>=1)return 0;const l=Math.ceil(-Math.log10(s)-1e-9);return Math.min(4,Math.max(0,l))},zl=({locale:e,intlOptions:t})=>{const r=R(e,{day:"numeric",month:"short",...E,...t});return T(n=>r.format(n))},Kl=({locale:e,intlOptions:t})=>{const r=R(e,{month:"short",...E,...t});return T(n=>r.format(n))},Yl=({locale:e,intlOptions:t})=>{const r=R(e,{day:"numeric",month:"short",...E,...t});return T(n=>r.format(n))},Ul=({locale:e,intlOptions:t,tickValues:r})=>{const n=R(e,{...ql(r),...E,...t});return T(a=>n.format(a))},Wl=({locale:e,intlOptions:t})=>{const r=R(e,{timeStyle:"short",...E,...t});return T(n=>r.format(n))},ql=e=>{const t=e.filter(r=>r instanceof Date&&!Number.isNaN(r.getTime()));return t.length===0?{day:"numeric",month:"short"}:Xl(t).size>1?{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"}:{timeStyle:"short"}},Xl=e=>{const t=new Set;for(const r of e)t.add(`${r.getUTCFullYear()}-${r.getUTCMonth()}-${r.getUTCDate()}`);return t},zt=e=>{const{valueFormat:t}=e;switch(t.type){case"currency":return Fl(e);case"date":return zl(e);case"datetime":return Ul(e);case"day_month":case"weekly_date_range":case"weekly_date_range_with_year":return Yl(e);case"decimal":case"integer":return Bl(e);case"duration":return kt(e);case"month":return Kl(e);case"month_year":return Ft(e);case"percentage":return Gl(e);case"quarter":return Bt(e);case"text":return _t(e);case"time":return Wl(e);case"year":return Gt(e);case"lookup":return zt({...e,valueFormat:t.fallback});default:throw new c.InternalError({message:`Unhandled value format: ${t.type}`})}},jl=.9,Zl=1/3,Jl=1/4,Ql=e=>e.formattedAxis.position==="top"||e.formattedAxis.position==="bottom"?ec(e):tc(e),ec=({formattedAxis:e,bandwidthPx:t,panelRect:r,measureLabel:n})=>{const{widths:a,maxWidth:i,maxHeight:o}=pa(e.ticks,n),s=rc(e.ticks,r.width),l=s*jl;if(i<=l)return{...e,labelRotation:0,labelMaxWidthPx:null};if(s>=50){const m=gt(l);return{...e,ticks:vt(e.ticks,a,m,n),labelRotation:0,labelMaxWidthPx:m}}if(o+8>t)return{...e,ticks:[],labelRotation:0,labelMaxWidthPx:null};const u=gt(r.height*Zl);return{...e,ticks:vt(e.ticks,a,u,n),labelRotation:-90,labelMaxWidthPx:u}},tc=({formattedAxis:e,bandwidthPx:t,panelRect:r,measureLabel:n})=>{const{widths:a,maxWidth:i,maxHeight:o}=pa(e.ticks,n);if(o>t)return{...e,ticks:[],labelRotation:0,labelMaxWidthPx:null};const s=gt(r.width*Jl);return i<=s?{...e,labelRotation:0,labelMaxWidthPx:null}:{...e,ticks:vt(e.ticks,a,s,n),labelRotation:0,labelMaxWidthPx:s}},rc=(e,t)=>{const r=e[0],n=e[1];return r===void 0||n===void 0?t:Math.abs(n.position-r.position)*t},pa=(e,t)=>{const r=[];let n=0,a=0;for(const i of e){const{width:o,height:s}=t(i.formattedLabel);r.push(o),o>n&&(n=o),s>a&&(a=s)}return{widths:r,maxWidth:n,maxHeight:a}},vt=(e,t,r,n)=>{const a=i=>n(i).width;return e.map((i,o)=>(t[o]??0)<=r?i:{...i,formattedLabel:ea(i.formattedLabel,r,a)})},gt=e=>Math.max(0,Math.floor(e)),nc=(e,t,r,n,a)=>{if(e===0)return!0;const i=r==="top"||r==="bottom",o=i?60:40;let s=n-(e-1)*o;for(let l=0;l<e;l+=1){const{width:u,height:m}=a(t(l));if(s-=i?u:m,s<0)return!1}return!0},ac=(e,t,r,n,a)=>{if(e.length<2)return!0;const i=r==="top"||r==="bottom",o=l=>{const{width:u,height:m}=a(t(l));return(i?u:m)/2};let s=o(0);for(let l=1;l<e.length;l+=1){const u=e[l-1],m=e[l];if(u===void 0||m===void 0)continue;const h=o(l);if((m.position-u.position)*n<s+h+8)return!1;s=h}return!0},ic={ticks:[],labelAt:()=>""},oc=({axis:e,availableSpacePx:t,measureLabel:r,resolveFormatter:n})=>{const{tickCandidates:a,position:i}=e;if(a.length===0)return[];const o=new Map,s=f=>{const v=o.get(f);if(v)return v;const g=a[f],x=g?lc(g.ticks,n(g)):ic;return o.set(f,x),x},l=f=>{const{ticks:v,labelAt:g}=s(f);return a[f]?.source==="generated"?nc(v.length,g,i,t,r):ac(v,g,i,t,r)};let u=0,m=a.length-1,h=-1;for(;u<=m;){const f=u+m>>>1;l(f)?(h=f,u=f+1):m=f-1}const p=sc(h,s);return cc(s(p))},sc=(e,t)=>{const r=e>=0?e:0;for(let n=r;n>=0;n-=1){const{ticks:a,labelAt:i}=t(n);if(uc(a,i))return n}return 0},lc=(e,t)=>{const r=new Array(e.length);return{ticks:e,labelAt:n=>{const a=r[n];if(a!==void 0)return a;const i=t(e[n]?.value??null);return r[n]=i,i}}},cc=({ticks:e,labelAt:t})=>e.map((r,n)=>({...r,formattedLabel:t(n)})),uc=(e,t)=>{const r=new Set;for(let n=0;n<e.length;n+=1){const a=t(n);if(r.has(a))return!1;r.add(a)}return!0};function Kt(e,t){return e.axes.find(r=>r.scaleAestheticKey===t)??null}function Yt(e,t){return e.categorySpan?.layerIds.includes(t)?e.categorySpan.valueFormat:e.valueFormat}function dc(e,t){return e.legends.drawn.find(r=>r.aesthetics.includes(t))??null}var mc=e=>{const t=I({...e,valueFormat:e.valueFormat.fallback}),r={};for(const[a,i]of Object.entries(e.valueFormat.cases))r[a]=I({...e,valueFormat:i});const n=e.valueFormat.byVariable;return(a,i)=>{if(i===void 0||i[n]===void 0)return t(a);const o=c.getStableKey(i[n]),s=r[o];return s!==void 0?s(a,i):t(a)}},I=e=>{switch(e.valueFormat.type){case"currency":return na(e);case"date":return kl(e);case"datetime":return Vl(e);case"day_month":return sa(e);case"decimal":return aa(e);case"duration":return kt(e);case"integer":return ia(e);case"month":return la(e);case"month_year":return Ft(e);case"percentage":return oa(e);case"quarter":return Bt(e);case"text":return _t(e);case"weekly_date_range":return ca(e);case"weekly_date_range_with_year":return ua(e);case"year":return Gt(e);case"time":return da(e);case"lookup":return mc({...e,valueFormat:e.valueFormat});default:{const t=e.valueFormat;throw new c.InternalError({message:`Unhandled value format: ${t.type}`})}}};function Ut({layer:e,numberFormat:t,locale:r}){return I({valueFormat:d.getLayerYValueFormat(e),locale:r,numberFormat:t})}var hc=(e,t)=>{const r=c.readVariableName(t.x);return r!==null&&r!==c.CONSTANT_VARIABLES.x?{read:d.createXValueReader(e,t),variable:r}:{read:d.getGroup,variable:c.GROUP_VARIABLES.group}},fa=({layer:e,coordSystem:t,axes:r,numberFormat:n,panelRect:a,measureDataLabel:i,readers:o,formattingLocale:s,percentageValueStrategy:l})=>{const u=Ut({layer:e,numberFormat:n,locale:s}),m=t.type==="cartesian"&&t.mainAxis==="y";return{layer:e,coordSystem:t,panelRect:a,measureDataLabel:i,styleReaders:o.geom(e),formatLabel:yc({layer:e,numberFormat:n,axes:r,locale:s,absoluteFormatter:u,percentageValueStrategy:l,isFlipped:m}),formatAbsolute:u,formatCategory:pc({layer:e,numberFormat:n,locale:s})}},pc=({layer:e,numberFormat:t,locale:r})=>{const{read:n,variable:a}=hc(e.data,e.mapping),i=I({valueFormat:e.data.hasVariable(a)?e.data.getValueFormat(a):{type:"text"},locale:r,numberFormat:t});return o=>{const s=n(o);return s===null?null:i(s,o)}},fc=(e,t,r)=>{switch(t){case"stack":return vc(e);case"fill":return gc(e,r);case"absoluteGrandTotal":return()=>e.summary.absoluteGrandTotal??null;case"none":return()=>null}},vc=e=>{const t=c.readVariableName(e.mapping.x);let r=null,n=!1;return a=>{const i=e.summary.stackTotals;if(i===void 0||i.length===0||t===null)return null;if(!n){r=new Map;for(const l of i)r.set(l.xKey,l);n=!0}const o=a[t];if(o==null)return null;const s=r?.get(d.getObservationXKey(a,t));return s===void 0?null:s.total}},gc=(e,t)=>{const r=t?c.getXMin:c.getYMin,n=t?c.getXMax:c.getYMax,a=d.createSegmentYReader(e);return i=>{const o=r(i),s=n(i);if(!c.isStrictNumericDataValue(o)||!c.isStrictNumericDataValue(s))return null;const l=Math.abs(s-o);if(l===0)return null;const u=a(i);return c.isStrictNumericDataValue(u)?u/l:null}},yc=({layer:e,numberFormat:t,axes:r,locale:n,absoluteFormatter:a,percentageValueStrategy:i,isFlipped:o})=>{const s=d.createRawValueReader(e.data,e.dataLabels.labelSource),l=fc(e,i,o),u=Sc({layer:e,numberFormat:t,axes:r,locale:n,absoluteFormatter:a}),m=I({valueFormat:{type:"percentage"},locale:n,numberFormat:t}),h=e.dataLabels.format==="percentage"&&va(e);return p=>{const f=s(p);if(f===null)return"";if(!h||!c.isStrictNumericDataValue(f))return u(f,p);const v=l(p);return v===null||v===0?u(f,p):m(f/v)}},Sc=({layer:e,numberFormat:t,axes:r,locale:n,absoluteFormatter:a})=>{const i=e.dataLabels.labelSource,o=c.readVariableName(i);if(o!==null){if(va(e))return a;const s=bc(e,r,t,n,o);if(s!==null)return s}return I({valueFormat:xc(e.data,i),locale:n,numberFormat:t})},va=e=>{const t=c.readVariableName(e.dataLabels.labelSource);return t===null?!1:t===c.readVariableName(d.resolveSegmentYSource(e.position,e.mapping))},bc=(e,t,r,n,a)=>{const i=c.readVariableName(e.mapping.x);if(i===null||i!==a)return null;const o=t.find(s=>s.scaleAestheticKey==="x");return o===void 0?null:I({valueFormat:Yt(o,e.id),locale:n,numberFormat:r})},xc=(e,t)=>{const r=c.readConstantValue(t);if(r!==void 0)return c.isNumericDataValue(r)?{type:"decimal"}:c.isTemporalDataValue(r)?{type:"date"}:{type:"text"};const n=c.readVariableName(t);return n===null||!e.hasVariable(n)?{type:"text"}:e.getValueFormat(n)},Ac={cartesian:["cartesian","flip"],polar:["polar"]},Ic=null;function ga(e=[]){const t=Tc(e),r=(n,a)=>{if(!t.has(n))return null;const i=t.get(n);return i.getDataLabelPlacements===void 0||!Ac[a].some(o=>i.dataLabelCoordTypes.includes(o))?null:{place:i.getDataLabelPlacements.bind(i),getPercentageValueStrategy:o=>i.resolvePercentageValueStrategy?.(o,a)??"none"}};return{resolve:r,hasCapability:(n,a)=>r(n,a)!==null,hasPercentageFormat:(n,a)=>(r(n.geom,a)?.getPercentageValueStrategy(n)??"none")!=="none"}}function Wt(){return Ic??=ga()}function Tc(e){const t=new c.GeomRegistry;for(const r of e){const n=c.resolveDefinition(r);n instanceof c.Geom&&t.register(n.type,n)}return t}function*Lc({layers:e,coordSystem:t,axes:r,numberFormat:n,panelRect:a,measureDataLabel:i,readers:o,locale:s,resolvePlacement:l=Wt()}){if(!(t.type!=="cartesian"||a.width<=0||a.height<=0))for(const u of e){if(!u.dataLabels.showDataLabels&&!u.dataLabels.showStackTotals)continue;const m=l.resolve(u.geom,"cartesian");if(m===null)continue;const h=fa({layer:u,coordSystem:t,axes:r,numberFormat:n,panelRect:a,measureDataLabel:i,readers:o,formattingLocale:s,percentageValueStrategy:m.getPercentageValueStrategy(u)});for(const p of m.place(h).labels)yield{x:a.x+p.x-p.width/2,y:a.y+p.y-p.height/2,width:p.width,height:p.height}}}var at={abbreviation:"none",decimals:"auto"},ya=({locale:e,kind:t,startValue:r,endValue:n,valueFormat:a})=>{if(r===null||n===null)return"n/a";switch(t){case"absolute-difference":{const i=n-r,o=I({valueFormat:a,locale:e,numberFormat:at,intlOptions:{signDisplay:"always"}})(i);return kr(o)?"0":o}case"relative-difference":{const i=n-r;if(i===0)return"0%";const o=i/Math.abs(r);if(o===Number.POSITIVE_INFINITY)return"∞";if(o===Number.NEGATIVE_INFINITY)return"-∞";const s=I({valueFormat:{type:"percentage"},locale:e,numberFormat:at,intlOptions:{signDisplay:"always"}})(o);return kr(s)?"0%":s}case"proportion":{if(n-r===0)return"=";const i=n/r;return i===Number.POSITIVE_INFINITY?"∞":i===Number.NEGATIVE_INFINITY?"-∞":`${I({valueFormat:{type:"decimal"},locale:e,numberFormat:at,intlOptions:{maximumFractionDigits:1}})(i)}x`}}},kr=e=>{const t=e.replace(/[^\d.]/g,"");return t===""||t==="."?!1:Number(t)===0},Ec=2,Rc=6,wc=6,Cc=15,Pc=15,Mc=2.5,Dc=.5,Oc=.25,Sa=e=>{const t=e-Ec,r=1+Dc*t,n=1+Oc*t;return{arrowStartGap:Rc*r,arrowEndGap:wc*r,offsetFromHigherObservation:Cc*n,arrowheadSize:Mc*e,curveRadius:Pc*n,strokeWidth:e}},_c=(e,t,r,n)=>{const a=n.offsetFromHigherObservation+n.arrowheadSize+n.arrowEndGap;return e?Math.max(t.x,r.x)+a:Math.min(t.y,r.y)-a},kc=(e,t,r,{arrowStartGap:n,arrowEndGap:a,curveRadius:i})=>{const o={x:e.x,y:e.y-n},s={x:e.x,y:r},l={x:t.x,y:r},u={x:t.x,y:t.y-a},m=t.x>e.x?1:-1;return`
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var Il=Object.create,Qn=Object.defineProperty,Tl=Object.getOwnPropertyDescriptor,Ll=Object.getOwnPropertyNames,El=Object.getPrototypeOf,Rl=Object.prototype.hasOwnProperty,wl=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=Ll(t),i=0,o=a.length,s;i<o;i++)s=a[i],!Rl.call(e,s)&&s!==r&&Qn(e,s,{get:(l=>t[l]).bind(null,s),enumerable:!(n=Tl(t,s))||n.enumerable});return e},Cl=(e,t,r)=>(r=e!=null?Il(El(e)):{},wl(t||!e||!e.__esModule?Qn(r,"default",{value:e,enumerable:!0}):r,e));const c=require("./annotations-C1es4xyP.cjs"),d=require("./compiler-B_PO2LJB.cjs"),b=require("./spec-builder-BDPzAa9e.cjs");let L=require("lodash-es"),ft=require("humanize-duration");ft=Cl(ft,1);let P=require("d3-shape"),Pl=require("d3-delaunay");typeof window<"u"&&(window.__GRAPHY_SDK__??={},window.__GRAPHY_SDK__.vizEngine="1.9.0-beta.1792400629887");var Ml=1e6;function F(e){return String(Math.round(e*Ml))}function q(e,t){return e.geom===t}var nt="…",ea=(e,t,r)=>{if(t<=0||e.length===0)return"";if(r(e)<=t)return e;if(r(nt)>t)return"";let n=0,a=e.length-1,i=0;for(;n<=a;){const o=n+a>>>1;r(e.slice(0,o)+nt)<=t?(i=o,n=o+1):a=o-1}return e.slice(0,i)+nt};var E={timeZone:"UTC"},T=e=>t=>{if(!c.isStrictTemporalDataValue(t))return"–";try{return e(t)}catch{return"n/a"}},Y=e=>t=>c.isStrictNumericDataValue(t)?e(t):"–",_t=e=>t=>c.isStrictCategoricalDataValue(t)?t:"–",xe=new Map,Ae=new Map,ta=256,me=(e,t)=>{const r=ra(e,t),n=xe.get(r);if(n!==void 0)return n;xe.size>=ta&&xe.clear();const a=new Intl.NumberFormat(e,t);return xe.set(r,a),a},R=(e,t)=>{const r=ra(e,t),n=Ae.get(r);if(n!==void 0)return n;Ae.size>=ta&&Ae.clear();const a=new Intl.DateTimeFormat(e,t);return Ae.set(r,a),a},ra=(e,t)=>`${e}\0${JSON.stringify(t)}`,Dl=ft.default.humanizer({language:"en",spacer:"",delimiter:" ",languages:{en:{y:()=>"y",mo:()=>"mo",w:()=>"w",d:()=>"d",h:()=>"h",m:()=>"m",s:()=>"s",ms:()=>"ms"}}}),Be={signDisplay:"negative"},na=({valueFormat:e,locale:t,numberFormat:r,intlOptions:n})=>Y(a=>{const i=typeof r.decimals=="number"?r.decimals:2,o=Nt(a,i),{base:s,suffix:l}=Vt(a,r.abbreviation);return`${me(t,{...o,...Be,...c.isCurrencyValueFormat(e)?{style:"currency",currencyDisplay:"narrowSymbol",currency:e.iso}:{},...n}).format(s)}${l}`}),aa=({locale:e,numberFormat:t,intlOptions:r})=>Y(n=>{const{base:a,suffix:i}=Vt(n,t.abbreviation);return`${me(e,{...Nt(a,t.decimals),...Be,...r}).format(a)}${i}`}),kt=e=>Y(t=>{const r=Dl(Math.abs(t));return t<0?`-${r}`:r}),ia=({locale:e,intlOptions:t})=>{const r=me(e,{maximumFractionDigits:0,...Be,...t});return Y(n=>r.format(n))},oa=({locale:e,numberFormat:t,intlOptions:r})=>Y(n=>me(e,{...Nt(n,t.decimals),...Be,...r,style:"percent"}).format(n)),Vt=(e,t="none")=>{switch(t){case"none":return{base:e,suffix:""};case"auto":{const r=Ol(e);return Vt(e,r)}default:return{base:e/c.SUFFIX_MULTIPLIERS[t],suffix:t}}},Nt=(e,t)=>{if(typeof t=="number")return{minimumFractionDigits:t,maximumFractionDigits:t};const r=Math.ceil(Math.log10(Math.abs(e))),n=r>=3?0:r===2?1:2;return{minimumFractionDigits:t==="auto"?0:n,maximumFractionDigits:n}},Ol=e=>{const t=Math.abs(e);return t>=c.SUFFIX_MULTIPLIERS.b?"b":t>=c.SUFFIX_MULTIPLIERS.m?"m":t>=c.SUFFIX_MULTIPLIERS.k?"k":"none"},_l=1440*60*1e3,kl=({locale:e,intlOptions:t})=>{const r=R(e,{dateStyle:"medium",...E,...t});return T(n=>r.format(n))},Vl=({locale:e,intlOptions:t})=>{const r=R(e,{dateStyle:"medium",timeStyle:"medium",...E,...t});return T(n=>Nl(r.formatToParts(n)))},sa=({locale:e,intlOptions:t})=>{const r=R(e,{day:"numeric",month:"long",...E,...t});return T(n=>r.format(n))},la=({locale:e,intlOptions:t})=>{const r=R(e,{month:"long",...E,...t});return T(n=>r.format(n))},Ft=({locale:e,intlOptions:t})=>{const r=R(e,{month:"short",year:"numeric",...E,...t});return T(n=>r.format(n))},Bt=e=>T(t=>`Q${Math.floor(t.getUTCMonth()/3)+1} ${t.getUTCFullYear()}`),ca=({locale:e,intlOptions:t})=>{const r=R(e,{day:"numeric",month:"long",...E,...t,year:void 0});return T(n=>r.formatRange(n,ma(n,6)))},ua=({locale:e,intlOptions:t})=>{const r=R(e,{dateStyle:"medium",...E,...t});return T(n=>r.formatRange(n,ma(n,6)))},Gt=({locale:e,intlOptions:t})=>{const r=R(e,{year:"numeric",...E,...t});return T(n=>r.format(n))},da=({locale:e,intlOptions:t})=>{const r=R(e,{timeStyle:"short",...E,...t});return T(n=>r.format(n))},ma=(e,t)=>new Date(e.getTime()+t*_l),Nl=e=>{const t=e.findIndex(n=>n.type==="hour")-1,r=e[t];return e.map((n,a)=>a===t&&r?.type==="literal"&&r.value===", "?" • ":n.value).join("")},_r=1e3,Fl=({valueFormat:e,locale:t,tickValues:r,intlOptions:n})=>Y(a=>{const i={...$t(a,r),notation:"compact",...c.isCurrencyValueFormat(e)?{style:"currency",currencyDisplay:"narrowSymbol",currency:e.iso}:{},...n};return Ht(a,t,i)}),Bl=({locale:e,tickValues:t,intlOptions:r})=>Y(n=>{const a={...$t(n,t),notation:"compact",...r};return Ht(n,e,a)}),Gl=({locale:e,tickValues:t,intlOptions:r})=>Y(n=>{const a={...$t(n,t),notation:"compact",...r,style:"percent"};return Ht(n,e,a)}),Ht=(e,t,r)=>me(t,r).formatToParts(e).map(n=>n.type==="compact"?n.value.toLowerCase():n.value).join(""),ha=e=>Math.abs(e)>_r?ha(e/_r):Number.isInteger(e),Hl=e=>{if(e.length<2)return!1;const[t,r]=e;return typeof t!="number"||typeof r!="number"?!1:Math.abs(r-t)<1},$t=(e,t)=>ha(e)?{minimumFractionDigits:0,maximumFractionDigits:0}:Hl(t)?{minimumFractionDigits:0,maximumFractionDigits:4}:{minimumFractionDigits:0,maximumFractionDigits:Math.max(1,$l(t))},$l=e=>{const t=e.filter(u=>typeof u=="number"&&Number.isFinite(u)),r=t[0],n=t[1];if(r===void 0||n===void 0)return 0;const a=Math.abs(n-r);if(a===0)return 0;let i=0;for(const u of t)i=Math.max(i,Math.abs(u));if(i===0)return 0;const o=Math.floor(Math.log10(i)/3),s=a/10**(Math.max(0,o)*3);if(s>=1)return 0;const l=Math.ceil(-Math.log10(s)-1e-9);return Math.min(4,Math.max(0,l))},zl=({locale:e,intlOptions:t})=>{const r=R(e,{day:"numeric",month:"short",...E,...t});return T(n=>r.format(n))},Kl=({locale:e,intlOptions:t})=>{const r=R(e,{month:"short",...E,...t});return T(n=>r.format(n))},Yl=({locale:e,intlOptions:t})=>{const r=R(e,{day:"numeric",month:"short",...E,...t});return T(n=>r.format(n))},Ul=({locale:e,intlOptions:t,tickValues:r})=>{const n=R(e,{...ql(r),...E,...t});return T(a=>n.format(a))},Wl=({locale:e,intlOptions:t})=>{const r=R(e,{timeStyle:"short",...E,...t});return T(n=>r.format(n))},ql=e=>{const t=e.filter(r=>r instanceof Date&&!Number.isNaN(r.getTime()));return t.length===0?{day:"numeric",month:"short"}:Xl(t).size>1?{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"}:{timeStyle:"short"}},Xl=e=>{const t=new Set;for(const r of e)t.add(`${r.getUTCFullYear()}-${r.getUTCMonth()}-${r.getUTCDate()}`);return t},zt=e=>{const{valueFormat:t}=e;switch(t.type){case"currency":return Fl(e);case"date":return zl(e);case"datetime":return Ul(e);case"day_month":case"weekly_date_range":case"weekly_date_range_with_year":return Yl(e);case"decimal":case"integer":return Bl(e);case"duration":return kt(e);case"month":return Kl(e);case"month_year":return Ft(e);case"percentage":return Gl(e);case"quarter":return Bt(e);case"text":return _t(e);case"time":return Wl(e);case"year":return Gt(e);case"lookup":return zt({...e,valueFormat:t.fallback});default:throw new c.InternalError({message:`Unhandled value format: ${t.type}`})}},jl=.9,Zl=1/3,Jl=1/4,Ql=e=>e.formattedAxis.position==="top"||e.formattedAxis.position==="bottom"?ec(e):tc(e),ec=({formattedAxis:e,bandwidthPx:t,panelRect:r,measureLabel:n})=>{const{widths:a,maxWidth:i,maxHeight:o}=pa(e.ticks,n),s=rc(e.ticks,r.width),l=s*jl;if(i<=l)return{...e,labelRotation:0,labelMaxWidthPx:null};if(s>=50){const m=gt(l);return{...e,ticks:vt(e.ticks,a,m,n),labelRotation:0,labelMaxWidthPx:m}}if(o+8>t)return{...e,ticks:[],labelRotation:0,labelMaxWidthPx:null};const u=gt(r.height*Zl);return{...e,ticks:vt(e.ticks,a,u,n),labelRotation:-90,labelMaxWidthPx:u}},tc=({formattedAxis:e,bandwidthPx:t,panelRect:r,measureLabel:n})=>{const{widths:a,maxWidth:i,maxHeight:o}=pa(e.ticks,n);if(o>t)return{...e,ticks:[],labelRotation:0,labelMaxWidthPx:null};const s=gt(r.width*Jl);return i<=s?{...e,labelRotation:0,labelMaxWidthPx:null}:{...e,ticks:vt(e.ticks,a,s,n),labelRotation:0,labelMaxWidthPx:s}},rc=(e,t)=>{const r=e[0],n=e[1];return r===void 0||n===void 0?t:Math.abs(n.position-r.position)*t},pa=(e,t)=>{const r=[];let n=0,a=0;for(const i of e){const{width:o,height:s}=t(i.formattedLabel);r.push(o),o>n&&(n=o),s>a&&(a=s)}return{widths:r,maxWidth:n,maxHeight:a}},vt=(e,t,r,n)=>{const a=i=>n(i).width;return e.map((i,o)=>(t[o]??0)<=r?i:{...i,formattedLabel:ea(i.formattedLabel,r,a)})},gt=e=>Math.max(0,Math.floor(e)),nc=(e,t,r,n,a)=>{if(e===0)return!0;const i=r==="top"||r==="bottom",o=i?60:40;let s=n-(e-1)*o;for(let l=0;l<e;l+=1){const{width:u,height:m}=a(t(l));if(s-=i?u:m,s<0)return!1}return!0},ac=(e,t,r,n,a)=>{if(e.length<2)return!0;const i=r==="top"||r==="bottom",o=l=>{const{width:u,height:m}=a(t(l));return(i?u:m)/2};let s=o(0);for(let l=1;l<e.length;l+=1){const u=e[l-1],m=e[l];if(u===void 0||m===void 0)continue;const h=o(l);if((m.position-u.position)*n<s+h+8)return!1;s=h}return!0},ic={ticks:[],labelAt:()=>""},oc=({axis:e,availableSpacePx:t,measureLabel:r,resolveFormatter:n})=>{const{tickCandidates:a,position:i}=e;if(a.length===0)return[];const o=new Map,s=f=>{const v=o.get(f);if(v)return v;const g=a[f],x=g?lc(g.ticks,n(g)):ic;return o.set(f,x),x},l=f=>{const{ticks:v,labelAt:g}=s(f);return a[f]?.source==="generated"?nc(v.length,g,i,t,r):ac(v,g,i,t,r)};let u=0,m=a.length-1,h=-1;for(;u<=m;){const f=u+m>>>1;l(f)?(h=f,u=f+1):m=f-1}const p=sc(h,s);return cc(s(p))},sc=(e,t)=>{const r=e>=0?e:0;for(let n=r;n>=0;n-=1){const{ticks:a,labelAt:i}=t(n);if(uc(a,i))return n}return 0},lc=(e,t)=>{const r=new Array(e.length);return{ticks:e,labelAt:n=>{const a=r[n];if(a!==void 0)return a;const i=t(e[n]?.value??null);return r[n]=i,i}}},cc=({ticks:e,labelAt:t})=>e.map((r,n)=>({...r,formattedLabel:t(n)})),uc=(e,t)=>{const r=new Set;for(let n=0;n<e.length;n+=1){const a=t(n);if(r.has(a))return!1;r.add(a)}return!0};function Kt(e,t){return e.axes.find(r=>r.scaleAestheticKey===t)??null}function Yt(e,t){return e.categorySpan?.layerIds.includes(t)?e.categorySpan.valueFormat:e.valueFormat}function dc(e,t){return e.legends.drawn.find(r=>r.aesthetics.includes(t))??null}var mc=e=>{const t=I({...e,valueFormat:e.valueFormat.fallback}),r={};for(const[a,i]of Object.entries(e.valueFormat.cases))r[a]=I({...e,valueFormat:i});const n=e.valueFormat.byVariable;return(a,i)=>{if(i===void 0||i[n]===void 0)return t(a);const o=c.getStableKey(i[n]),s=r[o];return s!==void 0?s(a,i):t(a)}},I=e=>{switch(e.valueFormat.type){case"currency":return na(e);case"date":return kl(e);case"datetime":return Vl(e);case"day_month":return sa(e);case"decimal":return aa(e);case"duration":return kt(e);case"integer":return ia(e);case"month":return la(e);case"month_year":return Ft(e);case"percentage":return oa(e);case"quarter":return Bt(e);case"text":return _t(e);case"weekly_date_range":return ca(e);case"weekly_date_range_with_year":return ua(e);case"year":return Gt(e);case"time":return da(e);case"lookup":return mc({...e,valueFormat:e.valueFormat});default:{const t=e.valueFormat;throw new c.InternalError({message:`Unhandled value format: ${t.type}`})}}};function Ut({layer:e,numberFormat:t,locale:r}){return I({valueFormat:d.getLayerYValueFormat(e),locale:r,numberFormat:t})}var hc=(e,t)=>{const r=c.readVariableName(t.x);return r!==null&&r!==c.CONSTANT_VARIABLES.x?{read:d.createXValueReader(e,t),variable:r}:{read:d.getGroup,variable:c.GROUP_VARIABLES.group}},fa=({layer:e,coordSystem:t,axes:r,numberFormat:n,panelRect:a,measureDataLabel:i,readers:o,formattingLocale:s,percentageValueStrategy:l})=>{const u=Ut({layer:e,numberFormat:n,locale:s}),m=t.type==="cartesian"&&t.mainAxis==="y";return{layer:e,coordSystem:t,panelRect:a,measureDataLabel:i,styleReaders:o.geom(e),formatLabel:yc({layer:e,numberFormat:n,axes:r,locale:s,absoluteFormatter:u,percentageValueStrategy:l,isFlipped:m}),formatAbsolute:u,formatCategory:pc({layer:e,numberFormat:n,locale:s})}},pc=({layer:e,numberFormat:t,locale:r})=>{const{read:n,variable:a}=hc(e.data,e.mapping),i=I({valueFormat:e.data.hasVariable(a)?e.data.getValueFormat(a):{type:"text"},locale:r,numberFormat:t});return o=>{const s=n(o);return s===null?null:i(s,o)}},fc=(e,t,r)=>{switch(t){case"stack":return vc(e);case"fill":return gc(e,r);case"absoluteGrandTotal":return()=>e.summary.absoluteGrandTotal??null;case"none":return()=>null}},vc=e=>{const t=c.readVariableName(e.mapping.x);let r=null,n=!1;return a=>{const i=e.summary.stackTotals;if(i===void 0||i.length===0||t===null)return null;if(!n){r=new Map;for(const l of i)r.set(l.xKey,l);n=!0}const o=a[t];if(o==null)return null;const s=r?.get(d.getObservationXKey(a,t));return s===void 0?null:s.total}},gc=(e,t)=>{const r=t?c.getXMin:c.getYMin,n=t?c.getXMax:c.getYMax,a=d.createSegmentYReader(e);return i=>{const o=r(i),s=n(i);if(!c.isStrictNumericDataValue(o)||!c.isStrictNumericDataValue(s))return null;const l=Math.abs(s-o);if(l===0)return null;const u=a(i);return c.isStrictNumericDataValue(u)?u/l:null}},yc=({layer:e,numberFormat:t,axes:r,locale:n,absoluteFormatter:a,percentageValueStrategy:i,isFlipped:o})=>{const s=d.createRawValueReader(e.data,e.dataLabels.labelSource),l=fc(e,i,o),u=Sc({layer:e,numberFormat:t,axes:r,locale:n,absoluteFormatter:a}),m=I({valueFormat:{type:"percentage"},locale:n,numberFormat:t}),h=e.dataLabels.format==="percentage"&&va(e);return p=>{const f=s(p);if(f===null)return"";if(!h||!c.isStrictNumericDataValue(f))return u(f,p);const v=l(p);return v===null||v===0?u(f,p):m(f/v)}},Sc=({layer:e,numberFormat:t,axes:r,locale:n,absoluteFormatter:a})=>{const i=e.dataLabels.labelSource,o=c.readVariableName(i);if(o!==null){if(va(e))return a;const s=bc(e,r,t,n,o);if(s!==null)return s}return I({valueFormat:xc(e.data,i),locale:n,numberFormat:t})},va=e=>{const t=c.readVariableName(e.dataLabels.labelSource);return t===null?!1:t===c.readVariableName(d.resolveSegmentYSource(e.position,e.mapping))},bc=(e,t,r,n,a)=>{const i=c.readVariableName(e.mapping.x);if(i===null||i!==a)return null;const o=t.find(s=>s.scaleAestheticKey==="x");return o===void 0?null:I({valueFormat:Yt(o,e.id),locale:n,numberFormat:r})},xc=(e,t)=>{const r=c.readConstantValue(t);if(r!==void 0)return c.isNumericDataValue(r)?{type:"decimal"}:c.isTemporalDataValue(r)?{type:"date"}:{type:"text"};const n=c.readVariableName(t);return n===null||!e.hasVariable(n)?{type:"text"}:e.getValueFormat(n)},Ac={cartesian:["cartesian","flip"],polar:["polar"]},Ic=null;function ga(e=[]){const t=Tc(e),r=(n,a)=>{if(!t.has(n))return null;const i=t.get(n);return i.getDataLabelPlacements===void 0||!Ac[a].some(o=>i.dataLabelCoordTypes.includes(o))?null:{place:i.getDataLabelPlacements.bind(i),getPercentageValueStrategy:o=>i.resolvePercentageValueStrategy?.(o,a)??"none"}};return{resolve:r,hasCapability:(n,a)=>r(n,a)!==null,hasPercentageFormat:(n,a)=>(r(n.geom,a)?.getPercentageValueStrategy(n)??"none")!=="none"}}function Wt(){return Ic??=ga()}function Tc(e){const t=new c.GeomRegistry;for(const r of e){const n=c.resolveDefinition(r);n instanceof c.Geom&&t.register(n.type,n)}return t}function*Lc({layers:e,coordSystem:t,axes:r,numberFormat:n,panelRect:a,measureDataLabel:i,readers:o,locale:s,resolvePlacement:l=Wt()}){if(!(t.type!=="cartesian"||a.width<=0||a.height<=0))for(const u of e){if(!u.dataLabels.showDataLabels&&!u.dataLabels.showStackTotals)continue;const m=l.resolve(u.geom,"cartesian");if(m===null)continue;const h=fa({layer:u,coordSystem:t,axes:r,numberFormat:n,panelRect:a,measureDataLabel:i,readers:o,formattingLocale:s,percentageValueStrategy:m.getPercentageValueStrategy(u)});for(const p of m.place(h).labels)yield{x:a.x+p.x-p.width/2,y:a.y+p.y-p.height/2,width:p.width,height:p.height}}}var at={abbreviation:"none",decimals:"auto"},ya=({locale:e,kind:t,startValue:r,endValue:n,valueFormat:a})=>{if(r===null||n===null)return"n/a";switch(t){case"absolute-difference":{const i=n-r,o=I({valueFormat:a,locale:e,numberFormat:at,intlOptions:{signDisplay:"always"}})(i);return kr(o)?"0":o}case"relative-difference":{const i=n-r;if(i===0)return"0%";const o=i/Math.abs(r);if(o===Number.POSITIVE_INFINITY)return"∞";if(o===Number.NEGATIVE_INFINITY)return"-∞";const s=I({valueFormat:{type:"percentage"},locale:e,numberFormat:at,intlOptions:{signDisplay:"always"}})(o);return kr(s)?"0%":s}case"proportion":{if(n-r===0)return"=";const i=n/r;return i===Number.POSITIVE_INFINITY?"∞":i===Number.NEGATIVE_INFINITY?"-∞":`${I({valueFormat:{type:"decimal"},locale:e,numberFormat:at,intlOptions:{maximumFractionDigits:1}})(i)}x`}}},kr=e=>{const t=e.replace(/[^\d.]/g,"");return t===""||t==="."?!1:Number(t)===0},Ec=2,Rc=6,wc=6,Cc=15,Pc=15,Mc=2.5,Dc=.5,Oc=.25,Sa=e=>{const t=e-Ec,r=1+Dc*t,n=1+Oc*t;return{arrowStartGap:Rc*r,arrowEndGap:wc*r,offsetFromHigherObservation:Cc*n,arrowheadSize:Mc*e,curveRadius:Pc*n,strokeWidth:e}},_c=(e,t,r,n)=>{const a=n.offsetFromHigherObservation+n.arrowheadSize+n.arrowEndGap;return e?Math.max(t.x,r.x)+a:Math.min(t.y,r.y)-a},kc=(e,t,r,{arrowStartGap:n,arrowEndGap:a,curveRadius:i})=>{const o={x:e.x,y:e.y-n},s={x:e.x,y:r},l={x:t.x,y:r},u={x:t.x,y:t.y-a},m=t.x>e.x?1:-1;return`
2
2
  M ${o.x} ${o.y}
3
3
  L ${s.x} ${s.y+i}
4
4
  Q ${s.x} ${s.y} ${s.x+m*i} ${s.y}
package/dist/index.mjs CHANGED
@@ -5,7 +5,7 @@ import { clamp as Gr, findLast as tu, isEqual as ne, isPlainObject as ru, omit a
5
5
  import au from "humanize-duration";
6
6
  import { area as Ni, curveCatmullRom as iu, curveLinear as su, line as Bi, symbol as $i, symbolCircle as ou, symbolCross as lu, symbolDiamond as cu, symbolSquare as uu, symbolStar as du, symbolTriangle as hu, symbolWye as mu } from "d3-shape";
7
7
  import { Delaunay as pu } from "d3-delaunay";
8
- typeof window < "u" && (window.__GRAPHY_SDK__ ??= {}, window.__GRAPHY_SDK__.vizEngine = "1.9.0-beta.1792399585685");
8
+ typeof window < "u" && (window.__GRAPHY_SDK__ ??= {}, window.__GRAPHY_SDK__.vizEngine = "1.9.0-beta.1792400629887");
9
9
  var fu = 1e6;
10
10
  function Y(e) {
11
11
  return String(Math.round(e * fu));
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "grammar-of-graphics",
12
12
  "compiler"
13
13
  ],
14
- "version": "1.9.0-beta.1792399585685",
14
+ "version": "1.9.0-beta.1792400629887",
15
15
  "type": "module",
16
16
  "sideEffects": [
17
17
  "**/version.ts"