@3e/sqa-common 6.16.0-9 → 6.17.0-2

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/index.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import * as Highcharts from 'highcharts'
2
+
1
3
  /**
2
4
  * Type declarations for the @3e/sqa-common module
3
5
  */
@@ -946,58 +948,28 @@ declare module '@3e/sqa-common' {
946
948
  }
947
949
 
948
950
  export type HighChartsSpec = {
949
- series: []
950
- time: {timezone: string}
951
- legend: {enabled: boolean}
952
- title: boolean
953
- chart: {_SQ_: {type: ViewType}; zoomType: string; animation: boolean}
954
- yAxis: []
955
- credits: {enabled: boolean}
956
951
  display: 'highcharts'
957
- $schema: 'https://highcharts/7.2'
958
- xAxis: {
959
- type: string
960
- min: number
961
- max: number
962
- tickInterval: null //TODO: better types
963
- }
964
- tooltip: {
965
- borderRadius: number
966
- borderColor: string
967
- formatter: () => string
968
- borderWidth: number
969
- valueDecimals: number
970
- style: {
971
- fontFamily: string
972
- fontSize: string
973
- lineHeight: string
952
+ chart: {_SQ_: {type: ViewType}; zoomType: string; animation: boolean}
953
+ } & Highcharts.Options
954
+
955
+ export type TableSpec = {
956
+ display: 'table'
957
+ meta?: {
958
+ type: 'time_table'
959
+ rows: TimeTableMetaRowInfo
960
+ } | {
961
+ type: 'object_table'
962
+ rows: ObjectsTableMetaRowInfo
974
963
  }
975
- useHTML: boolean
976
- split: boolean
977
- shared: boolean
978
- shadow: {color: string; offsetY: number; opacity: number; width: number}
979
- backgroundColor: string
980
- enabled: boolean
981
- }
964
+ title?: string
965
+ header: string[]
966
+ rows: (number | string)[][]
982
967
  }
983
968
 
984
- export type TableSpec = {
985
- display: 'table'
986
- meta?: {
987
- type: 'time_table'
988
- rows: TimeTableMetaRowInfo
989
- } | {
990
- type: 'object_table'
991
- rows: ObjectsTableMetaRowInfo
992
- }
993
- title?: string
994
- header: string[]
995
- rows: (number | string)[][]
996
- }
997
-
998
969
  export type MessageSpec = {
999
970
  display: 'message'
1000
971
  label: string
972
+ value: string
1001
973
  }
1002
974
  export type KPI = {
1003
975
  kpi: string
@@ -1023,6 +995,7 @@ declare module '@3e/sqa-common' {
1023
995
  clock_or_calendar_mode: string
1024
996
  granularity: Granularity
1025
997
  }
998
+ error?: boolean
1026
999
  options: VisualisationOptions
1027
1000
  info: {title: string; type: ViewType; color_scheme: ColorSchemeValue}
1028
1001
  values: {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@3e/sqa-common",
3
- "version": "6.16.0-9",
3
+ "version": "6.17.0-2",
4
4
  "description": "SynaptiQ utilities package",
5
5
  "main": "sqa_common.js",
6
6
  "dependencies": {
@@ -8,6 +8,9 @@
8
8
  "@js-joda/timezone": "^2.5.0",
9
9
  "decimal.js-light": "2.5.1"
10
10
  },
11
+ "peerDependencies": {
12
+ "highcharts": "^11.1.0"
13
+ },
11
14
  "scripts": {
12
15
  "test": "echo \"Error: no test specified\" && exit 1"
13
16
  },
package/sqa_common.js CHANGED
@@ -862,10 +862,10 @@ function(a,b){return Zi(GI,b)},Po,function(a,b){return Zi(HI,b)},Vr,function(a,b
862
862
  new q(null,2,[Yp,pI,tz,0],null),Gj.g(pg,b))}],null))],null),CL;
