@olympeio/runtime-web 9.4.3 → 9.4.4
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.js
CHANGED
|
@@ -243,8 +243,8 @@ parseFloat(t):t=decodeURIComponent(t);b[r[1]]=t}return{scheme:a||null,RZ:g||null
|
|
|
243
243
|
olympe.xa.HT=a=>{var b=olympe.ea.nk;const c=Object.keys(b).find(d=>b[d]===a);return void 0===c?null:c};olympe.xa.JC=(a,b)=>{if(b instanceof Object)for(const c of Object.keys(b)){const d=b[c];d instanceof Object&&void 0!==a[c]?olympe.xa.JC(a[c],d):a[c]=d}};olympe.xa.Qj=(a,b,c)=>{const d=Object.create(null);b(a,e=>{olympe.xa.JC(d,e);b(`conf.d/${a}`,f=>{olympe.xa.JC(d,f);c(d)})})};olympe.xa.QZ=class a{constructor(b,c){this.x=b;this.y=c}add(b){return new a(this.x+b.x,this.y+b.y)}rotate(b,c){c=c*Math.PI/180;const d=Math.cos(c);c=Math.sin(c);return new a(d*(this.x-b.x)-c*(this.y-b.y)+b.x,c*(this.x-b.x)+d*(this.y-b.y)+b.y)}clone(){return new a(this.x,this.y)}$y(){return Math.sqrt(this.x*this.x+this.y*this.y)}toString(){return`Vector(${this.x}, ${this.y})`}};olympe.xa.xW=class{constructor(a,b,c,d){this.from=a;this.target=b;this.C=c;this.F=d}toString(){return`(${this.from.toString()}, ${this.target.toString()}, ${this.C.toString()}, ${this.F.toString()})`}};olympe.xa.fQ=class{constructor(a,b){this.start=a;this.end=b}};olympe.xa.fQ.C={ug:'left',Ph:'right',Yg:'bottom',Hg:'top'};function eb(a){return`${a.C}.${a.F}.${a.O}`}
|
|
244
244
|
olympe.xa.Fn=class{constructor(a,b,c,d){this.C=a;this.F=b;this.O=c;this.R=d||null}static parse(a){a=/([0-9]*)\.([0-9]*)\.([0-9]*)-?([A-z\-_0-9]*)/.exec(a);if(null===a||4>a.length)return olympe.xa.Fn.C;const b=Number.parseInt(a[1],10),c=Number.parseInt(a[2],10),d=Number.parseInt(a[3],10);return isNaN(b)||isNaN(c)||isNaN(d)?olympe.xa.Fn.C:new olympe.xa.Fn(b,c,d,a[4])}nz(a){return this.C!==a.C?this.C>a.C:this.F!==a.F?this.F>a.F:this.O>a.O}Kw(a){return this.C!==a.C?this.C<a.C:this.F!==a.F?this.F<a.F:
|
|
245
245
|
this.O<a.O}Yb(a){return this.C===a.C&&this.F===a.F&&this.O===a.O}toString(){return`${this.C}.${this.F}.${this.O}`+(null!==this.R?`-${this.R}`:'')}};olympe.xa.Fn.C=new olympe.xa.Fn(Number.NaN,Number.NaN,Number.NaN);olympe.xa.ga={Zr:'utils.binaryConverter',rN:'utils.base64Converter'};olympe.va.qe(a=>{Aa(a,olympe.xa.ga.Zr);za(a,olympe.xa.ga.rN,olympe.xa.ga.Zr,!0)},'Utils services');olympe.va.run([olympe.xa.ga.Zr],a=>{olympe.xa.Bi=()=>a});olympe.G.H.xa={};olympe.G.H.xa.iA=class extends olympe.xa.iA{O(a){a=window.atob(a);const b=new Uint8Array(new ArrayBuffer(a.length));for(let c=0,d=a.length;c<d;c++)b[c]=a.charCodeAt(c);return b}C(a){let b='';a=a instanceof Uint8Array?a:new Uint8Array(a);for(let c=0,d=a.byteLength;c<d;c++)b+=String.fromCodePoint(a[c]);return window.btoa(b)}F(a,b,c){fetch(a).then(d=>d.blob()).then(b).catch(d=>{null==c||c(d.toString())})}};olympe.va.qe(a=>{ya(a,olympe.xa.ga.Zr,olympe.G.H.xa.iA)},'olympe.native.html.utils');olympe.tb={};olympe.tb.De=class{aa(){}R(){}C(){}la(){}T(){}Ba(){}ba(){}$(){}trace(){}debug(){}log(){}info(){}warn(){}error(){}fatal(){}};olympe.tb.De.prototype.fatal=olympe.tb.De.prototype.fatal;olympe.tb.De.prototype.error=olympe.tb.De.prototype.error;olympe.tb.De.prototype.warn=olympe.tb.De.prototype.warn;olympe.tb.De.prototype.info=olympe.tb.De.prototype.info;olympe.tb.De.prototype.log=olympe.tb.De.prototype.log;olympe.tb.De.prototype.debug=olympe.tb.De.prototype.debug;olympe.tb.De.prototype.trace=olympe.tb.De.prototype.trace;
|
|
246
|
-
olympe.tb.De.C={CR:0,Fo:1,ZP:2,EF:3,RR:4,Ee:5,dO:6,kB:7};olympe.tb.De.F={0:'TRACE',1:'DEBUG',2:'LOG',3:'INFO',4:'WARN',5:'ERROR',6:'FATAL',7:'NOTHING'};olympe.tb.Eb=class{Vg(){}};olympe.tb.Ah={};function fb(a,b,c,d){a
|
|
247
|
-
olympe.tb.Ah.De=class{constructor(a,b){this.name=a;this.F=b;this.O=a.toUpperCase();this.V=new Map;this
|
|
246
|
+
olympe.tb.De.C={CR:0,Fo:1,ZP:2,EF:3,RR:4,Ee:5,dO:6,kB:7};olympe.tb.De.F={0:'TRACE',1:'DEBUG',2:'LOG',3:'INFO',4:'WARN',5:'ERROR',6:'FATAL',7:'NOTHING'};olympe.tb.Eb=class{Vg(){}};olympe.tb.Ah={};function fb(a,b,c,d){a.$a[b](`[OLYMPE.${c}]:`,d.join(' '));if(0<a.V.size){var e=new Date;e=('00'+e.getHours()).substring(-2)+':'+('00'+e.getMinutes()).substring(-2)+':'+('00'+e.getSeconds()).substring(-2)+'.'+('00'+e.getMilliseconds()).substring(-3);for(const f of a.V.values())f(e,c,b,...d)}}
|
|
247
|
+
olympe.tb.Ah.De=class{constructor(a,b){this.name=a;this.F=b;this.O=a.toUpperCase();this.V=new Map;this.$a=console}aa(){return this.F}R(){return this.F<=olympe.tb.De.C.CR}C(){return this.F<=olympe.tb.De.C.Fo}T(){return this.F<=olympe.tb.De.C.ZP}la(){return this.F<=olympe.tb.De.C.EF}Ba(){return this.F<=olympe.tb.De.C.RR}ba(){return this.F<=olympe.tb.De.C.Ee}$(){return this.F<=olympe.tb.De.C.dO}trace(...a){this.R()&&fb(this,'trace',this.O,a)}debug(...a){this.C()&&fb(this,'debug',this.O,a)}log(...a){this.T()&&
|
|
248
248
|
fb(this,'log',this.O,a)}info(...a){this.la()&&fb(this,'info',this.O,a)}warn(...a){this.Ba()&&fb(this,'warn',this.O,a)}error(...a){this.ba()&&fb(this,'error',this.O,a)}fatal(...a){this.$()&&fb(this,'error',this.O,a)}};olympe.tb.Ah.De.Ca=[olympe.tb.De];olympe.tb.Ah.Eb=class{constructor(a,b,c){this.C=a;this.F=parseInt(b,10);this.O=c;this.channels=new Map;this.W=this.Vg('logging');this.W.info('Logging initialized, global log level is '+olympe.tb.De.F[b])}Vg(a){var b=this.channels.get(a);if(!b){b=this.F;var c=`${olympe.tb.qa.zN}.${a}`;Object.prototype.hasOwnProperty.call(this.C.parameters,c.toLowerCase())&&(b=parseInt(this.C.getParameter(c),10));let d=this.O;c=`${c}.${olympe.tb.qa.gR}`;Object.prototype.hasOwnProperty.call(this.C.parameters,c.toLowerCase())&&
|
|
249
249
|
(d=!0===this.C.getParameter(c));b=new olympe.tb.Ah.De(a,b,d);this.channels.set(a,b)}return b}};olympe.tb.Ah.Eb.Ca=[olympe.tb.Eb];olympe.tb.ga={Zb:'logging.Manager'};olympe.tb.qa={lF:'logging',mF:'logging.showLogLevel',zN:'logging',gR:'showLogLevel'};olympe.va.qe(function(a){B(a,olympe.tb.qa.lF,olympe.tb.De.C.EF);B(a,olympe.tb.qa.mF,!0);ya(a,olympe.tb.ga.Zb,olympe.tb.Ah.Eb,olympe.va.ga.Eo,new olympe.va.Ab(olympe.tb.qa.lF),new olympe.va.Ab(olympe.tb.qa.mF))},'olympe.logging');olympe.va.run([olympe.tb.ga.Zb],a=>{olympe.tb.Gb=b=>a.Vg(b)},'Logging singleton getter initialization');olympe.j={};olympe.j.qa={KH:'df.nodeCreationThreshold'};const gb=[];function hb(){}function ib(){}olympe.j.J=class a{constructor(b,c,d){this.C=void 0===b?hb:b;this.F=void 0===c?gb:c;this.aa=d}static C(b){return void 0===b||0===b.length?olympe.j.J.ba:new a(ib,b)}R(){return this.C?this.C():void 0}O(){return this.F?this.F:gb}T(){return null===this.C&&null===this.F}V(){return this.C===ib}};olympe.j.J.aa=new olympe.j.J;olympe.j.J.O=new olympe.j.J(null,null);olympe.j.J.ba=new olympe.j.J(ib);olympe.j.J.F=new olympe.j.J(()=>olympe.j.Z);
|
|
250
250
|
olympe.j.J.R=new olympe.j.J(()=>olympe.j.ib);olympe.j.J.T=new olympe.j.J(()=>olympe.j.fa);olympe.j.J.V=new olympe.j.J(()=>olympe.j.ha);olympe.j.ls=class{sa(){return''}zg(){return''}destroy(){}vc(){return!1}Ef(){return!1}run(a,...b){return a(...b)}F(a){return a}getParent(){return null}nf(){}Pe(){}Yf(){}Iy(){}la(){}onDestroy(){return''}Tn(){}R(){return''}Wd(){}};olympe.j.ls.prototype.offDestroy=olympe.j.ls.prototype.Tn;olympe.j.ls.prototype.onDestroy=olympe.j.ls.prototype.onDestroy;let jb=0;olympe.va.run([new olympe.va.Ab(olympe.j.qa.KH)],()=>{});
|
|
@@ -332,11 +332,11 @@ b){this.La[a]=b;olympe.j.sb().R(()=>{const c=this.aa;for(const d in c)Object.pro
|
|
|
332
332
|
!1===a(b[c],c,this))break}Cy(a,b){void 0!==this.values[a]&&this.kv(a,!0);this.values[a]=b;var c=this.Ba;null!==c&&void 0!==c[a]&&(b&&b instanceof olympe.j.Proxy?Lb(c[a],b):H(c[a],b));c=this.Ja;null!==c&&void 0!==c[a]&&J(c[a],!0);this.size++;c=this.La;for(const d in c)if(Object.prototype.hasOwnProperty.call(c,d))c[d](b,a,this)}kv(a,b){const c=this.values;if(Object.prototype.hasOwnProperty.call(c,a)){var d=(d=c[a])&&d.xh?D(d):d;var e=this.Ba;null!==e&&void 0!==e[a]&&Jb(e[a]);e=this.Ja;null!==e&&void 0!==
|
|
333
333
|
e[a]&&J(e[a],!1);delete c[a];this.size--;b||this.Gn()}a=this.aa[a];if(void 0!==a)for(const f in a)Object.prototype.hasOwnProperty.call(a,f)&&a[f].destroy();return d}Gn(){null!==this.R&&J(this.R,this.size)}Ts(){var a=this.Ba;if(null!==a)for(const c in a)Object.prototype.hasOwnProperty.call(a,c)&&Jb(a[c]);a=this.Ja;if(null!==a)for(var b in a)Object.prototype.hasOwnProperty.call(a,b)&&J(a[b],!1);for(const c in this.values)Object.prototype.hasOwnProperty.call(this.values,c)&&delete this.values[c];for(const c in this.aa)if(Object.prototype.hasOwnProperty.call(this.aa,
|
|
334
334
|
c)){b=this.aa[c];for(const d in b)Object.prototype.hasOwnProperty.call(b,d)&&b[d].destroy()}this.size=0;null!==this.R&&J(this.R,this.size)}xq(){const a=this.values;let b='\n';for(const c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b+=a[c]+'\n');return b}};olympe.j.tu.Ca=[olympe.j.gk];h=olympe.j.tu.prototype;h.getContext.K=olympe.j.J.O;h.Ae.K=olympe.j.J.O;h.Mh.K=olympe.j.J.O;h.get.K=new olympe.j.J(()=>Object,[],'valueType');h.ij.K=olympe.j.J.O;h.has.K=olympe.j.J.T;h.ai.K=olympe.j.J.O;h.Hv.K=olympe.j.J.O;
|
|
335
|
-
h.bd.K=olympe.j.J.F;h.Di.K=olympe.j.J.O;h.forEach.K=new olympe.j.J(()=>{},[]);h.UB.K=olympe.j.J.O;h.TB.K=olympe.j.J.O;h.WJ.K=olympe.j.J.O;h.WB.K=olympe.j.J.O;h.Th.K=olympe.j.J.O;h.Cy.K=olympe.j.J.O;h.kv.K=olympe.j.J.O;h.Gn.K=olympe.j.J.O;h.Ts.K=olympe.j.J.O;h.xq.K=olympe.j.J.O;olympe.j.Rw=class extends olympe.j.tu{constructor(a,b){super(a,b);this.F=Object.create(null);this.C=[];this.la=this
|
|
336
|
-
c=>{const d=c.valueOf(),e=this.Ek(d);null===this
|
|
335
|
+
h.bd.K=olympe.j.J.F;h.Di.K=olympe.j.J.O;h.forEach.K=new olympe.j.J(()=>{},[]);h.UB.K=olympe.j.J.O;h.TB.K=olympe.j.J.O;h.WJ.K=olympe.j.J.O;h.WB.K=olympe.j.J.O;h.Th.K=olympe.j.J.O;h.Cy.K=olympe.j.J.O;h.kv.K=olympe.j.J.O;h.Gn.K=olympe.j.J.O;h.Ts.K=olympe.j.J.O;h.xq.K=olympe.j.J.O;olympe.j.Rw=class extends olympe.j.tu{constructor(a,b){super(a,b);this.F=Object.create(null);this.C=[];this.la=this.$a=this.Fa=this.$=null}Mh(a){super.Mh(a);if(null!==this.la)for(let b of this.la.values())Hb(b,a)}Ld(){return this.eh(0)}im(){return this.mm(0)}Se(a){const b=c=>{null===this.Fa&&(this.Fa=Object.create(null));let d=this.Xl(a);d=void 0!==d?olympe.j.ya(d):void 0;return this.Hv(this.Fa,c,d,olympe.j.Z,`List.getRank(${c})`)};return olympe.j.Xb(a)?Ib(a,b,null,olympe.j.Z):b(a)}Xl(a){return this.F[a]}mm(a){const b=
|
|
336
|
+
c=>{const d=c.valueOf(),e=this.Ek(d);null===this.$a&&(this.$a=Object.create(null));return this.Hv(this.$a,String(d),e,String,'List.getKeyAt('+c+')')};return olympe.j.Wa([a],c=>b(c),String)}Ek(a){return this.C[a.valueOf()]}eh(a){if(olympe.j.Xb(a))return this.get(olympe.j.Wa([a],c=>{c=this.mm(c);if(!pb(c.Rb)){const d=olympe.j.sb();olympe.j.sm(d)&&Bb(d)}return c},String));null===this.la&&(this.la=new Map);let b=this.la.get(a);b||this.T.run(()=>{b=this.get(this.mm(a));this.la.set(a,b);b.Rb.onDestroy(()=>
|
|
337
337
|
this.la.delete(a))});return b}Dk(a){return this.ij(this.Ek(a))}Cv(a,b,c,d){let e=this.UB();a=this.kM(e,a,b,c,d);this.TB(e,a)}kM(a,b,c,d,e){return olympe.j.sb().F((f,g)=>{let k=!1,l=olympe.j.mu([b,c,this.Se(g)],(m,n,p)=>{p>=m&&p<m+n?k||(d(f,g,this),k=!0):k&&(e(g),k=!1)});if(void 0!==e)l.onDestroy(e.bind(null,g));this.WB(a,g,l)})}ot(){null===this.$&&this.T.run(()=>{this.$=olympe.j.pb(Array,this.C.filter(a=>void 0!==a));this.$.Rb.onDestroy(()=>{this.R=null})});return this.$}Th(a){if(this.C.length!==
|
|
338
|
-
this.size)super.Th(a);else{var b=this.values;for(let c of this.C.filter(d=>void 0!==d))if(Object.prototype.hasOwnProperty.call(b,c)&&!1===a(b[c],c,this))break}}Dy(a,b){const c=this.Fa,d=this
|
|
339
|
-
Jb(d[e]),void 0!==d[b]&&H(d[b],a))}}VB(a){var b=this
|
|
338
|
+
this.size)super.Th(a);else{var b=this.values;for(let c of this.C.filter(d=>void 0!==d))if(Object.prototype.hasOwnProperty.call(b,c)&&!1===a(b[c],c,this))break}}Dy(a,b){const c=this.Fa,d=this.$a,e=this.F[a],f=b.valueOf();if(e!==f||this.C[e]!==a){var g=this.C[f];void 0!==g&&delete this.F[g];void 0!==e&&null!==e&&this.C[e]===a&&(this.C[e]=void 0);this.F[a]=f;this.C[f]=a;null!==c&&(void 0!==g&&void 0!==c[g]&&Jb(c[g]),void 0!==c[a]&&H(c[a],olympe.j.ya(f)));null!==d&&(void 0!==e&&null!==e&&void 0!==d[e]&&
|
|
339
|
+
Jb(d[e]),void 0!==d[b]&&H(d[b],a))}}VB(a){var b=this.$a,c=this.F[a];null!==c&&void 0!==c&&null!==b&&(b=b[c],void 0!==b&&D(b)===a&&Jb(b));delete this.F[a];this.C.splice(c,1);c=this.Fa;null!==c&&void 0!==c[a]&&Jb(c[a])}XB(){if(null!==this.$){const a=this.C,b=D(this.$);b&&a.join(',')!==b.join(',')&&H(this.$,a)}}Gn(){this.XB();super.Gn()}Ts(){var a=this.F;for(b in a)delete a[b];this.C.length=0;a=this.Fa;if(null!==a)for(b in a)Jb(a[b]);a=this.$a;if(null!==a)for(b in a)Jb(a[parseInt(b,10)]);var b=this.$;
|
|
340
340
|
null!==b&&(zb(b.Rb),H(b,this.C));return olympe.j.tu.prototype.Ts.call(this)}xq(){const a=this.values,b=this.F;let c='[\n';for(let d in a)Object.prototype.hasOwnProperty.call(a,d)&&(c+=`${b[d]}. ${a[d]}\n`);return c+']'}};olympe.j.Rw.Ca=[olympe.j.wg];h=olympe.j.Rw.prototype;h.Mh.K=olympe.j.J.O;h.Ld.K=new olympe.j.J(()=>Object,[]);h.im.K=new olympe.j.J(()=>String,[]);h.Se.K=olympe.j.J.F;h.Xl.K=olympe.j.J.O;h.mm.K=new olympe.j.J(()=>String,[]);h.Ek.K=olympe.j.J.O;h.eh.K=new olympe.j.J(()=>Object,[]);
|
|
341
341
|
h.Dk.K=olympe.j.J.O;h.Cv.K=new olympe.j.J(()=>{},[]);h.kM.K=olympe.j.J.O;h.ot.K=new olympe.j.J(()=>Array,[]);h.Th.K=olympe.j.J.O;h.Dy.K=olympe.j.J.O;h.VB.K=olympe.j.J.O;h.XB.K=olympe.j.J.O;h.Gn.K=olympe.j.J.O;h.Ts.K=olympe.j.J.O;h.xq.K=olympe.j.J.O;olympe.j.Map=class extends olympe.j.tu{constructor(a){a===olympe.j.Proxy&&(a=Object);super(a);this.C=this.F=null}Mh(a){a===olympe.j.Proxy&&(a=Object);null!==this.F&&Hb(this.F,a);super.Mh(a)}Ld(){null===this.F&&this.fC();return this.F}im(){null===this.C&&this.fC();return this.C}fC(){this.getContext().run(()=>{this.F=olympe.j.pb(this.Ae());this.C=olympe.j.pb(String);this.rw(this.jC())})}jC(){const a=this.values;let b,c;for(b in a)if(Object.prototype.hasOwnProperty.call(a,b)){c=b;break}return c}rw(a){if(void 0!==
|
|
342
342
|
a){const b=this.values[a];b&&b instanceof olympe.j.Proxy?Lb(this.F,b):H(this.F,b);H(this.C,a)}else void 0!==D(this.F)&&(Jb(this.F),Jb(this.C))}set(a,b){this.Cy(a,b);1===this.size&&null!==this.C&&this.rw(a);this.Gn()}remove(a){const b=this.kv(a);null!==this.C&&D(this.C)===a&&this.rw(this.jC());return b}clear(){this.Ts();null!==this.C&&this.rw()}};h=olympe.j.Map.prototype;h.Mh.K=olympe.j.J.O;h.Ld.K=new olympe.j.J(()=>Object,[]);h.im.K=new olympe.j.J(()=>String,[]);h.fC.K=olympe.j.J.O;h.jC.K=olympe.j.J.O;
|
|
@@ -404,21 +404,21 @@ function fd(a,b,c,d,e){const f=bd(a,b,c,d);if(c===olympe.ea.Request.Bd.PUBLISH){
|
|
|
404
404
|
function gd(a,b){a.aa++;const c=a.aa,d=setTimeout(()=>ed(a,c),a.Fa);a.R.set(c,e=>{a.R.delete(c);clearTimeout(d);b(e)});return a.aa}function hd(a,b){a.ba.delete(b);let c;null==(c=a.F)||c.delete(b);a.W.debug(`Bus: Unsubscribe to ${b}`);return a.O||a.Ba?Promise.resolve():new Promise((d,e)=>{Oc(a.C,b,f=>f?e(f):d())})}
|
|
405
405
|
function id(a,b,c,d,e){null===a.F&&(a.F=new Map);let f=a.F.get(b);f?(a=f,a.O!==d&&(a.O=d,a.yt()&&(Vc(a),Zc(a,!1)))):(f=new olympe.ea.zR(a.W,a,b,d),a.F.set(b,f));d=f;d.C.set(c,e);1===d.C.size&&Zc(d,!1)}function jd(a,b,c){let d;const e=null==(d=a.F)?void 0:d.get(b);if(null==e?0:kd(e,c))a.publish(bd(a,b,olympe.ea.Request.Bd.hJ,c)).catch(f=>a.W.error(`Impossible to keep alive subscriptions: ${f}`)),0===e.bd()&&(a.F.delete(b),0===a.F.size&&(a.F=null))}
|
|
406
406
|
function ld(a,b){return rxjs.operators.retry({resetOnSuccess:!0,delay:c=>{if(c instanceof olympe.ea.errors.nB){const d=Math.round(5E3*Math.random());a.W.debug(`Subscription topic ${c.sa()} not registered in the service, re-subscribe in ${d}ms`);return rxjs.timer(d).pipe(rxjs.operators.tap(()=>null==b?void 0:b()))}return rxjs.throwError(()=>c)}})}function md(a,b){return new Promise((c,d)=>{a.V.wt(b.Vj(),(e,f)=>{e?d(e):c(f)})})}
|
|
407
|
-
olympe.ea.lE=class{constructor(a,b,c,d,e,f){b=f.get('connectionOptions');this.W=a;this.V=c;this.la=e;this.Fa=f.get('shortTimeout');this.La=f.get('requestTimeout');this.Ja=f.get('subscriptionsRefreshRate');this.R=new Map;this.C=Kc(f.get('url'),b);this
|
|
408
|
-
olympe.ta.Eb.C.INIT,b=olympe.ta.Eb.C.Ee,c=olympe.ta.Eb.C.Ej,d=olympe.ta.Eb.C.tl,e=olympe.ta.Eb.C.ln;return new Promise((f,g)=>{Lc(this.C)||this.O?f():olympe.j.Ua([this.V.getState()],k=>{const l=olympe.j.sb();if(this
|
|
407
|
+
olympe.ea.lE=class{constructor(a,b,c,d,e,f){b=f.get('connectionOptions');this.W=a;this.V=c;this.la=e;this.Fa=f.get('shortTimeout');this.La=f.get('requestTimeout');this.Ja=f.get('subscriptionsRefreshRate');this.R=new Map;this.C=Kc(f.get('url'),b);this.$a=f.get('allowGuest');this.aa=1;this.T=olympe.xa.Qe();this.F=null;this.O=!1;this.$=[];this.ba=new Map;this.Ba=!1;Rc(this.C,()=>{Uc(this)});Qc(this.C,()=>{Uc(this)});Pc(this.C,()=>{this.O&&(this.Ba=!1,Wc(this),this.O=!1,Xc(this))})}connect(){const a=
|
|
408
|
+
olympe.ta.Eb.C.INIT,b=olympe.ta.Eb.C.Ee,c=olympe.ta.Eb.C.Ej,d=olympe.ta.Eb.C.tl,e=olympe.ta.Eb.C.ln;return new Promise((f,g)=>{Lc(this.C)||this.O?f():olympe.j.Ua([this.V.getState()],k=>{const l=olympe.j.sb();if(this.$a||k!==d)switch(k){case a:this.Ba=!0;break;case b:case e:g(Error('Authentication failed.'));l.destroy();break;case c:case d:this.$a||nd(this.V,()=>$c(this).then()),this.O=!0,this.C.connect(()=>cd(this.V),()=>{l.destroy();f()})}else g(Error('Guest user is not allowed to connect to RabbitMQ, you can allow guest with the bus.allowGuest oConfig parameter !!!')),
|
|
409
409
|
l.destroy()})})}publish(a){return this.O?(a.getType()!==olympe.ea.Request.Bd.Dl&&(this.W.debug('Bus disconnected, storing message in queue'),this.$.push(a)),Promise.resolve()):new Promise((b,c)=>{try{const d=a.hb(this.la),e=a.jf();this.W.C()&&this.W.debug(`BUS > #${e}: ${JSON.stringify(d)}`);this.C.publish(e,d,void 0,f=>{f?c(f):b()})}catch(d){c(`An error occurred while serializing the message (seqId=${a.br()}): ${d}`)}})}ei(a,b,c){return ad(this,a.br(),a.Ie(),b,c)}};olympe.ea.lE.C='Timeout';const od=olympe.lb.de.Headers.oN,pd=olympe.lb.de.yk.PH,qd=olympe.lb.de.yk.HN,rd=olympe.lb.de.yk.Pw,sd=olympe.lb.de.yk.eR,td=olympe.lb.de.yk.yN,ud=olympe.lb.de.yk.hO,vd=olympe.lb.de.yk.HR,wd=olympe.lb.de.yk.rQ;function xd(a,b){let c;return null!=(c=a.O.get(b))?c:''}
|
|
410
410
|
function yd(a,b,c){if(null===b)return Promise.reject('No http request to send');Hc(b,{[od]:c});return rxjs.firstValueFrom(rxjs.defer(()=>new Promise((d,e)=>{const f=b.me();if(a.W.C()){const g=b.body;a.W.debug('HTTP >',f,`body: ${'string'===typeof g?g:typeof g}`)}a.C.C(b,g=>{switch(g.Zh()){case pd:case qd:case rd:const k=g.data;a.W.C()&&a.W.debug('HTTP <',g.Zh(),`content: ${'string'===typeof k?k:typeof k}`);d(k);break;case sd:g=`HTTP < Service provider for http request to ${b.me()} is overloaded, retry later`;
|
|
411
411
|
a.W.warn(g);e(new olympe.ea.errors.XH(g));break;case td:a.W.debug(`HTTP < request canceled (${b.me()}).`);d();break;case ud:case vd:g=`HTTP < request authorization denied: ${b.me()}`;a.W.error(g);e(new olympe.ea.errors.OR(g));break;case wd:g=`HTTP < requested resource not found: ${b.me()}`;a.W.error(g);e(new olympe.ea.errors.NH(g));break;default:g=`HTTP < Error: ${g.Zh()}, ${g.statusText}`,a.W.error(g),e(Error(g))}})})).pipe(rxjs.operators.retry(a.F)))}
|
|
412
412
|
olympe.ea.wO=class{constructor(a,b,c,d){this.W=a;this.C=b;this.O=c;this.F=d}};function zd(a,b){a.W.info('Initializing COMMUNICATION layer');if(a.W.C()){const c=['Server layer parameters:'];b.forEach((d,e)=>{c.push(e+'="'+d+'"')});a.W.debug(c.join('\n\t'))}Ad(a,olympe.ea.nk.Ee,c=>{switch(c.c){case olympe.ea.Bd.JR:a.W.error('Unknown message sent to the server:',olympe.ea.Jd.Bf[c.s]);break;case olympe.ea.Bd.eO:a.W.error('Fatal error, the last message is probably too big according to the websocket config.'),a.O.forEach((d,e)=>{null!==d.WC&&Bd(a,e,c.i)})}});b.get('autoConnect')&&
|
|
413
413
|
(a.W.debug('Connecting automatically'),a.connect());olympe.j.Ya(a.T.wa(),()=>{a.Ib.forEach(c=>c());Bc(a.Pe.bind(a),a.zg);Bc(a.eb.bind(a),a.vb)},()=>{a.V=null;a.ec.forEach(c=>c(a.R[2]));a.eb()});a.W.log('DONE initializing SERVER layer (waiting for NET layer connection to be opened)')}function Cd(a){return a.C===olympe.ea.Jd.C.ax}
|
|
414
414
|
function Dd(a,b){if(a.C!==b){a.W.debug('State change '+a.C+' --\x3e '+b);a.C=b;var c;null==(c=a.Gc)||c.call(a,b);switch(b){case olympe.ea.Jd.C.CONNECTING:break;case olympe.ea.Jd.C.ax:a.T.update(olympe.j.fa.C);break;case olympe.ea.Jd.C.Eq:a.R[0]=0;a.R[1]=0;a.connect();break;case olympe.ea.Jd.C.Ee:a.W.error('Connection to server',a.ba.me(),'aborted due to error');a.T.update(olympe.j.fa.kb);break;case olympe.ea.Jd.C.jp:break;case olympe.ea.Jd.C.zo:a.connect();break;case olympe.ea.Jd.C.ln:a.T.update(olympe.j.fa.kb);
|
|
415
|
-
a.Mb&&(a.W.info('Disconnected, will try to auto reconnect in',a
|
|
415
|
+
a.Mb&&(a.W.info('Disconnected, will try to auto reconnect in',a.$a,'ms'),zc(()=>{a.connect()},a.$a));break;default:throw Error('State machine error in server manager. Should not get in state '+b);}}}function Ed(a,b){const c=olympe.xa.Qe();a.Ib.set(c,b);olympe.j.Ra(a.T)===olympe.j.fa.C&&b()}function Fd(a,b){var c;void 0===c&&(c=olympe.xa.Qe());a.ec.set(c,b);olympe.j.Ra(a.T)===olympe.j.fa.kb&&b(a.R[2])}
|
|
416
416
|
function Gd(a,b,c,d){const e=a.jc;a.jc++;c={message:{seqId:e,messageFamily:b,payload:c},Ql:d?Hd(a,d):null,WC:null};a.O.set(e,c);d=[olympe.ea.Jd.C.CONNECTING,olympe.ea.Jd.C.Eq];(Cd(a)||b===olympe.ea.nk.vx&&d.includes(a.C))&&Id(a,e,c)}
|
|
417
417
|
function Hd(a,b){const c=olympe.ea.Jd.O.av;return d=>{if(null!==d&&void 0!==d){var e=null,f,g=null==(f=d.info)?void 0:f.warn;f=d.s;'string'===typeof g?a.W.debug(`A message has raised a warning in the orchestrator: ${g}. Investigate.`):void 0!==f&&f!==c&&(e=void 0!==olympe.ea.Jd.Bf[f]?`Status code = ${f} [${olympe.ea.Jd.Bf[f]}]`:`Status code = ${f}`,g=d.info,void 0!==g&&void 0!==g.error&&(f=g.error.reason,'string'===typeof f&&0<f.length&&(e+=`\nReason:\n${g.error.reason}`),f=g.error.detailedReason,
|
|
418
418
|
'string'===typeof f&&0<f.length&&(e+=`\nDetails:\n${g.error.detailedReason}`)),e=Error('Rejected by orchestrator:\n'+e));b(e,d)}}}function Id(a,b,c){var d=c.message;a.W.C()&&a.W.debug('WS >',Jd(d));(d=a.F.send(JSON.stringify(d)))?null===c.Ql?a.O.delete(b):c.WC=Date.now():Dd(a,olympe.ea.Jd.C.Eq);return d}function Ad(a,b,c,d){void 0===d&&(d=olympe.xa.Qe());let e=a.$.get(b);void 0===e&&(e=new Map,a.$.set(b,e));e.set(d,c)}
|
|
419
419
|
function Kd(a){a=a.$.get(olympe.ea.nk.zq);void 0!==a&&a.delete('logoutHandler')}function Bd(a,b,c){if(a.O.has(b)){const {Ql:d}=a.O.get(b);a.O.delete(b);d&&d({s:23,info:c})}}function Ld(a,b){a.Gc=b}function Md(a,b){a.W.error(b);Dd(a,olympe.ea.Jd.C.Ee)}function Nd(a,b,c){a.La=null!=c?c:-1;a.W.info('Connected to',a.ba.me(),' | ',b?'server version:'+b:'',null!==c?`activity timeout: ${c}s`:'');b=Array.from(a.O).sort(([d],[e])=>d-e);for(const [d,e]of b)if(!Id(a,d,e))return;Dd(a,olympe.ea.Jd.C.ax)}
|
|
420
420
|
function Jd(a){a=JSON.parse(JSON.stringify(a));return`${olympe.xa.HT(a.messageFamily)}: ${JSON.stringify(a.payload)}`}
|
|
421
|
-
olympe.ea.Jd=class{constructor(a,b,c,d,e,f){this.W=a;this.Ja=b;this.ba=d;this.F=null;this.qe=f;this
|
|
421
|
+
olympe.ea.Jd=class{constructor(a,b,c,d,e,f){this.W=a;this.Ja=b;this.ba=d;this.F=null;this.qe=f;this.$a=this.qe.get('reconnectionDelay');this.Ba=e;this.Gc=null;this.zg=this.qe.get('pingInterval');this.Wd=this.$a/2;this.Mb=f.get('autoConnect');f.get('retryHttpOverload');this.vb=f.get('messageTimeout');this.aa=olympe.xa.Fn.parse(f.get('clientVersion'));this.la=olympe.xa.Fn.parse(f.get('serverVersion'));this.C=olympe.ea.Jd.C.INIT;this.Fa=f.get('getContextMode');this.jc=1;this.V=null;this.R=[0,0,0];this.$=
|
|
422
422
|
new Map;this.T=olympe.j.bb(olympe.j.fa,'Server is online');this.Ib=new Map;this.ec=new Map;this.O=new Map;this.zb=new Map;this.La=-1;zd(this,f)}connect(){const a=olympe.ea.Jd.C.INIT,b=olympe.ea.Jd.C.CONNECTING,c=olympe.ea.Jd.C.ax,d=olympe.ea.Jd.C.ln,e=olympe.ea.Jd.C.Eq,f=olympe.ea.Jd.C.jp,g=olympe.ea.Jd.C.zo,k=olympe.ea.Jd.C.Ee;null!==this.F&&(this.F.ba(null),this.F.close());this.Mb=!0;this.W.log(`Asking NET layer for a connection to ${Ec(this.ba)}:${this.ba.port}...`);this.F=this.Ja.O(this.ba);this.F.la(this.kc.bind(this));
|
|
423
423
|
this.F.$(this.Mc.bind(this));this.F.ba(()=>{this.F=null;this.C===c?Dd(this,e):this.C!==k&&this.C!==f&&Dd(this,d)});this.Ba&&this.C===a&&this.F.O(()=>{this.F.O(null);if(this.C===b){var l=Fc(this.Ba);this.W.info(`Trying to wakeup orchestrator with ${l}`);Dd(this,f);var m=this.Ja.O(this.Ba);m.$(n=>{const p=JSON.parse(n);this.W.info(`${l}: ${null==p?void 0:p.status}`);switch(null==p?void 0:p.status){case 'ready':Dd(this,g);m.close();break;case 'asleep':this.W.info(`Trying to wakeup orchestrator with ${l}`);
|
|
424
424
|
m.send('{"action": "wakeup"}');Dd(this,f);break;case 'waking-up':break;default:this.W.warn(`Invalid message from ${l}: ${n}`),m.close(),Dd(this,d)}});m.O(()=>{this.W.warn(`Communication with ${l} failed.`);m.close();Dd(this,d)});m.la(()=>{this.W.info(`Checking orchestrator status with ${l}`);m.send('{"action": "status"}')})}this.Ba=null});this.C!==e&&Dd(this,b)}kc(){this.W.debug('Websocket connected, sending handshake. Client version:',eb(this.aa),'subscribeEverything:',this.Fa?'NO':'YES');Gd(this,
|
|
@@ -460,15 +460,15 @@ function me(a,b,c){const d=null==b?void 0:b.Cl();if(b instanceof olympe.ta.Qx){c
|
|
|
460
460
|
d&&{idpName:d}),c)}function oe(a,b,c,d){c.c=b;Gd(a.C,olympe.ea.nk.zq,c,d)}function pe(a,b,c){if(b.Bs()!==olympe.ta.vg.C.OAUTH2)c(Error('Only oAuth2 tokens can be refreshed'));else{var d=`?idpName=${b.Cl()}&access_token=${ne(b)}`;d=`${xd(a.As,olympe.ea.hf.Ox)}/refresh${d}`;yd(a.As,Gc(d),b.Xh()).then(e=>{'string'===typeof e?(e=JSON.parse(e),e=new olympe.ta.Qx(b.yg(),b.Qk(),b.Xh(),e,b.Cl()),c(null,e)):c(null,b)}).catch(e=>c(Error(e)))}}
|
|
461
461
|
olympe.ta.wh=class{constructor(a,b,c,d,e){this.W=a;this.C=b;this.As=c;this.F=d;this.storage=e;const f=this.storage.C('AUTH');f&&(f.get('redirectTo',g=>{g&&(f.remove('redirectTo'),f.close(),this.F.redirect(g,null,olympe.ta.Js.C.GET))}),f.close())}wj(a){Gd(this.C,olympe.ea.nk.zq,{c:olympe.ta.wh.C.Dl},b=>a(b))}wt(a,b,c){const d=xd(this.As,olympe.ea.hf.kJ);a=Gc(`${d}/${a}`);yd(this.As,a,b).then(e=>c(null,e)).catch(e=>c(Error(e)))}};
|
|
462
462
|
olympe.ta.wh.C={zq:1,bQ:2,Ee:3,Dl:5,av:6,CO:10,uR:11,lN:12,SAML:13,aR:14,aQ:20};function nd(a,b){var c='busLogoutCallback';void 0===c&&(c=olympe.xa.Pj());a.la.set(c,b)}function cd(a){return olympe.j.Ra(a.C.wa())}
|
|
463
|
-
function qe(a){a.W.info('Initializing AUTH layer');let b=a.eb;if(a.$){const c=a.$.C(),d=wc(c.parameters);b=d||b;d&&a.$.R(c.parameters.filter(e=>'authToken'!==e.Sa()),!1)}b&&a.storage&&re(a.storage,b,c=>{!c&&a.W.error('Could not store authToken')});a.W.debug('Asking to be notified when auth connector gets online');Ed(a.R,()=>{if(a
|
|
463
|
+
function qe(a){a.W.info('Initializing AUTH layer');let b=a.eb;if(a.$){const c=a.$.C(),d=wc(c.parameters);b=d||b;d&&a.$.R(c.parameters.filter(e=>'authToken'!==e.Sa()),!1)}b&&a.storage&&re(a.storage,b,c=>{!c&&a.W.error('Could not store authToken')});a.W.debug('Asking to be notified when auth connector gets online');Ed(a.R,()=>{if(a.$a)if(a.O=olympe.ta.Eb.O.iq,a.W.log('Connector online, parameter auth.autoLogin=true --\x3e attempting to log with parameters'),a.ba){const c=new olympe.ta.Request;c.set('username',
|
|
464
464
|
a.ba);se(c,a.Ja);a.W.log('Autologin with user "'+a.ba+'"');te(a,c)}else ue(a,'No user specified for auto login',!0);else a.O=olympe.ta.Eb.O.qy,a.W.log('Connector online, attempting to log with token'),ve(a)});Fd(a.R,()=>{switch(olympe.j.Ra(a.F)){case olympe.ta.Eb.C.Ej:const c=olympe.j.Ra(a.C.wa()).yg();a.W.warn(`Disconnected from server - session of user ${c} lost`);break;case olympe.ta.Eb.C.tl:a.W.warn('Disconnected from server - guest session lost');break;case olympe.ta.Eb.C.Vr:a.W.warn('Disconnected from server - authentication aborted');
|
|
465
465
|
break;case olympe.ta.Eb.C.INIT:a.W.warn('Cannot open auth session - no server connection');break;default:a.W.error('Should not get there, investigate')}we(a,olympe.ta.Eb.C.ln)});Ld(a.R,c=>{switch(c){case olympe.ea.Jd.C.jp:we(a,olympe.ta.Eb.C.jp);break;case olympe.ea.Jd.C.zo:we(a,olympe.ta.Eb.C.zo)}});le(a.T,(c,d)=>{if(c===olympe.ta.Eb.F.Pw)ue(a,'authentication revoked'),a.storage&&xe(a.storage),a.la.forEach(e=>{e(c,d)});else if(c===olympe.ta.Eb.F.AF){a.W.info('Redirection to IDP to invalidate token (SAML)');
|
|
466
466
|
const e=cd(a).Cl()||void 0;a.storage&&xe(a.storage);a.Fa.F(d.url,d.request,d.id,e)}else throw Error(`Unknown logout step coming from server : ${c}`);});ye(a);a.W.log('DONE initializing AUTH layer (waiting for connector to be online)')}function ze(a,b){let c=null;olympe.j.Ya(a.F.wa().Ke(olympe.ta.Eb.C.Ej).and(b),()=>{c=a.ym(d=>{d&&a.W.error('Failed to refresh token when returning to active mode')})},()=>{let d;null==(d=c)||d()})}
|
|
467
467
|
function ve(a){null!==a.storage?(a.W.debug('Retrieving token from local storage'),a.storage.Vj(b=>{if(b){const e=new olympe.ta.Request;var c=b.yg();e.set('username',c);c=e;var d=b.Xh();c.set('nonce',d);'string'===typeof b.Cl()&&e.set('idpName',b.Cl());a.W.debug('Token found, trying login with',e);te(a,e,olympe.ta.vg.C.oB)}else ue(a,'No token found, cannot perform auto login')})):ue(a,'Cannot retrieve token: no storage configured, cannot perform auto login',!0)}
|
|
468
|
-
function we(a,b){a.W.log('State change: ',Ae(a),'--\x3e',b);a.F.update(b)}function ue(a,b,c=!1){a.C.update(a.aa);we(a,olympe.ta.Eb.C.tl);b=`Authenticated as guest (${b})`;c?a.W.error(b):a.W.info(b)}function ye(a){const b=[olympe.ta.Eb.C.Ej];a
|
|
468
|
+
function we(a,b){a.W.log('State change: ',Ae(a),'--\x3e',b);a.F.update(b)}function ue(a,b,c=!1){a.C.update(a.aa);we(a,olympe.ta.Eb.C.tl);b=`Authenticated as guest (${b})`;c?a.W.error(b):a.W.info(b)}function ye(a){const b=[olympe.ta.Eb.C.Ej];a.$a||b.push(olympe.ta.Eb.C.tl)}function Ae(a){return olympe.j.Ra(a.F.wa())}function Be(){var a=olympe.public.Yc.get();return new Map(a.R.zb)}
|
|
469
469
|
function Ce(a){const b=olympe.ta.Eb.C.Ej,c=olympe.ta.Eb.C.tl,d=olympe.ta.Eb.C.Vr,e=olympe.j.bb(olympe.j.fa,'auth.isOnline');olympe.j.Ua([a.F],f=>{f=olympe.j.lc(f===b||f===c||f===d);const g=olympe.j.Ra(e);void 0!==g&&g.Yb(f)||e.update(f)},'Router is online');return e.wa()}function De(a,b){if(b){a.C.update(b);let c;null==(c=a.storage)||re(c,b);a.W.debug('Token updated')}}
|
|
470
470
|
function Ee(a,b,c,d=!1){b=b+c?':'+c.message:'';a.W.error(b);a.error.update(olympe.j.cc(b));we(a,olympe.ta.Eb.C.Ee);if(d)throw Error(b);}function te(a,b,c,d){void 0===c&&(c=a.La);void 0===c&&Ee(a,'No authentication provider specified',null,!0);const e=a.ih.get(c);e||Ee(a,'Undefined authentication provider "'+c+'"',null,!0);d&&a.V.set('login',d);a.W.log('Sending authentication request using "'+c+'" for '+b);e.Vj(b,a.Mb.bind(a));we(a,olympe.ta.Eb.C.Vr)}function Fe(a,b,c){a.V.forEach(d=>{d(b,c)})}
|
|
471
|
-
olympe.ta.Eb=class{constructor(a,b,c,d,e,f,g,k,l,m){this.W=a;this.R=b;this.T=c;this.storage=d;this.Fa=e;this.$=f;this.La=m.get('defaultProvider');this
|
|
471
|
+
olympe.ta.Eb=class{constructor(a,b,c,d,e,f,g,k,l,m){this.W=a;this.R=b;this.T=c;this.storage=d;this.Fa=e;this.$=f;this.La=m.get('defaultProvider');this.$a=!!m.get('autoLogin');this.ba=m.get('autoUser');this.Ja=m.get('autoPassword');this.eb=m.get('autoToken');this.ih=new Map;this.F=olympe.j.bb(String).update(olympe.ta.Eb.C.INIT);this.error=olympe.j.bb(olympe.j.ib);this.O=null;this.aa=new olympe.ta.Oq('guest','0163d9653067b6237f62','e96e099c-55bb-4004-b0e8-bd76b6209218');this.C=olympe.j.bb(olympe.ta.Oq).update(this.aa);
|
|
472
472
|
this.V=new Map;this.la=new Map;this.Ba=new olympe.xa.MB(m.get('cacheTokenTimeout'));k.forEach(n=>{const p=n.C();if(this.ih.has(p))throw Error('Provider "'+p+'" has already been registered !');this.ih.set(p,n)});qe(this);ze(this,l)}getState(){return this.F.wa()}yg(){return this.C.wa().yg()}Qk(){return this.C.wa().Qk()}ym(a){const b=cd(this);return olympe.j.Ra(this.C)!==this.aa&&b?this.ih.get(b.Bs()).ym(b,(c,d)=>{c?(this.W.error('Failed to refresh token, error message: ',c.message),this.Xv().catch(e=>
|
|
473
473
|
this.W.error(`Failed to logout after wrong refresh ${e}`)),a(c)):(d&&De(this,d),a(null))}):null}mt(){return this.C.wa().mt()}wt(a,b){if(Ua(this.Ba.C,a))b(null,this.Ba.get(a));else{var c,d=null==(c=olympe.j.Ra(this.C.wa()))?void 0:c.Xh();this.T.wt(a,d,(e,f)=>{'string'===typeof f&&this.Ba.set(a,f);b(e,f)})}}Xv(){return olympe.j.Ra(this.C)===this.aa?(this.W.warn('Logout called for Guest user so it will be ignored'),Promise.resolve()):new Promise((a,b)=>{this.W.debug('Sending logout');xe(this.storage);
|
|
474
474
|
me(this.T,cd(this),c=>{c?(Ee(this,'Logout request rejected:',c),b(c)):(this.W.debug('Logout request acknowledged'),a())})})}wj(a){Ae(this)===olympe.ta.Eb.C.Ej&&this.T.wj(b=>{b&&this.W.error('Was not able to send the auth keep alive message:',b.message);null==a||a(b)})}Mb(a,b){const c=null===this.O?olympe.ta.Eb.O.Af:this.O;this.O=null;a?(xe(this.storage),this.error.update(olympe.j.cc(a.message)),ue(this,'authentication rejected: '+a.message),Fe(this,a,c)):(this.W.info('User '+b.yg()+' (#'+b.Qk()+') successfully authenticated'),
|
|
@@ -535,7 +535,7 @@ olympe.N.P.nc.prototype.setStrokeColor=olympe.N.P.nc.prototype.setStrokeColor;ol
|
|
|
535
535
|
olympe.N.P.nc.prototype.rotate=olympe.N.P.nc.prototype.rotate;olympe.yh(olympe.N.P.nc,olympe.N.P.md,olympe.N.Y.oc,olympe.N.Y.yF,olympe.N.Y.xd,olympe.N.Y.xF);olympe.N.P.ol=class extends olympe.N.P.nc{constructor(){super()}setRadius(){}};olympe.N.P.ol.prototype.setRadius=olympe.N.P.ol.prototype.setRadius;olympe.N.P.mn=class extends olympe.N.P.nc{constructor(){super()}dD(){}eD(){}setRadius(){}};olympe.N.P.mn.prototype.setRadius=olympe.N.P.mn.prototype.setRadius;olympe.N.P.mn.prototype.setRy=olympe.N.P.mn.prototype.eD;olympe.N.P.mn.prototype.setRx=olympe.N.P.mn.prototype.dD;olympe.N.P.Image=class extends olympe.N.P.nc{constructor(){super()}Zd(){}Xk(){}wo(){}al(){}};olympe.N.P.Image.prototype.setVerticalAlignment=olympe.N.P.Image.prototype.al;olympe.N.P.Image.prototype.setHorizontalAlignment=olympe.N.P.Image.prototype.wo;olympe.N.P.Image.prototype.setAspectRatioMode=olympe.N.P.Image.prototype.Xk;olympe.N.P.Image.prototype.setSource=olympe.N.P.Image.prototype.Zd;olympe.N.P.fe=class extends olympe.N.P.nc{constructor(){super()}ac(){}};olympe.N.P.fe.prototype.setCornerRadius=olympe.N.P.fe.prototype.ac;olympe.N.P.Text=class extends olympe.N.P.nc{constructor(){super()}Fb(){}rb(){}qb(){}wb(){}Br(){}oo(){}hq(){}};olympe.N.P.Text.prototype.unregisterTextSize=olympe.N.P.Text.prototype.hq;olympe.N.P.Text.prototype.registerTextSize=olympe.N.P.Text.prototype.oo;olympe.N.P.Text.prototype.setHorizontalAlign=olympe.N.P.Text.prototype.Br;olympe.N.P.Text.prototype.setFontWeight=olympe.N.P.Text.prototype.wb;olympe.N.P.Text.prototype.setFontFamily=olympe.N.P.Text.prototype.qb;
|
|
536
536
|
olympe.N.P.Text.prototype.setFontSize=olympe.N.P.Text.prototype.rb;olympe.N.P.Text.prototype.setText=olympe.N.P.Text.prototype.Fb;olympe.N.P.fv=class extends olympe.N.P.Text{constructor(){super()}Fr(){}};olympe.N.P.fv.prototype.setPath=olympe.N.P.fv.prototype.Fr;olympe.N.P.sk=class extends olympe.N.P.nc{constructor(){super()}iw(){}Mg(){}mp(){}Kt(){}};olympe.N.P.sk.prototype.removeSegment=olympe.N.P.sk.prototype.Kt;olympe.N.P.sk.prototype.addSegment=olympe.N.P.sk.prototype.mp;olympe.N.P.sk.prototype.setLineCap=olympe.N.P.sk.prototype.Mg;olympe.N.P.sk.prototype.setClosed=olympe.N.P.sk.prototype.iw;olympe.N.P.sf=class extends olympe.N.P.ke{constructor(){super()}Ci(){}be(){}te(){}setPosition(){}Bj(){}og(){}};olympe.N.P.sf.prototype.getNext=olympe.N.P.sf.prototype.og;olympe.N.P.sf.prototype.setNext=olympe.N.P.sf.prototype.Bj;olympe.N.P.sf.prototype.setPosition=olympe.N.P.sf.prototype.setPosition;olympe.N.P.sf.prototype.setY=olympe.N.P.sf.prototype.te;olympe.N.P.sf.prototype.setX=olympe.N.P.sf.prototype.be;olympe.N.P.sf.prototype.getCommandString=olympe.N.P.sf.prototype.Ci;olympe.N.P.Oh=class extends olympe.N.P.sf{constructor(){super()}pD(){}vD(){}kw(){}qD(){}wD(){}lw(){}};olympe.N.P.Oh.prototype.setControl2=olympe.N.P.Oh.prototype.lw;olympe.N.P.Oh.prototype.setYControl2=olympe.N.P.Oh.prototype.wD;olympe.N.P.Oh.prototype.setXControl2=olympe.N.P.Oh.prototype.qD;olympe.N.P.Oh.prototype.setControl1=olympe.N.P.Oh.prototype.kw;olympe.N.P.Oh.prototype.setYControl1=olympe.N.P.Oh.prototype.vD;olympe.N.P.Oh.prototype.setXControl1=olympe.N.P.Oh.prototype.pD;olympe.N.P.Vx=class extends olympe.N.P.sf{constructor(){super()}fd(){}};olympe.N.P.xn=class extends olympe.N.P.sf{constructor(){super()}oD(){}uD(){}jw(){}};olympe.N.P.xn.prototype.setControl=olympe.N.P.xn.prototype.jw;olympe.N.P.xn.prototype.setYControl=olympe.N.P.xn.prototype.uD;olympe.N.P.xn.prototype.setXControl=olympe.N.P.xn.prototype.oD;olympe.N.P.xi=class extends olympe.N.P.sf{constructor(){super()}Aw(){}Bw(){}Jw(){}uw(){}Hw(){}};olympe.N.P.xi.prototype.setSweepFlag=olympe.N.P.xi.prototype.Hw;olympe.N.P.xi.prototype.setLargeArcSweepFlag=olympe.N.P.xi.prototype.uw;olympe.N.P.xi.prototype.setXAxisRotation=olympe.N.P.xi.prototype.Jw;olympe.N.P.xi.prototype.setRY=olympe.N.P.xi.prototype.Bw;olympe.N.P.xi.prototype.setRX=olympe.N.P.xi.prototype.Aw;olympe.N.P.Wx=class extends olympe.N.P.sf{constructor(){super()}};olympe.N.P.qq=class extends olympe.N.P.nc{constructor(){super()}appendChild(){}removeChild(){}};olympe.N.P.qq.prototype.removeChild=olympe.N.P.qq.prototype.removeChild;olympe.N.P.qq.prototype.appendChild=olympe.N.P.qq.prototype.appendChild;olympe.N.P.yf=class extends olympe.N.P.md{constructor(){super()}fi(){}addElement(){}Ht(){}dw(){}};olympe.N.P.yf.prototype.removeAllElements=olympe.N.P.yf.prototype.dw;olympe.N.P.yf.prototype.removeElement=olympe.N.P.yf.prototype.Ht;olympe.N.P.yf.prototype.addElement=olympe.N.P.yf.prototype.addElement;olympe.N.P.yf.prototype.setAbsolute=olympe.N.P.yf.prototype.fi;olympe.N.P.jg=class extends olympe.N.P.md{constructor(){super()}Bj(){}og(){}};olympe.N.P.jg.prototype.getNext=olympe.N.P.jg.prototype.og;olympe.N.P.jg.prototype.setNext=olympe.N.P.jg.prototype.Bj;olympe.N.P.dn=class extends olympe.N.P.jg{constructor(){super()}fw(){}Ve(){}};olympe.N.P.dn.prototype.setInput=olympe.N.P.dn.prototype.Ve;olympe.N.P.dn.prototype.setAmount=olympe.N.P.dn.prototype.fw;olympe.N.P.lq=class extends olympe.N.P.jg{constructor(){super()}Ve(){}setMatrix(){}};olympe.N.P.lq.prototype.setMatrix=olympe.N.P.lq.prototype.setMatrix;olympe.N.P.lq.prototype.setInput=olympe.N.P.lq.prototype.Ve;olympe.N.P.hn=class extends olympe.N.P.jg{constructor(){super()}Ve(){}tw(){}ww(){}};olympe.N.P.hn.prototype.setMode=olympe.N.P.hn.prototype.ww;olympe.N.P.hn.prototype.setInput2=olympe.N.P.hn.prototype.tw;olympe.N.P.hn.prototype.setInput=olympe.N.P.hn.prototype.Ve;olympe.N.P.nn=class extends olympe.N.P.jg{constructor(){super()}$C(){}bD(){}aD(){}};olympe.N.P.nn.prototype.setFloodColorAndOpacity=olympe.N.P.nn.prototype.aD;olympe.N.P.nn.prototype.setFloodOpacity=olympe.N.P.nn.prototype.bD;olympe.N.P.nn.prototype.setFloodColor=olympe.N.P.nn.prototype.$C;olympe.N.P.kk=class extends olympe.N.P.jg{constructor(){super()}Zd(){}Xk(){}wo(){}al(){}};olympe.N.P.kk.prototype.setVerticalAlignment=olympe.N.P.kk.prototype.al;olympe.N.P.kk.prototype.setHorizontalAlignment=olympe.N.P.kk.prototype.wo;olympe.N.P.kk.prototype.setAspectRatioMode=olympe.N.P.kk.prototype.Xk;olympe.N.P.kk.prototype.setSource=olympe.N.P.kk.prototype.Zd;olympe.N.P.vn=class extends olympe.N.P.jg{constructor(){super()}ov(){}Jt(){}Ve(){}};olympe.N.P.vn.prototype.setInput=olympe.N.P.vn.prototype.Ve;olympe.N.P.vn.prototype.removeInput=olympe.N.P.vn.prototype.Jt;olympe.N.P.vn.prototype.addInput=olympe.N.P.vn.prototype.ov;olympe.N.P.qk=class extends olympe.N.P.jg{constructor(){super()}XC(){}YC(){}ow(){}Ve(){}};olympe.N.P.qk.prototype.setInput=olympe.N.P.qk.prototype.Ve;olympe.N.P.qk.prototype.setDelta=olympe.N.P.qk.prototype.ow;olympe.N.P.qk.prototype.setDeltaY=olympe.N.P.qk.prototype.YC;olympe.N.P.qk.prototype.setDeltaX=olympe.N.P.qk.prototype.XC;olympe.N.P.bh=class extends olympe.N.P.ke{constructor(){super()}fi(){}rv(){}Lt(){}};olympe.N.P.bh.prototype.removeStop=olympe.N.P.bh.prototype.Lt;olympe.N.P.bh.prototype.addStop=olympe.N.P.bh.prototype.rv;olympe.N.P.bh.prototype.setAbsolute=olympe.N.P.bh.prototype.fi;olympe.N.P.ik=class extends olympe.N.P.ke{constructor(){super()}xw(){}hD(){}iD(){}Pz(){}};olympe.N.P.ik.prototype.setStopColorAndOpacity=olympe.N.P.ik.prototype.Pz;olympe.N.P.ik.prototype.setStopOpacity=olympe.N.P.ik.prototype.iD;olympe.N.P.ik.prototype.setStopColor=olympe.N.P.ik.prototype.hD;olympe.N.P.ik.prototype.setOffset=olympe.N.P.ik.prototype.xw;olympe.N.P.Nh=class extends olympe.N.P.bh{constructor(){super()}mD(){}sD(){}yw(){}nD(){}tD(){}zw(){}};olympe.N.P.Nh.prototype.setPoint2=olympe.N.P.Nh.prototype.zw;olympe.N.P.Nh.prototype.setY2=olympe.N.P.Nh.prototype.tD;olympe.N.P.Nh.prototype.setX2=olympe.N.P.Nh.prototype.nD;olympe.N.P.Nh.prototype.setPoint=olympe.N.P.Nh.prototype.yw;olympe.N.P.Nh.prototype.setY1=olympe.N.P.Nh.prototype.sD;olympe.N.P.Nh.prototype.setX1=olympe.N.P.Nh.prototype.mD;olympe.N.P.zn=class extends olympe.N.P.bh{constructor(){super()}setRadius(){}gw(){}sw(){}};olympe.N.P.zn.prototype.setFocalPoint=olympe.N.P.zn.prototype.sw;olympe.N.P.zn.prototype.setCenter=olympe.N.P.zn.prototype.gw;olympe.N.P.zn.prototype.setRadius=olympe.N.P.zn.prototype.setRadius;olympe.N.P.tn=class extends olympe.N.P.md{constructor(){super()}appendChild(){}removeChild(){}fi(){}};olympe.N.P.tn.prototype.setAbsolute=olympe.N.P.tn.prototype.fi;olympe.N.P.tn.prototype.removeChild=olympe.N.P.tn.prototype.removeChild;olympe.N.P.tn.prototype.appendChild=olympe.N.P.tn.prototype.appendChild;olympe.ui={};olympe.ui.Eb=class{constructor(){}C(){}Te(){}Dh(){return this}F(){}$(){}O(){}R(){}Gb(){}jm(){}V(){}aa(){}};olympe.ui.gf=class extends olympe.host.wi{constructor(a){super(a)}oa(){return this.Pe()}};olympe.ui.gf.prototype.oa.K=new olympe.j.J(()=>olympe.N.gf,[]);olympe.ui.os=class{constructor(a,b,c,d,e){this.C=a;this.style=b||'normal';this.O=c||300;this.F=d||Object.create(null);this.id=e||olympe.xa.Qe()}oC(){return this.C}hz(){return this.style}yC(){return this.O}jz(){return this.F}sa(){return this.id}};olympe.ui.os.prototype.oC.K=new olympe.j.J(()=>String,[]);olympe.ui.os.prototype.hz.K=new olympe.j.J(()=>String,[]);olympe.ui.os.prototype.yC.K=new olympe.j.J(()=>Number,[]);olympe.ui.os.prototype.jz.K=new olympe.j.J(()=>Object,[]);olympe.ui.ia={};olympe.ui.ia.Uw={zX:'fill',kq:'contain',bs:'cover'};olympe.ui.ia.Ce={Af:'manual',Ml:'topleft',Hg:'top',Nl:'topright',rE:'centerleft',Qb:'center',sE:'centerright',ml:'bottomleft',Yg:'bottom',$r:'bottomright'};olympe.ui.ia.Eg={iq:'auto',Af:'manual',kq:'contain',bs:'cover'};olympe.ui.ia.Co={Lx:'normal',lQ:'multiply',bR:'screen',NN:'darken',XP:'lighten',oR:'srcin',pR:'srcout',nR:'srcatop',WR:'xor'};olympe.ui.ia.ns={mR:'source_graphic',lR:'source_alpha',qN:'background_image',pN:'background_alpha',gO:'fill_paint',rR:'stroke_paint'};olympe.ui.ia.tx={Lx:'normal',NO:'italic',eY:'oblique'};olympe.ui.ia.Lo={Af:'manual',kN:'auto_width',hN:'auto_height',ND:'auto_width_height',iR:'smart_width',hR:'smart_height',jR:'smart_width_height'};olympe.ui.ia.Db={ug:'left',Qb:'center',Ph:'right'};olympe.ui.ia.Xo={KE:'defaultaudio',LE:'defaultvideo',$E:'facingvideo',UE:'environmentvideo'};olympe.ui.ia.Nu={jE:'butt',Hs:'round',DB:'square'};olympe.ui.ia.fB={UD:'bevel',Hs:'round',FH:'miter'};olympe.ui.ia.WH={JQ:'portrait',WP:'landscape'};olympe.ui.ia.ty={NONE:'none',AN:'characters',TR:'words',cR:'sentences'};olympe.ui.ia.Nq={IB:'text',YH:'password',RE:'email',HQ:'phone',tQ:'number'};olympe.ui.ia.Bn={xu:'clip',QE:'ellipsis',aF:'fade'};olympe.ui.ia.rc={Hg:'top',Rc:'middle',Yg:'bottom'};olympe.ui.Y={};olympe.ui.Y.Event=class{constructor(a){this.ba=a}Ry(){return this.ba}};olympe.ui.Y.Event.prototype.Ry.K=new olympe.j.J(()=>olympe.j.$b,[]);olympe.ui.Y.cO=class{constructor(a,b,c,d){this.Ql=a;this.WA=b;this.priority=void 0!==d?d:0;this.id=void 0!==c?c:olympe.xa.Pj();this.next=null}sa(){return this.id}og(){return this.next}Bj(a){null!==this.next&&a.Bj(this.next);this.next=a}};olympe.ui.Y.oe=class{constructor(){this.first=null}Ld(){return this.first}contains(a){let b=this.first;for(;b;){if(b===a)return!0;b=b.og()}return!1}clear(){this.first=null}toString(){let a='',b=this.first;for(;b;)a+=(a?', ':'')+b.sa(),b=b.og();return'EventCallbackList('+a+')'}};function Oe(a,b,c){const d=olympe.j.$b.now();Q(a,()=>{olympe.j.Ua([b.Ry()],e=>{const f=olympe.j.Ra(b);if(e.fM(d).valueOf()){e=[];let g=c.Ld();for(;null!==g;)e.push(g),g=g.og();for(const k of e)if(c.contains(k)&&!0===k.WA.run(k.Ql.bind(null,f)))break}})})}function Pe(a,b,c,d,e,f){b=new olympe.ui.Y.cO(b,olympe.j.sb(),c,d);let g=c=e.Ld();for(;c&&c.priority<d;)g=c,c=c.og();g?g.Bj(b):e.first=b;olympe.j.sb().R(f.bind(a,b.sa()));return b.sa()}
|
|
537
537
|
function Qe(a,b){olympe.j.Xb(a)&&(a=D(a));let c=null!==b?b.Ld():null;if(null!==c)if(c.sa()===a)null!==b.first&&(a=b.first.og(),b.first.next=null,b.first=a);else for(;null!==c.next;){b=c.og();if(b.sa()===a){a=c;null!==a.next&&(b=a.next.og(),a.next.next=null,a.next=b);break}c=b}}olympe.ui.Y.zA=class extends olympe.ui.gf{constructor(a){super(a)}};olympe.ui.Y.ee=class extends olympe.ui.Y.Event{constructor(a,b,c,d,e,f,g,k){super(g);this.key=a;this.char=b;this.ctrlKey=c;this.shiftKey=d;this.altKey=e;this.metaKey=f;this.C=k}Zy(){return this.key}IT(){return this.char}$O(){return this.ctrlKey}bP(){return this.shiftKey}ZO(){return this.altKey}aP(){return this.metaKey}preventDefault(){this.C instanceof KeyboardEvent&&this.C.preventDefault()}};olympe.ui.Y.ee.C=8;olympe.ui.Y.ee.T=46;olympe.ui.Y.ee.Fa=9;olympe.ui.Y.ee.$=10;olympe.ui.Y.ee.F=13;
|
|
538
|
-
olympe.ui.Y.ee.R=27;olympe.ui.Y.ee.CB=32;olympe.ui.Y.ee
|
|
538
|
+
olympe.ui.Y.ee.R=27;olympe.ui.Y.ee.CB=32;olympe.ui.Y.ee.$a=16;olympe.ui.Y.ee.O=17;olympe.ui.Y.ee.la=91;olympe.ui.Y.ee.Ba=93;olympe.ui.Y.ee.Ja=38;olympe.ui.Y.ee.V=40;olympe.ui.Y.ee.aa=37;olympe.ui.Y.ee.ba=39;olympe.ui.Y.ee.La=90;h=olympe.ui.Y.ee.prototype;h.Zy.K=olympe.j.J.F;h.IT.K=olympe.j.J.R;h.$O.K=olympe.j.J.T;h.bP.K=olympe.j.J.T;h.ZO.K=olympe.j.J.T;h.aP.K=olympe.j.J.T;olympe.ui.Y.Xf=class{kj(){}jj(){}lj(){}Ji(){}F(){}Zj(){}T(){}Ki(){}O(){}};h=olympe.ui.Y.Xf.prototype;h.kj.K=new olympe.j.J(()=>olympe.ui.Y.ee,[]);h.jj.K=new olympe.j.J(()=>olympe.ui.Y.ee,[]);h.lj.K=new olympe.j.J(()=>olympe.ui.Y.ee,[]);h.Ji.K=new olympe.j.J(()=>String,[]);h.Zj.K=new olympe.j.J(()=>String,[]);h.Ki.K=new olympe.j.J(()=>String,[]);olympe.ui.Y.rn=class extends olympe.ui.Y.zA{constructor(a){super(a);this.V=this.$=this.C=this.aa=this.R=this.ba=null}Oc(a){return Q(this,()=>{const b=olympe.j.pb(olympe.ui.Y.ee);a((c,d,e=!1,f=!1,g=!1,k=!1,l={})=>{H(b,new olympe.ui.Y.ee(olympe.j.ya(c),olympe.j.cc(d),olympe.j.lc(e),olympe.j.lc(f),olympe.j.lc(g),olympe.j.lc(k),olympe.j.$b.now(),l))});return b})}kj(){null===this.ba&&(this.ba=this.Oc(function(a){this.oa().registerKeyPressed(a)}.bind(this)));return this.ba}jj(){null===this.aa&&(this.aa=
|
|
539
539
|
this.Oc(function(a){this.oa().registerKeyDown(a)}.bind(this)));return this.aa}lj(){null===this.$&&(this.$=this.Oc(function(a){this.oa().registerKeyUp(a)}.bind(this)));return this.$}Ji(a,b,c){null===this.R&&(this.R=new olympe.ui.Y.oe,Oe(this,this.kj(),this.R));return Pe(this,a,b,c,this.R,this.F)}F(a){Qe(a,this.R)}Zj(a,b,c){null===this.C&&(this.C=new olympe.ui.Y.oe,Oe(this,this.jj(),this.C));return Pe(this,a,b,c,this.C,this.T)}T(a){Qe(a,this.C)}Ki(a,b,c){null===this.V&&(this.V=new olympe.ui.Y.oe,Oe(this,
|
|
540
540
|
this.lj(),this.V));return Pe(this,a,b,c,this.V,this.O)}O(a){Qe(a,this.V)}};olympe.ui.Y.rn.Ca=[olympe.ui.Y.Xf];olympe.ui.Y.rn.prototype.kj.K=new olympe.j.J(()=>olympe.ui.Y.ee,[]);olympe.ui.Y.rn.prototype.jj.K=new olympe.j.J(()=>olympe.ui.Y.ee,[]);olympe.ui.Y.rn.prototype.lj.K=new olympe.j.J(()=>olympe.ui.Y.ee,[]);olympe.ui.Y.MouseEvent=class extends olympe.ui.Y.Event{constructor(a,b,c,d,e,f,g,k,l){super(l);this.F=a;this.C=b;this.ctrlKey=c;this.shiftKey=d;this.altKey=e;this.metaKey=f;this.V=g;this.O=k}Fi(){this.F instanceof olympe.j.ha||(this.F=new olympe.j.ha(this.F[0],this.F[1]));return this.F}xg(){this.C instanceof olympe.j.ha||(this.C=new olympe.j.ha(this.C[0],this.C[1]));return this.C}dP(){return this.ctrlKey}eP(){return this.shiftKey}cP(){return this.altKey}Cx(){return this.metaKey}Wl(){return this.V}XT(){const a=
|
|
541
541
|
[],b=this.O.valueOf(),c=[olympe.ui.Y.MouseEvent.Yw,olympe.ui.Y.MouseEvent.C,olympe.ui.Y.MouseEvent.F,olympe.ui.Y.MouseEvent.O,olympe.ui.Y.MouseEvent.R];for(const d of c)0!==(b&d.valueOf())&&a.push(d);return a}gM(a){return olympe.j.lc(0!==(this.O.valueOf()&a.valueOf()))}};olympe.ui.Y.MouseEvent.Yw=olympe.j.Z.ONE;olympe.ui.Y.MouseEvent.C=olympe.j.Z.cJ;olympe.ui.Y.MouseEvent.F=olympe.j.ya(4);olympe.ui.Y.MouseEvent.O=olympe.j.ya(8);olympe.ui.Y.MouseEvent.R=olympe.j.ya(16);h=olympe.ui.Y.MouseEvent.prototype;
|
|
@@ -545,10 +545,10 @@ h.Yn.K=new olympe.j.J(()=>String,[]);h.Li.K=new olympe.j.J(()=>String,[]);h.ci.K
|
|
|
545
545
|
h.$j.K=new olympe.j.J(()=>String,[]);h.fo.K=new olympe.j.J(()=>String,[]);h.wm.K=new olympe.j.J(()=>String,[]);h.ao.K=new olympe.j.J(()=>String,[]);h.$n.K=new olympe.j.J(()=>String,[]);function Re(a){a.touches=new olympe.j.Map(olympe.ui.Y.Pq);const b=c=>{for(c=c.Ld();null!==c&&!c.WA.run(c.Ql.bind(void 0,a.touches));)c=c.og()};a.Mb=new olympe.ui.Y.oe;a.La=new olympe.ui.Y.oe;a.Ja=new olympe.ui.Y.oe;a.Fa=new olympe.ui.Y.oe;a.oa().Lm(c=>{c.forEach(d=>{a.touches.set(d.identifier.toString(),new olympe.ui.Y.Pq(new olympe.j.ha(d.sM,d.tM),new olympe.j.ha(d.XJ,d.YJ),new olympe.j.ha(d.radiusX,d.radiusY),olympe.j.ka(d.rotationAngle),olympe.j.ka(d.force),d.identifier.toString()))});b(a.Mb)});
|
|
546
546
|
a.oa().Km(c=>{c.forEach(d=>{const e=a.touches.ij(d.identifier);e&&(e.Fi().be(d.sM),e.Fi().te(d.tM),e.xg().be(d.XJ),e.xg().te(d.YJ),e.ar().be(d.radiusX),e.ar().te(d.radiusY),J(e.uC(),d.rotationAngle),J(e.pC(),d.force))});b(a.La)});a.oa().Im(c=>{b(a.Fa);c.forEach(d=>a.touches.remove(d.identifier))});a.oa().Jm(c=>{b(a.Ja);c.forEach(d=>a.touches.remove(d.identifier))})}
|
|
547
547
|
function Te(a,b){null===a.touches&&Re(a);const c=olympe.j.pb(olympe.j.$b,olympe.j.$b.now());a=new olympe.ui.Y.TouchEvent(a.touches,c);b(()=>H(c,olympe.j.$b.now()));return a}
|
|
548
|
-
function Ue(a){const b=olympe.j.Ra,c=olympe.j.ha,d=olympe.j.bb(olympe.ui.Y.pk);a.la=d.wa();const e=(f,g)=>{for(f=f.Ld();null!==f&&!f.WA.run(f.Ql,g);)f=f.og()};a
|
|
549
|
-
p&&w.rg(p);t&&w.tj(t);u&&w.tm(u);r&&a.rg(r);e(a.Ba,a.la)},C=()=>{u&&w.tm(u);p&&w.rg(p);r&&a.rg(r);r=p=u=void 0};u=w.Vk(G=>{const E=b(G.xg().ma()).za(k);G=b(G.xg().pa()).za(l);if(5<Math.abs(E.valueOf())||5<Math.abs(G.valueOf()))C(),d.update(new olympe.ui.Y.pk(new c(m,n),new c(k,l),new c(olympe.j.Z.ZERO,olympe.j.Z.ZERO),olympe.j.$b.now())),e(a
|
|
550
|
-
l);g=new olympe.j.ha(g.ma().za(k),g.pa().za(l));olympe.j.Ni(g.ma(),olympe.j.Z.ZERO);olympe.j.Ni(g.pa(),olympe.j.Z.ZERO);const n=new olympe.ui.Y.pk(new olympe.j.ha(olympe.j.Ra(f.Ld().Fi().ma()),olympe.j.Ra(f.Ld().Fi().pa())),m,g,olympe.j.pb(olympe.j.$b));d.update(n);f=()=>{const t=olympe.j.Ra(n.xp());Mb(t.ma());Mb(t.pa());Mb(n.Ry());a.Ii(p);a.Un(r);e(a.Ba,n)};const p=a.$j(f),r=a.wm(f);e(a
|
|
551
|
-
olympe.ui.Y.Ru=class extends olympe.ui.Y.zA{constructor(a){super(a);this
|
|
548
|
+
function Ue(a){const b=olympe.j.Ra,c=olympe.j.ha,d=olympe.j.bb(olympe.ui.Y.pk);a.la=d.wa();const e=(f,g)=>{for(f=f.Ld();null!==f&&!f.WA.run(f.Ql,g);)f=f.og()};a.$a=new olympe.ui.Y.oe;a.Ba=new olympe.ui.Y.oe;a.Kg(f=>{const g=f.Fi();f=f.xg();const k=b(f.ma()),l=b(f.pa()),m=b(g.ma()),n=b(g.pa());let p,r,t,u;const v=G=>{const E=b(G.xg().ma());G=b(G.xg().pa());return new olympe.ui.Y.pk(new c(m,n),new c(k,l),new c(E.za(k),G.za(l)),olympe.j.$b.now())},w=olympe.ui.Ma.Te(),x=G=>{d.update(v(G))},y=G=>{d.update(v(G));
|
|
549
|
+
p&&w.rg(p);t&&w.tj(t);u&&w.tm(u);r&&a.rg(r);e(a.Ba,a.la)},C=()=>{u&&w.tm(u);p&&w.rg(p);r&&a.rg(r);r=p=u=void 0};u=w.Vk(G=>{const E=b(G.xg().ma()).za(k);G=b(G.xg().pa()).za(l);if(5<Math.abs(E.valueOf())||5<Math.abs(G.valueOf()))C(),d.update(new olympe.ui.Y.pk(new c(m,n),new c(k,l),new c(olympe.j.Z.ZERO,olympe.j.Z.ZERO),olympe.j.$b.now())),e(a.$a,a.la),u=w.Vk(x),p=w.Bg(y),t=w.ci(y),r=a.Bg(y)});p=w.Bg(C);r=a.Bg(C)});a.ak(f=>{var g=f.Ld().xg();const k=olympe.j.Ra(g.ma()),l=olympe.j.Ra(g.pa()),m=new olympe.j.ha(k,
|
|
550
|
+
l);g=new olympe.j.ha(g.ma().za(k),g.pa().za(l));olympe.j.Ni(g.ma(),olympe.j.Z.ZERO);olympe.j.Ni(g.pa(),olympe.j.Z.ZERO);const n=new olympe.ui.Y.pk(new olympe.j.ha(olympe.j.Ra(f.Ld().Fi().ma()),olympe.j.Ra(f.Ld().Fi().pa())),m,g,olympe.j.pb(olympe.j.$b));d.update(n);f=()=>{const t=olympe.j.Ra(n.xp());Mb(t.ma());Mb(t.pa());Mb(n.Ry());a.Ii(p);a.Un(r);e(a.Ba,n)};const p=a.$j(f),r=a.wm(f);e(a.$a,n)})}
|
|
551
|
+
olympe.ui.Y.Ru=class extends olympe.ui.Y.zA{constructor(a){super(a);this.$a=this.Ba=this.la=this.Wd=this.Je=this.Re=this.wf=this.Fa=this.Ja=this.La=this.Mb=this.touches=this.aa=this.jc=this.$=this.Mc=this.T=this.Ib=this.R=this.ec=this.V=this.kc=this.ba=this.Gc=this.O=this.vb=this.F=this.zb=this.C=this.eb=null}Ea(a){const b=olympe.j.lc,c=olympe.j.ya;return Q(this,()=>{const d=olympe.j.bb(olympe.ui.Y.MouseEvent);a(tc(this,(e,f,g,k,l=!1,m=!1,n=!1,p=!1,r=0,t=0)=>{e=new olympe.ui.Y.MouseEvent([e,f],[g,
|
|
552
552
|
k],b(l),b(m),b(n),b(p),c(r),c(t),olympe.j.$b.now());d.update(e)}));return d.wa()})}Wc(a,b,c){null===this.eb&&(this.eb=this.Ea(d=>{this.oa().zm(d)}));null===this.C&&(this.C=new olympe.ui.Y.oe,Oe(this,this.eb,this.C));return Pe(this,a,b,c,this.C,this.sj)}sj(a){this.C&&(Qe(a,this.C),null===this.C.first&&(this.C=null,this.eb&&(this.oa().Rb.vc()||this.oa().cl(),this.eb=null)))}Kn(){const a=olympe.j.bb(olympe.ui.Y.MouseEvent);this.Wc(b=>{a.update(b)});return a.wa()}vm(a,b,c){null===this.zb&&(this.zb=this.Ea(d=>
|
|
553
553
|
{this.oa().Am(d)}));null===this.F&&(this.F=new olympe.ui.Y.oe,Oe(this,this.zb,this.F));return Pe(this,a,b,c,this.F,this.Ip)}Ip(a){this.F&&(Qe(a,this.F),null===this.F.first&&(this.F=null,this.zb&&(this.oa().Rb.vc()||this.oa().dl(),this.zb=null)))}Yl(){const a=olympe.j.bb(olympe.ui.Y.MouseEvent);this.vm(b=>{a.update(b)});return a.wa()}Kg(a,b,c){null===this.vb&&(this.vb=this.Ea(d=>{this.oa().Bm(d)}));null===this.O&&(this.O=new olympe.ui.Y.oe,Oe(this,this.vb,this.O));return Pe(this,a,b,c,this.O,this.Xj)}Xj(a){this.O&&
|
|
554
554
|
(Qe(a,this.O),null===this.O.first&&(this.O=null,this.vb&&(this.oa().Rb.vc()||this.oa().el(),this.vb=null)))}Ln(){const a=olympe.j.bb(olympe.ui.Y.MouseEvent);this.Kg(b=>{a.update(b)});return a.wa()}Vk(a,b,c){null===this.kc&&(this.kc=this.Ea(d=>{this.oa().Em(d)}));null===this.V&&(this.V=new olympe.ui.Y.oe,Oe(this,this.kc,this.V));return Pe(this,a,b,c,this.V,this.tm)}tm(a){this.V&&(Qe(a,this.V),null===this.V.first&&(this.V=null,this.kc&&(this.oa().Rb.vc()||this.oa().hl(),this.kc=null)))}Rj(){const a=
|
|
@@ -559,13 +559,13 @@ olympe.j.bb(olympe.ui.Y.MouseEvent);this.Vk(b=>{a.update(b)});return a.wa()}Yn(a
|
|
|
559
559
|
this.ba.first&&(this.ba=null,this.Gc&&(this.oa().Rb.vc()||this.oa().jl(),this.Gc=null)))}Nn(){const a=olympe.j.bb(olympe.ui.Y.MouseEvent),b=this.Bg(c=>{a.update(c)});olympe.j.sb().R(()=>{this.rg(b)});return a.wa()}fh(){const a=olympe.j.bb(olympe.j.fa).update(olympe.j.fa.kb),b=this.Li(()=>{a.update(olympe.j.fa.C)}),c=this.ci(()=>{a.update(olympe.j.fa.kb)});olympe.j.sb().R(()=>{this.Yj(b);this.tj(c)});return a.wa()}pm(){const a=olympe.j.bb(olympe.j.fa).update(olympe.j.fa.kb),b=this.Kg(()=>{a.update(olympe.j.fa.C)}),
|
|
560
560
|
c=this.Bg(()=>{a.update(olympe.j.fa.kb)});olympe.j.sb().R(()=>{this.Xj(b);this.rg(c)});return a.wa()}qm(){const a=olympe.j.bb(olympe.j.fa).update(olympe.j.fa.C),b=this.Bg(()=>{a.update(olympe.j.fa.C)}),c=this.Kg(()=>{a.update(olympe.j.fa.kb)});olympe.j.sb().R(()=>{this.Xj(c);this.rg(b)});return a.wa()}ak(a,b,c){null===this.touches&&Re(this);null===this.Mb&&(this.Mb=new olympe.ui.Y.oe);return Pe(this,a,b,c,this.Mb,this.Vn)}Vn(a){Qe(a,this.Mb)}fo(a,b,c){null===this.touches&&Re(this);null===this.La&&
|
|
561
561
|
(this.La=new olympe.ui.Y.oe);return Pe(this,a,b,c,this.La,this.Rp)}Rp(a){Qe(a,this.La)}$j(a,b,c){null===this.touches&&Re(this);null===this.Ja&&(this.Ja=new olympe.ui.Y.oe);return Pe(this,a,b,c,this.Ja,this.Ii)}Ii(a){Qe(a,this.Ja)}wm(a,b,c){null===this.touches&&Re(this);null===this.Fa&&(this.Fa=new olympe.ui.Y.oe);return Pe(this,a,b,c,this.Fa,this.Un)}Un(a){Qe(a,this.Fa)}fm(){null===this.Re&&(this.Re=Te(this,this.fo.bind(this)));return this.Re}gm(){null===this.wf&&(this.wf=Te(this,this.ak.bind(this)));
|
|
562
|
-
return this.wf}em(){null===this.Je&&(this.Je=Te(this,this.$j.bind(this)));return this.Je}cm(){null===this.Wd&&(this.Wd=Te(this,this.wm.bind(this)));return this.Wd}ao(a,b,c){null===this.la&&Q(this,()=>{Ue(this)});null===this
|
|
562
|
+
return this.wf}em(){null===this.Je&&(this.Je=Te(this,this.$j.bind(this)));return this.Je}cm(){null===this.Wd&&(this.Wd=Te(this,this.wm.bind(this)));return this.Wd}ao(a,b,c){null===this.la&&Q(this,()=>{Ue(this)});null===this.$a&&(this.$a=new olympe.ui.Y.oe);return Pe(this,a,b,c,this.$a,this.Pp)}Pp(a){Qe(a,this.$a)}$n(a,b,c){null===this.la&&Q(this,()=>{Ue(this)});null===this.Ba&&(this.Ba=new olympe.ui.Y.oe);return Pe(this,a,b,c,this.Ba,this.um)}um(a){Qe(a,this.Ba)}Pn(){null===this.la&&Q(this,()=>{Ue(this)});
|
|
563
563
|
return this.la}};olympe.ui.Y.Ru.Ca=[olympe.ui.Y.oc];h=olympe.ui.Y.Ru.prototype;h.Kn.K=new olympe.j.J(()=>olympe.ui.Y.MouseEvent,[]);h.Yl.K=new olympe.j.J(()=>olympe.ui.Y.MouseEvent,[]);h.Ln.K=new olympe.j.J(()=>olympe.ui.Y.MouseEvent,[]);h.Rj.K=new olympe.j.J(()=>olympe.ui.Y.MouseEvent,[]);h.Mn.K=new olympe.j.J(()=>olympe.ui.Y.MouseEvent,[]);h.$l.K=new olympe.j.J(()=>olympe.ui.Y.MouseEvent,[]);h.am.K=new olympe.j.J(()=>olympe.ui.Y.MouseEvent,[]);h.bm.K=new olympe.j.J(()=>olympe.ui.Y.Kj,[]);
|
|
564
564
|
h.Nn.K=new olympe.j.J(()=>olympe.ui.Y.MouseEvent,[]);h.fh.K=olympe.j.J.T;h.pm.K=olympe.j.J.T;h.qm.K=olympe.j.J.T;h.fm.K=new olympe.j.J(()=>olympe.ui.Y.TouchEvent,[]);h.gm.K=new olympe.j.J(()=>olympe.ui.Y.TouchEvent,[]);h.em.K=new olympe.j.J(()=>olympe.ui.Y.TouchEvent,[]);h.cm.K=new olympe.j.J(()=>olympe.ui.Y.TouchEvent,[]);h.Pn.K=new olympe.j.J(()=>olympe.ui.Y.pk,[]);olympe.ui.Y.GestureEvent=class extends olympe.ui.Y.Event{constructor(a,b,c,d,e,f,g,k,l,m,n){super(n);this.C=a;this.V=b;this.aa=c;this.O=d;this.T=e;this.F=f;this.rotation=g;this.R=k;this.first=l;this.$=m}xp(){this.C instanceof olympe.j.ha||(this.C=new olympe.j.ha(this.C[0],this.C[1]));return this.C}kT(){return this.V}rT(){return this.aa}SS(){return this.O}Bp(){return this.T}pU(){this.F instanceof olympe.j.ha||(this.F=new olympe.j.ha(this.F[0],this.F[1]));return this.F}aU(){return this.rotation}$S(){return this.R}BU(){return this.first}fP(){return this.$}};
|
|
565
565
|
h=olympe.ui.Y.GestureEvent.prototype;h.xp.K=olympe.j.J.V;h.kT.K=olympe.j.J.F;h.rT.K=olympe.j.J.F;h.SS.K=olympe.j.J.F;h.Bp.K=olympe.j.J.F;h.pU.K=olympe.j.J.V;h.aU.K=olympe.j.J.F;h.$S.K=olympe.j.J.F;h.BU.K=olympe.j.J.T;h.fP.K=olympe.j.J.T;olympe.ui.Y.Pq=class{constructor(a,b,c,d,e,f){this.O=a;this.C=b;this.F=c;this.rotationAngle=d;this.force=e;this.identifier=f}Fi(){return this.O}xg(){return this.C}ar(){return this.F}uC(){return this.rotationAngle}pC(){return this.force}cL(){return this.identifier}};h=olympe.ui.Y.Pq.prototype;h.Fi.K=olympe.j.J.V;h.xg.K=olympe.j.J.V;h.ar.K=olympe.j.J.V;h.uC.K=olympe.j.J.F;h.pC.K=olympe.j.J.F;h.cL.K=new olympe.j.J(()=>String,[]);olympe.ui.Y.TouchEvent=class extends olympe.ui.Y.Event{constructor(a,b){super(b);this.touches=a}F(){return this.touches}C(){return this.touches.Ld()}};olympe.ui.Y.TouchEvent.prototype.F.K=new olympe.j.J(()=>olympe.j.Map,[]);olympe.ui.Y.TouchEvent.prototype.C.K=new olympe.j.J(()=>olympe.ui.Y.Pq,[]);olympe.ui.Y.pk=class extends olympe.ui.Y.Event{constructor(a,b,c,d){super(d);this.O=a;this.F=c;this.C=b}Fi(){return this.O}xg(){return this.C}xp(){return this.F}};olympe.ui.Y.pk.prototype.Fi.K=olympe.j.J.V;olympe.ui.Y.pk.prototype.xg.K=olympe.j.J.V;olympe.ui.Y.pk.prototype.xp.K=olympe.j.J.V;olympe.ui.Y.Kj=class extends olympe.ui.Y.MouseEvent{constructor(a,b,c,d,e,f,g,k,l,m,n){super(c,d,e,f,g,k,l,m,n);this.deltaX=a;this.deltaY=b}R(){return this.deltaX}T(){return this.deltaY}};olympe.ui.Y.Kj.prototype.R.K=olympe.j.J.F;olympe.ui.Y.Kj.prototype.T.K=olympe.j.J.F;olympe.ui.Y.xd=class{Fk(){}Kk(){}Gk(){}hm(){}Hk(){}Zl(){}Jk(){}Ik(){}Tp(){}Jp(){}Zp(){}Sp(){}Up(){}Kp(){}mr(){}kr(){}Vp(){}Lp(){}Wp(){}Mp(){}Yp(){}Qp(){}Xp(){}Ba(){}};h=olympe.ui.Y.xd.prototype;h.Fk.K=new olympe.j.J(()=>olympe.ui.Y.GestureEvent,[]);h.Kk.K=new olympe.j.J(()=>olympe.ui.Y.GestureEvent,[]);h.Gk.K=new olympe.j.J(()=>olympe.ui.Y.GestureEvent,[]);h.hm.K=new olympe.j.J(()=>olympe.ui.Y.GestureEvent,[]);h.Hk.K=new olympe.j.J(()=>olympe.ui.Y.GestureEvent,[]);
|
|
566
|
-
h.Zl.K=new olympe.j.J(()=>olympe.ui.Y.GestureEvent,[]);h.Jk.K=new olympe.j.J(()=>olympe.ui.Y.GestureEvent,[]);h.Ik.K=new olympe.j.J(()=>olympe.ui.Y.GestureEvent,[]);h.Tp.K=new olympe.j.J(()=>String,[]);h.Zp.K=new olympe.j.J(()=>String,[]);h.Up.K=new olympe.j.J(()=>String,[]);h.mr.K=new olympe.j.J(()=>String,[]);h.Vp.K=new olympe.j.J(()=>String,[]);h.Wp.K=new olympe.j.J(()=>String,[]);h.Yp.K=new olympe.j.J(()=>String,[]);h.Xp.K=new olympe.j.J(()=>String,[]);olympe.ui.Y.Du=class extends olympe.ui.Y.zA{constructor(a){super(a);this.T=this.Ja=this.V=this.La=this.R=this.Fa=this.O=this
|
|
567
|
-
this.$&&(this.$=this.nb(function(a){this.oa().registerHorizontalPan(a)}.bind(this)));return this.$}Kk(){null===this.Mb&&(this.Mb=this.nb(function(a){this.oa().registerVerticalPan(a)}.bind(this)));return this.Mb}Gk(){null===this.la&&(this.la=this.nb(function(a){this.oa().registerHorizontalSwipe(a)}.bind(this)));return this.la}hm(){null===this.eb&&(this.eb=this.nb(function(a){this.oa().registerVerticalSwipe(a)}.bind(this)));return this.eb}Hk(a){null===this
|
|
568
|
-
a)}.bind(this)));return this
|
|
566
|
+
h.Zl.K=new olympe.j.J(()=>olympe.ui.Y.GestureEvent,[]);h.Jk.K=new olympe.j.J(()=>olympe.ui.Y.GestureEvent,[]);h.Ik.K=new olympe.j.J(()=>olympe.ui.Y.GestureEvent,[]);h.Tp.K=new olympe.j.J(()=>String,[]);h.Zp.K=new olympe.j.J(()=>String,[]);h.Up.K=new olympe.j.J(()=>String,[]);h.mr.K=new olympe.j.J(()=>String,[]);h.Vp.K=new olympe.j.J(()=>String,[]);h.Wp.K=new olympe.j.J(()=>String,[]);h.Yp.K=new olympe.j.J(()=>String,[]);h.Xp.K=new olympe.j.J(()=>String,[]);olympe.ui.Y.Du=class extends olympe.ui.Y.zA{constructor(a){super(a);this.T=this.Ja=this.V=this.La=this.R=this.Fa=this.O=this.$a=this.ba=this.eb=this.F=this.la=this.aa=this.Mb=this.C=this.$=null}nb(a){return Q(this,()=>{const b=olympe.j.pb(olympe.ui.Y.GestureEvent);a(tc(this,(c,d,e,f,g,k,l,m,n,p,r,t)=>{H(b,new olympe.ui.Y.GestureEvent([c,d],olympe.j.ya(e),olympe.j.ya(f),olympe.j.ya(g),olympe.j.ya(k),[l,m],olympe.j.ya(n),olympe.j.ya(p),olympe.j.lc(r),olympe.j.lc(t),olympe.j.$b.now()))}));return b})}Fk(){null===
|
|
567
|
+
this.$&&(this.$=this.nb(function(a){this.oa().registerHorizontalPan(a)}.bind(this)));return this.$}Kk(){null===this.Mb&&(this.Mb=this.nb(function(a){this.oa().registerVerticalPan(a)}.bind(this)));return this.Mb}Gk(){null===this.la&&(this.la=this.nb(function(a){this.oa().registerHorizontalSwipe(a)}.bind(this)));return this.la}hm(){null===this.eb&&(this.eb=this.nb(function(a){this.oa().registerVerticalSwipe(a)}.bind(this)));return this.eb}Hk(a){null===this.$a&&(this.$a=this.nb(function(b){this.oa().registerLongPress(b,
|
|
568
|
+
a)}.bind(this)));return this.$a}Zl(){null===this.Fa&&(this.Fa=this.nb(function(a){this.oa().registerLongPressUp(a)}.bind(this)));return this.Fa}Jk(){null===this.La&&(this.La=this.nb(function(a){this.oa().registerRotate(a)}.bind(this)));return this.La}Ik(){null===this.Ja&&(this.Ja=this.nb(function(a){this.oa().registerPinch(a)}.bind(this)));return this.Ja}Tp(a,b,c){null===this.C&&(this.C=new olympe.ui.Y.oe,Oe(this,this.Fk(),this.C));return Pe(this,a,b,c,this.C,this.Jp)}Jp(a){Qe(a,this.C)}Zp(a,b,c){null===
|
|
569
569
|
this.aa&&(this.aa=new olympe.ui.Y.oe,Oe(this,this.Kk(),this.aa));return Pe(this,a,b,c,this.aa,this.Sp)}Sp(a){Qe(a,this.aa)}Up(a,b,c){null===this.F&&(this.F=new olympe.ui.Y.oe,Oe(this,this.Gk(),this.F));return Pe(this,a,b,c,this.F,this.Kp)}Kp(a){Qe(a,this.F)}mr(a,b,c){null===this.ba&&(this.ba=new olympe.ui.Y.oe,Oe(this,this.hm(),this.ba));return Pe(this,a,b,c,this.ba,this.kr)}kr(a){Qe(a,this.ba)}Vp(a,b,c,d){null===this.O&&(this.O=new olympe.ui.Y.oe,Oe(this,this.Hk(d),this.O));return Pe(this,a,b,c,
|
|
570
570
|
this.O,this.Lp)}Lp(a){Qe(a,this.O)}Wp(a,b,c){null===this.R&&(this.R=new olympe.ui.Y.oe,Oe(this,this.Zl(),this.R));return Pe(this,a,b,c,this.R,this.Mp)}Mp(a){Qe(a,this.R)}Yp(a,b,c){null===this.V&&(this.V=new olympe.ui.Y.oe,Oe(this,this.Jk(),this.V));return Pe(this,a,b,c,this.V,this.Qp)}Qp(a){Qe(a,this.V)}Xp(a,b,c){null===this.T&&(this.T=new olympe.ui.Y.oe,Oe(this,this.Ik(),this.T));return Pe(this,a,b,c,this.T,this.Ba)}Ba(a){Qe(a,this.T)}};olympe.ui.Y.Du.Ca=[olympe.ui.Y.xd];h=olympe.ui.Y.Du.prototype;
|
|
571
571
|
h.Fk.K=new olympe.j.J(()=>olympe.ui.Y.GestureEvent,[]);h.Kk.K=new olympe.j.J(()=>olympe.ui.Y.GestureEvent,[]);h.Gk.K=new olympe.j.J(()=>olympe.ui.Y.GestureEvent,[]);h.hm.K=new olympe.j.J(()=>olympe.ui.Y.GestureEvent,[]);h.Hk.K=new olympe.j.J(()=>olympe.ui.Y.GestureEvent,[]);h.Zl.K=new olympe.j.J(()=>olympe.ui.Y.GestureEvent,[]);h.Jk.K=new olympe.j.J(()=>olympe.ui.Y.GestureEvent,[]);h.Ik.K=new olympe.j.J(()=>olympe.ui.Y.GestureEvent,[]);olympe.ui.media={};olympe.ui.media.MediaStream=class extends olympe.ui.gf{bl(a,b){this.oa().bl(a,b?b.ma():void 0,b?b.pa():void 0)}};olympe.ui.media.Qq=class extends olympe.ui.media.MediaStream{constructor(a){super(a);this.status=olympe.j.bb(olympe.j.fa);this.oa().la(b=>{b?this.status.update(olympe.j.fa.C):this.status.update(olympe.j.fa.kb)})}C(){return this.status.wa()}};olympe.ui.media.Qq.prototype.C.K=olympe.j.J.T;olympe.ui.media.rh=class extends olympe.ui.media.Qq{constructor(a,b){super(olympe.ui.Ma.C(olympe.N.media.rh,olympe.host.Xa.gb.BH));olympe.j.Ua([a],c=>{if(c instanceof olympe.ui.media.Tb.Pl)this.oa().lD(c.oa());else{if(null===c||void 0===c)throw Error('LocalUserStream cannot start: Video device is null or undefined');throw Error('Cannot handle MediaDevice of unknown type '+c.Sa());}});olympe.j.Ua([b],c=>{if(c instanceof olympe.ui.media.Tb.Bo)this.oa().Ez(c.oa());else{if(null===c||void 0===c)throw Error('LocalUserStream cannot start: Audio device is null or undefined');
|
|
@@ -588,7 +588,7 @@ h.hm.K=new olympe.j.J(()=>olympe.ui.Y.GestureEvent,[]);h.Hk.K=new olympe.j.J(()=
|
|
|
588
588
|
h.mr.K=new olympe.j.J(()=>String,[]);h.kr.K=new olympe.j.J(()=>{},[]);h.Vp.K=new olympe.j.J(()=>String,[]);h.Lp.K=new olympe.j.J(()=>{},[]);h.Wp.K=new olympe.j.J(()=>String,[]);h.Mp.K=new olympe.j.J(()=>{},[]);h.Yp.K=new olympe.j.J(()=>String,[]);h.Qp.K=new olympe.j.J(()=>{},[]);h.Xp.K=new olympe.j.J(()=>String,[]);olympe.ui.D.Le={};olympe.ui.D.Le.zs=class{constructor(){}render(){}getType(){}};olympe.ui.D.Le.HB=class{constructor(a,b,c,d,e){this.R=a;this.fontSize=b;this.O=c;this.F=d;this.C=e}render(a,b){b=new olympe.ui.D.ab(b);b.Fb(a);this.R&&b.Ub(this.R);this.fontSize&&b.rb(this.fontSize);this.O&&b.wb(this.O);this.F&&b.qb(this.F);this.C&&b.jb(this.C);return b}getType(){return olympe.j.ib}};olympe.ui.D.Le.HB.Ca=[olympe.ui.D.Le.zs];olympe.ui.D.Le.TO=class{constructor(a,b,c,d,e,f){this.R=a;this.align=b;this.fontSize=c;this.O=d;this.F=e;this.C=f}render(a,b){b=new olympe.ui.D.ab(b);b.Fb(a.Md(this.R));this.align&&b.Ub(this.align);this.fontSize&&b.rb(this.fontSize);this.O&&b.wb(this.O);this.F&&b.qb(this.F);this.C&&b.jb(this.C);return b}getType(){return olympe.dc.CloudObject}};olympe.ui.D.Le.TO.Ca=[olympe.ui.D.Le.zs];olympe.ui.D.Le.oQ=class{constructor(a,b,c,d,e){this.align=a;this.fontSize=b;this.O=c;this.F=d;this.C=e}render(a,b){const c=new olympe.ui.D.ab(b);olympe.j.Ua([a.Sa()],d=>{c.Fb(d)});this.align&&c.Ub(this.align);this.fontSize&&c.rb(this.fontSize);this.O&&c.wb(this.O);this.F&&c.qb(this.F);this.C&&c.jb(this.C);return c}getType(){return olympe.dc.CloudObject}};olympe.ui.D.Le.oQ.Ca=[olympe.ui.D.Le.zs];olympe.ui.D.Le.pQ=class{constructor(a,b,c,d,e){this.align=a;this.fontSize=b;this.O=c;this.F=d;this.C=e}render(a,b){b=new olympe.ui.D.ab(b);b.Fb(null==a?void 0:a.na().toString());this.align&&b.Ub(this.align);this.fontSize&&b.rb(this.fontSize);this.O&&b.wb(this.O);this.F&&b.qb(this.F);this.C&&b.jb(this.C);return b}getType(){return olympe.dc.CloudObject}};olympe.ui.D.Le.pQ.Ca=[olympe.ui.D.Le.zs];olympe.ui.D.Le.xQ=class extends olympe.ui.D.Le.HB{constructor(a,b,c,d,e){super(a,b,c,d,e)}render(a,b){return olympe.ui.D.Le.HB.prototype.render.call(this,a instanceof olympe.j.Proxy||a instanceof olympe.j.Z?a.valueOf():a,b)}getType(){return olympe.j.Z}};olympe.ui.D.Le.xQ.Ca=[olympe.ui.D.Le.zs];olympe.ui.D.da={};function R(a,b,c,d,e){const f=k=>{k=k?k.valueOf():'default';const l=b+'_'+k;e&&k&&!a.Ba[l]&&(a.Ba[l]=olympe.j.Mk().run(e,k));return a.Ba[l]||a.Ba['default']},g=olympe.j.pb(c);d&&d.xh?(H(g,f()),Ib(d,function(k){H(g,f(k))})):H(g,f(d));return g}olympe.ui.D.da.Tg=class{constructor(){this.Ba=Object.create(null)}Wl(){}EL(){}pt(){}Rv(){}Qv(){}wC(){}Nv(){}Xq(){}Ny(){}Iv(){}Yy(){}Ev(){}Te(){}Kv(){}nt(){}kz(){}mC(){}az(){}Sy(){}};olympe.ui.D.da.Tg.aa='default';h=olympe.ui.D.da.Tg.prototype;
|
|
589
589
|
h.Wl.K=new olympe.j.J(()=>olympe.ui.D.da.Fj,[]);h.EL.K=new olympe.j.J(()=>olympe.ui.D.da.Yu,[]);h.pt.K=new olympe.j.J(()=>olympe.ui.D.da.qh,[]);h.Rv.K=new olympe.j.J(()=>olympe.ui.D.da.Ak,[]);h.Qv.K=new olympe.j.J(()=>olympe.ui.D.da.zk,[]);h.wC.K=new olympe.j.J(()=>olympe.ui.D.da.Ns,[]);h.Nv.K=new olympe.j.J(()=>olympe.ui.D.da.aj,[]);h.Xq.K=new olympe.j.J(()=>olympe.ui.D.da.fk,[]);h.Ny.K=new olympe.j.J(()=>olympe.ui.D.da.Do,[]);h.Iv.K=new olympe.j.J(()=>olympe.ui.D.da.Lh,[]);
|
|
590
590
|
h.Yy.K=new olympe.j.J(()=>olympe.ui.D.da.Bl,[]);h.Ev.K=new olympe.j.J(()=>olympe.ui.D.da.Jh,[]);h.Te.K=new olympe.j.J(()=>olympe.ui.D.da.nq,[]);h.Kv.K=new olympe.j.J(()=>olympe.ui.D.da.Zi,[]);h.nt.K=new olympe.j.J(()=>olympe.ui.D.da.lk,[]);h.kz.K=new olympe.j.J(()=>olympe.ui.D.da.kp,[]);h.mC.K=new olympe.j.J(()=>olympe.ui.D.da.hs,[]);h.az.K=new olympe.j.J(()=>olympe.ui.D.da.El,[]);h.Sy.K=new olympe.j.J(()=>olympe.ui.D.da.We,[]);olympe.ui.D.da.nq=class{constructor(){this.backgroundColor=P(bc());this.pS=olympe.j.ub('');this.dK=olympe.j.Xc();this.cK=olympe.j.Xc(0,0);this.opacity=olympe.j.ka(1)}rp(){return this.backgroundColor}Na(a){J(this.backgroundColor,a)}up(){return this.pS}tp(){return this.dK}yr(a){J(this.dK,a)}sp(){return this.cK}xr(a){J(this.cK,a)}uL(){return this.opacity}Tf(a){J(this.opacity,a)}};h=olympe.ui.D.da.nq.prototype;h.rp.K=new olympe.j.J(()=>olympe.j.Color,[]);h.up.K=olympe.j.J.R;h.tp.K=olympe.j.J.V;
|
|
591
|
-
h.sp.K=olympe.j.J.V;h.uL.K=olympe.j.J.F;olympe.ui.D.da.Hq=class extends olympe.ui.D.da.nq{constructor(){super()}};olympe.ui.D.da.Hq.tc='rootElement';olympe.ui.D.da.Zc=class extends olympe.ui.D.da.nq{constructor(){super();this.Fa=olympe.j.Xc(200,40);this.borderWidth=olympe.j.ka(0);this.borderColor=P(bc());this
|
|
591
|
+
h.sp.K=olympe.j.J.V;h.uL.K=olympe.j.J.F;olympe.ui.D.da.Hq=class extends olympe.ui.D.da.nq{constructor(){super()}};olympe.ui.D.da.Hq.tc='rootElement';olympe.ui.D.da.Zc=class extends olympe.ui.D.da.nq{constructor(){super();this.Fa=olympe.j.Xc(200,40);this.borderWidth=olympe.j.ka(0);this.borderColor=P(bc());this.$a=olympe.j.ka(0);this.jc=olympe.j.Xc(0,0);this.Gc=olympe.j.ka(0);this.Mc=olympe.j.ka(0);this.Ja=P(bc());this.kc=olympe.j.Pc(!1)}ja(){return this.Fa}Cb(a){J(this.Fa,a)}Uh(){return this.borderWidth}Uc(a){J(this.borderWidth,a)}Ck(){return this.borderColor}cd(a){J(this.borderColor,a)}vp(){return this.$a}ac(a){J(this.$a,a)}er(){return this.jc}fr(){return this.Gc}gr(){return this.Mc}cr(){return this.Ja}dr(){return this.kc}Ng(a,
|
|
592
592
|
b,c,d,e){J(this.jc,a);J(this.Gc,b);J(this.Mc,c);J(this.Ja,d);J(this.kc,e)}};h=olympe.ui.D.da.Zc.prototype;h.Cb.Sq=!0;h.Uc.Sq=!0;h.cd.Sq=!0;h.ja.K=olympe.j.J.V;h.Uh.K=olympe.j.J.F;h.Ck.K=new olympe.j.J(()=>olympe.j.Color,[]);h.vp.K=olympe.j.J.F;h.er.K=olympe.j.J.V;h.fr.K=olympe.j.J.F;h.gr.K=olympe.j.J.F;h.cr.K=new olympe.j.J(()=>olympe.j.Color,[]);h.dr.K=olympe.j.J.T;olympe.ui.D.da.Fj=class extends olympe.ui.D.da.Zc{constructor(){super();this.La=P(N());this.C=P(N());this.eb=P(N());this.Mb=P(M());this.O=P(M());this.$=P(M());this.R=P(M());this.F=P(M());this.fontSize=olympe.j.ka(14);this.ba=olympe.j.ka(500);this.aa=olympe.j.ub('');this.la=olympe.j.pb(String,olympe.ui.ia.Db.Qb);this.Ba=olympe.j.pb(String,olympe.ui.ia.rc.Rc);this.T=olympe.j.Pc(!1);this.V=olympe.j.ka(0)}AL(){return this.La}Cj(a){J(this.La,a)}VK(){return this.C}zT(){return this.eb}BL(){return this.Mb}WK(){return this.O}RF(){return this.$}jb(a){J(this.$,
|
|
593
593
|
a)}CL(){return this.R}XK(){return this.F}QF(){return this.fontSize}rb(a){J(this.fontSize,a)}Wh(){return this.ba}wb(a){J(this.ba,a)}qb(a){J(this.aa,a)}Vh(){return this.aa}SF(){return this.la}Ub(a){J(this.la,a)}TF(){return this.Ba}Wb(a){J(this.Ba,a)}PF(){return this.T}zK(){return this.V}Nd(a,b){J(this.T,a);J(this.V,b)}};olympe.ui.D.da.Fj.tc='button';olympe.ui.D.da.Fj.C='selected';olympe.ui.D.da.Fj.F='warning';h=olympe.ui.D.da.Fj.prototype;h.AL.K=new olympe.j.J(()=>olympe.j.Color,[]);
|
|
594
594
|
h.VK.K=new olympe.j.J(()=>olympe.j.Color,[]);h.zT.K=new olympe.j.J(()=>olympe.j.Color,[]);h.BL.K=new olympe.j.J(()=>olympe.j.Color,[]);h.WK.K=new olympe.j.J(()=>olympe.j.Color,[]);h.RF.K=new olympe.j.J(()=>olympe.j.Color,[]);h.CL.K=new olympe.j.J(()=>olympe.j.Color,[]);h.XK.K=new olympe.j.J(()=>olympe.j.Color,[]);h.QF.K=olympe.j.J.F;h.Wh.K=olympe.j.J.F;h.Vh.K=olympe.j.J.R;h.SF.K=new olympe.j.J(()=>String,[]);h.TF.K=new olympe.j.J(()=>String,[]);h.PF.K=olympe.j.J.T;h.zK.K=olympe.j.J.F;olympe.ui.D.da.Yu=class extends olympe.ui.D.da.nq{constructor(){super()}};olympe.ui.D.da.Yu.tc='rectangle';olympe.ui.D.da.Jh=class extends olympe.ui.D.da.Zc{constructor(){super();this.T=olympe.j.pb(olympe.ui.D.da.Zc,new olympe.ui.D.da.Zc);this.O=olympe.j.pb(olympe.ui.D.da.Zc,new olympe.ui.D.da.Zc);this.V=olympe.j.pb(olympe.ui.D.da.Zc,new olympe.ui.D.da.Zc);this.R=olympe.j.pb(olympe.ui.D.da.Zc,new olympe.ui.D.da.Zc);this.F=olympe.j.pb(olympe.ui.D.da.Zc,new olympe.ui.D.da.Zc);this.C=olympe.j.ka(200)}$e(){return this.T}pg(){return this.O}af(){return this.V}Ze(){return this.R}Uy(){return this.F}My(){return this.C}};
|
|
@@ -612,7 +612,7 @@ h.qG.K=olympe.j.J.F;h.Wh.K=olympe.j.J.F;h.Vh.K=olympe.j.J.R;h.Lk.K=new olympe.j.
|
|
|
612
612
|
olympe.ui.D.da.kp=class extends olympe.ui.D.da.Zc{constructor(){super();this.V=olympe.j.ka(40);this.R=olympe.j.ka(12);this.T=olympe.j.ka(500);this.zg=olympe.j.ub('Arial');this.Pe=olympe.j.ka(2);this.La=P(bc());this.la=olympe.j.ka(0);this.C=olympe.j.ka(0);this.ba=P(bc());this.$=P(bc());this.Ib=P(bc());this.Ba=P(bc());this.Mb=olympe.j.pb(String,olympe.ui.ia.Db.Qb);this.eb=olympe.j.pb(String,olympe.ui.ia.rc.Rc);this.Yf=olympe.j.ka(0);this.F=olympe.j.Xc(10,10);this.O=olympe.j.ub('images/close.png');this.ec=
|
|
613
613
|
olympe.j.Xc(0,0);this.vb=olympe.j.Pc(!1);this.aa=bc();this.zb=olympe.j.ka(40)}MK(){return this.vb}ZL(){return this.V}XL(){return this.R}YL(){return this.T}WL(){return this.zg}UL(){return this.Pe}$L(){return this.La}TL(){return this.Ib}aM(){return this.Mb}bM(){return this.eb}SL(){return this.Ba}TK(){return this.la}SK(){return this.$}VL(){return this.Yf}OK(){return this.F}JK(){return this.aa}PK(){return this.O}EK(){return this.zb}NK(){return this.ec}LK(){return this.C}KK(){return this.ba}};
|
|
614
614
|
olympe.ui.D.da.kp.tc='windowcomponent';h=olympe.ui.D.da.kp.prototype;h.MK.K=olympe.j.J.T;h.ZL.K=olympe.j.J.F;h.XL.K=olympe.j.J.F;h.YL.K=olympe.j.J.F;h.WL.K=olympe.j.J.R;h.UL.K=olympe.j.J.F;h.$L.K=new olympe.j.J(()=>olympe.j.Color,[]);h.TL.K=new olympe.j.J(()=>olympe.j.Color,[]);h.aM.K=new olympe.j.J(()=>String,[]);h.bM.K=new olympe.j.J(()=>String,[]);h.SL.K=new olympe.j.J(()=>olympe.j.Color,[]);h.TK.K=olympe.j.J.F;h.SK.K=new olympe.j.J(()=>olympe.j.Color,[]);h.VL.K=olympe.j.J.F;h.OK.K=olympe.j.J.V;
|
|
615
|
-
h.JK.K=new olympe.j.J(()=>olympe.j.Color,[]);h.PK.K=olympe.j.J.R;h.EK.K=olympe.j.J.F;h.NK.K=olympe.j.J.V;h.LK.K=olympe.j.J.F;h.KK.K=new olympe.j.J(()=>olympe.j.Color,[]);olympe.ui.D.da.lx=class extends olympe.ui.D.da.Tg{constructor(){super();this
|
|
615
|
+
h.JK.K=new olympe.j.J(()=>olympe.j.Color,[]);h.PK.K=olympe.j.J.R;h.EK.K=olympe.j.J.F;h.NK.K=olympe.j.J.V;h.LK.K=olympe.j.J.F;h.KK.K=new olympe.j.J(()=>olympe.j.Color,[]);olympe.ui.D.da.lx=class extends olympe.ui.D.da.Tg{constructor(){super();this.$a=olympe.j.Color.create(43,62,80);this.R=olympe.j.Color.create(78,93,108);this.zb=olympe.j.Color.create(92,184,92);this.vb=olympe.j.Color.create(92,184,92,.65);this.eb=olympe.j.Color.create(217,83,79);this.T=N();this.$=M();this.F=olympe.j.Color.create(230,230,230);this.Ib=olympe.j.Color.create(230,230,230,.65);this.Ja=olympe.j.Color.create(72,85,99);this.ec=olympe.j.Color.create(73,71,63)}Wl(a){return R(this,olympe.ui.D.da.Fj.tc,
|
|
616
616
|
olympe.ui.D.da.Fj,a,b=>{const c=new olympe.ui.D.da.Fj;c.Cb(new olympe.j.ha(150,40));c.jb(this.T);c.rb(15);c.wb(400);c.Ub(olympe.ui.ia.Db.Qb);c.Wb(olympe.ui.ia.rc.Rc);c.qb('"Helvetica Neue",Helvetica, Arial, sans-serif');J(c.F,this.Ib);J(c.C,this.vb);c.Cj(olympe.j.Color.create(215,215,215));switch(b){case 'selected':c.Na(this.zb);break;case 'warning':c.Na(this.eb);break;default:c.Na(this.R)}return c})}EL(a){return R(this,olympe.ui.D.da.Yu.tc,olympe.ui.D.da.Yu,a,()=>{const b=new olympe.ui.D.da.Yu;b.Na(this.F);
|
|
617
617
|
return b})}Rv(a){return R(this,olympe.ui.D.da.Ak.tc,olympe.ui.D.da.Ak,a,()=>{const b=new olympe.ui.D.da.Ak;b.Na(this.F);b.jb(this.$);b.hd(2);b.gd(2);b.zc(5);b.Ac(5);b.qb('"Helvetica Neue",Helvetica, Arial, sans-serif');return b})}Qv(a){return R(this,olympe.ui.D.da.zk.tc,olympe.ui.D.da.zk,a,()=>{const b=new olympe.ui.D.da.zk;b.Na(this.F);b.jb(this.$);b.hd(2);b.gd(2);b.zc(5);b.Ac(5);b.Na(olympe.j.Color.create(230,230,230));b.qb('"Helvetica Neue",Helvetica, Arial, sans-serif');return b})}Yy(a){return R(this,
|
|
618
618
|
olympe.ui.D.da.Bl.tc,olympe.ui.D.da.Bl,a,()=>{const b=new olympe.ui.D.da.Bl;var c=new olympe.ui.D.da.Zc;c.Cb(new olympe.j.ha(204,19));c.Uc(olympe.j.ka(2));c.cd(olympe.j.Color.create(148,157,159));c.Na(olympe.j.Color.create(18,18,18,0));c.ac(olympe.j.ka(10));b.C=c;c=new olympe.ui.D.da.Zc;c.Cb(new olympe.j.ha(12,24));c.Uc(olympe.j.ka(2));c.cd(olympe.j.Color.create(148,157,159));c.Na(olympe.j.Color.create(180,181,181));c.ac(olympe.j.ka(10));b.F=c;c=new olympe.ui.D.da.Zc;c.Cb(new olympe.j.ha(12,24));
|
|
@@ -620,10 +620,10 @@ c.Uc(olympe.j.ka(2));c.cd(olympe.j.Color.create(148,157,159));c.Na(olympe.j.Colo
|
|
|
620
620
|
new olympe.ui.D.da.qh;c.la.Wb(olympe.ui.ia.rc.Rc);c.la.zc(10);c.la.Ac(10);break;case 'dropdown-mouseoveritem':c.Na(this.Ja);c.Wb(olympe.ui.ia.rc.Rc);c.zc(10);c.Ac(10);break;case 'grid-cell':c.Wb(olympe.ui.ia.rc.Rc);c.Ub(olympe.ui.ia.Db.Qb);c.zc(10);c.Ac(10);break;case 'grid-selected-cell':c.Na(this.R);c.jb(this.T);c.Wb(olympe.ui.ia.rc.Rc);c.Ub(olympe.ui.ia.Db.Qb);c.zc(10);c.Ac(10);break;case olympe.ui.D.da.We.C.Su:c.Na(this.ec);break;case olympe.ui.D.da.We.C.zB:c.Na(this.Ja)}return c})}Nv(){return R(this,
|
|
621
621
|
olympe.ui.D.da.aj.tc,olympe.ui.D.da.aj,void 0,()=>{const a=new olympe.ui.D.da.aj;a.ac(4);var b=olympe.j.Color.create(0,0,0,.6);J(a.C,b);a.Na(N());return a})}Xq(a){return R(this,olympe.ui.D.da.fk.tc,olympe.ui.D.da.fk,a,()=>{const b=new olympe.ui.D.da.fk;b.Cb(new olympe.j.ha(500,1));b.Nd(!1);b.Ed(!0);b.ac(4);var c=olympe.j.Color.create(0,0,0,.6);J(b.C,c);b.Na(N());J(b.R,20);b.mf(20);J(b.T,'header1');J(b.aa,'black_std');J(b.V,'selected');return b})}Iv(a){return R(this,olympe.ui.D.da.Lh.tc,olympe.ui.D.da.Lh,
|
|
622
622
|
a,()=>{const b=new olympe.ui.D.da.Lh;J(b.O,'dropdown-item');Xe(b);Ye(b);b.Dx('images/arrow2.png');var c=new olympe.j.ha(12,8);J(b.C,c);b.cd(Zb());b.Na(this.R);b.hd(2);b.gd(2);b.zc(5);b.Ac(5);c=new olympe.ui.D.da.Zc;J(b.F,c);c.Na(this.R);return b})}Ev(){return R(this,olympe.ui.D.da.Jh.tc,olympe.ui.D.da.Jh,void 0,()=>{const a=new olympe.ui.D.da.Jh;a.Uy().Cb(new olympe.j.ha(60,30));a.$e().Na(olympe.j.Color.create(230,230,230));a.$e().cd(olympe.j.Color.create(191,191,191));a.$e().Uc(2);a.$e().ac(100);
|
|
623
|
-
a.pg().Na(olympe.j.Color.create(60,187,51));a.pg().ac(100);a.af().cd(olympe.j.Color.create(191,191,191));a.af().Uc(2);a.af().ac(100);a.af().Na(olympe.j.Color.create(230,230,230));a.Ze().cd(olympe.j.Color.create(191,191,191));a.Ze().Uc(2);a.Ze().ac(100);a.Ze().Na(olympe.j.Color.create(230,230,230));return a})}Kv(a){return R(this,olympe.ui.D.da.Zi.tc,olympe.ui.D.da.Zi,a,()=>{const b=new olympe.ui.D.da.Zi;b.Na(this
|
|
623
|
+
a.pg().Na(olympe.j.Color.create(60,187,51));a.pg().ac(100);a.af().cd(olympe.j.Color.create(191,191,191));a.af().Uc(2);a.af().ac(100);a.af().Na(olympe.j.Color.create(230,230,230));a.Ze().cd(olympe.j.Color.create(191,191,191));a.Ze().Uc(2);a.Ze().ac(100);a.Ze().Na(olympe.j.Color.create(230,230,230));return a})}Kv(a){return R(this,olympe.ui.D.da.Zi.tc,olympe.ui.D.da.Zi,a,()=>{const b=new olympe.ui.D.da.Zi;b.Na(this.$a);J(b.R,'grid-cell');J(b.C,'grid-cell');J(b.F,'grid-selected-cell');b.zj(30);Ze(b);
|
|
624
624
|
var c=olympe.j.Color.create(0,0,0);J(b.O,c);return b})}nt(a){return R(this,olympe.ui.D.da.lk.tc,olympe.ui.D.da.lk,a,()=>{const b=new olympe.ui.D.da.lk;b.Cb(new olympe.j.ha(500,1));b.Nd(!1);b.Ed(!0);b.ac(4);var c=olympe.j.Color.create(0,0,0,.6);J(b.C,c);b.Na(N());J(b.R,10);b.mf(10);J(b.$,'header1');J(b.Mb,'black_std');J(b.ba,'selected');J(b.la,this.F);J(b.Ba,this.$);J(b.V,5);J(b.aa,5);J(b.T,'"Helvetica Neue",Helvetica, Arial, sans-serif');return b})}Te(){return R(this,olympe.ui.D.da.Hq.tc,olympe.ui.D.da.Hq,
|
|
625
|
-
void 0,()=>{const a=new olympe.ui.D.da.Hq;a.Na(this
|
|
626
|
-
J(b.O,this
|
|
625
|
+
void 0,()=>{const a=new olympe.ui.D.da.Hq;a.Na(this.$a);return a})}kz(a){return R(this,olympe.ui.D.da.kp.tc,olympe.ui.D.da.kp,a,()=>{const b=new olympe.ui.D.da.kp;J(b.V,olympe.j.ka(40));J(b.R,olympe.j.ka(12));J(b.T,olympe.j.ka(400));J(b.La,this.T);J(b.Ba,this.R);$e(b);af(b);J(b.la,olympe.j.ka(1));var c=Zb();J(b.$,c);J(b.C,1);c=Zb();J(b.ba,c);J(b.aa,this.F);c=olympe.j.Xc(15,15);J(b.F,c);J(b.O,'images/close.png');return b})}mC(a){return R(this,olympe.ui.D.da.hs.tc,olympe.ui.D.da.hs,a,()=>{const b=new olympe.ui.D.da.hs;
|
|
626
|
+
J(b.O,this.$a);J(b.T,this.T);var c=olympe.j.Color.create(240,173,78);J(b.R,c);J(b.F,'images/datepicker.png');c=new olympe.j.ha(10,10);J(b.C,c);return b})}az(a){return R(this,olympe.ui.D.da.El.tc,olympe.ui.D.da.El,a,()=>{const b=new olympe.ui.D.da.El;b.Xt(!1);return b})}Sy(a){return R(this,olympe.ui.D.da.We.tc,olympe.ui.D.da.We,a,b=>{const c=new olympe.ui.D.da.We;switch(b){case olympe.ui.D.da.We.F.XE:J(c.C,olympe.ui.D.da.We.C.Su);break;default:J(c.C,olympe.ui.D.da.We.C.nx)}return c})}wC(a){return R(this,
|
|
627
627
|
olympe.ui.D.da.Ns.tc,olympe.ui.D.da.Ns,a,()=>{let b=new olympe.ui.D.da.Ns;b.Nd(!0);b.Ed(!0);b.cd(Zb());b.Uc(1);var c=b.Na;var d=Yb('yellow',233,214,107,1);c.call(b,d);J(b.R,'grid-cell');return b})}Ny(a){return R(this,olympe.ui.D.da.Do.tc,olympe.ui.D.da.Do,a,()=>new olympe.ui.D.da.Do)}};olympe.ui.D.da.qW=class extends olympe.ui.D.da.lx{Wl(a){return R(this,'button',olympe.ui.D.da.Fj,a,b=>{const c=new olympe.ui.D.da.Fj;switch(b){case 'selected':c.Cb(new olympe.j.ha(150,20));c.Na(olympe.j.Color.create(0,138,227));c.Cj(olympe.j.Color.create(0,110,180));b=N();J(c.C,b);c.cd(olympe.j.Color.create(128,128,128));b=olympe.j.Color.create(242,242,242);J(c.O,b);c.jb(N());b=olympe.j.Color.create(242,242,242);J(c.F,b);c.rb(14);c.wb(700);c.Ub(olympe.ui.ia.Db.Qb);c.Wb(olympe.ui.ia.rc.Rc);c.ac(4);
|
|
628
628
|
c.Uc(0);c.qb('Arial');break;case 'warning':c.Cb(new olympe.j.ha(150,20));c.Na(olympe.j.Color.red());c.Cj(olympe.j.Color.create(180,0,0));b=N();J(c.C,b);c.cd(Zb());b=Zb();J(c.O,b);c.jb(N());b=Zb();J(c.F,b);c.rb(14);c.wb(700);c.Ub(olympe.ui.ia.Db.Qb);c.Wb(olympe.ui.ia.rc.Rc);c.ac(4);c.Uc(0);c.qb('Arial');break;case 'default':c.Cb(new olympe.j.ha(150,20));c.Na(N());c.cd(Zb());c.Uc(1);b=N();J(c.C,b);b=olympe.j.Color.create(242,242,242);J(c.O,b);b=olympe.j.Color.create(242,242,242);J(c.F,b);c.Cj(olympe.j.Color.create(215,
|
|
629
629
|
215,215));c.rb(14);c.wb(700);c.Ub(olympe.ui.ia.Db.Qb);c.Wb(olympe.ui.ia.rc.Rc);c.ac(4);c.qb('Arial');break;default:return olympe.ui.D.da.lx.prototype.Wl.call(this,b)}return c})}Rv(a){return R(this,olympe.ui.D.da.Ak.tc,olympe.ui.D.da.Ak,a,()=>{const b=new olympe.ui.D.da.Ak;b.Uc(1);b.cd(M());b.hd(2);b.gd(2);b.zc(2);b.Ac(2);b.ac(2);b.qb('Arial');return b})}Qv(a){return R(this,olympe.ui.D.da.zk.tc,olympe.ui.D.da.zk,a,()=>{const b=new olympe.ui.D.da.zk;b.cd(M());b.Uc(1);b.hd(2);b.gd(2);b.zc(2);b.Ac(2);
|
|
@@ -641,8 +641,8 @@ this.C.Nd(!0).Ed(!0).hd(5).gd(5).zc(5).Ac(5).hg(1E4).fd(!0);this.ba=olympe.j.bb(
|
|
|
641
641
|
(e,f,g)=>Nb(Ob(olympe.j.Z.ZERO,e.za(f.Pa(10))),g.za(f)),olympe.j.Z),b=olympe.j.Wa([b.position.pa(),this.C.re(),this.ja().pa()],(e,f,g)=>Nb(Ob(olympe.j.Z.ZERO,e.za(f.Pa(5))),g.za(f)),olympe.j.Z),this.ba.repeat(a),this.$.repeat(b));c(this.C.Sk()).valueOf()&&(this.C.fd(!1),this.appendChild(this.C,'tooltip'))}Tv(){this.C&&!olympe.j.Ra(this.C.Sk()).valueOf()&&(this.C.fd(!0),this.removeChild('tooltip'))}};olympe.ui.D.tf.prototype.F.Sq=!0;olympe.ui.D.tf.prototype.T.Sq=!0;olympe.ui.D.tf.prototype.O.Sq=!0;
|
|
642
642
|
olympe.ui.D.tf.Ca=[olympe.ui.Y.Xf];h=olympe.ui.D.tf.prototype;h.Wj.K=new olympe.j.J(()=>olympe.N.D.tf,[]);h.Dh.K=olympe.j.J.C([]);h.mv.K=olympe.j.J.C([]);h.pw.K=olympe.j.J.C([]);h.appendChild.K=olympe.j.J.C([]);h.removeChild.K=olympe.j.J.C([]);h.clear.K=olympe.j.J.C([]);h.ja.K=olympe.j.J.V;h.qd.K=olympe.j.J.F;h.re.K=olympe.j.J.F;h.Ug.K=olympe.j.J.V;h.kj.K=new olympe.j.J(()=>olympe.ui.Y.ee,[]);h.Ji.K=new olympe.j.J(()=>String,[]);h.jj.K=new olympe.j.J(()=>olympe.ui.Y.ee,[]);
|
|
643
643
|
h.Zj.K=new olympe.j.J(()=>String,[]);h.lj.K=new olympe.j.J(()=>olympe.ui.Y.ee,[]);h.Ki.K=new olympe.j.J(()=>String,[]);h.jP.K=new olympe.j.J(()=>String,[]);h.yG.K=olympe.j.J.C([]);h.xD.K=olympe.j.J.C([]);h.Tv.K=olympe.j.J.C([]);function S(a){return a.oa()}
|
|
644
|
-
olympe.ui.D.mb=class extends olympe.ui.D.Element{constructor(a,b){super(a);this
|
|
645
|
-
!0;J(this
|
|
644
|
+
olympe.ui.D.mb=class extends olympe.ui.D.Element{constructor(a,b){super(a);this.$a=olympe.j.Xc();this.position=olympe.j.bb(olympe.j.ha);K(this.position,new olympe.j.ha(olympe.j.Z.ZERO,olympe.j.Z.ZERO));this.ec=null;this.yz=!1;this.parent=olympe.j.bb(olympe.ui.D.Element);void 0!==b&&this.Cb(b);S(this).be(this.position.wa().ma());S(this).te(this.position.wa().pa());S(this).gg(this.$a.ma());S(this).eg(this.$a.pa())}setPosition(a){olympe.j.Xb(a)?this.position.repeat(a):this.position.update(a);return this}Qd(){return this.position.wa()}ma(){return this.position.wa().ma()}pa(){return this.position.wa().pa()}Cb(a){this.yz=
|
|
645
|
+
!0;J(this.$a,a);return this}ja(){return this.$a}qd(){return this.$a.ma()}re(){return this.$a.pa()}ac(a){S(this).ac(a);return this}zd(a,b){this.Uc(a);this.cd(b);return this}Uc(a){S(this).Uc(a)}cd(a){S(this).cd(a.Gh())}gq(a){S(this).gq(a);return this}Ng(a,b,c,d,e){S(this).Ng(olympe.j.Ff(a,f=>f.ma()),olympe.j.Ff(a,f=>f.pa()),b||0,c||0,olympe.j.Ff(d,f=>f.Gh()),e);return this}QV(a,b,c,d,e){olympe.j.Ua([c,b,e,d,a],(f,g,k,l,m)=>{S(this).Ng(f*Math.cos(g),f*Math.sin(g),k*(1-l/100),k*l/100,m.Gh())});return this}setScale(a){olympe.j.Ua([a],
|
|
646
646
|
b=>{S(this).du(b.ma(),b.pa())});return this}UV(a){S(this).du(a,a);return this}hg(a){S(this).hg(a);return this}getParent(){return this.parent.wa()}nf(a){olympe.j.Xb(a)?this.parent.repeat(a):this.parent.update(a);return this}Ug(){null===this.ec&&Q(this,()=>{this.ec=new olympe.j.ha(0,0);olympe.j.Ua([this.parent,this.Qd()],(a,b)=>{const c=a.Ug(),d=this.ec;a instanceof olympe.ui.D.ld?(a=a.T(),olympe.j.Ua([b.ma(),c.ma(),a.ma()],(e,f,g)=>{d.be(olympe.j.ya(e).Pa(f).za(g))}),olympe.j.Ua([b.pa(),c.pa(),a.pa()],
|
|
647
647
|
(e,f,g)=>{d.te(olympe.j.ya(e).Pa(f).za(g))})):(olympe.j.Ua([b.ma(),c.ma()],(e,f)=>{d.be(olympe.j.ya(e).Pa(f))}),olympe.j.Ua([b.pa(),c.pa()],(e,f)=>{d.te(olympe.j.ya(e).Pa(f))}))})});return this.ec}xj(a){S(this).xj(a);return this}fg(){return this}Pd(a){a&&(super.Pd(a),this.zd(a.Uh(),a.Ck()),this.ac(a.vp()),this.yz||this.Cb(a.ja()),this.Ng(a.er(),a.fr(),a.gr(),a.cr(),a.dr()))}kf(){S(this).kf()}uj(a){S(this).MC(b=>{let c=!1;for(const d of b.children)if(d===this.jm()){c=!0;a(d);break}if(!c){const d=new MutationObserver(e=>
|
|
648
648
|
{for(const f of e)f.addedNodes.forEach(g=>{1===g.nodeType&&g===this.jm()&&(d.disconnect(),a(g))})});d.observe(b,{attributes:!1,childList:!0,characterData:!1,subtree:!1})}})}Hr(a){S(this).Hr(a)}};h=olympe.ui.D.mb.prototype;h.setPosition.K=olympe.j.J.C([]);h.Qd.K=olympe.j.J.V;h.ma.K=olympe.j.J.F;h.pa.K=olympe.j.J.F;h.Cb.K=olympe.j.J.C([]);h.ja.K=olympe.j.J.V;h.qd.K=olympe.j.J.F;h.re.K=olympe.j.J.F;h.ac.K=olympe.j.J.C([]);h.zd.K=olympe.j.J.C([]);h.gq.K=olympe.j.J.C([]);h.Ng.K=olympe.j.J.C([]);
|
|
@@ -693,9 +693,9 @@ olympe.ui.D.ae.prototype.Ed.K=olympe.j.J.C([]);olympe.ui.D.Gl=class extends olym
|
|
|
693
693
|
olympe.ui.D.Gl.prototype.appendChild.K=olympe.j.J.C([]);olympe.ui.D.Gl.prototype.C.K=olympe.j.J.C([]);olympe.ui.D.Gl.prototype.removeChild.K=olympe.j.J.C([]);olympe.ui.D.Gl.prototype.Sf.K=olympe.j.J.C([]);olympe.ui.D.rf=class extends olympe.ui.D.Td{constructor(a,b,c,d,e,f){super();this.Ja=new olympe.j.my;this.C=olympe.j.ka(0);this.R=olympe.j.Pc(!1);this.height=void 0===b?olympe.j.ka(0):olympe.j.ka(b);this.width=void 0===a?olympe.j.ka(0):olympe.j.ka(a);this.eb=olympe.j.Pc(!0);this.ba=void 0===d?olympe.j.ka(0):olympe.j.ka(d);this.vb=void 0===e?olympe.j.ka(0):olympe.j.ka(e);this.zb=void 0===f?olympe.j.ka(0):olympe.j.ka(f);this.La=this.width.za(this.ba);this.la=olympe.j.ka(c).Pa(this.ba);this.$=olympe.j.ka();
|
|
694
694
|
this.V=this.La.Qa(this.la).floor();this.Fa=this.C.Qa(this.V).ceil();this.T=olympe.j.ka();this.F=olympe.j.ka();void 0===b&&J(this.R,!0);olympe.j.Ya(this.R,()=>{J(this.height,this.$)});olympe.j.Ya(this.Fa.Gi(1),()=>{J(this.T,this.V)},()=>{J(this.T,this.C)});olympe.j.Ya(this.eb,()=>{var g=this.la.cb(this.La.Qa(this.la).za(this.T));const k=this.T.Pa(1);g=g.Qa(k);J(this.F,g.Pa(this.ba))},()=>{J(this.F,this.ba)});this.Cb(new olympe.j.ha(this.width.Pa(this.zb),this.height))}appendChild(a,b){H(this.C,D(this.C).Pa(1));
|
|
695
695
|
var c=mc(this.Ja,b,olympe.j.ka(1)),d=a.ja().ma().Pa(this.F);const e=a.ja().pa().Pa(this.F);d=c.Yv(this.V).cb(d).Pa(this.F);c=c.Qa(this.V).za(.5).round().cb(e);olympe.j.Ya(this.Fa.Gi(1).and(this.R),()=>{J(this.$,this.Fa.cb(e))},()=>{J(this.$,a.ja().pa())});a.setPosition(new olympe.j.ha(d.Pa(this.vb),c));bf(this,a,b);return this}removeChild(a){kc(this.Ja,a);J(this.C,D(this.C).za(1));this.O().removeChild(a);return this}Sf(){gc(this.Ja);J(this.C,0);this.O().Sf();return this}bd(){return this.C}Ed(a){J(this.R,
|
|
696
|
-
a);return this}zM(a){J(this.eb,a)}};h=olympe.ui.D.rf.prototype;h.appendChild.K=olympe.j.J.C([]);h.removeChild.K=olympe.j.J.C([]);h.Sf.K=olympe.j.J.C([]);h.bd.K=olympe.j.J.F;h.Ed.K=olympe.j.J.C([]);h.zM.K=olympe.j.J.C([]);olympe.ui.D.IH=class{constructor(a,b,c,d,e,f,g,k,l,m,n,p){this.eb=olympe.j.ka(0);this.Mb=olympe.j.ka(Number.MAX_SAFE_INTEGER);new olympe.j.my;this.R=olympe.j.ka(0);this.T=olympe.j.Pc(!1);this.height=void 0===b?olympe.j.ka(0):olympe.j.ka(b);this.width=void 0===a?olympe.j.ka(0):olympe.j.ka(a);this.La=olympe.j.Pc(void 0!==p?p:!0);this.$=void 0===d?olympe.j.ka(0):olympe.j.ka(d);this.la=void 0===e?olympe.j.ka(0):olympe.j.ka(e);this
|
|
697
|
-
olympe.j.ka(k);this.Fa=void 0===l?olympe.j.ka(0):olympe.j.ka(l);this.vb=void 0===m?olympe.j.ka(0):olympe.j.ka(m);this.Ba=this.width.za(this.la).za(this
|
|
698
|
-
this.F);olympe.j.Ya(this.La,()=>{var r=this.aa.cb(this.Ba.Qa(this.aa).za(this.C));const t=this.C.Pa(1);r=r.Qa(t);J(this.O,r.Pa(this.$))},()=>{J(this.O,this.$)});this.Ja=new olympe.j.ha(this.width.Pa(this.la).Pa(this
|
|
696
|
+
a);return this}zM(a){J(this.eb,a)}};h=olympe.ui.D.rf.prototype;h.appendChild.K=olympe.j.J.C([]);h.removeChild.K=olympe.j.J.C([]);h.Sf.K=olympe.j.J.C([]);h.bd.K=olympe.j.J.F;h.Ed.K=olympe.j.J.C([]);h.zM.K=olympe.j.J.C([]);olympe.ui.D.IH=class{constructor(a,b,c,d,e,f,g,k,l,m,n,p){this.eb=olympe.j.ka(0);this.Mb=olympe.j.ka(Number.MAX_SAFE_INTEGER);new olympe.j.my;this.R=olympe.j.ka(0);this.T=olympe.j.Pc(!1);this.height=void 0===b?olympe.j.ka(0):olympe.j.ka(b);this.width=void 0===a?olympe.j.ka(0):olympe.j.ka(a);this.La=olympe.j.Pc(void 0!==p?p:!0);this.$=void 0===d?olympe.j.ka(0):olympe.j.ka(d);this.la=void 0===e?olympe.j.ka(0):olympe.j.ka(e);this.$a=void 0===f?olympe.j.ka(0):olympe.j.ka(f);this.zb=void 0===k?olympe.j.ka(0):
|
|
697
|
+
olympe.j.ka(k);this.Fa=void 0===l?olympe.j.ka(0):olympe.j.ka(l);this.vb=void 0===m?olympe.j.ka(0):olympe.j.ka(m);this.Ba=this.width.za(this.la).za(this.$a);this.aa=olympe.j.ka(c).Pa(this.$);this.V=olympe.j.ka(g).Pa(this.zb);this.F=this.Ba.Qa(this.aa).floor();this.ba=this.R.Qa(this.F).ceil();this.C=olympe.j.ka();this.O=olympe.j.ka();void 0===b&&J(this.T,!0);olympe.j.Ya(this.T,()=>{J(this.height,this.V)});void 0===n||n?olympe.j.Ya(this.ba.Gi(1),()=>{J(this.C,this.F)},()=>{J(this.C,this.R)}):J(this.C,
|
|
698
|
+
this.F);olympe.j.Ya(this.La,()=>{var r=this.aa.cb(this.Ba.Qa(this.aa).za(this.C));const t=this.C.Pa(1);r=r.Qa(t);J(this.O,r.Pa(this.$))},()=>{J(this.O,this.$)});this.Ja=new olympe.j.ha(this.width.Pa(this.la).Pa(this.$a),this.height.Pa(this.Fa).Pa(this.vb))}pv(a,b,c,d,e,f,g){f=e.Se(d);const k=b(c,d,f,e,g);olympe.j.Ra(e.bd()).Pa(1).Ke(olympe.j.Ra(this.R)).valueOf()||J(this.R,e.bd());b=k.ja().ma().Pa(this.O);const l=k.ja().pa().Pa(this.O);b=olympe.j.bi(f.Yv(this.F).cb(b).Pa(this.O),olympe.j.ka(300),
|
|
699
699
|
olympe.j.Z.ah.Io);f=olympe.j.bi(f.Qa(this.F).za(.5).round().cb(l),olympe.j.ka(300),olympe.j.Z.ah.Io);olympe.j.Ya(this.ba.Gi(1).and(this.T),()=>{J(this.V,this.ba.cb(l))},()=>{J(this.V,k.ja().pa())});k.setPosition(new olympe.j.ha(b.Pa(this.la),f.Pa(this.Fa)));a.appendChild(k,d);return k}ja(){return this.Ja}gz(){return this.eb}Py(){return this.Mb}};olympe.ui.D.IH.Ca=[olympe.ui.D.pq];olympe.ui.D.IH.prototype.ja.K=olympe.j.J.V;olympe.ui.D.Ge=class extends olympe.ui.D.mb{constructor(a,b){super(olympe.ui.Ma.C(olympe.N.D.Ge,olympe.host.Xa.gb.EB),b)}C(){return this.le()}};olympe.ui.D.Ge.prototype.C.K=new olympe.j.J(()=>olympe.N.D.Ge,[]);function jf(a,b){a.C[olympe.xa.Pj()]=b}
|
|
700
700
|
olympe.ui.D.ve=class extends olympe.ui.D.mb{constructor(a){super(olympe.ui.Ma.C(olympe.N.D.ve,olympe.host.Xa.gb.HI));this.F=olympe.j.fa.C;this.C=Object.create(null);S(this).zz(b=>{const c=[];let d,e,f;d=0;for(e=b.length;d<e;d++)f=b[d],c.push(new olympe.ui.D.hF(f.content,f.name,f.mimeType,f.size));for(let g in this.C)this.C[g](c)});this.Cb(void 0!==a?a:new olympe.j.ha(400,200));this.Wc(()=>{const b=olympe.j.Ra(this.F);b&&b.valueOf()&&S(this).Pr()})}Vs(a){S(this).Vs(a);return this}Rt(a){S(this).Rt(a);
|
|
701
701
|
return this}hw(a){this.F=a;return this}lf(a){S(this).lf(a);return this}Er(a){S(this).Er(a);return this}at(){S(this).at();return this}Pr(){S(this).Pr();return this}};h=olympe.ui.D.ve.prototype;h.Vs.K=olympe.j.J.C([]);h.Rt.K=olympe.j.J.C([]);h.hw.K=olympe.j.J.C([]);h.lf.K=olympe.j.J.C([]);h.Er.K=olympe.j.J.C([]);h.at.K=olympe.j.J.C([]);h.Pr.K=olympe.j.J.C([]);olympe.ui.D.hF=class{constructor(a,b,c,d){this.content=a;this.name=b;this.mimeType=c;this.size=d}me(){return olympe.j.cc(`file:${this.name}`)}mg(){return this.content}Fv(a){a(this.content)}Oy(a){a(Ra(this.content))}$q(a){return a(`data:${this.mimeType};base64,${olympe.xa.Bi().C(this.content)}`)}QC(a,b){olympe.j.Ua([a],c=>{this.name=c.valueOf()});b(!0)}Sa(){return olympe.j.cc(this.name)}Bx(){return olympe.j.cc(this.name)}rt(){return olympe.j.cc(this.mimeType)}bd(){return this.size}};
|
|
@@ -703,9 +703,9 @@ olympe.ui.D.hF.Ca=[olympe.j.File];olympe.ui.D.yf=class{constructor(){}filter(){}
|
|
|
703
703
|
g,k)=>{k=k.Se(g);const l=e(this.R,f,g,k);l.Wc(()=>{H(this.F,f);H(this.O,g)});this.content.appendChild(l,g,new olympe.j.ha(0,k.cb(this.C)))})})}FG(a){J(this.data,a)}FM(a){J(this.C,a)}GG(a){J(this.Le,a)}pP(){return this.O}qP(){return this.F}};h=olympe.ui.D.pe.prototype;h.FG.K=olympe.j.J.C([]);h.FM.K=olympe.j.J.C([]);h.GG.K=olympe.j.J.C([]);h.pP.K=new olympe.j.J(()=>String,[]);h.qP.K=new olympe.j.J(()=>Object,[]);olympe.ui.D.Ol=class{constructor(){}run(){}vj(){}C(){}};function kf(a){const b=a.la+String((new Date).getTime()+Math.random());olympe.j.Ya(a.Mb,()=>{null!==a.F&&a.F.hg(olympe.ui.Ma.O(b+'_overlay').Pa(1));a.C.hg(olympe.ui.Ma.O(b).Pa(1));a.O=D(a.T);a.O.appendChild(a.C,a.la);const c=()=>{for(const e in a.vb)if(Object.prototype.hasOwnProperty.call(a.vb,e))a.vb[e]();a.SC();null!==a.F&&a.F.setPosition(new olympe.j.ha(0,0))},d=D(a.animation);null!==d?D(a.La).valueOf()?d.vj(a.content,a.O,c):d.vj(a.C,a.O,c):c();null!==a.F&&(a.O.Pi(),a.O.appendChild(a.F,a.la+'_overlay'),
|
|
704
704
|
null!==d&&D(a.Ba).valueOf()&&d.vj(a.F,a.O,c))},()=>{if(null!==a.O){const c=a.O;a.O=null;const d=()=>{olympe.ui.Ma.R(b+'_overlay');olympe.ui.Ma.R(b);c.removeChild(a.la);null!==a.F&&c.removeChild(a.la+'_overlay');a.SC();null!==a.F&&a.F.setPosition(new olympe.j.ha(0,0));for(const f in a.aa)if(Object.prototype.hasOwnProperty.call(a.aa,f))a.aa[f]()},e=olympe.j.Ra(a.animation);if(null!==e&&void 0!==e){const f=null!==a.F&&olympe.j.Ra(a.Ba)===olympe.j.fa.C;D(a.La).valueOf()?e.C(a.content,c,f?void 0:d):e.C(a.C,
|
|
705
705
|
c,f?void 0:d);f&&e.C(a.F,a.O,d)}else d()}})}function lf(a,b,c){c=void 0!==c?c:olympe.xa.Qe();a.aa[c]=b}function mf(a,b){a.Wd.set('hide',b)}
|
|
706
|
-
olympe.ui.D.Kf=class{constructor(a,b,c,d){this.Re=olympe.ui.D.Kf.R;olympe.ui.D.Kf.R++;this.la=(d?d:'floatingElement')+'_'+this.Re;this.animation=olympe.j.pb(olympe.ui.D.Ol,null);this.La=olympe.j.Pc(!1);this.C=new olympe.ui.D.Be(a);this.content=olympe.j.pb(olympe.ui.D.mb);this.T=null===c||void 0===c?olympe.j.pb(olympe.ui.D.tf,olympe.ui.Ma.Te()):c instanceof olympe.j.Proxy?c:olympe.j.pb(olympe.ui.D.Td,c);this.O=null;this.Mb=olympe.j.Pc(!1);this.aa={};this.vb={};this.V=null;this.Fa=olympe.j.Pc(!1);this
|
|
707
|
-
olympe.j.Pc(!1);this.zg=void 0!==b?b:!0;this.Ba=this.F=this.zb=null;this.Wd=new Map;this.zg&&(this.zb=olympe.j.ed(),this.F=new olympe.ui.D.fe(this.T.ja()),this.Ba=olympe.j.Pc(!1),this.F.Na(this.zb),this.F.Wc(e=>{for(const f of this.Wd.values())f(e)}));this.C.nf(this.T);this.C.xj(!0);kf(this);this.C.appendChild(this.content,'content');this.Fz()}Fz(){olympe.j.Ya(this.Fa,()=>{olympe.j.Ya(this
|
|
708
|
-
{olympe.j.Ya(this
|
|
706
|
+
olympe.ui.D.Kf=class{constructor(a,b,c,d){this.Re=olympe.ui.D.Kf.R;olympe.ui.D.Kf.R++;this.la=(d?d:'floatingElement')+'_'+this.Re;this.animation=olympe.j.pb(olympe.ui.D.Ol,null);this.La=olympe.j.Pc(!1);this.C=new olympe.ui.D.Be(a);this.content=olympe.j.pb(olympe.ui.D.mb);this.T=null===c||void 0===c?olympe.j.pb(olympe.ui.D.tf,olympe.ui.Ma.Te()):c instanceof olympe.j.Proxy?c:olympe.j.pb(olympe.ui.D.Td,c);this.O=null;this.Mb=olympe.j.Pc(!1);this.aa={};this.vb={};this.V=null;this.Fa=olympe.j.Pc(!1);this.$a=
|
|
707
|
+
olympe.j.Pc(!1);this.zg=void 0!==b?b:!0;this.Ba=this.F=this.zb=null;this.Wd=new Map;this.zg&&(this.zb=olympe.j.ed(),this.F=new olympe.ui.D.fe(this.T.ja()),this.Ba=olympe.j.Pc(!1),this.F.Na(this.zb),this.F.Wc(e=>{for(const f of this.Wd.values())f(e)}));this.C.nf(this.T);this.C.xj(!0);kf(this);this.C.appendChild(this.content,'content');this.Fz()}Fz(){olympe.j.Ya(this.Fa,()=>{olympe.j.Ya(this.$a,()=>{this.C.Cb(this.content.ja())},()=>{olympe.j.Ua([this.C.ja()],a=>a.be(this.content.ja().ma()))})},()=>
|
|
708
|
+
{olympe.j.Ya(this.$a,()=>{olympe.j.Ua([this.C.ja()],a=>a.te(this.content.ja().pa()))})})}Fd(a){J(this.content,a);return this}getParent(){return this.T}yq(a){J(this.Mb,a)}isVisible(){return this.Mb}JG(a){J(this.animation,a)}Yq(){return this.animation}HG(a){J(this.La,a)}IG(a){J(this.Ba,a)}KG(a){J(this.zb,a)}Nd(a){J(this.Fa,a);return this}Ed(a){J(this.$a,a);return this}setPosition(a){this.C.setPosition(a);return this}Qd(){return this.C.Qd()}Cb(a){this.C.Cb(a);return this}ja(){return this.C.ja()}setScale(a){this.C.setScale(a);
|
|
709
709
|
return this}Na(a){this.C.Na(a);return this}ac(a){this.C.ac(a);return this}zd(a,b){this.C.zd(a,b);return this}Tf(a){this.C.Tf(a);return this}dg(a,b,c,d,e){this.C.dg(a,b,c,d,e);return this}kS(){olympe.j.Ua([this.T],a=>{this.vv(a,olympe.ui.D.Kf.F.Rc,olympe.ui.D.Kf.O.Rc)});return this}vv(a,b,c){const d=olympe.ui.D.Kf.O,e=olympe.ui.D.Kf.F,f=a.Ug().ma(),g=a.Ug().pa();var k=olympe.ui.Ma.Te().ja().pa(),l=olympe.ui.Ma.Te().ja().ma();switch(b){case e.sH:b=f.za(this.C.ja().ma());break;case e.Hx:b=f;break;case e.qI:b=
|
|
710
710
|
f.Pa(a.ja().ma().za(this.C.ja().ma()));break;case e.rI:b=f.Pa(a.ja().ma());break;default:b=f.Pa(a.ja().ma().za(this.C.ja().ma()).Qa(2))}switch(c){case d.KB:a=g.za(this.C.ja().pa());break;case d.bJ:a=g;break;case d.ZD:a=g.Pa(a.ja().pa().za(this.C.ja().pa()));break;case d.Ww:a=g.Pa(a.ja().pa());break;default:a=g.Pa(a.ja().pa().za(this.C.ja().pa()).Qa(2))}c=olympe.j.Ra(this.T).Ug();b=b.za(c.ma());a=a.za(c.pa());const m=(n,p,r,t)=>{n+p+t>r&&(n=r-p-t);return n<t?t:n};l=olympe.j.Wa([b,this.ja().ma(),l],
|
|
711
711
|
(n,p,r)=>olympe.j.ya(m(n.valueOf(),p.valueOf(),r.valueOf(),10)),olympe.j.Z);k=olympe.j.Wa([a,this.ja().pa(),k],(n,p,r)=>olympe.j.ya(m(n.valueOf(),p.valueOf(),r.valueOf(),10)),olympe.j.Z);k=new olympe.j.ha(l,k);this.C.setPosition(k);this.V=k}lS(a,b,c,d){const e=olympe.ui.D.Kf.O,f=olympe.ui.D.Kf.F,g=a.xg().ma();a=a.xg().pa();switch(b){case f.sH:case f.Hx:b=g.za(this.C.ja().ma());break;case f.qI:case f.rI:b=g.Pa(10);break;default:b=g.za(this.C.ja().ma().Qa(2))}switch(c){case e.KB:case e.bJ:c=a.za(this.C.ja().pa()).za(10);
|
|
@@ -724,7 +724,7 @@ h.SG.K=olympe.j.J.C([]);h.TG.K=olympe.j.J.C([]);h.EM.K=olympe.j.J.C([]);h.PG.K=o
|
|
|
724
724
|
this.ba,this.R,this.R);b=new olympe.ui.D.ab(new olympe.j.ha(this.ja().ma().za(this.R.cb(2)),1),d.ut());b.Ed(!0);b.Fb(this.title);b.jb(M());b.Ub(olympe.ui.ia.Db.Qb);a.appendChild(b,'title',olympe.ui.ia.Db.Qb);b=new olympe.ui.D.ab(new olympe.j.ha(this.ja().ma().za(this.R.cb(2)),1),d.qt());b.Ed(!0);b.Cs(!0);b.Fb(this.message);b.jb(M());b.Ub(olympe.ui.ia.Db.ug);a.appendChild(b,'text',olympe.ui.ia.Db.Qb);this.$=new olympe.ui.D.mc(void 0,this.Ib,d.cz());this.eb=new olympe.ui.D.mc(void 0,this.ec,d.cz());
|
|
725
725
|
b=new olympe.ui.D.ae(this.$.ja().pa(),this.ba,this.ba,this.ba);a.appendChild(b,'button',olympe.ui.ia.Db.Qb);b.appendChild(this.eb,'cancelBtn');b.appendChild(this.$,'okBtn');this.$.Wc(this.Ja.bind(this));this.eb.Wc(this.cancel.bind(this));this.Fd(a);olympe.ui.D.AE.prototype.Pg.call(this,d)}Dh(a){J(this.title,a);return this}wV(a){J(this.message,a);return this}wP(a){J(this.Ib,a);return this}vP(a){J(this.ec,a);return this}vV(a){J(this.Gc,a);return this}uV(a){J(this.jc,a);return this}qV(a){J(this.Pe,a);
|
|
726
726
|
return this}pV(a){J(this.Mc,a);return this}ZG(a){J(this.ba,a)}mf(a){J(this.R,a);return this}Pg(a){super.Pg(a);this.mf(a.st());this.ZG(a.tt())}};h=olympe.ui.D.AE.prototype;h.Dh.K=olympe.j.J.C([]);h.wV.K=olympe.j.J.C([]);h.wP.K=olympe.j.J.C([]);h.vP.K=olympe.j.J.C([]);h.vV.K=olympe.j.J.C([]);h.uV.K=olympe.j.J.C([]);h.qV.K=olympe.j.J.C([]);h.pV.K=olympe.j.J.C([]);h.ZG.K=olympe.j.J.C([]);h.mf.K=olympe.j.J.C([]);olympe.ui.D.Hh=class extends olympe.ui.D.Kf{constructor(a,b,c){super(void 0,a,null,'bubble');this.kc=olympe.j.pb(String);this.eb=olympe.j.pb(olympe.j.Color);this.ec=olympe.j.pb(olympe.j.Color);this.Ib=olympe.j.ka(1);this.Ja=olympe.j.ka(1);this.ba=olympe.j.ka(1);this.$=olympe.j.ka(1);this.R=null;void 0!==b&&this.Fd(b);a&&mf(this,()=>{this.yq(!1);return!1});lf(this,()=>{null!==this.R&&(this.R.Rb.destroy(),this.R=null)},'disposeSyncProxy');olympe.ui.D.Hh.prototype.Pg.call(this,olympe.ui.Ma.F().Ny(c));
|
|
727
|
-
this.C.dg(this.kc,olympe.ui.ia.Eg.iq,olympe.ui.ia.Ce.Qb)}Fz(){}eH(a){J(this.Ib,a)}dH(a){J(this.ec,a)}cH(a){J(this.eb,a)}bH(a){J(this.Ja,a)}$G(a){J(this.ba,a)}aH(a){J(this.$,a)}VV(a,b,c,d=0,e=!0){const f=this.T;this.R&&this.R.Rb.destroy();this.R=olympe.j.Fh([f.ja().ma(),f.ja().pa(),this.content.ja().ma(),this.content.ja().pa(),a.ma(),a.pa(),this.Ja,this.ba,this.$,b,c,d,this.Ib,this.ec.Gh(),this.eb.Gh(),this.Fa,this
|
|
727
|
+
this.C.dg(this.kc,olympe.ui.ia.Eg.iq,olympe.ui.ia.Ce.Qb)}Fz(){}eH(a){J(this.Ib,a)}dH(a){J(this.ec,a)}cH(a){J(this.eb,a)}bH(a){J(this.Ja,a)}$G(a){J(this.ba,a)}aH(a){J(this.$,a)}VV(a,b,c,d=0,e=!0){const f=this.T;this.R&&this.R.Rb.destroy();this.R=olympe.j.Fh([f.ja().ma(),f.ja().pa(),this.content.ja().ma(),this.content.ja().pa(),a.ma(),a.pa(),this.Ja,this.ba,this.$,b,c,d,this.Ib,this.ec.Gh(),this.eb.Gh(),this.Fa,this.$a,this.isVisible()],(g,k,l,m,n,p,r,t,u,v,w,x,y,C,G,E,O,da)=>{if(da.valueOf()&&!this.C.getParent().Rb.vc()){g=
|
|
728
728
|
g.valueOf();k=k.valueOf();l=Math.round(l.valueOf()+2*y);m=Math.round(m.valueOf()+2*y);n=Math.round(n.valueOf());p=Math.round(p.valueOf());v=v?v.valueOf():olympe.ui.D.Hh.C.Yg;E=E.valueOf();O=O.valueOf();0===v%2?(da=v,k=Math.max(0,Math.min(k-m,void 0===w?p-m/2:w)),v===olympe.ui.D.Hh.C.Ph?(v=n,w=y+t,v>g-l-t&&(da=olympe.ui.D.Hh.C.ug,v=n-t-l+x,w=y)):(v=n-t-l,w=y,0>v&&n+t+l<g&&(da=olympe.ui.D.Hh.C.Ph,v=n+x,w=y+t)),x=p-k,x<r+u?(x=r+u,k=p-x):x>m-t-u&&(x=m-t-u,k=p-x),n=[l+t,m,v,k,w,y,da,n-v,x]):(da=v,g=Math.max(0,
|
|
729
729
|
Math.min(g-l,void 0===w?n-l/2:w)),v===olympe.ui.D.Hh.C.Hg?(v=p-t-m,w=y,0>v&&(da=olympe.ui.D.Hh.C.Yg,v=p+x,w=y+t)):(v=p,w=y+t,v>k-m-t&&(da=olympe.ui.D.Hh.C.Hg,v=p-t-m+x,w=y)),x=n-g,x<r+u?(x=r+u,g=n-x):x>l-t-u&&(x=l-t-u,g=n-x),n=[l,m+t,g,v,y,w,da,x,p-v]);var [Ka,pa,Cb,I,T,Da,qa,La,Oa]=n;this.C.Cb(new olympe.j.ha(Ka,pa));E&&this.Cb(new olympe.j.ha(Ka,this.ja().pa()));O&&this.Cb(new olympe.j.ha(this.ja().ma(),pa));this.setPosition(new olympe.j.ha(Cb,I));this.content.setPosition(new olympe.j.ha(T,Da));
|
|
730
730
|
r=r.valueOf();t=t.valueOf();y=y.valueOf();E=y/2;switch(qa){case olympe.ui.D.Hh.C.Hg:var ia=E;l-=E;O=E;n=m-E;ia='M'+ia+','+O+' L'+l+','+O+' L'+l+','+n+' L'+(La+r)+','+n+' L'+La+','+(t+m-E)+' L'+(La-r)+','+n+' L'+ia+','+n+' Z';break;case olympe.ui.D.Hh.C.Ph:n=t+E;l=t+l-E;O=E;m-=E;ia='M'+n+','+O+' L'+l+','+O+' L'+l+','+m+' L'+n+','+m+' L'+n+','+(Oa+r)+' L'+E+','+Oa+' L'+n+','+(Oa-r)+' Z';break;case olympe.ui.D.Hh.C.Yg:ia=E;l-=E;n=t+E;m=t+m-E;ia='M'+ia+','+n+' L'+(La-r)+','+n+' L'+La+','+E+' L'+(La+r)+
|
|
@@ -824,7 +824,7 @@ olympe.ui.D.uE=class extends olympe.ui.D.vd{constructor(a,{$V:b,tU:c,oS:d,fW:e}=
|
|
|
824
824
|
weekday:(I,T)=>{I.Fb('Mo Tu We Th Fr Sa Su'.split(' ')[T]);I.Wb(olympe.ui.ia.rc.Rc);I.Ub(olympe.ui.ia.Db.Qb)}};void 0!==b&&(this.F.ZM=b);void 0!==c&&(this.F.cM=c);void 0!==d&&(this.F.aK=d);void 0!==e&&(this.F.weekday=e);b=new olympe.ui.D.ae(a,0,0,0,!1,u);const G=new r(y.za(10),a);n=I=>{const T=new olympe.ui.D.ab(G);this.F.aK(T,I);return T};const E=I=>{I=l(this.C.wa()).clone().Ey(I);I.uz(this.$,this.ba).Yb(olympe.j.fa.C)&&(this.C.update(I),this.la(I))};c=n('<');c.Wc(()=>E(-1));d=n('>');d.Wc(()=>E(1));
|
|
825
825
|
e=new olympe.ui.D.ab(new r(u.za(y.cb(2)).cb(.55),a));a=new olympe.ui.D.ab(new r(u.za(y.cb(2)).cb(.3),a));const O=n('<');O.Wc(()=>{const I=l(this.C.wa()).clone().tv(-1);I.uz(this.$,this.ba).Yb(olympe.j.fa.C)&&(this.C.update(I),this.la(I))});n=n('>');n.Wc(()=>{const I=l(this.C.wa()).clone().tv(1);I.uz(this.$,this.ba).Yb(olympe.j.fa.C)&&(this.C.update(I),this.la(I))});this.F.cM(e,a,this.C.wa());b.appendChild(c,'hl_left_arrow');b.appendChild(e,'hl_year');b.appendChild(d,'hl_right_arrow');b.appendChild(O,
|
|
826
826
|
'hl_yleft_arrow');b.appendChild(a,'hl_month');b.appendChild(n,'hl_yright_arrow');this.Fa=new olympe.ui.D.fe(new olympe.j.ha(u,1));this.Fa.Na(ac());const da=new olympe.ui.D.ae(w,0,0,0,!1,u),Ka=I=>{const T=new olympe.ui.D.ab(new r(y,w));this.F.weekday(T,I);return T};Array(7).fill(0).forEach((I,T)=>da.appendChild(Ka(T),'weekday_'+T));const pa=new olympe.ui.D.vd(u,0,0,0,!1,v.za(x)),Cb=(I,T)=>{const Da=new olympe.ui.D.ab(new r(y,T));let qa=null;olympe.j.Ya(this.disabled.wa().ne(),()=>{qa=Da.Wc(()=>{l(I.DC).valueOf()||
|
|
827
|
-
this.C.update(Sb({year:I.year,month:I.month,day:1}));this.Dw(Sb({year:I.year,month:I.month,day:I.day}))})},()=>{null!==qa&&(this.sj(qa),qa=null)});this.F.ZM(Da,I);return Da};k([this.C.wa().getMonth(),this.C.wa().getYear()],(I,T)=>{I=Cf(I-1,T);const Da=v.za(x).Qa(I.length);I.forEach((qa,La)=>{const Oa=new olympe.ui.D.ae(Da,0,0,0,!1,u);qa.forEach(ia=>{ia.month++;const
|
|
827
|
+
this.C.update(Sb({year:I.year,month:I.month,day:1}));this.Dw(Sb({year:I.year,month:I.month,day:I.day}))})},()=>{null!==qa&&(this.sj(qa),qa=null)});this.F.ZM(Da,I);return Da};k([this.C.wa().getMonth(),this.C.wa().getYear()],(I,T)=>{I=Cf(I-1,T);const Da=v.za(x).Qa(I.length);I.forEach((qa,La)=>{const Oa=new olympe.ui.D.ae(Da,0,0,0,!1,u);qa.forEach(ia=>{ia.month++;const $g=Se=>Se.getYear().Ke(ia.year).and(Se.getMonth().Ke(ia.month).and(Se.wp().Ke(ia.day)));ia.HC=$g(g.now());ia.Gp=t($g(this.La.wa()),!1);
|
|
828
828
|
ia.DC=t(this.C.wa().getMonth().Ke(ia.month),!1);Oa.appendChild(Cb(ia,Da),`tile_${ia.month}-${ia.day}`)});pa.appendChild(Oa,`tile_line-${La}`)})});this.Na(N());this.hg(1);this.appendChild(pa,'content_layout');this.appendChild(da,'weekday_layout');this.appendChild(this.Fa,'separator');this.appendChild(b,'header_layout')}PV(a){this.Fa.Na(a);return this}GV(a){this.$=a;return this}FV(a){this.ba=a;return this}Gz(a){olympe.j.Ua([a],b=>{b=b.clone();b.Tk().valueOf()&&this.C.update(b)})}qT(){return this.C.wa()}YU(a){this.la=
|
|
829
829
|
a}lf(a){olympe.j.Xb(a)?this.disabled.repeat(a):this.disabled.update(olympe.j.lc(a))}Dw(a){olympe.j.Ua([a],b=>{b=b.clone();b.Tk().valueOf()&&this.La.update(b)})}fz(){return this.La.wa()}};h=olympe.ui.D.uE.prototype;h.PV.K=olympe.j.J.C([]);h.GV.K=olympe.j.J.C([]);h.FV.K=olympe.j.J.C([]);h.Gz.K=olympe.j.J.C([]);h.qT.K=new olympe.j.J(()=>olympe.j.$b,[]);h.YU.K=olympe.j.J.O;h.Dw.K=olympe.j.J.O;h.fz.K=new olympe.j.J(()=>olympe.j.$b,[]);olympe.ui.D.Zu=class extends olympe.ui.D.mb{constructor(a=olympe.ui.D.Zu.F.LA,b){const c=new olympe.j.ha;super(olympe.ui.Ma.C(olympe.N.D.Ge,olympe.host.Xa.gb.EB),c);this.O=olympe.j.bb(olympe.j.Z).update(olympe.j.ya(a));this.F=olympe.j.bb(olympe.j.fa).update(olympe.j.lc(void 0===b));this.C=olympe.j.bb(olympe.j.fa).update(olympe.j.lc(void 0===b));const d=b||new olympe.j.ha(100,100);let e=null;const f=olympe.j.sb().F(()=>{null===e&&(e=new olympe.j.ha);S(this).$((g,k)=>{e.be(g);e.te(k)})});olympe.j.Ua([this.F,
|
|
830
830
|
this.C],(g,k)=>{S(this).uo(g.valueOf(),k.valueOf());k=k.valueOf();g.valueOf()?(f(),c.be(e.ma()),k?c.te(e.pa()):c.te(d.pa())):k?(f(),c.be(d.ma()),c.te(e.pa())):(c.be(d.ma()),c.te(d.pa()))})}Fb(a){olympe.j.Ua([a,this.O.wa()],(b,c)=>{switch(c.valueOf()){case olympe.ui.D.Zu.F.nQ:b=(new remarkable.Remarkable({html:!0,typographer:!0,xhtmlOut:!0})).render(b.valueOf());break;case olympe.ui.D.Zu.F.LA:b=b.valueOf();break;default:b=b.valueOf()}S(this).Kz(b)});return this}Nd(a){olympe.j.Ua([a],b=>{this.F.update(olympe.j.lc(b))});
|
|
@@ -872,7 +872,7 @@ a);return this}al(a){const b=this;this.O||Q(this,()=>{b.O=olympe.j.ub();b.oa().a
|
|
|
872
872
|
'seg'+this.V++);return this}arcTo(a,b,c,d,e,f){this.mp(new olympe.ui.P.xi(a,b,c,d,e,f),'seg'+this.V++);return this}};olympe.ui.P.sf=class extends olympe.ui.P.ke{constructor(a,b){super(a);this.position=olympe.j.Xc();this.oa().setPosition(this.position.ma(),this.position.pa());b&&J(this.position,b)}setPosition(a){J(this.position,a);return this}Qd(){return this.position}};olympe.ui.P.sf.prototype.Qd.K=olympe.j.J.V;olympe.ui.P.xi=class extends olympe.ui.P.sf{constructor(a,b,c,d,e,f){super(olympe.ui.Ma.C(olympe.N.P.xi,olympe.host.Xa.gb.EJ),a);this.O=olympe.j.ka();this.C=olympe.j.ka();this.T=olympe.j.ka(0);this.F=olympe.j.Pc(!1);this.R=olympe.j.Pc(!1);this.oa().Aw(this.O);this.oa().Bw(this.C);this.oa().Jw(this.T);this.oa().uw(this.F);this.oa().Hw(this.R);void 0!==b&&(J(this.O,b),J(this.C,b));void 0!==c&&J(this.C,c);void 0!==d&&J(this.T,d);void 0!==e&&J(this.F,e);void 0!==f&&J(this.R,f)}Aw(a){J(this.O,a);return this}Bw(a){J(this.C,
|
|
873
873
|
a);return this}Jw(a){J(this.T,a);return this}uw(a){J(this.F,a);return this}Hw(a){J(this.R,a);return this}};olympe.ui.P.Oh=class extends olympe.ui.P.sf{constructor(a,b,c){super(olympe.ui.Ma.C(olympe.N.P.Oh,olympe.host.Xa.gb.FJ),a);this.C=olympe.j.Xc();this.F=olympe.j.Xc();this.oa().kw(this.C.ma(),this.C.pa());this.oa().lw(this.F.ma(),this.F.pa());b&&J(this.C,b);c&&J(this.F,c)}kw(a){J(this.C,a);return this}lw(a){J(this.F,a);return this}};olympe.ui.P.Vx=class extends olympe.ui.P.sf{constructor(a,b){super(olympe.ui.Ma.C(olympe.N.P.Vx,olympe.host.Xa.gb.GJ),a);this.C=null;void 0!==b&&this.fd(b)}fd(a){null===this.C&&this.C.Rb.destroy();this.C=this.oa().fd(a);return this}};olympe.ui.P.Wx=class extends olympe.ui.P.sf{constructor(a){super(olympe.ui.Ma.C(olympe.N.P.Wx,olympe.host.Xa.gb.HJ),a)}};olympe.ui.P.xn=class extends olympe.ui.P.sf{constructor(a,b){super(olympe.ui.Ma.C(olympe.N.P.xn,olympe.host.Xa.gb.IJ),a);this.C=olympe.j.Xc();this.oa().jw(this.C.ma(),this.C.pa());b&&J(this.C,b)}jw(a){J(this.C,a);return this}};olympe.ui.P.zn=class extends olympe.ui.P.bh{constructor(){super(olympe.ui.Ma.C(olympe.N.P.zn,olympe.host.Xa.gb.JJ));this.F=this.C=void 0}gw(a){this.C||Q(this,()=>{this.C=olympe.j.Xc();this.oa().gw(this.C.ma(),this.C.pa())});J(this.C,a);return this}sw(a){this.F||Q(this,()=>{this.F=olympe.j.Xc();this.oa().sw(this.F.ma(),this.F.pa())});J(this.F,a);return this}};olympe.ui.P.fe=class extends olympe.ui.P.nc{constructor(){super(olympe.ui.Ma.C(olympe.N.P.fe,olympe.host.Xa.gb.KJ));this.O=null}ac(a){null!==this.O&&this.O.Rb.destroy();this.O=this.oa().ac(a);return this}};olympe.ui.P.YY=class{constructor(){this.height=this.width=100;this.strokeWidth=1;this.strokeColor='rgb(0,0,0)';this.F='Arial,Helvetica';this.fontSize=12;this.C=this.path=''}Cb(a,b){this.width=a;this.height=b;return this}gu(a){this.strokeWidth=a}setStrokeColor(a,b,c,d){this.strokeColor=void 0===d?`rgb(${a},${b},${c})`:`rgba(${a},${b},${c},${d})`}moveTo(a,b){this.path+=`M${a} ${b}`;return this}lineTo(a,b){this.path+=`L${a} ${b}`;return this}qb(a){this.F=a;return this}rb(a){this.fontSize=a;return this}clear(){this.path=
|
|
874
874
|
this.C='';return this}toString(){var a='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 '+this.width+' '+this.height+'">';''!==this.C&&(a+='<g font-family="'+this.F+'" font-size="'+this.fontSize+'" stroke="none" fill="rgb(255,255,255)">'+this.C+'</g>');''!==this.path&&(a+='<path stroke-width="'+this.strokeWidth+'" stroke="'+this.strokeColor+'" d="'+this.path+'"/>');return a+'</svg>'}AD(){return'data:image/svg+xml,'+encodeURIComponent(this.toString())}};olympe.ui.P.dJ=class extends olympe.ui.P.nc{constructor(a){super(a);this.text=null;this.aa=this.V=this.T=this.fontSize=void 0;this.O=null}Fb(a){const b=this;this.text||Q(this,()=>{b.text=olympe.j.ub();b.oa().Fb(b.text)});J(this.text,a);return this}oj(){this.text||this.Fb('');return this.text}Cb(){return this}ja(){this.O||Q(this,()=>{this.O=new olympe.j.ha(0,0);this.oa().oo((a,b)=>{this.O.be(a);this.O.te(b)})});return this.O}rb(a){const b=this;this.fontSize||Q(this,()=>{b.fontSize=olympe.j.ka();b.oa().rb(b.fontSize)});
|
|
875
|
-
J(this.fontSize,a);return this}qb(a){const b=this;this.T||Q(this,()=>{b.T=olympe.j.ub();b.oa().qb(b.T)});J(this.T,a);return this}wb(a){const b=this;this.V||Q(this,()=>{b.V=olympe.j.ka();b.oa().wb(b.V)});J(this.V,a);return this}Br(a){const b=this;this.aa||Q(this,()=>{b.aa=olympe.j.ub();b.oa().Br(b.aa)});J(this.aa,a);return this}};olympe.ui.P.Text=class extends olympe.ui.P.dJ{constructor(){super(olympe.ui.Ma.C(olympe.N.P.Text,olympe.host.Xa.gb.MJ))}};olympe.ui.P.fv=class extends olympe.ui.P.dJ{constructor(){super(olympe.ui.Ma.C(olympe.N.P.fv,olympe.host.Xa.gb.NJ))}Fr(a){olympe.j.Ua([a],b=>{this.oa().Fr(b.oa())});return this}};olympe.ui.Ah={};olympe.ui.Ah.Eb=class{constructor(a,b,c=!1){this.W=a;this.T=b;this.ba=olympe.j.pb(olympe.ui.D.da.Tg,new olympe.ui.D.da.lx);this.la=new olympe.j.my;this.Ba=new olympe.ui.D.tf(this);this
|
|
875
|
+
J(this.fontSize,a);return this}qb(a){const b=this;this.T||Q(this,()=>{b.T=olympe.j.ub();b.oa().qb(b.T)});J(this.T,a);return this}wb(a){const b=this;this.V||Q(this,()=>{b.V=olympe.j.ka();b.oa().wb(b.V)});J(this.V,a);return this}Br(a){const b=this;this.aa||Q(this,()=>{b.aa=olympe.j.ub();b.oa().Br(b.aa)});J(this.aa,a);return this}};olympe.ui.P.Text=class extends olympe.ui.P.dJ{constructor(){super(olympe.ui.Ma.C(olympe.N.P.Text,olympe.host.Xa.gb.MJ))}};olympe.ui.P.fv=class extends olympe.ui.P.dJ{constructor(){super(olympe.ui.Ma.C(olympe.N.P.fv,olympe.host.Xa.gb.NJ))}Fr(a){olympe.j.Ua([a],b=>{this.oa().Fr(b.oa())});return this}};olympe.ui.Ah={};olympe.ui.Ah.Eb=class{constructor(a,b,c=!1){this.W=a;this.T=b;this.ba=olympe.j.pb(olympe.ui.D.da.Tg,new olympe.ui.D.da.lx);this.la=new olympe.j.my;this.Ba=new olympe.ui.D.tf(this);this.$a=c}aa(){return this.$a}C(a,b){return sc(this.T,a,b)}Te(){return this.Ba}Dh(a){this.Te().Dh(a);return this}F(){return this.ba}$(a){J(this.ba,a)}O(a){return mc(this.la,a)}R(a){kc(this.la,a)}Gb(){return this.W}jm(a){a=this.T.C.get(a.Pe().SB)||null;return null!==a&&'function'===typeof a.jm?a.jm():null}V(a,b){var c=[];
|
|
876
876
|
return(a=this.T.C.get(a.Pe().SB)||null)&&'function'===typeof a[b]?a[b].call(a,...c):void 0}};olympe.ui.Ah.Eb.Ca=[olympe.ui.Eb];olympe.ui.ga={Zb:'ui.Manager',Vb:'ui.Logger',hB:'ui.MediaDeviceProvider'};olympe.ui.qa={MH:'ui.noTooltips'};olympe.ui.Ma=null;olympe.va.qe(function(a){B(a,olympe.ui.qa.MH,!1);A(a,olympe.ui.ga.Zb,[olympe.ui.ga.Vb,olympe.host.ga.Zb,new olympe.va.Ab(olympe.ui.qa.MH)],(b,c,d)=>{null===olympe.ui.Ma&&(olympe.ui.Ma=new olympe.ui.Ah.Eb(b,c,d));return olympe.ui.Ma},!0);A(a,olympe.ui.ga.Vb,[olympe.tb.ga.Zb],b=>b.Vg('ui'));z(a,olympe.ui.ga.hB,olympe.ui.media.ap)},'olympe.ui');
|
|
877
877
|
olympe.va.run([olympe.ui.ga.Zb],a=>a,'olympe.ui');olympe.G.H.ui={};olympe.G.H.ui.gf=class extends olympe.G.H.host.wi{constructor(a,b){super(a,b)}};olympe.G.H.ui.gf.Ca=[olympe.N.gf];olympe.G.H.ui.xa={};const Hf='b i s sub sup u br'.split(' '),If=new RegExp('</?('+Hf.join('|')+')/?>'),Jf=new RegExp('<(?!/?('+Hf.join('|')+')/?>)','g'),Kf=new RegExp('>(?!/?('+Hf.map(a=>a.split('').reverse().join('')).join('|')+')/?<)','g');olympe.G.H.ui.xa.JX=class{};olympe.G.H.ui.Ka={};olympe.G.H.ui.Ka.Fu=class{constructor(a){this.C=a}addEventListener(a,b,c){this.C.addEventListener(a,b,c||!1)}removeEventListener(a,b,c){this.C.removeEventListener(a,b,c||!1)}};olympe.G.H.ui.Ka.sq=class extends olympe.G.H.ui.Ka.Fu{constructor(a){super(a);this.F=void 0}Wk(a){void 0===this.F&&(this.F=b=>{b.stopPropagation();a(this.C.value)},this.addEventListener('input',this.F,!1))}ll(){this.F&&(this.removeEventListener('input',this.F),this.F=void 0)}};olympe.G.H.ui.Ka.sq.prototype.unregisterValueChanged=olympe.G.H.ui.Ka.sq.prototype.ll;olympe.G.H.ui.Ka.sq.prototype.registerValueChanged=olympe.G.H.ui.Ka.sq.prototype.Wk;olympe.G.H.ui.Ka.sq.Ca=[olympe.N.Y.vq];olympe.G.H.ui.Ka.oh=class extends olympe.G.H.ui.Ka.Fu{constructor(a){super(a);this.R=this.F=this.O=null}ck(a){null===this.O&&(this.O=function(b){b.stopPropagation();a(void 0!==b.which?b.which:b.charCode,String.fromCharCode(b.keyCode||b.charCode),b.ctrlKey,b.shiftKey,b.altKey,b.metaKey,b)},this.addEventListener('keypress',this.O,!1))}Ui(){this.removeEventListener('keypress',this.O);this.O=null}bk(a){null===this.F&&(this.F=function(b){b.stopPropagation();a(void 0!==b.which?b.which:b.charCode,String.fromCharCode(b.keyCode||
|
|
878
878
|
b.charCode),b.ctrlKey,b.shiftKey,b.altKey,b.metaKey,b)},this.addEventListener('keydown',this.F,!1))}Ti(){this.removeEventListener('keydown',this.F);this.F=null}dk(a){null===this.R&&(this.R=function(b){b.stopPropagation();a(void 0!==b.which?b.which:b.charCode,String.fromCharCode(b.keyCode||b.charCode),b.ctrlKey,b.shiftKey,b.altKey,b.metaKey,b)},this.addEventListener('keyup',this.R,!1))}Vi(){this.removeEventListener('keyup',this.R);this.R=null}};olympe.G.H.ui.Ka.oh.prototype.unregisterKeyUp=olympe.G.H.ui.Ka.oh.prototype.Vi;
|
|
@@ -955,15 +955,15 @@ c);a.addEventListener('dragover',c);a.addEventListener('drop',d=>{c(d);d=d.dataT
|
|
|
955
955
|
this.O=document.createElement('p');this.O.textContent=a;this.O.style.textAlign='center';this.F=document.createElement('div');this.F.style.display='table-cell';this.F.style.verticalAlign='middle';this.F.appendChild(this.O);this.ua().appendChild(this.F)}lf(a){this.disabled=a;this.C.disabled=a}hw(){}Er(a){this.multiple=a;this.C.multiple=a}at(){this.files.length=0}Pr(){this.C.click()}zz(a){this.$||(this.$=()=>{a(this.files)})}la(){window.files=this.C.files;!this.C.multiple&&1<this.C.files.length?(this.T=
|
|
956
956
|
1,dg(this,this.C.files[0])):(this.T=this.C.files.length,eg(this,this.C.files));this.C.value=''}};olympe.G.H.ui.D.tg.prototype.registerLoadEnd=olympe.G.H.ui.D.tg.prototype.zz;olympe.G.H.ui.D.tg.prototype.showFileSelector=olympe.G.H.ui.D.tg.prototype.Pr;olympe.G.H.ui.D.tg.prototype.clearFiles=olympe.G.H.ui.D.tg.prototype.at;olympe.G.H.ui.D.tg.prototype.setMultiple=olympe.G.H.ui.D.tg.prototype.Er;olympe.G.H.ui.D.tg.prototype.setClickEnabled=olympe.G.H.ui.D.tg.prototype.hw;
|
|
957
957
|
olympe.G.H.ui.D.tg.prototype.setDisabled=olympe.G.H.ui.D.tg.prototype.lf;olympe.G.H.ui.D.tg.prototype.setBackgroundText=olympe.G.H.ui.D.tg.prototype.Rt;olympe.G.H.ui.D.tg.prototype.addAcceptedMimeType=olympe.G.H.ui.D.tg.prototype.Vs;olympe.G.H.ui.D.tg.prototype.destroy=olympe.G.H.ui.D.tg.prototype.destroy;olympe.host.Sc.register(olympe.host.Xa.gb.HI,olympe.G.H.ui.D.tg);olympe.G.H.ui.D.tg.Ca=[olympe.N.D.ve];const fg=new Map;let gg=0;
|
|
958
|
-
olympe.G.H.ui.D.Bc=class a extends olympe.G.H.ui.D.hc{constructor(b,c){super(b,c,document.createElement('div'));this.C=document.createElement('p');this.kc=null;this.Ja=this.eb=this.Mb=this.La=0;this.zb=this
|
|
958
|
+
olympe.G.H.ui.D.Bc=class a extends olympe.G.H.ui.D.hc{constructor(b,c){super(b,c,document.createElement('div'));this.C=document.createElement('p');this.kc=null;this.Ja=this.eb=this.Mb=this.La=0;this.zb=this.$a=null;this.Je=this.Re=!1;b=Object.create(null);b.margin='0px';b.display='table-cell';b.position='relative';b['white-space']='pre';b['user-select']='none';b['-webkit-user-select']='none';b['-moz-user-select']='none';b['-ms-user-select']='none';b.width='auto';b.height='auto';b['overflow-wrap']=
|
|
959
959
|
'break-word';Object.assign(this.C.style,b);this.ua().appendChild(this.C)}kf(){const b=Math.round(Math.min(this.qd()/2,this.re()/2,this.Uh())),c=Math.round(this.La),d=Math.round(this.eb),e=Math.round(this.Mb),f=Math.round(this.Ja),g=Math.round(this.qd()-Math.min(2*this.Uh(),this.qd())-this.La-this.Mb),k=Math.round(this.re()-Math.min(2*this.Uh(),this.re())-this.eb-this.Ja),l=g+this.La+this.Mb,m=k+this.eb+this.Ja;this.fb('border',b+'px solid '+this.Ck());this.C.style.padding=`${d}px ${e}px ${f}px ${c}px`;
|
|
960
|
-
this.C.style['max-width']=l+'px';this.C.style.width=g+'px';this.C.style.height=k+'px';Zf(this,l,m)}static C(){const b=new Map;fg.forEach((c,d)=>{c=c[0].C;b.set(d,[c.style.width,c.style.height])});fg.forEach(c=>{c=c[0].C;c.style.removeProperty('max-width');Object.assign(c.style,{width:'auto',height:'auto'})});fg.forEach(c=>{const d=c[0];var e=d.C;const f=e.clientWidth;e=e.clientHeight;if(d
|
|
961
|
-
fg.forEach((c,d)=>{const e=c[0],f=e.C;d=b.get(d);Object.assign(f.style,{width:e.Re?e
|
|
960
|
+
this.C.style['max-width']=l+'px';this.C.style.width=g+'px';this.C.style.height=k+'px';Zf(this,l,m)}static C(){const b=new Map;fg.forEach((c,d)=>{c=c[0].C;b.set(d,[c.style.width,c.style.height])});fg.forEach(c=>{c=c[0].C;c.style.removeProperty('max-width');Object.assign(c.style,{width:'auto',height:'auto'})});fg.forEach(c=>{const d=c[0];var e=d.C;const f=e.clientWidth;e=e.clientHeight;if(d.$a!==f||d.zb!==e)d.$a=f,d.zb=e,c[1].vc()||null===d.kc||c[1].run(()=>{d.kc(d.$a-d.Mb-d.La,d.zb-d.eb-d.Ja)})});
|
|
961
|
+
fg.forEach((c,d)=>{const e=c[0],f=e.C;d=b.get(d);Object.assign(f.style,{width:e.Re?e.$a:d[0],height:e.Je?e.zb:d[1],'max-width':c[0].$a})});fg.clear()}F(){if(null!==this.kc){const b=c=>{if(c<gg){const d=gg;window.setTimeout(()=>b(d),0)}else gg=0,a.C()};fg.set(this.uid,[this,olympe.j.sb()]);gg++;1===gg&&b(0)}}fd(b){super.fd(b);this.F()}Fb(b){if(-1<b.toString().search(If)){var c=this.C;b=b.split('').reverse().join('').replace(Kf,';tg&').split('').reverse().join('').replace(Jf,'<');c.innerHTML=b}else this.C.textContent=
|
|
962
962
|
b;this.F()}Nd(b){this.Re=b;this.F()}Ed(b){this.Je=b;this.F()}gg(b){super.gg(b);this.kf();this.F()}eg(b){super.eg(b);this.kf();this.F()}wb(b){this.C.style['font-weight']=b.toString();this.F()}qb(b){this.C.style['font-family']=b||'';b&&Wf(b,()=>this.F())}rb(b){this.C.style['font-size']=b.toString()+'px';this.F()}Ad(b){this.C.style['font-style']=b.toString();this.F()}jb(b){this.fb('color',b)}Yk(b,c,d,e){this.fb('color','rgba('+b+', '+c+', '+d+', '+e+')')}zj(b){this.C.style['line-height']=b.toString();
|
|
963
963
|
this.F()}Ub(b){switch(b){case olympe.ui.ia.Db.ug:this.C.style['text-align']='left';break;case olympe.ui.ia.Db.Qb:this.C.style['text-align']='center';break;case olympe.ui.ia.Db.Ph:this.C.style['text-align']='right';break;default:this.Gb().warn('Unexpected text horizontal align value '+b+' ignored')}this.F()}Wb(b){switch(b){case olympe.ui.ia.rc.Hg:this.C.style['vertical-align']='top';break;case olympe.ui.ia.rc.Rc:this.C.style['vertical-align']='middle';break;case olympe.ui.ia.rc.Yg:this.C.style['vertical-align']=
|
|
964
964
|
'bottom';break;default:this.Gb().warn('Unexpected text vertical align value '+b+' ignored')}this.O();this.F()}Ch(b){const c=()=>{this.C.style.removeProperty('overflow');this.C.style['text-overflow']='clip'};switch(b){case olympe.ui.ia.Bn.xu:c();break;case olympe.ui.ia.Bn.QE:this.C.style['text-overflow']='ellipsis';this.C.style.overflow='hidden';break;case olympe.ui.ia.Bn.aF:this.Gb().warn('Fade is not supported yet');c();break;default:this.Gb().warn('Unexpected text overflow handling',b,'ignored'),
|
|
965
965
|
c()}this.O()}iu(b){'pre'===b||'pre-wrap'===b||'nowrap'===b?this.C.style['white-space']=b:(this.Gb().warn('Unexpected white space wrap value',b,'ignored'),this.C.style['white-space']='pre');this.F()}$k(b){b?(this.C.style['user-select']='text',this.C.style['-webkit-user-select']='text',this.C.style['-moz-user-select']='text',this.C.style['-ms-user-select']='text',this.C.style.cursor='auto'):(this.C.style['user-select']='none',this.C.style['-webkit-user-select']='none',this.C.style['-moz-user-select']=
|
|
966
|
-
'none',this.C.style['-ms-user-select']='none',this.C.style.cursor='default')}oo(b){this.kc=b;this
|
|
966
|
+
'none',this.C.style['-ms-user-select']='none',this.C.style.cursor='default')}oo(b){this.kc=b;this.$a&&this.zb?b(this.$a-this.Mb-this.La,this.zb-this.eb-this.Ja):this.F()}hq(){this.kc=null}zc(b){this.La=b||0;this.kf();this.F()}Ac(b){this.Mb=b||0;this.kf();this.F()}hd(b){this.eb=b||0;this.kf();this.F()}gd(b){this.Ja=b||0;this.kf();this.F()}Mi(){super.Mi();this.F()}fj(){this.F()}O(){const b=this.C.style['vertical-align'],c=this.C.style['text-overflow'];this.C.style.display=b&&'top'!==b||'ellipsis'!==
|
|
967
967
|
c?'table-cell':'block'}};olympe.G.H.ui.D.Bc.prototype.ancestorBecameVisible=olympe.G.H.ui.D.Bc.prototype.fj;olympe.G.H.ui.D.Bc.prototype.setAppended=olympe.G.H.ui.D.Bc.prototype.Mi;olympe.G.H.ui.D.Bc.prototype.setPaddingBottom=olympe.G.H.ui.D.Bc.prototype.gd;olympe.G.H.ui.D.Bc.prototype.setPaddingTop=olympe.G.H.ui.D.Bc.prototype.hd;olympe.G.H.ui.D.Bc.prototype.setPaddingRight=olympe.G.H.ui.D.Bc.prototype.Ac;olympe.G.H.ui.D.Bc.prototype.setPaddingLeft=olympe.G.H.ui.D.Bc.prototype.zc;
|
|
968
968
|
olympe.G.H.ui.D.Bc.prototype.unregisterTextSize=olympe.G.H.ui.D.Bc.prototype.hq;olympe.G.H.ui.D.Bc.prototype.registerTextSize=olympe.G.H.ui.D.Bc.prototype.oo;olympe.G.H.ui.D.Bc.prototype.setSelectable=olympe.G.H.ui.D.Bc.prototype.$k;olympe.G.H.ui.D.Bc.prototype.setWhiteSpaceWrap=olympe.G.H.ui.D.Bc.prototype.iu;olympe.G.H.ui.D.Bc.prototype.setTextOverflow=olympe.G.H.ui.D.Bc.prototype.Ch;olympe.G.H.ui.D.Bc.prototype.setTextVerticalAlign=olympe.G.H.ui.D.Bc.prototype.Wb;
|
|
969
969
|
olympe.G.H.ui.D.Bc.prototype.setTextHorizontalAlign=olympe.G.H.ui.D.Bc.prototype.Ub;olympe.G.H.ui.D.Bc.prototype.setLineHeight=olympe.G.H.ui.D.Bc.prototype.zj;olympe.G.H.ui.D.Bc.prototype.setRGBATextColor=olympe.G.H.ui.D.Bc.prototype.Yk;olympe.G.H.ui.D.Bc.prototype.setTextColor=olympe.G.H.ui.D.Bc.prototype.jb;olympe.G.H.ui.D.Bc.prototype.setFontStyle=olympe.G.H.ui.D.Bc.prototype.Ad;olympe.G.H.ui.D.Bc.prototype.setFontSize=olympe.G.H.ui.D.Bc.prototype.rb;
|
|
@@ -972,14 +972,14 @@ olympe.G.H.ui.D.Bc.prototype.setHidden=olympe.G.H.ui.D.Bc.prototype.fd;olympe.ho
|
|
|
972
972
|
b);a.nf(this,b);Yf(a);this.Zs&&'none'!==this.ua().display&&a.fj();this.Zs&&a.Mi()}removeChild(a){a=void 0!==a?a:olympe.G.H.ui.D.Wf.ig;const b=this.children.get(a);if(void 0!==b){b.parent=null;b.xt=null;try{this.ua().removeChild(b.ua()),b.Zk()}catch(c){this.Gb().debug('Not able to remove a child, has probably already been removed')}finally{this.children.delete(a)}}else this.Gb().warn('Trying to remove a non existing child: '+a)}Vq(a){void 0!==a&&(this.children.delete(a),this.Ba.forEach(b=>b(a)))}Sf(){for(const a of this.children.keys())this.removeChild(a)}Uc(a){super.Uc(a);
|
|
973
973
|
for(const b of this.children.values())Yf(b)}Uq(){this.fb('overflow','visible')}Mi(){super.Mi();for(const a of this.children.values())a.Mi()}Zk(){super.Zk();for(const a of this.children.values())a.Zk()}fd(a){super.fd(a);if(!a)for(const b of this.children.values())b.fj()}fj(){for(const a of this.children.values())a.fj()}aa(a){const b=olympe.xa.Qe();this.Ba.set(b,a)}};olympe.G.H.ui.D.Wf.prototype.setHidden=olympe.G.H.ui.D.Wf.prototype.fd;olympe.G.H.ui.D.Wf.prototype.setRemoved=olympe.G.H.ui.D.Wf.prototype.Zk;
|
|
974
974
|
olympe.G.H.ui.D.Wf.prototype.setAppended=olympe.G.H.ui.D.Wf.prototype.Mi;olympe.G.H.ui.D.Wf.prototype.authorizeOverflow=olympe.G.H.ui.D.Wf.prototype.Uq;olympe.G.H.ui.D.Wf.prototype.removeAllChildren=olympe.G.H.ui.D.Wf.prototype.Sf;olympe.G.H.ui.D.Wf.prototype.childDestroyed=olympe.G.H.ui.D.Wf.prototype.Vq;olympe.G.H.ui.D.Wf.prototype.removeChild=olympe.G.H.ui.D.Wf.prototype.removeChild;olympe.G.H.ui.D.Wf.prototype.appendChild=olympe.G.H.ui.D.Wf.prototype.appendChild;olympe.G.H.ui.D.Wf.ig='default';
|
|
975
|
-
olympe.host.Sc.register(olympe.host.Xa.gb.hy,olympe.G.H.ui.D.Wf);olympe.G.H.ui.D.Wf.Ca=[olympe.N.D.Td,olympe.G.H.ui.D.MA];olympe.G.H.ui.D.MA=class{constructor(){}Vq(){}};olympe.G.H.ui.D.yc=class extends olympe.G.H.ui.D.hc{constructor(a,b){super(a,b,document.createElement('textarea'));this.F=this.O=this.la=this.$=0;this.T=this.aa=void 0;this.Fa='';this.Ba=!1;this.Ja=void 0;this
|
|
975
|
+
olympe.host.Sc.register(olympe.host.Xa.gb.hy,olympe.G.H.ui.D.Wf);olympe.G.H.ui.D.Wf.Ca=[olympe.N.D.Td,olympe.G.H.ui.D.MA];olympe.G.H.ui.D.MA=class{constructor(){}Vq(){}};olympe.G.H.ui.D.yc=class extends olympe.G.H.ui.D.hc{constructor(a,b){super(a,b,document.createElement('textarea'));this.F=this.O=this.la=this.$=0;this.T=this.aa=void 0;this.Fa='';this.Ba=!1;this.Ja=void 0;this.$a=!1;this.ua().removeAttribute('tabindex');this.fb('resize','none');this.fb('outline','0px');this.fb('overflow','auto');this.zc(this.$);this.Ac(this.la);this.hd(this.O);this.gd(this.F);this.fb('-webkit-user-select','text');this.fb('-moz-user-select','text');this.fb('-ms-user-select','text');
|
|
976
976
|
this.fb('-user-select','text');this.ua().addEventListener('mousedown',c=>{c.stopPropagation()});this.ua().addEventListener('mouseup',c=>{c.stopPropagation()});this.ua().addEventListener('click',c=>{c.stopPropagation()});this.ua().addEventListener('keyup',c=>{c.stopPropagation()});this.ua().addEventListener('keydown',c=>{c.stopPropagation()});this.ua().addEventListener('keypress',c=>{c.stopPropagation()});this.C=()=>{requestAnimationFrame(this.La.bind(this))}}kf(){const a=Math.max(Math.round(this.width-
|
|
977
977
|
2*this.borderWidth-this.la-this.$),0),b=Math.max(Math.round(this.height-2*this.borderWidth-this.O-this.F),0);this.fb('border',this.borderWidth+'px solid '+this.Ck());this.fb('paddingLeft',this.$+'px');this.fb('paddingRight',this.la+'px');this.fb('paddingTop',this.O+'px');this.fb('paddingBottom',this.F+'px');Zf(this,a,b)}lf(a){this.ua().disabled=a}wb(a){this.fb('fontWeight',a.toString());Yf(this)}zc(a){this.$=a||0;this.kf()}Ac(a){this.la=a||0;this.kf()}hd(a){this.O=a||0;this.kf()}gd(a){this.F=a||0;
|
|
978
978
|
this.kf()}qb(a){this.fb('fontFamily',a||'')}rb(a){this.fb('fontSize',a.toString()+'px')}Ad(a){this.fb('fontStyle',a.toString())}jb(a){this.fb('color',a)}Yk(a,b,c,d){this.fb('color','rgba('+a+', '+b+', '+c+', '+d+')')}sg(a){this.ua().placeholder=a}Dg(a){Qf(Of(),this,'color:'+a)}Ub(a){switch(a){case olympe.ui.ia.Db.ug:this.fb('text-align','left');break;case olympe.ui.ia.Db.Qb:this.fb('text-align','center');break;case olympe.ui.ia.Db.Ph:this.fb('text-align','right');break;default:this.Gb().warn('Unexpected text horizontal align value '+
|
|
979
979
|
a+' ignored')}}Wb(a){switch(a){case olympe.ui.ia.rc.Hg:this.fb('vertical-align','top');break;case olympe.ui.ia.rc.Rc:this.fb('vertical-align','middle');break;case olympe.ui.ia.rc.Yg:this.fb('vertical-align','bottom');break;default:this.Gb().warn('Unexpected text vertical align value '+a+' ignored')}}getValue(){return this.ua().value}pf(a){''!==document.activeElement.id&&document.activeElement.id===this.ua().id||this.ua().value===a||(this.ua().value=a,this.Ba&&window.setTimeout(this.La.bind(this),
|
|
980
980
|
0),a=document.createEvent('HTMLEvents'),a.initEvent('input',!0,!0),a.C='input',this.ua().dispatchEvent(a))}Oc(){this.aa||(this.aa=new olympe.G.H.ui.Ka.oh(this.ua()));return this.aa}zp(){this.T||(this.T=new olympe.G.H.ui.Ka.sq(this.ua()));return this.T}Wk(a){U(this,'valueChanged',this.ll.bind(this));return this.zp().Wk(a)}ll(){V(this,'valueChanged');return this.zp().ll()}ck(a){U(this,'keyPressed',this.Ui.bind(this));return this.Oc().ck(a)}Ui(){V(this,'keyPressed');return this.Oc().Ui()}bk(a){U(this,
|
|
981
|
-
'keyDown',this.Ti.bind(this));return this.Oc().bk(a)}Ti(){V(this,'keyDown');return this.Oc().Ti()}dk(a){U(this,'keyUp',this.Vi.bind(this));return this.Oc().dk(a)}Vi(){V(this,'keyUp');return this.Oc().Vi()}La(){const a=this.ua();a.style.height=this.Fa;const b=Number.parseInt(this.Fa,10);let c=a.scrollHeight-this.O-this.F;c=c>b?c:b;a.style.height=c+'px';this.Ja&&this.Ja(c);this.kf()}uo(a,b){const c=this.ua();''===this.Fa&&(this.Fa=c.style.height.toString());this.Ja=b;this.Ba=a;!this
|
|
982
|
-
this.C,!1),c.addEventListener('cut',this.C,!1),c.addEventListener('paste',this.C,!1),c.addEventListener('drop',this.C,!1),c.addEventListener('keydown',this.C,!1),this
|
|
981
|
+
'keyDown',this.Ti.bind(this));return this.Oc().bk(a)}Ti(){V(this,'keyDown');return this.Oc().Ti()}dk(a){U(this,'keyUp',this.Vi.bind(this));return this.Oc().dk(a)}Vi(){V(this,'keyUp');return this.Oc().Vi()}La(){const a=this.ua();a.style.height=this.Fa;const b=Number.parseInt(this.Fa,10);let c=a.scrollHeight-this.O-this.F;c=c>b?c:b;a.style.height=c+'px';this.Ja&&this.Ja(c);this.kf()}uo(a,b){const c=this.ua();''===this.Fa&&(this.Fa=c.style.height.toString());this.Ja=b;this.Ba=a;!this.$a&&this.Ba?(c.addEventListener('change',
|
|
982
|
+
this.C,!1),c.addEventListener('cut',this.C,!1),c.addEventListener('paste',this.C,!1),c.addEventListener('drop',this.C,!1),c.addEventListener('keydown',this.C,!1),this.$a=!0):this.$a&&!this.Ba&&(c.removeEventListener('change',this.C,!1),c.removeEventListener('cut',this.C,!1),c.removeEventListener('paste',this.C,!1),c.removeEventListener('drop',this.C,!1),c.removeEventListener('keydown',this.C,!1),this.$a=!1)}destroy(){super.destroy();this.T=this.aa=null}};olympe.G.H.ui.D.yc.prototype.destroy=olympe.G.H.ui.D.yc.prototype.destroy;
|
|
983
983
|
olympe.G.H.ui.D.yc.prototype.unregisterKeyUp=olympe.G.H.ui.D.yc.prototype.Vi;olympe.G.H.ui.D.yc.prototype.registerKeyUp=olympe.G.H.ui.D.yc.prototype.dk;olympe.G.H.ui.D.yc.prototype.unregisterKeyDown=olympe.G.H.ui.D.yc.prototype.Ti;olympe.G.H.ui.D.yc.prototype.registerKeyDown=olympe.G.H.ui.D.yc.prototype.bk;olympe.G.H.ui.D.yc.prototype.unregisterKeyPressed=olympe.G.H.ui.D.yc.prototype.Ui;olympe.G.H.ui.D.yc.prototype.registerKeyPressed=olympe.G.H.ui.D.yc.prototype.ck;
|
|
984
984
|
olympe.G.H.ui.D.yc.prototype.unregisterValueChanged=olympe.G.H.ui.D.yc.prototype.ll;olympe.G.H.ui.D.yc.prototype.registerValueChanged=olympe.G.H.ui.D.yc.prototype.Wk;olympe.G.H.ui.D.yc.prototype.getFormEvent=olympe.G.H.ui.D.yc.prototype.zp;olympe.G.H.ui.D.yc.prototype.getKeyEvent=olympe.G.H.ui.D.yc.prototype.Oc;olympe.G.H.ui.D.yc.prototype.setValue=olympe.G.H.ui.D.yc.prototype.pf;olympe.G.H.ui.D.yc.prototype.getValue=olympe.G.H.ui.D.yc.prototype.getValue;
|
|
985
985
|
olympe.G.H.ui.D.yc.prototype.setTextVerticalAlign=olympe.G.H.ui.D.yc.prototype.Wb;olympe.G.H.ui.D.yc.prototype.setTextHorizontalAlign=olympe.G.H.ui.D.yc.prototype.Ub;olympe.G.H.ui.D.yc.prototype.setPlaceholderColor=olympe.G.H.ui.D.yc.prototype.Dg;olympe.G.H.ui.D.yc.prototype.setPlaceholder=olympe.G.H.ui.D.yc.prototype.sg;olympe.G.H.ui.D.yc.prototype.setRGBATextColor=olympe.G.H.ui.D.yc.prototype.Yk;olympe.G.H.ui.D.yc.prototype.setTextColor=olympe.G.H.ui.D.yc.prototype.jb;
|
|
@@ -998,9 +998,9 @@ olympe.G.H.ui.D.Ob.prototype.registerKeyPressed=olympe.G.H.ui.D.Ob.prototype.ck;
|
|
|
998
998
|
olympe.G.H.ui.D.Ob.prototype.setTextOverflow=olympe.G.H.ui.D.Ob.prototype.Ch;olympe.G.H.ui.D.Ob.prototype.setAutoCapitalization=olympe.G.H.ui.D.Ob.prototype.Qt;olympe.G.H.ui.D.Ob.prototype.setStep=olympe.G.H.ui.D.Ob.prototype.fu;olympe.G.H.ui.D.Ob.prototype.setMax=olympe.G.H.ui.D.Ob.prototype.Zt;olympe.G.H.ui.D.Ob.prototype.setMin=olympe.G.H.ui.D.Ob.prototype.bu;olympe.G.H.ui.D.Ob.prototype.setType=olympe.G.H.ui.D.Ob.prototype.Pm;olympe.G.H.ui.D.Ob.prototype.setPlaceholderColor=olympe.G.H.ui.D.Ob.prototype.Dg;
|
|
999
999
|
olympe.G.H.ui.D.Ob.prototype.setPlaceholder=olympe.G.H.ui.D.Ob.prototype.sg;olympe.G.H.ui.D.Ob.prototype.setValue=olympe.G.H.ui.D.Ob.prototype.pf;olympe.G.H.ui.D.Ob.prototype.getValue=olympe.G.H.ui.D.Ob.prototype.getValue;olympe.G.H.ui.D.Ob.prototype.selectText=olympe.G.H.ui.D.Ob.prototype.Pt;olympe.G.H.ui.D.Ob.prototype.setTextVerticalAlign=olympe.G.H.ui.D.Ob.prototype.Wb;olympe.G.H.ui.D.Ob.prototype.setTextHorizontalAlign=olympe.G.H.ui.D.Ob.prototype.Ub;
|
|
1000
1000
|
olympe.G.H.ui.D.Ob.prototype.setRGBATextColor=olympe.G.H.ui.D.Ob.prototype.Yk;olympe.G.H.ui.D.Ob.prototype.setTextColor=olympe.G.H.ui.D.Ob.prototype.jb;olympe.G.H.ui.D.Ob.prototype.setFontStyle=olympe.G.H.ui.D.Ob.prototype.Ad;olympe.G.H.ui.D.Ob.prototype.setFontSize=olympe.G.H.ui.D.Ob.prototype.rb;olympe.G.H.ui.D.Ob.prototype.setFontFamily=olympe.G.H.ui.D.Ob.prototype.qb;olympe.G.H.ui.D.Ob.prototype.setPaddingBottom=olympe.G.H.ui.D.Ob.prototype.gd;olympe.G.H.ui.D.Ob.prototype.setPaddingTop=olympe.G.H.ui.D.Ob.prototype.hd;
|
|
1001
|
-
olympe.G.H.ui.D.Ob.prototype.setPaddingRight=olympe.G.H.ui.D.Ob.prototype.Ac;olympe.G.H.ui.D.Ob.prototype.setPaddingLeft=olympe.G.H.ui.D.Ob.prototype.zc;olympe.G.H.ui.D.Ob.prototype.setFontWeight=olympe.G.H.ui.D.Ob.prototype.wb;olympe.G.H.ui.D.Ob.prototype.setDisabled=olympe.G.H.ui.D.Ob.prototype.lf;olympe.host.Sc.register(olympe.host.Xa.gb.MI,olympe.G.H.ui.D.Ob);olympe.G.H.ui.D.Ob.Ca=[olympe.N.D.Lb];function hg(a){const b=a
|
|
1002
|
-
olympe.G.H.ui.D.jd=class extends olympe.G.H.ui.D.hc{constructor(a,b){super(a,b,document.createElement('div'));this.F=null;this
|
|
1003
|
-
this.T&1|(void 0===a?1:a)<<1;hg(this)}eu(a){this.T=this.T&2|(void 0===a?1:a);hg(this)}Jr(a=!1){this
|
|
1001
|
+
olympe.G.H.ui.D.Ob.prototype.setPaddingRight=olympe.G.H.ui.D.Ob.prototype.Ac;olympe.G.H.ui.D.Ob.prototype.setPaddingLeft=olympe.G.H.ui.D.Ob.prototype.zc;olympe.G.H.ui.D.Ob.prototype.setFontWeight=olympe.G.H.ui.D.Ob.prototype.wb;olympe.G.H.ui.D.Ob.prototype.setDisabled=olympe.G.H.ui.D.Ob.prototype.lf;olympe.host.Sc.register(olympe.host.Xa.gb.MI,olympe.G.H.ui.D.Ob);olympe.G.H.ui.D.Ob.Ca=[olympe.N.D.Lb];function hg(a){const b=a.$a?'scroll':'auto';3===a.T?(a.C.style.overflow=b,delete a.C.style['overflow-x'],delete a.C.style['overflow-y']):0!==(a.T&2)?(a.C.style['overflow-x']=b,a.C.style['overflow-y']='hidden',delete a.C.style.overflow,a.scrollTop=0):0!==(a.T&1)?(a.C.style['overflow-y']=b,a.C.style['overflow-x']='hidden',delete a.C.style.overflow,a.scrollLeft=0):(a.C.style.overflow='hidden',delete a.C.style['overflow-x'],delete a.C.style['overflow-y'],a.scrollLeft=0,a.scrollTop=0)}
|
|
1002
|
+
olympe.G.H.ui.D.jd=class extends olympe.G.H.ui.D.hc{constructor(a,b){super(a,b,document.createElement('div'));this.F=null;this.$a=!1;this.Mb='transparent';this.C=document.createElement('div');this.O=document.createElement('div');this.$=!1;this.la=this.Ba=this.aa=null;this.Fa=!1;this.T=3;this.scrollLeft=this.scrollTop=0;a=this.ua();this.O.style.overflow='hidden';hg(this);this.C.className='scroller';this.C.style.position='absolute';this.Jr(this.$a);this.C.appendChild(this.O);a.appendChild(this.C)}Ir(a){this.T=
|
|
1003
|
+
this.T&1|(void 0===a?1:a)<<1;hg(this)}eu(a){this.T=this.T&2|(void 0===a?1:a);hg(this)}Jr(a=!1){this.$a=a;this.C.classList.toggle('hidescrollbar',!a);hg(this)}Cw(a){this.Mb=a;this.C.style.setProperty('--scrollbar-color',this.Mb)}gg(a){super.gg(a);this.C.style.width=a+'px'}eg(a){super.eg(a);this.C.style.height=a+'px'}Mz(a){this.C.scrollLeft=a}Nz(a){this.C.scrollTop=a}Bz(a){null===this.aa&&(this.aa=b=>{b.stopPropagation();b.preventDefault();a(this.C.scrollLeft,this.C.scrollTop)},this.C.addEventListener('scroll',
|
|
1004
1004
|
this.aa,!1),U(this,'scroll',this.Uz.bind(this)),a(this.C.scrollLeft,this.C.scrollTop))}Uz(){null!==this.aa&&(this.C.removeEventListener('scroll',this.aa,!1),V(this,'scroll'));this.aa=null}Uc(a){super.Uc(a);null!==this.F&&Yf(this.F)}Ja(){return this.C.offsetHeight-this.C.clientHeight}La(){return this.C.offsetWidth-this.C.clientWidth}Fd(a){a instanceof olympe.G.H.ui.D.hc||this.Gb().warn('Trying to attach a wrongly typed object to absPosLayer (only HTMLUIElement objects can be used with DOM UI implementation');
|
|
1005
1005
|
null!==this.F&&this.$s();this.F=a;this.O.appendChild(a.ua());a.setAttribute('name_As_A_Child','scrollContent');a.nf(this,'scrollContent');Yf(a);this.O.style.width=a.qd()+'px';this.O.style.height=a.re()+'px';$f(a,(b,c)=>{const d=this.Ja();this.O.style.width=b-this.La()+'px';this.O.style.height=c-d+'px'});this.Zs?this.F.Mi():this.$=!0}$s(){if(null!==this.F){var a=this.F;a.parent=null;a.xt=null;try{this.O.removeChild(this.F.ua()),this.F.Zk(),this.$=!1}catch(b){this.Gb().debug('Not able to remove a child, has probably already been removed')}finally{this.F.RC.delete('htmlScroller'),
|
|
1006
1006
|
this.F=null}}}Vq(){this.F=null}Mi(){super.Mi();this.$&&(this.F.Mi(),this.$=!1)}Zk(){super.Zk();this.F&&this.F.Zk()}fd(a){super.fd(a);this.F&&this.F.fj()}fj(){this.F&&this.F.fj()}PC(a){null===this.Ba&&(this.Ba=b=>{this.Fa||(this.Fa=!0,a(b.ctrlKey,b.shiftKey,b.altKey,b.metaKey))},this.C.addEventListener('scroll',this.Ba),U(this,'scrollStart',this.Vz.bind(this)))}Vz(){this.C.removeEventListener('scroll',this.Ba);V(this,'scrollStart')}OC(a){let b;null===this.la&&(this.la=c=>{clearTimeout(b);b=setTimeout(()=>
|
|
@@ -1141,18 +1141,18 @@ const Ig=(a,b)=>{const c=new XMLHttpRequest;c.onload=function(){try{let d;200===
|
|
|
1141
1141
|
console.warn('No configuration found. Check presence of oConfig.json');0===Object.keys(Fg).length&&console.warn('No version found. Check presence of version.json');var a=olympe.xa.rM(location.href).parameters;a=new olympe.va.MN(Gg,Fg,Object.assign({},a));ra(a);ua(a.compile())}};window.XMLHttpRequest?(olympe.xa.Qj('oConfig.json',Ig,Lg),Ig('version.json',Kg)):console.error(Error('XMLHttpRequest is not available: cannot load configuration'));
|
|
1142
1142
|
window.addEventListener?window.addEventListener('DOMContentLoaded',Mg):window.attachEvent('load',Mg);olympe.dc={};olympe.dc.Nb={ORIGIN:'<',DESTINATION:'>'};q('olympe.dc.Direction',olympe.dc.Nb);olympe.dc.lg={vi:'ff022000000000000000',js:'ff02200000000000000e',bx:'ff02200000000000000f'};olympe.dc.MF={VERSION:'@v',EI:'@s'};olympe.dc.wq={Kh:'?'};olympe.dc.XY={hY:'online',Tu:'offline',OX:'invalidate'};olympe.dc.Vc={SELF:'self',SERVER:'server',Fq:'remote',Tu:'offline'};olympe.dc.ef={NONE:null,ME:'ff023000000000000037',Fg:'ff023000000000000137',yi:'ff023000000000000237',kR:'ff023000000000000337'};olympe.dc.SH=class extends Error{constructor(a){var b=olympe.dc.Hb(),c=olympe.dc.nj(),d=b.model(a);d=`\n- model: ${d} (${d?b.name(d):'no name'})`;b=b.source(a);c=`\n- source: ${b} (${b?c.Ie(b).name():'no name'})`;super(`Trying to use an CloudObject that does not exist:\n- tag: ${a}${d}${c}${''}`)}};olympe.dc.jv=class{Pf(){}ji(){}F(){}Sb(){}Qf(){}};olympe.dc.MQ=class{Oj(){}sa(){}bd(){}};function Ng(a){return olympe.dc.CloudObject.get(a.tag)}olympe.dc.Nf=class{constructor(a){this.tag='string'===typeof a?a:a.na()}na(){return this.tag}toJSON(){return'{ "type": "reference", "tag": '+JSON.stringify(this.tag)+' }'}Yb(a){return a instanceof olympe.dc.Nf&&this.tag===a.tag}static Jg(a){let b;'string'===typeof a?b=JSON.parse(a):b=a;return new olympe.dc.Nf(b.tag)}};olympe.dc.Nf.Ca=[olympe.dc.jk];olympe.dc.Nf.prototype.toJSON.K=olympe.j.J.O;olympe.dc.Nf.prototype.Yb.K=olympe.j.J.O;olympe.dc.jO=class a{constructor(b,c,d,e,f,g){this.W=b;this.db=c;this.V=d;this.cg=e;this.T=f;this.O=g;this.C=Wa(new olympe.xa.MB(6E5),(k,l)=>{URL.revokeObjectURL(l);Og(this.db,k,a.C(k))})}aa(b,c,d,e,f){this.ba(c).then(g=>{this.$(b,g,d,!!this.O,e,f)}).catch(g=>this.W.error(g))}F(b,c,d){const e=olympe.j.sb().F(c),f=olympe.j.sb().F(g=>{g=`Failed to download file ${b.na()}: ${g}`;this.W.error(g);null==d||d(g)});olympe.j.$p([b.iM(),b.na(),b.me(),b.rt()],(g,k,l,m)=>{if(Ua(this.C.C,k))g=this.C.get(k),this.T.F(g,
|
|
1143
1143
|
e,f);else{var n=p=>{p=p instanceof Uint8Array?new Blob([p],{type:m}):p;this.O&&this.R(k,p);e(p)};g.valueOf()?(g=this.db.model(b),g=new olympe.dc.Request(olympe.dc.Request.C.gs,olympe.dc.nj().Tl(b),{tag:k,model:g}),this.cg.C(g).then(n).catch(f)):(g=Gc(l),g.F=olympe.lb.de.ResponseType.YD,this.V.C(g,p=>{const r=p.Zh();200<=r&&300>r?n(p.data):f(`Failed to download file ${b}. Response code ${r}`)}))}})}$(b,c,d,e,f,g){e=e?l=>{this.R(b,new Blob([c],{type:d}));f(l)}:f;var k=this.db.model(b);k=new olympe.dc.Request(olympe.dc.Request.C.Os,
|
|
1144
|
-
olympe.dc.nj().Tl(b),{tag:b,model:k,content:c,mimeType:d});this.cg.C(k).then(e).catch(null!=g?g:this.W.error.bind(this.W))}ba(b){return ha(function*(){var c=b instanceof olympe.j.ib?b.valueOf():b;return'string'===typeof c?(new TextEncoder).encode(c):c instanceof ArrayBuffer?new Uint8Array(c,0,c.byteLength):c instanceof Blob?(c=yield c.arrayBuffer(),new Uint8Array(c,0,c.byteLength)):c})}R(b,c){const d=olympe.dc
|
|
1144
|
+
olympe.dc.nj().Tl(b),{tag:b,model:k,content:c,mimeType:d});this.cg.C(k).then(e).catch(null!=g?g:this.W.error.bind(this.W))}ba(b){return ha(function*(){var c=b instanceof olympe.j.ib?b.valueOf():b;return'string'===typeof c?(new TextEncoder).encode(c):c instanceof ArrayBuffer?new Uint8Array(c,0,c.byteLength):c instanceof Blob?(c=yield c.arrayBuffer(),new Uint8Array(c,0,c.byteLength)):c})}R(b,c){const d=olympe.dc.Za(b);b=URL.createObjectURL(c);this.C.set(d,b);const e=a.C(d);Pg(this.db,d,f=>{f||(this.C.delete(d),
|
|
1145
1145
|
Og(this.db,d,e))},e)}static C(b){return`cacheBinary${b}`}};function Qg(a,b){let c=Rg.get(b)||null,d=null;for(;!c&&b&&b!==d;){d=b;b=a.db.Rl(b);if(null===b)break;c=Rg.get(b)||null}let e;return null!=(e=c)?e:null}olympe.dc.SO=class{constructor(a,b,c){this.W=a;this.C=b;this.db=b.view;this.F=c;this.Jc=new FinalizationRegistry(d=>{this.W.R()&&this.W.debug(`Collect instance ${d} (${this.db.name(d)||'no name'})`);this.C.C.La([d])})}};function Sg(a,b){a.origin=b;return a}olympe.dc.Request=class{constructor(a,b,c,d){this.type=a;this.origin=olympe.dc.Vc.SELF;this.C=b;this.content=null!=c?c:null;this.F=null!=d?d:cd(olympe.ta.Ok()).Qk()}getType(){return this.type}yg(){return this.F}jf(){return this.C}mg(){return this.content}toString(){return`Request of type ${this.type}, from ${this.origin} to ${this.C}; content: ${this.content}`}};
|
|
1146
1146
|
olympe.dc.Request.C={Bf:1,sl:10,oF:24,HA:25,nO:28,Wu:30,Yx:31,FY:32,$w:33,dv:40,sy:41,TD:42,oI:43,vu:45,aE:46,BA:47,Os:50,gs:51,yu:52,IR:60,UQ:61,mO:62,EX:63,CN:64,Xw:65,HE:91,oO:93,lB:95,QUERY_RESULT:97};olympe.dc.$u=class a{constructor(b,c,d,e,f,g,k,l){this.W=b;this.ba=c;this.F=k;this.sources=new Map;this.O=this.Ba(l);this.R=new Map;this.la(f,d,e)}C(b){this.W.debug('Router: sends',b);const c=this.aa(b);return this.Ie(c).R(b)}V(b,c){this.W.debug('Router: subscribes',b);const d=this.aa(b);return this.Ie(d).T(b,c)}ei(b){const c=b.jf();if(c===this.F){let d;null==(d=this.R.get(b.getType()))||d.forEach(e=>e(b))}else olympe.ea.Ud.publish(c,b).catch(d=>{this.W.error(`Error while publishing the message ${b} to remote router: ${d}`)})}T(b,
|
|
1147
1147
|
c){let d=this.R.get(b);void 0===d&&(d=[],this.R.set(b,d));d.push(c)}$(b){return this.sources.has(b)}Ie(b){let c;return null!=(c=this.sources.get(b))?c:this.sources.get(olympe.dc.Vc.Fq)}aa(b){var c=olympe.dc.Request.C.sl,d=olympe.dc.Request.C.HA,e=olympe.dc.Request.C.oF,f=olympe.dc.Request.C.$w,g=olympe.dc.Request.C.dv;const k=olympe.dc.Request.C.vu,l=olympe.dc.Request.C.Os,m=olympe.dc.Request.C.yu,n=olympe.dc.Request.C.gs;switch(b.getType()){case c:d=this.O.get(a.C.sl)||[];break;case d:case f:case e:d=
|
|
1148
1148
|
this.O.get(a.C.PQ)||[];break;case g:case k:d=this.O.get(a.C.TRANSACTION)||[];break;case l:case n:case m:d=this.O.get(a.C.fO)||[];break;default:d=[]}c=b.mg();e=olympe.ta.Eb.C.Ej;f=olympe.ta.Eb.C.tl;g=Ae(this.ba);e=!(g===e||g===f);for(var p of d){let r;d=p;f=c&&(null==(r=c)?void 0:r.sa)&&c.sa();g=d.get('type');if(g===a.F.Tu&&e||g===a.F.zF&&d.get('id')===f||g===a.F.Kh)return p=p.get('destination'),this.W.debug('Request type',b.getType(),'with original destination',b.jf(),'is redirected to',p),p}return b.jf()}Ba(b){const c=
|
|
1149
1149
|
Object.values(olympe.dc.$u.C),d=Object.values(olympe.dc.$u.F);b=Object.entries(b);const e=new Map;b.forEach(([f,g])=>{if(c.includes(f))if(g instanceof Array){var k=[];e.set(f,k);g.forEach(l=>{const m=l.type;if(d.includes(m)){var n=l.destinations;n instanceof Array?(n=(new Map).set('type',m).set('destinations',n),k.push(n),m===a.F.zF&&n.set('id',l.id)):this.W.error('Routing rule',f,m,'is not valid. Destinations must be stored in an array')}else this.W.error('Routing rule',f,m,'is not valid. Valid rules are',
|
|
1150
1150
|
d.toString())})}else this.W.error('Routing rule',f,'is not valid. Rules must be ordered in an array');else this.W.error('Routing rule',f,'is not valid. Valid messages are',c.toString())});return e}la(b,c,d){const e=olympe.j.Mk();this.sources.set(olympe.dc.Vc.SERVER,d.init(this));Pg(b,this.F,()=>{this.sources.set(olympe.dc.Vc.Fq,c.init(this));const f=new Map;olympe.dc.yb.from(this.F,this.F).Hc(olympe.dm.DataSource.$v).filter(olympe.dc.query.fc.Yb(olympe.dm.DataSource.Us,!0)).observe(e).subscribe(g=>
|
|
1151
|
-
{var k=Tg(g);for(var l of k){f.get(l);k=this.sources.get(l);this.sources.delete(l);let m;null==(m=k)||m.destroy()}g=Ug(g);for(const m of g)g=m.na(),this.sources.has(g)||(l=new olympe.dc.sources.wH(this.W,m),this.sources.set(g,l),f.set(g,['','']),l.init(this))});Og(b,this.F,'router',!0)},'router')}};olympe.dc.$u.C={sl:'getContext',PQ:'query',TRANSACTION:'transaction',fO:'file'};olympe.dc.$u.F={Kh:'default',Tu:'offline',zF:'id'};olympe.dc.Jc={};const Vg=olympe.dc.Nb.ORIGIN,Wg=olympe.dc.Nb.DESTINATION,Rg=new Map,Xg=new Map,Yg=new Map
|
|
1151
|
+
{var k=Tg(g);for(var l of k){f.get(l);k=this.sources.get(l);this.sources.delete(l);let m;null==(m=k)||m.destroy()}g=Ug(g);for(const m of g)g=m.na(),this.sources.has(g)||(l=new olympe.dc.sources.wH(this.W,m),this.sources.set(g,l),f.set(g,['','']),l.init(this))});Og(b,this.F,'router',!0)},'router')}};olympe.dc.$u.C={sl:'getContext',PQ:'query',TRANSACTION:'transaction',fO:'file'};olympe.dc.$u.F={Kh:'default',Tu:'offline',zF:'id'};olympe.dc.Jc={};const Vg=olympe.dc.Nb.ORIGIN,Wg=olympe.dc.Nb.DESTINATION,Rg=new Map,Xg=new Map,Yg=new Map,Zg=new Map;function ah(a,b,c){let d=a;'function'===typeof a&&(d=c.entry);a=[...(d.yD||[])];return olympe.dc.Ha.C(b,c,...a)}function bh(a,b){Zg.set(a,b);return a}function ch(a){return(a=Rg.get(a))&&a.F||olympe.dc.CloudObject}function dh(a,b,c){const d=a+'@'+(b===Wg?Vg:Wg);if(Xg.has(d))throw Error(`Try to register the same relation (${b+a}) multiple times.`);Xg.set(d,c)}
|
|
1152
1152
|
function eh(a){a=a.na()+'@'+a.Nc();return Xg.get(a)||olympe.dc.CloudObject}function W(a,b){b.NAME=a;Yg.set(a,b)}function X(a){return a.NAME||null}
|
|
1153
1153
|
olympe.dc.Ha=class{constructor(){}static C(a,b,...c){if(Rg.has(a))throw Error(`Tag: ${a} - overwriting already defined CloudObject class ${Rg.get(a).F.name} with ${b.name}`);let d=null;const e=c.length;if(0<e){d=Array(e);for(let f=0;f<e;f++){let g=c[f];d[f]='string'===typeof g?new olympe.va.Ud(g):g}}b=new olympe.dc.Jc.Entry(a,b,d);Rg.set(a,b);return b.F.entry=b}static Df(a){return(a=a.entry)&&a.na()||null}};function fh(a,b){a.C=b}function Y(a,b){b=b.Vd();dh(b.na(),b.Nc(),a.F);return b}function gh(a){a.O=!0;return a}
|
|
1154
1154
|
olympe.dc.Jc.Entry=class{constructor(a,b,c){this.tag=a;this.F=b;this.yD=c||null;this.C=null;this.O=!1}na(){return this.tag}instantiate(a,b){const c=this.F;if(this.BC()&&b.getParameter(olympe.dc.qa.WE)){var d=olympe.dc.Hb();d=`Trying to instantiate an abstract class ${d.name(this)} (${this.na()}).`+` This may happen when the implementation of another class extending ${d.name(this)} has not been registered`;olympe.tb.Gb('dc').error(d)}return this.yD?(a=[void 0,a].concat(va(b,this.yD)),new c(...a)):
|
|
1155
|
-
new c(void 0,a)}ca(a){return new olympe.dc.Jc.Property(a)}ob(a,b=olympe.dc.Nb.DESTINATION){dh(a,b,this.F);return new olympe.dc.Oa.Il(a,b)}BC(){return this.O}};q('olympe.dc.registry.Entry',olympe.dc.Jc.Entry);olympe.dc.Jc.Entry.prototype.addRelation=olympe.dc.Jc.Entry.prototype.ob;olympe.dc.Jc.Entry.prototype.addProperty=olympe.dc.Jc.Entry.prototype.ca;olympe.dc.Jc.Entry.Ca=[olympe.dc.jk];olympe.dc.Jc.Property=class{constructor(a){this.tag=a}na(){return this.tag}};olympe.dc.Jc.Property.prototype.getTag=olympe.dc.Jc.Property.prototype.na;olympe.dc.Jc.Property.Ca=[olympe.dc.jk];olympe.dc.Jc.Relation=class{constructor(a,b=olympe.dc.Nb.DESTINATION,c=olympe.dc.CloudObject,d=olympe.dc.CloudObject){this.tag=olympe.dc
|
|
1155
|
+
new c(void 0,a)}ca(a){return new olympe.dc.Jc.Property(a)}ob(a,b=olympe.dc.Nb.DESTINATION){dh(a,b,this.F);return new olympe.dc.Oa.Il(a,b)}BC(){return this.O}};q('olympe.dc.registry.Entry',olympe.dc.Jc.Entry);olympe.dc.Jc.Entry.prototype.addRelation=olympe.dc.Jc.Entry.prototype.ob;olympe.dc.Jc.Entry.prototype.addProperty=olympe.dc.Jc.Entry.prototype.ca;olympe.dc.Jc.Entry.Ca=[olympe.dc.jk];olympe.dc.Jc.Property=class{constructor(a){this.tag=a}na(){return this.tag}};olympe.dc.Jc.Property.prototype.getTag=olympe.dc.Jc.Property.prototype.na;olympe.dc.Jc.Property.Ca=[olympe.dc.jk];olympe.dc.Jc.Relation=class{constructor(a,b=olympe.dc.Nb.DESTINATION,c=olympe.dc.CloudObject,d=olympe.dc.CloudObject){this.tag=olympe.dc.Za(a);this.direction=b;this.origin=c;this.R=d}na(){return this.tag}Nc(){return this.direction}type(){return this.R}Vd(){return new olympe.dc.Jc.Relation(this.tag,this.direction===olympe.dc.Nb.DESTINATION?olympe.dc.Nb.ORIGIN:olympe.dc.Nb.DESTINATION,this.R,this.origin)}Yb(a){return a instanceof olympe.dc.Jc.Relation?a.na()===this.na()&&a.Nc()===this.Nc():!1}toString(){return this.direction+
|
|
1156
1156
|
this.tag}};olympe.dc.Jc.Relation.prototype.getInverse=olympe.dc.Jc.Relation.prototype.Vd;olympe.dc.Jc.Relation.prototype.getDirection=olympe.dc.Jc.Relation.prototype.Nc;olympe.dc.Jc.Relation.prototype.getTag=olympe.dc.Jc.Relation.prototype.na;olympe.dc.Jc.Relation.Ca=[olympe.dc.jk];olympe.dc.db={};function hh(a,b){const c=a.O,d=olympe.dc.Hb(),e=olympe.dc.db.Database.C.Uu,f=olympe.dc.db.Database.C.Kh,g=olympe.dc.db.Database.C.ORIGIN,k=olympe.dc.db.Database.C.DESTINATION,l=new olympe.dc.db.nh('rev-'+b.sa());a.W.debug('Generate the reverse graphLayer of',b.sa());b.C.forEach((m,n)=>{if(m.T()){l.F(n,olympe.dc.ef.NONE);for(const [t,u]of m.Tj())l.Qf(t,n,u)}else{var p=c.get(n);if(void 0!==p)if(m.Sn())for(const t of ih(d,n,m.ba())){m=c.get(t);const u=new Map;m.forEach((v,w)=>{const x=w[0],y=w.substring(1);
|
|
1157
1157
|
x===e?u.set(y,v):x===f?u.set(w,v):x===g?v.forEach((C,G)=>{l.Sb(y,G,t)}):x===k&&v.forEach((C,G)=>{l.Sb(y,t,G)})});m=m.source();l.Pf(t,m,u)}else{const t=new Map;for(const u of m.he().keys()){var r=u[0]===f;const v=r?u.substring(1):u;r=r?jh(p,v,!0):p.Dc(v,!0);let w;t.set(u,null!=(w=r)?w:null)}0<t.size&&l.ji(n,t);for(const [u,v,w]of m.Tj())w?l.Qf(u,n,v):l.Sb(u,n,v)}}});return l}
|
|
1158
1158
|
function kh(a,b,c){const d=b.sa();if(a.F.has(d))throw Error(`You try to execute the patch ${d} a second times whereas the first execution has not been validated yet.`);const e=new lh(b,hh(a,b));a.C.push(d);a.F.set(d,e);a.O.Wd(c);a.write(b,!1)}function mh(a,b,c){return a.C.slice(0,c).map(d=>a.F.get(d)).reduce((d,e)=>e?e.di(d):d,b)}
|
|
@@ -1162,25 +1162,25 @@ class lh{constructor(a,b){this.F=a;this.C=b;this.db=olympe.dc.Hb()}sa(){return t
|
|
|
1162
1162
|
olympe.dc.db.Database=class a extends Map{constructor(b,c,d){super();let e;this.id=null!=(e=d.get('selfTag'))?e:olympe.dc.Vc.SELF;this.W=b;this.vb=olympe.j.sb();this.T=olympe.dc.db.Database.F.IDLE;this.V=new Map;this.la=[];this.O=[];this.$=new Map;var f;b=null!=(f=d.get('garbageCollector'))?f:olympe.dc.db.pn.C.tA;let g;f=null!=(g=d.get('garbageCollectorDelay'))?g:5E3;this.Mc=new olympe.dc.db.pn(c,this,b,f);d.get('debug')&&this.zg()}sa(){return this.id}getState(){return this.T}Gb(){return this.W}create(b,
|
|
1163
1163
|
c,d,e=!1){var f=this.F(b,!0);if(!f.e&&(null===f.O||f.O===c)){f.O=c;let g;(null==(g=f.model())?0:g.e)&&f.db.ba(f,!0)}e&&f.persist();d&&this.zb(f,d);this.C(a.Event.FF,b)}update(b,c){c&&(b=this.F(b,!0),this.zb(b,c))}Ba(b){const c=this.get(b);void 0!==c&&(this.ba(c,!1),this.C(a.Event.GF,b))}kc(b,c,d){c=this.F(c,!0);d=this.F(d,!0);switch(b){case ph:th(c,d);break;case qh:uh(c,d);break;default:vh(c,b,d)}}jc(b,c,d){c=this.get(c);d=this.get(d);if(void 0!==c&&void 0!==d)switch(b){case ph:wh(c,d);break;case qh:xh(c,
|
|
1164
1164
|
d);break;default:yh(c,b,d)}}Fa(b){for(const c of b)zh(this.F(c))}La(b){for(const c of b)(b=this.get(c))&&Ah(b)}Wd(b){b.forEach(c=>{this.F(c).persist()})}ec(b){const c=this.get(b);void 0!==c&&(c.clear(),super.delete(b),this.C(a.Event.TE,b))}F(b,c=!1){let d=this.get(b);void 0===d&&(d=new olympe.dc.db.Instance(b,this),this.set(b,d),this.C(a.Event.SE,b),c&&this.C(a.Event.RB,b));return d}Ja(b){Bh(this.O[0],olympe.xa.Pj(),b)}R(b){this.O[0].C.delete(b)}C(b,c,...d){this.V.has(b)&&this.V.get(b).forEach(e=>
|
|
1165
|
-
{e(c,...d)})}ba(b,c){this.$.set(b,c)}Pe(b,c,d,e){let f;null!=(f=this.O[0])&&Ch(f,b).ca(e?Dh+c:c,d)}Yf(b,c,d,e,f){let g;null!=(g=this.O[0])&&(d===Eh?f?Ch(g,b)
|
|
1165
|
+
{e(c,...d)})}ba(b,c){this.$.set(b,c)}Pe(b,c,d,e){let f;null!=(f=this.O[0])&&Ch(f,b).ca(e?Dh+c:c,d)}Yf(b,c,d,e,f){let g;null!=(g=this.O[0])&&(d===Eh?f?Ch(g,b).$a(c,e):Ch(g,b).Fa(c,e):f?Ch(g,b).La(c,e):Ch(g,b).zb(c,e))}Mb(b,c,d){let e;null!=(e=this.O[0])&&Ch(e,b).jc(c,d)}addEventListener(b,c){let d=this.V.get(b);void 0===d&&(d=[],this.V.set(b,d));d.push(c)}$a(b){this.la.push(b)}aa(b){return this.O.reduce((c,d)=>d.T.has(b)||c,!1)}Gc(){this.T===a.F.IDLE&&(this.T=a.F.sN);this.O.unshift(new olympe.dc.db.bO(this,
|
|
1166
1166
|
this.vb))}Ib(){this.T=a.F.en;this.Je();Fh(this.O[0]);this.O.shift();0===this.O.length&&(this.T=a.F.IDLE,this.la.forEach(b=>{b()}),Gh(this.Mc))}zb(b,c){const d=a.C.Kh;for(const [k,l]of c)if(void 0!==l)if(k[0]===d){c=b;var e=k.substring(1),f=l;const m=Hh+e;var g=c.get(m);(void 0===g?null:g)!==f&&(g=Ih+e,null===f?(c.delete(m),f=(f=c.Rl())&&jh(f,e),f=void 0===f?null:f,null!==f&&c.set(g,f),Jh(c,(new Map).set(e,f))):(void 0!==c.get(g)&&c.delete(g),c.set(m,f),Jh(c,(new Map).set(e,f))))}else b.update(k,l)}Je(){const b=
|
|
1167
1167
|
this.O[0];for(const [c,d]of this.$)this.eb(new Set,c).filter(e=>{var f=d;const g=e.e!==f;g&&(f?(e.e=f,Kh(e)):(Lh(e),e.e=f),e.db.C(f?Mh.yA:Mh.Fg,e.C));return g}).forEach(e=>{e=e.tag();d?Ch(b,e).create():Ch(b,e).delete()});this.$.clear()}eb(b,c,d=[]){const e=c.tag();if(!b.has(e)&&(b.add(e),d.push(c),c=c.get(rh+ph)))for(const f of c.values())this.eb(b,f,d);return d}zg(){const b=a.Event.yA,c=a.Event.$x,d=new Set,e=new Map;this.addEventListener(a.Event.FF,f=>{d.add(f)});this.addEventListener(b,f=>{d.delete(f);
|
|
1168
|
-
e.delete(f)});this.addEventListener(c,(f,...g)=>{if(g[0]===qh&&g[1]===sh){const k=g[2];this.get(k).Cc()||(g=e.get(k)||new Set,0===g.size&&e.set(k,g),g.add(f))}});this
|
|
1169
|
-
`\n\n ${k.toString()}`)});e.clear()})}};olympe.dc.db.Database.C={Uu:'$',HO:'~',Kh:'?',Yz:'=',BF:'|',oE:'@',ORIGIN:olympe.dc.Nb.ORIGIN,DESTINATION:olympe.dc.Nb.DESTINATION};olympe.dc.db.Database.Event={SE:0,TE:1,jJ:2,RB:3,pE:4,qE:5,yA:6,Fg:7,$x:8,uB:9,FF:10,GF:11,iI:12};olympe.dc.db.Database.F={IDLE:0,sN:1,en:2};function Nh(a,b,c=[]){const d=b.sa();kh(a.F,b,c);return e=>{if(e)a.F.push(d);else{e=a.F;const f=e.F.get(d);if(void 0!==f){const g=e.C.indexOf(d);e.C.splice(g,1);e.write(mh(e,f.C,e.C.length),!1);e.F.delete(d)}}}}function Oh(a,b){a.C
|
|
1170
|
-
function Pg(a,b,c,d){a=a.C.F(olympe.dc
|
|
1171
|
-
function ci(a,b,c,d,e){a=a.C.F(olympe.dc
|
|
1172
|
-
function ei(a,b,c,d){a=a.C.F(olympe.dc
|
|
1173
|
-
function hi(a,b,c,d,e){a=a.C.F(olympe.dc
|
|
1168
|
+
e.delete(f)});this.addEventListener(c,(f,...g)=>{if(g[0]===qh&&g[1]===sh){const k=g[2];this.get(k).Cc()||(g=e.get(k)||new Set,0===g.size&&e.set(k,g),g.add(f))}});this.$a(()=>{d.forEach(f=>{const g=this.get(f);g&&null===g.model()&&this.W.error(`\n[DEBUG - DATABASE]\nInstance ${f} created but does not exist !\n${g.toString()}`)});d.clear();e.forEach((f,g)=>{const k=this.get(g);k&&this.W.error(`\n[DEBUG - DATABASE]\nThe model ${g} is extended by other models but does not exist !`+`\nExtension models: ${Array.from(f.values()).join(', ')}`+
|
|
1169
|
+
`\n\n ${k.toString()}`)});e.clear()})}};olympe.dc.db.Database.C={Uu:'$',HO:'~',Kh:'?',Yz:'=',BF:'|',oE:'@',ORIGIN:olympe.dc.Nb.ORIGIN,DESTINATION:olympe.dc.Nb.DESTINATION};olympe.dc.db.Database.Event={SE:0,TE:1,jJ:2,RB:3,pE:4,qE:5,yA:6,Fg:7,$x:8,uB:9,FF:10,GF:11,iI:12};olympe.dc.db.Database.F={IDLE:0,sN:1,en:2};function Nh(a,b,c=[]){const d=b.sa();kh(a.F,b,c);return e=>{if(e)a.F.push(d);else{e=a.F;const f=e.F.get(d);if(void 0!==f){const g=e.C.indexOf(d);e.C.splice(g,1);e.write(mh(e,f.C,e.C.length),!1);e.F.delete(d)}}}}function Oh(a,b){a.C.$a(b)}olympe.dc.db.UN=class{constructor(a,b,c,d,e){this.W=a;this.C=b;this.view=c;this.F=new olympe.dc.db.LN(a,b,c,d);this.LU=new olympe.dc.db.qQ(a,c,b,e)}Gb(){return this.W}di(a){this.F.di(a)}};const Ph=olympe.dc.db.Database.C.ORIGIN,Qh=olympe.dc.db.Database.C.DESTINATION,Rh=olympe.dc.db.Database.C.Uu,Sh=olympe.dc.db.Database.C.Kh,Th=olympe.dc.db.Database.C.Yz,Uh=olympe.dc.db.Database.C.BF,Vh=Ph+Qh,Wh=Rh+Rh,Xh=olympe.dc.db.Database.F;let Yh=0;function Og(a,b,c,d=!1){const e=Zh(a,b);if(null!==e){const f=$h(e,'',c);void 0!==f&&(a.C.getState()!==Xh.en||e.aa()&&!d||a.C.R(c),d||!e.Cc()&&!e.aa()||f(!1,b))}}
|
|
1170
|
+
function Pg(a,b,c,d){a=a.C.F(olympe.dc.Za(b));d=null!=d?d:ai();bi(a,'',d,c)&&a.Cc()&&c(!0,b);return d}function ih(a,b,c){return{[Symbol.iterator]:function*(d,e,f){const g=(new Set).add(e);for(const k of g)yield k,d.Wy(k,f).forEach(([l,,,m])=>{m&&g.add(l)})}.bind(null,a,b,c)}}function ai(){++Yh;return String(Yh)}
|
|
1171
|
+
function ci(a,b,c,d,e){a=a.C.F(olympe.dc.Za(b));c=olympe.dc.Za(c);b=Rh+c;e=null!=e?e:ai();if(bi(a,b,e,d)&&a.Cc()){let f=!1;b=a.get(b);void 0===b&&(f=!0,b=a.get(Th+c));void 0!==b&&d(b,f)}return e}function Zh(a,b,c=!1){if(null===b||void 0===b)throw Error('Provided tag is null or undefined.');a=a.C.get(olympe.dc.Za(b));return!a||c&&!a.Cc()?null:a}function di(a,b,c,d){b=Zh(a,b);null!==b&&(c=olympe.dc.Za(c),$h(b,Rh+c,d),a.C.getState()===Xh.en&&a.C.R(d))}
|
|
1172
|
+
function ei(a,b,c,d){a=a.C.F(olympe.dc.Za(b));d=null!=d?d:ai();bi(a,Wh,d,c)&&a.Cc()&&a.forEach((e,f)=>{const g=f[0];g!==Rh&&g!==Th||c(f.substring(1),e,g===Th)});return d}function fi(a,b,c){b=Zh(a,b);null!==b&&($h(b,Wh,c),a.C.getState()===Xh.en&&a.C.R(c))}function gi(a,b,c,d,e){let f;null==(f=a.get(b))||f.forEach((g,k)=>{if(g.Cc()||!c&&g.aa())e?d(b.substring(1),b[0],c,k):d(c,k)})}
|
|
1173
|
+
function hi(a,b,c,d,e){a=a.C.F(olympe.dc.Za(b));c=c.Nc()+c.na();e=null!=e?e:ai();(d=ii(a,c,e,d))&&a.Cc()&&gi(a,c,!0,d,!1);return e}function ji(a,b,c,d){const e=a.C.F(olympe.dc.Za(b));a=null!=d?d:ai();const f=ii(e,Vh,a,c);f&&e.Cc()&&e.forEach((g,k)=>{g=k[0];g!==Ph&&g!==Qh||gi(e,k,!0,f,!0)})}function ki(a,b,c){const d=Zh(a,b);if(null!==d){const e=$h(d,Vh,c);void 0!==e&&(a.C.getState()!==Xh.en||d.aa()||a.C.R(c),!d.Cc()&&!d.aa()||d.forEach((f,g)=>{f=g[0];(f===Ph||f===Qh)&&e&&gi(d,g,!1,e,!0)}))}}
|
|
1174
1174
|
function li(a,b,c){b=Zh(a,b,!1);if(!b)return[];const d=olympe.dm.Relation.C.wB,e=olympe.dm.Relation.C.WQ,f=olympe.dm.Relation.C.QB,g=olympe.dm.Relation.C.jI,k=Rh+c,l=[];b.forEach((m,n)=>{const p=n[0];if(m instanceof olympe.dc.Nf&&p===Rh)(m=a.C.get(m.na()))&&l.push([m,n.substring(1),null,!0]);else if(p===Ph){const r=n.substring(1);let t,u;const v=null!=(u=null==(t=a.C.get(r))?void 0:t.get(k))?u:0;(d|e)&v&&m.forEach(w=>{l.push([w,r,p,!!(d&v)])})}else if(p===Qh){const r=n.substring(1);let t,u;const v=
|
|
1175
|
-
null!=(u=null==(t=a.C.get(r))?void 0:t.get(k))?u:0;(f|g)&v&&m.forEach(w=>{l.push([w,r,p,!!(f&v)])})}});return l}function mi(a,b,c,d,e){const f=a.C.F(olympe.dc
|
|
1175
|
+
null!=(u=null==(t=a.C.get(r))?void 0:t.get(k))?u:0;(f|g)&v&&m.forEach(w=>{l.push([w,r,p,!!(f&v)])})}});return l}function mi(a,b,c,d,e){const f=a.C.F(olympe.dc.Za(b));e=null!=e?e:ai();const g=ii(f,Uh+c,e,d);g&&f.Cc()&&li(a,b,c).forEach(([k,...l])=>{k.Cc()&&g(...l,!0,k.tag())})}function ni(a,b,c,d){const e=Zh(a,b);if(null!==e){const f=$h(e,Uh+c,d);void 0!==f&&(a.C.getState()!==Xh.en||e.aa()||a.C.R(d),!e.Cc()&&!e.aa()||li(a,b,c).forEach(([g,...k])=>{(g.Cc()||g.aa())&&f(...k,!1,g.tag())}))}}
|
|
1176
1176
|
function oi(a,b){a=Zh(a,b,!0);b=new Map;if(a)for(const [c,d]of a)c[0]===Sh&&b.set(c.substring(1),d);return b}function pi(a,b,c){return c===olympe.dc.ef.NONE?0:a.Dc(b,c,!0)||0}function qi(a,b){return function*(c){if(c)for(const [d,e]of c)if(c=d[0],c===Ph||c===Qh){const f=d.substring(1);for(const g of e.keys())yield[f,c,g]}}(Zh(a,b,!0))}
|
|
1177
|
-
function ri(a,b,c){if(!a.Cc(b))return a.W.warn(`No instance found with tag ${b}`),new Map;const d=new Map,e=[olympe.dc
|
|
1178
|
-
olympe.dc.od=class{constructor(a,b){this.W=a;this.C=b}sa(){return this.C.sa()}F(a,b,c,d=!1){a=Zh(this,a);if(null!==a){b=b.Nc()+b.na();const e=$h(a,b,c);void 0!==e&&(this.C.getState()!==Xh.en||a.aa()&&!d||this.C.R(c),d||!a.Cc()&&!a.aa()||gi(a,b,!1,e,!1))}}Cc(a){a=this.C.get(olympe.dc
|
|
1179
|
-
(a=Zh(this,a,!0))&&a.Rl())?a.tag():null}Vv(a){a=Zh(this,a,!0);return!(!a||!a.Rl())}ag(a,b){a=(a=Zh(this,a,!0))&&a.model();return!(!a||!this.zt(a.tag(),b))}source(a){return(a=Zh(this,a,!0))&&a.source()}Fp(a){a=Zh(this,a,!1);return!a||a.R}Dc(a,b,c){let d;a=null==(d=Zh(this,a,!0))?void 0:d.Dc(olympe.dc
|
|
1180
|
-
c.Cc()).map(([c,...d])=>[c.tag(),...d])}uc(a,b){return this.bz(a,[b])}FC(a,b,c){let d,e;a=null==(d=Zh(this,a,!0))?void 0:null==(e=d.get(b.Nc()+b.na()))?void 0:e.get(olympe.dc
|
|
1181
|
-
null):(a=c?c.values().next().value:null)&&a.Cc()?a.tag():null:null}Ap(a,b,c){a=olympe.dc
|
|
1182
|
-
b).filter(c)}Jv(a,b=olympe.dc.CloudObject){var c=Zh(this,a,!0);const d=b&&Zh(this,b,!0),e=[c];for(;c&&c!==d;){c=c.Rl();if(e.includes(c))throw Error(`Cycle detected when following recursively extend relations from base model instance "${a}".`);if(c&&!c.Cc())throw a=`Try to get all extensions of the model ${olympe.dc
|
|
1183
|
-
return e.map(f=>f.tag())}zt(a,b){const c=olympe.dc
|
|
1177
|
+
function ri(a,b,c){if(!a.Cc(b))return a.W.warn(`No instance found with tag ${b}`),new Map;const d=new Map,e=[olympe.dc.Za(b)];for(const f of e){const g=a.uc(f,c);d.set(f,g);for(const k of g.filter(l=>!d.has(l)))e.push(k)}a.W.debug(`Found ${d.size} instances in sub-tree rooted at ${olympe.dc.Za(b)}`);return d}function si(a,b,c,d){return(c=(a=Zh(a,b,!0))&&a.get(d+c))?Array.from(c.values()).filter(e=>e.Cc()).length:0}
|
|
1178
|
+
olympe.dc.od=class{constructor(a,b){this.W=a;this.C=b}sa(){return this.C.sa()}F(a,b,c,d=!1){a=Zh(this,a);if(null!==a){b=b.Nc()+b.na();const e=$h(a,b,c);void 0!==e&&(this.C.getState()!==Xh.en||a.aa()&&!d||this.C.R(c),d||!a.Cc()&&!a.aa()||gi(a,b,!1,e,!1))}}Cc(a){a=this.C.get(olympe.dc.Za(a));return!(null==a||!a.Cc())}name(a){let b,c;return null!=(c=null==(b=Zh(this,a))?void 0:b.Dc(olympe.dc.CloudObject.nameProp.na()))?c:''}model(a){return(a=(a=Zh(this,a,!0))?a.model():null)?a.tag():null}Rl(a){return(a=
|
|
1179
|
+
(a=Zh(this,a,!0))&&a.Rl())?a.tag():null}Vv(a){a=Zh(this,a,!0);return!(!a||!a.Rl())}ag(a,b){a=(a=Zh(this,a,!0))&&a.model();return!(!a||!this.zt(a.tag(),b))}source(a){return(a=Zh(this,a,!0))&&a.source()}Fp(a){a=Zh(this,a,!1);return!a||a.R}Dc(a,b,c){let d;a=null==(d=Zh(this,a,!0))?void 0:d.Dc(olympe.dc.Za(b),c);return void 0!==a?a:null}he(a,b=!1){var c=Zh(this,a,!0);a=new Map;if(c)for(const [d,e]of c)c=d[0],(c===Rh||!b&&c===Th)&&a.set(d.substring(1),e);return a}Wy(a,b){return li(this,a,b).filter(([c])=>
|
|
1180
|
+
c.Cc()).map(([c,...d])=>[c.tag(),...d])}uc(a,b){return this.bz(a,[b])}FC(a,b,c){let d,e;a=null==(d=Zh(this,a,!0))?void 0:null==(e=d.get(b.Nc()+b.na()))?void 0:e.get(olympe.dc.Za(c));return!(null==a||!a.Cc())}bz(a,b){a=Zh(this,a,!0);if(!a)return[];a=[a.tag()];for(const c of b){b=[];for(const d of a)if(a=Zh(this,d,!0).get(c.Nc()+c.na()),void 0!==a)for(const e of a.values())e.Cc()&&b.push(e.tag());a=b}return a}se(a,b){var c=Zh(this,a,!0);return c?(c=c.get(b.Nc()+b.na()))&&1<c.size?(this.W.warn(`Relation ${b.na()} to instance ${a} is not unique: found ${c.size} related items`),
|
|
1181
|
+
null):(a=c?c.values().next().value:null)&&a.Cc()?a.tag():null:null}Ap(a,b,c){a=olympe.dc.Za(a);const d=ri(this,a,b);d.delete(a);return c?(c=olympe.dc.Za(c),d.has(c)?Array.from(ri(this,c,b.Vd()).keys()).filter(e=>d.has(e)):[]):Array.from(d.keys())}qK(a,b,c){if(!this.Cc(a))return null;b=ri(this,a,b);const d=[olympe.dc.Za(a)];for(const e of d){if(c(e))return e;if(a=b.get(e))for(const f of a.filter(g=>!d.includes(g)))d.push(f)}return null}Jy(a,b,c){return this.bz(a,b).find(c)||null}NS(a,b,c){return this.bz(a,
|
|
1182
|
+
b).filter(c)}Jv(a,b=olympe.dc.CloudObject){var c=Zh(this,a,!0);const d=b&&Zh(this,b,!0),e=[c];for(;c&&c!==d;){c=c.Rl();if(e.includes(c))throw Error(`Cycle detected when following recursively extend relations from base model instance "${a}".`);if(c&&!c.Cc())throw a=`Try to get all extensions of the model ${olympe.dc.Za(a)} but one of them does not exists (${c.tag()})`,Error(a);null!==c&&e.push(c)}c=Zh(this,olympe.dc.CloudObject,!0);if(d!==c&&e[e.length-1]===c)throw Error(`The model "${this.name(a)}" (tag = ${a}) does not extend the expected model "${this.name(b)}" (tag = ${b}).`);
|
|
1183
|
+
return e.map(f=>f.tag())}zt(a,b){const c=olympe.dc.Za(b);return!!this.qK(a,olympe.dc.CloudObject.extendRel,d=>d===c)}mj(a){return this.uc(a,olympe.dc.CloudObject.instancesRel)}};olympe.dc.od.prototype.getInstances=olympe.dc.od.prototype.mj;olympe.dc.od.prototype.isExtending=olympe.dc.od.prototype.zt;olympe.dc.od.prototype.getExtendedModels=olympe.dc.od.prototype.Jv;olympe.dc.od.prototype.findAllRelated=olympe.dc.od.prototype.NS;olympe.dc.od.prototype.findRelated=olympe.dc.od.prototype.Jy;
|
|
1184
1184
|
olympe.dc.od.prototype.findRecursive=olympe.dc.od.prototype.qK;olympe.dc.od.prototype.getRecursiveRelated=olympe.dc.od.prototype.Ap;olympe.dc.od.prototype.getUniqueRelated=olympe.dc.od.prototype.se;olympe.dc.od.prototype.getMultiRelated=olympe.dc.od.prototype.bz;olympe.dc.od.prototype.isRelated=olympe.dc.od.prototype.FC;olympe.dc.od.prototype.getRelated=olympe.dc.od.prototype.uc;olympe.dc.od.prototype.getProperties=olympe.dc.od.prototype.he;olympe.dc.od.prototype.getProperty=olympe.dc.od.prototype.Dc;
|
|
1185
1185
|
olympe.dc.od.prototype.isPersisted=olympe.dc.od.prototype.Fp;olympe.dc.od.prototype.instanceOf=olympe.dc.od.prototype.ag;olympe.dc.od.prototype.isModel=olympe.dc.od.prototype.Vv;olympe.dc.od.prototype.extension=olympe.dc.od.prototype.Rl;olympe.dc.od.prototype.model=olympe.dc.od.prototype.model;olympe.dc.od.prototype.name=olympe.dc.od.prototype.name;olympe.dc.od.prototype.exist=olympe.dc.od.prototype.Cc;const ti=olympe.dc.db.Database.C.ORIGIN,Eh=olympe.dc.db.Database.C.DESTINATION,Dh=olympe.dc.db.Database.C.Yz,ui=olympe.dc.db.Database.C.Uu,vi=olympe.dc.db.Database.C.BF,wi=olympe.dc.db.Database.C.oE,xi=ti+Eh,yi=ui+ui,zi=Array.from(Object.values(olympe.dc.ef)).filter(a=>null!==a);function Bh(a,b,c){let d=a.C.get(b);void 0===d&&(d=[],a.C.set(b,d));a.F.push([b,d.length]);d.push(c)}
|
|
1186
1186
|
function Fh(a){const b=a.R;a.Y.forEach((c,d)=>{var e=b.get(d);if(c.T()||c.Sn()){var f=e.get(wi);f&&Ai(a,f,c.T(),d);c.Sn()&&a.T.add(d)}for(const [n,p]of c.he()){var g=n[0]===Dh,k=g?n.substring(1):n;f=a;var l=e,m=p;const r=l.get(wi+ui+k);r&&Ai(f,r,m,g);(l=l.get(wi+yi))&&Ai(f,l,k,m,g)}for(const n of c.ec())Bi(a,e,...n);(e=c.la)&&Ci(a,b.get(e),c.Ib,!c.Sn(),d)});a.Y.clear();a.O.clear();Di(a)}function Ch(a,b){let c=a.Y.get(b);void 0===c&&(c=new olympe.dc.db.Yo(b),a.Y.set(b,c));return c}
|
|
@@ -1189,8 +1189,8 @@ function Ei(a,b,c){const d=b+c;let e=a.O.get(d);if(!e){const f=a.R.get(b);e=new
|
|
|
1189
1189
|
olympe.dc.db.pn=class{constructor(a,b,c,d){this.W=a;this.C=b;this.F=new Set;this.mode=c;this.delay=d;this.O=!1;c!==olympe.dc.db.pn.C.tA&&this.init()}run(){const a=this.C;this.W.debug('Start garbage collector with',this.F.size,'instances to check');for(const b of this.F){const c=a.get(b);!c||0<c.c||(this.W.debug('Remove unused instance',b,'from database'),a.ec(b))}this.F.clear();this.O=!1}init(){const a=olympe.dc.db.Database.Event.jJ,b=olympe.dc.db.Database.Event.GF,c=olympe.dc.db.Database.Event.iI,
|
|
1190
1190
|
d=olympe.dc.db.Database.F.IDLE,e=f=>{this.F.add(f);this.C.getState()===d&&Gh(this)};this.C.addEventListener(olympe.dc.db.Database.Event.RB,e.bind(this));this.C.addEventListener(b,e.bind(this));this.C.addEventListener(a,f=>{this.F.delete(f)});this.C.addEventListener(c,(f,...g)=>{this.W.error(g[0])})}};olympe.dc.db.pn.C={tA:0,sR:1,JD:2};olympe.dc.db.pn.F=5E3;olympe.dc.db.nh=class a{constructor(b){this.id=null!=b?b:olympe.xa.Wq();this.C=new Map}toJSON(){let b='{ "id": '+JSON.stringify(this.id)+', "instances": {';for(const c of this.C.keys()){const d=this.C.get(c);b+=JSON.stringify(c)+': '+d.toJSON()+', '}b.endsWith(', ')&&(b=b.substring(0,b.length-2));return b+'}}'}static Jg(b){var c;'string'===typeof b?c=JSON.parse(b):c=b;b=new olympe.dc.db.nh(c.id);c=c.instances;for(const d of Object.keys(c)){const e=olympe.dc.db.Yo.Jg(c[d]);b.C.set(d,e)}return b}sa(){return this.id}Oj(b){const c=
|
|
1191
1191
|
olympe.dc.db.Yo.C.jB,d=olympe.dc.db.Yo.C.Fg,e=olympe.dc.db.Yo.C.wy;this.C.forEach((f,g)=>{const k=f.zh();switch(f.getState()){case c:const l=f.Ie();if(null===l)throw Error(`GraphPatch: try to create the instance ${g} with no source`);const m=f.$()?f.he():void 0;b.Pf(g,l,m,k);break;case e:f.$()&&b.ji(g,f.he(),k);break;case d:b.F(g,f.ba(),k)}for(const [l,m,n]of f.Tj())f=this.C.get(m),n?b.Sb(l,g,m,k,f.zh()):b.Qf(l,g,m,k,f.zh())})}Rk(){return 0===this.C.size}bd(){let b=0;this.C.forEach(c=>{b+=c.bd()});
|
|
1192
|
-
return b}Pf(b,c,d,e=null){c=this.O(b).create(c);'string'===typeof e&&this.Sb(olympe.dc.lg.vi,b,e,e,null);d&&c.Fy(d)}ji(b,c,d=null){c&&this.O(b,d).Fy(c)}F(b,c=olympe.dc.ef.NONE,d=null){const e=this.C.get(b);if(e&&e.T())this.R(b,c);else{this.O(b,d).delete(c);for(const f of this.Wy(b,c,!1))this.C.get(f).he().clear(),this.V(f,!0)}}Sb(b,c,d,e=null,f=null){this.O(c,e)
|
|
1193
|
-
c.model(b),e=c.source(b),f=c.he(b,!0);oi(c,b).forEach((g,k)=>{f.set(`${olympe.dc.wq.Kh}${k}`,g)});this.Pf(b,e,f,d);(c=c.Rl(b))&&this.Sb(olympe.dc.lg.js,b,c);f.forEach(g=>{g instanceof olympe.dc.Nf&&this.aa(g.na())})}}mj(){return function*(b){for(const c of b.values())if(c.T()||c.Sn()||c.$())yield c}(this.C)}km(b){return this.C.get(olympe.dc
|
|
1192
|
+
return b}Pf(b,c,d,e=null){c=this.O(b).create(c);'string'===typeof e&&this.Sb(olympe.dc.lg.vi,b,e,e,null);d&&c.Fy(d)}ji(b,c,d=null){c&&this.O(b,d).Fy(c)}F(b,c=olympe.dc.ef.NONE,d=null){const e=this.C.get(b);if(e&&e.T())this.R(b,c);else{this.O(b,d).delete(c);for(const f of this.Wy(b,c,!1))this.C.get(f).he().clear(),this.V(f,!0)}}Sb(b,c,d,e=null,f=null){this.O(c,e).$a(b,d);this.O(d,f).La(b,c)}Qf(b,c,d,e=null,f=null){this.O(c,e).Fa(b,d);this.O(d,f).zb(b,c)}aa(b){var c=olympe.dc.Hb();if(c.Cc(b)){const d=
|
|
1193
|
+
c.model(b),e=c.source(b),f=c.he(b,!0);oi(c,b).forEach((g,k)=>{f.set(`${olympe.dc.wq.Kh}${k}`,g)});this.Pf(b,e,f,d);(c=c.Rl(b))&&this.Sb(olympe.dc.lg.js,b,c);f.forEach(g=>{g instanceof olympe.dc.Nf&&this.aa(g.na())})}}mj(){return function*(b){for(const c of b.values())if(c.T()||c.Sn()||c.$())yield c}(this.C)}km(b){return this.C.get(olympe.dc.Za(b))||null}R(b,c=olympe.dc.ef.NONE){b=this.Wy(b,c);for(const d of b)this.V(d,!1),this.C.delete(d)}Tj(){return function*(b){for(var c=b.next();!c.done;){c=c.value;
|
|
1194
1194
|
const d=c.tag();yield*c.Tj((e,f,g)=>[e,d,f,g]);c=b.next()}}(this.C.values())}Ap(b,c,d=(e,f)=>[e,f]){return this.ba(b,c,d)}*ba(b,c,d,e=[]){e.push(b);b=this.km(b);for(const [f,g]of b.uc(c))e.includes(f)||(yield*this.ba(f,c,d,e),yield d(f,g))}T(b,c,d){const e=this.C.get(c),f=this.C.get(d);e&&e.aa(b,olympe.dc.Nb.DESTINATION,d);f&&f.aa(b,olympe.dc.Nb.ORIGIN,c)}clone(){const b=new a(this.id);this.C.forEach((c,d)=>{b.C.set(d,c.clone())});return b}V(b,c){const d=olympe.dc.Nb.ORIGIN,e=olympe.dc.Nb.DESTINATION,
|
|
1195
1195
|
f=this.C.get(b);for(const [k,l,m]of f.Tj())if(m||!c){f.aa(k,e,l);var g=this.C.get(l);g&&g.aa(k,d,b)}for(const [k,l,m]of f.Ja())if(m||!c)f.aa(k,d,l),(g=this.C.get(l))&&g.aa(k,e,b)}Wy(b,c,d=!0){const e=olympe.dm.Relation.C.wB,f=olympe.dm.Relation.C.QB,g=olympe.dc.Nb.ORIGIN,k=olympe.dc.Hb();b=new Set([b]);const l=new Set;for(const n of b){var m=this.C.get(n);if(void 0!==m){for(const [p,r,t]of m.Tj())t&&pi(k,p,c)&f?b.add(r):d||t||l.add(`${n}.${p}.${r}`);for(const [p,r,t]of m.Ja())t&&pi(k,p,c)&e?b.add(r):
|
|
1196
1196
|
d||t||l.add(`${r}.${p}.${n}`)}for(const [p,r,t]of qi(k,n))m=r===g?e:f,!l.has(r===g?`${t}.${p}.${n}`:`${n}.${p}.${t}`)&&pi(k,p,c)&m&&b.add(t)}return Array.from(b).filter(n=>this.C.has(n))}O(b,c){let d=this.C.get(b);void 0===d&&(d=new olympe.dc.db.Yo(b),this.C.set(b,d));return c?d.eb(c):d}};olympe.dc.db.nh.Ca=[olympe.dc.jv,olympe.dc.MQ];const Mh=olympe.dc.db.Database.Event,Fi=olympe.dc.db.Database.C.Uu,Ih=olympe.dc.db.Database.C.HO,Hh=olympe.dc.db.Database.C.Kh,Gi=olympe.dc.db.Database.C.Yz,Hi=olympe.dc.db.Database.C.oE,Ii=olympe.dc.Nb.ORIGIN,Ji=olympe.dc.Nb.DESTINATION,Ki=olympe.dc.lg.vi,Li=olympe.dc.lg.js;function jh(a,b,c=!1){const d=a.get(Hh+b);return c||void 0!==d?d:a.get(Ih+b)}
|
|
@@ -1210,10 +1210,10 @@ this.F.Ec)}};olympe.dc.db.Yo=class a{constructor(b){this.Ba=b;this.R=this.V=null
|
|
|
1210
1210
|
', '}b.endsWith(', ')&&(b=b.substring(0,b.length-2));b+='}'}if(this.C){b+=', "relations": {';for(const d of this.C.keys()){c=this.C.get(d);b+=JSON.stringify(d)+': {';for(const e of c.keys())b+=JSON.stringify(e)+': '+JSON.stringify(c.get(e))+', ';b.endsWith(', ')&&(b=b.substring(0,b.length-2));b+='}, '}b.endsWith(', ')&&(b=b.substring(0,b.length-2));b+='}'}return b+'}'}static Jg(b){var c;'string'===typeof b?c=JSON.parse(b):c=b;b=new olympe.dc.db.Yo(c.tag);b.R=c.model;b.V=c.src;b.F=c.state;const d=
|
|
1211
1211
|
c.properties;if(d){b.properties=new Map;for(var e of Object.keys(d)){const f=d[e],g=f.type;let k=f;g&&('reference'===g?k=olympe.dc.Nf.Jg(f):k=olympe.j.Jg(f));null!==k&&void 0!==k&&b.properties.set(e,k)}}if(c=c.relations){b.C=new Map;for(const f of Object.keys(c)){e=new Map;for(const g of Object.keys(c[f]))e.set(g,c[f][g]);b.C.set(f,e)}}return b}tag(){return this.Ba}zh(){return this.R}Ie(){return this.V}getState(){return this.F}eb(b){if(null===this.R)this.R=b;else if(this.R!==b)throw Error(`Try to set a model relation with another model ${b} than the one set initially ${this.R}`);
|
|
1212
1212
|
return this}ba(){return this.F===a.C.Fg?this.Rf:olympe.dc.ef.NONE}create(b){this.F=a.C.jB;this.V=null!=b?b:null;return this}delete(b=olympe.dc.ef.NONE){this.F=a.C.Fg;this.Rf=b;this.properties=null;return this}ca(b,c){if(this.F===a.C.Fg)return this;this.properties||(this.properties=new Map);this.properties.set(b,c);return this}Fy(b){this.F!==a.C.Fg&&(this.properties||(this.properties=new Map),b.forEach((c,d)=>{this.properties.set(d,c)}))}jc(b,c){if(null!==this.la&&this.la!==b)throw Error('An instance should never be set as complex property of multiple instances');
|
|
1213
|
-
this.la=b;this.Ib=c}vb(b){let c;null==(c=this.properties)||c.delete(b);0===this.properties.size&&(this.properties=null)}
|
|
1214
|
-
b.get(d)}aa(b,c,d){const e=(c=c===olympe.dc.Nb.ORIGIN?this.O:this.C)&&c.get(b);e&&e.delete(d);e&&0===e.size&&c.delete(b)}T(){return this.F===a.C.jB}Sn(){return this.F===a.C.Fg}bd(){let b=this.properties?this.properties.size:0;this.C&&this.C.forEach(c=>{b+=c.size});return b}clone(){const b=new a(this.Ba);b.F=this.F;b.R=this.R;b.V=this.V;this.properties&&b.Fy(this.properties);for(const [c,d,e]of this.Tj())e?b
|
|
1213
|
+
this.la=b;this.Ib=c}vb(b){let c;null==(c=this.properties)||c.delete(b);0===this.properties.size&&(this.properties=null)}$a(b,c){null===this.C&&(this.C=new Map);b===olympe.dc.lg.vi&&this.eb(c);this.ob(this.C,b,c,!0)}Fa(b,c){null===this.C&&(this.C=new Map);b===olympe.dc.lg.vi&&this.eb(c);this.ob(this.C,b,c,!1)}La(b,c){null===this.O&&(this.O=new Map);this.ob(this.O,b,c,!0)}zb(b,c){null===this.O&&(this.O=new Map);this.ob(this.O,b,c,!1)}kc(b,c,d){if(c=c===olympe.dc.Nb.ORIGIN?this.O:this.C)return(b=c.get(b))&&
|
|
1214
|
+
b.get(d)}aa(b,c,d){const e=(c=c===olympe.dc.Nb.ORIGIN?this.O:this.C)&&c.get(b);e&&e.delete(d);e&&0===e.size&&c.delete(b)}T(){return this.F===a.C.jB}Sn(){return this.F===a.C.Fg}bd(){let b=this.properties?this.properties.size:0;this.C&&this.C.forEach(c=>{b+=c.size});return b}clone(){const b=new a(this.Ba);b.F=this.F;b.R=this.R;b.V=this.V;this.properties&&b.Fy(this.properties);for(const [c,d,e]of this.Tj())e?b.$a(c,d):b.Fa(c,d);for(const [c,d,e]of this.Ja())e?b.La(c,d):b.zb(c,d);return b}$(){return null!==
|
|
1215
1215
|
this.properties}he(){let b;return null!=(b=this.properties)?b:new Map}Dc(b){if(this.properties)return this.properties.get(b)}uc(b,c=(d,e)=>[d,e]){return function*(d){if(d=d&&d.get(b.na()))for(const [e,f]of d)yield c(e,f)}(b.Nc()===olympe.dc.Nb.ORIGIN?this.O:this.C)}se(b){const c=b.Nc()===olympe.dc.Nb.ORIGIN?this.O:this.C;return(b=c&&c.get(b.na()))&&0!==b.size?Array.from(b.keys())[0]:null}Tj(b=(c,d,e)=>[c,d,e]){return this.Mb(this.C,b)}Ja(b=(c,d,e)=>[c,d,e]){return this.Mb(this.O,b)}ec(b=(c,d,e,f)=>
|
|
1216
|
-
[c,d,e,f]){const c=olympe.dc.Nb.ORIGIN,d=olympe.dc.Nb.DESTINATION;return function*(e,f,g){yield*e(f,(k,l,m)=>b(k,d,l,m));yield*e(g,(k,l,m)=>b(k,c,l,m))}(this.Mb.bind(this),this.C,this.O)}ob(b,c,d,e){if(this.F!==a.C.Fg||!e){var f=b.get(c);if(void 0===f)f=new Map,b.set(c,f);else if(b=f.get(d),void 0!==b&&b!==e){f.delete(d);return}f.set(d,e)}}*Mb(b,c){if(null!==b)for(const [d,e]of b){b=e.entries();for(const [f,g]of b)yield c(d,f,g)}}};olympe.dc.db.Yo.C={jB:0,wy:1,Fg:2};olympe.dc.db.qQ=class{constructor(a,b,c,d){this.W=a;this.view=b;this.C=c;d&&this.init()}debug(a){const b=olympe.dc
|
|
1216
|
+
[c,d,e,f]){const c=olympe.dc.Nb.ORIGIN,d=olympe.dc.Nb.DESTINATION;return function*(e,f,g){yield*e(f,(k,l,m)=>b(k,d,l,m));yield*e(g,(k,l,m)=>b(k,c,l,m))}(this.Mb.bind(this),this.C,this.O)}ob(b,c,d,e){if(this.F!==a.C.Fg||!e){var f=b.get(c);if(void 0===f)f=new Map,b.set(c,f);else if(b=f.get(d),void 0!==b&&b!==e){f.delete(d);return}f.set(d,e)}}*Mb(b,c){if(null!==b)for(const [d,e]of b){b=e.entries();for(const [f,g]of b)yield c(d,f,g)}}};olympe.dc.db.Yo.C={jB:0,wy:1,Fg:2};olympe.dc.db.qQ=class{constructor(a,b,c,d){this.W=a;this.view=b;this.C=c;d&&this.init()}debug(a){const b=olympe.dc.Za(a);if(this.C.has(b)){var c=this.C.get(a);a='\n[DEBUG - DATABASE]\n'+c.toString();if(!c.Cc()){const d=[];for(;null!==c&&!d.includes(c.tag());)d.push(c.tag()),c=c.model();c=this.C.get(d[d.length-1]);const e=olympe.dc.db.Database.C.Uu+olympe.dc.CloudObject.nameProp.na();d.push('???');a+='\n\nThe instance <<'+b+'>> does not exists because the instance '+c.tag()+' (name: '+c.get(e)+') has no model.\nList: '+
|
|
1217
1217
|
d.join(' --M--\x3e ')}this.W.info(a)}else this.W.info('[DATABASE] Instance',b,'has never been created or referred by the database')}init(){const a=olympe.dc.db.Database.Event.TE,b=olympe.dc.db.Database.Event.yA,c=olympe.dc.db.Database.Event.Fg,d=olympe.dc.db.Database.Event.$x,e=olympe.dc.db.Database.Event.uB,f=olympe.dc.db.Database.Event.pE,g=olympe.dc.db.Database.Event.qE,k=()=>{};this.C.addEventListener(olympe.dc.db.Database.Event.SE,()=>{});this.C.addEventListener(a,()=>{});this.C.addEventListener(b,
|
|
1218
1218
|
l=>{this.C.Ja(()=>{ji(this.view,l,k,`monitorRelations${l}`)})});this.C.addEventListener(c,l=>{this.C.Ja(()=>{ki(this.view,l,`monitorRelations${l}`)})});this.C.addEventListener(d,()=>{});this.C.addEventListener(e,()=>{});this.C.addEventListener(f,()=>{});this.C.addEventListener(g,()=>{})}};olympe.dc.db.TJ=class{constructor(a,b,c,d,e){this.W=a;this.C=b;this.Hb=c;this.O=d;this.R=e}write(a){if(this.O){const b=new Si(this.Hb);a.Oj(b);this.W.info(b.flush())}this.C.Gc();a.Oj(this);this.C.Ib()}Pf(a,b,c){this.C.create(a,b,c,this.R)}ji(a,b){this.C.update(a,b)}F(a,b=olympe.dc.ef.NONE){for(const c of ih(this.Hb,a,b))this.C.Ba(c)}Sb(a,b,c){this.C.kc(a,b,c)}Qf(a,b,c){this.C.jc(a,b,c)}};
|
|
1219
1219
|
function Ti(a,b,c){if(!b)return'';let d='';if(c&&1<c)return'...';for(const [e,f]of b)if(d+=(d?', "':'"')+e+'":',!f)d+=JSON.stringify(f);else if(f instanceof olympe.dc.Nf||f instanceof olympe.dc.CloudObject)d+='Reference("'+f.na()+'")';else if(f instanceof olympe.j.Color)d+='Color("'+f.Pk()+','+f.Nk()+','+f.Bk()+','+f.Ul()+'")';else if(f.constructor&&Object.prototype.hasOwnProperty.call(f.constructor.prototype,'toString'))d+=JSON.stringify(f.toString());else if('object'===typeof f){let g;d+=Ti(a,f,
|
|
@@ -1223,7 +1223,7 @@ Vi(this,a))}}olympe.dc.db.TJ.Ca=[olympe.dc.jv,olympe.dc.jv];olympe.dc.db.ga={Vb:
|
|
|
1223
1223
|
olympe.va.qe(function(a){B(a,olympe.dc.db.qa.jF,olympe.dc.db.pn.C.JD);B(a,olympe.dc.db.qa.kF,5E3);B(a,olympe.dc.db.qa.Pu,!1);B(a,olympe.dc.db.qa.JE,!1);A(a,olympe.dc.db.ga.Vb,[olympe.tb.ga.Zb],b=>b.Vg('db'));A(a,olympe.dc.db.ga.FA,[olympe.tb.ga.Zb],b=>b.Vg('gc'));A(a,olympe.dc.db.ga.ix,[olympe.dc.db.ga.Vb,olympe.dc.db.ga.FA,new olympe.va.Ab(olympe.dc.qa.Jq),new olympe.va.Ab(olympe.dc.db.qa.jF),new olympe.va.Ab(olympe.dc.db.qa.kF),new olympe.va.Ab(olympe.dc.qa.Ms),new olympe.va.Ab(olympe.dc.db.qa.JE)],
|
|
1224
1224
|
(b,c,d,e,f,g,k)=>{e=g?olympe.dc.db.pn.C.tA:e;d=(new Map).set('selfTag',d).set('garbageCollector',e).set('garbageCollectorDelay',f).set('debug',k);return new olympe.dc.db.Database(b,c,d)});z(a,olympe.dc.db.ga.pA,olympe.dc.od,olympe.dc.db.ga.Vb,olympe.dc.db.ga.ix);A(a,olympe.dc.db.ga.Pu,[olympe.dc.db.ga.Zb],b=>b.LU);z(a,olympe.dc.db.ga.Zb,olympe.dc.db.UN,olympe.dc.db.ga.Vb,olympe.dc.db.ga.ix,olympe.dc.db.ga.pA,new olympe.va.Ab(olympe.dc.qa.Fo),new olympe.va.Ab(olympe.dc.db.qa.Pu))},'olympe.dc.db');
|
|
1225
1225
|
olympe.va.run([olympe.dc.db.ga.ix,olympe.dc.db.ga.Pu],(a,b)=>{olympe.Vy().db=a;olympe.Vy().dbMonitor=b},'DC.DB debug service injection');olympe.dc.query={};function Wi(a){return(b,c)=>{const d=null===b,e=null===c;return d||e?d&&e?0:d?1:-1:a(b,c)}}
|
|
1226
|
-
olympe.dc.query.gn=class{constructor(a,b,c){this.db=olympe.dc.Hb();this.C=a;this.Ec=b;this.Mu=c}hb(){return{p:this.Ec.na(),o:this.Mu}}toString(){return'sortByQueryPart-'+this.Mu+this.Ec.na()}Zq(){const a=this.db.se(this.Ec,olympe.dm.Property.typeRel),b=olympe.dc
|
|
1226
|
+
olympe.dc.query.gn=class{constructor(a,b,c){this.db=olympe.dc.Hb();this.C=a;this.Ec=b;this.Mu=c}hb(){return{p:this.Ec.na(),o:this.Mu}}toString(){return'sortByQueryPart-'+this.Mu+this.Ec.na()}Zq(){const a=this.db.se(this.Ec,olympe.dm.Property.typeRel),b=olympe.dc.Za;if(a===b(olympe.dm.String))return Wi((c,d)=>c.localeCompare(d));if(a===b(olympe.dm.Number)||a===b(olympe.dm.Boolean))return Wi((c,d)=>c-d);if(a===b(olympe.dm.DateTime))return Wi((c,d)=>c.getTime()-d.getTime());olympe.tb.Gb('dc.query').warn(`No comparator found for type with tag ${a}`);
|
|
1227
1227
|
return Wi(()=>-1)}Dc(){return this.Ec}};function Xi(a,b){return new olympe.dc.query.Wi((new olympe.dc.transaction.Rx(b)).C(a),b)}olympe.dc.query.Wi=class{constructor(a,b){this.C=a;this.source=b}static kC(a){return new olympe.dc.query.Wi(new olympe.dc.db.nh(`DataResult_${a.sa()}`),a.Ie())}create(a,b,c){this.C.Pf(a,this.source,c,b);return this}Sb(a,b,c){this.C.Sb(a,b,c,null,null);return this}Yh(){return this.C}hb(){const a=new olympe.dc.transaction.Cq;this.C.Oj(a);return{s:this.source,p:Yi(a)}}};
|
|
1228
1228
|
olympe.dc.query.Wi.prototype.createRelation=olympe.dc.query.Wi.prototype.Sb;olympe.dc.query.Wi.prototype.create=olympe.dc.query.Wi.prototype.create;olympe.dc.query.Wi.fromQuery=olympe.dc.query.Wi.kC;olympe.dc.jk=class{na(){}};olympe.dc.jk.prototype.getTag=olympe.dc.jk.prototype.na;olympe.dc.LX=olympe.dc.jk;function Zi(a){let b;if(null==(b=a.C)?0:b.Rk())if(a=a.R,!a.T){let c;null==(c=a.V)||c.call(a)}}function $i(a,b,c){if(a.db.source(b)===a.source){var d=`${a.O}:${b}:notif`;Pg(a.db,b,(e,f)=>{if(e){Zi(a);let g;null==(g=a.C)||g.aa(f)}else if(c&&fi(a.db,f,d),!a.db.Cc(f)){Zi(a);let g;null==(g=a.C)||g.F(f,olympe.dc.ef.NONE)}},d);c&&ei(a.db,b,(e,f,g)=>{Zi(a);let k;g||null!=(k=a.C)&&k.ji(b,new Map([[e,f]]))},d)}}function aj(a,b,c,d,e){Zi(a);let f,g;b?null==(f=a.C)||f.Sb(c,d,e):null==(g=a.C)||g.Qf(c,d,e)}
|
|
1229
1229
|
olympe.dc.query.wQ=class{constructor(a,b,c,d){this.W=a;this.source=b;this.O=c;this.R=d;this.C=this.F=null;this.db=olympe.dc.Hb()}stop(a){Og(this.db,a,`${this.O}:${a}:notif`)}};olympe.dc.query.Sx={ASC:'ASC',DESC:'DESC'};function bj(a){const b=cj(a.query),c=new Map;for(let e=b.length;0<=e;e--){const f=0<e?b[e-1].sa():a.O,g=0<e?b[e-1].C:'root',k=0<e&&b[e-1].T(),l=a.C.get(f),m=new Set(l.mj()),n=new Map,p=a.R.has(f);let r=p?';':'';if(c.has(f)){const [t,u,v]=c.get(f);c.delete(f);r+=v;t.forEach((w,x)=>{for(const y of l.C(x)){let C;n.set(y,Array.from(w).map(G=>p?`${x};${G}`:G).reduce((G,E)=>G.add(E),null!=(C=n.get(y))?C:new Set))}m.delete(x)});u&&m.forEach(w=>{const x=p?`${w};${v}`:v;for(const y of l.C(w)){let C;n.set(y,
|
|
@@ -1237,13 +1237,13 @@ this.C.get(b);if(null==b||!b.has(a))return!0;b.remove(a,c)&&fj(this);if(!b.has(a
|
|
|
1237
1237
|
a.s,olympe.dc.Hb(),a.c);case e:return new olympe.dc.query.Da.Iu(olympe.dc.Hb(),a.p,a.b,a.l,a.s);case f:return new olympe.dc.query.Da.Lj(nj(a.v));case g:return new olympe.dc.query.Da.An(a.p,new RegExp(a.r),olympe.dc.Hb(),a.c);case l:return new olympe.dc.query.Da.rk(...a.p.map(m=>nj(m)));case k:return new olympe.dc.query.Da.ki(...a.p.map(m=>nj(m)));default:return null}}
|
|
1238
1238
|
olympe.dc.query.fc=class{observe(){}wd(){}compile(){return[[this]]}ne(){return new olympe.dc.query.Da.Lj(this)}he(){}Ig(){}clear(){}hb(){}Wg(){}toString(){}Yb(a){return this===a}static vU(...a){return new olympe.dc.query.Da.LB(a)}static Yb(a,b){return new olympe.dc.query.Da.hk(a,b,olympe.dc.Hb())}static contains(a,b,c=!0){return new olympe.dc.query.Da.jn(a,b,olympe.dc.Hb(),c)}static gV(a,b,c=!0){return new olympe.dc.query.Da.An(a,b,olympe.dc.Hb(),c)}static nz(a,b,c=!0){return new olympe.dc.query.Da.Iu(olympe.dc.Hb(),
|
|
1239
1239
|
a,b,!1,c)}static Kw(a,b,c=!0){return new olympe.dc.query.Da.Iu(olympe.dc.Hb(),a,b,!0,c)}static and(...a){return new olympe.dc.query.Da.ki(...a)}static or(...a){return new olympe.dc.query.Da.rk(...a)}static ne(a){return new olympe.dc.query.Da.Lj(a)}};olympe.dc.query.fc.not=olympe.dc.query.fc.ne;olympe.dc.query.fc.or=olympe.dc.query.fc.or;olympe.dc.query.fc.and=olympe.dc.query.fc.and;olympe.dc.query.fc.smallerThan=olympe.dc.query.fc.Kw;olympe.dc.query.fc.greaterThan=olympe.dc.query.fc.nz;
|
|
1240
|
-
olympe.dc.query.fc.regex=olympe.dc.query.fc.gV;olympe.dc.query.fc.contains=olympe.dc.query.fc.contains;olympe.dc.query.fc.equals=olympe.dc.query.fc.Yb;olympe.dc.query.fc['in']=olympe.dc.query.fc.vU;olympe.dc.query.fc.C={YI:0,VE:1,bx:2,DF:3,LH:4,kI:5,QH:6,HD:7};function cj(a){return Array.from(a.Pb)}function oj(a,b=a.O){return 0<=b?a.Pb[b].sa():olympe.xa.Rd(a.F)}function pj(a,b,c,d=!1){var e=olympe.dc.ef.yi;d=d?olympe.dc.yb.Mf.ep:olympe.dc.yb.Mf.fn;b=olympe.dc
|
|
1240
|
+
olympe.dc.query.fc.regex=olympe.dc.query.fc.gV;olympe.dc.query.fc.contains=olympe.dc.query.fc.contains;olympe.dc.query.fc.equals=olympe.dc.query.fc.Yb;olympe.dc.query.fc['in']=olympe.dc.query.fc.vU;olympe.dc.query.fc.C={YI:0,VE:1,bx:2,DF:3,LH:4,kI:5,QH:6,HD:7};function cj(a){return Array.from(a.Pb)}function oj(a,b=a.O){return 0<=b?a.Pb[b].sa():olympe.xa.Rd(a.F)}function pj(a,b,c,d=!1){var e=olympe.dc.ef.yi;d=d?olympe.dc.yb.Mf.ep:olympe.dc.yb.Mf.fn;b=olympe.dc.Za(b);const f=olympe.dc.nj().Tl(b);b=(new olympe.dc.yb(b,f)).Ai();b.Pb=[new olympe.dc.query.Pb.mi(oj(b),e,c)];return b.observe(a,d)}
|
|
1241
1241
|
function qj(a,b){const c=b.sa();let d=a.O+1;for(;d<a.Pb.length&&a.Pb[d].sa()!==c;)d++;b=d<a.Pb.length?a.Pb:a.Pb.concat(b);return new olympe.dc.yb(a.F,a.source,b,d,a.R,a.C)}function rj(a){const b=0===a.R.size?a.Ai():a;if(null!==b.C.ii&&!b.R.has(oj(a,b.C.ii)))throw Error('AndReturn was not called for the current level before sortBy operator');return b}
|
|
1242
|
-
olympe.dc.yb=class{constructor(a,b,c=[],d=-1,e=new Set,f={max:-1,offset:0,ii:null,ro:null}){this.db=olympe.dc.Hb();this.F=a;this.source=b;this.Pb=c;this.O=d;this.R=e;this.C=f;this.id=null}static from(a,b){a=olympe.dc
|
|
1243
|
-
a=olympe.dc
|
|
1242
|
+
olympe.dc.yb=class{constructor(a,b,c=[],d=-1,e=new Set,f={max:-1,offset:0,ii:null,ro:null}){this.db=olympe.dc.Hb();this.F=a;this.source=b;this.Pb=c;this.O=d;this.R=e;this.C=f;this.id=null}static from(a,b){a=olympe.dc.Za(a);if(!olympe.dc.CloudObject.iC(a))throw Error(`Try to create a query from an instance that does not exist (${a}). Please try to use \`Query.fromTag()\` instead.`);b=null!=b?b:olympe.dc.nj().Tl(a);b=new olympe.dc.yb(a,b);b.C.ro=olympe.dc.Hb().model(a);return b}static Tl(a,b,c){if(!olympe.dc.CloudObject.iC(b))throw Error(`Try to create a query from an instance (${a}) with an explicit datatype that does not exist (${b})`);
|
|
1243
|
+
a=olympe.dc.Za(a);c=null!=c?c:olympe.dc.nj().fromModel(b);c=new olympe.dc.yb(a,c);c.C.ro=olympe.dc.Za(b);return c}static qz(a,b=!0,c){a=olympe.dc.Za(a);c=null!=c?c:olympe.dc.nj().fromModel(a);return b?(new olympe.dc.yb(a,c)).qp(olympe.dc.CloudObject.extendedByRel,!0).Hc(olympe.dc.CloudObject.instancesRel):(new olympe.dc.yb(a,c)).Hc(olympe.dc.CloudObject.instancesRel)}static Rf(a,b,c,d,e=!1){e=e?olympe.dc.yb.Mf.ep:olympe.dc.yb.Mf.fn;b=olympe.dc.Za(b);d=null!=d?d:olympe.dc.nj().Tl(b);d=(new olympe.dc.yb(b,
|
|
1244
1244
|
d)).Ai();d.Pb=[new olympe.dc.query.Pb.mi(oj(d),c)];return d.observe(a,e)}Hc(a,b=!1){return qj(this,new olympe.dc.query.Pb.oq(oj(this),a,b))}qp(a,b=!1,c=!1){return qj(this,new olympe.dc.query.Pb.Ko(oj(this),a,b,c))}Ai(){const a=(new Set(this.R)).add(oj(this));return new olympe.dc.yb(this.F,this.source,this.Pb,this.O,a,this.C)}bd(){return this.Pb.length}filter(a){const b=Array.from(this.Pb);b[this.O]=b[this.O].filter(a);return new olympe.dc.yb(this.F,this.source,b,this.O,this.R,this.C)}wv(){return this}IC(a,
|
|
1245
1245
|
b=0){return new olympe.dc.yb(this.F,this.source,this.Pb,this.O,this.R,{ii:this.C.ii,max:a,offset:b,ro:this.C.ro})}ku(a,b=olympe.dc.query.Sx.ASC){if(0>this.O)throw Error('You are trying to sort an empty query. Please first follow at least one relation to sort a query.');const c=this.Pb[this.O],d={ii:this.O,max:this.C.max,offset:this.C.offset,ro:this.C.ro},e=Array.from(this.Pb);e[this.O]=c.sort(a,b);return new olympe.dc.yb(this.F,this.source,e,this.O,this.R,d)}Zq(){const a=this.C.ii;let b;return null!==
|
|
1246
|
-
a?null==(b=this.Pb[a])?void 0:b.Zq():null}back(a=1){if(0>this.O||1>a)return this;let b=this.O;for(let c=0;c<a;c++){const d=this.Pb[b].C;for(b--;-1<b&&oj(this,b)!==d;)b--}return new olympe.dc.yb(this.F,this.source,Array.from(this.Pb),b,this.R,this.C)}parse(){const a=new Map,b=oj(this,-1),c={limit:this.C.max,offset:this.C.offset,returned:this.R.has(b),optional:!1,inheritance:!1,next:[]};a.set(b,c);this.db.Vv(this.F)?c.dataType=olympe.dc
|
|
1246
|
+
a?null==(b=this.Pb[a])?void 0:b.Zq():null}back(a=1){if(0>this.O||1>a)return this;let b=this.O;for(let c=0;c<a;c++){const d=this.Pb[b].C;for(b--;-1<b&&oj(this,b)!==d;)b--}return new olympe.dc.yb(this.F,this.source,Array.from(this.Pb),b,this.R,this.C)}parse(){const a=new Map,b=oj(this,-1),c={limit:this.C.max,offset:this.C.offset,returned:this.R.has(b),optional:!1,inheritance:!1,next:[]};a.set(b,c);this.db.Vv(this.F)?c.dataType=olympe.dc.Za(this.F):(c.root=olympe.dc.Za(this.F),c.dataType=this.C.ro);
|
|
1247
1247
|
this.Pb.forEach((d,e)=>{const f=d.sa(),g=d.Wg();Object.assign(g,{returned:this.R.has(f),next:[]});a.set(f,g);g.sort&&this.C.ii!==e&&delete g.sort;if(1>=e&&d instanceof olympe.dc.query.Pb.oq&&d.R().Yb(olympe.dc.CloudObject.instancesRel))Object.assign(c,g);else if(0===e&&d instanceof olympe.dc.query.Pb.Ko&&d.R().Yb(olympe.dc.CloudObject.extendedByRel))Object.assign(c,g),c.inheritance=!0;else{let k;null==(k=a.get(d.C))||k.next.push(g)}});return c}wd(a,b=!1){a='function'===typeof a.O?a.O():a;b=b?olympe.dc.yb.Mf.ep:
|
|
1248
1248
|
olympe.dc.yb.Mf.sB;return olympe.dc.query.ez().executeQuery(rj(this),a,b).then(c=>{let d;return null!=(d=null==c?void 0:dj(c))?d:olympe.dc.Fc.empty()})}Sh(){return dj(sj(olympe.dc.query.ez(),rj(this)))}observe(a,b=olympe.dc.yb.Mf.fn){a='function'===typeof a.O?a.O():a;return tj(olympe.dc.query.ez(),rj(this),a,olympe.dc.Vc.SELF,b).pipe(rxjs.operators.map(c=>dj(c)),rxjs.operators.distinctUntilChanged())}sa(){null===this.id&&(this.id=olympe.xa.Rd(this.F+cj(this).map(a=>a.toString()).join()+Array.from(new Set(this.R)).sort().toString()+
|
|
1249
1249
|
this.C.ii+this.C.max+this.C.offset));return this.id}Ie(){return this.source}hb(){let a;return{b:this.F,p:this.Pb.map(b=>b.hb()),r:Array.from(this.R),s:this.source,e:{m:this.C.max,o:this.C.offset,s:this.C.ii,rm:null!=(a=this.C.ro)?a:this.db.model(this.F)}}}toString(){return`Query: ${JSON.stringify(this.hb())}`}};olympe.dc.yb.prototype.observe=olympe.dc.yb.prototype.observe;olympe.dc.yb.prototype.executeFromCache=olympe.dc.yb.prototype.Sh;olympe.dc.yb.prototype.execute=olympe.dc.yb.prototype.wd;
|
|
@@ -1276,17 +1276,17 @@ this.result;this.result=!1;return a}Pf(){}ji(a,b){if(!(this.result||!this.R&&thi
|
|
|
1276
1276
|
b,g.C)))||e&&(null==a?void 0:a.some(g=>hj(this.O,c,g.C))))}}}Qf(a,b,c){if(!this.result&&this.R&&Oj(this,a)&&this.db.FC(b,new olympe.dc.Jc.Relation(a),c)){const d=this.C.get(Hj+a);a=this.C.get(Gj+a);const e=this.O;this.result||(this.result=(null==d?void 0:d.some(f=>hj(e,b,f.C)&&hj(e,c,f.sa())))||(null==a?void 0:a.some(f=>hj(e,c,f.C)&&hj(e,b,f.sa()))))}}}olympe.dc.query.hI.Ca=[olympe.dc.jv];function Qj(a){return new olympe.dc.query.Relation(a.tag,a.direction,!0)}
|
|
1277
1277
|
olympe.dc.query.Relation=class extends olympe.dc.Jc.Relation{constructor(a,b,c){super(a,b);this.recursive=c}toJSON(){let a='{ "tag": '+JSON.stringify(this.na())+', ';a+='"direction": '+JSON.stringify(this.Nc())+', ';a+='"recursive": '+JSON.stringify(this.recursive);return a+'}'}static Jg(a){let b;'string'===typeof a?b=JSON.parse(a):b=a;return new olympe.dc.query.Relation(b.tag,b.direction,b.recursive)}static from(a,b){return new olympe.dc.query.Relation(a.na(),a.Nc(),null!=b?b:a instanceof olympe.dc.Oa.bj)}Vd(){const a=
|
|
1278
1278
|
olympe.dc.Nb.DESTINATION,b=olympe.dc.Nb.ORIGIN;return new olympe.dc.query.Relation(this.tag,this.direction===a?b:a,this.recursive)}toString(){return`${this.direction}${this.tag}${this.recursive?'-r':''}`}};olympe.dc.query.ga={Vb:'dc.query.Logger',Xu:'dc.query.QueryProcessor'};olympe.va.qe(function(a){A(a,olympe.dc.query.ga.Vb,[olympe.tb.ga.Zb],b=>b.Vg('query'));z(a,olympe.dc.query.ga.Xu,olympe.dc.query.SQ,olympe.dc.query.ga.Vb,olympe.dc.db.ga.Zb,olympe.dc.ga.Is,new olympe.va.Ab(olympe.dc.qa.Ms))});olympe.va.run([olympe.dc.query.ga.Xu],a=>{olympe.dc.query.ez=()=>a});olympe.dc.query.Da={};olympe.dc.query.Da.ki=class extends olympe.dc.query.fc{constructor(...a){super();this.Da=a}compile(){return this.Da.reduce((a,b)=>{const c=[];for(const d of b.compile()){for(const e of a)d.push(...e);c.push(d)}return c},[])}ne(){return new olympe.dc.query.Da.rk(...this.Da.map(a=>a.ne()))}he(){return this.Da.flatMap(a=>a.he())}Ig(){throw Error('Should not try to check predicate coverage on And (should be removed by compiling predicates');}wd(a){return this.Da.reduce((b,c)=>b&&c.wd(a),!0)}observe(a,
|
|
1279
|
-
b,c){const d=Array(this.Da.length).fill(!1);let e=null;const f=(g,k)=>{d[g]=k;g=d.every(l=>l);e!==g&&(e=g,c(g))};this.Da.forEach((g,k)=>{g.observe(a,olympe.xa.Rd('AND-'+b+a+k),f.bind(null,k))})}hb(){return{pr:olympe.dc.query.fc.C.HD,p:this.Da.map(a=>a.hb())}}Wg(){throw Error('toObject for AND predicate should not be called');}toString(){return'And-'+this.Da.reduce((a,b)=>a+'-'+b.toString(),'')}clear(a,b){this.Da.forEach((c,d)=>{c.clear(a,olympe.xa.Rd('AND-'+b+a+d))})}};olympe.dc.query.Da.jn=class extends olympe.dc.query.fc{constructor(a,b,c,d=!1){super();this.Ec=olympe.dc
|
|
1279
|
+
b,c){const d=Array(this.Da.length).fill(!1);let e=null;const f=(g,k)=>{d[g]=k;g=d.every(l=>l);e!==g&&(e=g,c(g))};this.Da.forEach((g,k)=>{g.observe(a,olympe.xa.Rd('AND-'+b+a+k),f.bind(null,k))})}hb(){return{pr:olympe.dc.query.fc.C.HD,p:this.Da.map(a=>a.hb())}}Wg(){throw Error('toObject for AND predicate should not be called');}toString(){return'And-'+this.Da.reduce((a,b)=>a+'-'+b.toString(),'')}clear(a,b){this.Da.forEach((c,d)=>{c.clear(a,olympe.xa.Rd('AND-'+b+a+d))})}};olympe.dc.query.Da.jn=class extends olympe.dc.query.fc{constructor(a,b,c,d=!1){super();this.Ec=olympe.dc.Za(a);this.substring=b;this.db=c;this.C=d}he(){return[this.Ec]}Ig(a,b){return a instanceof olympe.dc.query.Da.jn&&a.Ec===this.Ec?b?a.C?a.substring.toLowerCase().includes(this.substring.toLowerCase()):a.substring.includes(this.substring):this.C?this.substring.toLowerCase().includes(a.substring.toLowerCase()):this.substring.includes(a.substring):!1}Dc(){return this.Ec}wd(a){return this.apply(this.db.Dc(a,
|
|
1280
1280
|
this.Ec))}observe(a,b,c){ci(this.db,a,this.Ec,d=>{c(this.apply(d))},olympe.xa.Rd(b+a+this.toString()))}apply(a){return'string'===typeof a?this.C?a.includes(this.substring):a.toLowerCase().includes(this.substring.toLowerCase()):!1}toString(){return'Contains'+this.Ec+'-'+this.substring+'-'+this.C}clear(a,b){di(this.db,a,this.Ec,olympe.xa.Rd(b+a+this.toString()))}Wg(){return{name:'CONTAINS',property:this.Dc(),value:this.substring,caseSensitive:this.C}}hb(){return{pr:olympe.dc.query.fc.C.bx,p:this.Ec,
|
|
1281
|
-
s:this.substring,c:this.C}}};olympe.dc.query.Da.hk=class extends olympe.dc.query.fc{constructor(a,b,c){super();this.Ec=olympe.dc
|
|
1281
|
+
s:this.substring,c:this.C}}};olympe.dc.query.Da.hk=class extends olympe.dc.query.fc{constructor(a,b,c){super();this.Ec=olympe.dc.Za(a);this.C=null!=b?b:null;this.db=c}he(){return[this.Ec]}Ig(a){if(a instanceof olympe.dc.query.Da.hk&&this.Ec===a.Ec)if('object'===typeof this.C&&null!==this.C){if(this.C instanceof olympe.dc.CloudObject)return this.C.Yb(a.C);if(this.C instanceof Date)return a.C instanceof Date&&this.C.getTime()===a.C.getTime();if(this.C instanceof olympe.j.Color)return this.C.Yb(a.C)}else return this.C===a.C;return!1}wd(a){return this.apply(this.db.Dc(a,
|
|
1282
1282
|
this.Ec))}observe(a,b,c){ci(this.db,a,this.Ec,d=>{c(this.apply(d))},olympe.xa.Rd(b+a+this.toString()));null===this.C&&null===this.db.Dc(a,this.Ec)&&c(!0)}clear(a,b){di(this.db,a,this.Ec,olympe.xa.Rd(b+a+this.toString()))}apply(a){return'object'===typeof a&&null!==a?a instanceof olympe.dc.CloudObject?a.Yb(this.C):a instanceof Date?this.C instanceof Date&&this.C.getTime()===a.getTime():a instanceof olympe.j.Color?a.Yb(this.C):!1:a===this.C}toString(){let a,b;const c=null!=(b=null==(a=this.C)?void 0:
|
|
1283
1283
|
a.toString())?b:'null';return'Equals-'+this.Ec+'-'+c}Wg(){return{name:'EQUALS',property:this.Ec,value:this.C}}hb(){let a=1,b=this.C;switch(!0){case this.C instanceof Date:a=2;b=this.C.toJSON();break;case this.C instanceof olympe.dc.CloudObject:a=3;b=this.C.na();break;case this.C instanceof olympe.j.Color:a=4,b={r:this.C.Pk().valueOf(),g:this.C.Nk().valueOf(),b:this.C.Bk().valueOf(),a:this.C.Ul().valueOf()}}return{pr:olympe.dc.query.fc.C.VE,p:this.Ec,t:a,v:b}}};function Rj(a,b,c){return null===b?!1:null===c?!0:a.O?a.F?b<c:b>c:a.F?b<=c:b>=c}function Sj(a,b){return'number'===typeof a.C?a.C:a.db.Dc(b,a.C)}function Tj(a,b,c){return olympe.xa.Rd(c+b+a.C+a.Ec)}
|
|
1284
|
-
olympe.dc.query.Da.Iu=class extends olympe.dc.query.fc{constructor(a,b,c,d=!0,e=!0){super();this.db=a;this.Ec=olympe.dc
|
|
1284
|
+
olympe.dc.query.Da.Iu=class extends olympe.dc.query.fc{constructor(a,b,c,d=!0,e=!0){super();this.db=a;this.Ec=olympe.dc.Za(b);this.C='number'===typeof c?c:olympe.dc.Za(c);this.F=d;this.O=e}ne(){return new olympe.dc.query.Da.Iu(this.db,this.Ec,this.C,!this.F,!this.O)}he(){return[this.Ec]}Ig(a,b){if(b)throw Error('Check coverage of inequality should not happen with opposite = true');return a instanceof olympe.dc.query.Da.Iu&&this.Ec===a.Ec?typeof this.C!==typeof a.C||this.F!==a.F?!1:'number'===typeof this.C?
|
|
1285
1285
|
this.F&&this.C>=a.C||!this.F&&this.C<=a.C:this.C===a.C:!1}Dc(){return this.Ec}wd(a){return Rj(this,this.db.Dc(a,this.Ec),Sj(this,a))}observe(a,b,c){'string'===typeof this.C&&ci(this.db,a,this.C,d=>{const e=this.db.Dc(a,this.Ec);null!==e&&c(Rj(this,e,d))},Tj(this,a,b));ci(this.db,a,this.Ec,d=>{const e=Sj(this,a);c(null!==e?Rj(this,d,e):!0)},Tj(this,a,b))}clear(a,b){di(this.db,a,this.Ec,Tj(this,a,b));'string'===typeof this.C&&di(this.db,a,this.C,Tj(this,a,b))}Wg(){return{name:'INEQUALITY_OPERATOR',
|
|
1286
1286
|
property:this.Dc(),operator:this.F?'<':'>',strict:this.O,value:this.C}}hb(){return{pr:olympe.dc.query.fc.C.DF,p:this.Ec,b:this.C,l:this.F,s:this.O}}toString(){return'GreaterThan-'+this.Ec+'-'+this.O+'-'+this.C}};olympe.dc.query.Da.Lj=class extends olympe.dc.query.fc{constructor(a){super();this.C=a}compile(){const a=this.C.ne();return this.Yb(a)?super.compile():a.compile()}ne(){return this.C}he(){return this.C.he()}Ig(a,b){return a instanceof olympe.dc.query.Da.Lj?this.C.Ig(a.C,b):this.C.Ig(a,!b)}wd(a){return!this.C.wd(a)}observe(a,b,c){let d=null;this.C.observe(a,olympe.xa.Rd('NOT'+b+a),e=>{!e!==d&&(d=!e,c(d))})}Wg(){return{name:'NOT',predicate:this.C.Wg()}}hb(){return{pr:olympe.dc.query.fc.C.LH,v:this.C.hb()}}toString(){return`NOT-${this.C.toString()}`}clear(a,
|
|
1287
1287
|
b){this.C.clear(a,olympe.xa.Rd('NOT'+b+a))}Yb(a){return a instanceof olympe.dc.query.Da.Lj?this.C.Yb(a.C):!1}};olympe.dc.query.Da.rk=class extends olympe.dc.query.fc{constructor(...a){super();this.Da=a}compile(){return this.Da.map(a=>a.compile()).flat()}ne(){return new olympe.dc.query.Da.ki(...this.Da.map(a=>a.ne()))}he(){return this.Da.flatMap(a=>a.he())}Ig(){throw Error('Should not try to check predicate coverage on And (should be removed by compiling predicates');}wd(a){return this.Da.reduce((b,c)=>b||c.wd(a),!1)}observe(a,b,c){const d=Array(this.Da.length).fill(!1);let e=null;const f=(g,k)=>{d[g]=k;g=
|
|
1288
|
-
d.some(l=>l);e!==g&&(e=g,c(g))};this.Da.forEach((g,k)=>{g.observe(a,olympe.xa.Rd('OR-'+b+a+k),f.bind(null,k))})}Wg(){throw Error('toObject for OR predicate should not be called');}hb(){return{pr:olympe.dc.query.fc.C.QH,p:this.Da.map(a=>a.hb())}}toString(){return'And-'+this.Da.reduce((a,b)=>a.toString()+'-'+b.toString(),'')}clear(a,b){this.Da.forEach((c,d)=>{c.clear(a,olympe.xa.Rd('OR-'+b+a+d))})}};olympe.dc.query.Da.An=class extends olympe.dc.query.fc{constructor(a,b,c,d=!0){super();this.Ec=olympe.dc
|
|
1289
|
-
typeof a?this.F?this.C.test(a):this.C.test(a.toLowerCase()):!1}toString(){return'Regex'+this.Ec+'-'+this.C.toString()+'-'+this.F}Wg(){return{name:'REGEX',property:this.Ec,pattern:this.C,caseSensitive:this.F}}hb(){return{pr:olympe.dc.query.fc.C.kI,p:this.Ec,r:this.C.source,c:this.F}}clear(a,b){di(this.db,a,this.Ec,olympe.xa.Rd(b+a+this.toString()))}};olympe.dc.query.Da.LB=class extends olympe.dc.query.fc{constructor(a){super();this.C=new Set(a.map(olympe.dc
|
|
1288
|
+
d.some(l=>l);e!==g&&(e=g,c(g))};this.Da.forEach((g,k)=>{g.observe(a,olympe.xa.Rd('OR-'+b+a+k),f.bind(null,k))})}Wg(){throw Error('toObject for OR predicate should not be called');}hb(){return{pr:olympe.dc.query.fc.C.QH,p:this.Da.map(a=>a.hb())}}toString(){return'And-'+this.Da.reduce((a,b)=>a.toString()+'-'+b.toString(),'')}clear(a,b){this.Da.forEach((c,d)=>{c.clear(a,olympe.xa.Rd('OR-'+b+a+d))})}};olympe.dc.query.Da.An=class extends olympe.dc.query.fc{constructor(a,b,c,d=!0){super();this.Ec=olympe.dc.Za(a);this.C=RegExp('');try{this.C=new RegExp(b)}catch(e){if(!(e instanceof SyntaxError))throw e;}this.db=c;this.F=d}he(){return[this.Ec]}Ig(a){return a instanceof olympe.dc.query.Da.An&&this.Ec===a.Ec&&this.C.toString()===a.C.toString()}wd(a){return this.apply(this.db.Dc(a,this.Ec))}observe(a,b,c){ci(this.db,a,this.Ec,d=>{c(this.apply(d))},olympe.xa.Rd(b+a+this.toString()))}apply(a){return'string'===
|
|
1289
|
+
typeof a?this.F?this.C.test(a):this.C.test(a.toLowerCase()):!1}toString(){return'Regex'+this.Ec+'-'+this.C.toString()+'-'+this.F}Wg(){return{name:'REGEX',property:this.Ec,pattern:this.C,caseSensitive:this.F}}hb(){return{pr:olympe.dc.query.fc.C.kI,p:this.Ec,r:this.C.source,c:this.F}}clear(a,b){di(this.db,a,this.Ec,olympe.xa.Rd(b+a+this.toString()))}};olympe.dc.query.Da.LB=class extends olympe.dc.query.fc{constructor(a){super();this.C=new Set(a.map(olympe.dc.Za))}he(){return[]}Ig(a){return a instanceof olympe.dc.query.Da.LB&&Array.from(a.C).every(b=>this.C.has(b))}wd(a){return this.C.has(a)}observe(a,b,c){c(this.C.has(a))}clear(){}toString(){return'Tags-'+Array.from(this.C)}Wg(){return{name:'IS',tags:Array.from(this.C)}}hb(){return{pr:olympe.dc.query.fc.C.YI,t:Array.from(this.C)}}};olympe.dc.query.Pb={};function Pj(a){let b,c;const d=new Set(null!=(c=null==(b=a.F)?void 0:b.he())?c:[]);let e;a.ze&&d.add(null==(e=a.ze)?void 0:e.Dc().na());return d}function Uj(a){if(!a.ba){let b,c;a.ba=null!=(c=null==(b=a.F)?void 0:b.compile())?c:[]}return a.ba}function Vj(a,b){for(const c of b)if(a.some(d=>d.Ig(c,!1)))return!0;return!1}
|
|
1290
1290
|
function Wj(a,b){if(null===a.F)return b;let c=!1;const d=a.toString();return(e,f,g,k)=>{const l=olympe.xa.Rd(k+f+d);e?a.F.observe(f,l,m=>{c||b(m,f,g,l)}):(c=!0,a.F.clear(f,l),c=!1,b(!1,f,g,l))}}function Xj(a,b,c){if(null===a.ze)return c;const d=a.toString();return(e,f,g,k)=>{const l=a.ze.Dc();k=olympe.xa.Rd(k+d);e?ci(a.db,f,l,()=>{fj(b)},k):di(a.db,f,l,k);c(e,f,g,k)}}
|
|
1291
1291
|
olympe.dc.query.Pb.Ux=class{constructor(a,b){this.db=olympe.dc.Hb();this.C=a;this.optional=b;this.ba=this.ze=this.F=this.id=null}static C(a){var b=a.i;if('string'===typeof a.f)return new olympe.dc.query.Pb.mi(b,a.f);var c=a.o;const d=new olympe.dc.Jc.Relation(a.t,a.d);b='boolean'===typeof a.s?new olympe.dc.query.Pb.Ko(b,d,a.s,c):new olympe.dc.query.Pb.oq(b,d,c);void 0!==a.p&&(b.F=nj(a.p));void 0!==a.c&&(c=b.sa(),a=a.c,a=new olympe.dc.query.gn(c,new olympe.dc.Jc.Property(a.p),a.o),b.ze=a);return b}clone(){}toString(){let a,
|
|
1292
1292
|
b,c,d;return`${this.C}-${this.optional}${null!=(c=null==(a=this.F)?void 0:a.toString())?c:''}${null!=(d=null==(b=this.ze)?void 0:b.toString())?d:''}`}Wg(){}hb(){const a={i:this.C,o:this.optional};null!==this.F&&(a.p=this.F.hb());null!==this.ze&&(a.c=this.ze.hb());return a}V(){}$(){return new olympe.dc.query.Pb.GB}aa(){}sa(){null===this.id&&(this.id=this.V());return this.id}T(){return this.optional}Ig(a){const b=Uj(this);if(0===b.length)return!0;a=Uj(a);if(0===a.length)return!1;for(const c of a)if(!b.some(d=>
|
|
@@ -1349,15 +1349,15 @@ c=hk(this.C,c)}else this.W.error('Server is disconnected, restore of instance is
|
|
|
1349
1349
|
wl(this,c);this.F.set(d,e);ul(this,cl,f).catch(g=>e.error(g))})).pipe(ld(this.ba,b),rxjs.operators.finalize(()=>{ul(this,dl,{i:d}).catch(e=>{this.W.warn(`Fail to unsubscribe to graphdef ${d}: ${e}`)}).finally(()=>{this.F.delete(d)})}))}return rxjs.throwError(()=>Error(`Subscription of type ${a.getType()} is not supported`))}init(a){this.cg=a;Ad(this.Ma,olympe.ea.nk.GE,this.$.bind(this));return this}destroy(){return ha(function*(){})}$(a){var b=olympe.dc.Request.C.aE;const c=olympe.dc.Request.C.lB;
|
|
1350
1350
|
var d=a.c;if(d===olympe.dc.Request.C.HE)a=this.O.C(a.p),sl(this,d,a);else if(d===b){var e=a.error.reason;b=this.O.C(a.p);sl(this,d,{id:a.i,rollback:b,error:e})}else d===el?(d=a.i,a=this.O.C(a.p),null==(e=this.F.get(d))||e.next(a)):d===c&&sl(this,il,{id:a.i,finalize:olympe.dc.transaction.ip.C.lB,error:0<a.s?a.info.error.reason:null})}V(a,b){if(b instanceof olympe.dc.query.Pb.oq||b instanceof olympe.dc.query.Pb.Ko){const c=b.R();let d;b=Array.from(null!=(d=a.get(b.sa()))?d:[]);return{t:c.na(),d:c.Nc()===
|
|
1351
1351
|
olympe.dc.Nb.ORIGIN?1:2,v:!0,r:c.recursive,q:b.map(this.V.bind(this,a))}}return{}}};olympe.dc.sources.TI.Ca=[olympe.dc.sources.vA];function zl(a,b,c){const d=new olympe.j.Kd(`Source solver ${b.na()}`);b.Hc(olympe.dm.Xi.O.Vd()).Hc(olympe.dm.Xi.C).Ai().back().Hc(olympe.dm.Xi.F).Ai().observe(d,c).subscribe(e=>{Ug(e).forEach(([f,g])=>{a.F.set(f.na(),g.sa())});Tg(e).forEach(([f])=>{a.F.delete(f)})});b.Hc(olympe.dm.yd.T).observe(d,c).subscribe(e=>{let f,g;a.O=null!=(g=null==(f=e.Ld())?void 0:f.sa())?g:null});d.onDestroy(()=>{a.F.clear();a.O=null})}
|
|
1352
|
-
olympe.dc.sources.oy=class{constructor(a,b,c){this.db=a;this.C=b;this.T=c;this.F=new Map;this.O=null;this.R=!1}fromModel(a){a=olympe.dc
|
|
1352
|
+
olympe.dc.sources.oy=class{constructor(a,b,c){this.db=a;this.C=b;this.T=c;this.F=new Map;this.O=null;this.R=!1}fromModel(a){a=olympe.dc.Za(a);return this.F.has(a)?this.F.get(a):this.O&&this.V(a)?this.O:this.T}Tl(a){let b;return null!=(b=this.db.source(a))?b:this.T}Ie(a){return a===this.C?olympe.dc.CloudObject.get(this.C):a===olympe.dc.Vc.SERVER?olympe.dc.CloudObject.get(olympe.dm.DataSource.SERVER):this.db.Cc(a)&&this.db.ag(a,olympe.dm.DataSource)?olympe.dc.CloudObject.get(a):null}V(){return!1}init(){if(!this.R){this.R=
|
|
1353
1353
|
!0;var a=new olympe.dc.Lc;Z(a.create(olympe.dm.DataSource,this.C).Zd(this.C),olympe.dm.DataSource.Us,!0);a.Sb(olympe.dm.DataSource.$v,this.C,this.C);a.wd(()=>{olympe.dc.yb.from(this.C).observe(olympe.j.Mk()).subscribe(()=>{})})}}};olympe.dc.sources.ga={Vb:'dc.sources.Logger',QA:'dc.sources.HTTPService',MO:'dc.sources.IOService',mI:'dc.sources.RemoteProvider',BI:'dc.sources.ServerProvider',fY:'dc.sources.OfflineProvider',vk:'dc.sources.SourceSolver',uk:'dc.sources.Serializer'};
|
|
1354
1354
|
olympe.dc.sources.qa={OA:'data.httpHost',yx:'data.httpPort',vF:'data.httpSSL',NA:'data.httpBasePath',qB:'data.pollingFrequency',nl:'data.communicationMode',vB:'data.restrictedUse',uF:'data.HTTPExtraHeaders',EO:'data.incomingAuthHeaders',jN:'offline.autoSync',iN:'offline.autoPersist',tR:'offline.syncTimeout',VERSION:'version.version'};
|
|
1355
1355
|
olympe.va.qe(function(a){B(a,olympe.dc.sources.qa.jN,!1);B(a,olympe.dc.sources.qa.iN,!1);B(a,olympe.dc.sources.qa.tR,3E4);var b=a.getParameter(olympe.ea.qa.qA);B(a,olympe.dc.sources.qa.OA,b);var c=a.getParameter(olympe.dc.sources.qa.OA);c=(b='localhost'===c)||c.endsWith(a.getParameter(olympe.lb.qa.Ix));B(a,olympe.dc.sources.qa.yx,b?3141:c?80:443);B(a,olympe.dc.sources.qa.vF,!c);B(a,olympe.dc.sources.qa.NA,'runtime/data');B(a,olympe.dc.sources.qa.qB,null);B(a,olympe.dc.sources.qa.nl,null);B(a,olympe.dc.sources.qa.vB,
|
|
1356
1356
|
null);B(a,olympe.dc.sources.qa.uF,{});B(a,olympe.dc.sources.qa.EO,{});A(a,olympe.dc.sources.ga.Vb,[olympe.tb.ga.Zb],d=>d.Vg('data'));z(a,olympe.dc.sources.ga.uk,olympe.dc.sources.Kq,olympe.dc.ga.kn);za(a,olympe.ea.ga.uk,olympe.dc.sources.ga.uk);z(a,olympe.dc.sources.ga.QA,olympe.dc.sources.xO,olympe.dc.sources.ga.Vb,olympe.lb.ga.RJ,olympe.ea.ga.PA,olympe.ta.ga.Zb,olympe.dc.sources.ga.vk,olympe.ea.ga.uk,new olympe.va.Ab(olympe.ea.qa.fA));z(a,olympe.dc.sources.ga.MO,olympe.dc.sources.IF,olympe.dc.sources.ga.Vb,
|
|
1357
1357
|
olympe.dc.ga.Is,olympe.lb.ga.Zb,olympe.ta.ga.Zb);z(a,olympe.dc.sources.ga.mI,olympe.dc.sources.tI,olympe.dc.sources.ga.Vb,new olympe.va.Ab(olympe.dc.qa.Jq),olympe.dc.sources.ga.QA,olympe.dc.ga.kn,olympe.dc.sources.ga.vk);z(a,olympe.dc.sources.ga.BI,olympe.dc.sources.TI,olympe.dc.sources.ga.Vb,olympe.ea.ga.by,olympe.ea.ga.hA,olympe.ta.ga.Zb,olympe.dc.sources.ga.QA,new olympe.va.Ab(olympe.dc.sources.qa.VERSION));z(a,olympe.dc.sources.ga.vk,olympe.dc.sources.oy,olympe.dc.ga.kn,new olympe.va.Ab(olympe.dc.qa.Jq),
|
|
1358
|
-
new olympe.va.Ab(olympe.dc.qa.sA))},'olympe.dc.sources');olympe.va.run([olympe.dc.sources.ga.vk],a=>{olympe.dc.nj=()=>a});olympe.dc.transaction={};olympe.dc.wu=class a{constructor(b,c){this.id=null!=b?b:olympe.xa.Qe();this.F=new olympe.j.Kd('BurstTransaction#'+this.id,c);this.La=Al(this);this.V=!1;this.F.onDestroy(()=>this.T());this.aa=new Set;this.O=new Map;this.R=new Set;this.C=null;let d;this.Fa=null!=(d=olympe.va.getParameter(olympe.dc.transaction.qa.$D))?d:30;this.la=[]}static C(b,c){return`${b},${c}`}Mb(b){for(const c of this.la)c(b);this.stop()}
|
|
1359
|
-
b,!1);this.R.clear()}$(b){const c=new Map;b.forEach(d=>{const e=d.split(',');let f=c.get(e[0]);void 0===f&&(f=new Map,c.set(e[0],f));f.set(e[1],this.O.get(d))});return c}ba(b,c,d){this.Ba(b,c,d);this.La(b,c,d);null===this.C&&(this.C=setTimeout(this.
|
|
1360
|
-
c)=>{this.T((d,e)=>{for(const f of this.aa)f.unsubscribe();d?b():c(e)})})}update(b,c,d){const e=olympe.dc
|
|
1358
|
+
new olympe.va.Ab(olympe.dc.qa.sA))},'olympe.dc.sources');olympe.va.run([olympe.dc.sources.ga.vk],a=>{olympe.dc.nj=()=>a});olympe.dc.transaction={};olympe.dc.wu=class a{constructor(b,c){this.id=null!=b?b:olympe.xa.Qe();this.F=new olympe.j.Kd('BurstTransaction#'+this.id,c);this.La=Al(this);this.V=!1;this.F.onDestroy(()=>this.T());this.aa=new Set;this.O=new Map;this.R=new Set;this.C=null;let d;this.Fa=null!=(d=olympe.va.getParameter(olympe.dc.transaction.qa.$D))?d:30;this.la=[]}static C(b,c){return`${b},${c}`}Mb(b){for(const c of this.la)c(b);this.stop()}$a(){null!==this.C&&(clearTimeout(this.C),this.C=null);const b=this.$(this.R);0<b.size&&Bl(this,
|
|
1359
|
+
b,!1);this.R.clear()}$(b){const c=new Map;b.forEach(d=>{const e=d.split(',');let f=c.get(e[0]);void 0===f&&(f=new Map,c.set(e[0],f));f.set(e[1],this.O.get(d))});return c}ba(b,c,d){this.Ba(b,c,d);this.La(b,c,d);null===this.C&&(this.C=setTimeout(this.$a.bind(this),this.Fa))}Ba(b,c,d){b=a.C(b,c);this.O.set(b,d);this.R.add(b)}Ja(b,c){return this.O.get(a.C(b,c))}push(b,c){const d=olympe.dc.Za(b);b=c.subscribe(e=>{for(const [f,g]of e)e=olympe.dc.Za(f),this.Ja(d,e)!==g&&this.ba(d,e,g.valueOf())});this.aa.add(b)}complete(){return new Promise((b,
|
|
1360
|
+
c)=>{this.T((d,e)=>{for(const f of this.aa)f.unsubscribe();d?b():c(e)})})}update(b,c,d){const e=olympe.dc.Za(b),f=olympe.dc.Za(c);void 0===e||void 0===f?olympe.dc.vt().Gb().error('Burst transaction: instance tag or property tag is undefined'):(this.F.run(()=>{olympe.j.Cg([d],g=>{this.V=!0;g instanceof olympe.dc.Nf?olympe.dc.vt().Gb().error('Cannot send complex property values in burst transactions'):this.ba(e,f,g.valueOf())})}),this.F.R(()=>{this.T()}))}stop(){this.F.destroy();this.la.length=0}getContext(){return this.F}sa(){return this.id}jr(){return!1}T(b){if(this.V){this.V=
|
|
1361
1361
|
!1;null!==this.C&&(clearTimeout(this.C),this.C=null);this.R.clear();const c=this.$(new Set(this.O.keys()));Bl(this,c,!0,b)}else null==b||b(!0)}toString(){return'Burst transaction #'+this.id}};olympe.dc.wu.prototype.complete=olympe.dc.wu.prototype.complete;olympe.dc.wu.prototype.push=olympe.dc.wu.prototype.push;olympe.dc.UH=class{ge(){}toString(){}};olympe.dc.transaction.Rx=class a{constructor(b){this.F=null!=b?b:olympe.dc.Vc.SERVER}C(b,c){c=new olympe.dc.db.nh(c);this.O(b,c);return c}O(b,c){for(const d of b)switch(d.o){case 1:b=a.C(d.p||{});let e;c.Pf(d.t,null!=(e=d.s)?e:this.F,b,d.m);break;case 2:c.ji(d.t,a.C(d.p),d.m);break;case 3:c.F(d.t,d.f,d.m);break;case 4:c.Sb(d.m,d.l,d.r,d.lm,d.rm);break;case 5:c.Qf(d.m,d.l,d.r,d.lm,d.rm);break;case 6:break;default:throw Error('Undefined patch operation: '+d.o);}}static C(b){const c=new Map;for(const [d,
|
|
1362
1362
|
e]of Object.entries(b)){b=d;let f=typeof e;20<b.length&&b.startsWith('fd')&&(b=olympe.dc.wq.Kh+b.substring(2));'object'===f&&(f=e&&e.c?String(e.c):'untyped');switch(f){case '1':case '2':case '3':throw Error('Complex format for primitive types not supported.');case 'string':c.set(b,String(e));break;case 'boolean':c.set(b,!!e);break;case 'number':c.set(b,Number(e));break;case '4':c.set(b,new Date(Date.UTC(e.y,e.M-1,e.d,e.h,e.m,e.s,e.S)));break;case '5':c.set(b,new Date(Date.UTC(e.y,e.M-1,e.d)));break;
|
|
1363
1363
|
case '6':c.set(b,new Date(Date.UTC(e.y||1970,e.M&&e.M-1||0,e.d||1,e.h,e.m,e.s,e.S)));break;case '7':c.set(b,new olympe.j.Color(e.r,e.g,e.b,e.a));break;case '8':c.set(b,new olympe.dc.Nf(e.t));break;case 'untyped':null===e&&c.set(b,null)}}return c}};function Cl(a,b){let c;return null!=(c=a.sources.get(b))?c:a.R.Tl(b)}function Dl(a,b){let c,d,e;return null!=(e=null!=(d=null==(c=a.C.km(b))?void 0:c.zh())?d:a.db.model(b))?e:null}function El(a,b){let c;return null!=(c=a.T.get(b))?c:a.db.Fp(b)||!a.db.Cc(b)}function Fl(a){return Array.from(a.C.mj()).filter(b=>!b.Sn()).map(b=>b.tag())}function Gl(a,b,c,d){d(a.C);c&&a.O&&b!==olympe.dc.Vc.SELF&&(c=a.F.get(b),c||(c=new olympe.dc.db.nh(a.id),a.F.set(b,c)),d(c))}
|
|
@@ -1371,7 +1371,7 @@ olympe.dc.transaction.Cq=class{constructor({Dz:a=!1,Ys:b=!0,Nj:c=!0}={}){this.T=
|
|
|
1371
1371
|
b,c=null){b=Il(this.aa,b||null,!1);a={o:2,t:a,p:b};this.Nj&&c&&(a.m=c);this.C.push(a)}F(a,b,c=null){a={o:3,t:a,f:b};this.Nj&&c&&(a.m=c);this.O.push(a)}Sb(a,b,c,d=null,e=null){if(!a)throw Error('Cannot create relation of undefined type');if(!b)throw Error(`Cannot create relation ${a} from undefined origin to ${c}`);if(!c)throw Error(`Cannot create relation ${a} from ${b} to undefined destination`);a={o:4,m:a,l:b,r:c};this.Nj&&d&&(a.lm=d);this.Nj&&e&&(a.rm=e);this.V.push(a)}Qf(a,b,c,d=null,e=null){if(!a)throw Error('Cannot delete relation of undefined type');
|
|
1372
1372
|
if(!b)throw Error('Cannot delete relation with undefined origin');if(!c)throw Error('Cannot delete relation with undefined destination');a={o:5,m:a,l:b,r:c};this.Nj&&d&&(a.lm=d);this.Nj&&e&&(a.rm=e);this.R.push(a)}};olympe.dc.transaction.Cq.Ca=[olympe.dc.jv];function Ll(a,b){b&&a.rd.push(b);return b}function Ml(a,b,c,d){c=a.create(null!=c?c:olympe.dc.CloudObject,void 0);if('string'===typeof b)b=b||'',Z(c,olympe.dc.CloudObject.nameProp.na(),b);else for(const [f,g]of Object.entries(b))Z(c,f,g);b=c.na();d=null!=d?d:olympe.dc.CloudObject;const e=olympe.dc.CloudObject.extendRel.na();Ll(a,new olympe.dc.transaction.rd.OE(e,b));Ll(a,new olympe.dc.transaction.rd.oA(e,b,d));return c}
|
|
1373
1373
|
function Nl(a){return 0<a.length?(b,c)=>{a.forEach(d=>null==d?void 0:d(b,c))}:void 0}
|
|
1374
|
-
olympe.dc.Lc=class{constructor(a){this.id=a||olympe.xa.Qe();this.rd=[];this.F=new Map;this.O=!0;this.C=[]}sa(){return this.id}model(a){let b;return null!=(b=this.F.get(olympe.dc
|
|
1374
|
+
olympe.dc.Lc=class{constructor(a){this.id=a||olympe.xa.Qe();this.rd=[];this.F=new Map;this.O=!0;this.C=[]}sa(){return this.id}model(a){let b;return null!=(b=this.F.get(olympe.dc.Za(a)))?b:olympe.dc.Hb().model(a)}persist(a){this.O=a;return this}ge(a){a.persist(this.O);const b=this.rd;for(let c=0,d=b.length;c<d;c++)b[c].ge(a)}create(a,b){b=Ll(this,new olympe.dc.transaction.rd.nA(a,b));this.F.set(b.na(),olympe.dc.Za(a));return b}nr(a,b=!0){const c=olympe.dc.Za(a);var d=this.rd.find(k=>k instanceof olympe.dc.transaction.rd.nA&&
|
|
1375
1375
|
k.na()===c);if(d)return d.persist(b);d=olympe.dc.Hb();const e=d.model(a);if(null===e)throw Error('Try to persist a instance that does not exist: '+a);if(d.Fp(a))return null;let f;const g=null!=(f=d.source(a))?f:olympe.dc.nj().fromModel(e);a=this.create(e,a).persist(b).Zd(g);for(const [k,l,m]of qi(d,a))k!==olympe.dc.lg.vi&&d.Fp(m)&&this.Sb(k,l===olympe.dc.Nb.DESTINATION?a:m,l===olympe.dc.Nb.DESTINATION?m:a);return a}delete(a,b=olympe.dc.ef.Fg){Ll(this,new olympe.dc.transaction.rd.PE(a,b))}update(a,
|
|
1376
1376
|
b,c){return Ll(this,new olympe.dc.transaction.rd.PR(a,b,c))}Sb(a,b,c){Ll(this,new olympe.dc.transaction.rd.oA(a,b,c))}Qf(a,b,c){Ll(this,new olympe.dc.transaction.rd.XN(a,b,c))}gC(a,b){Ll(this,new olympe.dc.transaction.rd.OE(a,b))}defineProperty(a,b,c,d,e,f){d=this.create(olympe.dm.Property,f);Z(d,olympe.dc.CloudObject.nameProp,c||'');void 0!==e&&this.update(a,olympe.dc.wq.Kh+d.na(),e);this.Sb(olympe.dc.CloudObject.propertyRel,a,d);this.Sb(olympe.dm.Property.typeRel,d,b);this.Sb(olympe.dc.CloudObject.containsRel,
|
|
1377
1377
|
a,d);return d}kK(a,b,c='',{XZ:d=olympe.dm.Relation.R.yQ,g_:e=olympe.dm.Relation.C.jI,b_:f=olympe.dm.Relation.C.uN,G_:g=olympe.dm.Relation.C.DO,SZ:k=olympe.dm.Zz.NONE,D_:l=olympe.dm.Relation.T|k}={},m=olympe.xa.Qe()){c=Z(Z(Z(Z(Z(Z(Z(Z(this.create(olympe.dm.Relation,m),olympe.dc.CloudObject.nameProp,c||''),olympe.dm.Relation.F,d),olympe.dm.Relation.O,l),olympe.dm.Relation.ba,e),olympe.dm.Relation.la,e),olympe.dm.Relation.aa,f),olympe.dm.Relation.$,g),olympe.dm.Relation.V,k);this.Sb(olympe.dc.CloudObject.Zv,
|
|
@@ -1384,18 +1384,18 @@ r();else{var v=n.na(),w,x=null!=(w=n.get(olympe.dm.File.mimeTypeProp))?w:'applic
|
|
|
1384
1384
|
new olympe.dc.db.nh);return Nh(a.F,n)})}function Tl(a,b,c,d){const e=olympe.j.Mk(),f=new olympe.async.Tx(e);0<a.timeout&&f.eN(a.timeout);const g=olympe.dc.transaction.ip.C.sQ;let k=!0;const l=a.C.get(b);for(let m=0;m<d;m++)f.add((n,p)=>{l.push(e.F((r,t)=>{k&&(k=r!==g);t?p(t):n()}))});Tc(f,(m,n)=>{m||a.W.warn(`An error occurred while processing the notification of transaction (${b}): ${n}.`);k&&a.F.C.La(c);Vl(a,b)});f.start()}
|
|
1385
1385
|
function Ul(a,b,c,d){const e=c?olympe.dc.Request.C.sy:olympe.dc.Request.C.dv;return Promise.all(Array.from(b.F).map(([f,g])=>a.cg.C(new olympe.dc.Request(e,f,new olympe.dc.transaction.uy(g,d))))).then()}function Rl(a,b,c,d){(a=(a=a.C.get(b))&&a.pop())&&a(c,d)}function Vl(a,b){var c;null==(c=a.C.get(b))||c.forEach(d=>{d(olympe.dc.transaction.ip.C.Mx,null)});a.C.delete(b);if(0===a.C.size){for(const d of a.T)d();a.T=[]}a.O.has(b)&&(c=a.O.get(b),a.O.delete(b),c(!0))}
|
|
1386
1386
|
function Wl(a,b){0<a.C.size?a.T.push(olympe.j.sb().F(b)):b()}olympe.dc.transaction.ip=class{constructor(a,b,c,d,e,f){this.W=a;this.F=b;this.db=b.view;this.cg=c;this.V=d;this.aa=e;this.timeout=f;this.R=new Map;this.C=new Map;this.T=[];this.O=new Map;Ql(this)}Gb(){return this.W}};olympe.dc.transaction.ip.C={lB:0,Mx:1,sQ:2};olympe.dc.transaction.uy=class{constructor(a,b=!1){this.C=a;this.F=b}jr(){return this.F}Yh(){return this.C}};olympe.dc.transaction.ga={Vb:'dc.transaction.Logger',Zb:'dc.transaction.Manager'};olympe.dc.transaction.qa={TIMEOUT:'dc.transaction.timeout',$D:'dc.transaction.burstInterval'};
|
|
1387
|
-
olympe.va.qe(function(a){B(a,olympe.dc.transaction.qa.TIMEOUT,6E4);B(a,olympe.dc.transaction.qa.$D,30);A(a,olympe.dc.transaction.ga.Vb,[olympe.tb.ga.Zb],b=>b.Vg('dc'));z(a,olympe.dc.transaction.ga.Zb,olympe.dc.transaction.ip,olympe.dc.transaction.ga.Vb,olympe.dc.db.ga.Zb,olympe.dc.ga.Is,olympe.dc.sources.ga.vk,olympe.dc.ga.ox,new olympe.va.Ab(olympe.dc.transaction.qa.TIMEOUT))},'olympe.dc.transaction');olympe.dc.transaction.rd={};function Xl(a,b){const c=new Map;for(const [d,e]of b)c.set(d,a.Ra(e));return c}olympe.dc.transaction.rd.Xr=class{constructor(){this.Hb=olympe.dc.Hb()}ge(){throw Error('Abstract method build() not override !');}toString(){throw Error('Abstract method toString() not override !');}Ra(a){a=olympe.j.Ra(a);return void 0===a||null===a?null:olympe.j.jM(a)?a.valueOf():a}};olympe.dc.transaction.rd.Xr.Ca=[olympe.dc.UH];olympe.dc.transaction.rd.OD=class extends olympe.dc.transaction.rd.Xr{constructor(a,b){super();this.relation=a instanceof olympe.dc.Jc.Relation?a:new olympe.dc.Jc.Relation(olympe.dc
|
|
1388
|
-
olympe.dc.transaction.rd.nA=class extends olympe.dc.transaction.rd.Xr{constructor(a,b){super();let c;this.tag=null!=(c=b&&olympe.dc
|
|
1387
|
+
olympe.va.qe(function(a){B(a,olympe.dc.transaction.qa.TIMEOUT,6E4);B(a,olympe.dc.transaction.qa.$D,30);A(a,olympe.dc.transaction.ga.Vb,[olympe.tb.ga.Zb],b=>b.Vg('dc'));z(a,olympe.dc.transaction.ga.Zb,olympe.dc.transaction.ip,olympe.dc.transaction.ga.Vb,olympe.dc.db.ga.Zb,olympe.dc.ga.Is,olympe.dc.sources.ga.vk,olympe.dc.ga.ox,new olympe.va.Ab(olympe.dc.transaction.qa.TIMEOUT))},'olympe.dc.transaction');olympe.dc.transaction.rd={};function Xl(a,b){const c=new Map;for(const [d,e]of b)c.set(d,a.Ra(e));return c}olympe.dc.transaction.rd.Xr=class{constructor(){this.Hb=olympe.dc.Hb()}ge(){throw Error('Abstract method build() not override !');}toString(){throw Error('Abstract method toString() not override !');}Ra(a){a=olympe.j.Ra(a);return void 0===a||null===a?null:olympe.j.jM(a)?a.valueOf():a}};olympe.dc.transaction.rd.Xr.Ca=[olympe.dc.UH];olympe.dc.transaction.rd.OD=class extends olympe.dc.transaction.rd.Xr{constructor(a,b){super();this.relation=a instanceof olympe.dc.Jc.Relation?a:new olympe.dc.Jc.Relation(olympe.dc.Za(a));this.origin=this.Hb.Cc(b)?olympe.dc.CloudObject.get(b):b}getType(){return this.relation.na()}Nc(){return this.relation.Nc()}ge(){throw Error('Abstract method build() not override !');}toString(){throw Error('Abstract method toString() not override !');}};function Z(a,b,c){a.F.set(olympe.dc.Za(b),c);return a}
|
|
1388
|
+
olympe.dc.transaction.rd.nA=class extends olympe.dc.transaction.rd.Xr{constructor(a,b){super();let c;this.tag=null!=(c=b&&olympe.dc.Za(b))?c:olympe.xa.Wq();this.model=olympe.dc.Za(a);this.source=null;this.F=new Map;this.C=!0}na(){return this.tag}Df(){return this.model}persist(a){this.C=a;return this}Zd(a){this.source=a;return this}ge(a){const b=olympe.dc.Hb(),c=this.Df(),d=this.na();if(!c)throw Error('OperationError: Cannot create instance, model tag is undefined');if(b.Cc(d)&&!b.Fp(d)&&this.C){const e=
|
|
1389
1389
|
new Map([...b.he(d,!0),...Xl(this,this.F)]);for(const f of e.values())if(f instanceof olympe.dc.Nf&&!El(a,f.na())){const g=new olympe.dc.Lc;g.nr(f.na());g.ge(a)}a.Pf(d,c,this.C,this.source,e);for(const [f,g,k]of qi(b,d))El(a,k)&&(g===olympe.dc.Nb.ORIGIN?a.Sb(f,k,d):a.Sb(f,d,k))}else b.Cc(d)||a.Pf(d,c,this.C,this.source,Xl(this,this.F))}toString(){return`CreateInstance(${this.Df()}, ${this.na()})`}};olympe.dc.transaction.rd.nA.Ca=[olympe.dc.jk];olympe.dc.transaction.rd.oA=class extends olympe.dc.transaction.rd.OD{constructor(a,b,c){super(a,b);this.C=this.Hb.Cc(c)?olympe.dc.CloudObject.get(c):c}ge(a){const b=this.getType();if(''===b)throw Error('OperationError: Cannot create relation, type is undefined, null or empty string');if(b===olympe.dc.lg.vi)throw Error('OperationError: Cannot create the instance -> model relation');if(!this.origin)throw Error('OperationError: Cannot create relation, origin tag is undefined, null or empty string');
|
|
1390
|
-
if(!this.C)throw Error('OperationError: Cannot create relation, destination tag is undefined, null or empty string');this.relation.Nc()===olympe.dc.Nb.DESTINATION?a.Sb(b,olympe.dc
|
|
1391
|
-
a.Qf(b,c,f):a.Qf(b,f,c)}toString(){return`DeleteAllRelations(${this.Nc()}${this.getType()})`}};olympe.dc.transaction.rd.PE=class extends olympe.dc.transaction.rd.Xr{constructor(a,b=olympe.dc.ef.Fg){super();this.tag=this.Hb.Cc(a)?olympe.dc.CloudObject.get(a):a;this.Rf=b}na(){return olympe.dc
|
|
1392
|
-
this.relation.Nc()===olympe.dc.Nb.DESTINATION?a.Qf(b,c,d):a.Qf(b,d,c)}toString(){return'DeleteRelation('+this.relation.Nc()+this.relation.na()+', '+olympe.dc
|
|
1393
|
-
for(const [e,f]of c){var d=this.Hb.Dc(b,e);d instanceof olympe.dc.Nf&&Hl(a,d.na(),olympe.dc.ef.Fg);f instanceof olympe.dc.Nf&&!El(a,f.na())&&(d=new olympe.dc.Lc,d.nr(f.na()),d.ge(a))}a.ji(b,c)}toString(){return'UpdateInstance('+this.na()+', '+Xl(this,this.C)+')'}};olympe.dc
|
|
1390
|
+
if(!this.C)throw Error('OperationError: Cannot create relation, destination tag is undefined, null or empty string');this.relation.Nc()===olympe.dc.Nb.DESTINATION?a.Sb(b,olympe.dc.Za(this.origin),olympe.dc.Za(this.C)):a.Sb(b,olympe.dc.Za(this.C),olympe.dc.Za(this.origin))}toString(){return`CreateRelation('${this.relation.Nc()}${this.relation.na()}, ${olympe.dc.Za(this.origin)}, ${olympe.dc.Za(this.C)})`}};olympe.dc.transaction.rd.SW=class extends olympe.dc.transaction.rd.Xr{constructor(a,b=olympe.dc.ef.Fg){super();this.model=a instanceof olympe.dc.CloudObject?a:olympe.dc.CloudObject.get(a);this.Rf=b}ge(a){for(const b of this.Hb.mj(this.model))b!==olympe.dc.Za(this.model)&&(new olympe.dc.transaction.rd.PE(b,this.Rf)).ge(a)}toString(){return`DeleteAllInstances(${this.model.na()}, ${this.Rf})`}};olympe.dc.transaction.rd.OE=class extends olympe.dc.transaction.rd.OD{ge(a){const b=this.getType();if(void 0===b)throw Error('OperationError: Cannot delete relation, type is undefined');if(b===olympe.dc.lg.vi)throw Error('OperationError: Cannot delete the instance -> model relation');const c=olympe.dc.Za(this.origin);if(!this.origin)throw Error('OperationError: Cannot delete relation, left tag is undefined');const d=this.Nc(),e=this.Hb.uc(c,this.relation);for(const f of e)d===olympe.dc.Nb.DESTINATION?
|
|
1391
|
+
a.Qf(b,c,f):a.Qf(b,f,c)}toString(){return`DeleteAllRelations(${this.Nc()}${this.getType()})`}};olympe.dc.transaction.rd.PE=class extends olympe.dc.transaction.rd.Xr{constructor(a,b=olympe.dc.ef.Fg){super();this.tag=this.Hb.Cc(a)?olympe.dc.CloudObject.get(a):a;this.Rf=b}na(){return olympe.dc.Za(this.tag)}ge(a){const b=this.na();if(void 0===b)throw Error('OperationError: Cannot delete instance, tag is undefined');this.Hb.Cc(b)&&Hl(a,b,this.Rf)}toString(){return'DeleteInstance('+this.na()+', '+this.Rf+')'}};olympe.dc.transaction.rd.XN=class extends olympe.dc.transaction.rd.oA{ge(a){const b=this.relation.na();if(void 0===b)throw Error('OperationError: Cannot delete relation, type is undefined');if(b===olympe.dc.lg.vi)throw Error('OperationError: Cannot delete the instance -> model relation');const c=olympe.dc.Za(this.origin);if(void 0===c)throw Error('OperationError: Cannot delete relation, left tag is undefined');const d=olympe.dc.Za(this.C);if(void 0===d)throw Error('OperationError: Cannot delete relation, right tag is undefined');
|
|
1392
|
+
this.relation.Nc()===olympe.dc.Nb.DESTINATION?a.Qf(b,c,d):a.Qf(b,d,c)}toString(){return'DeleteRelation('+this.relation.Nc()+this.relation.na()+', '+olympe.dc.Za(this.origin)+', '+olympe.dc.Za(this.C)+')'}};olympe.dc.transaction.rd.PR=class extends olympe.dc.transaction.rd.Xr{constructor(a,b,c){super();this.tag=this.Hb.Cc(a)?olympe.dc.CloudObject.get(a):a;this.C=new Map;void 0!==b&&this.C.set(olympe.dc.Za(b),c)}na(){return olympe.dc.Za(this.tag)}ge(a){const b=this.na();if(void 0===b)throw Error('OperationError: Cannot update instance, tag is undefined');var c;if(!(null!=(c=a.C.km(b))&&c.T()||this.Hb.Cc(b)))throw Error('OperationError: Instance #'+b+' not found so it cannot be updated');c=Xl(this,this.C);
|
|
1393
|
+
for(const [e,f]of c){var d=this.Hb.Dc(b,e);d instanceof olympe.dc.Nf&&Hl(a,d.na(),olympe.dc.ef.Fg);f instanceof olympe.dc.Nf&&!El(a,f.na())&&(d=new olympe.dc.Lc,d.nr(f.na()),d.ge(a))}a.ji(b,c)}toString(){return'UpdateInstance('+this.na()+', '+Xl(this,this.C)+')'}};olympe.dc.Za=function(a){if('string'===typeof a)return a;let b=null;a=olympe.j.Ra(a);void 0!==a&&null!==a&&(a=a.valueOf(),'string'===typeof a?b=a:a.na?b=a.na():'function'===typeof a&&(b=olympe.dc.Ha.Df(a)));return b||''};q('olympe.dc.instanceToTag',olympe.dc.Za);olympe.dc.Hb=function(){return olympe.dc.lC().view};olympe.dc.register=function(a,b){olympe.dc.Ha.C(a,b)};olympe.dc.defineProperty=function(a){return new olympe.dc.Jc.Property(a)};
|
|
1394
1394
|
olympe.dc.kK=function(a,b=olympe.dc.Nb.DESTINATION,c=olympe.dc.CloudObject,d=olympe.dc.Nb.DESTINATION){const e=olympe.dc.Nb.DESTINATION;return b===olympe.dc.Nb.ORIGIN||b===e?new olympe.dc.Jc.Relation(a,b):new olympe.dc.Jc.Relation(a,d,b,c)};olympe.dc.BS=function(a){return a.Vd()};olympe.dc.He={};olympe.dc.He.eC=a=>'string'===typeof a||'number'===typeof a||'boolean'===typeof a||a instanceof String?olympe.j.cc(a):a instanceof olympe.j.ib?a:null;olympe.dc.He.bC=a=>'boolean'===typeof a||a instanceof Boolean?olympe.j.lc(a):a instanceof olympe.j.fa?a:null;olympe.dc.He.dC=a=>'number'===typeof a||a instanceof Number?olympe.j.ya(a):'string'===typeof a||a instanceof String?olympe.j.ya(Number.parseFloat(a.valueOf())):a instanceof olympe.j.Z?a:null;
|
|
1395
1395
|
olympe.dc.He.cC=function(a){return'number'===typeof a||a instanceof Number?Ub(a.valueOf()):'string'===typeof a||a instanceof String?Qb(a.valueOf()):a instanceof Date?Tb(a):a instanceof olympe.j.$b?a:null};olympe.dc.He.fK=function(a){return a instanceof olympe.j.Color?a:'string'===typeof a||a instanceof String?cc(a.valueOf()):null};olympe.dc.He.gK=a=>a instanceof olympe.dc.CloudObject?a:a instanceof olympe.dc.Nf?Ng(a):null;olympe.dc.He.pp=a=>a instanceof olympe.dc.Nf?Ng(a):a;
|
|
1396
1396
|
olympe.dc.He.tS=a=>{switch(typeof a){case 'boolean':return olympe.j.lc(a);case 'number':return olympe.j.ya(a);case 'string':return olympe.j.cc(a);case 'object':if(a instanceof Date)return olympe.j.PU(a)}return a};olympe.dc.He.o_=a=>{switch(a){case olympe.j.fa:return olympe.dc.He.bC;case olympe.j.ib:return olympe.dc.He.eC;case olympe.j.Z:return olympe.dc.He.dC;case olympe.j.$b:return olympe.dc.He.cC;case olympe.j.Color:return olympe.dc.He.fK;case olympe.dc.CloudObject:return olympe.dc.He.gK;default:return olympe.dc.He.pp}};olympe.dc.qg={};olympe.dc.gn=class{Sa(){}R(){}O(){}T(){}hb(){}toString(){}};function Yl(a){let b=null;for(a=[...a.Oa];null===b&&0<a.length;)b=a.pop().Ae();return b}function Zl(a,b){a.V()||(a=`Calling "${b}" on subscription with id ${a.sa()} while it is not ready (thus no data is available).`+'This call should be made within an onReady callback. You can also consider to use Queries API instead of ListDefs (which are deprecated)',olympe.tb.Gb('dc').warn(a))}
|
|
1397
1397
|
function $l(a){const b=new olympe.j.Kd('listDef toObservable');return new rxjs.Observable(c=>{b.run(()=>{olympe.j.Ua([a],d=>{c.next(d.valueOf())})});b.onDestroy(()=>{c.complete()});return()=>b.destroy()})}
|
|
1398
|
-
olympe.dc.xb=class{constructor(a,b,c){void 0===a||null===a?olympe.tb.Gb('dc').warn('attempt to create a listdef with a null or undefind basetag. This listdef is thus without effect.'):(this.F=olympe.j.Wa([a],olympe.dc
|
|
1398
|
+
olympe.dc.xb=class{constructor(a,b,c){void 0===a||null===a?olympe.tb.Gb('dc').warn('attempt to create a listdef with a null or undefind basetag. This listdef is thus without effect.'):(this.F=olympe.j.Wa([a],olympe.dc.Za,String),this.Oa=void 0!==b&&(Array.isArray(b)?b:[b])||[],this.valueType=c||Yl(this),this.C=null)}Ok(){return olympe.dc.Ok()}wd(){if(null===this.C){const a=olympe.dc.qg.KT();this.C=am(a,this);null!==this.valueType&&this.C.Mh(this.valueType);olympe.j.sb().R(()=>{var b=this.C.sa();a.W.debug('QueryMGR: [ID:',
|
|
1399
1399
|
b,'] - Unregistered');const c=a.C.get(b);if(null==c)var d=0;else 0<c.counter&&c.counter--,d=0===c.counter;d&&(c.getSubscription().kc(),a.C.delete(b));this.C=null})}return this}getSubscription(){null===this.C&&this.wd();return this.C}Mh(a){this.valueType=a;null!==this.C&&this.C.Mh(this.valueType)}Ae(){return null!==this.C?this.C.Ae():null===this.valueType?olympe.dc.CloudObject:this.valueType}hj(){return this.F}bB(){return this.Oa}uj(a,b){return this.getSubscription().uj(a,b)}wz(a){this.getSubscription().wz(a)}FP(){return this.getSubscription().Ib()}EP(){return this.getSubscription().V()}get(a){return this.getSubscription().get(a)}ot(){return this.getSubscription().ot()}ij(a){const b=
|
|
1400
1400
|
this.getSubscription();Zl(b,'getCurrent');return b.ij(a)}has(a){return this.getSubscription().has(a)}ai(a){const b=this.getSubscription();Zl(b,'hasCurrent');return b.ai(a)}eh(a){return this.getSubscription().eh(a)}QU(a){return $l(this.eh(a))}Dk(a){const b=this.getSubscription();Zl(b,'getCurrentAt');return b.Dk(a)}mm(a){return this.getSubscription().mm(a)}Ek(a){const b=this.getSubscription();Zl(b,'getCurrentKeyAt');return b.Ek(a)}Se(a){return this.getSubscription().Se(a)}VU(a){return $l(this.Se(a))}Xl(a){const b=
|
|
1401
1401
|
this.getSubscription();Zl(b,'getCurrentRank');return b.Xl(a)}Ld(){return this.getSubscription().Ld()}RU(){return $l(this.Ld())}im(){return this.getSubscription().im()}bd(){return this.getSubscription().bd()}WU(){return $l(this.bd())}Di(){const a=this.getSubscription();Zl(a,'getCurrentSize');return a.Di()}forEach(a,b){this.getSubscription().forEach(a,b)}Th(a){const b=this.getSubscription();Zl(b,'forEachCurrentValue');return b.Th(a)}Cv(a,b,c,d){a=new olympe.dc.Oa.Ds(a,b);(new olympe.dc.xb(this.F,[...this.Oa,
|
|
@@ -1414,9 +1414,9 @@ b,c=!1,d){return this.Sl(new olympe.dc.Da.jn(cm(a,d),new olympe.dc.Qc.ql(b),c))}
|
|
|
1414
1414
|
1,c=a.length;b<c;b++)this.and().ne().pz(a[b])}return this}Sv(a,b){if(!(a instanceof Array))throw new em('hasRelated','Provided argument "relations" must be an array.');const c=[],d=[];a.forEach(e=>{c.push(e);d.push(e.Nc())});return this.Sl(new olympe.dc.Da.ys(c,d,b))}nz(a,b,c){a=cm(a,c);return this.Sl(new olympe.dc.Da.ux(a,new olympe.dc.Qc.ql(b)))}Kw(a,b,c){a=cm(a,c);return this.Sl(new olympe.dc.Da.ny(a,new olympe.dc.Qc.ql(b)))}KU(a,b,c,d){a=cm(a,d);return this.Sl(new olympe.dc.Da.An(a,b,c))}filter(a){const b=
|
|
1415
1415
|
new class extends olympe.dc.Da.jq{C(c,d){return a(olympe.dc.CloudObject.get(d))}};return this.Sl(b)}ne(){this.rd.push(bm.AA);return this}and(){this.Oa[this.Oa.length-1]instanceof olympe.dc.Oa.yf&&this.rd.push(bm.cF);return this}or(){this.Oa[this.Oa.length-1]instanceof olympe.dc.Oa.yf&&this.rd.push(bm.dF);return this}ku(a,b,c){a=dm(a);let d=null;switch(olympe.dc.Hb().se(a,olympe.dm.Property.typeRel)){case olympe.dm.String.U.na():d=new olympe.dc.Of.String(new olympe.dc.Qc.bv(a,c));break;case olympe.dm.Number.U.na():d=
|
|
1416
1416
|
new olympe.dc.Of.Number(new olympe.dc.Qc.Fs(a,c));break;case olympe.dm.DateTime.U.na():d=new olympe.dc.Of.DateTime(new olympe.dc.Qc.zu(a,c))}c=d;null!==c&&this.Oa.push(new olympe.dc.Oa.hp(c,b));return this}sort(a,b,c){const d=new class extends olympe.dc.Of.jq{R(e,f){return a(olympe.dc.CloudObject.get(f))}O(e,f){return b(e,f).valueOf()}};this.Oa.push(new olympe.dc.Oa.hp(d,c));return this}FS(){this.Oa.push(new olympe.dc.Oa.Au);return this}IC(a,b){this.Oa.push(new olympe.dc.Oa.Ds(a,b));return this}};
|
|
1417
|
-
class em extends Error{constructor(a,b){super(`ListDefBuilder.${a}(): ${b}`)}}function dm(a){return'string'===typeof a||a instanceof olympe.j.ib?a:'function'===typeof a?olympe.dc.Ha.Df(a):olympe.j.Xb(a)?a.Ay===olympe.j.ib?a:olympe.j.Wa([a],b=>olympe.j.cc(olympe.dc
|
|
1417
|
+
class em extends Error{constructor(a,b){super(`ListDefBuilder.${a}(): ${b}`)}}function dm(a){return'string'===typeof a||a instanceof olympe.j.ib?a:'function'===typeof a?olympe.dc.Ha.Df(a):olympe.j.Xb(a)?a.Ay===olympe.j.ib?a:olympe.j.Wa([a],b=>olympe.j.cc(olympe.dc.Za(b)),olympe.j.ib):a.na()}h=olympe.dc.Zo.prototype;h.ge.K=new olympe.j.J(()=>olympe.dc.xb,[]);h.transform.K=olympe.j.J.C([]);h.nu.K=olympe.j.J.C([]);h.dW.K=olympe.j.J.C([]);h.GP.K=olympe.j.J.C([]);h.Hc.K=olympe.j.J.C([]);h.sK.K=olympe.j.J.C([]);
|
|
1418
1418
|
h.rK.K=olympe.j.J.C([]);h.OS.K=olympe.j.J.C([]);h.qH.K=olympe.j.J.C([]);h.Sl.K=olympe.j.J.C([]);h.KS.K=olympe.j.J.C([]);h.contains.K=olympe.j.J.C([]);h.ag.K=olympe.j.J.C([]);h.pz.K=olympe.j.J.C([]);h.LS.K=olympe.j.J.C([]);h.Sv.K=olympe.j.J.C([]);h.nz.K=olympe.j.J.C([]);h.Kw.K=olympe.j.J.C([]);h.KU.K=olympe.j.J.C([]);h.filter.K=olympe.j.J.C([]);h.ne.K=olympe.j.J.C([]);h.and.K=olympe.j.J.C([]);h.or.K=olympe.j.J.C([]);h.ku.K=olympe.j.J.C([]);h.sort.K=olympe.j.J.C([]);h.FS.K=olympe.j.J.C([]);h.IC.K=olympe.j.J.C([]);function am(a,b){const c=b.hj();var d=new olympe.dc.query.LQ;let e;e=c;olympe.j.Xb(e)&&(e=d.add(c));b=(b=b.bB())?Array.isArray(b)?b:[b]:null;d=olympe.dc.qg.Subscription.O(e,b,d);let f,g,k=null!=(g=null==(f=a.C.get(d))?void 0:f.getSubscription())?g:null;null===k&&(a.W.debug('QueryMGR: new',a.F?'local':'remote','subscription "',d,'": #',`${e},`,b),k=new olympe.dc.qg.Subscription(d,c,b,a.O));k.getContext().run(()=>a.process(k));return k}
|
|
1419
|
-
function fm(a,b){if(b.V())a.W.debug('ListProcessor: [ID:',b.sa(),'] - Subscription already booted, ignoring');else{a.W.debug('ListProcessor: [ID:',b.sa(),'] - Booting subscription');var c=new olympe.dc.Gf.WI(a.db,a.W),d=b.sa();olympe.j.Ua([b.hj()],e=>{const f=olympe.dc
|
|
1419
|
+
function fm(a,b){if(b.V())a.W.debug('ListProcessor: [ID:',b.sa(),'] - Subscription already booted, ignoring');else{a.W.debug('ListProcessor: [ID:',b.sa(),'] - Booting subscription');var c=new olympe.dc.Gf.WI(a.db,a.W),d=b.sa();olympe.j.Ua([b.hj()],e=>{const f=olympe.dc.Za(e);a.W.debug('ListProcessor: [ID:',b.sa(),'] - Booting with baseTag',f);b.Yf()||b.Wd();Pg(a.db,f,gm(a,b,c),d);olympe.j.sb().R(()=>Og(a.db,f,d));a.db.Cc(f.valueOf())||hm(c);b.V()||(hm(c),b.vb([]))})}}
|
|
1420
1420
|
function im(a,b,c,d){const e=[b.hj()],f=l=>l instanceof olympe.dc.Oa.En;let g;const k=(null!=(g=b.hr())?g:[]).filter(f);for(const l of k){e.push(l.hj());let m;k.push(...(null!=(m=l.hr())?m:[]).filter(f))}Wl(a.T,()=>{olympe.j.Ua(e,()=>{const l=b.Gc(c);jm(a,l,b.sa(),d)})})}
|
|
1421
1421
|
function jm(a,b,c,d){a.W.debug('CoverageProcessor: [ID:',c,'] - checking coverage of remote query over',b.length,'paths.');const e=olympe.j.sb(),f=new olympe.async.Tx(e);b.forEach(g=>{f.add((k,l)=>{let m=!1;tj(a.R,g,e,olympe.dc.Vc.SELF,olympe.dc.yb.Mf.fn).subscribe(rxjs.Subscriber.create(()=>{m||(m=!0,e.run(k))},n=>e.run(()=>l(`The query ${c} is not covered by an existing graphdef, `+`and the specific graphdef id ${g.sa()} has encountered an error: ${n}`))))})});Tc(f,(g,k)=>d(k));f.start()}
|
|
1422
1422
|
function gm(a,b,c){const d=new olympe.dc.Gf.Vw;let e=!1;const f=olympe.j.sb(),g=b.hr(),k=[];k[g?g.length:0]=(l,m,n,p)=>{f.Ef()||f.vc()||(l?b.ai(n)?a.W.warn('Adding the same index twice (should never happen) for sub #',b.sa(),', index #',n,', tag #',m):(a.W.debug('ListProcessor: [ID:',b.sa(),'] - Adding Instance',m,'to the subscription'),b.jc(n,m)):(a.W.debug('ListProcessor: [ID:',b.sa(),'] - Removing Instance',m,'from the subscription'),b.zg(n)),e||(km(c,()=>{p.lp();hm(c)}),f.run(()=>p.Ok().fq(b.vb.bind(b))),
|
|
@@ -1433,12 +1433,12 @@ olympe.dc.Da.aA.Ca=[olympe.dc.fc];olympe.dc.Da.ki=class{constructor(a){this.Da=[
|
|
|
1433
1433
|
a.toString()).join(',')+')'}};W('olympe.dc.predicates.And',olympe.dc.Da.ki);olympe.dc.Da.ki.Ca=[olympe.dc.fc];olympe.dc.Da.jA=class{constructor(a,b){this.pj=a;this.value=b}C(a,b){return a.run(()=>olympe.j.Wa([this.pj,this.value.getValue(a,b)],(c,d)=>{c=c.valueOf();return olympe.j.lc((Number(c)&Number(d.valueOf()))===Number(c))},olympe.j.fa))}Sa(){return X(olympe.dc.Da.jA)}F(){return[this.value.C()]}hb(a){const b=olympe.j.Xb(this.pj)?D(this.pj).valueOf():this.pj.valueOf();return'{"c":"'+this.Sa()+'","a":['+b+','+this.value.hb(a)+']}'}toString(){const a=olympe.j.Xb(this.pj)?D(this.pj).valueOf():this.pj.valueOf();
|
|
1434
1434
|
return this.Sa().replace(/^.+\./,'')+'('+a.toString()+','+this.value.toString()+')'}};W('olympe.dc.predicates.BitMask',olympe.dc.Da.jA);olympe.dc.Da.jA.Ca=[olympe.dc.fc];olympe.dc.Da.jn=class{constructor(a,b,c){this.source=a;this.value=b;this.O=c?c:!1}Sa(){return X(olympe.dc.Da.jn)}F(){return[this.source.C(),this.value.C()]}Ie(){return this.source}getValue(){return this.value}C(a,b){return a.run(()=>olympe.j.Wa([this.source.getValue(a,b),this.value.getValue(a,b),this.O],(c,d,e)=>{c=String(c);d=String(d);e.valueOf()||(c=c.toLowerCase(),d=d.toLowerCase());return olympe.j.lc(c.includes(d))},olympe.j.fa))}hb(a){const b=this.source.hb(a),c=this.value.hb(a);a=pm(a,this.O);
|
|
1435
1435
|
return'{"c":"'+this.Sa()+'","a":['+b+','+c+','+a+']}'}toString(){const a=om(this.O);return'Contains('+this.source.toString()+','+this.value.toString()+','+a+')'}};W('olympe.dc.predicates.Contains',olympe.dc.Da.jn);olympe.dc.Da.jn.Ca=[olympe.dc.fc];olympe.dc.Da.hk=class{constructor(a,b){this.O=a;this.R=b}Sa(){return X(olympe.dc.Da.hk)}F(){return[this.O.C(),this.R.C()]}C(a,b){return a.run(()=>olympe.j.Wa([this.O.getValue(a,b),this.R.getValue(a,b)],(c,d)=>'object'===typeof c&&void 0!==c.Ke?c.Ke(d):'object'===typeof d&&void 0!==d.Ke?d.Ke(c):olympe.j.lc(c.valueOf()===d.valueOf()),olympe.j.fa,'Test equal predicate'))}hb(a){return'{"c":"'+this.Sa()+'","a":['+this.O.hb(a)+','+this.R.hb(a)+']}'}toString(){return'Equals('+this.O.toString()+','+this.R.toString()+
|
|
1436
|
-
')'}};W('olympe.dc.predicates.Equals',olympe.dc.Da.hk);olympe.dc.Da.hk.Ca=[olympe.dc.fc];olympe.dc.Da.aO=class extends olympe.dc.Da.hk{constructor(a,b){super(a,new olympe.dc.Qc.ql(b))}};olympe.dc.Da.aO.Ca=[olympe.dc.fc];olympe.dc.Da.ux=class extends olympe.dc.Da.aA{constructor(a,b){super(a,b)}Sa(){return X(olympe.dc.Da.ux)}T(a,b){return a>b}};W('olympe.dc.predicates.Greater',olympe.dc.Da.ux);olympe.dc.Da.ys=class{constructor(a,b,c){this.O=[];this.R=c instanceof Array?c:void 0!==c?[olympe.dc
|
|
1436
|
+
')'}};W('olympe.dc.predicates.Equals',olympe.dc.Da.hk);olympe.dc.Da.hk.Ca=[olympe.dc.fc];olympe.dc.Da.aO=class extends olympe.dc.Da.hk{constructor(a,b){super(a,new olympe.dc.Qc.ql(b))}};olympe.dc.Da.aO.Ca=[olympe.dc.fc];olympe.dc.Da.ux=class extends olympe.dc.Da.aA{constructor(a,b){super(a,b)}Sa(){return X(olympe.dc.Da.ux)}T(a,b){return a>b}};W('olympe.dc.predicates.Greater',olympe.dc.Da.ux);olympe.dc.Da.ys=class{constructor(a,b,c){this.O=[];this.R=c instanceof Array?c:void 0!==c?[olympe.dc.Za(c)]:[];a=Array.isArray(a)?a:[a];for(let d=0,e=a.length;d<e;d++)c=a[d],c instanceof olympe.dc.Oa.bj?this.O.push(new sm(c.na(),c.Nc(),c.O,c.F)):this.O.push(new sm(olympe.dc.Za(c),b[d],1,1))}Sa(){return X(olympe.dc.Da.ys)}F(){return[this.O.reduce((a,b)=>a.concat(b),[])]}C(a,b){const c=a.run(()=>K(olympe.j.bb(Boolean),!1)),d=olympe.xa.Qe(),e=olympe.dc.Hb();let f=0;a=(k,l)=>{0!==this.R.length&&!this.R.includes(l)||
|
|
1437
1437
|
c.getContext().vc()||c.getContext().Ef()||(f+=k?1:-1,c.update(0<f))};const g=this.O;for(let k=g.length-1;0<=k;k--)a=tm(g[k],e,a,d+k);Pg(e,b,a,d);c.getContext().onDestroy(()=>{Og(e,b,d)});return c.wa()}hb(){return'{"c":"'+this.Sa()+'","a":['+JSON.stringify(this.O.map(a=>a.hb()))+(0!==this.R.length?',"'+this.R.toString():'')+'"]}'}toString(){return'HasRelated('+(0!==this.R.length?'#'+this.R.toString()+', ':'')+this.O.map(a=>a.hb())+')'}};W('olympe.dc.predicates.HasRelated',olympe.dc.Da.ys);
|
|
1438
|
-
function tm(a,b,c,d){const e=Object.create(null);d+=olympe.xa.Pj();const f=(g,k,l)=>{l>=a.F&&c(g,k);if(!(0<=a.C&&l>=a.C)){var m=d+l;g?e[k]||(e[k]=!0,hi(b,k,a,(n,p)=>{f(n,p,l+1)},m)):(delete e[k],b.F(k,a,m))}};return(g,k)=>f(g,k,0)}class sm extends olympe.dc.query.Relation{constructor(a,b,c,d){super(a,b,1!==c||1!==d);this.F=c;this.C=d}hb(){return`${this.na()}, ${this.Nc()}, ${this.F}, ${this.C}`}}olympe.dc.Da.ys.Ca=[olympe.dc.fc];olympe.dc.Da.SA=class{constructor(a,b,c){this.O=[];this.R=void 0!==c?c.map(olympe.dc
|
|
1438
|
+
function tm(a,b,c,d){const e=Object.create(null);d+=olympe.xa.Pj();const f=(g,k,l)=>{l>=a.F&&c(g,k);if(!(0<=a.C&&l>=a.C)){var m=d+l;g?e[k]||(e[k]=!0,hi(b,k,a,(n,p)=>{f(n,p,l+1)},m)):(delete e[k],b.F(k,a,m))}};return(g,k)=>f(g,k,0)}class sm extends olympe.dc.query.Relation{constructor(a,b,c,d){super(a,b,1!==c||1!==d);this.F=c;this.C=d}hb(){return`${this.na()}, ${this.Nc()}, ${this.F}, ${this.C}`}}olympe.dc.Da.ys.Ca=[olympe.dc.fc];olympe.dc.Da.SA=class{constructor(a,b,c){this.O=[];this.R=void 0!==c?c.map(olympe.dc.Za):null;a=Array.isArray(a)?a:[a];for(let d=0,e=a.length;d<e;d++)c=a[d],c instanceof olympe.dc.Oa.bj?this.O.push(new um(c.na(),c.Nc(),c.O,c.F)):this.O.push(new um(olympe.dc.Za(c),b[d],1,1))}Sa(){return X(olympe.dc.Da.SA)}F(){return[this.O.reduce((a,b)=>a.concat(b),[])]}C(a,b){const c=a.run(()=>K(olympe.j.bb(Boolean),!1)),d=olympe.dc.Hb(),e=olympe.xa.Pj();let f=(l,m,n)=>{m&&(null===this.R||this.R.includes(n))&&l(1)};
|
|
1439
1439
|
const g=this.O;for(let l=g.length-1;0<=l;l--)f=vm(g[l],d,f,e+l);let k=0;Pg(d,b,f.bind(null,l=>{c.getContext().Ef()||c.getContext().vc()||(k+=l,c.update(0<k))}),e);a.onDestroy(()=>Og(d,b,e));return c.wa()}hb(){return'{"c":"'+this.Sa()+'","a":['+JSON.stringify(this.O.map(a=>a.hb()))+(null!==this.R?',"'+this.R.toString():'')+'"]}'}toString(){return'HasRelatedTree('+(null!==this.R?'#['+this.R.toString()+'], ':'')+this.O.map(a=>a.hb())+')'}};W('olympe.dc.predicates.HasRelatedTree',olympe.dc.Da.SA);
|
|
1440
1440
|
function vm(a,b,c,d){const e=a.O,f=a.T,g=new Set,k=(m,n,p)=>{f.has(n)?f.get(n).set(d+p,m):f.set(n,(new Map).set(d+p,m))},l=(m,n,p,r,t)=>{const u=olympe.xa.Pj();if(r){const v=p+t,w=x=>{const y=f.get(t);if(g.has(v))throw Error(`Try to use the predicate HasRelatedTree with recursion in a graph cluster containing a loop around instances ${p} and ${t}`);void 0!==y&&null!==y&&(g.add(v),e.set(t,(e.get(t)||0)+x),Array.from(y.values()).forEach(C=>C(x)));g.delete(v)};k(m,t,p);e.has(t)?m(e.get(t)):(n>=a.F&&
|
|
1441
|
-
c(x=>{e.set(t,(e.get(t)||0)+x);m(x)},r,t),(0>a.C||n<=a.C)&&t!==p&&hi(b,t,a,l.bind(a,w,n+1,t),u))}else m(-e.get(t)),f.get(t).delete(d+p),0===f.get(t).size&&(e.delete(t),f.delete(t),b.F(t,a,u))};return(m,n,p)=>l(m,0,'origin',n,p)}class um extends olympe.dc.query.Relation{constructor(a,b,c,d){super(a,b,1!==c||1!==d);this.F=c;this.C=d;this.T=new Map;this.O=new Map}hb(){return`${this.na()}, ${this.Nc()}, ${this.F}, ${this.C}`}}olympe.dc.Da.SA.Ca=[olympe.dc.fc];olympe.dc.Da.Ju=class{constructor(a){this.O=new Set;a instanceof Array?a.forEach(b=>{this.O.add(olympe.dc
|
|
1441
|
+
c(x=>{e.set(t,(e.get(t)||0)+x);m(x)},r,t),(0>a.C||n<=a.C)&&t!==p&&hi(b,t,a,l.bind(a,w,n+1,t),u))}else m(-e.get(t)),f.get(t).delete(d+p),0===f.get(t).size&&(e.delete(t),f.delete(t),b.F(t,a,u))};return(m,n,p)=>l(m,0,'origin',n,p)}class um extends olympe.dc.query.Relation{constructor(a,b,c,d){super(a,b,1!==c||1!==d);this.F=c;this.C=d;this.T=new Map;this.O=new Map}hb(){return`${this.na()}, ${this.Nc()}, ${this.F}, ${this.C}`}}olympe.dc.Da.SA.Ca=[olympe.dc.fc];olympe.dc.Da.Ju=class{constructor(a){this.O=new Set;a instanceof Array?a.forEach(b=>{this.O.add(olympe.dc.Za(b))}):this.O.add(olympe.dc.Za(a))}Sa(){return X(olympe.dc.Da.Ju)}F(){return[]}C(a,b){const c=a.run(()=>K(olympe.j.bb(olympe.j.fa),olympe.j.fa.kb)),d=olympe.dc.Hb();let e=[];const f=()=>{e.forEach(k=>{d.F(k.tag,k.relation,k.id)});e=[]},g=(k,l)=>{if(k)if(l===olympe.dc.Za(olympe.dc.CloudObject))c.update(olympe.j.lc(this.O.has(l))),f();else{for(const m of e)if(m.tag===l)throw Error(`You should never extend a model to itself (${l})`);
|
|
1442
1442
|
this.O.has(l)?(c.update(olympe.j.fa.C),f()):(k=new wm(l,olympe.dc.CloudObject.extendRel),e.push(k),hi(d,k.tag,k.relation,g,k.id))}};a=new wm(b,olympe.dc.CloudObject.modelRel);e.push(a);hi(d,a.tag,a.relation,g,a.id);c.getContext().onDestroy(f);return c.wa()}hb(){return'{"c":"'+this.Sa()+'","a":['+JSON.stringify(Array.from(this.O))+']}'}toString(){return'InstanceOf('+Array.from(this.O).join(', ')+')'}};class wm{constructor(a,b){this.tag=a;this.relation=b;this.id=olympe.xa.Pj()}}
|
|
1443
1443
|
W('olympe.dc.predicates.InstanceOf',olympe.dc.Da.Ju);olympe.dc.Da.Ju.Ca=[olympe.dc.fc];olympe.dc.Da.Lj=class{constructor(a){this.O=a}Sa(){return X(olympe.dc.Da.Lj)}F(){return this.O.F()}C(a,b){return a.run(()=>olympe.j.Wa([this.O.C(a,b)],c=>olympe.j.lc(!c.valueOf()),olympe.j.fa))}hb(a){return`{"c":"${this.Sa()}","a":[${this.O.hb(a)}]}`}toString(){return'Not('+this.O.toString()+')'}};W('olympe.dc.predicates.Not',olympe.dc.Da.Lj);olympe.dc.Da.Lj.Ca=[olympe.dc.fc];olympe.dc.Da.rk=class{constructor(a){this.Da=[];for(let b=arguments.length,c=0;c<b;c++)Array.isArray(arguments[c])?this.Da=this.Da.concat(arguments[c]):this.Da.push(arguments[c])}Sa(){return X(olympe.dc.Da.rk)}F(){return this.Da.reduce((a,b)=>a.concat(b.F()),[])}C(a,b){return a.run(()=>olympe.j.Wa(this.Da.map(c=>c.C(a,b)),(...c)=>olympe.j.lc(c.some(d=>d.valueOf())),olympe.j.fa))}hb(a){const b=this.Da.map(c=>c.hb(a));return'{"c":"'+this.Sa()+'","a":['+b.join(',')+']}'}toString(){return'Or('+this.Da.map(a=>
|
|
1444
1444
|
a.toString()).join(',')+')'}};W('olympe.dc.predicates.Or',olympe.dc.Da.rk);olympe.dc.Da.rk.Ca=[olympe.dc.fc];olympe.dc.Da.An=class{constructor(a,b,c){this.source=a;this.R=b;this.O=void 0===c?!0:c}Sa(){return X(olympe.dc.Da.An)}F(){return[this.source.C()]}Ie(){return this.source}C(a,b){return a.run(()=>olympe.j.Wa([this.source.getValue(a,b),this.R,this.O],(c,d,e)=>{c=String(c);d=String(d);e.valueOf()||(c=c.toLowerCase(),d=d.toLowerCase());return olympe.j.lc((new RegExp(d)).test(c))},olympe.j.fa))}hb(a){const b=this.source.hb(a),c=pm(a,this.R);a=pm(a,this.O);return'{"c":"'+this.Sa()+'","a":['+b+','+c+','+
|
|
@@ -1460,7 +1460,7 @@ function Rm(a,b,c){const d=c.getContext(),e=olympe.dc.Hb(),f=a.O(),g=ci(e,b,a.R,
|
|
|
1460
1460
|
olympe.dc.Qc.uu=class{constructor(a,b,c){this.R=a&&a.na?a.na():a;this.Oa=b&&b.filter(d=>d instanceof olympe.dc.Oa.Il||d instanceof olympe.dc.Oa.bj)||null;this.F=c||null;this.defaultValue=null}Sa(){}Ae(){}O(){}C(){return(this.Oa||[]).reduce((a,b)=>a.concat(olympe.dc.query.Relation.from(b)),[])}Ni(a){this.defaultValue=a;return this}hr(){return this.Oa}hj(){return this.F}getValue(a,b){const c=a.run(()=>olympe.j.bb(this.Ae()||Object,'AbstractProperty valueType'));null!==this.defaultValue&&K(c,this.defaultValue);
|
|
1461
1461
|
b=this.F||b;null!==this.Oa?Qm(a,b,this.Oa,d=>{Rm(this,d,c)}):Rm(this,b,c);return c.wa()}hb(a){const b=pm(a,this.R),c=pm(a,this.F);let d='null';this.Oa&&(d=this.Oa.map(function(e){return e.hb(a)}).join(','));return`{"c":"${this.Sa()}","a":["${b}",${d},${c}]}`}toString(){const a=om(this.R),b=this.F?','+om(this.F):'';let c='';this.Oa&&(c=','+this.Oa.join(','));return this.Sa().replace(/^.+\./,'')+'('+a+c+b+')'}};olympe.dc.Qc.uu.Ca=[olympe.dc.yy];olympe.dc.Qc.PD=class{constructor(a,b){if(olympe.j.Ag(a))throw Error('Dataflows of Property not supported by AnyProperty');const c=a.na();var d=olympe.dc.Hb();const e=d.se(a,olympe.dm.Property.typeRel);if(!e)throw Error('Type of property '+a+'unavailable locally, cannot proceed with AnyProperty');a=d.Ap(e,olympe.dc.CloudObject.extendRel,olympe.dm.Hl);d=null;switch(1<a.length?a[a.length-2]:e){case olympe.dm.String.U.na():d=new olympe.dc.Qc.bv(c,b);break;case olympe.dm.Number.U.na():d=new olympe.dc.Qc.Fs(c,
|
|
1462
1462
|
b);break;case olympe.dm.Boolean.U.na():d=new olympe.dc.Qc.Zw(c,b);break;case olympe.dm.DateTime.U.na():d=new olympe.dc.Qc.zu(c,b)}this.F=d}Sa(){return this.F.Sa()}C(){return this.F.C()}getValue(a,b){return this.F.getValue(a,b)}hb(a){return this.F.hb(a)}toString(){return this.F.toString()}};olympe.dc.Qc.PD.Ca=[olympe.dc.yy];olympe.dc.Qc.Zw=class extends olympe.dc.Qc.uu{constructor(a,b,c){super(a,b,c)}Sa(){return X(olympe.dc.Qc.Zw)}O(){return olympe.dc.He.bC}Ae(){return olympe.j.fa}};W('olympe.dc.valuedefs.BooleanProperty',olympe.dc.Qc.Zw);olympe.dc.Qc.ql=class{constructor(a){this.value=a}Sa(){return X(olympe.dc.Qc.ql)}C(){return[]}getValue(){return this.value}hb(a){a=pm(a,this.value);return`{"c":"${this.Sa()}","a":[${a}]}`}toString(){return`Constant(${om(this.value)})`}};W('olympe.dc.valuedefs.Constant',olympe.dc.Qc.ql);olympe.dc.Qc.ql.Ca=[olympe.dc.yy];olympe.dc.Qc.zu=class extends olympe.dc.Qc.uu{constructor(a,b,c){super(a,b,c)}Sa(){return X(olympe.dc.Qc.zu)}O(){return olympe.dc.He.cC}Ae(){return olympe.j.$b}};W('olympe.dc.valuedefs.DateTimeProperty',olympe.dc.Qc.zu);olympe.dc.Qc.Fs=class extends olympe.dc.Qc.uu{constructor(a,b,c){super(a,b,c)}Sa(){return X(olympe.dc.Qc.Fs)}O(){return olympe.dc.He.dC}Ae(){return olympe.j.Z}};W('olympe.dc.valuedefs.NumberProperty',olympe.dc.Qc.Fs);olympe.dc.Qc.bv=class extends olympe.dc.Qc.uu{constructor(a,b,c){super(a,b,c)}Sa(){return X(olympe.dc.Qc.bv)}O(){return olympe.dc.He.eC}Ae(){return olympe.j.ib}};W('olympe.dc.valuedefs.StringProperty',olympe.dc.Qc.bv);olympe.dc.Qc.ev=class{Sa(){return X(olympe.dc.Qc.ev)}C(){return[]}getValue(a,b){return b}hb(){return'{"c":"'+this.Sa()+'","a":[]}'}toString(){return'Tag()'}};W('olympe.dc.valuedefs.Tag',olympe.dc.Qc.ev);olympe.dc.Qc.ev.Ca=[olympe.dc.yy];olympe.dc.Oa={};olympe.dc.Oa.Au=class{Ae(){return null}Sa(){return X(olympe.dc.Oa.Au)}C(a,b,c){const d={};return function(e,f,g,k){e?void 0===d[f]?(d[f]=1,b.C.C!==g||b.F||(b.C.C=f),c(!0,f,f,mm(k,!0,f,f))):(d[f]++,Im(b,g)):void 0!==d[f]&&0>=--d[f]&&(delete d[f],c(!1,f,f,mm(k,!1,f,f)))}}hb(){return'{"c":"'+this.Sa()+'"}'}toString(){return'Distinct()'}};W('olympe.dc.transformers.Distinct',olympe.dc.Oa.Au);olympe.dc.Oa.Au.Ca=[olympe.dc.Cn];olympe.dc.Oa.yf=class{constructor(a){this.F=a}Ae(){return null}Sa(){return X(olympe.dc.Oa.yf)}O(){return this.F.F()}C(a,b,c){function d(f,g,k,l){l=l.valueOf();!1===l&&Im(b,g);l!==!!e[g]&&(e[g]=l,c(l,f,g,mm(k,l,f,g)))}const e={};return(f,g,k,l)=>{const m='@'+k;if(f){let n=this.F.C(a,g);olympe.j.Xb(n)&&(n=n.Rb);olympe.j.sm(n)?(b.F||void 0!==olympe.j.Ra(n)||Im(b,k),e[m]=n,a.run(()=>{olympe.j.Ua([n],p=>{d(g,k,l,p)},'filterResultHandler')})):d(g,k,l,n)}else void 0!==e[m]&&(e[m].destroy(),delete e[m]),
|
|
1463
|
-
d(g,k,l,!1),delete e[k]}}hb(a){return'{"c":"'+this.Sa()+'","a":['+this.F.hb(a)+']}'}toString(){return'Filter('+this.F.toString()+')'}};W('olympe.dc.transformers.Filter',olympe.dc.Oa.yf);olympe.dc.Oa.yf.Ca=[olympe.dc.Cn,olympe.dc.eI];olympe.dc.Oa.DA=class{constructor(a,b,c,d){this.rel=new olympe.dc.Jc.Relation(olympe.dc
|
|
1463
|
+
d(g,k,l,!1),delete e[k]}}hb(a){return'{"c":"'+this.Sa()+'","a":['+this.F.hb(a)+']}'}toString(){return'Filter('+this.F.toString()+')'}};W('olympe.dc.transformers.Filter',olympe.dc.Oa.yf);olympe.dc.Oa.yf.Ca=[olympe.dc.Cn,olympe.dc.eI];olympe.dc.Oa.DA=class{constructor(a,b,c,d){this.rel=new olympe.dc.Jc.Relation(olympe.dc.Za(a),c||olympe.dc.Nb.DESTINATION);this.F=new olympe.dc.Jc.Relation(olympe.dc.Za(b),d||olympe.dc.Nb.DESTINATION)}Ae(){return eh(this.rel)}Sa(){return X(olympe.dc.Oa.DA)}C(a,b,c){const d=olympe.dc.Hb(),e={},f=this.rel.na(),g=this.rel.Nc(),k=this.F.na(),l=this.F.Nc();let m=null,n=null;const p=(t,u,v,w,x,y)=>{if(x){if(x=()=>{const C=olympe.xa.Rd(v+g+(f+'_'+t)+y,20),G=mm(u,!0,y,C);m=t;n=()=>{c(!1,y,C,mm(u,!1,y,C))};
|
|
1464
1464
|
b.register(C,v,w,f,g);c(!0,y,C,G)},x.dM=t,e[w]=x,null===m||t<m)n&&n(),x()}else if(m===t){n();e[w]=!0;x=Infinity;let C=null;for(let G=Object.keys(e),E=G.length,O=0;O<E;O++){let da=e[G[O]];da.dM<x&&(x=da.dM,C=da)}C&&C()}},r=(t,u,v,w,x)=>{w?e[x]||(e[x]=!0,Jm(b,v,x,f,g),Jm(b,v,x,k,l),hi(d,x,this.rel,p.bind(this,t,u,v,x),v+'_val'),hi(d,x,this.F,r.bind(this,t+1,u,v),v+'_follow')):(d.F(x,this.F,v+'_follow'),d.F(x,this.rel,v+'_val'),delete e[x])};return(t,u,v,w)=>r(0,w,v,t,u)}hb(){return'{"c":"'+this.Sa()+
|
|
1465
1465
|
'","a":["'+this.rel.toString()+'","'+this.F.toString()+'"]}'}toString(){return'FirstRelated('+this.rel.toString()+', '+this.F.toString()+')'}};W('olympe.dc.transformers.FirstRelated',olympe.dc.Oa.DA);olympe.dc.Oa.DA.Ca=[olympe.dc.Cn];olympe.dc.Oa.Ds=class{constructor(a,b){this.start=a;this.F=b}Ae(){return null}Sa(){return X(olympe.dc.Oa.Ds)}C(a,b,c){const d=new olympe.dc.Gf.iB;let e,f,g,k=!1;const l=()=>{if(void 0!==f&&void 0!==g&&void 0!==e){var n=f+g;b.F||(b.C.C=e[0>n-1?0:Math.min(e.length,n)-1]);Am(d,e,f,n,c)}};a.run(()=>olympe.j.Ua([this.start,this.F],(n,p)=>{f=n.valueOf();g=p.valueOf();l()}));Om(b,l);const m=Lm(b);Km(b,m);return(n,p,r,t)=>{k||(t.Ok().fq(u=>{e=u;Pm(b,m)}),km(b,()=>t.lp(),m),k=!0);d.C(n,p,r,null);lm(b,r,m)}}hb(a){return'{"c":"'+
|
|
1466
1466
|
this.Sa()+'","a":['+pm(a,this.start)+','+pm(a,this.F)+']}'}toString(){return`Limit(${olympe.j.Ra(this.start)},${olympe.j.Ra(this.F)})`}};W('olympe.dc.transformers.Limit',olympe.dc.Oa.Ds);olympe.dc.Oa.Ds.Ca=[olympe.dc.Cn];function Sm(a){return a.F.map(b=>b.na())}
|
|
@@ -1473,10 +1473,10 @@ W('olympe.dc.transformers.Sort',olympe.dc.Oa.hp);olympe.dc.Oa.hp.Ca=[olympe.dc.C
|
|
|
1473
1473
|
olympe.dc.Oa.En=class{constructor(a,b){this.Oa=this.F=null;a instanceof olympe.dc.xb?(this.F=a.hj(),this.Oa=a.bB()):(this.F=a,b&&(this.Oa=b))}Ae(){return null}Sa(){return X(olympe.dc.Oa.En)||''}hr(){return this.Oa}hj(){return this.F}C(a,b,c){const d=new olympe.dc.Gf.iB,e=new olympe.dc.Gf.Vw;let f=[],g=[],k=!1,l=!1;const m=Lm(b),n=Lm(b);Om(b,()=>{const p=f.concat(g);0<p.length?b.F||(b.C.C=p[p.length-1]):Pm(b);Am(d,p,0,p.length,c)});Km(b,n);Tm(this,a,this.F,e,b,(p,r,t,u)=>{const v=olympe.j.sb();v.Ef()||
|
|
1474
1474
|
v.vc()||(l||(u.Ok().fq(w=>{g=w;Pm(b,n)}),km(b,()=>u.lp(),n),l=!0),d.C(p,r,t),lm(b,t,n))});Km(b,m);return(p,r,t,u)=>{k||(u.Ok().fq(v=>{f=v;Pm(b,m)}),km(b,()=>u.lp(),m),k=!0);d.C(p,r,t,m);lm(b,t,m)}}hb(a){const b=this.Oa?'['+this.Oa.map(c=>c.hb(a)).join(',')+']':'null';return'{"c":"'+this.Sa()+'","a":['+pm(a,this.F)+','+b+']}'}toString(){const a=olympe.j.Xb(this.F)?'N:'+this.F.Rb.sa():this.F.valueOf(),b=this.Oa?','+this.Oa.map(c=>c.toString()).join(','):'';return'Union('+a+b+')'}};
|
|
1475
1475
|
W('olympe.dc.transformers.Union',olympe.dc.Oa.En);olympe.dc.Oa.En.Ca=[olympe.dc.Cn];olympe.dc.Oa.yB={AX:1,FO:-1,CF:0};olympe.dc.Oa.WY={lW:!0,KW:!1};olympe.dc.qg.ga={tH:'dc.legacy.listdefProcessor'};olympe.va.qe(a=>{z(a,olympe.dc.qg.ga.tH,olympe.dc.qg.gQ,olympe.dc.query.ga.Vb,olympe.dc.ga.kn,olympe.dc.transaction.ga.Zb,olympe.dc.query.ga.Xu,new olympe.va.Ab(olympe.dc.qa.Ms))});olympe.va.run([olympe.dc.qg.ga.tH],a=>{olympe.dc.qg.KT=()=>a});function Vm(a){const b=olympe.dc.Hb(),c=new Map;b.Jv(a).forEach(d=>{b.uc(d,olympe.dc.CloudObject.propertyRel).forEach(e=>{const f=b.name(e);c.has(f)||c.set(f,e)})});return c}
|
|
1476
|
-
olympe.dc.CloudObject=class{constructor(a,b){this.tag=b;this.db=olympe.dc.Hb();this.model=null}static Pf(a,b,c,...d){b=olympe.dc
|
|
1477
|
-
writable:!1});b.C.C.Fa([a]);b.Jc.register(c,a);b=c}return b}static iC(a){return olympe.dc.Hb().Cc(olympe.dc
|
|
1476
|
+
olympe.dc.CloudObject=class{constructor(a,b){this.tag=b;this.db=olympe.dc.Hb();this.model=null}static Pf(a,b,c,...d){b=olympe.dc.Za(b);var e=Rg.get(b)||null;if(e=e&&e.C)return e(a,c,...d);a=a.create(b);void 0!==c&&null!==c&&Z(a,olympe.dc.CloudObject.nameProp,c);return a.na()}static get(a){if(a instanceof olympe.dc.CloudObject)var b=a;else{b=olympe.dc.mL();a=olympe.dc.Za(a);var c=Qg(b,b.db.model(a));if(null===c)throw new olympe.dc.SH(a);c=c.instantiate(a,b.F);Object.defineProperty(c,'tag',{value:a,
|
|
1477
|
+
writable:!1});b.C.C.Fa([a]);b.Jc.register(c,a);b=c}return b}static iC(a){return olympe.dc.Hb().Cc(olympe.dc.Za(a))}static jK(a,b,c){if('undefined'===typeof olympe.sc)throw Error('Method CloudObject.createWith should only be used at runtime, when sc package exists');const d=olympe.dc.Hb();let e=null;const f=k=>{null===e&&(e=Vm(b||this));return e.has(k)?e.get(k):null},g=new Map;a.forEach((k,l)=>{d.Cc(olympe.dc.Za(l))?g.set(l,k):(l=f(l))&&g.set(l,k)});a=new olympe.sc.Lc(!1);c=a.create(null!=b?b:this,
|
|
1478
1478
|
g,c);a.wd().catch(k=>olympe.tb.Gb('dc').error(`Error occurred for transaction executed by CloudObject.createWith: ${k}`));return this.get(c)}static bK(){return this.get(this)}static qz(a){return olympe.dc.yb.qz(a)}static he(){return olympe.dc.Hb().uc(this,olympe.dc.CloudObject.propertyRel).map(a=>new olympe.dc.Jc.Property(a))}static Tj(){const a=olympe.dc.Hb();return a.uc(this,olympe.dc.CloudObject.Zv).map(b=>new olympe.dc.Jc.Relation(b)).concat(a.uc(this,olympe.dc.CloudObject.mK).map(b=>new olympe.dc.Jc.Relation(b,
|
|
1479
|
-
olympe.dc.Nb.ORIGIN)))}static km(a){return olympe.dc.CloudObject.get(a)}static ET(a){var b=Qg(olympe.dc.mL(),olympe.dc
|
|
1479
|
+
olympe.dc.Nb.ORIGIN)))}static km(a){return olympe.dc.CloudObject.get(a)}static ET(a){var b=Qg(olympe.dc.mL(),olympe.dc.Za(a));b=b&&b.F;return new olympe.dc.xb(olympe.dc.Za(a),olympe.dc.CloudObject.instancesRel,b)}na(){return this.tag}name(){return this.db.name(this)}Sa(){return this.Md(olympe.dc.CloudObject.nameProp)}zh(){this.model||(this.model=olympe.dc.CloudObject.get(this.db.model(this)));return this.model}query(){return olympe.dc.yb.from(this)}Fp(){return this.db.Fp(this)}Ie(){return this.db.source(this)}FT(){return this.db.Vv(this)?
|
|
1480
1480
|
olympe.dc.nj().fromModel(this):null}YK(){return olympe.j.Wa([this.Sa()],a=>olympe.j.cc(a),olympe.j.ib,'getDisplayName',olympe.j.cc('('+this.toString()+')'))}Df(){return this.model?this.model.na():this.db.model(this)}observe(a,b,c=!0){const d='function'===typeof a.O?a.O():a;return new rxjs.Observable(e=>{const f=this.db.Dc(this.tag,b);c||null!==f||e.next(f);const g=ci(this.db,this.tag,b,k=>{null===k||void 0===k?e.next(null):e.next(k)});d.R(()=>{e.complete();di(this.db,this.tag,b,g)});return()=>di(this.db,
|
|
1481
1481
|
this.tag,b,g)})}TU(a){const b='function'===typeof a.O?a.O():a;return new rxjs.Observable(c=>{const d=ei(this.db,this.tag,(e,f)=>{null===f||void 0===f?c.next([new olympe.dc.Jc.Property(e),null]):c.next([new olympe.dc.Jc.Property(e),f])});b.R(()=>{c.complete();fi(this.db,this.tag,d)});return()=>fi(this.db,this.tag,d)})}UU(a){return this.observe(olympe.j.sb(),a)}get(a){return this.db.Dc(this.tag,a)}Dc(a){return this.get(a)}Hc(a){return olympe.dc.yb.from(this).Hc(a)}ht(a){return olympe.dc.th.from(this).Hc(a)}Jn(){return this.uf(olympe.dc.CloudObject.wS,
|
|
1482
1482
|
olympe.dc.CloudObject)}Gv(){return this.uc(olympe.dc.CloudObject.containsRel,olympe.dc.CloudObject)}Rn(a,b,c){const d=olympe.j.bb(c,'Sync valueType'),e=ci(this.db,this.tag,a,olympe.j.sb().F(f=>{b&&null!==f&&void 0!==f&&(f=b(f));null===f||void 0===f?d.clear():d.update(f)}));d.getContext().onDestroy(()=>di(this.db,this.tag,a,e));return d.getContext()}Md(a){return tb(this.Rn(a,olympe.dc.He.eC,olympe.j.ib))}$f(a){return tb(this.Rn(a,olympe.dc.He.dC,olympe.j.Z))}Qn(a){return tb(this.Rn(a,olympe.dc.He.bC,
|
|
@@ -1500,7 +1500,7 @@ olympe.va.run([olympe.dc.db.ga.Zb,olympe.dc.transaction.ga.Zb,olympe.dc.ga.HF,ol
|
|
|
1500
1500
|
olympe.dm.zi.F=bh('014831d95f83635090ea','ADMIN_USERS_ROLE');olympe.dm.zi.prototype.Sa.K=olympe.j.J.R;olympe.dm.zi.prototype.C.K=olympe.j.J.R;olympe.dm.zi.prototype.F.K=olympe.j.J.T;olympe.dm.User=class extends olympe.dc.CloudObject{vT(){return this.sC()}Sa(){return this.sC()}sC(){return this.Md(olympe.dm.User.loginProp)}IP(){return this.Md(olympe.dm.User.F)}HP(){return olympe.j.ib.EMPTY}bU(){return this.Md(olympe.dm.User.saltProp)}qU(){return this.Md(olympe.dm.User.verifierProp)}$T(){return this.uc(olympe.dm.User.O,olympe.dm.zi)}};olympe.dm.User.U=olympe.dc.Ha.C('ff021000000000000003',olympe.dm.User);olympe.dm.User.loginProp=olympe.dm.User.U.ca('ff023000000000000001');
|
|
1501
1501
|
q('olympe.dm.User.loginProp',olympe.dm.User.loginProp);olympe.dm.User.F=olympe.dm.User.U.ca('ff023000000000000002');olympe.dm.User.V=olympe.dm.User.U.ca('ff023000000000000003');olympe.dm.User.saltProp=olympe.dm.User.U.ca('ff023000000000000004');q('olympe.dm.User.saltProp',olympe.dm.User.saltProp);olympe.dm.User.verifierProp=olympe.dm.User.U.ca('ff023000000000000005');q('olympe.dm.User.verifierProp',olympe.dm.User.verifierProp);olympe.dm.User.T=olympe.dm.User.U.ca('ff023000000000000020');
|
|
1502
1502
|
olympe.dm.User.SAMLnameIdProp=olympe.dm.User.U.ca('ff023000000000000036');q('olympe.dm.User.SAMLnameIdProp',olympe.dm.User.SAMLnameIdProp);olympe.dm.User.O=Y(olympe.dm.User.U,olympe.dm.zi.C);olympe.dm.User.aa=olympe.dm.User.U.ob('ff022000000000000002');olympe.dm.User.C=bh('014831d95fd7d12b8568','ADMIN_USER');olympe.dm.User.R=bh('0163d9653067b6237f62','GUEST_USER');h=olympe.dm.User.prototype;h.vT.K=olympe.j.J.R;h.Sa.K=olympe.j.J.R;h.sC.K=olympe.j.J.R;h.IP.K=olympe.j.J.R;h.HP.K=olympe.j.J.R;
|
|
1503
|
-
h.bU.K=olympe.j.J.R;h.qU.K=olympe.j.J.R;h.$T.K=new olympe.j.J(()=>olympe.dc.xb,[]);olympe.dm.rl=class extends olympe.dc.CloudObject{R(){return this.Gv()}zb(){return this.Md(olympe.dm.rl.Fa)}};olympe.dm.rl.U=olympe.dc.Ha.C('01621fb84e3300000000',olympe.dm.rl);olympe.dm.rl.Fa=olympe.dm.rl.U.ca('01609de3f292e3c2c6ff');olympe.dm.rl.prototype.R.K=new olympe.j.J(()=>olympe.j.wg,[]);olympe.dm.rl.prototype.zb.K=olympe.j.J.R;olympe.dm.BrickMetadata=class extends olympe.dm.rl{rU(){return this.Md(olympe.dm.BrickMetadata.zb)}Zh(){return this.Md(olympe.dm.BrickMetadata
|
|
1503
|
+
h.bU.K=olympe.j.J.R;h.qU.K=olympe.j.J.R;h.$T.K=new olympe.j.J(()=>olympe.dc.xb,[]);olympe.dm.rl=class extends olympe.dc.CloudObject{R(){return this.Gv()}zb(){return this.Md(olympe.dm.rl.Fa)}};olympe.dm.rl.U=olympe.dc.Ha.C('01621fb84e3300000000',olympe.dm.rl);olympe.dm.rl.Fa=olympe.dm.rl.U.ca('01609de3f292e3c2c6ff');olympe.dm.rl.prototype.R.K=new olympe.j.J(()=>olympe.j.wg,[]);olympe.dm.rl.prototype.zb.K=olympe.j.J.R;olympe.dm.BrickMetadata=class extends olympe.dm.rl{rU(){return this.Md(olympe.dm.BrickMetadata.zb)}Zh(){return this.Md(olympe.dm.BrickMetadata.$a)}$h(){return null}dT(){return this.uc(olympe.sc.Oe.Comment.C.Vd(),olympe.sc.Oe.Comment)}Qd(){return this.ht(olympe.dm.BrickMetadata.$).Sh().Qd()}};olympe.dm.BrickMetadata.U=gh(olympe.dc.Ha.C('01621fb84e3500000000',olympe.dm.BrickMetadata));olympe.dm.BrickMetadata.zb=olympe.dm.BrickMetadata.U.ca('01621fb84e320000f001');olympe.dm.BrickMetadata.$a=olympe.dm.BrickMetadata.U.ca('01703376c4a81c0e9d94');
|
|
1504
1504
|
olympe.dm.BrickMetadata.$=olympe.dm.BrickMetadata.U.ob('0161ae97622bb21f335b');olympe.dm.BrickMetadata.ec={yY:'private',AY:'public'};olympe.dm.BrickMetadata.vb=bh('01703376c4a81c0e9d95','BRICK_STATUS');olympe.dm.BrickMetadata.yk={XW:'experimental',OY:'stable',JW:'deprecated'};h=olympe.dm.BrickMetadata.prototype;h.rU.K=olympe.j.J.R;h.Zh.K=olympe.j.J.R;h.$h.K=new olympe.j.J(()=>String,[]);h.dT.K=new olympe.j.J(()=>olympe.dc.xb,[]);h.Qd.K=olympe.j.J.V;function wk(a,b){const c=a.query().Hc(olympe.dm.Xi.F.Vd()).Hc(olympe.dm.Xi.C);a=a.query().Hc(olympe.dm.yd.T.Vd()).qp(olympe.dm.yd.C,!0).Hc(olympe.sc.Zg.C.Vd());const d=e=>e.Ai().qp(olympe.dc.CloudObject.extendRel,!0).Hc(olympe.dc.CloudObject.Zv,!0).Hc(olympe.dm.Relation.destinationModelRel).back(2).Hc(olympe.dc.CloudObject.propertyRel,!0).Hc(olympe.dm.Property.typeRel).observe(b);return rxjs.combineLatest([d(c),d(a)]).pipe(rxjs.operators.map(([e,...f])=>e.concat(...f)))}
|
|
1505
1505
|
function Sk(a,b){return a.observe(b,olympe.dm.DataSource.hK).pipe(rxjs.operators.map(()=>a.Qj(olympe.dc.sources.qa.nl)),rxjs.operators.distinctUntilChanged())}
|
|
1506
1506
|
olympe.dm.DataSource=class extends olympe.dc.CloudObject{constructor(a,b,c){super(a,b);this.cg=c;this.iK=new Map([[olympe.dc.sources.qa.qB,olympe.dm.DataSource.dV],[olympe.dc.sources.qa.nl,olympe.dm.DataSource.hK],[olympe.dc.sources.qa.vB,olympe.dm.DataSource.lV]])}sa(){return this.tag===olympe.dm.DataSource.SERVER?olympe.dc.Vc.SERVER:this.tag}Qj(a){a=a.startsWith('data.')?a.split('.')[1]:a;const b=`${'data.'}${a}`;let c,d,e;return null!=(e=null!=(d=null!=(c=olympe.va.getParameter(`${'data.'}${this.name().toLowerCase().replace(/\W/g,
|
|
@@ -1531,28 +1531,28 @@ h=olympe.dm.Relation.prototype;h.JT.K=olympe.j.J.R;h.XS.K=olympe.j.J.F;h.VT.K=ol
|
|
|
1531
1531
|
olympe.dm.Enum.U=olympe.dc.Ha.C('016cdd861b32d56c81f7',olympe.dm.Enum);olympe.dm.Enum.rankProp=olympe.dm.Enum.U.ca('017a7690c915975ea995');olympe.dm.Enum.prototype.Se.K=olympe.j.J.F;olympe.dm.Jo=class extends olympe.dm.BrickMetadata{oU(){return this.Hc(olympe.dc.CloudObject.instancesRel).ku(olympe.dm.Enum.rankProp,olympe.dc.query.Sx.ASC).Sh()}static create(a,b){b=a.create(olympe.dm.Jo,(new Map).set(olympe.dc.CloudObject.nameProp,b));a.Sb(olympe.dc.CloudObject.extendRel,b,olympe.dm.Enum);return b}};olympe.dm.Jo.create=olympe.dm.Jo.create;olympe.dm.Jo.prototype.getValues=olympe.dm.Jo.prototype.oU;olympe.dm.Jo.U=olympe.dc.Ha.C('017a768f966fc08ebb98',olympe.dm.Jo);olympe.dm.Number=class extends olympe.dm.Hl{getValue(){return this.$f(olympe.dm.Number.valueProp)}};olympe.dm.Number.U=olympe.dc.Ha.C('ff021000000000000013',olympe.dm.Number);olympe.dm.Number.valueProp=olympe.dm.Number.U.ca('ff023000000000000028');q('olympe.dm.Number.valueProp',olympe.dm.Number.valueProp);olympe.dm.Number.prototype.getValue.K=olympe.j.J.F;olympe.sc={};olympe.sc.ga={Vb:'sc.Logger',ay:'sc.RootContext',uk:'sc.Serializer'};olympe.sc.qa={cn:'sc.app',Fo:'sc.debug',IE:'sc.debugger',uA:'sc.disableTheme',PRODUCTION:'sc.production',zQ:'sc.onstartTimeout',lI:'sc.remoteActionTimeout',OH:'sc.offlineStart'};
|
|
1532
1532
|
olympe.va.qe(a=>{B(a,olympe.sc.qa.cn,'');B(a,olympe.sc.qa.OH,!1);B(a,olympe.sc.qa.Fo,!1);B(a,olympe.sc.qa.uA,!0);B(a,olympe.sc.qa.PRODUCTION,!1);B(a,olympe.sc.qa.zQ,2E4);B(a,olympe.sc.qa.lI,1E4);A(a,olympe.sc.ga.Vb,[olympe.tb.ga.Zb],b=>b.Vg('sc'));z(a,olympe.sc.ga.uk,olympe.sc.Kq,olympe.dc.ga.kn);za(a,olympe.dc.sources.ga.uk,olympe.sc.ga.uk);A(a,olympe.sc.ga.ay,[new olympe.va.Ab(olympe.sc.qa.PRODUCTION)],b=>{const c=new olympe.sc.li('root','root',null);olympe.sc.TC=c;c.set(olympe.sc.Kb.C.PRODUCTION,
|
|
1533
1533
|
b);return new olympe.sc.Kb(c)})},'olympe.sc');olympe.va.run([olympe.sc.ga.ay],a=>{olympe.Vy().ctx=a});olympe.sc.rz=()=>null!==olympe.dc.Hb().se(void 0,olympe.sc.Runnable.V.Vd());olympe.sc.ZZ=(a,b,c,d)=>{c=Z(Z(a.create(olympe.sc.$g),olympe.sc.$g.C,c||null),olympe.sc.$g.O,d||null);a.Sb(olympe.sc.$g.F,c,b);a.Sb(olympe.dc.CloudObject.containsRel,b,c);return c.na()};olympe.sc.pp=a=>{a=olympe.dc.He.pp(a);return a instanceof olympe.sc.Mj?a.C():a};olympe.sc.t_=a=>{a=Ng(a);return a instanceof olympe.sc.Mj?a.C():a};
|
|
1534
|
-
olympe.sc.p_=function(a){const b=olympe.dm.Fe.F.Vd(),c=olympe.dc.CloudObject.containsRel.Vd();var d=olympe.dc
|
|
1534
|
+
olympe.sc.p_=function(a){const b=olympe.dm.Fe.F.Vd(),c=olympe.dc.CloudObject.containsRel.Vd();var d=olympe.dc.Za(a);if(void 0===d)return[];a=olympe.dc.Hb();var e=a.model(d);const f=[],g=[];let k=[];if(a.zt(e,olympe.dm.Fe))k.push(d);else{for(e=[];null===a.se(d,b);){e.push(d);const l=a.se(d,c);if(null===l)return olympe.tb.Gb('sc').warn(`Object ${d} has no container`),[];a.ag(d,olympe.sc.logic.kd)||l===a.se(d,olympe.sc.Runnable.V.Vd())||f.push(d);d=l;if(e.includes(d))throw Error(`Instance ${d} (${a.name(d)}) is part of a cyclic contain pattern`);
|
|
1535
1535
|
}g.push(d);k.push(a.se(g[0],b))}k=k.concat(a.Ap(k[0],olympe.dm.Fe.Ja));k=k.concat(a.Ap(k[k.length-1],olympe.dm.Sg.aa.Vd()));k=k.concat(a.Ap(k[k.length-1],olympe.dm.Sg.V.Vd()));return[...f,...g,...k].reverse()};olympe.sc.uT=a=>{a=a&&a.valueOf()||'';return a.startsWith('image/')?olympe.sc.Al:a.startsWith('video/')?olympe.sc.Rq:a.startsWith('font/')||a.startsWith('application/font-woff')?olympe.sc.kg:olympe.dm.File};
|
|
1536
1536
|
olympe.sc.n_=a=>a instanceof olympe.sc.Al?'image/*':a instanceof olympe.sc.Rq?'video/*':a instanceof olympe.sc.kg?'font/*,application/font-woff':null;olympe.sc.Yd={};function Wm(a){const b=olympe.dc.Hb();let c;try{const d=[a];let e=a.getParent();for(;null!==e&&e.C!==olympe.sc.TC;)d.unshift(e),e=e.getParent();c=d.map(f=>{const g=f.Vl();return null!==g?(f=b.model(g),b.name(g)||f&&b.name(f)||g):f.sa()}).join(' > ')}catch(d){c=`No stack available for context ${a.sa()}: ${d}`,a.W.warn(c)}return c}
|
|
1537
|
-
function Xm(a,b){var c=olympe.sc.Kb,d=a.C;a=a.O();b=olympe.dc
|
|
1537
|
+
function Xm(a,b){var c=olympe.sc.Kb,d=a.C;a=a.O();b=olympe.dc.Za(b);let e,f=null==(e=d.children)?void 0:e.get(b);if(!f){f=d.In(a,void 0,b);for(d=f.getParent();d&&d.aa&&!d.id.startsWith('_');)d=d.getParent();let g;null==(g=d)||Ym(g,b,f)}return new c(f)}function Zm(a){let b;return null!=(b=a.Ra(olympe.sc.Kb.C.EDITION))?b:!1}function $m(a){let b;return null!=(b=a.Ra(olympe.sc.Kb.C.PRODUCTION))?b:!1}
|
|
1538
1538
|
olympe.sc.Kb=class{constructor(a=olympe.sc.TC){this.C=a;this.W=olympe.tb.Gb('sc');this.parent=null}sa(){return this.C.sa()}getParent(){if(null===this.parent){const a=this.C.getParent();this.parent=null===a?null:new olympe.sc.Kb(a)}return this.parent}bT(a){const b=olympe.dc.Hb();let c=this.getParent();const d=e=>{if(e.Vl()){const f=b.model(e.Vl());if(f&&b.Dc(f,olympe.sc.Ic.ba)||a.modelTag&&!b.ag(e.Vl(),a.modelTag))return!1}return!0};for(;c&&!d(c);)c=c.getParent();return c}Vl(){return this.C.Vl()}O(){return this.C.C}set(a,
|
|
1539
|
-
b){this.C.set(a,b);return this}Rr(a){return this.set(a,Date.now())}remove(a){this.set(a,null)}wa(a,b,c=!1){const d=olympe.dc
|
|
1540
|
-
d.next.bind(d),c?void 0:this.C.sa(),!1);this.onDestroy(()=>{f();d.complete()});return f})}repeat(a,b){const c=an(this.C,a);a=b.subscribe(d=>{null!==d?this.set(c,d):this.remove(c)});this.lr(a.unsubscribe.bind(a));return this}mV(a){a=a instanceof olympe.sc.Runnable?a:this.get(a);if(!a)return null;const b=this.In(`Runner ${a.name()}`);a.run(b);return b}FD(a,b=!0,c=!1){return
|
|
1541
|
-
`created from a call to \`waitFor(${olympe.dc
|
|
1542
|
-
(a(),'noId'):this.O().onDestroy(a)}Tn(a){this.vc()||this.O().Tn(a)}clear(){this.C.clear()}vc(){return this.O().vc()}Dc(a){a=cn(this.C,a);return null!==a?new olympe.sc.ui.pl(a,this):null}Qy(a){a=cn(this.C,a);return null!==a?new olympe.sc.ui.mA(a,this):null}SU(...a){return rxjs.combineLatest(a.map(b=>{b=cn(this.C,b);return null!==b?this.observe(b):
|
|
1543
|
-
|
|
1544
|
-
olympe.sc.Kb.prototype.
|
|
1545
|
-
olympe.sc.Kb.prototype.
|
|
1546
|
-
olympe.sc.Kb.C={PRODUCTION:'__production',EDITION:'__editionMode',TRANSACTION:'__transaction',Eo:'__htmlContainer',mq:'__dockableElement'};olympe.sc.mJ=class extends olympe.sc.Kb{constructor(a){super(a);this.F=new olympe.j.Kd('SC Update Context',super.O());const b=a.lr(()=>{b&&a.vz(b);this.F.destroy()})}O(){return this.F}lr(a,b){return this.O().onDestroy(a,null!=b?b:olympe.xa.Qe())}};function an(a,b){b=olympe.dc
|
|
1539
|
+
b){this.C.set(a,b);return this}Rr(a){return this.set(a,Date.now())}remove(a){this.set(a,null)}wa(a,b,c=!1){const d=olympe.dc.Za(a),e=olympe.j.bb(b||Object,`Get context value flow source of ${d}`);e.getContext().onDestroy(this.on(a,f=>{null===f?e.clear():e.update(f)},c?this.C.sa():void 0));return e.wa()}get(a,b=!1){a=this.Ra(a,b);return void 0!==a?a:null}has(a,b=!1){return this.C.has(a,b)}observe(a,b=!0,c=!1){return new rxjs.Observable(d=>{const e=this.get(a);b||null!==e||d.next(e);const f=this.on(a,
|
|
1540
|
+
d.next.bind(d),c?void 0:this.C.sa(),!1);this.onDestroy(()=>{f();d.complete()});return f})}repeat(a,b){const c=an(this.C,a);a=b.subscribe(d=>{null!==d?this.set(c,d):this.remove(c)});this.lr(a.unsubscribe.bind(a));return this}mV(a){a=a instanceof olympe.sc.Runnable?a:this.get(a);if(!a)return null;const b=this.In(`Runner ${a.name()}`);a.run(b);return b}FD(a,b=!0,c=!1){return new Promise((d,e)=>{this.observe(a,b,c).pipe(rxjs.operators.first()).subscribe(rxjs.Subscriber.create(d,f=>{let g=`An error occurred while calling \`waitFor(${olympe.dc.Za(a)})\``+
|
|
1541
|
+
`on the context ${this.sa()}:\nStack: ${Wm(this)}\n${f}`;f instanceof rxjs.EmptyError&&(g=`The context ${this.sa()} has been destroyed while a Promise `+`created from a call to \`waitFor(${olympe.dc.Za(a)})\` `+`has never received any value:\nStack: ${Wm(this)}`);e(Error(g))}))})}LM(a){this.set(olympe.sc.Kb.C.Eo,a);return this}Ra(a,b=!0){return this.C.Ra(a,b)}on(a,b,c,d=!0){return this.C.on(a,b,c,d)}In(a){return new olympe.sc.Kb(this.C.In(this.O(),a))}xz(a,b){return this.C.xz(a,c=>{b(new olympe.sc.Kb(c))})}ST(a){a=
|
|
1542
|
+
bn(this.C,a);return a===this.C?this:a&&new olympe.sc.Kb(a)}destroy(){this.C.destroy()}lr(a,b){return this.C.lr(a,b)}vz(a){this.C.vz(a)}onDestroy(a){return this.vc()?(a(),'noId'):this.O().onDestroy(a)}Tn(a){this.vc()||this.O().Tn(a)}clear(){this.C.clear()}vc(){return this.O().vc()}Dc(a){a=cn(this.C,a);return null!==a?new olympe.sc.ui.pl(a,this):null}Qy(a){a=cn(this.C,a);return null!==a?new olympe.sc.ui.mA(a,this):null}SU(...a){return rxjs.combineLatest(a.map(b=>{b=cn(this.C,b);return null!==b?this.observe(b):
|
|
1543
|
+
rxjs.of(null)}))}Yb(a){return(null==a?void 0:a.constructor)!==this.constructor?!1:this.C===a.C}};olympe.sc.Kb.prototype.observeMany=olympe.sc.Kb.prototype.SU;olympe.sc.Kb.prototype.getEvent=olympe.sc.Kb.prototype.Qy;olympe.sc.Kb.prototype.getProperty=olympe.sc.Kb.prototype.Dc;olympe.sc.Kb.prototype.isDestroyed=olympe.sc.Kb.prototype.vc;olympe.sc.Kb.prototype.clear=olympe.sc.Kb.prototype.clear;olympe.sc.Kb.prototype.offDestroy=olympe.sc.Kb.prototype.Tn;olympe.sc.Kb.prototype.onDestroy=olympe.sc.Kb.prototype.onDestroy;
|
|
1544
|
+
olympe.sc.Kb.prototype.offClear=olympe.sc.Kb.prototype.vz;olympe.sc.Kb.prototype.onClear=olympe.sc.Kb.prototype.lr;olympe.sc.Kb.prototype.destroy=olympe.sc.Kb.prototype.destroy;olympe.sc.Kb.prototype.getOtherContext=olympe.sc.Kb.prototype.ST;olympe.sc.Kb.prototype.onContext=olympe.sc.Kb.prototype.xz;olympe.sc.Kb.prototype.createChild=olympe.sc.Kb.prototype.In;olympe.sc.Kb.prototype.setParentElement=olympe.sc.Kb.prototype.LM;olympe.sc.Kb.prototype.waitFor=olympe.sc.Kb.prototype.FD;
|
|
1545
|
+
olympe.sc.Kb.prototype.runner=olympe.sc.Kb.prototype.mV;olympe.sc.Kb.prototype.repeat=olympe.sc.Kb.prototype.repeat;olympe.sc.Kb.prototype.observe=olympe.sc.Kb.prototype.observe;olympe.sc.Kb.prototype.has=olympe.sc.Kb.prototype.has;olympe.sc.Kb.prototype.get=olympe.sc.Kb.prototype.get;olympe.sc.Kb.prototype.remove=olympe.sc.Kb.prototype.remove;olympe.sc.Kb.prototype.trigger=olympe.sc.Kb.prototype.Rr;olympe.sc.Kb.prototype.set=olympe.sc.Kb.prototype.set;olympe.sc.Kb.prototype.getClosest=olympe.sc.Kb.prototype.bT;
|
|
1546
|
+
olympe.sc.Kb.prototype.getParent=olympe.sc.Kb.prototype.getParent;olympe.sc.Kb.C={PRODUCTION:'__production',EDITION:'__editionMode',TRANSACTION:'__transaction',Eo:'__htmlContainer',mq:'__dockableElement'};olympe.sc.mJ=class extends olympe.sc.Kb{constructor(a){super(a);this.F=new olympe.j.Kd('SC Update Context',super.O());const b=a.lr(()=>{b&&a.vz(b);this.F.destroy()})}O(){return this.F}lr(a,b){return this.O().onDestroy(a,null!=b?b:olympe.xa.Qe())}};function an(a,b){b=olympe.dc.Za(b);let c,d,e,f;return null!=(f=null!=(e=null==(c=a.V)?void 0:c.get('I#'+b))?e:null==(d=a.V)?void 0:d.get('IO#'+b))?f:b}function bn(a,b){if(b===a.id||a.O.has(b)||!b)return a;for(a=a.parent;a;){if(b===a.sa()||a.O.has(b))return a;const c=dn(a.children,b);if(c)return c;a=a.getParent()}return null}function cn(a,b){let c;return(null==(c=a.V)?void 0:c.get('IO#'+b))||null}
|
|
1547
1547
|
function en(a){a.C.R(()=>{fn(a,c=>c.destroy())});a.C.onDestroy(()=>{void 0!==a.Ra(olympe.sc.Kb.C.TRANSACTION,!1)&&a.W.warn(`The context ${a.sa()} is being destroyed but still has unreleased transactions. You probably forgot to end a transaction.`);let c;if(null!=(c=a.parent)){let d;null==(d=c.children)||d.delete(a.sa());let e;0===(null==(e=c.children)?void 0:e.size)&&(c.children=null)}a.O.clear()});let b;null==(b=a.parent)||gn(b,a)}
|
|
1548
|
-
function dn(a,b){if(null===a)return null;if(a.has(b))return a.get(b);for(const c of a.values())if(c.aa&&!c.id.startsWith('_')&&(a=dn(c.children,b)))return a;return null}function hn(a,b){a.$=olympe.dc
|
|
1548
|
+
function dn(a,b){if(null===a)return null;if(a.has(b))return a.get(b);for(const c of a.values())if(c.aa&&!c.id.startsWith('_')&&(a=dn(c.children,b)))return a;return null}function hn(a,b){a.$=olympe.dc.Za(b);a.aa=b.ng().rz();b.ba().forEach(c=>{a.id===c||a.O.has(c)||(a.O.add(c),Ym(a,c,a))});a.V=b.$()}function jn(a){a.ba=!0;let b;null==(b=a.children)||b.forEach(c=>{jn(c)})}function kn(a){a.ba=!1;let b;null==(b=a.children)||b.forEach(c=>{kn(c)})}
|
|
1549
1549
|
function ln(a,...b){var c=olympe.sc.Yd.Jl.C.BB;if(null!==a.Yd)for(const {Cz:d,depth:e}of a.Yd.values())d.process(a,c,e,...b)}function mn(a,b,c,d){const e='$'+b;a.T.add(b);c.map(f=>'@'+f+'.'+b).forEach(f=>{let g,k;null==(g=a.F)||null==(k=g.get(f))||k.forEach(l=>{l(d)})});fn(a,f=>{!f.ba&&f.T.has(b)||f.data.has(e)||mn(f,b,c,d)});a.T.delete(b)}
|
|
1550
1550
|
function nn(a,b,c){a.F||(a.F=new Map);let d=a.F.get(b);void 0===d&&(d=new Map,a.F.set(b,d));olympe.sc.li.C+=1;const e=olympe.sc.li.C;d.set(e,c);return()=>{const f=a.F.get(b);f&&(f.delete(e),0===f.size&&a.F.delete(b))}}function Ym(a,b,c){a.T.add(b);let d;const e=null==(d=a.F)?void 0:d.get('&'+b);if(e)for(const f of e.values())f(c);fn(a,f=>{f.T.has(b)||Ym(f,b,c)});a.T.delete(b)}function fn(a,b){let c;null==(c=a.children)||c.forEach(b)}function on(a,b){a.data.forEach((c,d)=>b(c,d.slice(1)))}
|
|
1551
1551
|
function pn(a,b){if(null!==a.Yd&&a.Yd.has(b)){var {Cz:c,depth:d}=a.Yd.get(b);fn(a,e=>{pn(e,b)});0===d&&c.F();a.Yd.delete(b);0===a.Yd.size&&(a.Yd=null)}}function qn(a,b,c=0){null===a.Yd&&(a.Yd=new Map);a.Yd.has(b.sa())||(a.Yd.set(b.sa(),{Cz:b,depth:c}),fn(a,d=>{(-1===b.O||c<b.O)&&qn(d,b,c+1)}),a.onDestroy(()=>{pn(a,b.sa())}));b.sa()}function rn(a){var b=olympe.sc.Yd.Jl.F.Fq;const c=[];if(null!==a.Yd)for(const {Cz:d}of a.Yd.values())d.getType()===b&&(c.push(d.sa()),d.F(),pn(a,d.sa()))}
|
|
1552
1552
|
function gn(a,b){null===a.children&&(a.children=new Map);a.children.set(b.id,b)}
|
|
1553
|
-
olympe.sc.li=class{constructor(a,b='no name',c=olympe.sc.TC){this.id=a;this.Rh=b;this.O=new Set;this.parent=c;this.C=new olympe.j.Kd('SC Context');this.data=new Map;this.$=this.R=this.children=this.F=null;this.aa=!1;this.T=new Set;this.ba=!1;this.V=null;this.W=olympe.tb.Gb('sc');this.Yd=null;en(this)}sa(){return this.id}getParent(){return this.parent}Vl(){return this.$}set(a,b){if(!this.C.Ef()&&!this.C.vc()){const f=olympe.dc
|
|
1553
|
+
olympe.sc.li=class{constructor(a,b='no name',c=olympe.sc.TC){this.id=a;this.Rh=b;this.O=new Set;this.parent=c;this.C=new olympe.j.Kd('SC Context');this.data=new Map;this.$=this.R=this.children=this.F=null;this.aa=!1;this.T=new Set;this.ba=!1;this.V=null;this.W=olympe.tb.Gb('sc');this.Yd=null;en(this)}sa(){return this.id}getParent(){return this.parent}Vl(){return this.$}set(a,b){if(!this.C.Ef()&&!this.C.vc()){const f=olympe.dc.Za(a);var c,d,e;let g;a=null!=(g=null!=(e=null==(c=this.V)?void 0:c.get('O#'+
|
|
1554
1554
|
f))?e:null==(d=this.V)?void 0:d.get('IO#'+f))?g:f;c='$'+a;(d=this.data.get(c))&&d.valueOf&&(d=d.valueOf());void 0===b||null===b?void 0!==d&&(this.data.delete(c),null!==this.Yd&&0<this.Yd.size&&ln(this,a,null),mn(this,a,['*',this.id,...this.O],null)):((e=void 0===d)||(e=!('function'===typeof b.Yb?b.Yb(d):b.valueOf()===d.valueOf())),e&&(this.data.set(c,b),null!==this.Yd&&0<this.Yd.size&&ln(this,a,b),mn(this,a,['*',this.id,...this.O],b)))}}on(a,b,c,d=!0){if(this.C.vc()||this.C.Ef())return()=>{};const e=
|
|
1555
|
-
an(this,a),f=c?olympe.dc
|
|
1555
|
+
an(this,a),f=c?olympe.dc.Za(c):'*';a=nn(this,'@'+f+'.'+e,b);c=c?(c=bn(this,f))?c.Ra(e,!1):void 0:this.Ra(e);void 0!==c&&b(c);if(d)olympe.j.sb().onDestroy(a);return a}has(a,b=!1){a='$'+an(this,a);let c=this.data.has(a),d=this.getParent();if(b)for(;!c&&d;)c=d.data.has(a),d=d.getParent();return c}In(a,b,c){const d=null!=c?c:'_'+olympe.xa.Qe();if(a.vc()||a.Ef())throw Error(`Try to create new child context in a destroyed context ${a.sa()}, probably because \`runner()\` is called on a destroyed context`);
|
|
1556
1556
|
const e=a.run(()=>new olympe.sc.li(d,b,this));null!==this.Yd&&0<this.Yd.size&&this.Yd.forEach(({Cz:f,depth:g})=>{(-1===f.O||g<f.O)&&qn(e,f,g+1)});return e}xz(a,b){const c=bn(this,a);if(c)return b(c),()=>{};const d=nn(this,'&'+a,e=>{d&&d();b(e)});return d}Ra(a,b=!0){a='$'+an(this,a);let c=this.data.get(a),d=this.getParent();if(b)for(;void 0===c&&null!==d;)c=d.data.get(a),d=d.getParent();return c}destroy(){this.C.Ef()||this.C.vc()||this.C.destroy()}lr(a,b){if(this.C.vc())a();else return++olympe.sc.li.C,
|
|
1557
1557
|
b=b||String(olympe.sc.li.C),null===this.R&&(this.R=new Map),this.R.set(b,a),b;return b||'noId'}vz(a){null!==this.R&&this.R.delete(a)}onDestroy(a){return this.vc()?(a(),'noId'):this.C.onDestroy(a)}clear(){if(!this.C.Ef()&&!this.C.vc()){let a;null==(a=this.R)||a.forEach(b=>b())}}vc(){return this.C.vc()}};olympe.sc.li.prototype.getParent=olympe.sc.li.prototype.getParent;olympe.sc.li.C=0;olympe.sc.li.F={JO:'I#',DQ:'O#',KO:'IO#'};function sn(a,b,c){return(c=c.Vl())?`${a}.${c}.${b}`:`${a}.${b}`}olympe.sc.Yd.Jl=class{constructor(a=-1){this.id=olympe.xa.Wq();this.active=!0;this.O=a}F(){this.active=!1}sa(){return this.id}getType(){}process(){}};olympe.sc.Yd.Jl.C={BB:'SET'};olympe.sc.Yd.Jl.F={Fq:'REMOTE',YP:'LOCAL'};olympe.sc.Yi=class a{constructor(){this.F=this.R=this.T=null;this.V=new Map;this.O=new Map;this.C=new olympe.xa.NB(1E4);Va(this.C,b=>{rn(b)})}ba(b,c,d){const e=b.body(),f=e.c,g=this.V.get(f);switch(e.t){case olympe.sc.Yi.C.FQ:c=this.O.get(e.f);b.ei(c).catch(m=>{d.error('Unable to reply with paths: ',m)});break;case olympe.sc.Yi.C.GQ:const k=f+c,l=(m,n,p=0)=>{on(m,(r,t)=>{let u;r instanceof olympe.dc.CloudObject?u=a.O(r):u=r;let v;r=null!=(v=m.Vl())?v:'';0<r.length&&(r+='.');n.push([`${p}.${r}${t}`,
|
|
1558
1558
|
u])})};b.KC(k).then(()=>{const m=[];l(g,m,0);fn(g,p=>{l(p,m,1)});olympe.ea.Ud.publish(k,{t:olympe.sc.Yi.C.IO,v:m,ts:0}).catch(p=>{d.error('Error publishing on service : ',p)});const n=new olympe.sc.Yd.ZQ(k);qn(g,n);this.C.has(g)?Ua(this.C,g):this.C.add(g)}).catch(m=>{d.error('Error notifying on a contextId : ',m)});break;case olympe.sc.Yi.C.IQ:void 0!==g&&this.C.has(g)&&Ua(this.C,g);break;case olympe.sc.Yi.C.xA:void 0!==g&&(this.C.delete(g),rn(g))}}$(b,c,d){this.T=new olympe.ea.Ud('discovery_debug_id',
|
|
@@ -1569,8 +1569,8 @@ h.getInputs.K=new olympe.j.J(()=>olympe.dc.xb,[]);h.getOutputs.K=new olympe.j.J(
|
|
|
1569
1569
|
function Bn(a,b){var c=a.Df();const d=a.db.name(c),e=`Brick ${d} successfully run`,f=`Brick ${d} successfully cleared`,g=a.la(b);c=a.setupExecution(b).pipe(rxjs.operators.map(k=>{if(!b.vc()&&(b.clear(),null!==k)){const l=Array.isArray(k)?k:[k],m=new olympe.sc.mJ(b.C);m.O().run(()=>ha(function*(){try{yield a.update(m,l,g)}catch(n){a.Fa(m,n)}}));return!0}return!1})).subscribe(rxjs.Subscriber.create(k=>k?a.W.debug(e):a.W.debug(f),a.Fa.bind(a,b),()=>a.W.debug(`Brick ${d} completed`)));b.onDestroy(c.unsubscribe.bind(c))}
|
|
1570
1570
|
function Cn(a,b,c,d){const e=d.O(),f=hi(a.db,b,c,e.F((g,k)=>{const l=Xm(d,k);g?olympe.dc.CloudObject.get(k).run(l):l.destroy()}));e.onDestroy(a.db.F.bind(a.db,b,c,f,!0))}function zn(a,b){if(1===b.length)return[(d,e)=>{null!==e?a.set(d,e):a.remove(d)}];const c=b.map(()=>new Map);return c.map(d=>(e,f)=>{null!==f?d.set(e,f):d.delete(e);a:{for(const g of c)if(f=g.get(e),void 0!==f){a.set(e,f);break a}a.remove(e)}})}
|
|
1571
1571
|
function An(a,b,c){const d=olympe.j.sb(),e=ei(a.db,a.tag,d.F((f,g,k)=>{const l=k?c:b;null!==l&&(null===g||void 0===g?l(f,null):l(f,olympe.sc.pp(g)),k&&b&&b(f,null))}));d.onDestroy(()=>{fi(a.db,a.tag,e)})}
|
|
1572
|
-
olympe.sc.Runnable=class extends olympe.dm.BrickMetadata{constructor(a,b,c){super(a,b);this.W=c}run(a){a.O().run(()=>{yn(this,a);this.init(a);if(this.ng().Uv())Bn(this,a);else{const b=new olympe.sc.mJ(a.C);b.O().run(()=>this.update(b,[],[]))}this
|
|
1573
|
-
Cn(this,d,olympe.sc.Ic.F,a),this.Mb()&&Cn(this,d,olympe.sc.Ic.aa,a)}
|
|
1572
|
+
olympe.sc.Runnable=class extends olympe.dm.BrickMetadata{constructor(a,b,c){super(a,b);this.W=c}run(a){a.O().run(()=>{yn(this,a);this.init(a);if(this.ng().Uv())Bn(this,a);else{const b=new olympe.sc.mJ(a.C);b.O().run(()=>this.update(b,[],[]))}this.$a(a);a.lr(this.clear.bind(this,a));a.onDestroy(this.destroy.bind(this,a))})}ng(){return this.zh()}init(a){this.onInit(a)}update(a,b,c){const d=this.ng();if(d.Uv())this.onUpdate(a,b,c);else this.W.debug(`Softcoded runnable ${this.db.name(this)} with tag ${this.tag} running in context ${a.sa()}`),
|
|
1573
|
+
Cn(this,d,olympe.sc.Ic.F,a),this.Mb()&&Cn(this,d,olympe.sc.Ic.aa,a)}$a(a){a.Rr(olympe.sc.Ic.Ja)}clear(){}destroy(a){this.onDestroy(a)}setupExecution(){return rxjs.of([])}la(){return[]}onInit(){}onUpdate(){const a=this.Df(),b=this.db.name(a),c=this.db.name(this.db.model(a));this.W.error(`No code was found for the following brick: ${b}: ${c} (${a})\n\n`+'This is probably because the code has not yet been deployed to the environment, or because the package.json does not import the required dependencies.')}onDestroy(){}getInputs(){return vn(this.ng())}getOutputs(){return wn(this.ng())}ba(){return[]}$(){return new Map}Mb(){return!1}Aa(a,
|
|
1574
1574
|
b,c,d,e=!0){a=b.wa(a,c,e);void 0!==d&&olympe.j.Ni(a,d);return a}O(a,b,c,d,e){olympe.j.Cg([d],f=>{b.set(a,olympe.j.jM(f)?f.valueOf():f)});return this.Aa(a,b,c,e)}T(){return[this.aa,this.V]}aa(a,b){An(this,b,null)}V(a,b){An(this,null,b)}Ba(a,b){const c=this.db,d=olympe.sc.logic.kd.O.Vd(),e=olympe.sc.logic.kd.C,f=olympe.sc.logic.kd.F;this.Ky(d,g=>{var k=g.na();if(k=c.se(k,e)||c.se(k,f))return Dn(g,a,b.bind(null,k))})}vb(a,b){const c=olympe.sc.Jf.O.Vd();this.Ky(c,d=>d.Ky(olympe.sc.Jf.C,e=>{const f=e.na(),
|
|
1575
1575
|
g=a.on(En(d,f),k=>{b(f,k)});return()=>{g();b(f,null)}}))}Fa(a,b){b=b instanceof Error?`${b.message}\n${b.stack}`:b;this.W.error(`An error occurred in brick ${Wm(a)} (${this.Df()}):\n${b}`)}};olympe.sc.Runnable.U=gh(olympe.dc.Ha.C('01130000000000ca1100',olympe.sc.Runnable));olympe.sc.Runnable.aa=olympe.sc.Runnable.U.ob('01692a4af82e8984742b');olympe.sc.Runnable.V=olympe.sc.Runnable.U.ob('01756a18d4921c103111');olympe.sc.Runnable.w_=Y(olympe.sc.Runnable.U,olympe.sc.Ic.F);
|
|
1576
1576
|
olympe.sc.Runnable.x_=Y(olympe.sc.Runnable.U,olympe.sc.Ic.T);olympe.sc.Runnable.z_=Y(olympe.sc.Runnable.U,olympe.sc.Ic.aa);Y(olympe.sc.Ic.U,olympe.sc.Runnable.aa);Y(olympe.sc.Ic.U,olympe.sc.Runnable.V);olympe.sc.Runnable.prototype.ng.K=new olympe.j.J(()=>olympe.sc.Ic,[]);olympe.sc.Runnable.prototype.Aa.K=new olympe.j.J(()=>Object,[]);olympe.sc.Runnable.prototype.O.K=olympe.j.J.O;function Fn(a){if(a){if('string'===typeof a)return a;if(a instanceof olympe.sc.Mj)return(a=a.F())?a.valueOf():null;if('function'===typeof a.na)return a.na()}return null}olympe.sc.Mj=class extends olympe.dc.CloudObject{F(){return this.db.uc(this,olympe.sc.Mj.C)[0]}C(){return olympe.dc.CloudObject.get(Fn(this))}toString(){const a=Fn(this);let b;a&&(b=this.db.name(a));return b||super.toString()}};olympe.sc.Mj.U=olympe.dc.Ha.C('0163c9ae01f2d6e9ca49',olympe.sc.Mj);olympe.sc.Mj.C=olympe.sc.Mj.U.ob('0169b5a8a33144fb0b49');
|
|
@@ -1580,12 +1580,12 @@ olympe.sc.Ih=class extends olympe.dc.CloudObject{};olympe.sc.Ih.Bf={uH:0,kB:1,Ee
|
|
|
1580
1580
|
k=new Date;c=(new Map).set(olympe.dm.File.fileNameProp,null!=c?c:'file').set(olympe.dm.File.urlProp,d).set(olympe.dm.File.modificationDateProp,k).set(olympe.dm.File.mimeTypeProp,null!=e?e:'application/data');g&&null!==f.Dc(b,olympe.dm.File.urlProp)||c.set(olympe.dm.File.creationDateProp,k).set(olympe.dm.File.F,!1);a.lM(b,c)}};olympe.sc.File.setURLContent=olympe.sc.File.kD;olympe.sc.File.setContent=olympe.sc.File.Fd;olympe.sc.File.createFromURL=olympe.sc.File.yS;olympe.sc.File.createFromContent=olympe.sc.File.xS;
|
|
1581
1581
|
olympe.sc.File.U=ah(olympe.dm.File,'ff021000000000000031',olympe.sc.File);olympe.sc.Al=class extends olympe.sc.File{O(){const a=olympe.j.bb(olympe.j.ib);this.$q(b=>{a.update(olympe.j.cc(b))});return a.wa()}};olympe.sc.Al.U=ah(olympe.sc.File,'01644b6297305d62fca2',olympe.sc.Al);olympe.sc.Al.U.C=olympe.sc.File.C.bind(null,olympe.sc.Al);olympe.sc.Al.prototype.O.K=olympe.j.J.R;olympe.sc.kg=class extends olympe.sc.File{Vh(){return this.Md(olympe.sc.kg.fontFamilyProp)}Lk(){return this.Md(olympe.sc.kg.O)}Wh(){return this.$f(olympe.sc.kg.R)}};olympe.sc.kg.U=ah(olympe.sc.File,'01647e113043c637b541',olympe.sc.kg);olympe.sc.kg.fontFamilyProp=olympe.sc.kg.U.ca('01647e35ecd24ef0b88d');olympe.sc.kg.O=olympe.sc.kg.U.ca('01647e677f5d1cfbdf42');olympe.sc.kg.R=olympe.sc.kg.U.ca('01647e6780999bf8bd25');
|
|
1582
1582
|
olympe.sc.kg.U.C=(a,b,c,d)=>{c=olympe.sc.File.C(olympe.sc.kg,a,b,c,d);a.update(c,olympe.sc.kg.fontFamilyProp,b.split('.')[0]);return c};olympe.sc.kg.prototype.Vh.K=olympe.j.J.R;olympe.sc.kg.prototype.Lk.K=olympe.j.J.R;olympe.sc.kg.prototype.Wh.K=olympe.j.J.F;olympe.sc.Rq=class extends olympe.sc.File{};olympe.sc.Rq.U=ah(olympe.sc.File,'0164643c432146a71d5c',olympe.sc.Rq);olympe.sc.Rq.U.C=olympe.sc.File.C.bind(null,olympe.sc.Rq);olympe.sc.OJ=class extends olympe.dc.CloudObject{};olympe.sc.OJ.U=olympe.dc.Ha.C('016421bb3797e22d1c4e',olympe.sc.OJ);olympe.sc.logic={};olympe.sc.logic.pF=(a,b)=>a===b?0:a>b?1:-1;
|
|
1583
|
-
olympe.sc.logic.SX=(a,b,c,d,e,f,g)=>{const k=b.na();b=olympe.j.Ra(b.getType().na());let l,m;if(b===olympe.dc
|
|
1583
|
+
olympe.sc.logic.SX=(a,b,c,d,e,f,g)=>{const k=b.na();b=olympe.j.Ra(b.getType().na());let l,m;if(b===olympe.dc.Za(olympe.dm.String))l=c.valueOf().toLowerCase(),m=p=>p.Md(k).toLowerCase();else if(b===olympe.dc.Za(olympe.dm.Number))l=c.valueOf(),m=p=>p.$f(k);else if(b===olympe.dc.Za(olympe.dm.DateTime))l=c.getTime(),m=p=>olympe.j.Wa([p.Ov(k)],r=>r.getTime(),Number,'FilterList Date&DateTime TransformFlows');else{c=olympe.dc.Hb().name(b);g.warn(`Properties of type ${c} are not supported. List will not be filtered.`);e(a);
|
|
1584
1584
|
return}let n;if('<'===f)n=(p,r)=>olympe.sc.logic.pF(r,p);else if('>'===f)n=(p,r)=>olympe.sc.logic.pF(p,r);else{g.error(`Unknown inequality ${f}. Please use '<' or '>'`);return}e(a.gj().filter(p=>olympe.j.Wa([m(p)],r=>{r=n(r.valueOf(),l);return olympe.j.lc(d.valueOf()?1===r:0<=r)},olympe.j.fa,'FilterList ListDefBuilder Filter TransformFlows')).ge())};
|
|
1585
1585
|
olympe.sc.logic.YZ=(a,b)=>{if(a instanceof olympe.j.Z)return a;if(a instanceof olympe.j.ib)return a.aN();if(a instanceof olympe.j.fa)return a.tL();if('string'===typeof a||'number'===typeof a)return olympe.j.ya(Number(a));b.error(`Could not parse provided value ${a} into a number`);return olympe.j.Z.JH};olympe.sc.logic.Jc={};function In(a){fh(a.U,(b,c)=>{b=b.create(a.U.F);Z(b,olympe.dc.CloudObject.nameProp,c);return b.na()})}olympe.sc.logic.Jc.iF=class{constructor(a,b,c){this.U=olympe.dc.Ha.C(a,b,...c);In(this)}na(){return this.U.na()}getInputs(){return vn(olympe.dc.CloudObject.get(this.U))}getOutputs(){return wn(olympe.dc.CloudObject.get(this.U))}};olympe.sc.logic.Jc.iF.Ca=[olympe.dc.jk];const Jn=Object.create(null),Kn=new Map;function Ln(a){if(void 0===Jn[a])throw Error(`Tag: ${a} - does not correspond to a registered function`);return ch(a)}function Mn(a,b,c=olympe.sc.logic.Function){if(Kn.has(a))throw c=Ln(a),Error(`Tag: ${a} - overwriting existing function definition "${c.name}" with "${b.name}"`);const d=olympe.dc.Ha.C(a,b,...[]);Kn.set(a,{U:d,m_:b,TZ:c});return d}
|
|
1586
|
-
olympe.sc.logic.Ha=class{constructor(){}static C(a,b,...c){if(Jn[a])throw c=Ln(a),Error(`Tag: ${a} - overwriting already defined function "${c.name}" with "${b.name}"`);b=new olympe.sc.logic.Jc.iF(a,b,[olympe.sc.ga.Vb].concat(c));return Jn[a]=b}};olympe.sc.logic.EE=class a{static C(b){var c=olympe.sc.ui.Cd.O;let d=!1;const e=olympe.dc
|
|
1587
|
-
olympe.sc.logic.Cu=class extends olympe.sc.logic.hx{static create(a,b){return new olympe.sc.logic.Error(b,a)}};olympe.sc.logic.Cu.U=olympe.dc.Ha.C('016eeb5ede9f3094d8f0',olympe.sc.logic.Cu);olympe.sc.logic.sh=class extends olympe.dc.CloudObject{C(){return this.uf(olympe.sc.logic.sh.C,olympe.dc.CloudObject)}};olympe.sc.logic.sh.U=olympe.dc.Ha.C('016ac4f59ee8ea2081ba',olympe.sc.logic.sh);olympe.sc.logic.sh.F=olympe.sc.logic.sh.U.ca('017bc044aeacce7ffc8f');olympe.sc.logic.sh.C=olympe.sc.logic.sh.U.ob('016ac4f5a0091c4790e2');Y(olympe.dc.CloudObject.U,olympe.sc.logic.sh.C);olympe.sc.logic.sh.prototype.C.K=new olympe.j.J(()=>olympe.dc.CloudObject,[]);olympe.sc.logic.Dq=class extends olympe.sc.logic.sh{};olympe.sc.logic.Dq.U=olympe.dc.Ha.C('016ac4f59c592b862457',olympe.sc.logic.Dq);olympe.sc.logic.Dq.O=olympe.sc.uh.C.Vd();olympe.sc.logic.Dq.U.C=(a,b,c,d,e)=>{b=Ml(a,b||'New Predefined Input',olympe.sc.logic.Dq,olympe.sc.logic.Sd);Z(b,olympe.sc.logic.sh.F,e);a.Sb(olympe.sc.logic.sh.C,b,c);a.Sb(olympe.sc.uh.C,d,b);return b.na()};olympe.sc.logic.fp=class extends olympe.sc.logic.sh{};olympe.sc.logic.fp.U=olympe.dc.Ha.C('016ac4f59dd99f5df3e1',olympe.sc.logic.fp);olympe.sc.logic.fp.O=Y(olympe.sc.logic.fp.U,olympe.sc.uh.F);olympe.sc.logic.fp.U.C=(a,b,c,d,e)=>{b=Ml(a,b||'New Predefined Output',olympe.sc.logic.fp,olympe.sc.logic.je);Z(b,olympe.sc.logic.sh.F,e);a.Sb(olympe.sc.logic.sh.C,b,c);a.Sb(olympe.sc.uh.F,d,b);return b.na()};olympe.sc.logic.Gj=class extends olympe.sc.Ic{$h(){return olympe.sc.df.ej.DI}R(){return this.Gv().gj().ag([olympe.sc.logic.Function]).and().ne().ag([olympe.sc.logic.lh,olympe.sc.logic.mh]).ge()}wT(){return this.getInputs().gj().Sv([olympe.dc.CloudObject.modelRel,olympe.sc.logic.Dq.O]).ge()}xT(){return this.getOutputs().gj().Sv([olympe.dc.CloudObject.modelRel,olympe.sc.logic.fp.O]).ge()}Sj(a){const b=this.db.Jy(this,[olympe.sc.Ic.O],c=>this.db.model(c)===olympe.dc
|
|
1588
|
-
null}On(a){const b=this.db.Jy(this,[olympe.sc.Ic.R],c=>this.db.model(c)===olympe.dc
|
|
1586
|
+
olympe.sc.logic.Ha=class{constructor(){}static C(a,b,...c){if(Jn[a])throw c=Ln(a),Error(`Tag: ${a} - overwriting already defined function "${c.name}" with "${b.name}"`);b=new olympe.sc.logic.Jc.iF(a,b,[olympe.sc.ga.Vb].concat(c));return Jn[a]=b}};olympe.sc.logic.EE=class a{static C(b){var c=olympe.sc.ui.Cd.O;let d=!1;const e=olympe.dc.Za(c),f=olympe.dc.Hb();f.uc(b,olympe.sc.Jf.O.Vd()).forEach(g=>{d=d||f.uc(g,olympe.sc.Jf.C).includes(e)});!1===d&&(d=null!==a.F(c,b));return d}static F(b,c){const d=olympe.sc.logic.kd.O,e=olympe.sc.logic.kd.C,f=olympe.sc.logic.kd.lu,g=olympe.dc.Hb();let k=null;g.uc(c,d.Vd()).some(l=>g.se(l,e)===b.na()?(k=g.se(l,f)||null,!0):!1);return k}};olympe.sc.logic.hx=class extends olympe.dc.CloudObject{};olympe.sc.logic.hx.U=olympe.dc.Ha.C('01621fb84e320000cf00',olympe.sc.logic.hx);olympe.sc.logic.Error=class{constructor(a,b){this.code=a;this.C=b}static create(a,b){return new olympe.sc.logic.Error(b,a)}MT(){return this.C}cT(){return this.code}};q('olympe.sc.logic.Error',olympe.sc.logic.Error);olympe.sc.logic.Error.prototype.getCode=olympe.sc.logic.Error.prototype.cT;olympe.sc.logic.Error.prototype.getMessage=olympe.sc.logic.Error.prototype.MT;olympe.sc.logic.Error.create=olympe.sc.logic.Error.create;
|
|
1587
|
+
olympe.sc.logic.Cu=class extends olympe.sc.logic.hx{static create(a,b){return new olympe.sc.logic.Error(b,a)}};olympe.sc.logic.Cu.U=olympe.dc.Ha.C('016eeb5ede9f3094d8f0',olympe.sc.logic.Cu);olympe.sc.logic.sh=class extends olympe.dc.CloudObject{C(){return this.uf(olympe.sc.logic.sh.C,olympe.dc.CloudObject)}};olympe.sc.logic.sh.U=olympe.dc.Ha.C('016ac4f59ee8ea2081ba',olympe.sc.logic.sh);olympe.sc.logic.sh.F=olympe.sc.logic.sh.U.ca('017bc044aeacce7ffc8f');olympe.sc.logic.sh.C=olympe.sc.logic.sh.U.ob('016ac4f5a0091c4790e2');Y(olympe.dc.CloudObject.U,olympe.sc.logic.sh.C);olympe.sc.logic.sh.prototype.C.K=new olympe.j.J(()=>olympe.dc.CloudObject,[]);olympe.sc.logic.Dq=class extends olympe.sc.logic.sh{};olympe.sc.logic.Dq.U=olympe.dc.Ha.C('016ac4f59c592b862457',olympe.sc.logic.Dq);olympe.sc.logic.Dq.O=olympe.sc.uh.C.Vd();olympe.sc.logic.Dq.U.C=(a,b,c,d,e)=>{b=Ml(a,b||'New Predefined Input',olympe.sc.logic.Dq,olympe.sc.logic.Sd);Z(b,olympe.sc.logic.sh.F,e);a.Sb(olympe.sc.logic.sh.C,b,c);a.Sb(olympe.sc.uh.C,d,b);return b.na()};olympe.sc.logic.fp=class extends olympe.sc.logic.sh{};olympe.sc.logic.fp.U=olympe.dc.Ha.C('016ac4f59dd99f5df3e1',olympe.sc.logic.fp);olympe.sc.logic.fp.O=Y(olympe.sc.logic.fp.U,olympe.sc.uh.F);olympe.sc.logic.fp.U.C=(a,b,c,d,e)=>{b=Ml(a,b||'New Predefined Output',olympe.sc.logic.fp,olympe.sc.logic.je);Z(b,olympe.sc.logic.sh.F,e);a.Sb(olympe.sc.logic.sh.C,b,c);a.Sb(olympe.sc.uh.F,d,b);return b.na()};olympe.sc.logic.Gj=class extends olympe.sc.Ic{$h(){return olympe.sc.df.ej.DI}R(){return this.Gv().gj().ag([olympe.sc.logic.Function]).and().ne().ag([olympe.sc.logic.lh,olympe.sc.logic.mh]).ge()}wT(){return this.getInputs().gj().Sv([olympe.dc.CloudObject.modelRel,olympe.sc.logic.Dq.O]).ge()}xT(){return this.getOutputs().gj().Sv([olympe.dc.CloudObject.modelRel,olympe.sc.logic.fp.O]).ge()}Sj(a){const b=this.db.Jy(this,[olympe.sc.Ic.O],c=>this.db.model(c)===olympe.dc.Za(a));return b?olympe.dc.CloudObject.get(b):
|
|
1588
|
+
null}On(a){const b=this.db.Jy(this,[olympe.sc.Ic.R],c=>this.db.model(c)===olympe.dc.Za(a));return b?olympe.dc.CloudObject.get(b):null}lU(){return this.getInputs().gj().Sv([olympe.dc.CloudObject.modelRel],olympe.sc.logic.Sd).ge()}mU(){return this.getOutputs().gj().Sv([olympe.dc.CloudObject.modelRel],olympe.sc.logic.je).ge()}};olympe.sc.logic.Gj.U=Mn('01621fb84e320000f000',olympe.sc.logic.Gj,olympe.sc.logic.Function);h=olympe.sc.logic.Gj.prototype;h.wT.K=new olympe.j.J(()=>olympe.dc.xb,[]);
|
|
1589
1589
|
h.xT.K=new olympe.j.J(()=>olympe.dc.xb,[]);h.Sj.K=new olympe.j.J(()=>olympe.sc.logic.Sd,[]);h.On.K=new olympe.j.J(()=>olympe.sc.logic.je,[]);h.lU.K=new olympe.j.J(()=>olympe.dc.xb,[]);h.mU.K=new olympe.j.J(()=>olympe.dc.xb,[]);olympe.sc.logic.Ao=class extends olympe.sc.logic.Gj{C(){return this.Sj('016ac63229782039429f')}O(){return this.On('016ac6322acf67eebfe7')}T(){return this.getOutputs().gj().Hc(olympe.sc.logic.ff.typeRel).pz(olympe.sc.logic.Cu).ge().bd().Gi(olympe.j.Z.ZERO)}};olympe.sc.logic.Ao.C='016ac63229782039429f';olympe.sc.logic.Ao.V='016ac6322acf67eebfe7';olympe.sc.logic.Ao.U=Mn('01621fb84e320000a000',olympe.sc.logic.Ao,olympe.sc.logic.Action);
|
|
1590
1590
|
olympe.sc.logic.Ao.prototype.C.K=new olympe.j.J(()=>olympe.sc.logic.Sd,[]);olympe.sc.logic.Ao.prototype.O.K=new olympe.j.J(()=>olympe.sc.logic.je,[]);olympe.sc.logic.Ao.prototype.T.K=olympe.j.J.T;olympe.sc.logic.yE=class extends olympe.sc.logic.Gj{};olympe.sc.logic.yE.U=Mn('01621fb84e320000f011',olympe.sc.logic.yE);olympe.sc.logic.xE=class extends olympe.sc.logic.Ao{};olympe.sc.logic.xE.U=Mn('01621fb84e320000f012',olympe.sc.logic.xE);function Nn(a,b,c){a.update=(d,e,f)=>{c(...e.map(olympe.dc.He.tS),...f)};yn(a,b);Bn(a,b)}
|
|
1591
1591
|
olympe.sc.logic.Function=class extends olympe.sc.Runnable{T(){return[this.Ba]}$(){const a=olympe.sc.li.F.JO,b=olympe.sc.li.F.DQ,c=this.db,d=new Map;this.getInputs().forEach(e=>{d.set(a+c.name(e),e)});this.getOutputs().forEach(e=>{d.set(b+c.name(e),e)});return d}la(a){return this.getOutputs().map(b=>this.db.FC(b,olympe.sc.logic.ff.typeRel,olympe.sc.logic.hx)?a.Rr.bind(a,b):a.set.bind(a,b))}setupExecution(a){const b=this.getInputs();return 0<b.length?rxjs.combineLatest(b.map(c=>a.observe(c))).pipe(rxjs.operators.map(c=>
|
|
@@ -1595,15 +1595,15 @@ olympe.sc.logic.Sd.R=olympe.sc.logic.Sd.U.ob('01621fb84e32000000d1',olympe.dc.Nb
|
|
|
1595
1595
|
olympe.sc.logic.je.U.C=function(a,b,c,d,e,f=olympe.sc.logic.je){f=a.create(f);Z(f,olympe.dc.CloudObject.nameProp,b||'New output');a.Sb(olympe.sc.logic.ff.typeRel,f,c);void 0!==e&&Z(f,olympe.sc.logic.ff.C,e);d&&a.Sb(olympe.sc.Ic.R,d,f);return f.na()};olympe.sc.logic.Action=class extends olympe.sc.logic.Function{setupExecution(a){const b=this.ng().C().na();return a.observe(b).pipe(rxjs.operators.map(c=>null===c?null:this.getInputs().filter(d=>d!==b).map(d=>a.get(d))))}};olympe.sc.logic.Action.U=olympe.dc.Ha.C('0168c6f020f2a96a0000',olympe.sc.logic.Action,olympe.sc.ga.Vb);olympe.sc.logic.lh=class extends olympe.sc.logic.Function{run(a){yn(this,a);const b=a.getParent(),c=this.db.se(this,olympe.sc.logic.lh.F),d=this.db.se(this,olympe.sc.logic.lh.C);a.on(c,e=>b.set(d,e),this.tag)}C(){return this.uf(olympe.sc.logic.lh.F,olympe.sc.logic.Sd)}F(){return this.uf(olympe.sc.logic.lh.C,olympe.sc.logic.je)}};olympe.sc.logic.lh.U=olympe.dc.Ha.C('01621fb84e32000000a0',olympe.sc.logic.lh,olympe.sc.ga.Vb);olympe.sc.logic.lh.F=Y(olympe.sc.logic.lh.U,olympe.sc.logic.Sd.O);
|
|
1596
1596
|
olympe.sc.logic.lh.C=Y(olympe.sc.logic.lh.U,olympe.sc.logic.je.R);olympe.sc.logic.lh.U.C=function(a,b,c){b=a.create(olympe.sc.logic.lh);a.Sb(olympe.sc.logic.lh.C,b,c);return b.na()};olympe.sc.logic.lh.prototype.C.K=new olympe.j.J(()=>olympe.sc.logic.Sd,[]);olympe.sc.logic.lh.prototype.F.K=new olympe.j.J(()=>olympe.sc.logic.je,[]);olympe.sc.logic.mh=class extends olympe.sc.logic.Function{run(a){const b=a.getParent(),c=this.db.se(this,olympe.sc.logic.mh.C),d=this.db.se(this,olympe.sc.logic.mh.F);b.on(c,e=>a.set(d,e),b.sa())}F(){return this.uf(olympe.sc.logic.mh.C,olympe.sc.logic.Sd)}C(){return this.uf(olympe.sc.logic.mh.F,olympe.sc.logic.je)}};olympe.sc.logic.mh.U=olympe.dc.Ha.C('01621fb84e32000000d0',olympe.sc.logic.mh,olympe.sc.ga.Vb);olympe.sc.logic.mh.C=Y(olympe.sc.logic.mh.U,olympe.sc.logic.Sd.R);
|
|
1597
1597
|
olympe.sc.logic.mh.F=Y(olympe.sc.logic.mh.U,olympe.sc.logic.je.O);olympe.sc.logic.mh.U.C=function(a,b,c){b=a.create(olympe.sc.logic.mh);a.Sb(olympe.sc.logic.mh.C,b,c);return b.na()};olympe.sc.logic.mh.prototype.F.K=new olympe.j.J(()=>olympe.sc.logic.Sd,[]);olympe.sc.logic.mh.prototype.C.K=new olympe.j.J(()=>olympe.sc.logic.je,[]);function Dn(a,b,c){const d=a.db.se(a,olympe.sc.logic.kd.R)||a.db.se(a,olympe.sc.logic.kd.Rz),e=a.db.se(a,olympe.sc.logic.kd.lu),f=a.db.zt(On(a),olympe.dm.Hl)?new olympe.j.Kd('Pipe Context'):null,g=a.C.bind(a,c,f);if(null!==d&&null!==e){let l;const m=b.xz(e,n=>{l&&l();l=n.on(d,g,e)});return()=>{g(null);m();l&&l()}}const k=ci(a.db,a,olympe.sc.logic.kd.valueProp,g);return()=>{g(null);di(a.db,a,olympe.sc.logic.kd.valueProp,k)}}
|
|
1598
|
-
function On(a){let b=null,c=a.db.se(a,olympe.sc.logic.kd.C);c?b=a.db.se(c,olympe.dm.Property.typeRel):(c=a.db.se(a,olympe.sc.logic.kd.F))&&(b=a.db.se(c,olympe.sc.logic.ff.typeRel));return b||olympe.dc
|
|
1598
|
+
function On(a){let b=null,c=a.db.se(a,olympe.sc.logic.kd.C);c?b=a.db.se(c,olympe.dm.Property.typeRel):(c=a.db.se(a,olympe.sc.logic.kd.F))&&(b=a.db.se(c,olympe.sc.logic.ff.typeRel));return b||olympe.dc.Za(olympe.dc.CloudObject)}
|
|
1599
1599
|
olympe.sc.logic.kd=class extends olympe.dc.CloudObject{constructor(a,b,c){super(a,b);this.W=c}C(a,b,c){const d=olympe.sc.pp(c);null==b||b.la();b&&d instanceof olympe.dm.Hl?null==b||b.run(()=>{olympe.j.Ua([d.getValue()],e=>{a(e.valueOf())})}):a(d)}getValue(a){return this.Rn(olympe.sc.logic.kd.valueProp,a||olympe.dc.He.pp,Object)}getType(){const a=this.transform(olympe.sc.logic.kd.F,olympe.sc.logic.ff.typeRel);a.Mh(olympe.dc.CloudObject);return a.Ld()}jU(){return this.uf(olympe.sc.logic.kd.lu,olympe.dc.CloudObject)}hU(){return this.uf(olympe.sc.logic.kd.R,
|
|
1600
1600
|
olympe.sc.logic.je)}iU(){return this.uf(olympe.sc.logic.kd.Rz,olympe.dm.Property)}nT(){return this.uf(olympe.sc.logic.kd.O,olympe.dc.CloudObject)}lT(){return this.uf(olympe.sc.logic.kd.F,olympe.sc.logic.Sd)}mT(){return this.uf(olympe.sc.logic.kd.C,olympe.dm.Property)}};olympe.sc.logic.kd.U=olympe.dc.Ha.C('0168a431d91f25780000',olympe.sc.logic.kd,olympe.sc.ga.Vb);olympe.sc.logic.kd.valueProp=olympe.sc.logic.kd.U.ca('0168a431d91f25780001');olympe.sc.logic.kd.lu=olympe.sc.logic.kd.U.ob('0168a431d91f25780002');
|
|
1601
1601
|
olympe.sc.logic.kd.R=Y(olympe.sc.logic.kd.U,olympe.sc.logic.je.F);olympe.sc.logic.kd.Rz=olympe.sc.logic.kd.U.ob('0168a431d91f25780004');olympe.sc.logic.kd.O=olympe.sc.logic.kd.U.ob('0168a431d91f2578000a');olympe.sc.logic.kd.F=Y(olympe.sc.logic.kd.U,olympe.sc.logic.Sd.F);olympe.sc.logic.kd.C=olympe.sc.logic.kd.U.ob('0168a431d91f2578000c');Y(olympe.dc.CloudObject.U,olympe.sc.logic.kd.lu);Y(olympe.dm.Property.U,olympe.sc.logic.kd.Rz);Y(olympe.dc.CloudObject.U,olympe.sc.logic.kd.O);
|
|
1602
1602
|
Y(olympe.dm.Property.U,olympe.sc.logic.kd.C);h=olympe.sc.logic.kd.prototype;h.getType.K=new olympe.j.J(()=>olympe.dc.CloudObject,[]);h.jU.K=new olympe.j.J(()=>olympe.dc.CloudObject,[]);h.hU.K=new olympe.j.J(()=>olympe.sc.logic.je,[]);h.iU.K=new olympe.j.J(()=>olympe.dm.Property,[]);h.nT.K=new olympe.j.J(()=>olympe.dc.CloudObject,[]);h.lT.K=new olympe.j.J(()=>olympe.sc.logic.Sd,[]);h.mT.K=new olympe.j.J(()=>olympe.dm.Property,[]);function Pn(a,b){const c=a.ng(),d=c.cB().na(),e=c.dB().na(),f=c.eB().na();b.on(d,g=>{if(g){g=new Map(a.getInputs().map(l=>[l,b.get(l)]));const k={timeout:a.timeout};olympe.ea.Ud.get(a.Df(),g,k).then(l=>{for(const [m,n]of l)m!==e&&m!==f&&b.set(m,n);b.set(e,l.get(e));b.set(f,l.get(f))}).catch(l=>{l=`RemoteAction "${a.name()}" (${a.tag}) encountered an error:\n${l}`;a.W.error(l);b.set(f,olympe.sc.logic.Cu.create(l,400))})}},b.sa())}
|
|
1603
1603
|
function Qn(a,b,c,d,e,f){const g=n=>{if(null!==n){e.cancel();l&&l();m&&m();try{const p=new Map(a.getOutputs().map(r=>[r,b.get(r)]));f.ei(p).finally(()=>b.destroy())}catch(p){n=Error(`Error while serializing the response from remote action ${a.Df()}: ${p.message}`),f.ct(n).finally(()=>b.destroy())}}},k=b.sa(),l=b.on(c,g,k),m=b.on(d,g,k)}
|
|
1604
1604
|
olympe.sc.logic.Ks=class extends olympe.sc.logic.Function{constructor(a,b,c,d){super(a,b,c);this.timeout=d}run(a){Zm(a)||(this.db.Dc(this,olympe.sc.logic.Ks.C)?this.C(a):(yn(this,a),Pn(this,a)))}C(a){const b=this.Df(),c=this.ng(),d=c.rH().na(),e=c.cB().na(),f=c.dB().na(),g=c.eB().na();(new olympe.ea.Ud(b,a)).Bt().subscribe(rxjs.Subscriber.create(k=>{const l=a.In('remote call'),m=k.body(),n=zc(()=>{k.ct(Error(`Timeout reached on remote action ${this.db.name(this)} (${this.tag})`));l.destroy()},this.timeout);
|
|
1605
|
-
Qn(this,l,f,g,n,k);super.run(l);for(const [p,r]of m)p!==e&&l.set(p,r);k.qu().then(p=>{var r=l.get(d);null!==r&&olympe.dc
|
|
1606
|
-
this.W.error(`Error while listening on remote action ${this.db.name(l)} (${l}): ${k.message}`)}))}};olympe.sc.logic.Ks.U=olympe.dc.Ha.C('017a7b0c5dcbd8964c5d',olympe.sc.logic.Ks,olympe.sc.ga.Vb,new olympe.va.Ab(olympe.sc.qa.lI));olympe.sc.logic.Ks.C=olympe.sc.logic.Ks.U.ca('017a7b0c62a02a89444f');olympe.sc.logic.controllers={};olympe.sc.logic.controllers.UA=class{constructor(a){this.db=olympe.dc.Hb();this.typeRel=a}};olympe.sc.logic.controllers.UA.C={IW:-1,MX:1};olympe.sc.logic.controllers.EY=class extends olympe.sc.logic.controllers.UA{constructor(){super(olympe.sc.logic.sh.C)}};olympe.sc.logic.controllers.KY=class extends olympe.sc.logic.controllers.UA{constructor(){super(olympe.sc.logic.ff.typeRel)}};olympe.sc.logic.Ly={};olympe.sc.logic.Ly.xR=class extends olympe.sc.logic.Function{update(a,[b],[c]){const d=olympe.dc
|
|
1605
|
+
Qn(this,l,f,g,n,k);super.run(l);for(const [p,r]of m)p!==e&&l.set(p,r);k.qu().then(p=>{var r=l.get(d);null!==r&&olympe.dc.Za(r)!==p&&(r=this.Df(),this.W.warn(`Remote action ${this.db.name(r)} ${r}: try to run it with an input user that is not the real authenticated user.`));l.set(d,p);l.set(e,m.get(e))}).catch(p=>{const r=this.Df();this.W.warn(`Remote action ${this.db.name(r)} ${r} Triggered by unrecognized user: ${p}.`);l.set(g,olympe.sc.logic.Cu.create('Unrecognized User',1))})},k=>{const l=this.Df();
|
|
1606
|
+
this.W.error(`Error while listening on remote action ${this.db.name(l)} (${l}): ${k.message}`)}))}};olympe.sc.logic.Ks.U=olympe.dc.Ha.C('017a7b0c5dcbd8964c5d',olympe.sc.logic.Ks,olympe.sc.ga.Vb,new olympe.va.Ab(olympe.sc.qa.lI));olympe.sc.logic.Ks.C=olympe.sc.logic.Ks.U.ca('017a7b0c62a02a89444f');olympe.sc.logic.controllers={};olympe.sc.logic.controllers.UA=class{constructor(a){this.db=olympe.dc.Hb();this.typeRel=a}};olympe.sc.logic.controllers.UA.C={IW:-1,MX:1};olympe.sc.logic.controllers.EY=class extends olympe.sc.logic.controllers.UA{constructor(){super(olympe.sc.logic.sh.C)}};olympe.sc.logic.controllers.KY=class extends olympe.sc.logic.controllers.UA{constructor(){super(olympe.sc.logic.ff.typeRel)}};olympe.sc.logic.Ly={};olympe.sc.logic.Ly.xR=class extends olympe.sc.logic.Function{update(a,[b],[c]){const d=olympe.dc.Za(b);d?olympe.dc.yb.Rf(a,d,olympe.dc.ef.yi).subscribe(()=>{c(olympe.dc.CloudObject.get(d))}):this.W.warn('Cannot subscribe to an instance with no tag: '+d)}};olympe.sc.logic.Ha.C('0174bf4b7e006e4b788a',olympe.sc.logic.Ly.xR);olympe.sc.logic.actions={};olympe.sc.logic.Ly.hQ=class extends olympe.sc.logic.Function{run(a){yn(this,a);const [b,c,d]=this.la(a);let e,f=null,g=null;const k=a.getParent(),l=()=>{null===g||0===e?(this.W.warn('No list to iter upon'),this.W.info(a.sa())):f<e?(b(g.Dk(f)),f++,c((new Date).getTime())):(kn(k.C),d((new Date).getTime()))};this.getInputs().forEach((m,n)=>a.on(m,p=>{if(p)switch(n){case 0:g=p;break;case 1:e=g.Di();f=0;jn(k.C);l();break;case 2:l();break;default:this.W.error('Unhandled input')}},this.tag))}};
|
|
1607
1607
|
olympe.sc.logic.Ha.C('0171889b060b6cd54300',olympe.sc.logic.Ly.hQ);olympe.sc.logic.Cf={};olympe.sc.logic.Cf.VA=class extends olympe.sc.logic.Gj{C(){return this.Sj('016ac63808535703691c')}};olympe.sc.logic.Cf.VA.U=Mn('0169b6876a03f139d50a',olympe.sc.logic.Cf.VA);olympe.sc.logic.Cf.VA.prototype.C.K=new olympe.j.J(()=>olympe.sc.logic.Sd,[]);olympe.sc.logic.Cf.pB=class extends olympe.sc.logic.Gj{C(){return this.Sj('016ac63809a9a8e6db96')}O(){return this.On('016ac6380ab003363b3e')}};Mn('01646ad602f933b8caaf',olympe.sc.logic.Cf.pB);olympe.sc.logic.Cf.pB.prototype.C.K=new olympe.j.J(()=>olympe.sc.logic.Sd,[]);olympe.sc.logic.Cf.pB.prototype.O.K=new olympe.j.J(()=>olympe.sc.logic.je,[]);olympe.sc.logic.Cf.Px=class extends olympe.sc.logic.Gj{C(){return this.Sj('016ac6380bd98f1d91a0')}T(){return this.On('016ac63c589ae38ca3ae')}O(){return this.On('016ac63c5a377fceabaa')}};Mn('0168ec42fc01747a98b6',olympe.sc.logic.Cf.Px);olympe.sc.logic.Cf.Px.prototype.C.K=new olympe.j.J(()=>olympe.sc.logic.Sd,[]);olympe.sc.logic.Cf.Px.prototype.T.K=new olympe.j.J(()=>olympe.sc.logic.je,[]);olympe.sc.logic.Cf.Px.prototype.O.K=new olympe.j.J(()=>olympe.sc.logic.je,[]);olympe.sc.logic.Cf.Gq=class extends olympe.sc.logic.Gj{cB(){return this.Sj('017a7b07b09e3b22c8b4')}rH(){return this.Sj('017a7b07ba05807a74b0')}dB(){return this.On('017a7b0818c12388d731')}eB(){return this.On('017a7b085146d5e69aec')}KP(){return olympe.j.fa.C}};olympe.sc.logic.Cf.Gq.V='017a7b07b09e3b22c8b4';olympe.sc.logic.Cf.Gq.Ba='017a7b07ba05807a74b0';olympe.sc.logic.Cf.Gq.la='017a7b0818c12388d731';olympe.sc.logic.Cf.Gq.C='017a7b085146d5e69aec';
|
|
1608
1608
|
olympe.sc.logic.Cf.Gq.U=Mn('017a7b07a948e30508fa',olympe.sc.logic.Cf.Gq,olympe.sc.logic.Ks);h=olympe.sc.logic.Cf.Gq.prototype;h.cB.K=new olympe.j.J(()=>olympe.sc.logic.Sd,[]);h.rH.K=new olympe.j.J(()=>olympe.sc.logic.Sd,[]);h.dB.K=new olympe.j.J(()=>olympe.sc.logic.je,[]);h.eB.K=new olympe.j.J(()=>olympe.sc.logic.je,[]);h.KP.K=olympe.j.J.T;olympe.sc.logic.Cf.UI=class extends olympe.sc.logic.Gj{C(){return this.Sj('016ac63c5b3ed0562740')}};Mn('016a9766c230916ea5ec',olympe.sc.logic.Cf.UI);olympe.sc.logic.Cf.UI.prototype.C.K=new olympe.j.J(()=>olympe.sc.logic.Sd,[]);olympe.sc.query={};olympe.sc.query.RD=class extends olympe.sc.pe{};olympe.sc.query.RD.U=olympe.dc.Ha.C('01631aacd8276ea98491',olympe.sc.query.RD);olympe.sc.query.VH=class extends olympe.dm.Enum{};olympe.sc.query.VH.U=olympe.dc.Ha.C('01631aacd8276ea98495',olympe.sc.query.VH);olympe.sc.query.fI=class extends olympe.dm.Enum{};olympe.sc.query.fI.U=olympe.dc.Ha.C('01631aacd8276ea98494',olympe.sc.query.fI);olympe.sc.query.gI=class extends olympe.sc.pe{};olympe.sc.query.gI.U=olympe.dc.Ha.C('01631aacd8276ea98492',olympe.sc.query.gI);olympe.sc.query.Mf=class extends olympe.dc.CloudObject{};olympe.sc.query.Mf.U=olympe.dc.Ha.C('01631aacd8276ea98493',olympe.sc.query.Mf);olympe.sc.DE=class extends olympe.dc.CloudObject{};olympe.sc.DE.U=olympe.dc.Ha.C('018312ceeb3e93618a85',olympe.sc.DE);olympe.sc.Oe={};olympe.sc.Oe.Comment=class extends olympe.dm.BrickMetadata{getType(){return this.Md(olympe.sc.Oe.Comment.R)}oj(){return this.Md(olympe.sc.Oe.Comment.O)}ja(){return new olympe.j.ha(this.$f(olympe.sc.Oe.Comment.T),this.$f(olympe.sc.Oe.Comment.F))}static Pf(a,b,c,...d){c=d[0];d=d[1];b=a.create(b);const e=b.na();a.Sb(olympe.dc.CloudObject.containsRel,c,b);a.Sb(olympe.sc.Oe.Comment.C,b,c);c=a.create(olympe.sc.ui.df.tk);Z(c,olympe.sc.ui.df.tk.C,d.ma());Z(c,olympe.sc.ui.df.tk.F,d.pa());a.Sb(olympe.dm.BrickMetadata.$,
|
|
1609
1609
|
b,c);a.Sb(olympe.dc.CloudObject.containsRel,b,c);return e}};olympe.sc.Oe.Comment.aa=100;olympe.sc.Oe.Comment.V=66;olympe.sc.Oe.Comment.U=olympe.dc.Ha.C('0184bd886ee1c7adfe09',olympe.sc.Oe.Comment);olympe.sc.Oe.Comment.R=olympe.sc.Oe.Comment.U.ca('0184c80e29ed08a16c5e');olympe.sc.Oe.Comment.O=olympe.sc.Oe.Comment.U.ca('0184bd889f33359cfe75');olympe.sc.Oe.Comment.T=olympe.sc.Oe.Comment.U.ca('0184c3f9406e25a41512');olympe.sc.Oe.Comment.F=olympe.sc.Oe.Comment.U.ca('0184c3f942e4cc136ce8');
|
|
@@ -1617,19 +1617,19 @@ olympe.sc.workflow.Workflow.prototype.F.K=new olympe.j.J(()=>olympe.sc.workflow.
|
|
|
1617
1617
|
olympe.sc.Bb.sd.U=olympe.dc.Ha.C('011203300000000adef5',olympe.sc.Bb.sd);olympe.sc.Bb.sd.Us=olympe.sc.Bb.sd.U.ca('011203300000000adef6');olympe.sc.Bb.sd.la=olympe.sc.Bb.sd.U.ca('011203300000000adef7');olympe.sc.Bb.sd.C=olympe.sc.Bb.sd.U.ca('011203300000000adef8');olympe.sc.Bb.sd.R=olympe.sc.Bb.sd.U.ca('011203300000000adef9');olympe.sc.Bb.sd.$=olympe.sc.Bb.sd.U.ca('011203300000000adefa');olympe.sc.Bb.sd.aa=olympe.sc.Bb.sd.U.ca('011203300000000adefb');olympe.sc.Bb.sd.F=olympe.sc.Bb.sd.U.ca('011203300000000adefc');
|
|
1618
1618
|
olympe.sc.Bb.sd.ba=olympe.sc.Bb.sd.U.ca('011203300000000adefd');olympe.sc.Bb.sd.T=olympe.sc.Bb.sd.U.ca('011203300000000adefe');olympe.sc.Bb.sd.V=olympe.sc.Bb.sd.U.ca('011203300000000adeff');olympe.sc.Bb.sd.O=olympe.sc.Bb.sd.U.ca('011203300000000adee0');olympe.sc.Bb.sd.Bf={INIT:0,wW:1,UY:2,QY:3,PY:4,VY:5,Ee:9};h=olympe.sc.Bb.sd.prototype;h.RP.K=olympe.j.J.T;h.NU.K=olympe.j.J.T;h.Zh.K=olympe.j.J.F;h.sT.K=olympe.j.J.R;h.ZT.K=olympe.j.J.R;h.YT.K=olympe.j.J.R;h.Qj.K=olympe.j.J.R;h.LT.K=olympe.j.J.R;
|
|
1619
1619
|
h.US.K=olympe.j.J.R;h.WT.K=olympe.j.J.R;h.QP.K=olympe.j.J.R;olympe.sc.Bb.zx=class extends olympe.sc.Bb.Yr{Mb(){return!0}};olympe.sc.Bb.zx.U=olympe.dc.Ha.C('0113032000000aca1102',olympe.sc.Bb.zx,olympe.sc.ga.Vb);olympe.sc.Bb.Kl=class extends olympe.sc.Bb.Xg{C(){return(new olympe.dc.Zo(this.na(),olympe.sc.Bb.sd)).Hc(olympe.sc.Bb.Kl.V).ge().Ld()}};olympe.sc.Bb.Kl.U=olympe.dc.Ha.C('011203300000000adef3',olympe.sc.Bb.Kl);olympe.sc.Bb.Kl.V=olympe.sc.Bb.Kl.U.ob('011203300000000adef4');Y(olympe.sc.Bb.sd.U,olympe.sc.Bb.Kl.V);
|
|
1620
|
-
olympe.sc.Bb.Kl.U.C=(a,b,c)=>{b=Ml(a,b||'New Service Application model',olympe.sc.Bb.Kl,olympe.sc.Bb.zx);a.Sb(olympe.sc.Bb.Xg.C,b,c);c=a.create(olympe.sc.Bb.sd).na();a.Sb(olympe.sc.Bb.Kl.V,b,c);return b.na()};olympe.sc.Bb.Kl.prototype.C.K=new olympe.j.J(()=>olympe.sc.Bb.sd,[]);olympe.sc.Mq=class extends olympe.dc.CloudObject{static get(){return olympe.dc.CloudObject.get('011203300000000adf0f')}};olympe.sc.Mq.U=olympe.dc.Ha.C('011203300000000adf00',olympe.sc.Mq);olympe.sc.Mq.F=olympe.sc.Mq.U.ca('011203300000000adf01');olympe.sc.Mq.C=olympe.sc.Mq.U.ca('011203300000000adf02');olympe.sc.Mq.O='011203300000000adf0f';olympe.sc.cs=class extends olympe.dm.BrickMetadata{$h(){return olympe.sc.df.ej.fs}};olympe.sc.cs.U=olympe.dc.Ha.C('01645fe6873aeea59e64',olympe.sc.cs);olympe.sc.cs.C=olympe.sc.cs.U.ob('017ed8ac775f48d4d589');olympe.sc.cs.F=olympe.sc.cs.U.ob('017ed8ac775f48d4d590');olympe.sc.zE=class extends olympe.dm.Fe{$h(){return olympe.sc.df.ej.fs}};olympe.sc.zE.U=olympe.dc.Ha.C('0163a68ce44f3d1fa95d',olympe.sc.zE);olympe.sc.ds=class extends olympe.dm.BrickMetadata{};olympe.sc.ds.U=olympe.dc.Ha.C('016324fde11a836f77d3',olympe.sc.ds);olympe.sc.ds.C=olympe.sc.Zg.U.ob('016324fde11a836088d3');olympe.sc.ds.U.C=(a,b)=>Ml(a,null!=b?b:'New config type',olympe.sc.ds).na();olympe.sc.FW=class{};olympe.sc.kx=class extends olympe.dm.BrickMetadata{$h(){return olympe.sc.df.ej.fs}};olympe.sc.kx.U=olympe.dc.Ha.C('017dc8d6c8fd8c8bd2ff',olympe.sc.kx);olympe.sc.kx.U.C=(a,b)=>Ml(a,null!=b?b:'New data connector',olympe.sc.kx,olympe.dm.DataSource).na();function En(a,b){return`delegated^${olympe.dc
|
|
1620
|
+
olympe.sc.Bb.Kl.U.C=(a,b,c)=>{b=Ml(a,b||'New Service Application model',olympe.sc.Bb.Kl,olympe.sc.Bb.zx);a.Sb(olympe.sc.Bb.Xg.C,b,c);c=a.create(olympe.sc.Bb.sd).na();a.Sb(olympe.sc.Bb.Kl.V,b,c);return b.na()};olympe.sc.Bb.Kl.prototype.C.K=new olympe.j.J(()=>olympe.sc.Bb.sd,[]);olympe.sc.Mq=class extends olympe.dc.CloudObject{static get(){return olympe.dc.CloudObject.get('011203300000000adf0f')}};olympe.sc.Mq.U=olympe.dc.Ha.C('011203300000000adf00',olympe.sc.Mq);olympe.sc.Mq.F=olympe.sc.Mq.U.ca('011203300000000adf01');olympe.sc.Mq.C=olympe.sc.Mq.U.ca('011203300000000adf02');olympe.sc.Mq.O='011203300000000adf0f';olympe.sc.cs=class extends olympe.dm.BrickMetadata{$h(){return olympe.sc.df.ej.fs}};olympe.sc.cs.U=olympe.dc.Ha.C('01645fe6873aeea59e64',olympe.sc.cs);olympe.sc.cs.C=olympe.sc.cs.U.ob('017ed8ac775f48d4d589');olympe.sc.cs.F=olympe.sc.cs.U.ob('017ed8ac775f48d4d590');olympe.sc.zE=class extends olympe.dm.Fe{$h(){return olympe.sc.df.ej.fs}};olympe.sc.zE.U=olympe.dc.Ha.C('0163a68ce44f3d1fa95d',olympe.sc.zE);olympe.sc.ds=class extends olympe.dm.BrickMetadata{};olympe.sc.ds.U=olympe.dc.Ha.C('016324fde11a836f77d3',olympe.sc.ds);olympe.sc.ds.C=olympe.sc.Zg.U.ob('016324fde11a836088d3');olympe.sc.ds.U.C=(a,b)=>Ml(a,null!=b?b:'New config type',olympe.sc.ds).na();olympe.sc.FW=class{};olympe.sc.kx=class extends olympe.dm.BrickMetadata{$h(){return olympe.sc.df.ej.fs}};olympe.sc.kx.U=olympe.dc.Ha.C('017dc8d6c8fd8c8bd2ff',olympe.sc.kx);olympe.sc.kx.U.C=(a,b)=>Ml(a,null!=b?b:'New data connector',olympe.sc.kx,olympe.dm.DataSource).na();function En(a,b){return`delegated^${olympe.dc.Za(a)}^${olympe.dc.Za(b)}`}olympe.sc.Jf=class extends olympe.sc.Runnable{La(){return this.uc(olympe.sc.Jf.O,olympe.sc.Runnable)}Ja(){return this.uc(olympe.sc.Jf.C,olympe.dm.Property)}};olympe.sc.Jf.U=gh(olympe.dc.Ha.C('016c2d996d9ca27fa9d8',olympe.sc.Jf));olympe.sc.Jf.O=olympe.sc.Jf.U.ob('016c3cb7742ec9309e0b');olympe.sc.Jf.C=olympe.sc.Jf.U.ob('016c42d3454636f90533');olympe.sc.Jf.prototype.La.K=new olympe.j.J(()=>olympe.dc.xb,[]);
|
|
1621
1621
|
olympe.sc.Jf.prototype.Ja.K=new olympe.j.J(()=>olympe.dc.xb,[]);olympe.sc.YE=class extends olympe.dm.Fe{$h(){return olympe.sc.df.ej.fs}};olympe.sc.YE.U=olympe.dc.Ha.C('017a7a9ff057958e5678',olympe.sc.YE);olympe.sc.GH=class extends olympe.dm.Fe{$h(){return olympe.sc.df.ej.PB}};olympe.sc.GH.U=olympe.dc.Ha.C('01644b6d4543b344b857',olympe.sc.GH);olympe.sc.HH=class extends olympe.dc.CloudObject{};olympe.sc.HH.U=olympe.dc.Ha.C('0162f672366be5ca7a86',olympe.sc.HH);olympe.sc.Kq=class extends olympe.dc.sources.Kq{C(a){return a instanceof olympe.sc.logic.Error?{t:20,c:a.code,m:a.C}:super.C(a)}F(a){return 20===(null==a?void 0:a.t)?olympe.sc.logic.Error.create(a.m,a.c):super.F(a)}};function Rn(a,b,c,d){const e=En(a,c);olympe.j.Ua([d],f=>{b.set(e,f)});olympe.j.sb().R(()=>{b.remove(e)})}olympe.sc.Lq=class extends olympe.sc.Jf{};olympe.sc.Lq.U=olympe.dc.Ha.C('016d3f37610ae4fc3962',olympe.sc.Lq);olympe.sc.Text=class extends olympe.dm.String{};olympe.sc.Text.U=olympe.dc.Ha.C('016cfca73e63f9ab5ba4',olympe.sc.Text);olympe.sc.Lc=class{constructor(a=!0){this.C=(new olympe.dc.Lc).persist(a);this.F=[];this.source=null}static from(a){const b=olympe.sc.Kb.C.TRANSACTION;return a.has(b,!0)?a.get(b,!0):new olympe.sc.Lc}static process(a,b){return a.has(olympe.sc.Kb.C.TRANSACTION,!0)?Promise.resolve(!1):b.wd().then(()=>!0)}sa(){return this.C.sa()}create(a,b=new Map,c=this.source,d){c='string'===typeof c?c:olympe.dc.nj().fromModel(a);d=this.C.create(a,d).Zd(c);for(const [f,g]of b)Z(d,f,g);if(c===olympe.dc.Vc.SERVER){if('string'===
|
|
1622
|
-
typeof Gn){var e;let f;b=null!=(f=null==(e=olympe.dc.th.from(Gn).Hc(olympe.sc.Bb.Xg.C).Hc(olympe.sc.Ih.C.Vd()).Sh())?void 0:e.na())?f:null}else b=null;e=b;null!==e?this.Sb(olympe.sc.Ih.F,e,d):olympe.tb.Gb('sc').warn('No business container for new instance of',olympe.dc
|
|
1622
|
+
typeof Gn){var e;let f;b=null!=(f=null==(e=olympe.dc.th.from(Gn).Hc(olympe.sc.Bb.Xg.C).Hc(olympe.sc.Ih.C.Vd()).Sh())?void 0:e.na())?f:null}else b=null;e=b;null!==e?this.Sb(olympe.sc.Ih.F,e,d):olympe.tb.Gb('sc').warn('No business container for new instance of',olympe.dc.Za(a))}a=d.na();this.F.push(a);return a}update(a,b,c){this.C.update(a,b,c);return this}lM(a,b){a=this.C.update(a);for(const [c,d]of b)b=d,a.C.set(olympe.dc.Za(c),b);return this}delete(a){this.C.delete(a);return this}Sb(a,b,c){this.C.Sb(a,
|
|
1623
1623
|
b,c);return this}Qf(a,b,c){this.C.Qf(a,b,c);return this}gC(a,b){this.C.gC(a,b);return this}persist(a=!0){this.C.persist(a);return this}nr(a,b=!0){this.C.nr(a,b);return this}Zd(a){this.source=a;return this}model(a){return this.C.model(a)}merge(a){Ll(this.C,a.C);return this}ZB(a){this.C.ZB(a);return this}wd(){return new Promise((a,b)=>{this.C.wd((c,d)=>{c?a(new olympe.sc.gv(this.F)):b(d)})})}hC(){return new Promise((a,b)=>{this.C.hC((c,d)=>{c?a(new olympe.sc.gv(this.F)):b(d)})})}};
|
|
1624
1624
|
olympe.sc.Lc.prototype.executeAsLarge=olympe.sc.Lc.prototype.hC;olympe.sc.Lc.prototype.execute=olympe.sc.Lc.prototype.wd;olympe.sc.Lc.prototype.afterExecution=olympe.sc.Lc.prototype.ZB;olympe.sc.Lc.prototype.merge=olympe.sc.Lc.prototype.merge;olympe.sc.Lc.prototype.model=olympe.sc.Lc.prototype.model;olympe.sc.Lc.prototype.setSource=olympe.sc.Lc.prototype.Zd;olympe.sc.Lc.prototype.persistInstance=olympe.sc.Lc.prototype.nr;olympe.sc.Lc.prototype.persist=olympe.sc.Lc.prototype.persist;
|
|
1625
1625
|
olympe.sc.Lc.prototype.deleteAllRelations=olympe.sc.Lc.prototype.gC;olympe.sc.Lc.prototype.deleteRelation=olympe.sc.Lc.prototype.Qf;olympe.sc.Lc.prototype.createRelation=olympe.sc.Lc.prototype.Sb;olympe.sc.Lc.prototype['delete']=olympe.sc.Lc.prototype.delete;olympe.sc.Lc.prototype.multiUpdate=olympe.sc.Lc.prototype.lM;olympe.sc.Lc.prototype.update=olympe.sc.Lc.prototype.update;olympe.sc.Lc.prototype.create=olympe.sc.Lc.prototype.create;olympe.sc.Lc.prototype.getId=olympe.sc.Lc.prototype.sa;
|
|
1626
1626
|
olympe.sc.Lc.process=olympe.sc.Lc.process;olympe.sc.Lc.from=olympe.sc.Lc.from;olympe.sc.gv=class{constructor(a){this.C=a}fT(){return this.C.map(olympe.dc.CloudObject.get)}};olympe.sc.gv.prototype.getCreatedObjects=olympe.sc.gv.prototype.fT;olympe.bf={};olympe.bf.QD=class{run(){}};olympe.bf.Eb=class{constructor(a,b){this.C=a;this.W=b;this.F=null;this.O='';this.W.info('HC Manager will execute application registered as:',this.C)}aq(a,b,c=''){b||(b='default');b===this.C?(null===this.F?this.W.log('Application',c,'designated to be launched'):this.W.log('OVERRIDE: Application',c,'designated to be launched'),this.F=a,this.O=c):this.W.debug('ignoring application:'+c+' as it is registered under name '+b+' and not '+this.C)}run(){null!==this.F?(this.W.info('Running application:',this.O),
|
|
1627
|
-
this.F.run()):this.W.error('No app registered under name: '+this.C)}};olympe.bf.aq=function(a,b,c){const d=a.Gb();c?d.debug('Pre-registering application '+b+' under name '+c+' (use '+olympe.bf.qa.cn+'='+c+' to start it)'):d.debug('Pre-registering application '+b+' as default one');a.ng(olympe.bf.ga.Zb).qe([b],function(e,f){f.aq(e,c,b)},'olympe.hc.registerApp')};olympe.bf.ga={Zb:'hc.Manager',Vb:'hc.Logger'};olympe.bf.qa={cn:'hc.app',GA:'hc.globalToken'};olympe.va.qe(function(a){B(a,olympe.bf.qa.cn,'default');B(a,olympe.bf.qa.GA,!1);A(a,olympe.bf.ga.Vb,[olympe.tb.ga.Zb],b=>b.Vg('hc'));A(a,olympe.ta.ga.Qw,[new olympe.va.Ab(olympe.bf.qa.cn),new olympe.va.Ab(olympe.bf.qa.GA)],(b,c)=>new olympe.ta.bA(c?'':b));z(a,olympe.bf.ga.Zb,olympe.bf.Eb,new olympe.va.Ab(olympe.bf.qa.cn),olympe.bf.ga.Vb)},'olympe.hc');olympe.va.run([olympe.bf.ga.Zb],a=>a.run(),'olympe.hc');olympe.sc.Lg={};function Sn(a,b){if(a.Ba)a.W.debug('Sending getContext request'),yj(a
|
|
1627
|
+
this.F.run()):this.W.error('No app registered under name: '+this.C)}};olympe.bf.aq=function(a,b,c){const d=a.Gb();c?d.debug('Pre-registering application '+b+' under name '+c+' (use '+olympe.bf.qa.cn+'='+c+' to start it)'):d.debug('Pre-registering application '+b+' as default one');a.ng(olympe.bf.ga.Zb).qe([b],function(e,f){f.aq(e,c,b)},'olympe.hc.registerApp')};olympe.bf.ga={Zb:'hc.Manager',Vb:'hc.Logger'};olympe.bf.qa={cn:'hc.app',GA:'hc.globalToken'};olympe.va.qe(function(a){B(a,olympe.bf.qa.cn,'default');B(a,olympe.bf.qa.GA,!1);A(a,olympe.bf.ga.Vb,[olympe.tb.ga.Zb],b=>b.Vg('hc'));A(a,olympe.ta.ga.Qw,[new olympe.va.Ab(olympe.bf.qa.cn),new olympe.va.Ab(olympe.bf.qa.GA)],(b,c)=>new olympe.ta.bA(c?'':b));z(a,olympe.bf.ga.Zb,olympe.bf.Eb,new olympe.va.Ab(olympe.bf.qa.cn),olympe.bf.ga.Vb)},'olympe.hc');olympe.va.run([olympe.bf.ga.Zb],a=>a.run(),'olympe.hc');olympe.sc.Lg={};function Sn(a,b){if(a.Ba)a.W.debug('Sending getContext request'),yj(a.$a).then(()=>{a.W.debug('synchronisation request successful');Gn=a.C;b()}).catch(c=>{a.W.error('failed to synchronise (authenticated) with server: '+c.message)});else{const c=$m(a.O);a.W.debug((c?'PULLING':'SUBSCRIBING')+' application '+a.C);const d=a.O.O(),e=new olympe.async.SI(d);e.add((f,g)=>{const k=olympe.dc.Hb();pj(d,a.C,l=>{l=k.Vv(l)?l:k.model(l);return null!==l&&k.ag(l,olympe.sc.ds)},c).subscribe(rxjs.Subscriber.create(d.F(()=>
|
|
1628
1628
|
{k.ag(a.C,olympe.sc.Bb.Xg)?(a.Fa.aa(a.C,c),f()):g(`The specified application tag (${a.C}) is not an application or does not exist`)}),l=>g(String(l))))});e.add(f=>{olympe.j.Ua([a.F.Qk()],g=>{olympe.dc.yb.Tl(g,olympe.dm.User).observe(olympe.j.sb(),olympe.dc.yb.Mf.sB).subscribe(()=>d.run(f))})});e.add((f,g)=>{const k=olympe.sc.Ih.Bf.uH,l=olympe.sc.Ih.Bf.kB;Hn(a.C,m=>{switch(m){case k:case l:d.run(f);break;default:d.run(()=>g('Error while loading the business container'))}})});Tc(e,(f,g)=>{if(g)throw Error(g);
|
|
1629
1629
|
b()});e.start()}}
|
|
1630
1630
|
function Tn(a){a.W.info('Starting application '+a.C);const b=olympe.j.bb(olympe.j.fa).update(olympe.j.fa.kb);a.T();const c=olympe.dc.Hb();if(0<a.C.length){const d=Pg(c,a.C,a.O.O().F((e,f)=>{e?(e=xn(f),e instanceof olympe.sc.Bb.Yr?(a.W.debug('application retrieved: running'),f=Xm(a.O,e),e.run(f),'string'===typeof a.Ja&&(new olympe.sc.Yi).$(e.na(),f,a.W),e instanceof olympe.sc.Bb.zx&&(e=olympe.va.getParameter(olympe.ta.qa.$z),f=a.F.R.La,!0===e&&0<f&&Bc(()=>{a.F.wj()},Math.max(1E3,1E4<f?f-1E3:f-100))),
|
|
1631
1631
|
b.update(olympe.j.fa.C)):a.W.error('application retrieved: not an Application with a run() method')):Un(a)}));olympe.j.sb().onDestroy(()=>{Og(c,a.C,d)});zc(()=>{olympe.j.Ra(b)===olympe.j.fa.kb&&a.W.warn(`requested application ${a.C} may not be available (it may not exist or the logged user may not have the correct permissions)`)},3E4)}}function Un(a){a.W.info('Stop the application');a.T();a.O.O().la()}
|
|
1632
|
-
olympe.sc.Lg.Iq=class{constructor(a,b,c,d,e,f,g){this.F=a;this
|
|
1632
|
+
olympe.sc.Lg.Iq=class{constructor(a,b,c,d,e,f,g){this.F=a;this.$a=b;this.W=d;this.O=e;this.Fa=f;this.C=g.get('appTag');this.Ba=g.get('getContextMode');let k;this.ba=null!=(k=g.get('offlineMode'))?k:!1;let l;this.Ja=null!=(l=g.get('debuggerName'))?l:null}run(){const a=olympe.ta.Eb.C.INIT,b=olympe.ta.Eb.C.Ej,c=olympe.ta.Eb.C.ln,d=olympe.ta.Eb.C.tl,e=olympe.ta.Eb.C.Vr,f=olympe.ta.Eb.C.jp,g=olympe.ta.Eb.C.zo;this.W.debug('runtime starting for app #'+this.C);let k=!1;const l=()=>{k||(k=!0,Sn(this,()=>
|
|
1633
1633
|
Tn(this)))};olympe.j.Ua([this.F.getState()],m=>{switch(m){case f:case g:case a:break;case b:case d:this.W.debug('Server session opened, calling once connected callback');k||this.V();l();break;case c:this.W.debug('Disconnected, working offline.');this.ba&&l();break;case e:this.W.debug('waiting for authentication');break;default:this.W.debug('No server session available, waiting for connection'),k=!1,Un(this)}},'Runtime initial auth state listener')}V(){}T(){}};olympe.sc.Lg.Iq.C='app_instance';
|
|
1634
1634
|
olympe.sc.Lg.Iq.Ca=[olympe.bf.QD];olympe.sc.Lg.oy=class extends olympe.dc.sources.oy{V(a){return this.db.ag(a,olympe.sc.Zg)}aa(a,b){if(!this.R){super.init();var c=olympe.dc.th.from(a).Hc(olympe.sc.Bb.Xg.C).Sh();if(!(c instanceof olympe.dm.yd))throw Error(`Impossible to initialize the source solver for the application ${a}: no project is linked to it`);b=b?olympe.dc.yb.Mf.ep:olympe.dc.yb.Mf.fn;zl(this,c,b);c=new olympe.j.Kd('deployed data sources');olympe.dc.yb.from(a).Hc(olympe.sc.Bb.Xg.la).observe(c,b).subscribe(d=>{const e=new olympe.dc.Lc;
|
|
1635
1635
|
Ug(d).forEach(f=>{e.Sb(olympe.dm.DataSource.$v,this.C,f)});Tg(d).forEach(f=>{e.Qf(olympe.dm.DataSource.$v,this.C,f)});e.wd()})}}};olympe.sc.Lg.ga={yi:'sc.runtime.Main',vk:'sc.runtime.SourceSolver',xB:'sc.runtime.appConfig'};
|
|
@@ -1645,7 +1645,7 @@ olympe.sc.ui.Hd=class extends olympe.sc.ui.cj{T(){return this.dz(olympe.sc.ui.Hd
|
|
|
1645
1645
|
'scroller');return u},()=>{r.Uq();return r},olympe.ui.D.mb),'groupContent')});return n}C(){return super.C().nu(olympe.sc.ui.Hd.bK().transform(olympe.dc.CloudObject.propertyRel))}R(){return Zn(this)}};olympe.sc.ui.Hd.U=olympe.dc.Ha.C('016be61ab63fb8a838ee',olympe.sc.ui.Hd);olympe.sc.ui.Hd.C=olympe.sc.ui.Hd.U.ca('016be61ab921cb3bdef9');olympe.sc.ui.Hd.la=olympe.sc.ui.Hd.U.ca('01664466071718f2a34b');olympe.sc.ui.Hd.Ba=olympe.sc.ui.Hd.U.ca('016652f9cd0b1e216e6b');olympe.sc.ui.Hd.La=olympe.sc.ui.Hd.U.ca('01665907468d5e684177');
|
|
1646
1646
|
olympe.sc.ui.Hd.Mb=olympe.sc.ui.Hd.U.ca('016e7ee3fd5998d599ce');olympe.sc.ui.Hd.eb=olympe.sc.ui.Hd.U.ca('016e7ee3fd59d238eec0');olympe.sc.ui.Hd.U.C=function(a,b,c,d){b=b||'Group';d=d||Ml(a,b,olympe.sc.ui.Hd,olympe.sc.ui.ic);Z(d,olympe.dc.wq.Kh+olympe.dc.CloudObject.nameProp.na(),b);a=a.create(olympe.sc.ui.Jb.Be,c);Z(d,olympe.sc.ui.Hd.C.na(),new olympe.dc.Nf(a));return d.na()};olympe.sc.ui.Hd.prototype.T.K=new olympe.j.J(()=>olympe.sc.ui.Aq,[]);
|
|
1647
1647
|
olympe.sc.ui.Hd.prototype.O.K=new olympe.j.J(()=>olympe.ui.D.Be,[]);olympe.sc.ui.ky=class extends olympe.sc.ui.Hd{};olympe.sc.ui.ky.U=olympe.dc.Ha.C('01612df349e137bbb30b',olympe.sc.ui.ky);olympe.sc.ui.ky.U.C=function(a,b,c){b=b||'New Screen';const d=Ml(a,b,olympe.sc.ui.ky,olympe.sc.ui.Screen);olympe.dc.CloudObject.Pf(a,olympe.sc.ui.Hd,b,c,d);return d.na()};olympe.sc.ui.zy=class extends olympe.sc.ui.Hd{};olympe.sc.ui.zy.U=olympe.dc.Ha.C('0166446c1f124f078a5f',olympe.sc.ui.zy);olympe.sc.ui.zy.U.C=function(a,b,c){b=b||'New Visual Component';c=Ml(a,b,olympe.sc.ui.zy,c||olympe.sc.ui.ic);olympe.dc.CloudObject.Pf(a,olympe.sc.ui.Hd,b,void 0,c);Z(c,olympe.dc.wq.Kh+olympe.sc.ui.Renderable.C.na(),600);Z(c,olympe.dc.wq.Kh+olympe.sc.ui.Renderable.F.na(),300);return c.na()};const eo=new Map;function fo(a,b,c,d){if(void 0!==d){if(null!==d){const e=a.updateParent(c,d),f=b.O();f.R(()=>{e&&e();f.Wd('_unreg_element')},'_unreg_element')}}else a.draw(b,c);b.remove('_off_container')}
|
|
1648
|
-
function go(a){const b=olympe.sc.logic.kd,c=olympe.j.sb(),d=a.na(),e=Object.create(null),f=Object.create(null);for(const [k,l]of eo)f[k]=l,eo.delete(k);const g=hi(a.db,d,b.lu.Vd(),c.F((k,l)=>{k?(k=a.db.se(l,b.Rz),void 0!==f[k]&&(e[l]=k,f[k].enable())):(k=e[l],void 0!==k&&(f[k].disable(),delete e[l]))}));c.onDestroy(()=>{a.db.F(d,b.lu.Vd(),g)})}function ho(a,b,c,d){a=new io(b,a);void 0!==d?jo(a,c,d):ko(a,c);eo.set(olympe.dc
|
|
1648
|
+
function go(a){const b=olympe.sc.logic.kd,c=olympe.j.sb(),d=a.na(),e=Object.create(null),f=Object.create(null);for(const [k,l]of eo)f[k]=l,eo.delete(k);const g=hi(a.db,d,b.lu.Vd(),c.F((k,l)=>{k?(k=a.db.se(l,b.Rz),void 0!==f[k]&&(e[l]=k,f[k].enable())):(k=e[l],void 0!==k&&(f[k].disable(),delete e[l]))}));c.onDestroy(()=>{a.db.F(d,b.lu.Vd(),g)})}function ho(a,b,c,d){a=new io(b,a);void 0!==d?jo(a,c,d):ko(a,c);eo.set(olympe.dc.Za(b),a)}
|
|
1649
1649
|
function lo(a,b){const c=`finalThemeClass-${a.tag}`;let d;const e=f=>{d&&d();const g=mo(f,a.Df(),'');let k=!1;d=b.on(g,l=>{k=!0;b.set(c,l?f:'default')});k||b.set(c,'default');olympe.j.sb().onDestroy(()=>{d&&d()})};b.set(c,'default');b.on(olympe.sc.ui.Renderable.eb.na(),f=>e(f))}function no(a,b){olympe.j.Ua([a.ma()],c=>{b.set(olympe.sc.ui.Renderable.C,c.valueOf())});olympe.j.Ua([a.pa()],c=>{b.set(olympe.sc.ui.Renderable.F,c.valueOf())})}
|
|
1650
1650
|
olympe.sc.ui.Renderable=class extends olympe.sc.Runnable{constructor(a,b){super(a,b,olympe.tb.Gb('sc'));this.eb=!!olympe.va.getParameter(olympe.sc.qa.uA)}ba(){return this.ng()instanceof olympe.sc.ui.Hd?[this.Df()]:[]}$(){const a=olympe.sc.li.F.KO,b=this.db,c=new Map,d=this.ng();for(const e of Yn(d,!1))c.set(a+b.name(e),e);return c}update(a,b,c){const d=olympe.sc.Kb.C.Eo,e=olympe.sc.Kb.C.mq,f=this.ng().Uv(),g=olympe.sc.ui.Renderable.prototype.F!==this.F;!f&&super.update(a,b,c);c=a.get(e);c||(c=a.C.C.run(()=>
|
|
1651
1651
|
this.F(a)),a.set(e,c));const k=f&&!g?this.render(a,b):c.jm();if(!g&&(f||a.C.id.startsWith('_'))){a.has('_off_container')&&a.get('_off_container')();if(a.has(d))fo(this,a,a.get(d),k);else{const l=a.on(d,m=>{fo(this,a,m,k);l()},a.sa());a.set('_off_container',l)}a.onDestroy(()=>{a.has('_off_container')&&this.W.debug(`No parent container has been found to render the brick ${this.db.name(this)}, ${this.tag}`)})}}render(){}updateParent(a,b){b&&a.appendChild(b);return()=>{b.remove()}}F(a){var b=this.ng();
|
|
@@ -1654,7 +1654,7 @@ if(b.Uv()){const c=olympe.j.fa;b=new olympe.ui.D.Ge(this.tag,this.ja(a));b.fd(th
|
|
|
1654
1654
|
k.run(()=>{for(const n of g)m(n);k.onDestroy(()=>{for(const n of g)b(n,null)})})}))}ja(a){return new olympe.j.ha(this.Aa(olympe.sc.ui.Renderable.C,a,olympe.j.Z,olympe.j.Z.ZERO,!0),this.Aa(olympe.sc.ui.Renderable.F,a,olympe.j.Z,olympe.j.Z.ZERO,!0))}Se(){return this.$f(olympe.sc.ui.Renderable.ba)}R(){return null}};olympe.sc.ui.Renderable.prototype.getProperties=olympe.sc.ui.Renderable.prototype.he;let oo=0;
|
|
1655
1655
|
function jo(a,b,c){a.T=a.O.F(()=>{const d=b(()=>a.F.Rr(a.R));olympe.j.sb().onDestroy(()=>c(d))})}function ko(a,b){a.T=a.O.F(()=>{olympe.j.Ua([b()],c=>{a.F.set(a.R,c)});olympe.j.sb().onDestroy(()=>a.F.remove(a.R))})}class io{constructor(a,b){++oo;this.R=a;this.F=b;this.O=new olympe.j.Kd('InteractionBinder context '+oo);this.T=null;this.C=0}enable(){++this.C;1===this.C&&this.T()}disable(){--this.C;0===this.C&&this.O.destroy()}}olympe.sc.ui.Renderable.U=gh(olympe.dc.Ha.C('01612df219d0691f6b4d',olympe.sc.ui.Renderable));
|
|
1656
1656
|
olympe.sc.ui.Renderable.eb=olympe.sc.ui.Renderable.U.ca('0161d7ba2406f5d75a37');olympe.sc.ui.Renderable.la=olympe.sc.ui.Renderable.U.ca('01611d9c686bbed5fdba');olympe.sc.ui.Renderable.C=olympe.sc.ui.Renderable.U.ca('01611d99ec0553b5926e');olympe.sc.ui.Renderable.F=olympe.sc.ui.Renderable.U.ca('01611d9a0452a179c68f');olympe.sc.ui.Renderable.ba=olympe.sc.ui.Renderable.U.ca('016c23bd12493a7e1b2e');olympe.sc.ui.Renderable.prototype.ja.K=olympe.j.J.V;olympe.sc.ui.Renderable.prototype.Se.K=olympe.j.J.F;olympe.sc.ui.ic=class extends olympe.sc.ui.Renderable{constructor(a,b){super(a,b)}Qd(a){return new olympe.j.ha(this.Aa(olympe.sc.ui.ic.R,a,olympe.j.Z,olympe.j.Z.ZERO),this.Aa(olympe.sc.ui.ic.T,a,olympe.j.Z,olympe.j.Z.ZERO))}R(a){const b=this.ng();return b.rz()?b.FL().gj().ag([olympe.sc.ui.ic]).ku(olympe.sc.ui.Renderable.ba).ge():a.includes(this.na())?this.db.uc(b,olympe.dc.CloudObject.propertyRel).filter(c=>this.db.zt(this.db.se(c,olympe.dm.Property.typeRel),olympe.sc.ui.ic)).reduce((c,d)=>{olympe.j.Ua([this.dz(d)],
|
|
1657
|
-
e=>{e=e.zh();a.includes(olympe.dc
|
|
1657
|
+
e=>{e=e.zh();a.includes(olympe.dc.Za(e))&&c.set(d,e)});return c},new olympe.j.pe(olympe.dm.rl)):null}C(a,b){const c=olympe.j.Color,d=olympe.j.Z,e=olympe.j.fa,f=olympe.j.ib;a.fd(this.Aa(olympe.sc.ui.ic.Mb,b,e,e.kb));a.Uc(Ob(this.Aa(olympe.sc.ui.ic.Wd,b,d),0));a.cd(this.Aa(olympe.sc.ui.ic.Yf,b,c));a.ac(this.Aa(olympe.sc.ui.ic.zg,b,d));a.Lr(this.Aa(olympe.sc.ui.ic.JS,b,d));olympe.j.Ua([this.Aa(olympe.sc.ui.ic.Je,b,f)],g=>{g=g.valueOf().split(';').filter(k=>''!==k).map(k=>k.split(':')).filter(([k,l])=>
|
|
1658
1658
|
void 0!==k&&void 0!==l);for(const [k,l]of g)a.fb(k.trim(),l.trim());a.kf()});olympe.j.Ua([this.Aa(olympe.sc.ui.ic.kc,b,e,e.kb)],g=>{a.fb('overflow',g.valueOf()?'visible':'hidden')});ho(b,olympe.sc.ui.ic.TN,a.Wc.bind(a),a.sj.bind(a));super.C(a,b)}};olympe.sc.ui.ic.U=olympe.dc.Ha.C('01664466071746f5e167',olympe.sc.ui.ic);olympe.sc.ui.ic.R=olympe.sc.ui.ic.U.ca('01611d99243ad989b91b');olympe.sc.ui.ic.T=olympe.sc.ui.ic.U.ca('01611d9962e7f4f9a26d');olympe.sc.ui.ic.Mb=olympe.sc.ui.ic.U.ca('01611d9a88f340465399');
|
|
1659
1659
|
olympe.sc.ui.ic.JS=olympe.sc.ui.ic.U.ca('016b08fd79c14bad3193');olympe.sc.ui.ic.Je=olympe.sc.ui.ic.U.ca('017c5114f14f96c4f187');olympe.sc.ui.ic.kc=olympe.sc.ui.ic.U.ca('017e6d4a0974fd84338f');olympe.sc.ui.ic.Wd=olympe.sc.ui.ic.U.ca('0163ba941097ae1920b0');olympe.sc.ui.ic.Yf=olympe.sc.ui.ic.U.ca('0163ba942b6ee2bc78c0');olympe.sc.ui.ic.zg=olympe.sc.ui.ic.U.ca('0163ba9e1428240acec7');olympe.sc.ui.ic.EU=olympe.sc.ui.ic.U.ca('0162e2bd70fb607442d4');olympe.sc.ui.ic.TN=olympe.sc.ui.ic.U.ca('01619aacf66faf45a75d');
|
|
1660
1660
|
olympe.sc.ui.pl=class{constructor(a,b){this.tag=a;this.C=b}na(){return this.tag}get(){return this.C.get(this.tag)}observe(){return this.C.observe(this.tag)}set(a){this.C.set(this.tag,a)}};olympe.sc.ui.pl.prototype.set=olympe.sc.ui.pl.prototype.set;olympe.sc.ui.pl.prototype.observe=olympe.sc.ui.pl.prototype.observe;olympe.sc.ui.pl.prototype.get=olympe.sc.ui.pl.prototype.get;olympe.sc.ui.pl.prototype.getTag=olympe.sc.ui.pl.prototype.na;olympe.sc.ui.mA=class extends olympe.sc.ui.pl{Rr(){this.set(Date.now())}};
|
|
@@ -1668,17 +1668,17 @@ olympe.sc.ui.Ga.eW=olympe.sc.ui.Ga.U.ca('0168dc76919c78c432de');olympe.sc.ui.Ga.
|
|
|
1668
1668
|
olympe.sc.ui.Ga.gh=olympe.sc.ui.Ga.U.ca('0168dcdbac93683e961f');olympe.sc.ui.Ga.DU=olympe.sc.ui.Ga.U.ca('0168dcdbe096622948a4');olympe.sc.ui.Ga.qj=olympe.sc.ui.Ga.U.ca('0168dcdc172e489c48b9');olympe.sc.ui.Ga.zD=olympe.sc.ui.Ga.U.ca('0168dcdc4ef0492f7be9');olympe.sc.ui.Ga.BD=olympe.sc.ui.Ga.U.ca('0168dcdc6d186bf8c60d');olympe.sc.ui.Ga.fN=olympe.sc.ui.Ga.U.ca('0168dcdcaa879e1d49ec');olympe.sc.ui.Ga.YR=olympe.sc.ui.Ga.U.ca('0168dcdcd0e43889eeaf');olympe.sc.ui.Ga.uU=olympe.sc.ui.Ga.U.ca('0168e13a2c9eff4b1bb2');
|
|
1669
1669
|
olympe.sc.ui.Ga.sU=olympe.sc.ui.Ga.U.ca('0168e13a668be409860f');olympe.sc.ui.Ga.PS=olympe.sc.ui.Ga.U.ca('0168e13a9bbb31492482');olympe.sc.ui.Ga.MS=olympe.sc.ui.Ga.U.ca('0168e13ad49117906a9b');olympe.sc.ui.Ga.ZN=olympe.sc.ui.Ga.U.ca('016880862139c3324a2b');olympe.sc.ui.Ga.SP=olympe.sc.ui.Ga.U.ca('0168808622067a6ccc86');olympe.sc.ui.Ga.EQ=olympe.sc.ui.Ga.U.ca('01688086226bdf417abe');olympe.sc.ui.Ga.mQ=olympe.sc.ui.Ga.U.ca('0168808622d577c581a5');olympe.sc.ui.Ga.uQ=olympe.sc.ui.Ga.U.ca('0168c772451ab8b1295c');
|
|
1670
1670
|
olympe.sc.ui.Ga.TP=olympe.sc.ui.Ga.U.ca('0168c772458260728005');olympe.sc.ui.Ga.cQ=olympe.sc.ui.Ga.U.ca('0168c77245ec33d5d3d6');olympe.sc.ui.Ga.KQ=olympe.sc.ui.Ga.U.ca('0168c7724654174d5289');olympe.sc.ui.Ga.UR=olympe.sc.ui.Ga.U.ca('0168c7724990f6c6e2c5');olympe.sc.ui.Ga.NR=olympe.sc.ui.Ga.U.ca('0168c77249f71507f1a0');olympe.sc.ui.Ga.QR=olympe.sc.ui.Ga.U.ca('0168c7724a5ffdb8603c');olympe.sc.ui.Ga.ER=olympe.sc.ui.Ga.U.ca('0168c7724ac89011b0f1');olympe.sc.ui.Ga.iO=olympe.sc.ui.Ga.U.ca('0168c7724ccef19bd4fe');
|
|
1671
|
-
olympe.sc.ui.Ga.XR=olympe.sc.ui.Ga.U.ca('0168c7724d3698b4bacc');olympe.sc.ui.Ga.pO=olympe.sc.ui.Ga.U.ca('0168c7724d9a84b5addb');olympe.sc.ui.Ga.zO=olympe.sc.ui.Ga.U.ca('0168c7724dff8c67d120');olympe.sc.ui.Ga.RO=olympe.sc.ui.Ga.U.ca('0168c7724e65de8791ac');olympe.sc.ui.Ga.YQ=olympe.sc.ui.Ga.U.ca('0168c7724eca5653c809');olympe.sc.ui.Ga.RQ=olympe.sc.ui.Ga.U.ca('0168c7724f30c049da91');olympe.sc.ui.Dn=class extends olympe.sc.ui.cj{O(){return this.uf(olympe.sc.ui.Dn.C,olympe.sc.ui.Screen)}};olympe.sc.ui.Dn.U=olympe.dc.Ha.C('0112025000000015def0',olympe.sc.ui.Dn);olympe.sc.ui.Dn.C=olympe.sc.ui.Dn.U.ob('0163f988aa658051daeb');olympe.sc.ui.Dn.prototype.O.K=new olympe.j.J(()=>olympe.sc.ui.Screen,[]);olympe.sc.ui.Aq=class extends olympe.sc.Jf{init(a){const b=(c,d)=>null===d?a.remove(c):a.set(c,d);An(this,b,b)}run(){}ur(){}F(){}C(){}};olympe.sc.ui.Aq.U=gh(olympe.dc.Ha.C('016be61abe39070d9c42',olympe.sc.ui.Aq));olympe.sc.ui.Aq.prototype.ur.K=new olympe.j.J(()=>olympe.ui.D.mb,[]);olympe.sc.ui.Cd=class extends olympe.sc.ui.Ga{C(a,b){const c=olympe.j.Color,d=olympe.j.Z,e=olympe.j.fa,f=olympe.j.ib;a instanceof olympe.ui.D.dd||(a.Fb(this.Aa(olympe.sc.ui.Cd.O,b,f)),a.qb(this.Aa(olympe.sc.ui.Cd.fontFamilyProp,b,f)),a.rb(this.Aa(olympe.sc.ui.Cd.wf,b,d)),a.wb(this.Aa(olympe.sc.ui.Cd.Ja,b,d)),a.Ad(olympe.j.Ya(this.Aa(olympe.sc.ui.Cd.Fa,b,e,e.kb),()=>olympe.ui.ia.tx.NO,()=>olympe.ui.ia.tx.Lx,f)),a.jb(this.Aa(olympe.sc.ui.Cd
|
|
1672
|
-
b,f)));super.C(a,b)}};olympe.sc.ui.Cd.U=gh(olympe.dc.Ha.C('01633e9252d8e1c4f25b',olympe.sc.ui.Cd));olympe.sc.ui.Cd.fontFamilyProp=olympe.sc.ui.Cd.U.ca('01635eaa384788490dc5');olympe.sc.ui.Cd.wf=olympe.sc.ui.Cd.U.ca('01633fa38ad45c58d04d');olympe.sc.ui.Cd.Fa=olympe.sc.ui.Cd.U.ca('01633fa38c309356404a');olympe.sc.ui.Cd.Ja=olympe.sc.ui.Cd.U.ca('01633fa38d2863f0a464');olympe.sc.ui.Cd
|
|
1671
|
+
olympe.sc.ui.Ga.XR=olympe.sc.ui.Ga.U.ca('0168c7724d3698b4bacc');olympe.sc.ui.Ga.pO=olympe.sc.ui.Ga.U.ca('0168c7724d9a84b5addb');olympe.sc.ui.Ga.zO=olympe.sc.ui.Ga.U.ca('0168c7724dff8c67d120');olympe.sc.ui.Ga.RO=olympe.sc.ui.Ga.U.ca('0168c7724e65de8791ac');olympe.sc.ui.Ga.YQ=olympe.sc.ui.Ga.U.ca('0168c7724eca5653c809');olympe.sc.ui.Ga.RQ=olympe.sc.ui.Ga.U.ca('0168c7724f30c049da91');olympe.sc.ui.Dn=class extends olympe.sc.ui.cj{O(){return this.uf(olympe.sc.ui.Dn.C,olympe.sc.ui.Screen)}};olympe.sc.ui.Dn.U=olympe.dc.Ha.C('0112025000000015def0',olympe.sc.ui.Dn);olympe.sc.ui.Dn.C=olympe.sc.ui.Dn.U.ob('0163f988aa658051daeb');olympe.sc.ui.Dn.prototype.O.K=new olympe.j.J(()=>olympe.sc.ui.Screen,[]);olympe.sc.ui.Aq=class extends olympe.sc.Jf{init(a){const b=(c,d)=>null===d?a.remove(c):a.set(c,d);An(this,b,b)}run(){}ur(){}F(){}C(){}};olympe.sc.ui.Aq.U=gh(olympe.dc.Ha.C('016be61abe39070d9c42',olympe.sc.ui.Aq));olympe.sc.ui.Aq.prototype.ur.K=new olympe.j.J(()=>olympe.ui.D.mb,[]);olympe.sc.ui.Cd=class extends olympe.sc.ui.Ga{C(a,b){const c=olympe.j.Color,d=olympe.j.Z,e=olympe.j.fa,f=olympe.j.ib;a instanceof olympe.ui.D.dd||(a.Fb(this.Aa(olympe.sc.ui.Cd.O,b,f)),a.qb(this.Aa(olympe.sc.ui.Cd.fontFamilyProp,b,f)),a.rb(this.Aa(olympe.sc.ui.Cd.wf,b,d)),a.wb(this.Aa(olympe.sc.ui.Cd.Ja,b,d)),a.Ad(olympe.j.Ya(this.Aa(olympe.sc.ui.Cd.Fa,b,e,e.kb),()=>olympe.ui.ia.tx.NO,()=>olympe.ui.ia.tx.Lx,f)),a.jb(this.Aa(olympe.sc.ui.Cd.$a,b,c)),a.Ub(this.Aa(olympe.sc.ui.Cd.La,b,f)),a.Wb(this.Aa(olympe.sc.ui.Cd.zb,
|
|
1672
|
+
b,f)));super.C(a,b)}};olympe.sc.ui.Cd.U=gh(olympe.dc.Ha.C('01633e9252d8e1c4f25b',olympe.sc.ui.Cd));olympe.sc.ui.Cd.fontFamilyProp=olympe.sc.ui.Cd.U.ca('01635eaa384788490dc5');olympe.sc.ui.Cd.wf=olympe.sc.ui.Cd.U.ca('01633fa38ad45c58d04d');olympe.sc.ui.Cd.Fa=olympe.sc.ui.Cd.U.ca('01633fa38c309356404a');olympe.sc.ui.Cd.Ja=olympe.sc.ui.Cd.U.ca('01633fa38d2863f0a464');olympe.sc.ui.Cd.$a=olympe.sc.ui.Cd.U.ca('01633fa5303ccd8c1801');olympe.sc.ui.Cd.La=olympe.sc.ui.Cd.U.ca('0164229fd527ecd56900');
|
|
1673
1673
|
olympe.sc.ui.Cd.zb=olympe.sc.ui.Cd.U.ca('016422a069b9bd45e8a8');olympe.sc.ui.Cd.O=olympe.sc.ui.Cd.U.ca('01633fa386be67e6fd1d');olympe.sc.ui.ye=class extends olympe.sc.ui.Cd{C(a,b){const c=olympe.j.Z,d=olympe.j.fa;a.sg(this.Aa(olympe.sc.ui.ye.$,b,olympe.j.ib));a.Dg(this.Aa(olympe.sc.ui.ye.Pe,b,olympe.j.Color));a.hd(this.Aa(olympe.sc.ui.ye.vr,b,c,c.ZERO));a.gd(this.Aa(olympe.sc.ui.ye.ec,b,c,c.ZERO));a.zc(this.Aa(olympe.sc.ui.ye.jc,b,c,c.ZERO));a.Ac(this.Aa(olympe.sc.ui.ye.Re,b,c,c.ZERO));a.lf(this.Aa(olympe.sc.ui.ye.Ib,b,d,d.kb));ho(b,olympe.sc.ui.ye.Mc,a.Ki.bind(a),a.O.bind(a));ho(b,olympe.sc.ui.ye.Gc,a.Ji.bind(a),a.F.bind(a));
|
|
1674
1674
|
super.C(a,b)}};olympe.sc.ui.ye.U=olympe.dc.Ha.C('016e64ba43b2367826cd',olympe.sc.ui.ye);olympe.sc.ui.ye.$=olympe.sc.ui.ye.U.ca('0164b26aecbaa5ca5b23');olympe.sc.ui.ye.Pe=olympe.sc.ui.ye.U.ca('0164b69dd71d223649bc');olympe.sc.ui.ye.Ib=olympe.sc.ui.ye.U.ca('016e64de79ddfffad3ea');olympe.sc.ui.ye.vr=olympe.sc.ui.ye.U.ca('0168387e0011b88e3095');olympe.sc.ui.ye.ec=olympe.sc.ui.ye.U.ca('0168387e0527edb9bd2a');olympe.sc.ui.ye.jc=olympe.sc.ui.ye.U.ca('0168387e0a992ee500be');olympe.sc.ui.ye.Re=olympe.sc.ui.ye.U.ca('0168387e0e5bfd3e00d8');
|
|
1675
1675
|
olympe.sc.ui.ye.Mc=olympe.sc.ui.ye.U.ca('0168377a219478c7a296');olympe.sc.ui.ye.Gc=olympe.sc.ui.ye.U.ca('0168377a5118eb32afd2');olympe.sc.ui.Ou=class extends olympe.sc.ui.Hd{};olympe.sc.ui.Ou.U=olympe.dc.Ha.C('01634497d5e7cab7022f',olympe.sc.ui.Ou);olympe.sc.ui.Ou.U.C=function(a,b,c,d){b=b||'List Element';c=Ml(a,{[olympe.dc.CloudObject.nameProp.na()]:b},olympe.sc.ui.Ou,olympe.sc.ui.X.sn);olympe.dc.CloudObject.Pf(a,olympe.sc.ui.Hd,b,d,c);return c.na()};olympe.sc.ui.RI=class extends olympe.sc.ui.Dn{};olympe.sc.ui.RI.U=olympe.dc.Ha.C('016c8f3b84720165aac5',olympe.sc.ui.RI);function qo(a,b){const c=new Map;a.db.uc(a,olympe.sc.ui.Me.F).forEach(d=>{var e=a.db.se(d,olympe.sc.ui.Rg.C);d=a.db.se(d,olympe.sc.ui.Rg.F);a.W.debug(`ScreenTransition: Saving property ${e} to ${d}`);e=b.get(e);c.set(d,e)});return c}
|
|
1676
1676
|
olympe.sc.ui.Me=class extends olympe.dc.CloudObject{constructor(a,b,c){super(a,b);this.W=c}iz(){return this.ht(olympe.sc.ui.Me.O).Sh()}Ty(){return this.ht(olympe.sc.ui.Me.C).Sh()}Qy(){return this.uc(olympe.sc.ui.Me.R,olympe.dm.Property).Ld()}C(){return this.uc(olympe.sc.ui.Me.F,olympe.sc.ui.Rg)}};olympe.sc.ui.Me.U=olympe.dc.Ha.C('01619a10457e749fdf59',olympe.sc.ui.Me,olympe.sc.ga.Vb);olympe.sc.ui.Me.O=olympe.sc.ui.Me.U.ob('01619a16a406bf504c9f');olympe.sc.ui.Me.C=olympe.sc.ui.Me.U.ob('01619a16a406bf504c9e');
|
|
1677
|
-
olympe.sc.ui.Me.R=olympe.sc.ui.Me.U.ob('01619a16a406bf504c90');olympe.sc.ui.Me.F=olympe.sc.ui.Me.U.ob('0162befc703dfd7b93b4');Y(olympe.dm.Property.U,olympe.sc.ui.Me.R);olympe.sc.ui.Me.prototype.iz.K=new olympe.j.J(()=>olympe.sc.ui.Screen,[]);olympe.sc.ui.Me.prototype.Ty.K=new olympe.j.J(()=>olympe.sc.ui.Screen,[]);olympe.sc.ui.Me.prototype.Qy.K=new olympe.j.J(()=>olympe.dm.Property,[]);olympe.sc.ui.Me.prototype.C.K=new olympe.j.J(()=>olympe.dc.xb,[]);olympe.sc.ui.vy=class extends olympe.sc.Bb.Yr{constructor(a,b,c,d){super(a,b,c);this.C=d}
|
|
1677
|
+
olympe.sc.ui.Me.R=olympe.sc.ui.Me.U.ob('01619a16a406bf504c90');olympe.sc.ui.Me.F=olympe.sc.ui.Me.U.ob('0162befc703dfd7b93b4');Y(olympe.dm.Property.U,olympe.sc.ui.Me.R);olympe.sc.ui.Me.prototype.iz.K=new olympe.j.J(()=>olympe.sc.ui.Screen,[]);olympe.sc.ui.Me.prototype.Ty.K=new olympe.j.J(()=>olympe.sc.ui.Screen,[]);olympe.sc.ui.Me.prototype.Qy.K=new olympe.j.J(()=>olympe.dm.Property,[]);olympe.sc.ui.Me.prototype.C.K=new olympe.j.J(()=>olympe.dc.xb,[]);olympe.sc.ui.vy=class extends olympe.sc.Bb.Yr{constructor(a,b,c,d){super(a,b,c);this.C=d}$a(a){this.render(a);super.$a(a)}render(a){const b=this.C.Te(),c=this.F(),d=this.ng();this.C.Dh(d.Sa());this.W.debug('Loading fonts');Xn(c,$m(a)).forEach(f=>{b.yG(f)});this.W.debug('Apply theme');d.C().$J(a);const e=d.O();a=Xm(a,e.na());no(b.ja(),a);a.FD(olympe.sc.Kb.C.mq).then(f=>{b.appendChild(f,'ui_app_screenflow')}).catch(()=>this.W.warn(`Screenflow ${e.na()} has not been rendered.`))}};
|
|
1678
1678
|
olympe.sc.ui.vy.U=olympe.dc.Ha.C('0113031000000aca1101',olympe.sc.ui.vy,olympe.sc.ga.Vb,olympe.ui.ga.Zb);olympe.sc.ui.dj=class extends olympe.sc.Bb.Xg{$h(){return olympe.sc.df.ej.yI}C(){return this.uf(olympe.sc.ui.dj.V,olympe.sc.ui.Tg)}O(){const a=this.db.Jy(this.tag,[olympe.sc.Ic.F],b=>this.db.ag(b,olympe.sc.ui.X.wk));if(null===a)throw Error('Cannot find the Screenflow associated to the UIApplication. The UIApplication was likely badly created.');return olympe.dc.CloudObject.get(a)}R(){return this.Gv().gj().ag([olympe.sc.ui.X.wk]).ge()}};
|
|
1679
1679
|
olympe.sc.ui.dj.U=olympe.dc.Ha.C('011203100000000adef1',olympe.sc.ui.dj,olympe.ui.ga.Zb,olympe.sc.ga.Vb);olympe.sc.ui.dj.V=olympe.sc.ui.dj.U.ob('016200d21c9069cf23b4');olympe.sc.ui.dj.U.C=(a,b,c,d)=>{b=Ml(a,b||'New UI App',olympe.sc.ui.dj,olympe.sc.ui.vy);var e=olympe.xa.Wq();e=olympe.dc.CloudObject.Pf(a,olympe.sc.ui.X.wk,'UIApp Screenflow',e);a.Sb(olympe.sc.Ic.F,b,e);a.Sb(olympe.dc.CloudObject.containsRel,b,e);a.Sb(olympe.sc.Bb.Xg.C,b,c);d&&a.Sb(olympe.sc.ui.dj.V,b,d);return b.na()};
|
|
1680
1680
|
olympe.sc.ui.dj.prototype.C.K=new olympe.j.J(()=>olympe.sc.ui.Tg,[]);olympe.sc.ui.dj.prototype.O.K=olympe.j.J.O;olympe.sc.ui.Screen=class extends olympe.sc.ui.Renderable{T(){return[this.Ba,this.La,this.aa,this.Ja,this.V]}La(a,b){if(a=a.Ra('MAP_PROPS'))for(const [c,d]of a)b(c,d)}};olympe.sc.ui.Screen.U=olympe.dc.Ha.C('01612df3703450d895ac',olympe.sc.ui.Screen);olympe.sc.ui.Screen.O=Y(olympe.sc.ui.Screen.U,olympe.sc.ui.Me.C);olympe.sc.ui.Screen.La=Y(olympe.sc.ui.Screen.U,olympe.sc.ui.Me.O);olympe.sc.ui.Screen.Ba=olympe.sc.ui.Screen.U.ca('01648dde0de293c23f90');olympe.sc.ui.Screen.T=olympe.sc.ui.Screen.U.ca('01648dde0de252c9f851');
|
|
1681
|
-
olympe.sc.ui.Screen.Fa=olympe.sc.ui.Screen.U.ca('01648dde0de26fef1ae0');olympe.sc.ui.Screen.Ja=olympe.sc.ui.Screen.U.ca('01648dde0de218c6a40b');olympe.sc.ui.Screen.$=olympe.sc.ui.Screen.U.ca('01648dde0de2ffac7f66');olympe.sc.ui.Screen
|
|
1681
|
+
olympe.sc.ui.Screen.Fa=olympe.sc.ui.Screen.U.ca('01648dde0de26fef1ae0');olympe.sc.ui.Screen.Ja=olympe.sc.ui.Screen.U.ca('01648dde0de218c6a40b');olympe.sc.ui.Screen.$=olympe.sc.ui.Screen.U.ca('01648dde0de2ffac7f66');olympe.sc.ui.Screen.$a=olympe.sc.ui.Screen.U.ca('01648dde0de283af36bd');olympe.sc.ui.Screen.R=olympe.sc.ui.Screen.U.ca('01648dde0de2ea82e114');Y(olympe.sc.ui.Screen.U,olympe.sc.ui.Dn.C);olympe.sc.ui.ly=class extends olympe.sc.ui.Screen{F(){const a=new olympe.ui.D.Be(new olympe.j.ha(100,100));a.Na(Zb());return a}};olympe.sc.ui.ly.U=olympe.dc.Ha.C('016402313e7c1e9fd8fa',olympe.sc.ui.ly);olympe.sc.ui.Rg=class extends olympe.dc.CloudObject{Ty(){return this.uc(olympe.sc.ui.Rg.C,olympe.dm.Property).Ld()}iz(){return this.uc(olympe.sc.ui.Rg.F,olympe.dm.Property).Ld()}};olympe.sc.ui.Rg.O='MAP_PROPS';olympe.sc.ui.Rg.U=olympe.dc.Ha.C('0162d3e045580eac6c53',olympe.sc.ui.Rg);olympe.sc.ui.Rg.C=olympe.sc.ui.Rg.U.ob('0162bef0c00ce7782cee');olympe.sc.ui.Rg.F=olympe.sc.ui.Rg.U.ob('0162bef120e8ca8f61a3');olympe.sc.ui.Rg.R=Y(olympe.sc.ui.Rg.U,olympe.sc.ui.Me.F);Y(olympe.dm.Property.U,olympe.sc.ui.Rg.C);
|
|
1682
1682
|
Y(olympe.dm.Property.U,olympe.sc.ui.Rg.F);olympe.sc.ui.Rg.prototype.Ty.K=new olympe.j.J(()=>olympe.dm.Property,[]);olympe.sc.ui.Rg.prototype.iz.K=new olympe.j.J(()=>olympe.dm.Property,[]);olympe.sc.ui.gJ=class extends olympe.dc.CloudObject{};olympe.sc.ui.gJ.U=olympe.dc.Ha.C('0162d3ede786c89fb31b',olympe.sc.ui.gJ);olympe.sc.ui.UIEvent=class extends olympe.dc.CloudObject{};olympe.sc.ui.UIEvent.U=olympe.dc.Ha.C('0163fe51d83dad2a0f4b',olympe.sc.ui.UIEvent);olympe.sc.ui.fJ=class extends olympe.dc.CloudObject{};olympe.sc.ui.fJ.U=olympe.dc.Ha.C('016c865bbf883591cc25',olympe.sc.ui.fJ);function mo(a,b,c){return a+'^'+b+'^'+('string'===typeof c?c:c.na())}function ro(a,b){void 0===a.C[b]&&(a.C[b]=new olympe.dc.xb(b,[new olympe.dc.Oa.bj(olympe.dc.lg.js,olympe.dc.Nb.DESTINATION,0),olympe.sc.ui.cj.V],olympe.dm.Property));return a.C[b].getSubscription()}
|
|
1683
1683
|
olympe.sc.ui.Tg=class extends olympe.dm.BrickMetadata{constructor(a,b,c){super(a,b);this.C={};this.O=c}$J(a){if(!this.O){var b=this.db;this.F().forEach(c=>{const d=b.model(c);olympe.j.Ua([c.Sa(),c.Md(olympe.sc.ui.Renderable.eb)],(e,f)=>{const g=mo(e,d,'');a.Ra(g)||(a.set(g,!0),ro(this,d).forEach(k=>{const l=mo(e,d,k);let m=null,n=null;const p=()=>{null!==m?a.set(l,m):null!==n?a.set(l,n):a.remove(l)},r=ci(b,c,k,(t,u)=>{m=u?null:t;p()});if(!e.Yb(f)){const t=mo(f,d,k);a.on(t,u=>{n=u;p()})}olympe.j.sb().R(()=>
|
|
1684
1684
|
{di(b,c,k,r);a.remove(l)})}),olympe.j.sb().R(()=>{a.set(g,!1)}))})})}}$h(){return olympe.sc.df.ej.PB}F(){return this.uc(olympe.sc.ui.Tg.C,olympe.sc.ui.Renderable)}};olympe.sc.ui.Tg.U=olympe.dc.Ha.C('0161d7b7e11e93199927',olympe.sc.ui.Tg,new olympe.va.Ab(olympe.sc.qa.uA));olympe.sc.ui.Tg.O=Y(olympe.sc.ui.Tg.U,olympe.sc.ui.dj.V);olympe.sc.ui.Tg.C=olympe.sc.ui.Tg.U.ob('0170171c1c9e2f1555bb');Y(olympe.sc.ui.Renderable.U,olympe.sc.ui.Tg.C);olympe.sc.ui.Tg.F=bh('01644110be563fae3bf9','DEFAULT_THEME');
|
|
@@ -1687,16 +1687,16 @@ olympe.sc.ui.ThemeModel.warningColorProp=olympe.sc.ui.ThemeModel.U.ca('018170ee7
|
|
|
1687
1687
|
olympe.sc.ui.Lf.U=olympe.dc.Ha.C('01611e77c1becc16025b',olympe.sc.ui.Lf);olympe.sc.ui.Lf.C=olympe.sc.ui.Lf.U.ca('01611e7ad37b715e393d');olympe.sc.ui.Lf.propertyRel=olympe.sc.ui.Lf.U.ob('01611e7cd458bd5607ac');olympe.sc.ui.Lf.F=olympe.sc.ui.Lf.U.ob('016952415429cb0a0c0a');olympe.sc.ui.Lf.V=bh('0164188f5cc0c205bc06','CUSTOM_PROPERTIES_TAB_CAT');olympe.sc.ui.Lf.T=bh('0165335122d2ea44dd92','CUSTOM_EVENT_CAT');olympe.sc.ui.Lf.R=bh('0161bd31111c6b32e43d','CATEGORY_SPECIFIC_VALUE');
|
|
1688
1688
|
olympe.sc.ui.Lf.O=bh('016362a33e99ca8f8ade','CATEGORY_SPECIFIC_FONT');olympe.sc.ui.Lf.aa=bh('016122a51eea77d3dd8a','ROOT_CATEGORY');h=olympe.sc.ui.Lf.prototype;h.Se.K=olympe.j.J.F;h.YS.K=new olympe.j.J(()=>olympe.dm.Property,[]);h.kU.K=new olympe.j.J(()=>olympe.dc.xb,[]);h.NT.K=new olympe.j.J(()=>olympe.dc.xb,[]);h.gU.K=new olympe.j.J(()=>olympe.dc.xb,[]);olympe.sc.ui.Xe=class extends olympe.dc.CloudObject{constructor(a,b){super(a,b)}Se(){return this.$f(olympe.sc.ui.Xe.F)}zU(){return this.Qn(olympe.sc.ui.Xe.O)}CU(){return this.Qn(olympe.sc.ui.Xe.T)}AU(){return this.Qn(olympe.sc.ui.Xe.R)}he(){return this.uc(olympe.sc.ui.Xe.propertyRel,olympe.dm.Property)}ZS(){return this.uc(olympe.sc.ui.Xe.C,olympe.sc.ui.Lf).Ld()}};olympe.sc.ui.Xe.U=olympe.dc.Ha.C('016d1bb681929c2cc3f0',olympe.sc.ui.Xe);olympe.sc.ui.Xe.F=olympe.sc.ui.Xe.U.ca('016d1bb681929c2cc3f1');
|
|
1689
1689
|
olympe.sc.ui.Xe.T=olympe.sc.ui.Xe.U.ca('016d1bb681929c2cc3f2');olympe.sc.ui.Xe.O=olympe.sc.ui.Xe.U.ca('016d1bb681929c2cc3f3');olympe.sc.ui.Xe.R=olympe.sc.ui.Xe.U.ca('0170beccaac4129d72a9');olympe.sc.ui.Xe.C=olympe.sc.ui.Xe.U.ob('016d1bb681929c2cc3f4');olympe.sc.ui.Xe.propertyRel=olympe.sc.ui.Xe.U.ob('016d1bb681929c2cc3f5');Y(olympe.dm.Property.U,olympe.sc.ui.Xe.propertyRel);Y(olympe.sc.ui.Lf.U,olympe.sc.ui.Xe.C);h=olympe.sc.ui.Xe.prototype;h.Se.K=olympe.j.J.F;h.zU.K=olympe.j.J.T;h.CU.K=olympe.j.J.T;
|
|
1690
|
-
h.AU.K=olympe.j.J.T;h.he.K=new olympe.j.J(()=>olympe.dc.xb,[]);h.ZS.K=new olympe.j.J(()=>olympe.sc.ui.Lf,[]);olympe.sc.ui.X={};olympe.sc.ui.X.$d=class extends olympe.sc.ui.Ga{constructor(a,b){super(a,b)}F(a){const b=new olympe.ui.D.Audio(this.ja(a));b.Zd(this.Aa(olympe.sc.ui.X.$d.urlProp,a,olympe.j.ib));this.C(b,a);b.gi(this.Aa(olympe.sc.ui.X.$d.Ba,a,olympe.j.fa,olympe.j.fa.kb));olympe.j.Cg([b.F.wa()],()=>{});b.Eh(this.Aa(olympe.sc.ui.X.$d
|
|
1690
|
+
h.AU.K=olympe.j.J.T;h.he.K=new olympe.j.J(()=>olympe.dc.xb,[]);h.ZS.K=new olympe.j.J(()=>olympe.sc.ui.Lf,[]);olympe.sc.ui.X={};olympe.sc.ui.X.$d=class extends olympe.sc.ui.Ga{constructor(a,b){super(a,b)}F(a){const b=new olympe.ui.D.Audio(this.ja(a));b.Zd(this.Aa(olympe.sc.ui.X.$d.urlProp,a,olympe.j.ib));this.C(b,a);b.gi(this.Aa(olympe.sc.ui.X.$d.Ba,a,olympe.j.fa,olympe.j.fa.kb));olympe.j.Cg([b.F.wa()],()=>{});b.Eh(this.Aa(olympe.sc.ui.X.$d.$a,a,olympe.j.fa));b.Bh(this.Aa(olympe.sc.ui.X.$d.$,a,olympe.j.fa));olympe.j.Cg([this.Aa(olympe.sc.ui.X.$d.O,a,olympe.j.fa)],c=>{c.valueOf()?b.play():b.pause()});olympe.j.Cg([b.C.wa()],
|
|
1691
1691
|
c=>{a.set(olympe.sc.ui.X.$d.O,c.ne())});b.Si(this.O(olympe.sc.ui.X.$d.Ja,a,olympe.j.Z,b.volume.wa(),olympe.j.Z.ONE));olympe.j.Cg([this.Aa(olympe.sc.ui.X.$d.Fa,a,olympe.j.Z)],c=>{olympe.j.Ra(this.Aa(olympe.sc.ui.X.$d.O,a,olympe.j.fa)).valueOf()||b.Dj(c)});olympe.j.Cg([b.O.wa()],c=>{a.set(olympe.sc.ui.X.$d.Fa,c.cb(100).trunc().Qa(100))});olympe.j.Ua([b.duration.wa()],c=>{a.set(olympe.sc.ui.X.$d.La,c)});return b}};olympe.sc.ui.X.$d.U=olympe.dc.Ha.C('016c04e78462a540a8e0',olympe.sc.ui.X.$d);
|
|
1692
|
-
olympe.sc.ui.X.$d.urlProp=olympe.sc.ui.X.$d.U.ca('016c04e78462a540a8e1');olympe.sc.ui.X.$d
|
|
1693
|
-
olympe.sc.ui.X.$d.U.C=function(a,b){a=a.create(olympe.sc.ui.X.$d);b&&Z(a,olympe.dc.CloudObject.nameProp,b);Z(a,olympe.sc.ui.Renderable.C,olympe.j.ya(384));Z(a,olympe.sc.ui.Renderable.F,olympe.j.ya(55));Z(a,olympe.sc.ui.X.$d
|
|
1694
|
-
const r=this.Aa(olympe.sc.ui.Cd
|
|
1692
|
+
olympe.sc.ui.X.$d.urlProp=olympe.sc.ui.X.$d.U.ca('016c04e78462a540a8e1');olympe.sc.ui.X.$d.$a=olympe.sc.ui.X.$d.U.ca('016c04e78462a540a8e2');olympe.sc.ui.X.$d.$=olympe.sc.ui.X.$d.U.ca('016c04e78462a540a8e3');olympe.sc.ui.X.$d.Ja=olympe.sc.ui.X.$d.U.ca('016c04e78462a540a8e5');olympe.sc.ui.X.$d.O=olympe.sc.ui.X.$d.U.ca('016c04e78462a540a8e4');olympe.sc.ui.X.$d.La=olympe.sc.ui.X.$d.U.ca('016c04e78462a540a8e7');olympe.sc.ui.X.$d.Fa=olympe.sc.ui.X.$d.U.ca('016c04e78462a540a8e6');olympe.sc.ui.X.$d.Ba=olympe.sc.ui.X.$d.U.ca('016c04e78462a540a8e8');
|
|
1693
|
+
olympe.sc.ui.X.$d.U.C=function(a,b){a=a.create(olympe.sc.ui.X.$d);b&&Z(a,olympe.dc.CloudObject.nameProp,b);Z(a,olympe.sc.ui.Renderable.C,olympe.j.ya(384));Z(a,olympe.sc.ui.Renderable.F,olympe.j.ya(55));Z(a,olympe.sc.ui.X.$d.$a,olympe.j.fa.C);Z(a,olympe.sc.ui.X.$d.$,olympe.j.fa.kb);Z(a,olympe.sc.ui.X.$d.Ba,olympe.j.fa.kb);Z(a,olympe.sc.ui.X.$d.Ja,olympe.j.Z.ONE);return a.na()};olympe.sc.ui.X.mc=class extends olympe.sc.ui.Cd{F(a){var b=olympe.j.Color,c=olympe.j.fa;const d=olympe.sc.ui.X.mc.$;var e=olympe.sc.ui.X.mc.Ba;const f=olympe.sc.ui.X.mc.FB,g=olympe.sc.ui.Renderable.C,k=olympe.sc.ui.Renderable.F,l=new olympe.ui.D.mc(this.ja(a));this.C(l,a);const m=this.Aa(olympe.sc.ui.Renderable.la,a,b);var n=this.Aa(olympe.sc.ui.X.mc.Re,a,b);l.Cj(n);l.XA(this.Aa(olympe.sc.ui.X.mc.ec,a,b));const p=this.Aa(olympe.sc.ui.X.mc.jc,a,b);l.Na(olympe.j.Ya(l.fh(),()=>p,()=>m,olympe.j.Color));
|
|
1694
|
+
const r=this.Aa(olympe.sc.ui.Cd.$a,a,b);n=this.Aa(olympe.sc.ui.X.mc.vr,a,b);l.ZA(n);l.YA(this.Aa(olympe.sc.ui.X.mc.Ib,a,b));const t=this.Aa(olympe.sc.ui.X.mc.Gc,a,b);l.nw(olympe.j.Ya(l.fh(),()=>t,()=>r,b));l.lf(this.Aa(olympe.sc.ui.X.mc.vb,a,c));b=this.Aa(olympe.sc.ui.X.mc.Mc,a,olympe.j.Z);n=this.Aa(olympe.sc.ui.X.mc.Pe,a,olympe.j.Z);l.Nd(this.Aa(e,a,c),b);l.Ed(this.Aa(d,a,c),n);e=this.Aa(e,a,c,olympe.j.fa.kb);c=this.Aa(d,a,c,olympe.j.fa.kb);olympe.j.Ya(e,()=>{Rn(this.Aa(f,a,olympe.sc.Lq),a,g,olympe.j.Wa([l.ja().ma()],
|
|
1695
1695
|
u=>u.valueOf(),Number))});olympe.j.Ya(c,()=>{Rn(this.Aa(f,a,olympe.sc.Lq),a,k,olympe.j.Wa([l.ja().pa()],u=>u.valueOf(),Number))});Zm(a)&&(c=this.Aa(olympe.sc.ui.Cd.O,a,olympe.j.ib,olympe.j.cc('%UNDEFINED%')),l.Fb(olympe.j.Wa([c],u=>olympe.sc.logic.EE.C(this)?u.Yb('%UNDEFINED%')||u.Rk&&u.Rk().valueOf()?olympe.j.cc('%COMPUTED VALUE%'):u:u,olympe.j.ib)));return l}};olympe.sc.ui.X.mc.U=olympe.dc.Ha.C('01612df3ae3701933b03',olympe.sc.ui.X.mc);olympe.sc.ui.X.mc.Ba=olympe.sc.ui.X.mc.U.ca('016c8b3713bf8f4db871');
|
|
1696
1696
|
olympe.sc.ui.X.mc.$=olympe.sc.ui.X.mc.U.ca('016c8b3713bf8f4db872');olympe.sc.ui.X.mc.Mc=olympe.sc.ui.X.mc.U.ca('0170ca4983528b9f6bd7');olympe.sc.ui.X.mc.Pe=olympe.sc.ui.X.mc.U.ca('0170ca4991f5dcc3a484');olympe.sc.ui.X.mc.Re=olympe.sc.ui.X.mc.U.ca('016437688914581fea4d');olympe.sc.ui.X.mc.jc=olympe.sc.ui.X.mc.U.ca('016437688914b03261ce');olympe.sc.ui.X.mc.ec=olympe.sc.ui.X.mc.U.ca('0168997eefed6611afa2');olympe.sc.ui.X.mc.vr=olympe.sc.ui.X.mc.U.ca('016437688914bcb67a39');olympe.sc.ui.X.mc.Gc=olympe.sc.ui.X.mc.U.ca('016437688914221515ed');
|
|
1697
|
-
olympe.sc.ui.X.mc.Ib=olympe.sc.ui.X.mc.U.ca('0168997f731e2170e16e');olympe.sc.ui.X.mc.vb=olympe.sc.ui.X.mc.U.ca('0168990cc9a77f2a16b8');olympe.sc.ui.X.mc.FB=olympe.sc.ui.X.mc.U.ca('016d3f37610ae4fc3964');olympe.sc.ui.X.mc.U.C=function(a,b){a=a.create(olympe.sc.ui.X.mc);b&&(Z(a,olympe.dc.CloudObject.nameProp,b),Z(a,olympe.sc.ui.Cd.O,b));return a.na()};olympe.sc.ui.X.mc.prototype.F.K=new olympe.j.J(()=>olympe.ui.D.mc,[]);olympe.sc.ui.X.ue=class extends olympe.sc.ui.Ga{F(a){const b=new olympe.ui.D.ue(this.ja(a)),c=olympe.j.Wa([b.Xy()],d=>d.valueOf(),Boolean);b.pf(this.O(olympe.sc.ui.X.ue.valueProp,a,Boolean,c));this.C(b,a);b.Na(olympe.j.Ya(b.Xy(),()=>this.Aa(olympe.sc.ui.X.ue.Ba,a,olympe.j.Color),()=>this.Aa(olympe.sc.ui.Renderable.la,a,olympe.j.Color),olympe.j.Color));b.vC().zd(this.Aa(olympe.sc.ui.X.ue.Fa,a,olympe.j.Z),this.Aa(olympe.sc.ui.X.ue
|
|
1697
|
+
olympe.sc.ui.X.mc.Ib=olympe.sc.ui.X.mc.U.ca('0168997f731e2170e16e');olympe.sc.ui.X.mc.vb=olympe.sc.ui.X.mc.U.ca('0168990cc9a77f2a16b8');olympe.sc.ui.X.mc.FB=olympe.sc.ui.X.mc.U.ca('016d3f37610ae4fc3964');olympe.sc.ui.X.mc.U.C=function(a,b){a=a.create(olympe.sc.ui.X.mc);b&&(Z(a,olympe.dc.CloudObject.nameProp,b),Z(a,olympe.sc.ui.Cd.O,b));return a.na()};olympe.sc.ui.X.mc.prototype.F.K=new olympe.j.J(()=>olympe.ui.D.mc,[]);olympe.sc.ui.X.ue=class extends olympe.sc.ui.Ga{F(a){const b=new olympe.ui.D.ue(this.ja(a)),c=olympe.j.Wa([b.Xy()],d=>d.valueOf(),Boolean);b.pf(this.O(olympe.sc.ui.X.ue.valueProp,a,Boolean,c));this.C(b,a);b.Na(olympe.j.Ya(b.Xy(),()=>this.Aa(olympe.sc.ui.X.ue.Ba,a,olympe.j.Color),()=>this.Aa(olympe.sc.ui.Renderable.la,a,olympe.j.Color),olympe.j.Color));b.vC().zd(this.Aa(olympe.sc.ui.X.ue.Fa,a,olympe.j.Z),this.Aa(olympe.sc.ui.X.ue.$a,a,olympe.j.Color));b.vC().Na(olympe.j.Ya(b.Xy(),()=>this.Aa(olympe.sc.ui.X.ue.La,
|
|
1698
1698
|
a,olympe.j.Color),()=>this.Aa(olympe.sc.ui.X.ue.Ja,a,olympe.j.Color),olympe.j.Color));b.mf(this.Aa(olympe.sc.ui.X.ue.O,a,olympe.j.Z,olympe.j.Z.ZERO));ho(a,olympe.sc.ui.X.ue.$,b.Ja.bind(b),b.Fa.bind(b));return b}};olympe.sc.ui.X.ue.U=olympe.dc.Ha.C('0161bce1f151ed95683f',olympe.sc.ui.X.ue);olympe.sc.ui.X.ue.valueProp=olympe.sc.ui.X.ue.U.ca('0161bce236ebb4125ff7');olympe.sc.ui.X.ue.$=olympe.sc.ui.X.ue.U.ca('0161bce2516b5beb66ee');olympe.sc.ui.X.ue.Ba=olympe.sc.ui.X.ue.U.ca('016952bd9b2945e0cf2d');
|
|
1699
|
-
olympe.sc.ui.X.ue.Fa=olympe.sc.ui.X.ue.U.ca('016eef124b767b01de0e');olympe.sc.ui.X.ue
|
|
1699
|
+
olympe.sc.ui.X.ue.Fa=olympe.sc.ui.X.ue.U.ca('016eef124b767b01de0e');olympe.sc.ui.X.ue.$a=olympe.sc.ui.X.ue.U.ca('016eef2694489f36a6d3');olympe.sc.ui.X.ue.Ja=olympe.sc.ui.X.ue.U.ca('016eeb3de5c4036fe1fa');olympe.sc.ui.X.ue.La=olympe.sc.ui.X.ue.U.ca('016eeb3df78614f0290b');olympe.sc.ui.X.ue.O=olympe.sc.ui.X.ue.U.ca('016eeb5e545fbe43dd7a');olympe.sc.ui.X.ue.U.C=function(a,b){a=a.create(olympe.sc.ui.X.ue);b&&Z(a,olympe.dc.CloudObject.nameProp,b);return a.na()};olympe.sc.ui.X.Hf=class extends olympe.sc.ui.Ga{F(a){const b=new Intl.DateTimeFormat(void 0,{month:'long'});var c=this.$f(olympe.sc.ui.X.Hf.$),d=this.$f(olympe.sc.ui.X.Hf.O);const e=new olympe.ui.D.uE(new olympe.j.ha(c,d),{$V:(m,n)=>{m.Fb(olympe.j.cc(n.day));m.Na(olympe.j.Ya(n.Gp,()=>N(),()=>bc(),olympe.j.Color));m.Wb(olympe.ui.ia.rc.Rc);m.Ub(olympe.ui.ia.Db.Qb);m.jb(olympe.j.Ya(n.Gp,()=>Yb('dark slate gray',69,90,100,1),()=>olympe.j.Ya(n.HC,()=>Yb('dark cyan',0,150,136,1),()=>olympe.j.Ya(n.DC,()=>
|
|
1700
1700
|
N(),()=>Zb(),olympe.j.Color),olympe.j.Color),olympe.j.Color));m.wb(olympe.j.Ya(n.HC.and(n.Gp.ne()),()=>700,()=>400,Number));m.ac(5)},tU:(m,n,p)=>{m.Fb(olympe.j.Wa([p],r=>olympe.j.cc(b.format(r.Qr())),olympe.j.ib)).wb(800).jb(N());n.Fb(p.getYear().Uf()).wb(800).jb(N());m.Wb(olympe.ui.ia.rc.Rc);m.Ub(olympe.ui.ia.Db.Qb);n.Wb(olympe.ui.ia.rc.Rc);n.Ub(olympe.ui.ia.Db.Qb)},oS:(m,n)=>{m.Fb('<'===n?'\uf104':'\uf105').wb(800).qb('FontAwesome').jb(N()).Wb(olympe.ui.ia.rc.Rc).Ub(olympe.ui.ia.Db.Qb)},fW:(m,n)=>
|
|
1701
1701
|
{m.Fb('Mo Tu We Th Fr Sa Su'.split(' ')[n]);m.jb(N());m.Wb(olympe.ui.ia.rc.Rc);m.Ub(olympe.ui.ia.Db.Qb)}});e.Na(olympe.j.Color.create(69,90,100));d=olympe.j.Ra(olympe.j.$b.now());e.Dw(d);e.Gz(d);olympe.j.Ua([this.Aa(olympe.sc.ui.X.Hf.Ba,a,olympe.j.ib)],m=>{'DD.MM.YYYY'!==m.valueOf()&&this.W.warn('[DatePicker] Using custom format is no longer supported! Date will be formatted as DD.MM.YYYY!')});d=this.O(olympe.sc.ui.X.Hf.valueProp,a,String,olympe.j.Wa([e.fz()],m=>m.yo().valueOf(),String),olympe.j.$b.now().yo().valueOf());
|
|
1702
1702
|
olympe.j.Ua([d],m=>{const n=Rb(m),p=olympe.j.Ra(e.fz());n&&n.Tk().valueOf()&&!p.yo().Yb(m)&&(e.Dw(n),e.Gz(n))});e.ac(5);const f=olympe.j.bb(olympe.j.fa);f.update(olympe.j.fa.kb);d=new olympe.ui.D.ae(40,8);const g=(new olympe.ui.D.Lb(new olympe.j.ha(140,40))).Fb(e.fz().yo()).fg('default');g.Ki(()=>{const m=Rb(olympe.j.Ra(g.oj()));m&&m.Tk().valueOf()&&(e.Dw(m),e.Gz(m))});var k=(new olympe.ui.D.mc(new olympe.j.ha(60,40))).Fb('\uf073').qb('FontAwesome').fg('default');let l;k.Wc(()=>{const m=olympe.j.Ra(f.wa()).valueOf(),
|
|
@@ -1708,9 +1708,9 @@ e.hM(),olympe.j.fa.kb);a.on(olympe.sc.ui.X.dd.$,g=>{e.BM(g)},this);const f=this.
|
|
|
1708
1708
|
olympe.sc.ui.X.dd.Ba=olympe.sc.ui.X.dd.U.ca('01646b41d4fb284e88c4');olympe.sc.ui.X.dd.ec=olympe.sc.ui.X.dd.U.ca('016dca2998c1f20c3c6e');olympe.sc.ui.X.dd.Pe=olympe.sc.ui.X.dd.U.ca('016edaa40fdb543d0176');olympe.sc.ui.X.dd.Gc=olympe.sc.ui.X.dd.U.ca('016edacf08785409c410');olympe.sc.ui.X.dd.Mc=olympe.sc.ui.X.dd.U.ca('016edb1bc5fb269bfce8');olympe.sc.ui.X.dd.jc=olympe.sc.ui.X.dd.U.ca('016edb1bcff460c08af3');olympe.sc.ui.X.dd.Re=olympe.sc.ui.X.dd.U.ca('016edb8f1f3e173ffa3e');olympe.sc.ui.X.dd.vr=olympe.sc.ui.X.dd.U.ca('016edbc49fa2c9ef9e8d');
|
|
1709
1709
|
olympe.sc.ui.X.dd.$=olympe.sc.ui.X.dd.U.ca('016eda7c30ccd9936f6d');olympe.sc.ui.X.dd.FB=olympe.sc.ui.X.dd.U.ca('0165cdf57056f7394839');olympe.sc.ui.X.ve=class extends olympe.sc.ui.Ga{F(a){const b=new olympe.ui.D.ve(this.ja(a));b.Er(!0);jf(b,c=>{const d=new olympe.dc.Lc,e=[];for(const f of c){c=f.rt().valueOf();const g=olympe.sc.uT(c);c=olympe.dm.File.C(g,d,f.Bx().valueOf(),f.mg(),c);d.nr(c,!1);e.push(c)}d.persist(!1);d.wd(f=>{f?(a.set(olympe.sc.ui.X.ve.O,e.map(olympe.dc.CloudObject.get)),a.Rr(olympe.sc.ui.X.ve.$)):this.W.warn('The application encountered a problem while uploading files. The transaction failed.')})});this.C(b,a);
|
|
1710
1710
|
return b}};olympe.sc.ui.X.ve.U=olympe.dc.Ha.C('0165cd420a0ddfa948a2',olympe.sc.ui.X.ve);olympe.sc.ui.X.ve.O=olympe.sc.ui.X.ve.U.ca('0165cd42349c06193ae4');olympe.sc.ui.X.ve.$=olympe.sc.ui.X.ve.U.ca('0165cd424c8ac11a98ba');olympe.sc.ui.X.Image=class extends olympe.sc.ui.Ga{F(a){const b=new olympe.ui.D.fe(this.ja(a));this.C(b,a);const c=olympe.dc.CloudObject.get('016eb13ba1388f7bdd71');b.zr(olympe.j.Wa([this.Aa(olympe.sc.ui.X.Image.La,a,olympe.sc.Al,c)],d=>{d instanceof olympe.sc.Mj&&(d=d.C());if(d instanceof olympe.sc.Al)return d.O();if('string'===typeof d||d instanceof olympe.j.ib)return olympe.j.cc(d);this.W.warn('Image: cannot set value as background image source',d);return olympe.j.ib.EMPTY},olympe.j.ib));b.cq(this.Aa(olympe.sc.ui.X.Image.O,
|
|
1711
|
-
a,olympe.j.ib));b.vo(this.Aa(olympe.sc.ui.X.Image
|
|
1712
|
-
olympe.sc.ui.X.Image.Ba=olympe.sc.ui.X.Image.U.ca('01642664d44038c8eac1');olympe.sc.ui.X.Image.Fa=olympe.sc.ui.X.Image.U.ca('016426668f80d9bf7693');olympe.sc.ui.X.Image.Ja=olympe.sc.ui.X.Image.U.ca('016426669197f66aef82');olympe.sc.ui.X.Image.O=olympe.sc.ui.X.Image.U.ca('01642664d0eb249710d2');olympe.sc.ui.X.Image
|
|
1713
|
-
olympe.sc.ui.X.Image.U.C=function(a,b){a=a.create(olympe.sc.ui.X.Image);Z(a,olympe.dc.CloudObject.nameProp,b);Z(a,olympe.sc.ui.X.Image.$,0);Z(a,olympe.sc.ui.X.Image.Ba,0);Z(a,olympe.sc.ui.X.Image.Fa,0);Z(a,olympe.sc.ui.X.Image.Ja,0);Z(a,olympe.sc.ui.X.Image.O,'center');Z(a,olympe.sc.ui.X.Image
|
|
1711
|
+
a,olympe.j.ib));b.vo(this.Aa(olympe.sc.ui.X.Image.$a,a,olympe.j.ib));b.xr(new olympe.j.ha(this.Aa(olympe.sc.ui.X.Image.$,a,olympe.j.Z),this.Aa(olympe.sc.ui.X.Image.Ba,a,olympe.j.Z)));b.yr(new olympe.j.ha(this.Aa(olympe.sc.ui.X.Image.Fa,a,olympe.j.Z),this.Aa(olympe.sc.ui.X.Image.Ja,a,olympe.j.Z)));return b}};olympe.sc.ui.X.Image.U=olympe.dc.Ha.C('0162f1bd4db6b5603fd8',olympe.sc.ui.X.Image);olympe.sc.ui.X.Image.La=olympe.sc.ui.X.Image.U.ca('01642664ca2b59d1a196');olympe.sc.ui.X.Image.$=olympe.sc.ui.X.Image.U.ca('01642664d2bc3e1478f4');
|
|
1712
|
+
olympe.sc.ui.X.Image.Ba=olympe.sc.ui.X.Image.U.ca('01642664d44038c8eac1');olympe.sc.ui.X.Image.Fa=olympe.sc.ui.X.Image.U.ca('016426668f80d9bf7693');olympe.sc.ui.X.Image.Ja=olympe.sc.ui.X.Image.U.ca('016426669197f66aef82');olympe.sc.ui.X.Image.O=olympe.sc.ui.X.Image.U.ca('01642664d0eb249710d2');olympe.sc.ui.X.Image.$a=olympe.sc.ui.X.Image.U.ca('01642664d5baa65fdfc5');
|
|
1713
|
+
olympe.sc.ui.X.Image.U.C=function(a,b){a=a.create(olympe.sc.ui.X.Image);Z(a,olympe.dc.CloudObject.nameProp,b);Z(a,olympe.sc.ui.X.Image.$,0);Z(a,olympe.sc.ui.X.Image.Ba,0);Z(a,olympe.sc.ui.X.Image.Fa,0);Z(a,olympe.sc.ui.X.Image.Ja,0);Z(a,olympe.sc.ui.X.Image.O,'center');Z(a,olympe.sc.ui.X.Image.$a,'contain');return a.na()};
|
|
1714
1714
|
olympe.sc.ui.X.Image.vb={'01611e082c56483c8ef2':olympe.ui.ia.Ce.Af,'01611e09c8b095637f65':olympe.ui.ia.Ce.Hg,'01611e09e1b2c0f0cad5':olympe.ui.ia.Ce.Nl,'01611e09a8b328e05369':olympe.ui.ia.Ce.Ml,'01611e0a13c26c6002fd':olympe.ui.ia.Ce.Qb,'01611e09fac0ad53f906':olympe.ui.ia.Ce.rE,'01611e0a31ba45895327':olympe.ui.ia.Ce.sE,'01611e0a81e4ce36d596':olympe.ui.ia.Ce.Yg,'01611e0a67b24a1c4f54':olympe.ui.ia.Ce.ml,'01611e0aa70621354cbb':olympe.ui.ia.Ce.$r};
|
|
1715
1715
|
olympe.sc.ui.X.Image.ec={'01611e0bda4db5357514':olympe.ui.ia.Eg.Af,'01611e0bf880be3d343d':olympe.ui.ia.Eg.kq,'01611e0c10abf1090731':olympe.ui.ia.Eg.bs,'01611e0bbbd851a47e01':olympe.ui.ia.Eg.iq};olympe.sc.ui.X.Image.zb='016eb13ba1388f7bdd71';olympe.sc.ui.X.ab=class extends olympe.sc.ui.Cd{F(a){var b=olympe.sc.ui.X.ab.ec,c=olympe.sc.ui.X.ab.$;const d=olympe.sc.ui.X.ab.Ba,e=olympe.sc.ui.X.ab.jc;var f=olympe.sc.ui.X.ab.Ib;const g=olympe.sc.ui.X.ab.vb,k=olympe.sc.ui.Renderable.C,l=olympe.sc.ui.Renderable.F,m=olympe.j.fa.kb,n=new olympe.ui.D.ab(this.ja(a));this.C(n,a);b=this.Aa(b,a,olympe.j.fa);n.Cs(b);n.Ch(this.Aa(e,a,olympe.j.ib));n.Nd(this.Aa(d,a,olympe.j.fa));n.Ed(this.Aa(c,a,olympe.j.fa));n.$k(this.Aa(f,a,olympe.j.fa));f=this.Aa(d,a,
|
|
1716
1716
|
olympe.j.fa,m);c=this.Aa(c,a,olympe.j.fa,m);olympe.j.Ya(b,()=>{const p=this.Aa(g,a,olympe.sc.Lq);Rn(p,a,e,olympe.ui.ia.Bn.xu);Rn(p,a,d,!1)});olympe.j.Ya(f,()=>{Rn(this.Aa(g,a,olympe.sc.Lq),a,k,olympe.j.Wa([n.ja().ma()],p=>p.valueOf(),Number))});olympe.j.Ya(c,()=>{Rn(this.Aa(g,a,olympe.sc.Lq),a,l,olympe.j.Wa([n.ja().pa()],p=>p.valueOf(),Number))});Zm(a)&&(c=this.Aa(olympe.sc.ui.Cd.O,a,String,'%UNDEFINED%'),n.Fb(olympe.j.Wa([c],p=>olympe.sc.logic.EE.C(this)?'%UNDEFINED%'===p||''===p?'%COMPUTED VALUE%':
|
|
@@ -1718,30 +1718,30 @@ p:p,olympe.j.ib)));return n}};olympe.sc.ui.X.ab.U=olympe.dc.Ha.C('01612df39109cf
|
|
|
1718
1718
|
olympe.sc.ui.X.ab.U.C=function(a,b){a=a.create(olympe.sc.ui.X.ab);b&&(Z(a,olympe.dc.CloudObject.nameProp,b),Z(a,olympe.sc.ui.X.ab.O,b));return a.na()};olympe.sc.ui.X.ab.prototype.F.K=new olympe.j.J(()=>olympe.ui.D.ab,[]);function so(a,b){var c=a.ja(b);const d=to(a,b),e=uo(a,b),f=new olympe.j.pe(olympe.dc.CloudObject);olympe.j.Ua([c.pa(),d.pa(),olympe.j.Ni(e.bd(),0)],(k,l)=>{k=Math.ceil(k/l);if(Number.isFinite(k)){l=f.Di();if(k<l)for(var m=l-1;m>=k;m--)f.remove(f.Ek(m));for(m=olympe.j.Ra(e);l<k;l++)f.set('item'+l,m&&m.Dk(l)||null,l)}});const g=vo(a);c=new olympe.ui.D.ps(c,f,olympe.dc.CloudObject,a.ec.bind(a,d,b,g));a.C(c,b);return c}
|
|
1719
1719
|
function vo(a){a=a.db.Dc(a,olympe.sc.ui.X.pe.O);return a instanceof olympe.dc.Nf?Ng(a):null}function uo(a,b){a=a.Aa(olympe.sc.ui.X.pe.$,b,olympe.dc.xb);return olympe.j.Wa([a],c=>{if(c instanceof olympe.j.pe)return c;if(c instanceof olympe.dc.xb){const e=olympe.j.bb(olympe.dc.xb);c.uj(()=>e.update(c));return e.wa()}const d=new olympe.j.pe(olympe.dc.CloudObject);c instanceof Array&&c.forEach((e,f)=>{const g=olympe.xa.Qe();d.set(g,e);d.Hr(g,f)});return d},olympe.j.wg)}
|
|
1720
1720
|
function to(a,b){const c=olympe.j.Z,d=a.Aa(olympe.sc.ui.Renderable.C,b,c,c.ZERO);a=olympe.j.Wa([a.Aa(olympe.sc.ui.X.pe.Ba,b,c)],e=>0>=e.valueOf()?void 0:e,c,'List row height');return new olympe.j.ha(d,a)}
|
|
1721
|
-
olympe.sc.ui.X.pe=class extends olympe.sc.ui.Ga{F(a){if(Zm(a))return so(this,a);var b=vo(this);b=new olympe.ui.D.ps(this.ja(a),uo(this,a),olympe.dc.CloudObject,this.La.bind(this,to(this,a),a,b));this.C(b,a);return b}R(a){return a.includes(this.na())?this.Gv().gj().ag([olympe.sc.ui.Hd]).filter(b=>a.includes(olympe.dc
|
|
1721
|
+
olympe.sc.ui.X.pe=class extends olympe.sc.ui.Ga{F(a){if(Zm(a))return so(this,a);var b=vo(this);b=new olympe.ui.D.ps(this.ja(a),uo(this,a),olympe.dc.CloudObject,this.La.bind(this,to(this,a),a,b));this.C(b,a);return b}R(a){return a.includes(this.na())?this.Gv().gj().ag([olympe.sc.ui.Hd]).filter(b=>a.includes(olympe.dc.Za(b))).ge():null}ec(a,b,c,d,e,f){a=this.La(a,b,c,d,e,f);a.zd(1,olympe.j.Color.create(46,135,239));a.Tf(.4);return a}La(a,b,c,d,e){const f=new olympe.ui.D.Be(a);olympe.j.Ua([d],g=>{const k=
|
|
1722
1722
|
b.In('list_row');c.run(k);const l=k.get(olympe.sc.Kb.C.mq);olympe.j.Ua([a.ma()],m=>k.set(olympe.sc.ui.Renderable.C,m));olympe.j.Ua([a.pa()],m=>{0===m.valueOf()&&(m=olympe.j.Z.ONE);k.set(olympe.sc.ui.Renderable.F,m)});k.set(olympe.sc.ui.ic.R,0);k.set(olympe.sc.ui.ic.T,0);k.set(olympe.sc.ui.X.sn.$,g);olympe.j.Ua([e],m=>k.set(olympe.sc.ui.X.sn.O,m));f.appendChild(l,'currentRenderedItem');olympe.j.sb().R(()=>{k.destroy()})});return f}};olympe.sc.ui.X.pe.U=olympe.dc.Ha.C('01633eae77762d97b497',olympe.sc.ui.X.pe);
|
|
1723
1723
|
olympe.sc.ui.X.pe.O=olympe.sc.ui.X.pe.U.ca('01633eda39772493a535');olympe.sc.ui.X.pe.$=olympe.sc.ui.X.pe.U.ca('01633eaf88c467023dac');olympe.sc.ui.X.pe.Ba=olympe.sc.ui.X.pe.U.ca('01633eaf88c4b25d8071');
|
|
1724
|
-
olympe.sc.ui.X.pe.U.C=function(a,b){const c=a.create(olympe.sc.ui.X.pe);Z(c,olympe.dc.CloudObject.nameProp,b);Z(c,olympe.sc.ui.Renderable.C,200);Z(c,olympe.sc.ui.Renderable.F,400);b=olympe.dc.CloudObject.Pf(a,olympe.sc.ui.Ou,'Item Renderer',!0);const d=olympe.dc.CloudObject.Pf(a,b,'item renderer');Z(c,olympe.sc.ui.X.pe.O,new olympe.dc.Nf(d));a.Sb(olympe.sc.Runnable.aa,d,b);a.Sb(olympe.sc.Runnable.V,d,b);a.Sb(olympe.dc.CloudObject.containsRel,c,b);return c.na()};olympe.sc.ui.X.sn=class extends olympe.sc.ui.ic{F(a){return super.F(a)}};olympe.sc.ui.X.sn.U=olympe.dc.Ha.C('016995c9f3cd1db60dc7',olympe.sc.ui.X.sn);olympe.sc.ui.X.sn.$=olympe.sc.ui.X.sn.U.ca('016343f1676b2cb4ad06');olympe.sc.ui.X.sn.O=olympe.sc.ui.X.sn.U.ca('016343f1676b131af556');olympe.sc.ui.X.Map=class extends olympe.sc.ui.Ga{F(a){const b=new olympe.ui.Ta.Va.Map(this.ja(a));this.C(b,a);b.pu(this.Aa(olympe.sc.ui.X.Map
|
|
1724
|
+
olympe.sc.ui.X.pe.U.C=function(a,b){const c=a.create(olympe.sc.ui.X.pe);Z(c,olympe.dc.CloudObject.nameProp,b);Z(c,olympe.sc.ui.Renderable.C,200);Z(c,olympe.sc.ui.Renderable.F,400);b=olympe.dc.CloudObject.Pf(a,olympe.sc.ui.Ou,'Item Renderer',!0);const d=olympe.dc.CloudObject.Pf(a,b,'item renderer');Z(c,olympe.sc.ui.X.pe.O,new olympe.dc.Nf(d));a.Sb(olympe.sc.Runnable.aa,d,b);a.Sb(olympe.sc.Runnable.V,d,b);a.Sb(olympe.dc.CloudObject.containsRel,c,b);return c.na()};olympe.sc.ui.X.sn=class extends olympe.sc.ui.ic{F(a){return super.F(a)}};olympe.sc.ui.X.sn.U=olympe.dc.Ha.C('016995c9f3cd1db60dc7',olympe.sc.ui.X.sn);olympe.sc.ui.X.sn.$=olympe.sc.ui.X.sn.U.ca('016343f1676b2cb4ad06');olympe.sc.ui.X.sn.O=olympe.sc.ui.X.sn.U.ca('016343f1676b131af556');olympe.sc.ui.X.Map=class extends olympe.sc.ui.Ga{F(a){const b=new olympe.ui.Ta.Va.Map(this.ja(a));this.C(b,a);b.pu(this.Aa(olympe.sc.ui.X.Map.$a,a,olympe.j.ib),this.Aa(olympe.sc.ui.X.Map.Ba,a,olympe.j.ib));b.Dr(this.O(olympe.sc.ui.X.Map.$,a,olympe.j.Z,b.tC()));b.Cr(this.O(olympe.sc.ui.X.Map.O,a,olympe.j.Z,b.rC()));b.Nr(this.O(olympe.sc.ui.X.Map.Fa,a,olympe.j.Z,b.R()));const c=this.Aa(olympe.sc.ui.X.Map.Ja,a,olympe.sc.logic.Function,null);olympe.j.Ua([this.Aa(olympe.sc.ui.X.Map.La,a,olympe.j.wg)],
|
|
1725
1725
|
d=>{d&&d.forEach&&d.forEach((e,f)=>{olympe.j.Ua([c],g=>{if(null===g)b.tr(f);else{const k=a.In('object_to_marker'),[l]=g.getInputs(),[m,n]=g.getOutputs();k.set(l,e);g.run(k);olympe.j.Ua([k.wa(n,Number,!0),k.wa(m,Number,!0)],(p,r)=>b.Xs(p,r,f))}});olympe.j.sb().R(()=>b.tr(f))})});return b}};olympe.sc.ui.X.Map.U=olympe.dc.Ha.C('016426b17399ffc56c99',olympe.sc.ui.X.Map);olympe.sc.ui.X.Map.Ba=olympe.sc.ui.X.Map.U.ca('016427a99e367fa6c09d');olympe.sc.ui.X.Map.zb=olympe.sc.ui.X.Map.U.ca('01766b9dcec160a517e1');
|
|
1726
|
-
olympe.sc.ui.X.Map.$=olympe.sc.ui.X.Map.U.ca('016427a9b97eea350e50');olympe.sc.ui.X.Map.O=olympe.sc.ui.X.Map.U.ca('016427a9cfb705df606e');olympe.sc.ui.X.Map.Fa=olympe.sc.ui.X.Map.U.ca('016427a9e5efd39a5071');olympe.sc.ui.X.Map
|
|
1727
|
-
olympe.sc.ui.X.Map.U.C=(a,b)=>{a=a.create(olympe.sc.ui.X.Map);Z(a,olympe.dc.CloudObject.nameProp,b);Z(a,olympe.sc.ui.X.Map
|
|
1726
|
+
olympe.sc.ui.X.Map.$=olympe.sc.ui.X.Map.U.ca('016427a9b97eea350e50');olympe.sc.ui.X.Map.O=olympe.sc.ui.X.Map.U.ca('016427a9cfb705df606e');olympe.sc.ui.X.Map.Fa=olympe.sc.ui.X.Map.U.ca('016427a9e5efd39a5071');olympe.sc.ui.X.Map.$a=olympe.sc.ui.X.Map.U.ca('016436f8c0383becf392');olympe.sc.ui.X.Map.La=olympe.sc.ui.X.Map.U.ca('0164378b2cebf5cc6b6b');olympe.sc.ui.X.Map.Ja=olympe.sc.ui.X.Map.U.ca('0168ec49fe6e55ebe510');
|
|
1727
|
+
olympe.sc.ui.X.Map.U.C=(a,b)=>{a=a.create(olympe.sc.ui.X.Map);Z(a,olympe.dc.CloudObject.nameProp,b);Z(a,olympe.sc.ui.X.Map.$a,olympe.N.Ta.Va.Map.C.zH);Z(a,olympe.sc.ui.X.Map.Ba,'streets-v11');Z(a,olympe.sc.ui.X.Map.O,46.5);Z(a,olympe.sc.ui.X.Map.$,6.5);Z(a,olympe.sc.ui.X.Map.Fa,10);Z(a,olympe.sc.ui.Renderable.C,500);Z(a,olympe.sc.ui.Renderable.F,500);return a.na()};olympe.sc.ui.X.fe=class extends olympe.sc.ui.Ga{F(a){const b=new olympe.ui.D.fe(this.ja(a));this.C(b,a);return b}};olympe.sc.ui.X.fe.U=olympe.dc.Ha.C('01646f6a3fa5615a5bd1',olympe.sc.ui.X.fe);olympe.sc.ui.X.fe.U.C=function(a,b){a=a.create(olympe.sc.ui.X.fe);Z(a,olympe.dc.CloudObject.nameProp,b);return a.na()};function wo(a,b){const c=a.ja(b),d=new olympe.ui.D.Be(c);a.C(d,b);a=new olympe.ui.D.ab(c);a.zd(1,M());a.Wb(olympe.ui.ia.rc.Rc);a.Ub(olympe.ui.ia.Db.Qb);a.Fb('Screenflow');a.rb(c.ma().cb(.1));a.Tf(.5);d.appendChild(a,'label');return d}function xo(a,b,c){const d=olympe.j.sb();olympe.dc.yb.from(a.zh()).Ai().Hc(olympe.sc.ui.Dn.C,!0).back().Hc(olympe.sc.Ic.T,!0).Hc(olympe.sc.Runnable.aa,!0).observe(d,b?olympe.dc.yb.Mf.ep:olympe.dc.yb.Mf.fn).subscribe(()=>null==c?void 0:c())}
|
|
1728
1728
|
function yo(a,b,c){const d=olympe.j.sb();olympe.dc.yb.from(a).Ai().Hc(olympe.sc.Ic.T,!0).Hc(olympe.sc.ui.Me.C.Vd(),!0).Hc(olympe.sc.ui.Me.O,!0).back().Hc(olympe.sc.ui.Me.R,!0).back().Hc(olympe.sc.ui.Me.F,!0).observe(d,b?olympe.dc.yb.Mf.ep:olympe.dc.yb.Mf.fn).subscribe(()=>null==c?void 0:c())}
|
|
1729
1729
|
function zo(a,b,c,d){c.$M().gj().Hc(olympe.sc.ui.Me.C.Vd()).nu(b).ge().forEach(e=>{const f=e.Ty(),g=e.iz();olympe.j.Ua([c.na(),e.Qy()],(k,l)=>{a.La.wj();if(k!==(null==g?void 0:g.na())){var m=f instanceof olympe.sc.ui.ly?a:f,n=Xm(d,k);n.on(l,()=>{m===a&&d.remove(l);Xm(d,g);const p=qo(e,n);d.set('MAP_PROPS',p);d.set(olympe.sc.ui.X.wk.O,g)},m)}})})}function Ao(a,b,c){const d=olympe.j.sb();olympe.dc.yb.Rf(d,a,olympe.dc.ef.yi,void 0,b).subscribe(()=>null==c?void 0:c())}
|
|
1730
1730
|
olympe.sc.ui.X.wk=class extends olympe.sc.ui.Ga{constructor(a,b,c){super(a,b);this.La=c}update(a){a.set(olympe.sc.Kb.C.mq,this.F(a))}F(a){if(Zm(a))return wo(this,a);const b=this.ja(a),c=new olympe.ui.D.Be(b);this.C(c,a);const d=this.zh(),e=this.Aa(olympe.sc.ui.X.wk.O,a,olympe.sc.ui.Screen),f=$m(a);xo(this,f,()=>{const n=d.O();if(void 0===olympe.j.Ra(e)){const p=olympe.j.Ra(n);void 0!==p&&a.set(olympe.sc.ui.X.wk.O,p)}olympe.j.Cg([n],p=>{a.set(olympe.sc.ui.X.wk.O,p)})});const g=[],k=olympe.j.sb(),l=
|
|
1731
|
-
olympe.j.bb(olympe.sc.ui.Screen,'Screenflow loaded screen');yo(d,f,()=>{zo(this,d.RK().gj().ag([olympe.sc.ui.ly]).Hc(olympe.sc.ui.Me.C.Vd()).ge(),l.wa(),a)});olympe.j.Ua([e],n=>{g.includes(n.na())?l.update(n):k.run(()=>Ao(n,f,()=>{g.push(n.na());olympe.dc
|
|
1732
|
-
no(b,p);p.FD(olympe.sc.Kb.C.mq).then(r=>{c.appendChild(r,'screen')}).catch(()=>this.W.warn(`Screen ${n.na()} has not been rendered.`));olympe.j.sb().R(()=>{p.destroy()})},'Screenflow render loaded screen');return c}R(){return(new olympe.dc.Zo(this)).sK().ag([olympe.sc.ui.Screen]).ge()}};olympe.sc.ui.X.wk.U=olympe.dc.Ha.C('0163f87334925ee199c4',olympe.sc.ui.X.wk,olympe.ta.ga.Zb);olympe.sc.ui.X.wk.O=olympe.sc.ui.X.wk.U.ca('016e608cbdeab7a480ce');olympe.sc.ui.X.ud=class extends olympe.sc.ui.Ga{F(a){var b=this.Aa(olympe.sc.ui.X.ud.Fa,a,olympe.j.Z);const c=this.Aa(olympe.sc.ui.X.ud
|
|
1731
|
+
olympe.j.bb(olympe.sc.ui.Screen,'Screenflow loaded screen');yo(d,f,()=>{zo(this,d.RK().gj().ag([olympe.sc.ui.ly]).Hc(olympe.sc.ui.Me.C.Vd()).ge(),l.wa(),a)});olympe.j.Ua([e],n=>{g.includes(n.na())?l.update(n):k.run(()=>Ao(n,f,()=>{g.push(n.na());olympe.dc.Za(e)!==n.na()&&this.W.warn(`The selected screen ${olympe.dc.Za(e)} has changed while the loading of another one ${n.na()}`);l.update(n)}))},'Screenflow process screen change');let m=null;olympe.j.Ua([l],n=>{const p=Xm(a,n);m&&m.destroy();m=p;n.run(p);
|
|
1732
|
+
no(b,p);p.FD(olympe.sc.Kb.C.mq).then(r=>{c.appendChild(r,'screen')}).catch(()=>this.W.warn(`Screen ${n.na()} has not been rendered.`));olympe.j.sb().R(()=>{p.destroy()})},'Screenflow render loaded screen');return c}R(){return(new olympe.dc.Zo(this)).sK().ag([olympe.sc.ui.Screen]).ge()}};olympe.sc.ui.X.wk.U=olympe.dc.Ha.C('0163f87334925ee199c4',olympe.sc.ui.X.wk,olympe.ta.ga.Zb);olympe.sc.ui.X.wk.O=olympe.sc.ui.X.wk.U.ca('016e608cbdeab7a480ce');olympe.sc.ui.X.ud=class extends olympe.sc.ui.Ga{F(a){var b=this.Aa(olympe.sc.ui.X.ud.Fa,a,olympe.j.Z);const c=this.Aa(olympe.sc.ui.X.ud.$a,a,olympe.j.Z),d=this.Aa(olympe.sc.ui.X.ud.O,a,olympe.j.Z);b=new olympe.ui.D.ud(this.ja(a),b,c,d);b.pf(this.O(olympe.sc.ui.X.ud.valueProp,a,Number,olympe.j.Wa([b.getValue()],e=>e.valueOf(),Number)));this.C(b,a);b.GM(this.Aa(olympe.sc.ui.X.ud.$,a,olympe.j.Color));b.kh(this.Aa(olympe.sc.ui.X.ud.Ba,a,olympe.j.Z));b.SM(this.Aa(olympe.sc.ui.X.ud.Ib,a,olympe.j.Color));
|
|
1733
1733
|
b.UM(this.Aa(olympe.sc.ui.X.ud.zb,a,olympe.j.Color));b.RM(this.Aa(olympe.sc.ui.X.ud.ec,a,olympe.j.Z));b.QM(this.Aa(olympe.sc.ui.X.ud.vb,a,olympe.j.Color));b.TM(this.Aa(olympe.sc.ui.X.ud.La,a,olympe.j.Color));ho(a,olympe.sc.ui.X.ud.Ja,b.qM.bind(b),b.mM.bind(b));return b}};olympe.sc.ui.X.ud.U=olympe.dc.Ha.C('0163df0bbf0d8c8ca7d3',olympe.sc.ui.X.ud);olympe.sc.ui.X.ud.valueProp=olympe.sc.ui.X.ud.U.ca('0163df0bc2f7d39a2396');olympe.sc.ui.X.ud.Fa=olympe.sc.ui.X.ud.U.ca('0163df0bc9635729e324');
|
|
1734
|
-
olympe.sc.ui.X.ud
|
|
1734
|
+
olympe.sc.ui.X.ud.$a=olympe.sc.ui.X.ud.U.ca('0163df0bca9e746a1bda');olympe.sc.ui.X.ud.O=olympe.sc.ui.X.ud.U.ca('01697cd892e2698db26b');olympe.sc.ui.X.ud.Ba=olympe.sc.ui.X.ud.U.ca('01697cd8ffd33aa56287');olympe.sc.ui.X.ud.$=olympe.sc.ui.X.ud.U.ca('01697cd93f436566d0c9');olympe.sc.ui.X.ud.Ib=olympe.sc.ui.X.ud.U.ca('01697cd97974dfd25476');olympe.sc.ui.X.ud.zb=olympe.sc.ui.X.ud.U.ca('01697cd9b11eb39a003d');olympe.sc.ui.X.ud.vb=olympe.sc.ui.X.ud.U.ca('01697cd9f6f7d89034ec');olympe.sc.ui.X.ud.ec=olympe.sc.ui.X.ud.U.ca('016980a2557456722aae');
|
|
1735
1735
|
olympe.sc.ui.X.ud.La=olympe.sc.ui.X.ud.U.ca('01697cda25b97273ee84');olympe.sc.ui.X.ud.Ja=olympe.sc.ui.X.ud.U.ca('01697cda53b82f03b323');olympe.sc.ui.X.Kc=class extends olympe.sc.ui.ye{F(a){const b=new olympe.ui.D.Kc(this.ja(a));this.C(b,a);b.Fb(this.O(olympe.sc.ui.Cd.O,a,String,olympe.j.Wa([b.oj()],c=>c.valueOf(),String)));return b}};olympe.sc.ui.X.Kc.U=olympe.dc.Ha.C('01683779d3c3769a590f',olympe.sc.ui.X.Kc);olympe.sc.ui.X.Kc.U.C=function(a,b){a=a.create(olympe.sc.ui.X.Kc);b&&Z(a,olympe.dc.CloudObject.nameProp,b);Z(a,olympe.sc.ui.Cd.O,'');return a.na()};olympe.sc.ui.X.Kc.prototype.F.K=new olympe.j.J(()=>olympe.ui.D.Kc,[]);olympe.sc.ui.X.Lb=class extends olympe.sc.ui.ye{F(a){const b=new olympe.ui.D.Lb(this.ja(a));this.C(b,a);b.Fb(this.O(olympe.sc.ui.Cd.O,a,String,olympe.j.Wa([b.oj()],c=>c.valueOf(),String)));b.Pm(this.Aa(olympe.sc.ui.X.Lb.Ba,a,olympe.j.ib));b.so(this.Aa(olympe.sc.ui.X.Lb.vb,a,olympe.j.fa));return b}};olympe.sc.ui.X.Lb.U=olympe.dc.Ha.C('01626ce8543dd37b31dd',olympe.sc.ui.X.Lb);olympe.sc.ui.X.Lb.Ba=olympe.sc.ui.X.Lb.U.ca('01699631db815bc2f18a');olympe.sc.ui.X.Lb.vb=olympe.sc.ui.X.Lb.U.ca('016e220471bea6ac38dd');
|
|
1736
|
-
olympe.sc.ui.X.Lb.U.C=function(a,b){a=a.create(olympe.sc.ui.X.Lb);b&&Z(a,olympe.dc.CloudObject.nameProp,b);Z(a,olympe.sc.ui.Cd.O,'');return a.na()};olympe.sc.ui.X.Lb.prototype.F.K=new olympe.j.J(()=>olympe.ui.D.Lb,[]);olympe.sc.ui.X.pd=class extends olympe.sc.ui.Ga{F(a){const b=new olympe.ui.D.nd(this.ja(a));b.Zd(this.Aa(olympe.sc.ui.X.pd.urlProp,a,olympe.j.ib));this.C(b,a);b.hi(this.O(olympe.sc.ui.X.pd.$,a,olympe.j.fa,b.C.wa(),olympe.j.fa.kb));b.gi(this.Aa(olympe.sc.ui.X.pd
|
|
1736
|
+
olympe.sc.ui.X.Lb.U.C=function(a,b){a=a.create(olympe.sc.ui.X.Lb);b&&Z(a,olympe.dc.CloudObject.nameProp,b);Z(a,olympe.sc.ui.Cd.O,'');return a.na()};olympe.sc.ui.X.Lb.prototype.F.K=new olympe.j.J(()=>olympe.ui.D.Lb,[]);olympe.sc.ui.X.pd=class extends olympe.sc.ui.Ga{F(a){const b=new olympe.ui.D.nd(this.ja(a));b.Zd(this.Aa(olympe.sc.ui.X.pd.urlProp,a,olympe.j.ib));this.C(b,a);b.hi(this.O(olympe.sc.ui.X.pd.$,a,olympe.j.fa,b.C.wa(),olympe.j.fa.kb));b.gi(this.Aa(olympe.sc.ui.X.pd.$a,a,olympe.j.fa,olympe.j.fa.kb));olympe.j.Cg([b.C.wa()],c=>{a.set(olympe.sc.ui.X.pd.$,c)});b.Eh(this.Aa(olympe.sc.ui.X.pd.Fa,a,olympe.j.fa));b.Bh(this.Aa(olympe.sc.ui.X.pd.Ba,a,olympe.j.fa));olympe.j.Cg([this.Aa(olympe.sc.ui.X.pd.O,a,olympe.j.fa)],
|
|
1737
1737
|
c=>{c.valueOf()?b.play():b.pause()});olympe.j.Cg([b.F.wa()],c=>{a.set(olympe.sc.ui.X.pd.O,c.ne())});b.Si(this.O(olympe.sc.ui.X.pd.La,a,olympe.j.Z,b.volume.wa(),olympe.j.Z.ONE));olympe.j.Cg([this.Aa(olympe.sc.ui.X.pd.Ja,a,olympe.j.Z)],c=>{olympe.j.Ra(this.Aa(olympe.sc.ui.X.pd.O,a,olympe.j.fa)).valueOf()||b.Dj(c)});olympe.j.Cg([b.R.wa()],c=>{a.set(olympe.sc.ui.X.pd.Ja,c.cb(100).trunc().Qa(100))});olympe.j.Ua([b.duration.wa()],c=>{a.set(olympe.sc.ui.X.pd.zb,c)});return b}};
|
|
1738
1738
|
olympe.sc.ui.X.pd.U=olympe.dc.Ha.C('016c0401e076eb532509',olympe.sc.ui.X.pd);olympe.sc.ui.X.pd.urlProp=olympe.sc.ui.X.pd.U.ca('016c0401e076eb53250a');olympe.sc.ui.X.pd.$=olympe.sc.ui.X.pd.U.ca('016c0401e076eb53250f');olympe.sc.ui.X.pd.Fa=olympe.sc.ui.X.pd.U.ca('016c0401e076eb53250b');olympe.sc.ui.X.pd.Ba=olympe.sc.ui.X.pd.U.ca('016c0401e076eb53250c');olympe.sc.ui.X.pd.La=olympe.sc.ui.X.pd.U.ca('016c0401e076eb53250e');olympe.sc.ui.X.pd.O=olympe.sc.ui.X.pd.U.ca('016c0401e076eb53250d');
|
|
1739
|
-
olympe.sc.ui.X.pd.zb=olympe.sc.ui.X.pd.U.ca('016c0401e076eb532511');olympe.sc.ui.X.pd.Ja=olympe.sc.ui.X.pd.U.ca('016c0401e076eb532510');olympe.sc.ui.X.pd
|
|
1740
|
-
olympe.sc.ui.X.pd.U.C=function(a,b){a=a.create(olympe.sc.ui.X.pd);b&&Z(a,olympe.dc.CloudObject.nameProp,b);Z(a,olympe.sc.ui.Renderable.C,olympe.j.ya(384));Z(a,olympe.sc.ui.Renderable.F,olympe.j.ya(216));Z(a,olympe.sc.ui.X.pd.urlProp,olympe.j.cc('https://sample-videos.com/video123/mp4/720/big_buck_bunny_720p_10mb.mp4'));Z(a,olympe.sc.ui.X.pd.Fa,olympe.j.fa.C);Z(a,olympe.sc.ui.X.pd.$,olympe.j.fa.kb);Z(a,olympe.sc.ui.X.pd.O,olympe.j.fa.kb);Z(a,olympe.sc.ui.X.pd.Ba,olympe.j.fa.kb);Z(a,olympe.sc.ui.X.pd
|
|
1741
|
-
olympe.j.fa.kb);Z(a,olympe.sc.ui.X.pd.La,olympe.j.Z.ONE);return a.na()};olympe.sc.ui.X.Ne=class extends olympe.sc.ui.Ga{F(a){if(Zm(a)){var b=this.ja(a);b=new olympe.ui.D.Be(b);b.dg('images/video-gallery.svg',olympe.ui.ia.Eg.kq,olympe.ui.ia.Ce.Qb);this.C(b,a);return b}const c=new olympe.ui.D.nd(this.ja(a));c.Ri(this.Aa(olympe.sc.ui.X.Ne.Ja,a,olympe.sc.Rq));this.C(c,a);c.hi(this.Aa(olympe.sc.ui.X.Ne.O,a,olympe.j.fa));olympe.j.Cg([c.C.wa()],d=>{a.set(olympe.sc.ui.X.Ne.O,d)});c.Eh(this.Aa(olympe.sc.ui.X.Ne
|
|
1742
|
-
olympe.j.Cg([this.Aa(olympe.sc.ui.X.Ne.$,a,olympe.j.fa)],d=>{d?c.play():c.pause()});olympe.j.Cg([c.F.wa()],d=>{a.set(olympe.sc.ui.X.Ne.$,d.ne())});c.Si(this.O(olympe.sc.ui.X.Ne.Fa,a,olympe.j.Z,c.volume.wa(),olympe.j.Z.ONE));return c}};olympe.sc.ui.X.Ne.U=olympe.dc.Ha.C('016422317da4f7fdca4e',olympe.sc.ui.X.Ne);olympe.sc.ui.X.Ne.Ja=olympe.sc.ui.X.Ne.U.ca('01642231cb7e8d6f1dac');olympe.sc.ui.X.Ne.O=olympe.sc.ui.X.Ne.U.ca('01642231cb7e8d6f1dad');olympe.sc.ui.X.Ne
|
|
1739
|
+
olympe.sc.ui.X.pd.zb=olympe.sc.ui.X.pd.U.ca('016c0401e076eb532511');olympe.sc.ui.X.pd.Ja=olympe.sc.ui.X.pd.U.ca('016c0401e076eb532510');olympe.sc.ui.X.pd.$a=olympe.sc.ui.X.pd.U.ca('016c0401e076eb532512');
|
|
1740
|
+
olympe.sc.ui.X.pd.U.C=function(a,b){a=a.create(olympe.sc.ui.X.pd);b&&Z(a,olympe.dc.CloudObject.nameProp,b);Z(a,olympe.sc.ui.Renderable.C,olympe.j.ya(384));Z(a,olympe.sc.ui.Renderable.F,olympe.j.ya(216));Z(a,olympe.sc.ui.X.pd.urlProp,olympe.j.cc('https://sample-videos.com/video123/mp4/720/big_buck_bunny_720p_10mb.mp4'));Z(a,olympe.sc.ui.X.pd.Fa,olympe.j.fa.C);Z(a,olympe.sc.ui.X.pd.$,olympe.j.fa.kb);Z(a,olympe.sc.ui.X.pd.O,olympe.j.fa.kb);Z(a,olympe.sc.ui.X.pd.Ba,olympe.j.fa.kb);Z(a,olympe.sc.ui.X.pd.$a,
|
|
1741
|
+
olympe.j.fa.kb);Z(a,olympe.sc.ui.X.pd.La,olympe.j.Z.ONE);return a.na()};olympe.sc.ui.X.Ne=class extends olympe.sc.ui.Ga{F(a){if(Zm(a)){var b=this.ja(a);b=new olympe.ui.D.Be(b);b.dg('images/video-gallery.svg',olympe.ui.ia.Eg.kq,olympe.ui.ia.Ce.Qb);this.C(b,a);return b}const c=new olympe.ui.D.nd(this.ja(a));c.Ri(this.Aa(olympe.sc.ui.X.Ne.Ja,a,olympe.sc.Rq));this.C(c,a);c.hi(this.Aa(olympe.sc.ui.X.Ne.O,a,olympe.j.fa));olympe.j.Cg([c.C.wa()],d=>{a.set(olympe.sc.ui.X.Ne.O,d)});c.Eh(this.Aa(olympe.sc.ui.X.Ne.$a,a,olympe.j.fa));c.Bh(this.Aa(olympe.sc.ui.X.Ne.Ba,a,olympe.j.fa));
|
|
1742
|
+
olympe.j.Cg([this.Aa(olympe.sc.ui.X.Ne.$,a,olympe.j.fa)],d=>{d?c.play():c.pause()});olympe.j.Cg([c.F.wa()],d=>{a.set(olympe.sc.ui.X.Ne.$,d.ne())});c.Si(this.O(olympe.sc.ui.X.Ne.Fa,a,olympe.j.Z,c.volume.wa(),olympe.j.Z.ONE));return c}};olympe.sc.ui.X.Ne.U=olympe.dc.Ha.C('016422317da4f7fdca4e',olympe.sc.ui.X.Ne);olympe.sc.ui.X.Ne.Ja=olympe.sc.ui.X.Ne.U.ca('01642231cb7e8d6f1dac');olympe.sc.ui.X.Ne.O=olympe.sc.ui.X.Ne.U.ca('01642231cb7e8d6f1dad');olympe.sc.ui.X.Ne.$a=olympe.sc.ui.X.Ne.U.ca('016bf9adeb55b015353c');
|
|
1743
1743
|
olympe.sc.ui.X.Ne.Ba=olympe.sc.ui.X.Ne.U.ca('016bf9adeb55b015353d');olympe.sc.ui.X.Ne.Fa=olympe.sc.ui.X.Ne.U.ca('016bf9adeb55b015353e');olympe.sc.ui.X.Ne.$=olympe.sc.ui.X.Ne.U.ca('016bf9adeb55b015353f');
|
|
1744
|
-
olympe.sc.ui.X.Ne.U.C=function(a,b){a=a.create(olympe.sc.ui.X.Ne);b&&Z(a,olympe.dc.CloudObject.nameProp,b);Z(a,olympe.sc.ui.Renderable.C,olympe.j.ya(384));Z(a,olympe.sc.ui.Renderable.F,olympe.j.ya(216));Z(a,olympe.sc.ui.X.Ne
|
|
1744
|
+
olympe.sc.ui.X.Ne.U.C=function(a,b){a=a.create(olympe.sc.ui.X.Ne);b&&Z(a,olympe.dc.CloudObject.nameProp,b);Z(a,olympe.sc.ui.Renderable.C,olympe.j.ya(384));Z(a,olympe.sc.ui.Renderable.F,olympe.j.ya(216));Z(a,olympe.sc.ui.X.Ne.$a,olympe.j.fa.kb);Z(a,olympe.sc.ui.X.Ne.O,olympe.j.fa.C);Z(a,olympe.sc.ui.X.Ne.$,olympe.j.fa.C);Z(a,olympe.sc.ui.X.Ne.Ba,olympe.j.fa.C);Z(a,olympe.sc.ui.X.Ne.Fa,olympe.j.Z.ONE);return a.na()};olympe.sc.ui.Jb={};function Bo(a,b,c,d,e,f,g){const k=c.na(),l=Xm(f,k);olympe.j.$p([l.wa(olympe.sc.Kb.C.mq,olympe.ui.D.mb,!0)],m=>{m.xj(!0);b.appendChild(m,k+'_'+a.db.name(k),d,e);m.Hr(e);Co(a,f,l,m,g)})}function Do(a,b,c,d,e,f=olympe.j.ib.EMPTY){f!==olympe.j.ib.EMPTY&&olympe.j.Cg([f],g=>{g=g.valueOf();b.Sf();d.Th((k,l,m)=>{Bo(a,b,k,g,m.Se(l),c,e)})});d.forEach((g,k,l)=>{const m=olympe.j.Ra(f).valueOf();Bo(a,b,g,m,l.Se(k),c,e)})}
|
|
1745
1745
|
function Co(a,b,c,d,e){var f=olympe.sc.ui.ic.T,g=olympe.sc.ui.Renderable.C,k=olympe.sc.ui.Renderable.F;const l=En(a,olympe.sc.ui.ic.R);f=En(a,f);g=En(a,g);k=En(a,k);const m=d.ja(),n=a.C(b);a=a.F(b);b=olympe.j.Ya(n,()=>e.pa(),()=>m.pa(),olympe.j.Z);const p=olympe.j.Ya(a,()=>e.ma(),()=>m.ma(),olympe.j.Z),r=(t,u,v)=>{void 0===v?olympe.j.Ua([u],w=>{c.set(t,w.valueOf())}):olympe.j.Ua([u,v],(w,x)=>{x.valueOf()?c.set(t,w.valueOf()):c.remove(t)});olympe.j.sb().onDestroy(()=>c.remove(t))};d=d.Qd();r(f,d.pa());
|
|
1746
1746
|
r(l,d.ma());r(g,p,a);r(k,b,n)}olympe.sc.ui.Jb.Jj=class extends olympe.sc.ui.Aq{ur(){}F(){}C(){}};olympe.sc.ui.Jb.Jj.F={jx:'distributed',Af:'manual'};olympe.sc.ui.Jb.Be=class extends olympe.sc.ui.Aq{ur(a,b){const c=olympe.j.Z,d=olympe.sc.ui.Ga.EU,e=new olympe.j.ha(this.Aa(olympe.sc.ui.Renderable.C,a,c,c.ZERO,!0),this.Aa(olympe.sc.ui.Renderable.F,a,c,c.ZERO,!0)),f=new olympe.ui.D.Be(e);b.forEach((g,k,l)=>{const m=g.na(),n=Xm(a,m);olympe.j.$p([n.wa(olympe.sc.Kb.C.mq,olympe.ui.D.mb,!0)],p=>{p.setPosition(g.Qd(n));p.hg(g.Aa(d,n,c,c.ZERO));f.appendChild(p,m+'_'+this.db.name(m));p.Hr(l.Se(k))})});return f}F(){return olympe.j.fa.kb}C(){return olympe.j.fa.kb}};
|
|
1747
1747
|
olympe.sc.ui.Jb.Be.U=olympe.dc.Ha.C('016c2458e07561155a49',olympe.sc.ui.Jb.Be);olympe.sc.ui.Jb.ae=class extends olympe.sc.ui.Jb.Jj{ur(a,b){var c=olympe.j.ib,d=olympe.j.Z;const e=olympe.j.ha,f=olympe.ui.D.ae;var g=olympe.ui.ia.rc.Rc;const k=olympe.sc.ui.Jb.Jj.F.Af,l=olympe.sc.ui.Jb.Jj.F.jx,m=olympe.sc.ui.Jb.ae.R,n=olympe.sc.ui.Jb.ae.$;var p=olympe.sc.ui.Jb.ae.ba,r=olympe.sc.ui.Jb.ae.T,t=this.Aa(olympe.sc.ui.Renderable.C,a,d,d.ZERO,!0);const u=this.Aa(olympe.sc.ui.Renderable.F,a,d,d.ZERO,!0);p=this.Aa(p,a,d,d.ZERO,!0);g=this.Aa(n,a,c,g,!0);c=this.Aa(m,a,c,k,!0);r=this.Aa(r,a,
|
|
@@ -1786,11 +1786,11 @@ c)=>{olympe.public.Yc.get().wt(a,d=>d?c(d):b())})}static HU(a,b){return Po((new
|
|
|
1786
1786
|
b){return Po((new Map).set('username',a).set('nonce',b),olympe.ta.vg.C.oB)}static FU(){return Po(new Map,olympe.ta.vg.C.OAUTH2)}static Xv(){return olympe.public.Yc.get().Xv()}static get(){return olympe.ta.Ok()}};olympe.public.Yc.logout=olympe.public.Yc.Xv;olympe.public.Yc.loginOpenID=olympe.public.Yc.FU;olympe.public.Yc.loginToken=olympe.public.Yc.JU;olympe.public.Yc.loginSAML=olympe.public.Yc.GU;olympe.public.Yc.loginSSO=olympe.public.Yc.IU;olympe.public.Yc.loginSRP=olympe.public.Yc.HU;
|
|
1787
1787
|
olympe.public.Yc.getUserFromToken=olympe.public.Yc.wt;olympe.public.Yc.sendKeepAlive=olympe.public.Yc.wj;olympe.public.Yc.getIDPNames=olympe.public.Yc.AT;olympe.public.Yc.getUserToken=olympe.public.Yc.nU;olympe.public.Yc.getIDPToken=olympe.public.Yc.BT;olympe.public.Yc.refreshToken=olympe.public.Yc.ym;olympe.public.Yc.getToken=olympe.public.Yc.Vj;olympe.public.Yc.observeUser=olympe.public.Yc.XU;olympe.public.Yc.getCurrentUser=olympe.public.Yc.iT;olympe.public.Yc.getState=olympe.public.Yc.getState;
|
|
1788
1788
|
olympe.public.Yc.generateSRPData=olympe.public.Yc.RS;olympe.public.fc=class{static create(a){return new class extends olympe.dc.Da.jq{C(b,c){b=a(olympe.dc.CloudObject.get(c));if('boolean'===typeof b)return b;const d=olympe.j.bb(olympe.j.fa),e=b.subscribe(f=>d.update(olympe.j.lc(f)));olympe.j.sb().R(()=>e.unsubscribe());return d.wa()}}}};
|
|
1789
|
-
olympe.public.gn=class{static create(a){return new class extends olympe.dc.Of.jq{R(b,c){return olympe.dc.CloudObject.get(c)}O(b,c){b=a(b,c);if('number'===typeof b)return b;const d=olympe.j.bb(olympe.j.Z),e=b.subscribe(f=>d.update(olympe.j.ya(f)));olympe.j.sb().R(()=>e.unsubscribe());return d.wa()}}}};olympe.public.Vu=class{static ZU(){return()=>{}}static $U(){return()=>{}}};olympe.public.Vu.onShutdown=olympe.public.Vu.$U;olympe.public.Vu.onHealthCheck=olympe.public.Vu.ZU;'object'===typeof exports&&(exports={CloudObject:olympe.dc.CloudObject,Relation:olympe.dc.Jc.Relation,Direction:olympe.dc.Nb,generateTag:olympe.xa.Wq,tagToString:olympe.dc
|
|
1789
|
+
olympe.public.gn=class{static create(a){return new class extends olympe.dc.Of.jq{R(b,c){return olympe.dc.CloudObject.get(c)}O(b,c){b=a(b,c);if('number'===typeof b)return b;const d=olympe.j.bb(olympe.j.Z),e=b.subscribe(f=>d.update(olympe.j.ya(f)));olympe.j.sb().R(()=>e.unsubscribe());return d.wa()}}}};olympe.public.Vu=class{static ZU(){return()=>{}}static $U(){return()=>{}}};olympe.public.Vu.onShutdown=olympe.public.Vu.$U;olympe.public.Vu.onHealthCheck=olympe.public.Vu.ZU;'object'===typeof exports&&(exports={CloudObject:olympe.dc.CloudObject,Relation:olympe.dc.Jc.Relation,Direction:olympe.dc.Nb,generateTag:olympe.xa.Wq,tagToString:olympe.dc.Za,register:olympe.dc.register,defineProperty:olympe.dc.defineProperty,defineRelation:olympe.dc.kK,defineInverseRelation:olympe.dc.BS,BrickContext:olympe.sc.Kb,Brick:olympe.sc.logic.Function,ActionBrick:olympe.sc.logic.Action,GlobalProperties:olympe.sc.Kb.C,registerBrick:olympe.sc.logic.Ha.C,FunctionBrick:olympe.sc.logic.Function,
|
|
1790
1790
|
Context:olympe.sc.Kb,Entry:olympe.dc.Jc.Entry,PropertyModel:olympe.dm.Property,RelationModel:olympe.dm.Relation,StringModel:olympe.dm.String,NumberModel:olympe.dm.Number,BooleanModel:olympe.dm.Boolean,DatetimeModel:olympe.dm.DateTime,ColorModel:olympe.dm.Color,File:olympe.sc.File,User:olympe.dm.User,Enum:olympe.dm.Jo,EnumValue:olympe.dm.Enum,DataSource:olympe.dm.DataSource,DataResult:olympe.dc.query.Wi,Workflow:olympe.sc.workflow.Workflow,WorkflowState:olympe.sc.workflow.Ll,WorkflowTransition:olympe.sc.workflow.Transition,
|
|
1791
1791
|
WorkflowObjectState:olympe.sc.workflow.ObjectState,Transaction:olympe.sc.Lc,BurstTransaction:olympe.dc.wu,TransactionResult:olympe.sc.gv,PredefinedDataSource:olympe.dc.Vc,QueryResult:olympe.dc.Fc,Query:olympe.dc.yb,QuerySingle:olympe.dc.th,Predicate:olympe.dc.query.fc,Order:olympe.dc.query.Sx,Config:class{static getParameter(a){return olympe.va.getParameter(a)}},Process:olympe.public.Vu,Color:olympe.j.Color,ErrorFlow:olympe.sc.logic.Error,ServiceRequestType:olympe.ea.Request.Bd,ServiceRequest:olympe.ea.Qg,
|
|
1792
1792
|
Service:olympe.ea.Ud,Auth:olympe.public.Yc,AuthState:{INIT:olympe.ta.Eb.C.INIT,DISCONNECTED:olympe.ta.Eb.C.ln,GUEST:olympe.ta.Eb.C.tl,AUTHENTICATING:olympe.ta.Eb.C.Vr,ERROR:olympe.ta.Eb.C.Ee,AUTHENTICATED:olympe.ta.Eb.C.Ej},AuthProtocol:olympe.ta.vg.C,Sync:olympe.dc.CloudObject,BusinessObject:olympe.dc.CloudObject,StringPrimitive:olympe.dm.String,NumberPrimitive:olympe.dm.Number,BooleanPrimitive:olympe.dm.Boolean,DatetimePrimitive:olympe.dm.DateTime,ColorPrimitive:olympe.dm.Color,PropertyPrimitive:olympe.dm.Property,
|
|
1793
|
-
RelationPrimitive:olympe.dm.Relation,DBView:class extends olympe.dc.od{static get(){return olympe.dc.Hb()}},ListDef:olympe.dc.xb,instanceToTag:olympe.dc
|
|
1793
|
+
RelationPrimitive:olympe.dm.Relation,DBView:class extends olympe.dc.od{static get(){return olympe.dc.Hb()}},ListDef:olympe.dc.xb,instanceToTag:olympe.dc.Za,registerSync:olympe.dc.Ha.C,getUniqueTag:olympe.xa.Wq,onDestroy:a=>olympe.j.sb().onDestroy(a),offDestroy:a=>olympe.j.sb().Tn(a),FollowRules:olympe.dc.ef,transformers:{Related:olympe.dc.Oa.Il,RecursiveRelated:olympe.dc.Oa.bj,Distinct:olympe.dc.Oa.Au,Filter:olympe.dc.Oa.yf,Limit:olympe.dc.Oa.Ds,Sort:olympe.dc.Oa.hp,Union:olympe.dc.Oa.En},ListDefPredicate:olympe.public.fc,
|
|
1794
1794
|
predicates:{And:olympe.dc.Da.ki,Or:olympe.dc.Da.rk,Not:olympe.dc.Da.Lj,Equals:olympe.dc.Da.hk,Contains:olympe.dc.Da.jn,Greater:olympe.dc.Da.ux,Smaller:olympe.dc.Da.ny,HasRelated:olympe.dc.Da.ys,InstanceOf:olympe.dc.Da.Ju,Regex:olympe.dc.Da.An},Comparator:olympe.public.gn,comparators:{Number:olympe.dc.Of.Number,String:olympe.dc.Of.String,DateTime:olympe.dc.Of.DateTime},valuedefs:{BooleanProperty:olympe.dc.Qc.Zw,StringProperty:olympe.dc.Qc.bv,NumberProperty:olympe.dc.Qc.Fs,DateTimeProperty:olympe.dc.Qc.zu,
|
|
1795
1795
|
Constant:olympe.dc.Qc.ql,Tag:olympe.dc.Qc.ev}});'object'===typeof exports&&Object.assign(exports,{VisualBrick:olympe.sc.ui.ic,Theme:olympe.sc.ui.ThemeModel,registerBrick:(a,b,...c)=>{b.prototype instanceof olympe.sc.ui.ic?olympe.dc.Ha.C(a,b,...c):olympe.sc.logic.Ha.C(a,b,...c)},UIBrick:olympe.sc.ui.ic});
|
|
1796
1796
|
|