863
863
  if("undefined"===typeof oI||"undefined"===typeof tJ||"undefined"===typeof OJ)OJ=function(a){this.ge=a;this.A=393216;this.H=0},n=OJ.prototype,n.O=function(a,b){return new OJ(b)},n.M=function(){return this.ge},n.Za=fc,n.Ra=function(){return kp},n.Sa=function(){return null},n.Qa=function(a,b,c,d){FK(kp,b,c,new q(null,1,[Yp,1],null));a=gl(c);c=Mm(a);var e=GK(kp,b,a);if("undefined"===typeof oI||"undefined"===typeof tJ||"undefined"===typeof PJ)PJ=function(f,g,h,k,l,m,p,r){this.ge=f;this.parent=g;this.S=
864
864
  h;this.children=k;this.options=l;this.lb=m;this.form=p;this.gh=r;this.A=393216;this.H=0},PJ.prototype.O=function(f,g){return new PJ(this.ge,this.parent,this.S,this.children,this.options,this.lb,this.form,g)},PJ.prototype.M=function(){return this.gh},PJ.prototype.$a=fc,PJ.prototype.Va=function(){var f=this;return function(g){return kh(f.lb,g)}},PJ.prototype.Ua=function(){return this.options},PJ.prototype.eb=function(){return this.S},PJ.prototype.ab=function(){return this.children},PJ.prototype.bb=
865
- function(){return this.form},PJ.prototype.cb=function(){return this.parent},PJ.prototype.Ta=function(f,g,h){return x.j(this.children,g,h)},PJ.W=!0,PJ.V="malli.core/t_malli$core14798",PJ.X=function(f){return Ge(f,"malli.core/t_malli$core14798")};return new PJ(this.ge,this,b,a,d,c,e,new q(null,1,[Nv,iC],null))},OJ.W=!0,OJ.V="malli.core/t_malli$core14795",OJ.X=function(a){return Ge(a,"malli.core/t_malli$core14795")};CL=new OJ(new q(null,1,[Nv,BF],null));var IL=IK(null),KL;
865
+ function(){return this.form},PJ.prototype.cb=function(){return this.parent},PJ.prototype.Ta=function(f,g,h){return x.j(this.children,g,h)},PJ.W=!0,PJ.V="malli.core/t_malli$core14798",PJ.X=function(f){return Ge(f,"malli.core/t_malli$core14798")};return new PJ(this.ge,this,b,a,d,c,e,new q(null,1,[Nv,iC],null))},OJ.W=!0,OJ.V="malli.core/t_malli$core14795",OJ.X=function(a){return Ge(a,"malli.core/t_malli$core14795")};CL=new OJ(new q(null,1,[Nv,BF],null));var DL=IK(null),JL;
866
866
  if("undefined"===typeof oI||"undefined"===typeof tJ||"undefined"===typeof SJ)SJ=function(a){this.ie=a;this.A=393216;this.H=0},n=SJ.prototype,n.O=function(a,b){return new SJ(b)},n.M=function(){return this.ie},n.Za=fc,n.Ra=function(){return Oq},n.Sa=function(){return null},n.Qa=function(a,b,c,d){FK(Oq,b,c,new q(null,2,[Yp,1,tz,1],null));var e=gl(c);a=function(){var f=N(e);return tL?tL(f,d):sL.call(null,f,d)}();c=GK(Oq,b,e);if("undefined"===typeof oI||"undefined"===typeof tJ||"undefined"===typeof TJ)TJ=
867
867
  function(f,g,h,k,l,m,p,r){this.ie=f;this.parent=g;this.S=h;this.children=k;this.options=l;this.f=m;this.form=p;this.ih=r;this.A=393216;this.H=0},TJ.prototype.O=function(f,g){return new TJ(this.ie,this.parent,this.S,this.children,this.options,this.f,this.form,g)},TJ.prototype.M=function(){return this.ih},TJ.prototype.$a=fc,TJ.prototype.Va=function(){return EK(this.f)},TJ.prototype.Ua=function(){return this.options},TJ.prototype.eb=function(){return this.S},TJ.prototype.ab=function(){return this.children},
868
- TJ.prototype.bb=function(){return this.form},TJ.prototype.cb=function(){return this.parent},TJ.prototype.Ta=function(f,g,h){return x.j(this.children,g,h)},TJ.W=!0,TJ.V="malli.core/t_malli$core14819",TJ.X=function(f){return Ge(f,"malli.core/t_malli$core14819")};return new TJ(this.ie,this,b,e,d,a,c,new q(null,1,[Nv,iC],null))},SJ.W=!0,SJ.V="malli.core/t_malli$core14814",SJ.X=function(a){return Ge(a,"malli.core/t_malli$core14814")};KL=new SJ(new q(null,1,[Nv,BF],null));var LL;
868
+ TJ.prototype.bb=function(){return this.form},TJ.prototype.cb=function(){return this.parent},TJ.prototype.Ta=function(f,g,h){return x.j(this.children,g,h)},TJ.W=!0,TJ.V="malli.core/t_malli$core14819",TJ.X=function(f){return Ge(f,"malli.core/t_malli$core14819")};return new TJ(this.ie,this,b,e,d,a,c,new q(null,1,[Nv,iC],null))},SJ.W=!0,SJ.V="malli.core/t_malli$core14814",SJ.X=function(a){return Ge(a,"malli.core/t_malli$core14814")};JL=new SJ(new q(null,1,[Nv,BF],null));var LL;
869
869
  if("undefined"===typeof oI||"undefined"===typeof tJ||"undefined"===typeof AJ)AJ=function(a){this.$d=a;this.A=393216;this.H=0},n=AJ.prototype,n.O=function(a,b){return new AJ(b)},n.M=function(){return this.$d},n.Za=fc,n.Ra=function(){return Uq},n.Sa=function(){return null},n.Qa=function(a,b,c,d){FK(Uq,b,c,new q(null,1,[Yp,1],null));a=OK(c,new q(null,1,[VD,!0],null),d);a=X(a);c=x.g(a,jq);var e=x.g(a,lt),f=x.g(a,ME),g=GK(Uq,b,f);if("undefined"===typeof oI||"undefined"===typeof tJ||"undefined"===typeof BJ)BJ=
870
870
  function(h,k,l,m,p,r,w,A,C,G){this.form=h;this.options=k;this.forms=l;this.S=m;this.children=p;this.parent=r;this.entries=w;this.Jg=A;this.$d=C;this.Zg=G;this.A=393216;this.H=0},BJ.prototype.O=function(h,k){return new BJ(this.form,this.options,this.forms,this.S,this.children,this.parent,this.entries,this.Jg,this.$d,k)},BJ.prototype.M=function(){return this.Zg},BJ.prototype.$a=fc,BJ.prototype.Va=function(){var h=Om(Gj.g(function(k){R(k,0);R(k,1);k=R(k,2);return qK(k)},this.children));return u(og(h))?
871
871
  function(k){return Zg(Ij(function(l){return l.h?l.h(k):l.call(null,k)},h))}:N(h)},BJ.prototype.Ua=function(){return this.options},BJ.prototype.eb=function(){return this.S},BJ.prototype.ab=function(){return this.children},BJ.prototype.bb=function(){return this.form},BJ.prototype.cb=function(){return this.parent},BJ.prototype.Ta=function(h,k,l){return NK(this,k,l)},BJ.W=!0,BJ.V="malli.core/t_malli$core14587",BJ.X=function(h){return Ge(h,"malli.core/t_malli$core14587")};return new BJ(g,d,f,b,c,this,
@@ -909,7 +909,7 @@ if("undefined"===typeof oI||"undefined"===typeof tJ||"undefined"===typeof wJ)wJ=
909
909
  g,h,k,l,m,p,r){this.Yd=f;this.parent=g;this.S=h;this.children=k;this.options=l;this.form=m;this.sb=p;this.Xg=r;this.A=393216;this.H=0},xJ.prototype.O=function(f,g){return new xJ(this.Yd,this.parent,this.S,this.children,this.options,this.form,this.sb,g)},xJ.prototype.M=function(){return this.Xg},xJ.prototype.$a=fc,xJ.prototype.Va=function(){var f=Om(Gj.g(qK,this.children));return u(og(f))?Zi(ck,f):N(f)},xJ.prototype.Ua=function(){return this.options},xJ.prototype.eb=function(){return this.S},xJ.prototype.ab=
910
910
  function(){return this.children},xJ.prototype.bb=function(){return this.form},xJ.prototype.cb=function(){return this.parent},xJ.prototype.Ta=function(f,g,h){return x.j(this.children,g,h)},xJ.W=!0,xJ.V="malli.core/t_malli$core14558",xJ.X=function(f){return Ge(f,"malli.core/t_malli$core14558")};return new xJ(this.Yd,this,b,e,d,a,function(f,g){var h=function(){var k=Fk(f,e);return g.h?g.h(k):g.call(null,k)}();return function(k){return Vc(function(l,m){l=m.h?m.h(l):m.call(null,l);return di(l,Sr)?Vf.h?
911
911
  Vf.h(l):Vf.call(null,l):l},k,h)}},new q(null,1,[Nv,iC],null))},wJ.W=!0,wJ.V="malli.core/t_malli$core14554",wJ.X=function(a){return Ge(a,"malli.core/t_malli$core14554")};YL=new wJ(new q(null,1,[Nv,BF],null));
912
- var WK=qJ(wL.call(Cm,H([xL,yL,zL,AL,BL,em([kp,Ip,Oq,Uq,ct,zt,Jt,Du,Uu,Jv,Yv,Iw,Zw,Mx,Yy,nz,WA,iC,BC,vE],[CL,IL,KL,LL,ML,NL,OL,PL,QL,RL,SL,TL,UL,VL,WL,XL,YL,IK(new q(null,1,[Ct,!0],null)),hL(new q(null,4,[Nv,BC,ls,Ig,Ww,Jm,hF,function(a,b){return b}],null)),function(){var a=new q(null,1,[VD,!0],null);if("undefined"===typeof oI||"undefined"===typeof tJ||"undefined"===typeof GJ)GJ=function(b,c){this.na=b;this.ce=c;this.A=393216;this.H=0},GJ.prototype.O=function(b,c){return new GJ(this.na,c)},GJ.prototype.M=
912
+ var WK=qJ(wL.call(Cm,H([xL,yL,zL,AL,BL,em([kp,Ip,Oq,Uq,ct,zt,Jt,Du,Uu,Jv,Yv,Iw,Zw,Mx,Yy,nz,WA,iC,BC,vE],[CL,DL,JL,LL,ML,NL,OL,PL,QL,RL,SL,TL,UL,VL,WL,XL,YL,IK(new q(null,1,[Ct,!0],null)),hL(new q(null,4,[Nv,BC,ls,Ig,Ww,Jm,hF,function(a,b){return b}],null)),function(){var a=new q(null,1,[VD,!0],null);if("undefined"===typeof oI||"undefined"===typeof tJ||"undefined"===typeof GJ)GJ=function(b,c){this.na=b;this.ce=c;this.A=393216;this.H=0},GJ.prototype.O=function(b,c){return new GJ(this.na,c)},GJ.prototype.M=
913
913
  function(){return this.ce},GJ.prototype.Za=fc,GJ.prototype.Ra=function(){return vE},GJ.prototype.Sa=function(){return null},GJ.prototype.Qa=function(b,c,d,e){b=X(c);var f=x.g(b,Np);d=OK(d,this.na,e);d=X(d);var g=x.g(d,jq),h=x.g(d,lt),k=x.g(d,ME),l=GK(vE,b,k),m=Mm(Gj.g(N,h));if("undefined"===typeof oI||"undefined"===typeof tJ||"undefined"===typeof HJ)HJ=function(p,r,w,A,C,G,O,W,T,S,t,E,B,D,F,K){this.form=p;this.options=r;this.forms=w;this.S=A;this.closed=C;this.children=G;this.Kg=O;this.parent=W;this.entries=
914
914
  T;this.ce=S;this.yh=t;this.Lg=E;this.sb=B;this.uf=D;this.na=F;this.bh=K;this.A=393216;this.H=0},HJ.prototype.O=function(p,r){return new HJ(this.form,this.options,this.forms,this.S,this.closed,this.children,this.Kg,this.parent,this.entries,this.ce,this.yh,this.Lg,this.sb,this.uf,this.na,r)},HJ.prototype.M=function(){return this.bh},HJ.prototype.$a=fc,HJ.prototype.Va=function(){function p(A){return Zg(Vc(function(C,G){C=G.h?G.h(A):G.call(null,A);return u(C)?C:Vf(!1)},!0,w))}var r=this,w=function(){var A=
915
915
  Fk(function(C){var G=R(C,0),O=R(C,1);O=X(O);O=x.g(O,Nz);C=R(C,2);var W=qK(C),T=Zg(O);return function(S){S=lh(S,G);return u(S)?(S=Ud(S),W.h?W.h(S):W.call(null,S)):T}},r.children);return u(r.closed)?Ek.g(A,new Y(null,1,5,Z,[function(C){return Vc(function(G,O){return kh(r.uf,O)?G:Vf(!1)},!0,Gl(C))}],null)):A}();return function(A){return Og(A)&&p(A)}},HJ.prototype.Ua=function(){return this.options},HJ.prototype.eb=function(){return this.S},HJ.prototype.ab=function(){return this.children},HJ.prototype.bb=
@@ -1206,7 +1206,7 @@ function PU(a,b){return function(c,d){function e(){return g(new Y(null,1,5,Z,[1]
1206
1206
  function QU(a,b){function c(){return gt.h(ak.g(d,function(e){e=X(e);var f=x.g(e,ww),g=x.g(e,gt),h=x.g(e,xA);return vc(g)?wg.l(e,oE,!1,H([gt,nO.g(null,function(){return nO.g(f.m?f.m():f.call(null),function(k){return nO.g(null,function(){return nO.g(ak.l(d,wg,oE,!0,H([xA,function(){var l=fy.h(aD.h(kT(k)));return u(l)?l:h}()])),function(){return zO(k)})})})})])):e}))}var d=Yj(new q(null,1,[ww,b],null));return new q(null,2,[Qx,PU(function(e,f){return nO.g(null,function(){return nO.g(c(),function(g){return nO.g(null,
1207
1207
  function(){var h=zO;var k=fy.h(aD.h(kT(g)));u(k)?(k=Pk(kT(f),qx,"Authorization",["Bearer ",v.h(k)].join("")),k=co.h?co.h(k):co.call(null,k),k=a.g?a.g(e,k):a.call(null,e,k)):k=g;return h(k)})})})},function(){return ak.g(d,function(e){e=X(e);var f=x.g(e,gt),g=x.g(e,oE),h=x.g(e,xA);if(!(f instanceof SO))throw Error("Assert failed: (p/promise? promise)");vc(g)||(vc(h)?e=yg.l(e,gt,H([oE])):(f=wg.l,h=new q(null,3,[xt,PB,aD,new q(null,1,[fy,h],null),qx,new q(null,1,["Content-Type","application/json"],null)],
1208
1208
  null),h=co.h?co.h(h):co.call(null,h),h=a.g?a.g("/token/refresh",h):a.call(null,"/token/refresh",h),e=f.call(wg,e,oE,!1,H([gt,h]))));return e})}),aq,function(){return Zj(d,new q(null,1,[ww,b],null))}],null)}if("undefined"===typeof YN||"undefined"===typeof ZN||"undefined"===typeof bT||"undefined"===typeof RU)var RU=null;
1209
- function SU(a,b){b=X(b);var c=x.j(b,xt,"GET"),d=x.g(b,MA),e=x.g(b,aD);b=x.g(b,qx);var f=Cm.l(H([b,new q(null,1,["X-SQA-Common-Version","6.16.0-9"],null)])),g=TO(),h=RU;u(h)?UO(function(){if(u(d)){var k=v.h(a);var l=v,m=l.h,p=co(d),r=[],w;for(w in p)Ua(w,p[w],r);k=[k,"?",m.call(l,r.join("\x26"))].join("")}else k=a;l={method:c,headers:co(f),body:co(e)};return h.g?h.g(k,l):h.call(null,k,l)}(),function(k){return YO(g,io(k,H([jo,!0])))}):BO(g,Go("Api fn not set",gj));return g}
1209
+ function SU(a,b){b=X(b);var c=x.j(b,xt,"GET"),d=x.g(b,MA),e=x.g(b,aD);b=x.g(b,qx);var f=Cm.l(H([b,new q(null,1,["X-SQA-Common-Version","6.17.0-2"],null)])),g=TO(),h=RU;u(h)?UO(function(){if(u(d)){var k=v.h(a);var l=v,m=l.h,p=co(d),r=[],w;for(w in p)Ua(w,p[w],r);k=[k,"?",m.call(l,r.join("\x26"))].join("")}else k=a;l={method:c,headers:co(f),body:co(e)};return h.g?h.g(k,l):h.call(null,k,l)}(),function(k){return YO(g,io(k,H([jo,!0])))}):BO(g,Go("Api fn not set",gj));return g}
1210
1210
  var TU=ko(SU),UU=function UU(a){switch(arguments.length){case 2:return UU.g(arguments[0],arguments[1]);case 3:return UU.j(arguments[0],arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",v.h(arguments.length)].join(""));}};UU.g=function(a,b){return UU.j(a,b,null)};
1211
1211
  UU.j=function(a,b,c){function d(){return l(new Y(null,2,5,Z,[rg,h.g?h.g(a,g):h.call(null,a,g)],null))}c=X(c);var e=x.g(c,QD),f=x.g(c,Vq),g=Lk(b,new Y(null,2,5,Z,[MA,mq],null),!0),h=function(){function m(p,r){return u(f)?SO.race(Qc(Gj.g(zO,new Y(null,2,5,Z,[f,SU(p,r)],null)))):SU(p,r)}return Ah.h?Ah.h(m):Ah.call(null,m)}(),k=TO(),l=function r(p){return VO(UO(XO(p),function(w){var A=R(w,0),C=R(w,1);return nO.g(null,function(){return zO(function(){var G=X(C),O=x.g(G,Wn);G=x.g(G,aD);if(z.g(O,200)){var W=
1212
1212
  X(G);G=x.g(W,HE);O=x.g(W,wF);var T=x.g(W,Wy);W=x.g(W,Fx);W=Jk(W,new Y(null,2,5,Z,[Ss,Ly],null));if(u(G))return null;u(e)&&(e.h?e.h(O):e.call(null,O));u(T)?(G=Z,O=Ek.g(A,O),T=Lk(g,new Y(null,2,5,Z,[MA,Ly],null),W),T=h.g?h.g(a,T):h.call(null,a,T),O=new q(null,2,[Nv,qA,Ro,new Y(null,2,5,G,[O,T],null)],null)):O=Ek.g(A,O);return O}if(z.g(O,404))return A;throw Go(["Non 200 status code returned in paged api call for ",v.h(a)].join(""),g);}())})}),function(w,A){return null!=A?BO(k,A):Og(w)&&z.g(Nv.h(w),qA)?
@@ -1235,7 +1235,7 @@ function RV(a){a=mS(a,PV);var b=X(a);a=x.g(b,QA);b=x.g(b,dn);return u(b)?b:a}fun
1235
1235
  function UV(a){if(!(a instanceof GN))throw Error("Assert failed: (pred/local-date-time? ldt)");return z.g(jO.h(hO(a)),a)}
1236
1236
  function VV(a,b,c){var d=dk();d=d.h?d.h(a):d.call(null,a);if(!u(d))throw Error("Assert failed: ((some-fn string? keyword? nil?) granularity)");if(!(b instanceof GN))throw Error("Assert failed: (pred/local-date-time? start)");if(!(c instanceof GN))throw Error("Assert failed: (pred/local-date-time? end)");return u(a)?fv.h(NT(a)):Hj(UV,new Y(null,2,5,Z,[b,c],null))?"calendar":"clock"}
1237
1237
  var WV=tS.l(H([rS(new Y(null,1,5,Z,[aD],null)),XU("parameters"),rS(new Y(null,1,5,Z,[aD],null)),XU("Period"),rS(new Y(null,1,5,Z,[BE],null))]));
1238
- function XV(a){a=mS(a,WV);var b=X(a);a=x.g(b,QA);b=x.g(b,dn);a=u(b)?b:a;if(z.g("custom",LA.h(a))){b=PT(jz.h(Tv.h(a)));var c=PT(Oy.h(Tv.h(a)));a=Jk(a,new Y(null,2,5,Z,[Tv,Cq],null));return new q(null,4,[mC,"custom",kv,b,EC,c,Oo,u(a)?a:"user"],null)}c=kU(a);b=R(c,0);c=R(c,1);var d=x.g(jU,xi(a));d=X(d);d=x.g(d,Oo);return new q(null,5,[mC,a,kv,b,EC,c,Oo,d,hv,dj.g(a,"since-beginning")],null)}
1238
+ function XV(a){a=mS(a,WV);var b=X(a);a=x.g(b,QA);b=x.g(b,dn);a=u(b)?b:a;if(z.g("custom",LA.h(a))){b=PT(jz.h(Tv.h(a)));var c=PT(Oy.h(Tv.h(a)));a=Jk(a,new Y(null,2,5,Z,[Tv,Cq],null));return new q(null,5,[mC,"custom",kv,b,EC,c,Oo,u(a)?a:"user",hv,!0],null)}c=kU(a);b=R(c,0);c=R(c,1);var d=x.g(jU,xi(a));d=X(d);d=x.g(d,Oo);return new q(null,5,[mC,a,kv,b,EC,c,Oo,d,hv,dj.g(a,"since-beginning")],null)}
1239
1239
  function YV(a,b){if(!u(function(){var c=new Hm(null,new q(null,2,["calendar",null,"clock",null],null),null);return c.h?c.h(a):c.call(null,a)}()))throw Error('Assert failed: (#{"calendar" "clock"} clock-or-calendar-mode)');if(!u(function(){var c=new Hm(null,new q(null,2,["device",null,"user",null],null),null);return c.h?c.h(b):c.call(null,b)}()))throw Error('Assert failed: (#{"device" "user"} selection-timezone-mode)');return z.g(a,"calendar")?function(c){return hO(c).format($S)}:z.g(b,"user")?function(c){return v.h(Xc(BN,
1240
1240
  "ofEpochMilli",H([QT(c)])))}:function(c){return aT(ZS,c)}}
1241
1241
  function ZV(a,b){if(!u(function(){var l=new Hm(null,new q(null,2,[Wy,null,wz,null],null),null);return l.h?l.h(b):l.call(null,b)}()))throw Error("Assert failed: (#{:next :previous} direction)");if(!u(kv.h(a)))throw Error("Assert failed: (:start period)");if(!u(EC.h(a)))throw Error("Assert failed: (:end period)");var c=X(a),d=x.g(c,kv),e=x.g(c,EC);c=hO(d);var f=hO(e),g=gP.between(d,e),h=iP.between(d,e),k=hP.between(d,e);c=Hj(UV,new Y(null,2,5,Z,[d,e],null))?1<=g&&z.l(c.dayOfYear(),f.dayOfYear(),H([1]))?
@@ -1303,7 +1303,7 @@ null)}J=N(D);J=X(J);J=x.g(J,uz);F=X(J);J=x.g(F,bt);F=x.g(F,hC);return lg(new Y(n
1303
1303
  E;;){var F=I(D);if(F){var K=F,J=N(K),L=R(J,0),M=X(L),Q=x.g(M,hC),U=x.g(M,Os),V=x.g(M,av),aa=x.g(M,en),ca=x.g(M,lv),fa=x.g(M,fx),ka=x.g(M,Ox),la=x.g(M,Py),ma=x.g(M,Ez),xa=x.g(M,IA),Da=R(J,1);if(F=I(function(Ja,eb,Ta,gb,ib,hb,tb,Db,lb,Ya,jb,Xa,db,mb,cb,ob,Nb,zb,Wb,Gb,Qb,Hb,uc,vb,Ab,yb,cc,Hc,wc,dc,xc,cd,Tc,Cc,Mc,Uc,bc,$c,Dc,Nc,Rc){return function td(ld){return new yi(null,function(dd,ud,md,Qd,ed,nd,Zd,$d,Fb,pd,vd,he,ad,Cd,ie,Jb,ec,Dd,Kd,Sc,Xe,Ld,Ed,Kb,Oc,Ye,df,Sf,wd,ue,rf,If,fi,ah,Tf,Dh,gi,hi,nj,Vo,
1304
1304
  Al){return function(){for(var Eh=ld;;){var bh=I(Eh);if(bh){var ii=bh,Kg=N(ii),ji=R(Kg,0),oj=X(ji),hn=x.g(oj,ku),ki=x.g(oj,ct),jn=R(Kg,1),Fh=R(Kg,2),li=function(){var Jf=null==Ye?null:Zi(Ye,new Y(null,2,5,Z,[ad,ki],null));return null==Jf?null:wi.h(Jf)}(),Bl=RW(he);if(dj.g(li,rz)&&(bh=I(function(Jf,je,Gh,ug,Lg,Ii,ve,Md,Uf,ke,xd,ef,ff,Ji,pj,ar,br,kn,Ki,ln,mn,Cl,le,qj,nn,Wo,Xo,Yo,Dl,ae,me,on,pn,Zo,qn,rn,rk,we,cr,dr,er,fr,gr,hr,ir,jr,Zx,kr,$o,St,lr,Tt,Ut){return function mr(Vt){return new yi(null,function(nr,
1305
1305
  or,sk,sn,pr,tn,ch,Li,tk,mi,rj,ap,Wt,Xt,Yt,Zt,sj,$x,Mi,un,qr,uk,vn,rr,wn,xn,yn,sr,tr,ur,vr,wr,xr,tj,yr,zr,Ar,Br,El,Cr,Dr,Er,Fr,Gr,Hr,Ir,zn,Jr,Kr,Lr,Mr,Nr,An){return function(){for(;;){var Bn=I(Vt);if(Bn){var uj=Bn;if(Rg(uj)){var bp=Re(uj),cp=fg(bp),dp=Ci(cp);return function(){for(var sf=0;;)if(sf<cp){var Ni=qd.g(bp,sf),ep=R(Ni,0),$t=R(Ni,1),fp=X($t),au=x.g(fp,en),bu=x.g(fp,qs),gp=x.g(fp,bt);Fi(dp,Cm.l(H([em([bs,ku,Xu,fx,Fy,uz,yz,GA,IA,wF],[An?function(){var Or=null==Mi?null:CV.h?CV.h(Mi):CV.call(null,
1306
- Mi);return z.g(Nv.h(Or),"fixed")?bs.h(Or):yn}():rj,SW(Li,au,gp,un),z.g(vn,"interpolate"),tW.h?tW.h(uk):tW.call(null,uk),x.g(zn,gp),new q(null,5,[mu,wn,hC,sj,Js,tk,Ts,bu,bt,gp],null),z.g(sk,py)?.4:1,z.g(sk,jw)?4:2,xn,Gj.j(function(Or,dD,eD,fD,gD,hD,iD,jD,kD,lD,mD,nD,oD,pD,qD,rD,sD,tD,uD,vD,wD,xD,yD,ay,by,zD,sX,tX,DL,uX,EL,vX,wX,xX,FL,AD){return function(GL,HL){return new Y(null,2,5,Z,[ST(GL),JW(HL,new q(null,1,[Ox,AD],null))],null)}}(sf,nr,or,Ni,ep,$t,fp,au,bu,gp,bp,cp,dp,uj,Bn,sk,sn,pr,tn,ch,Li,tk,
1306
+ Mi);return z.g(Nv.h(Or),"fixed")?bs.h(Or):yn}():rj,SW(Li,au,gp,un),z.g(vn,"interpolate"),tW.h?tW.h(uk):tW.call(null,uk),x.g(zn,gp),new q(null,5,[mu,wn,hC,sj,Js,tk,Ts,bu,bt,gp],null),z.g(sk,py)?.4:1,z.g(sk,jw)?4:2,xn,Gj.j(function(Or,dD,eD,fD,gD,hD,iD,jD,kD,lD,mD,nD,oD,pD,qD,rD,sD,tD,uD,vD,wD,xD,yD,ay,by,zD,sX,tX,EL,uX,FL,vX,wX,xX,GL,AD){return function(HL,IL){return new Y(null,2,5,Z,[ST(HL),JW(IL,new q(null,1,[Ox,AD],null))],null)}}(sf,nr,or,Ni,ep,$t,fp,au,bu,gp,bp,cp,dp,uj,Bn,sk,sn,pr,tn,ch,Li,tk,
1307
1307
  mi,rj,ap,Wt,Xt,Yt,Zt,sj,$x,Mi,un,qr,uk,vn,rr,wn,xn,yn,sr,tr,ur,vr,wr,xr,tj,yr,zr,Ar,Br,El,Cr,Dr,Er,Fr,Gr,Hr,Ir,zn,Jr,Kr,Lr,Mr,Nr,An),NW(tj,sj),OW(tj,sj,mi,ep))]),sn])));sf+=1}else return!0}()?Ei(Gi(dp),mr(Se(uj))):Ei(Gi(dp),null)}var hp=N(uj),ip=R(hp,0),vj=R(hp,1),ni=X(vj),oi=x.g(ni,en),Mg=x.g(ni,qs),vk=x.g(ni,bt);return lg(Cm.l(H([em([bs,ku,Xu,fx,Fy,uz,yz,GA,IA,wF],[An?function(){var sf=null==Mi?null:CV.h?CV.h(Mi):CV.call(null,Mi);return z.g(Nv.h(sf),"fixed")?bs.h(sf):yn}():rj,SW(Li,oi,vk,un),z.g(vn,
1308
1308
  "interpolate"),tW.h?tW.h(uk):tW.call(null,uk),x.g(zn,vk),new q(null,5,[mu,wn,hC,sj,Js,tk,Ts,Mg,bt,vk],null),z.g(sk,py)?.4:1,z.g(sk,jw)?4:2,xn,Gj.j(function(sf,Ni,ep,$t,fp,au,bu,gp,Or,dD,eD,fD,gD,hD,iD,jD,kD,lD,mD,nD,oD,pD,qD,rD,sD,tD,uD,vD,wD,xD,yD,ay){return function(by,zD){return new Y(null,2,5,Z,[ST(by),JW(zD,new q(null,1,[Ox,ay],null))],null)}}(nr,or,hp,ip,vj,ni,oi,Mg,vk,uj,Bn,sk,sn,pr,tn,ch,Li,tk,mi,rj,ap,Wt,Xt,Yt,Zt,sj,$x,Mi,un,qr,uk,vn,rr,wn,xn,yn,sr,tr,ur,vr,wr,xr,tj,yr,zr,Ar,Br,El,Cr,Dr,
1309
1309
  Er,Fr,Gr,Hr,Ir,zn,Jr,Kr,Lr,Mr,Nr,An),NW(tj,sj),OW(tj,sj,mi,ip))]),sn])),mr(Cf(uj)))}return null}}}(Jf,je,Gh,ug,Lg,Ii,ve,Md,Uf,ke,xd,ef,ff,Ji,pj,ar,br,kn,Ki,ln,mn,Cl,le,qj,nn,Wo,Xo,Yo,Dl,ae,me,on,pn,Zo,qn,rn,rk,we,cr,dr,er,fr,gr,hr,ir,jr,Zx,kr,$o,St,lr,Tt,Ut),null,null)}}(Eh,dd,li,Bl,Kg,ji,oj,hn,ki,jn,Fh,ii,bh,ud,md,Qd,ed,nd,Zd,$d,Fb,pd,vd,he,ad,Cd,ie,Jb,ec,Dd,Kd,Sc,Xe,Ld,Ed,Kb,Oc,Ye,df,Sf,wd,ue,rf,If,fi,ah,Tf,Dh,gi,hi,nj,Vo,Al)(Uj(Sj,Fb)))))return Qi.g(bh,td(Cf(Eh)));Eh=Cf(Eh)}else return null}}}(Ja,
@@ -1377,8 +1377,8 @@ zb=x.g(ob,Pt),Wb=Ah.h?Ah.h(pW):Ah.call(null,pW),Gb=Ah.h?Ah.h($W):Ah.call(null,$W
1377
1377
  oj=x.g(ii,ez);return nO.g(vc(oj)?qW(Kg,rf):null,function(hn,ki,jn,Fh,li,Bl,Jf,je,Gh,ug,Lg,Ii,ve,Md,Uf,ke,xd,ef,ff,Ji,pj,ar,br,kn,Ki,ln,mn,Cl,le,qj,nn,Wo,Xo,Yo,Dl,ae,me,on,pn){return function(Zo){return nO.g(vc(Jf)?qj.h?qj.h(Fh):qj.call(null,Fh):null,function(qn,rn,rk,we,cr,dr,er,fr,gr,hr,ir,jr,Zx,kr,$o,St,lr,Tt,Ut,cu,Vt,mr,nr,or,sk,sn,pr,tn,ch,Li,tk,mi,rj,ap,Wt,Xt,Yt,Zt,sj){return function($x){return nO.g(Ek.g(gj,function(){return function(Mi,un,qr,uk,vn,rr,wn,xn,yn,sr,tr,ur,vr,wr,xr,tj,yr,zr,Ar,
1378
1378
  Br,El,Cr,Dr,Er,Fr,Gr,Hr,Ir,zn,Jr,Kr,Lr,Mr,Nr,An,Bn,uj,bp,cp){return function ip(hp){return new yi(null,function(){return function(){for(;;){var vj=I(hp);if(vj){if(Rg(vj)){var ni=Re(vj),oi=fg(ni),Mg=Ci(oi);a:for(var vk=0;;)if(vk<oi){var sf=qd.g(ni,vk);sf=X(sf);sf=x.g(sf,cv);var Ni=X(sf);sf=x.g(Ni,Yp);var ep=x.g(Ni,tz);Ni=x.g(Ni,bt);sf=new Y(null,2,5,Z,[wi.h(Ni),new q(null,2,[Yp,sf,tz,ep],null)],null);Mg.add(sf);vk+=1}else{ni=!0;break a}return ni?Ei(Gi(Mg),ip(Se(vj))):Ei(Gi(Mg),null)}Mg=N(vj);Mg=X(Mg);
1379
1379
  Mg=x.g(Mg,cv);oi=X(Mg);Mg=x.g(oi,Yp);ni=x.g(oi,tz);oi=x.g(oi,bt);return lg(new Y(null,2,5,Z,[wi.h(oi),new q(null,2,[Yp,Mg,tz,ni],null)],null),ip(Cf(vj)))}return null}}}(Mi,un,qr,uk,vn,rr,wn,xn,yn,sr,tr,ur,vr,wr,xr,tj,yr,zr,Ar,Br,El,Cr,Dr,Er,Fr,Gr,Hr,Ir,zn,Jr,Kr,Lr,Mr,Nr,An,Bn,uj,bp,cp),null,null)}}(qn,rn,rk,we,cr,dr,er,fr,gr,hr,ir,jr,Zx,kr,$o,St,lr,Tt,Ut,cu,Vt,mr,nr,or,sk,sn,pr,tn,ch,Li,tk,mi,rj,ap,Wt,Xt,Yt,Zt,sj)(kp.h(lr))}()),function(Mi,un,qr,uk,vn,rr,wn,xn,yn,sr,tr,ur,vr,wr,xr,tj,yr,zr,Ar,Br,
1380
- El,Cr,Dr,Er,Fr,Gr,Hr,Ir,zn,Jr,Kr,Lr,Mr,Nr,An,Bn,uj,bp,cp){return function(dp){return nO.g(u(tW.h?tW.h(El):tW.call(null,El))?[xi(Td(N(dp))),"/",xi(tj),"/",v.h(El)].join(""):null,function(hp,ip,vj,ni,oi,Mg,vk,sf,Ni,ep,$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b,la,l,m,p,k,h,b,c,d)));ka+=1}else return!0}()?Ei(Gi(p),g(Se(k))):Ei(Gi(p),null)}var r=N(k),w=r,A=X(w),C=x.g(A,Ez),G=x.g(A,hC),O=x.g(A,zz),W=O,T=X(W),S=x.g(T,TA),t=x.g(T,Op),E=x.g(T,ys),B=
1383
1383
  x.g(T,Jp),D=x.g(T,en),F=x.g(T,fE),K=x.g(T,fx),J=S,L=X(J),M=x.g(L,Uz),Q=M,U=X(Q),V=x.g(U,UA),aa=x.g(U,Pt),ca=Ah.h?Ah.h(pW):Ah.call(null,pW),fa=Ah.h?Ah.h($W):Ah.call(null,$W);return lg(nO.g(null,function(ka,la,ma,xa,Da,Ja,eb,Ta,gb,ib,hb,tb,Db,lb,Ya,jb,Xa,db,mb,cb,ob,Nb,zb,Wb,Gb,Qb,Hb,uc,vb){return function(){return nO.g(function(){var Ab=new q(null,1,[RD,vb],null);return Nb.j?Nb.j(a,cb,Ab):Nb.call(null,a,cb,Ab)}(),function(Ab){var yb=X(Ab);Ab=x.g(yb,Gx);var cc=x.g(yb,Os),Hc=x.g(yb,ez);return nO.g(vc(Hc)?
1384
1384
  qW(Ab,ob):null,function(wc){return nO.g(vc(Hc)?zb.h?zb.h(yb):zb.call(null,yb):null,function(dc){return nO.g(Ek.g(gj,function(){return function Tc(cd){return new yi(null,function(){for(;;){var Cc=I(cd);if(Cc){if(Rg(Cc)){var Mc=Re(Cc),Uc=fg(Mc),bc=Ci(Uc);a:for(var $c=0;;)if($c<Uc){var Dc=qd.g(Mc,$c);Dc=X(Dc);Dc=x.g(Dc,cv);var Nc=X(Dc);Dc=x.g(Nc,Yp);var Rc=x.g(Nc,tz);Nc=x.g(Nc,bt);Dc=new Y(null,2,5,Z,[wi.h(Nc),new q(null,2,[Yp,Dc,tz,Rc],null)],null);bc.add(Dc);$c+=1}else{Mc=!0;break a}return Mc?Ei(Gi(bc),