@olympeio/runtime-web 9.11.0 → 9.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js
CHANGED
|
@@ -259,16 +259,16 @@ ea('Promise.prototype.finally',function(a){return a?a:function(b){return this.th
|
|
|
259
259
|
ea('Object.fromEntries',function(a){return a?a:function(b){var c={};if(!(Symbol.iterator in b))throw new TypeError(''+b+' is not iterable');b=b[Symbol.iterator].call(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;if(Object(d)!==d)throw new TypeError('iterable for fromEntries should yield objects');c[d[0]]=d[1]}return c}});function za(a){if(null==a)throw new TypeError("The 'this' value for String.prototype.padStart must not be null or undefined");return a+''}
|
|
260
260
|
function Aa(a,b){a=void 0!==a?String(a):' ';return 0<b&&a?a.repeat(Math.ceil(b/a.length)).substring(0,b):''}ea('String.prototype.padStart',function(a){return a?a:function(b,c){var d=za(this);return Aa(c,b-d.length)+d}});ea('String.prototype.padEnd',function(a){return a?a:function(b,c){var d=za(this);return d+Aa(c,b-d.length)}});ea('Object.values',function(a){return a?a:function(b){var c=[],d;for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&c.push(b[d]);return c}});
|
|
261
261
|
ea('Array.prototype.flatMap',function(a){return a?a:function(b,c){for(var d=[],e=0;e<this.length;e++){var f=b.call(c,this[e],e,this);Array.isArray(f)?d.push.apply(d,f):d.push(f)}return d}});ea('Array.prototype.flat',function(a){return a?a:function(b){b=void 0===b?1:b;for(var c=[],d=0;d<this.length;d++){var e=this[d];Array.isArray(e)&&0<b?(e=Array.prototype.flat.call(e,b-1),c.push.apply(c,e)):c.push(e)}return c}});
|
|
262
|
-
ea('Promise.allSettled',function(a){function b(d){return{status:'fulfilled',value:d}}function c(d){return{status:'rejected',reason:d}}return a?a:function(d){var e=this;d=Array.from(d,function(f){return e.resolve(f).then(b,c)});return e.all(d)}});var Ba=this||self;function z(a,b){a=a.split('.');let c=Ba;a[0]in c||'undefined'==typeof c.execScript||c.execScript('var '+a[0]);for(let d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b};const olympe={Pj:()=>'object'===typeof window?window:'object'===typeof global?global:self};if('olympe'in olympe.Pj())throw Error('The olympe runtime is loaded more than once. Make sure not to import `@olympeio/runtime-web` or `@olympeio/runtime-node` explicitly, and to always use the `olympe` alias.');olympe.Pj().olympe=olympe;olympe.bi=(a,...b)=>{b.forEach(c=>{Object.getOwnPropertyNames(c.prototype).forEach(d=>{'constructor'!==d&&void 0===a.prototype[d]&&(a.prototype[d]=c.prototype[d])})})};olympe.G={};olympe.G.H={};olympe.G.H.Worker=class{};olympe.ta={};olympe.ta.Bo={};olympe.ta.Bo.yG=class{process(a){for(const b of Object.keys(a.Wk))if(a.lg(b).CE())throw Error('Service "'+b+'" is defined as abstract and needs to be overridden');}};olympe.ta.Bo.yG.Aa=[olympe.ta.Bo.OK];olympe.ta.Bo.zG=class{process(a){function b(e,f){if(f.includes(e))throw Error('Circular dependency detected: '+f.join(' > ')+' > '+e);if(d.has(e)){f=f.concat(e);d.delete(e);e=a.lg(e);c(e.ex(),f);for(const g of Ca(e))c(g.ex(),f)}}function c(e,f){for(const g of e)g instanceof olympe.ta.Od&&b(g.ja(),f)}const d=new Set(Object.keys(a.Wk));for(const e of d)b(e,[])}};olympe.ta.Bo.zG.Aa=[olympe.ta.Bo.OK];olympe.ta.Bo.OK=class{process(){}};const Da=[],Ea=[];function Fa(a){const b=a.
|
|
262
|
+
ea('Promise.allSettled',function(a){function b(d){return{status:'fulfilled',value:d}}function c(d){return{status:'rejected',reason:d}}return a?a:function(d){var e=this;d=Array.from(d,function(f){return e.resolve(f).then(b,c)});return e.all(d)}});var Ba=this||self;function z(a,b){a=a.split('.');let c=Ba;a[0]in c||'undefined'==typeof c.execScript||c.execScript('var '+a[0]);for(let d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b};const olympe={Pj:()=>'object'===typeof window?window:'object'===typeof global?global:self};if('olympe'in olympe.Pj())throw Error('The olympe runtime is loaded more than once. Make sure not to import `@olympeio/runtime-web` or `@olympeio/runtime-node` explicitly, and to always use the `olympe` alias.');olympe.Pj().olympe=olympe;olympe.bi=(a,...b)=>{b.forEach(c=>{Object.getOwnPropertyNames(c.prototype).forEach(d=>{'constructor'!==d&&void 0===a.prototype[d]&&(a.prototype[d]=c.prototype[d])})})};olympe.G={};olympe.G.H={};olympe.G.H.Worker=class{};olympe.ta={};olympe.ta.Bo={};olympe.ta.Bo.yG=class{process(a){for(const b of Object.keys(a.Wk))if(a.lg(b).CE())throw Error('Service "'+b+'" is defined as abstract and needs to be overridden');}};olympe.ta.Bo.yG.Aa=[olympe.ta.Bo.OK];olympe.ta.Bo.zG=class{process(a){function b(e,f){if(f.includes(e))throw Error('Circular dependency detected: '+f.join(' > ')+' > '+e);if(d.has(e)){f=f.concat(e);d.delete(e);e=a.lg(e);c(e.ex(),f);for(const g of Ca(e))c(g.ex(),f)}}function c(e,f){for(const g of e)g instanceof olympe.ta.Od&&b(g.ja(),f)}const d=new Set(Object.keys(a.Wk));for(const e of d)b(e,[])}};olympe.ta.Bo.zG.Aa=[olympe.ta.Bo.OK];olympe.ta.Bo.OK=class{process(){}};const Da=[],Ea=[];function Fa(a){const b=a.wb();b.debug('Registering configurations...');b.C++;Da.forEach(c=>{Ga(a.V,'Registering configure callback '+(c.C?'for module '+c.C:''));a.R.push(c.D)});Ha(b);b.debug('done registering')}function Ia(a){const b=a.wb();b.debug('Running run callbacks of container...');b.C++;Ea.forEach(c=>{const d=Ka(a,c.ex());a.V.debug('Calling run callback '+`for module ${c.C}`);c.D.apply(null,d)});Ha(b);b.debug('done calling run callbacks. DI process completed!')}
|
|
263
263
|
olympe.ta.FG=class{constructor(){}static C(a,b){Da.push(new olympe.ta.bC(a,b))}static D(a,b,c){a.forEach(d=>{if(null===d||void 0===d)throw Error('Cannot proceed - DI configuration error. '+(c?`Run callback "${c}"`:'A run callback')+' cannot have a null or undefined dependency');});Ea.push(new olympe.ta.bC(b,c,a))}};olympe.ta.af=olympe.ta.FG.C;olympe.ta.run=olympe.ta.FG.D;olympe.ta.iX=a=>{const b=new Map,c=(d,e)=>{for(const [f,g]of Object.entries(d))d=e.concat((f.startsWith('#')?f.substring(1):f).toLowerCase()),'object'!==typeof g||null===g||f.startsWith('#')?b.set(d.join('.'),g):c(g,d)};c(a,[]);return b};olympe.ta.Fy=class{constructor(){}getValue(){}};function La(a,b){let c,d;return null!=(d=null==(c=a.O)?void 0:c.call(a,b))?d:!0}olympe.ta.bC=class{constructor(a,b,c){this.D=a;this.cj=(null!=c?c:[]).map(d=>'string'===typeof d?new olympe.ta.Od(d):d);this.C=null!=b?b:'no name di callback';this.O=null}ex(){return this.cj}};function Ma(a,b){var c=olympe.ta.ba.xp;if(void 0!==a.C[c])throw Error('Service "'+c+'" has already been instantiated');a.C[c]=b}function Na(a,b,c){let d=a.C[b];if(void 0===d){const e=a.R[b];if(void 0===e){if(c===olympe.ta.gt.C.eD)return null;throw Error('Service "'+b+'" not found');}try{d=e.instantiate(a)}catch(f){throw a.V.error('Error during instantiation of service '+b),f;}!e.O&&(a.C[b]=d)}return d}
|
|
264
264
|
function Oa(a,b,c){b=b.toLowerCase();let d;const e=null!=(d=a.D.get(b))?d:[];e.push(c);a.D.set(b,e)}function Ka(a,b){const c=b.length,d=Array(c);let e,f;for(e=0;e<c;e++)a.V.C++,f=b[e],d[e]=f instanceof olympe.ta.Fy?f.getValue(a):f,Ha(a.V);return d}
|
|
265
|
-
olympe.ta.gt=class{constructor(a,b,c,d,e=2){this.R=a;this.O=b;this.parameters=c;this.C=Object.create(null);this.V=new olympe.ta.VJ(e);this.D=new Map;Ma(this,this);this.V.debug('Instantiate all computed parameters');d.forEach(f=>Na(this,f).subscribe(this.FB.bind(this,f)))}
|
|
265
|
+
olympe.ta.gt=class{constructor(a,b,c,d,e=2){this.R=a;this.O=b;this.parameters=c;this.C=Object.create(null);this.V=new olympe.ta.VJ(e);this.D=new Map;Ma(this,this);this.V.debug('Instantiate all computed parameters');d.forEach(f=>Na(this,f).subscribe(this.FB.bind(this,f)))}wb(){return this.V}getParameter(a){a=a.toLowerCase();let b;return null!=(b=this.parameters[a])?b:this.O[a]}FB(a,b){a=a.toLowerCase();if(this.parameters[a]!==b){var c,d;this.V.debug(`Updating parameter ${a} to ${b} and notify ${null!=
|
|
266
266
|
(d=null==(c=this.D.get(a))?void 0:c.length)?d:0} listeners.`);this.parameters[a]=b;var e;for(const f of null!=(e=this.D.get(a))?e:[])f(b)}}};olympe.ta.gt.C={hR:'exception',eD:'null'};function Pa(a,b){b=olympe.ta.iX(b);for(const [c,d]of b)Qa(a,c,d)}function A(a,b,c,...d){Ga(a.V,'Defining service '+b);a.C(b,c,d,!1,!1)}function Ra(a,b,c,...d){Ga(a.V,'Defining service '+b);a.C(b,c,d,!1,!0)}function C(a,b,c,d,e=!1){Ga(a.V,'Defining service (as a factory) '+b);a.C(b,d,c,!0,e)}function Ua(a,b,c,d=!1){Ga(a.V,'Defining service alias '+b);a.C(b,e=>e,[c],!0,d)}function Va(a,b){Ga(a.V,'Defining abstract service '+b);a.C(b).D=!0}function Qa(a,b,c){a.parameters[b.toLowerCase()]=c}
|
|
267
267
|
function Xa(a,b,c,d){a.O.push(b);Qa(a,b,d(...c.map(e=>a.getParameter(e))));C(a,b,c.map(e=>new olympe.ta.kt(e)),(...e)=>rxjs.combineLatest(e).pipe(rxjs.operators.skip(1),rxjs.operators.map(f=>d(...f)),rxjs.operators.distinctUntilChanged()))}function E(a,b,c){a.D[b.toLowerCase()]=c}
|
|
268
|
-
olympe.ta.WQ=class{constructor(a,b){this.Wk=Object.create(null);this.parameters=Object.create(null);this.D=Object.create(null);this.O=[];Pa(this,a);Pa(this,b);this.W=[new olympe.ta.Bo.yG,new olympe.ta.Bo.zG];this.R=[];a=this.getParameter(olympe.ta.pa.hT);this.T=void 0!==a?a:3;this.V=new olympe.ta.VJ(this.T)}
|
|
268
|
+
olympe.ta.WQ=class{constructor(a,b){this.Wk=Object.create(null);this.parameters=Object.create(null);this.D=Object.create(null);this.O=[];Pa(this,a);Pa(this,b);this.W=[new olympe.ta.Bo.yG,new olympe.ta.Bo.zG];this.R=[];a=this.getParameter(olympe.ta.pa.hT);this.T=void 0!==a?a:3;this.V=new olympe.ta.VJ(this.T)}wb(){return this.V}C(a,b,c,d,e){const f=a instanceof olympe.ta.Od?a.ja():a;if(3<=arguments.length&&c){const k=c.indexOf(f);if(-1!==k){if(void 0===this.Wk[f])throw Error(`ContainerBuilder.define: Service ${f} references itself and is not an override definition!`);
|
|
269
269
|
var g=this.Wk[f];g.id=g.id+'!!'+ ++olympe.ta.nC.C;g.O=!0;g=g.id;c[k]=g;this.Wk[g]=this.Wk[f]}}this.Wk[f]=new olympe.ta.nC(b,c,d||!1,f);return this.Wk[f]}lg(a){const b=this.Wk[a];if(void 0===b)throw Error(`DI Error: Definition ${a} was not found`);return b}getParameter(a){a=a.toLowerCase();let b;return null!=(b=this.parameters[a])?b:this.D[a]}compile(){const a=this.R;this.V.debug('Calling '+a.length+' configure callbacks');this.V.C++;a.forEach(b=>{Ga(this.V,'Calling callback');this.V.C++;b(this);Ha(this.V)});
|
|
270
270
|
Ha(this.V);this.V.debug('Configuration summary: '+Object.keys(this.Wk).length+' definitions');this.V.debug('Compiling...');this.V.C++;this.W.forEach((b,c)=>{this.V.debug('running compilation pass '+(c+1)+': '+b.constructor.name);b.process(this)});Ha(this.V);this.V.debug('Compilation done, returning container');return new olympe.ta.gt(this.Wk,this.D,this.parameters,this.O,this.T)}};function Ca(a){let b,c;return null!=(c=null==(b=a.C)?void 0:b.values())?c:[]}
|
|
271
|
-
olympe.ta.nC=class{constructor(a,b,c,d){this.R=a||null;this.T=!!c;this.cj=(null!=b?b:[]).map(e=>'string'===typeof e?new olympe.ta.Od(e):e);this.D=!1;this.C=null;this.id=null!=d?d:'';this.O=!1}ja(){return this.id}instantiate(a){const b=a.
|
|
271
|
+
olympe.ta.nC=class{constructor(a,b,c,d){this.R=a||null;this.T=!!c;this.cj=(null!=b?b:[]).map(e=>'string'===typeof e?new olympe.ta.Od(e):e);this.D=!1;this.C=null;this.id=null!=d?d:'';this.O=!1}ja(){return this.id}instantiate(a){const b=a.wb();b.debug('Resolving arguments for '+this.id);const c=this.R;let d=Ka(a,this.cj);const e=()=>{if(this.T)return c.apply(null,d);d.unshift(null);return new (c.bind.apply(c,d))};Ga(b,'Instantiating '+this.id);const f=olympe.j?olympe.j.Ko().run(()=>e()):e();let g;if(0<
|
|
272
272
|
(null==(g=this.C)?void 0:g.size)){b.C++;Ga(b,'Calling configuration callbacks:');for(const k of this.C.values())b.C++,Ga(b,'Check if need to call additional configuration callback '+k.C),La(k,f)?(Ga(b,'Calling additional configuration callback '+k.C),d=Ka(a,k.ex()),d.push(f),k.D.apply(null,d)):Ga(b,'Will not call additional configuration callback '+k.C+'predicate has returned false'),Ha(b);Ha(b)}Ga(b,'Done instantiating '+this.id);return f}ex(){return this.cj}CE(){return this.D}af(a,b,c,d,e){null===
|
|
273
273
|
this.C&&(this.C=new Map);var f=this.C,g=f.set;b=new olympe.ta.bC(c,e,b);b.O=d;g.call(f,a,b)}};olympe.ta.nC.C=0;olympe.ta.kt=class extends olympe.ta.Fy{constructor(a){super();this.id=a}ja(){return this.id}getValue(a){return new rxjs.Observable(b=>{b.next(a.getParameter(this.id));Oa(a,this.id,c=>b.next(c))})}};function Ha(a){0<a.C&&a.C--}function Ga(a,b){1>=a.D&&Ya(a,'log','DI: '+b)}function Ya(a,b,c){if(console&&console[b]){var d='';for(let e=0;e<a.C;e++)d+=' ';console[b](d+c)}}olympe.ta.VJ=class{constructor(a){this.D=a;this.C=0}debug(a){2>=this.D&&Ya(this,'log','DI: '+a)}info(a){3>=this.D&&Ya(this,'info','DI: '+a)}warn(a){4>=this.D&&Ya(this,'warn','DI: '+a)}error(a){5>=this.D&&Ya(this,'error','DI: '+a)}};olympe.ta.Db=class extends olympe.ta.Fy{constructor(a){super();this.id=a}ja(){return this.id}getValue(a){return a.getParameter(this.id)}};olympe.ta.Od=class extends olympe.ta.Fy{constructor(a,b){super();this.id=a;this.C=b||olympe.ta.gt.C.hR}ja(){return this.id}getValue(a){return Na(a,this.id,this.C)}};olympe.ta.ba={xp:'di.Container',K1:'di.PublicContainer'};olympe.ta.pa={hT:'logging.di'};olympe.ta.run([olympe.ta.ba.xp],a=>{olympe.ta.getParameter=b=>a.getParameter(b);olympe.ta.FB=(b,c)=>a.FB(b,c);olympe.Pj().getConfig=b=>a.getParameter(b);olympe.Pj().getConfigNames=()=>Object.keys(a.parameters);olympe.Pj().updateConfig=(b,c)=>a.FB(b,c)});olympe.la={};olympe.la.hI=class{constructor(a){this.id=a||olympe.la.hI.C++}Sb(a){return a?this.id===a.id:!1}toJSON(){return this.id.toString()}toString(){return this.id.toString()}};olympe.la.hI.C=0;function Za(a,b){return new olympe.la.vz(1,0,0,1,a,b)}function $a(a,b){const c=new olympe.la.vz;for(let d=0;3>d;d++)for(let e=0;3>e;e++){let f=0;for(let g=0;3>g;g++)f+=a.get(d,g)*b.get(g,e);c.set(d,e,f)}return c}function ab(a,b,c){void 0===b&&(b=0);void 0===c&&(c=0);const d=Math.cos(a),e=Math.sin(a),f=-Math.sin(a);a=Math.cos(a);if(0===b&&0===c)b=new olympe.la.vz(d,e,f,a,0,0);else{const g=Za(-b,-c);b=$a($a(Za(b,c),new olympe.la.vz(d,e,f,a,0,0)),g)}return b}
|
|
274
274
|
function bb(a){return'matrix('+a.get(0,0)+','+a.get(0,1)+','+a.get(1,0)+','+a.get(1,1)+','+a.get(2,0)+','+a.get(2,1)+')'}olympe.la.vz=class{constructor(a,b,c,d,e,f){this.C=[a||0,b||0,0,c||0,d||0,0,e||0,f||0,1]}set(a,b,c){this.C[3*a+b]=c}get(a,b){return this.C[3*a+b]}};olympe.la.ko=function(a,b,c,d,e,f,g,k,l,m,n,p,r,t,u,v,w,x,y,B){this.values=[a,b,c,d,e,f,g,k,l,m,n,p,r,t,u,v,w,x,y,B]};olympe.la.ko.D=function(a){return new olympe.la.ko(.213+.787*a,.715-.715*a,.072-.072*a,0,0,.213-.213*a,.715+.285*a,.072-.072*a,0,0,.213-.213*a,.715-.715*a,.072+.928*a,0,0,0,0,0,1,0)};olympe.la.ko.C=function(){return new olympe.la.ko(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0)};olympe.la.ko.prototype.set=function(a,b,c){this.values[5*a+b]=c};
|
|
@@ -317,13 +317,13 @@ olympe.la.g4=function(a){a=Array.from(a.entries()).filter(([,b])=>null!==b&&void
|
|
|
317
317
|
olympe.la.sY=a=>{var b=['oConfig.json','conf.d/oConfig.json','version.json'];return q(function*(){return(yield Promise.all(b.map(a))).map((c,d)=>{if('string'!==typeof c)return Object.create(null);try{return JSON.parse(c)}catch(e){if(b[d].endsWith('.json'))throw Error(`Failed to parse JSON Config file: ${b[d]}: ${e}`);return c.split('\n').filter(f=>f.startsWith('')).reduce((f,g)=>{const [k,l]=g.split('=');f[k.slice(0)]=olympe.la.bW(l);return f},{})}}).reduce((c,d,e)=>{olympe.la.lP(c,d,'version.json'===
|
|
318
318
|
b[e]?'version.':'');return c},Object.create(null))})};olympe.la.bW=a=>{const b=/^true|false$/i,c=/^\d+(\.\d+)?$/;void 0===a?a=!0:a.startsWith('"')&&a.endsWith('"')?a=a.substring(1,a.length-1):b.test(a)?a='true'===a.toLowerCase():c.test(a)&&(a=parseFloat(a));return a};olympe.la.lP=(a,b,c)=>{if(b instanceof Object)for(const d of Object.keys(b)){const e=c+d,f=b[d];f instanceof Object&&void 0!==a[e]?olympe.la.lP(a[e],f,''):a[e]=f}};olympe.la.n3=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)}IA(){return Math.sqrt(this.x*this.x+this.y*this.y)}toString(){return`Vector(${this.x}, ${this.y})`}};olympe.la.nT=class{constructor(a,b){this.start=a;this.end=b}};olympe.la.nT.C={Vf:'left',zi:'right',Ch:'bottom',jh:'top'};function Lb(a){return`${a.C}.${a.D}.${a.O}`}
|
|
319
319
|
olympe.la.zo=class{constructor(a,b,c,d){this.C=a;this.D=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.la.zo.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.la.zo.C:new olympe.la.zo(b,c,d,a[4])}WA(a){return this.C!==a.C?this.C>a.C:this.D!==a.D?this.D>a.D:this.O>a.O}sy(a){return this.C!==a.C?this.C<a.C:this.D!==a.D?this.D<a.D:
|
|
320
|
-
this.O<a.O}Sb(a){return this.C===a.C&&this.D===a.D&&this.O===a.O}toString(){return`${this.C}.${this.D}.${this.O}`+(null!==this.R?`-${this.R}`:'')}};olympe.la.zo.C=new olympe.la.zo(Number.NaN,Number.NaN,Number.NaN);olympe.la.ba={ar:'utils.binaryConverter',AQ:'utils.base64Converter',mo:'utils.Profiler'};olympe.ta.af(a=>{Va(a,olympe.la.ba.ar);Ua(a,olympe.la.ba.AQ,olympe.la.ba.ar,!0);A(a,olympe.la.ba.mo,olympe.la.dU)},'Utils services');olympe.ta.run([olympe.la.ba.ar,olympe.la.ba.mo],(a,b)=>{olympe.la.Jj=()=>a;olympe.Pj().isProfilerEnabled=()=>b.C;olympe.Pj().startProfiler=()=>b.start();olympe.Pj().stopProfiler=()=>b.stop();olympe.Pj().getProfilerEvents=()=>({events:b.X,names:Object.fromEntries(b.R.entries()),models:Object.fromEntries(b.O.entries())})});olympe.G.H.la={};olympe.G.H.la.TB=class extends olympe.la.TB{D(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)}O(a){return q(function*(){return yield(yield fetch(a)).blob()})}};olympe.ta.af(a=>{Ra(a,olympe.la.ba.ar,olympe.G.H.la.TB)},'olympe.native.html.utils');olympe.
|
|
321
|
-
olympe.
|
|
322
|
-
olympe.
|
|
323
|
-
Mb(this,'trace',a)}debug(...a){this.C()&&Mb(this,'debug',a)}log(...a){this.T()&&Mb(this,'log',a)}info(...a){this.na()&&Mb(this,'info',a)}warn(...a){this.Ba()&&Mb(this,'warn',a)}error(...a){this.ca()&&Mb(this,'error',a)}fatal(...a){this.ea()&&Mb(this,'error',a)}};olympe.
|
|
324
|
-
b=new olympe.
|
|
320
|
+
this.O<a.O}Sb(a){return this.C===a.C&&this.D===a.D&&this.O===a.O}toString(){return`${this.C}.${this.D}.${this.O}`+(null!==this.R?`-${this.R}`:'')}};olympe.la.zo.C=new olympe.la.zo(Number.NaN,Number.NaN,Number.NaN);olympe.la.ba={ar:'utils.binaryConverter',AQ:'utils.base64Converter',mo:'utils.Profiler'};olympe.ta.af(a=>{Va(a,olympe.la.ba.ar);Ua(a,olympe.la.ba.AQ,olympe.la.ba.ar,!0);A(a,olympe.la.ba.mo,olympe.la.dU)},'Utils services');olympe.ta.run([olympe.la.ba.ar,olympe.la.ba.mo],(a,b)=>{olympe.la.Jj=()=>a;olympe.Pj().isProfilerEnabled=()=>b.C;olympe.Pj().startProfiler=()=>b.start();olympe.Pj().stopProfiler=()=>b.stop();olympe.Pj().getProfilerEvents=()=>({events:b.X,names:Object.fromEntries(b.R.entries()),models:Object.fromEntries(b.O.entries())})});olympe.G.H.la={};olympe.G.H.la.TB=class extends olympe.la.TB{D(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)}O(a){return q(function*(){return yield(yield fetch(a)).blob()})}};olympe.ta.af(a=>{Ra(a,olympe.la.ba.ar,olympe.G.H.la.TB)},'olympe.native.html.utils');olympe.fb={};olympe.fb.He=class{bb(){}R(){}O(){}C(){}na(){}T(){}Ba(){}ca(){}ea(){}trace(){}debug(){}log(){}info(){}warn(){}error(){}fatal(){}};olympe.fb.He.prototype.fatal=olympe.fb.He.prototype.fatal;olympe.fb.He.prototype.error=olympe.fb.He.prototype.error;olympe.fb.He.prototype.warn=olympe.fb.He.prototype.warn;olympe.fb.He.prototype.info=olympe.fb.He.prototype.info;olympe.fb.He.prototype.log=olympe.fb.He.prototype.log;olympe.fb.He.prototype.debug=olympe.fb.He.prototype.debug;olympe.fb.He.prototype.trace=olympe.fb.He.prototype.trace;
|
|
321
|
+
olympe.fb.He.C={$U:0,zp:1,gT:2,HC:3,sV:4,we:5,nR:6,h1:7};olympe.fb.He.D={0:'TRACE',1:'DEBUG',2:'LOG',3:'INFO',4:'WARN',5:'ERROR',6:'FATAL',7:'NOTHING'};olympe.fb.Ec=class{Yg(){}};olympe.fb.di={};function Mb(a,b,c){a.Oa[b](`[OLYMPE.${a.$}]:`,...c);if(0<a.W.size){var d=new Date;d=('00'+d.getHours()).substring(-2)+':'+('00'+d.getMinutes()).substring(-2)+':'+('00'+d.getSeconds()).substring(-2)+'.'+('00'+d.getMilliseconds()).substring(-3);for(const e of a.W.values())e(d,a.$,b,...c)}}
|
|
322
|
+
olympe.fb.di.He=class{constructor(a,b){this.name=a;const c=b instanceof rxjs.Observable;this.D=c?olympe.fb.He.C.HC:b;c&&b.subscribe(d=>{this.D=d});this.$=a.toUpperCase();this.W=new Map;this.Oa=console}bb(){return this.name}R(){return this.D}O(){return this.D<=olympe.fb.He.C.$U}C(){return this.D<=olympe.fb.He.C.zp}T(){return this.D<=olympe.fb.He.C.gT}na(){return this.D<=olympe.fb.He.C.HC}Ba(){return this.D<=olympe.fb.He.C.sV}ca(){return this.D<=olympe.fb.He.C.we}ea(){return this.D<=olympe.fb.He.C.nR}trace(...a){this.O()&&
|
|
323
|
+
Mb(this,'trace',a)}debug(...a){this.C()&&Mb(this,'debug',a)}log(...a){this.T()&&Mb(this,'log',a)}info(...a){this.na()&&Mb(this,'info',a)}warn(...a){this.Ba()&&Mb(this,'warn',a)}error(...a){this.ca()&&Mb(this,'error',a)}fatal(...a){this.ea()&&Mb(this,'error',a)}};olympe.fb.di.He.Aa=[olympe.fb.He];olympe.fb.di.Ec=class{constructor(a,b,c){this.C=a;this.D=parseInt(b,10);this.O=c;this.channels=new Map;this.V=this.Yg('logging');this.V.log('Logging initialized, global log level is '+olympe.fb.He.D[b])}Yg(a){var b=this.channels.get(a);if(!b){b=`${olympe.fb.pa.MQ}.${a}`;var c;const d=new rxjs.BehaviorSubject(null!=(c=this.C.getParameter(b))?c:this.D);Oa(this.C,b,e=>{d.next(e)});c=this.O;b=`${b}.${olympe.fb.pa.CU}`;Object.prototype.hasOwnProperty.call(this.C.parameters,b.toLowerCase())&&(c=!0===this.C.getParameter(b));
|
|
324
|
+
b=new olympe.fb.di.He(a,d.asObservable(),c);this.channels.set(a,b)}return b}};olympe.fb.di.Ec.Aa=[olympe.fb.Ec];olympe.fb.ba={Pb:'logging.Manager'};olympe.fb.pa={AH:'logging',BH:'logging.showLogLevel',MQ:'logging',CU:'showLogLevel'};olympe.ta.af(function(a){E(a,olympe.fb.pa.AH,olympe.fb.He.C.HC);E(a,olympe.fb.pa.BH,!0);Ra(a,olympe.fb.ba.Pb,olympe.fb.di.Ec,olympe.ta.ba.xp,new olympe.ta.Db(olympe.fb.pa.AH),new olympe.ta.Db(olympe.fb.pa.BH))},'olympe.logging');olympe.ta.run([olympe.fb.ba.Pb],a=>{olympe.fb.wb=b=>a.Yg(b)},'Logging singleton getter initialization');olympe.j={};olympe.j.pa={mK:'df.nodeCreationThreshold'};const Nb=[];function Pb(){}function Qb(){}olympe.j.J=class a{constructor(b,c,d){this.C=void 0===b?Pb:b;this.D=void 0===c?Nb:c;this.$=d}static C(b){return void 0===b||0===b.length?olympe.j.J.ca:new a(Qb,b)}R(){return this.C?this.C():void 0}O(){return this.D?this.D:Nb}T(){return null===this.C&&null===this.D}W(){return this.C===Qb}};olympe.j.J.$=new olympe.j.J;olympe.j.J.O=new olympe.j.J(null,null);olympe.j.J.ca=new olympe.j.J(Qb);olympe.j.J.D=new olympe.j.J(()=>olympe.j.aa);
|
|
325
325
|
olympe.j.J.R=new olympe.j.J(()=>olympe.j.kb);olympe.j.J.T=new olympe.j.J(()=>olympe.j.ia);olympe.j.J.W=new olympe.j.J(()=>olympe.j.ga);olympe.j.ot=class{ja(){return''}nE(){return''}destroy(){}mc(){return!1}ag(){return!1}run(a,...b){return a(...b)}re(a){return a}getParent(){return null}Ff(){}sk(){}detach(){}rA(){}Do(){}onDestroy(){return''}Ro(){}Ve(){return''}nP(){}};olympe.j.ot.prototype.offDestroy=olympe.j.ot.prototype.Ro;olympe.j.ot.prototype.onDestroy=olympe.j.ot.prototype.onDestroy;let Rb=0;olympe.ta.run([new olympe.ta.Db(olympe.j.pa.mK)],()=>{});
|
|
326
|
-
olympe.j.ee=class{constructor(a='SimpleContext',b){++Rb;this.children=new Map;this.$=new Map;this.W=new Map;this.na=0;this.name=a;this.id=String(Rb);this.O=this.ca=!1;(this.parent=void 0===b?olympe.j.
|
|
326
|
+
olympe.j.ee=class{constructor(a='SimpleContext',b){++Rb;this.children=new Map;this.$=new Map;this.W=new Map;this.na=0;this.name=a;this.id=String(Rb);this.O=this.ca=!1;(this.parent=void 0===b?olympe.j.yb():b)&&this.parent.sk(this);this.debug=!1}ja(){return this.id}nE(){return this.name}run(a,...b){if(!this.ca){var c=olympe.j.GP(this);a=a(...b);c&&olympe.j.GP(c);return a}}re(a){return(...b)=>this.run(a,...b)}destroy(){if(!this.ca&&!this.O){this.O=!0;this.Do();for(const a of this.$.keys())this.$.has(a)&&
|
|
327
327
|
this.$.get(a)();this.$.clear();this.W.clear();this.parent&&(this.parent.detach(this,!1),this.parent=null);this.ca=!0;this.O=!1;this.Do()}}mc(){return this.ca}ag(){return this.O}sk(a){if(!this.ca){var b;olympe.j.$b(a)?b=a.Ub:olympe.j.FE(a)&&(b=a);b&&this.children.set(b.ja(),b)}}detach(a,b=!0){let c;olympe.j.$b(a)?c=a.Ub:olympe.j.FE(a)&&(c=a);c&&this.children.has(c.ja())&&(b&&c.rA(this),this.children.delete(c.ja()))}rA(){this.parent=null;this.destroy()}Do(){const a=this.children;for(const b of a.keys())a.has(b)&&
|
|
328
328
|
a.get(b).rA(this);this.children.clear();for(const b of this.W.keys())this.W.has(b)&&this.W.get(b)();this.W.clear()}onDestroy(a,b){void 0===b&&(++this.na,b=String(this.na));this.$.set(b,a);return b}Ro(a){this.$.delete(a)}Ve(a){if(void 0===b){++this.na;var b=String(this.na)}this.W.set(b,a);return b}nP(a){this.W.delete(a)}Ff(a){this.parent&&this.parent.detach(this,!1);(this.parent=a||null)&&this.parent.sk(this)}getParent(){return this.parent}};
|
|
329
329
|
olympe.j.lL=class extends olympe.j.ee{constructor(){super('Root',null)}destroy(){}onDestroy(){return''}Ro(){}};olympe.j.ot.Aa=[olympe.j.ot];let Sb=0;
|
|
@@ -339,7 +339,7 @@ function ic(a,b){if(a.C!==olympe.j.Node.C.Ap&&a.C!==olympe.j.Node.C.yj&&(a.C!==o
|
|
|
339
339
|
function Yb(a,b){b===a?olympe.j.V.error('Setting a node as provider of itself. Ignoring'):(a.D&&a.D!==b&&cc(a),Vb(b,a),Xb(b)?Zb(a,b.qg,!0):void 0!==a.defaultValue?Zb(a,a.defaultValue,!0):ic(a),a.D=b)}function jc(a,b){a.Mh&&(a.Mh=void 0);a.Cd='Repeater';Yb(a,b)}function fc(a){a.D?ec(a):null!==a.T&&0===Array.from(a.T.values()).filter(b=>!Xb(b)).length&&(a.Oa&&(a.Oa=!1,Wb(a)),ec(a))}
|
|
340
340
|
function Vb(a,b){a.R||(a.R=new Map);a.R.set(b.ja(),b);a.C===olympe.j.Node.C.yj&&olympe.j.V.warn('adding a downstream node on a deleted one (#'+a.ja()+') !')}function dc(a,b){a.R&&(b=b.ja(),a.R.has(b)&&(a.R.delete(b),kc(a)))}function kc(a){if(null===a.getParent()){var b=a.R;b&&0<b.size||a.destroy()}}
|
|
341
341
|
olympe.j.Node=class extends olympe.j.ee{constructor({valueType:a,Mh:b,XY:c=!0,fp:d,BE:e,debug:f=!1,eq:g=null,Cd:k='Node',Ow:l}={}){++Sb;super(String(Sb));this.debug=!!f;this.Cd=k;k&&'string'===typeof k||(b?this.Cd=b.name?b.name:'anon()':this.Cd='Node');this.cj=e&&0<e.length?e:null;this.eq=g&&0<g.length?g:null;this.valueType=a;this.qg=void 0;this.ea=!1;this.C=olympe.j.Node.C.Ht;this.Oa=!1;this.R=this.T=null;this.Mh=b;this.fp=d||null;this.defaultValue=this.Ba=this.D=void 0;this.Ow=l;d&&d instanceof
|
|
342
|
-
olympe.j.Node&&Tb(this,d);if(g)for(b=0;b<g.length;b++)a=e[g[b]],Tb(this,a);c&&Wb(this)}pj(a){this.defaultValue=a;this.C===olympe.j.Node.C.Ht&&Zb(this,a,!0);return this}Rw(a){this.valueType=a}Fe(){return this.valueType||Object}asObservable(a=olympe.j.
|
|
342
|
+
olympe.j.Node&&Tb(this,d);if(g)for(b=0;b<g.length;b++)a=e[g[b]],Tb(this,a);c&&Wb(this)}pj(a){this.defaultValue=a;this.C===olympe.j.Node.C.Ht&&Zb(this,a,!0);return this}Rw(a){this.valueType=a}Fe(){return this.valueType||Object}asObservable(a=olympe.j.yb()){return new rxjs.Observable(b=>{const c=a.run(()=>olympe.j.createNode(this.valueType,b.next.bind(b),null,[this],[0],`Observable of ${this.Cd}`));c.onDestroy(()=>b.complete());return()=>c.destroy()})}mh(){return this.C}mc(){return this.C===olympe.j.Node.C.yj}ag(){return this.C===
|
|
343
343
|
olympe.j.Node.C.Ap}Ia(...a){if(this.Ow instanceof Function)return this.Ow(...a);var b=a.length;--b;const c=a[b];--b;const d=a[b],e=Array(b);for(var f=0;f<b;f++)e[f]=a[f];a=this.mh();a!==olympe.j.Node.C.Ap&&a!==olympe.j.Node.C.yj||olympe.j.V.warn('Calling a function on a destroyed node!!!',this);a=d.O();b=[];if(1===a.length&&-1===a[0])for(var g of e)olympe.j.$b(g)&&b.push(g.Ub);else for(let k=0,l=a.length;k<l;k++)g=a[k],f=e[g],void 0!==f&&null!==f&&f.Jh&&(e[g]=f.Ub,b.push(g));return ac(new olympe.j.Node({valueType:d.R(),
|
|
344
344
|
Mh:c,fp:this,BE:e,debug:!1,eq:b,Cd:'Proxy.'+c+'()'}))}rA(a){if(null===this.getParent())olympe.j.V.warn('context is undefined, investigate');else if(this.getParent()!==a){olympe.j.V.warn('Investigate a potential issue in creator-createe link: create node mismatch',a,this.getParent());return}this.Ff(null);kc(this)}destroy(){var a=this.C;if(a!==olympe.j.Node.C.Ap&&a!==olympe.j.Node.C.yj){Ub(this,olympe.j.Node.C.Ap);if(a=this.R){for(const c of a.values())if(a.has(c.ja())){var b=c;b.T&&b.T.delete(this.ja());
|
|
345
345
|
b.D&&b.D.ja()===this.ja()?b.D=void 0:b.destroy()}a.clear()}this.R=null;super.destroy();if(this.T){for(const c of this.T.values())this.T.has(c.ja())&&dc(c,this);this.T.clear()}this.T=null;this.D&&(dc(this.D,this),this.D=void 0);this.qg=void 0;this.cj&&(this.cj.length=0,this.cj=null);this.eq&&(this.eq.length=0,this.eq=null);this.Ow=this.Mh=void 0;this.defaultValue=this.fp=null;this.Cd=`** Destroyed ** ${this.Cd}`;Ub(this,olympe.j.Node.C.yj)}}nE(){return this.Cd}};olympe.j.Node.D='rootNode';
|
|
@@ -355,7 +355,7 @@ g===c&&e()}});return d.wa()}Sa(a){return olympe.j.Xa([this,a],(b,c)=>olympe.j.Ca
|
|
|
355
355
|
c.valueOf()),olympe.j.aa,'ONumber.div')}Bx(a){return olympe.j.Xa([this,a],(b,c)=>olympe.j.Ca(b.valueOf()%c.valueOf()),olympe.j.aa,'ONumber.div')}floor(){return olympe.j.Ca(Math.floor(this.valueOf()))}ceil(){return olympe.j.Ca(Math.ceil(this.valueOf()))}trunc(){return olympe.j.Ca(Math.trunc(this.valueOf()))}log(){return olympe.j.Ca(Math.log(this.valueOf()))}pow(a){return olympe.j.Xa([this,a],(b,c)=>olympe.j.Ca(Math.pow(b.valueOf(),c.valueOf())),olympe.j.aa,'ONumber.pow')}exp(){return olympe.j.Ca(Math.exp(this.valueOf()))}Se(a){return olympe.j.Xa([this,
|
|
356
356
|
a],(b,c)=>olympe.j.jc(b.Sb(c)),olympe.j.ia,'ONumber.oEquals')}Sb(a){return this.valueOf()===(void 0!==a&&null!==a?a.valueOf():void 0)}valueOf(){return void 0!==this.value?this.value.valueOf():void 0}BX(){return this.valueOf()}Sj(a){return olympe.j.Xa([this,a],(b,c)=>b.valueOf()>c.valueOf()?olympe.j.ia.C:olympe.j.ia.ob,olympe.j.ia,'ONumber.isBiggerThan')}CP(a){return olympe.j.Xa([this,a],(b,c)=>b.valueOf()>=c.valueOf()?b:olympe.j.Ca(c),olympe.j.aa,'ONumber.returnsBiggest')}Cn(a){return olympe.j.Xa([this,
|
|
357
357
|
a],(b,c)=>b.valueOf()<=c.valueOf()?b:olympe.j.Ca(c),olympe.j.aa,'ONumber.returnsSmallest')}GE(a){return olympe.j.Xa([this,a],(b,c)=>b.valueOf()<c.valueOf()?olympe.j.ia.C:olympe.j.ia.ob,olympe.j.ia,'ONumber.isSmallerThan')}sin(){return olympe.j.Ca(Math.sin(this.valueOf()))}cos(){return olympe.j.Ca(Math.cos(this.valueOf()))}atan2(a){return olympe.j.$b(a)?olympe.j.hi([a],b=>olympe.j.Ca(Math.atan2(this.valueOf(),b.valueOf())),olympe.j.aa):olympe.j.Ca(Math.atan2(this.valueOf(),a.valueOf()))}abs(){return olympe.j.Ca(Math.abs(this.valueOf()))}Ax(a,
|
|
358
|
-
b){return olympe.j.$b(a)||olympe.j.$b(b)?olympe.j.hi([a,b],(c,d)=>olympe.j.Ca(this.valueOf()*d.valueOf()+c.valueOf()*(1-d.valueOf())),olympe.j.aa):olympe.j.Ca(this.valueOf()*b.valueOf()+a.valueOf()*(1-b.valueOf()))}static EV(a,b,c,d){'number'===typeof a&&(a=olympe.j.ma(a));'number'===typeof b&&(b=olympe.j.ma(b));'number'===typeof c&&(c=olympe.j.ma(c));let e=0;const f=olympe.j.ma(0);let g,k;void 0!==b&&void 0!==c&&olympe.j.$a(b.Sj(c),()=>{olympe.
|
|
358
|
+
b){return olympe.j.$b(a)||olympe.j.$b(b)?olympe.j.hi([a,b],(c,d)=>olympe.j.Ca(this.valueOf()*d.valueOf()+c.valueOf()*(1-d.valueOf())),olympe.j.aa):olympe.j.Ca(this.valueOf()*b.valueOf()+a.valueOf()*(1-b.valueOf()))}static EV(a,b,c,d){'number'===typeof a&&(a=olympe.j.ma(a));'number'===typeof b&&(b=olympe.j.ma(b));'number'===typeof c&&(c=olympe.j.ma(c));let e=0;const f=olympe.j.ma(0);let g,k;void 0!==b&&void 0!==c&&olympe.j.$a(b.Sj(c),()=>{olympe.fb.wb('df').warn('You have a min bigger than max, cap your inputs')});
|
|
359
359
|
const l=(m,n)=>{n=olympe.j.ma(n);const p=olympe.j.aa.animate(n,500);rc(f,p);I(n,olympe.j.Ca(m));e=m};olympe.j.hi([a],m=>{e+=m.valueOf();e>k?l(k,e):e<g?l(g,e):rc(f,olympe.j.ma(e))},olympe.j.aa);void 0!==b&&olympe.j.cg(b.valueOf(),m=>{if(g!==m&&(g=m,g>e)){const n=olympe.j.ma(e),p=olympe.j.aa.animate(n,400,d);m=olympe.j.Ca(g);Zb(n.Ub,m);e=g;rc(f,p)}});void 0!==c&&olympe.j.cg(c.valueOf(),m=>{if(k!==m&&(k=m,k<e)){const n=olympe.j.ma(e),p=olympe.j.aa.animate(n,400,d);m=olympe.j.Ca(k);Zb(n.Ub,m);e=k;rc(f,
|
|
360
360
|
p)}});return f}static offset(a){let b;return olympe.j.hi([a],c=>{void 0===b&&(b=c);return olympe.j.Ca(c-b)},olympe.j.aa,'offset')}static gN(a){let b,c,d;return olympe.j.Xa([a],e=>{if(void 0===b)return b=e,c=window.performance.now(),olympe.j.Ca(0);d=window.performance.now();const f=olympe.j.Ca((e.valueOf()-b.valueOf())/(d-c));b=e;c=d;return f},olympe.j.aa,'derivative')}static eY(a){let b=olympe.j.Ca(0),c,d,e;return olympe.j.Xa([a],f=>{if(void 0===c)return c=f,d=window.performance.now(),olympe.j.Ca(0);
|
|
361
361
|
e=window.performance.now();b=b.Sa((f.valueOf()+c.valueOf())/2*(e-d));c=f;d=e;return b},olympe.j.aa,'integrate')}static oW(a){let b;return olympe.j.Xa([a],c=>{void 0===b&&(b=c.valueOf());const d=olympe.j.Ca(c.valueOf()-b.valueOf());b=c;return d},olympe.j.aa,'diff')}static aE(a,b,c){return olympe.j.hi([a,b,c],(d,e,f)=>{d='number'===typeof d?d:d.valueOf();e='number'===typeof e?e:e.valueOf();f='number'===typeof f?f:f.valueOf();return olympe.j.Ca(d>=e?d<=f?d:f:e)},olympe.j.aa)}static animate(a,b,c,d){let e;
|
|
@@ -387,7 +387,7 @@ olympe.j,b=a.kc;var c=this.Sd.getDate();c=10>c?'0'+c:c;var d=this.Sd.getMonth()+
|
|
|
387
387
|
olympe.j.kb)}toLocaleTimeString(a){return void 0===a||'string'===typeof a?olympe.j.kc(this.Sd.toLocaleTimeString(a)):olympe.j.Xa([this,a],(b,c)=>olympe.j.kc(b.Sd.toLocaleTimeString(c.valueOf())),olympe.j.kb)}pg(){return olympe.j.kc(this.Sd.toISOString())}Av(){return new Date(this.getTime())}VZ(){return this}XZ(){return this}clone(){return new olympe.j.bc(new Date(this.Sd.getTime()))}cq(a,b){return olympe.j.Xa([b],c=>{const d=this.clone();d.Sd['set'+a](this.Sd['get'+a]()+c.valueOf());return d},olympe.j.bc)}HV(a){return this.cq('Milliseconds',
|
|
388
388
|
a)}LV(a){return this.cq('Seconds',a)}IV(a){return this.cq('Minutes',a)}GV(a){return this.cq('Hours',a)}ku(a){return this.cq('Date',a)}MV(a){return'number'===typeof a?this.ku(7*a):this.ku(a.hb(7))}lA(a){return this.cq('Month',a)}Nw(a){return this.cq('FullYear',a)}QZ(){let a=this.Sd.getDay();a=0===a?6:a-1;return new olympe.j.bc(new Date(this.Sd.getFullYear(),this.Sd.getMonth(),this.Sd.getDate()-a))}RZ(){return new olympe.j.bc(new Date(this.Sd.getFullYear(),this.Sd.getMonth()))}Se(a){return olympe.j.Xa([a],
|
|
389
389
|
b=>olympe.j.jc(this.Sb(b)),olympe.j.ia)}Sb(a){return a instanceof olympe.j.bc?this.getTime()===a.getTime()||isNaN(this.getTime())&&isNaN(a.getTime()):!1}sX(){let a=this.Sd.getDay();0===a&&(a=7);return olympe.j.Ca(a)}bX(a,b){return olympe.j.Xa([a,b],(c,d)=>{d=d.valueOf();'years'===d?c=this.Sd.getFullYear()-c.Sd.getFullYear():'months'===d?c=12*(this.Sd.getFullYear()-c.Sd.getFullYear())+(this.Sd.getMonth()-c.Sd.getMonth()):(d={milliseconds:1,seconds:1E3,minutes:6E4,hours:36E5,days:864E5,weeks:6048E5}[d],
|
|
390
|
-
void 0===d&&(olympe.
|
|
390
|
+
void 0===d&&(olympe.fb.wb('df').warn("[getDiff] '_unit' is not a valid unit! Defaulting to milliseconds"),d=1),c=Math.trunc((this.Sd.getTime()-c.Sd.getTime())/d));return olympe.j.Ca(c)},olympe.j.aa)}gY(a){return olympe.j.Xa([a],b=>olympe.j.jc(this.getTime()<b.getTime()),olympe.j.ia)}eP(a){return olympe.j.Xa([a],b=>olympe.j.jc(this.getTime()>b.getTime()),olympe.j.ia)}bB(a,b){return olympe.j.Xa([a,b],(c,d)=>olympe.j.jc(this.getTime()>c.getTime()&&this.getTime()<d.getTime()),olympe.j.ia)}valueOf(){return this.hn().valueOf()?
|
|
391
391
|
new Date(this.getTime()):new Date(0)}};olympe.j.bc.C=Ac(0);olympe.j.bc.D=Ac(Number.NaN);h=olympe.j.bc.prototype;h.hn.K=olympe.j.J.T;h.cS.K=olympe.j.J.D;h.eS.K=olympe.j.J.D;h.dS.K=olympe.j.J.D;h.bS.K=olympe.j.J.D;h.lq.K=olympe.j.J.D;h.getMonth.K=olympe.j.J.D;h.getYear.K=olympe.j.J.D;h.getTime.K=olympe.j.J.O;h.sp.K=new olympe.j.J(()=>olympe.j.kb,[0]);h.toLocaleString.K=olympe.j.J.R;h.toLocaleDateString.K=olympe.j.J.R;h.toLocaleTimeString.K=olympe.j.J.R;h.pg.K=olympe.j.J.R;h.Av.K=olympe.j.J.O;
|
|
392
392
|
h.VZ.K=new olympe.j.J(()=>olympe.j.bc,[]);h.XZ.K=new olympe.j.J(()=>olympe.j.bc,[]);h.cq.K=new olympe.j.J(()=>olympe.j.bc,[]);h.HV.K=new olympe.j.J(()=>olympe.j.bc,[]);h.LV.K=new olympe.j.J(()=>olympe.j.bc,[]);h.IV.K=new olympe.j.J(()=>olympe.j.bc,[]);h.GV.K=new olympe.j.J(()=>olympe.j.bc,[]);h.ku.K=new olympe.j.J(()=>olympe.j.bc,[0]);h.MV.K=new olympe.j.J(()=>olympe.j.bc,[]);h.lA.K=new olympe.j.J(()=>olympe.j.bc,[]);h.Nw.K=new olympe.j.J(()=>olympe.j.bc,[0]);
|
|
393
393
|
h.QZ.K=new olympe.j.J(()=>olympe.j.bc,[]);h.RZ.K=new olympe.j.J(()=>olympe.j.bc,[]);h.Se.K=olympe.j.J.T;h.Sb.K=olympe.j.J.O;h.sX.K=olympe.j.J.D;h.bX.K=new olympe.j.J(()=>olympe.j.aa,[0,1]);h.gY.K=new olympe.j.J(()=>olympe.j.ia,[0]);h.eP.K=new olympe.j.J(()=>olympe.j.ia,[0]);h.bB.K=new olympe.j.J(()=>olympe.j.ia,[0,1]);h.valueOf.K=olympe.j.J.O;const Bc=new Map,Cc=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,Dc=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i;function Ec(a,b,c,d,e=1){Bc.has(a)||Bc.set(a,new olympe.j.Color(b,c,d,e));return Bc.get(a)}function N(){return Ec('black',0,0,0,1)}function Fc(){return Ec('gray',128,128,128,1)}function O(){return Ec('white',255,255,255,1)}function Gc(){return Ec('dark gray',64,64,64,1)}function Hc(){return Ec('light gray',200,200,200,1)}function Ic(){return Ec('transparent',0,0,0,0)}
|
|
@@ -402,16 +402,16 @@ olympe.j.ga,'Vector2.plus')}za(a){return olympe.j.Xa([this,a],(b,c)=>new olympe.
|
|
|
402
402
|
a+b*b)),olympe.j.aa)}fS(){return olympe.j.Xa([this.x,this.y],(a,b)=>{const c=Math.sqrt(a*a+b*b);return new olympe.j.ga(a/c,b/c)},olympe.j.ga)}floor(){return olympe.j.Xa([this.x,this.y],(a,b)=>new olympe.j.ga(Math.floor(a),Math.floor(b)),olympe.j.ga)}ceil(){return olympe.j.Xa([this.x,this.y],(a,b)=>new olympe.j.ga(Math.ceil(a),Math.ceil(b)),olympe.j.ga)}round(){return olympe.j.Xa([this.x,this.y],(a,b)=>new olympe.j.ga(Math.round(a),Math.round(b)),olympe.j.ga)}JV(a){return new olympe.j.ga(this.x.Sa(a),
|
|
403
403
|
this.y.Sa(a))}KV(a,b){return new olympe.j.ga(this.x.Sa(a),this.y.Sa(b))}pg(){return olympe.j.Xa([this.x,this.y],(a,b)=>olympe.j.kc(`Vector2[${a.valueOf()}, ${b.valueOf()}]`),olympe.j.kb)}toString(){return`Vector2[${F(this.x)}, ${F(this.y)}]`}Sb(a){return this===a?!0:!1}};h=olympe.j.ga.prototype;h.toJSON.K=olympe.j.J.O;h.qa.K=olympe.j.J.D;h.oe.K=olympe.j.J.O;h.sa.K=olympe.j.J.D;h.Ge.K=olympe.j.J.O;h.QX.K=olympe.j.J.D;h.Sa.K=new olympe.j.J(()=>olympe.j.ga,[0]);
|
|
404
404
|
h.za.K=new olympe.j.J(()=>olympe.j.ga,[0]);h.BY.K=olympe.j.J.W;h.qW.K=olympe.j.J.W;h.DY.K=olympe.j.J.W;h.rW.K=new olympe.j.J(()=>olympe.j.aa,[0]);h.length.K=olympe.j.J.D;h.fS.K=olympe.j.J.W;h.floor.K=olympe.j.J.W;h.ceil.K=olympe.j.J.W;h.round.K=olympe.j.J.W;h.JV.K=olympe.j.J.W;h.KV.K=olympe.j.J.W;h.pg.K=olympe.j.J.R;h.toString.K=olympe.j.J.O;h.Sb.K=olympe.j.J.O;olympe.j.Pk=class{constructor(){}Fe(){}ri(){}get(){}Lj(){}has(){}Hi(){}Wd(){}Zm(){}Sc(){}ej(){}forEach(){}Bi(){}};olympe.j.Pk.prototype.forEachCurrentValue=olympe.j.Pk.prototype.Bi;olympe.j.Pk.prototype.forEach=olympe.j.Pk.prototype.forEach;h=olympe.j.Pk.prototype;h.has.K=olympe.j.J.T;h.Hi.K=olympe.j.J.O;h.Wd.K=new olympe.j.J(()=>Object,[]);h.Zm.K=new olympe.j.J(()=>String,[]);h.Sc.K=olympe.j.J.D;h.ej.K=olympe.j.J.O;h.forEach.K=new olympe.j.J(()=>{},[]);h.Bi.K=olympe.j.J.O;olympe.j.Xg=class extends olympe.j.Pk{gf(){}Om(){}an(){}vl(){}Kh(){}ul(){}Zw(){}Au(){}};olympe.j.Xg.prototype.getCurrentAt=olympe.j.Xg.prototype.ul;olympe.j.Xg.prototype.getAt=olympe.j.Xg.prototype.Kh;olympe.j.Xg.prototype.getCurrentKeyAt=olympe.j.Xg.prototype.vl;olympe.j.Xg.prototype.getKeyAt=olympe.j.Xg.prototype.an;olympe.j.Xg.prototype.getCurrentRank=olympe.j.Xg.prototype.Om;olympe.j.Xg.prototype.getRank=olympe.j.Xg.prototype.gf;h=olympe.j.Xg.prototype;h.gf.K=olympe.j.J.D;h.Om.K=olympe.j.J.O;
|
|
405
|
-
h.an.K=new olympe.j.J(()=>String,[]);h.vl.K=olympe.j.J.O;h.Kh.K=new olympe.j.J(()=>Object,[]);h.ul.K=olympe.j.J.O;h.Zw.K=olympe.j.J.O;h.Au.K=new olympe.j.J(()=>Array,[]);olympe.j.Gv=class{constructor(a,b){this.R=b||olympe.j.
|
|
405
|
+
h.an.K=new olympe.j.J(()=>String,[]);h.vl.K=olympe.j.J.O;h.Kh.K=new olympe.j.J(()=>Object,[]);h.ul.K=olympe.j.J.O;h.Zw.K=olympe.j.J.O;h.Au.K=new olympe.j.J(()=>Array,[]);olympe.j.Gv=class{constructor(a,b){this.R=b||olympe.j.yb();this.valueType=a||Object;this.values={};this.Ia=this.na=null;this.Rc=0;this.W=Object.create(null);this.Ka=Object.create(null);this.size=0;this.O=null;this.R.onDestroy(()=>{const c=this.W;if(c){const d=Object.keys(c),e=d.length;for(let f=0;f<e;f++){const g=c[d[f]],k=Object.keys(g);for(let l=k.length,m=0;m<l;m++)g[k[m]].destroy()}}})}getContext(){return this.R}Fe(){return this.valueType}ri(a){this.valueType=a;const b=this.na;if(null!==b)for(const c in b)Object.prototype.hasOwnProperty.call(b,
|
|
406
406
|
c)&&nc(b[c],a)}get(a){const b=c=>{null===this.na&&(this.na={});return this.kx(this.na,c,this.values[c],this.valueType,'Map.get('+c+')')};return olympe.j.Xa([a],c=>b(c),this.valueType)}Lj(a){a=this.values[a];return olympe.j.$b(a)?Xb(a.Ub)?F(a):void 0:a}has(a){const b=c=>{null===this.Ia&&(this.Ia={});return this.kx(this.Ia,c,c in this.values?olympe.j.ia.C:olympe.j.ia.ob,olympe.j.ia,'Map.has('+c+')')};return olympe.j.Xa([a],c=>b(c),olympe.j.ia)}Hi(a){return a in this.values}kx(a,b,c,d,e){let f=a[b];
|
|
407
407
|
f||this.R.run(()=>{f=olympe.j.ub(d,void 0,e);a[b]=f;f.Ub.onDestroy(()=>delete a[b]);olympe.j.$b(c)?rc(f,c):I(f,c)});return f}Wd(){throw Error('Abstract method getFirstKey needs to be overridden');}Zm(){throw Error('Abstract method getFirstKey needs to be overridden');}Sc(){null===this.O&&this.R.run(()=>{this.O=olympe.j.ub(olympe.j.aa,olympe.j.Ca(this.size));this.O.Ub.onDestroy(()=>{this.O=null})});return this.O}ej(){return this.size}forEach(a,b){const c=this.TD();a=this.SM(c,a,b);this.SD(c,a)}TD(){return String(++this.Rc)}SD(a,
|
|
408
|
-
b){this.Ka[a]=b;olympe.j.
|
|
408
|
+
b){this.Ka[a]=b;olympe.j.yb().Ve(()=>{const c=this.W;for(const d in c)Object.prototype.hasOwnProperty.call(c,d)&&delete c[d][a];delete this.Ka[a]});this.Bi(b)}SM(a,b,c){const d=olympe.j.yb();return(e,f)=>{d.run(()=>{const g=olympe.j.createNode(void 0,b,null,[e,f,this],null,`forEach-${a}-${f}`);if(void 0!==c)g.onDestroy(()=>{c(f)});this.VD(a,f,g)})}}VD(a,b,c){void 0===this.W[b]&&(this.W[b]={});this.W[b][a]=c}Bi(a){const b=this.values;for(const c in b)if(Object.prototype.hasOwnProperty.call(b,c)&&!1===
|
|
409
409
|
a(b[c],c,this))break}jA(a,b){void 0!==this.values[a]&&this.Fw(a,!0);this.values[a]=b;var c=this.na;null!==c&&void 0!==c[a]&&(b&&b instanceof olympe.j.Proxy?rc(c[a],b):I(c[a],b));c=this.Ia;null!==c&&void 0!==c[a]&&K(c[a],!0);this.size++;c=this.Ka;for(const d in c)if(Object.prototype.hasOwnProperty.call(c,d))c[d](b,a,this)}Fw(a,b){const c=this.values;if(Object.prototype.hasOwnProperty.call(c,a)){var d=(d=c[a])&&d.Jh?F(d):d;var e=this.na;null!==e&&void 0!==e[a]&&pc(e[a]);e=this.Ia;null!==e&&void 0!==
|
|
410
410
|
e[a]&&K(e[a],!1);delete c[a];this.size--;b||this.Ao()}a=this.W[a];if(void 0!==a)for(const f in a)Object.prototype.hasOwnProperty.call(a,f)&&a[f].destroy();return d}Ao(){null!==this.O&&K(this.O,this.size)}hu(){var a=this.na;if(null!==a)for(const c in a)Object.prototype.hasOwnProperty.call(a,c)&&pc(a[c]);a=this.Ia;if(null!==a)for(var b in a)Object.prototype.hasOwnProperty.call(a,b)&&K(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.W)if(Object.prototype.hasOwnProperty.call(this.W,
|
|
411
411
|
c)){b=this.W[c];for(const d in b)Object.prototype.hasOwnProperty.call(b,d)&&b[d].destroy()}this.size=0;null!==this.O&&K(this.O,this.size)}rr(){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.Gv.Aa=[olympe.j.Pk];h=olympe.j.Gv.prototype;h.getContext.K=olympe.j.J.O;h.Fe.K=olympe.j.J.O;h.ri.K=olympe.j.J.O;h.get.K=new olympe.j.J(()=>Object,[],'valueType');h.Lj.K=olympe.j.J.O;h.has.K=olympe.j.J.T;h.Hi.K=olympe.j.J.O;h.kx.K=olympe.j.J.O;
|
|
412
412
|
h.Sc.K=olympe.j.J.D;h.ej.K=olympe.j.J.O;h.forEach.K=new olympe.j.J(()=>{},[]);h.TD.K=olympe.j.J.O;h.SD.K=olympe.j.J.O;h.SM.K=olympe.j.J.O;h.VD.K=olympe.j.J.O;h.Bi.K=olympe.j.J.O;h.jA.K=olympe.j.J.O;h.Fw.K=olympe.j.J.O;h.Ao.K=olympe.j.J.O;h.hu.K=olympe.j.J.O;h.rr.K=olympe.j.J.O;olympe.j.Cy=class extends olympe.j.Gv{constructor(a,b){super(a,b);this.D=Object.create(null);this.C=[];this.ea=this.Ba=this.Oa=this.ca=null}ri(a){super.ri(a);if(null!==this.ea)for(let b of this.ea.values())nc(b,a)}Wd(){return this.Kh(0)}Zm(){return this.an(0)}gf(a){const b=c=>{null===this.Oa&&(this.Oa=Object.create(null));let d=this.Om(a);d=void 0!==d?olympe.j.Ca(d):void 0;return this.kx(this.Oa,c,d,olympe.j.aa,`List.getRank(${c})`)};return olympe.j.$b(a)?oc(a,b,null,olympe.j.aa):b(a)}Om(a){return this.D[a]}an(a){const b=
|
|
413
|
-
c=>{const d=c.valueOf(),e=this.vl(d);null===this.Ba&&(this.Ba=Object.create(null));return this.kx(this.Ba,String(d),e,String,'List.getKeyAt('+c+')')};return olympe.j.Xa([a],c=>b(c),String)}vl(a){return this.C[a.valueOf()]}Kh(a){if(olympe.j.$b(a))return this.get(olympe.j.Xa([a],c=>{c=this.an(c);if(!Xb(c.Ub)){const d=olympe.j.
|
|
414
|
-
this.ea.delete(a))});return b}ul(a){return this.Lj(this.vl(a))}Zw(a,b,c,d){let e=this.TD();a=this.kP(e,a,b,c,d);this.SD(e,a)}kP(a,b,c,d,e){return olympe.j.
|
|
413
|
+
c=>{const d=c.valueOf(),e=this.vl(d);null===this.Ba&&(this.Ba=Object.create(null));return this.kx(this.Ba,String(d),e,String,'List.getKeyAt('+c+')')};return olympe.j.Xa([a],c=>b(c),String)}vl(a){return this.C[a.valueOf()]}Kh(a){if(olympe.j.$b(a))return this.get(olympe.j.Xa([a],c=>{c=this.an(c);if(!Xb(c.Ub)){const d=olympe.j.yb();olympe.j.gn(d)&&ic(d)}return c},String));null===this.ea&&(this.ea=new Map);let b=this.ea.get(a);b||this.R.run(()=>{b=this.get(this.an(a));this.ea.set(a,b);b.Ub.onDestroy(()=>
|
|
414
|
+
this.ea.delete(a))});return b}ul(a){return this.Lj(this.vl(a))}Zw(a,b,c,d){let e=this.TD();a=this.kP(e,a,b,c,d);this.SD(e,a)}kP(a,b,c,d,e){return olympe.j.yb().re((f,g)=>{let k=!1,l=olympe.j.zv([b,c,this.gf(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.VD(a,g,l)})}Au(){null===this.ca&&this.R.run(()=>{this.ca=olympe.j.ub(Array,this.C.filter(a=>void 0!==a));this.ca.Ub.onDestroy(()=>{this.O=null})});return this.ca}Bi(a){if(this.C.length!==
|
|
415
415
|
this.size)super.Bi(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}}kA(a,b){const c=this.Oa,d=this.Ba,e=this.D[a],f=b.valueOf();if(e!==f||this.C[e]!==a){var g=this.C[f];void 0!==g&&delete this.D[g];void 0!==e&&null!==e&&this.C[e]===a&&(this.C[e]=void 0);this.D[a]=f;this.C[f]=a;null!==c&&(void 0!==g&&void 0!==c[g]&&pc(c[g]),void 0!==c[a]&&I(c[a],olympe.j.Ca(f)));null!==d&&(void 0!==e&&null!==e&&void 0!==d[e]&&
|
|
416
416
|
pc(d[e]),void 0!==d[b]&&I(d[b],a))}}UD(a){var b=this.Ba,c=this.D[a];null!==c&&void 0!==c&&null!==b&&(b=b[c],void 0!==b&&F(b)===a&&pc(b));delete this.D[a];this.C.splice(c,1);c=this.Oa;null!==c&&void 0!==c[a]&&pc(c[a])}WD(){if(null!==this.ca){const a=this.C,b=F(this.ca);b&&a.join(',')!==b.join(',')&&I(this.ca,a)}}Ao(){this.WD();super.Ao()}hu(){var a=this.D;for(b in a)delete a[b];this.C.length=0;a=this.Oa;if(null!==a)for(b in a)pc(a[b]);a=this.Ba;if(null!==a)for(b in a)pc(a[parseInt(b,10)]);var b=this.ca;
|
|
417
417
|
null!==b&&(gc(b.Ub),I(b,this.C));return olympe.j.Gv.prototype.hu.call(this)}rr(){const a=this.values,b=this.D;let c='[\n';for(let d in a)Object.prototype.hasOwnProperty.call(a,d)&&(c+=`${b[d]}. ${a[d]}\n`);return c+']'}};olympe.j.Cy.Aa=[olympe.j.Xg];h=olympe.j.Cy.prototype;h.ri.K=olympe.j.J.O;h.Wd.K=new olympe.j.J(()=>Object,[]);h.Zm.K=new olympe.j.J(()=>String,[]);h.gf.K=olympe.j.J.D;h.Om.K=olympe.j.J.O;h.an.K=new olympe.j.J(()=>String,[]);h.vl.K=olympe.j.J.O;h.Kh.K=new olympe.j.J(()=>Object,[]);
|
|
@@ -422,30 +422,30 @@ olympe.j.ub=function(a,b,c){a=olympe.j.createNode(a,void 0,void 0,void 0,void 0,
|
|
|
422
422
|
olympe.j.cg=function(a,b){if(void 0!==a){olympe.j.ms(a)&&(a=a.wa().Ub);if(!olympe.j.Og(a))return b(a);var c=[];olympe.j.$b(a)?c.push(a.Ub):c.push(a);return olympe.j.createNode(void 0,b,null,c,[0],'onResolved')}};olympe.j.Qa=function(a,b){let c=a;olympe.j.$b(a)?c=F(a):olympe.j.gn(a)?c=a.qg:olympe.j.ms(a)&&(c=F(a.wa()));return void 0===c?b:c};olympe.j.pj=function(a,b){let c;olympe.j.$b(a)?c=a.Ub:olympe.j.gn(a)?c=a:olympe.j.ms(a)&&(c=a.wa().Ub);c&&olympe.j.Wa([b],d=>{c.pj(d)},'setDefaultValue');return a};
|
|
423
423
|
olympe.j.zv=function(a,b,c,d){const e=a.length,f=Array(e),g=[];let k;for(let l=0;l<e;l++)k=a[l],void 0!==k&&null!==k&&(void 0!==k.QM?(k=k.Ub,g.push(l)):k instanceof olympe.j.Node?g.push(l):olympe.j.ms(k)&&(k=k.wa().Ub,g.push(l))),f[l]=k;return olympe.j.createNode(c,b,null,f,g,d||'syncNodes')};olympe.j.hi=function(a,b,c,d){return ac(olympe.j.zv(a,b,c,d||'syncProxies'))};const Mc=a=>{for(const b of a)if(olympe.j.Og(b)||olympe.j.ms(b))return!1;return!0};
|
|
424
424
|
olympe.j.Xa=function(a,b,c,d,e){if(Mc(a))return b(...a);const f=olympe.j.zv(a,b,c,d||'TransformFlows');e&&olympe.j.Wa([e],g=>{f.pj(g)},'setDefaultValue');return ac(f)};olympe.j.Wa=function(a,b,c){Mc(a)?b(...a):olympe.j.zv(a,b,void 0,c||'processFlows')};olympe.j.z3=function(a,b,c){const d=olympe.j.gn(a)?a.Fe():olympe.j.ms(a)?a.wa().fu:a.fu,e=olympe.j.Za(d,c),f=olympe.la.Promise.sA(g=>{e.getContext().mc()||e.update(g)},b);olympe.j.Wa([a],g=>f(g).then());return e.wa()};
|
|
425
|
-
olympe.j.us=function(a,b){if(Mc(a))b(...a);else{const c=olympe.j.
|
|
426
|
-
olympe.j.vP=function(a,b){const c=olympe.j.
|
|
427
|
-
olympe.j.$a=function(a,b,c,d,e,f){return olympe.j.Xa([a],g=>g.valueOf()?b.apply(null,e):c&&c.apply(null,e),d||Object,f||'If')};olympe.j.K3=function(a,b,c='from observable'){const d=olympe.j.Za(b,c),e=a.subscribe(f=>d.update(f));d.getContext().onDestroy(()=>e.unsubscribe());return d.wa()};olympe.j.G3=function(a,b,...c){return a?a.run(b,...c):b(...c)};olympe.j.m4=function(a){return olympe.j.
|
|
425
|
+
olympe.j.us=function(a,b){if(Mc(a))b(...a);else{const c=olympe.j.yb();olympe.j.zv(a,(...d)=>{olympe.j.yb().destroy();c.run(b,...d)},void 0,'processFlowsOnce')}};olympe.j.Jl=function(a,b,c){const d=a.length,e=Array(d),f=[];let g;for(let k=0;k<d;k++)g=a[k],void 0!==g&&null!==g&&(olympe.j.$b(g)?(g=g.Ub,f.push(k)):g instanceof olympe.j.Node?f.push(k):olympe.j.ms(g)&&(g=g.wa().Ub,f.push(k))),e[k]=g;0!==f.length&&new olympe.j.Node({Mh:b,BE:e,eq:f,XY:!1,Cd:c})};
|
|
426
|
+
olympe.j.vP=function(a,b){const c=olympe.j.yb();olympe.j.Jl(a,(...d)=>{olympe.j.yb().destroy();c.run(b,...d)},'processFutureFlowsOnce')};olympe.j.x3=function(a,b,c){a=new olympe.j.fz(a,c);b(a);return a.wa()};olympe.j.Za=function(a,b='flowSource'){return new olympe.j.fz(a,b)};olympe.j.h4=function(a,b,c,d){const e=olympe.j.yb();olympe.j.zv(a,(...f)=>{olympe.j.yb().destroy();e.run(b,...f)},c,d||'syncProxiesOnce')};
|
|
427
|
+
olympe.j.$a=function(a,b,c,d,e,f){return olympe.j.Xa([a],g=>g.valueOf()?b.apply(null,e):c&&c.apply(null,e),d||Object,f||'If')};olympe.j.K3=function(a,b,c='from observable'){const d=olympe.j.Za(b,c),e=a.subscribe(f=>d.update(f));d.getContext().onDestroy(()=>e.unsubscribe());return d.wa()};olympe.j.G3=function(a,b,...c){return a?a.run(b,...c):b(...c)};olympe.j.m4=function(a){return olympe.j.yb().re(a)};olympe.j.E3=function(a,b,c){olympe.j.sW(a?a.Ub:a,b,c)};
|
|
428
428
|
olympe.j.sW=function(a,b,c){if(a){var d=a.ja();null===Lc&&(Lc={});if(Lc[d])olympe.j.V.log(`Already started node #${d} dump`+(b?`: ${b}`:''));else{Lc[d]=!0;var e=`Starting node #${d} dump`+(b?`: ${b}`:'');c?olympe.j.V.warn(e):olympe.j.V.log(e);var f=`#${d}`+(b?`: ${b}`:'')+':';c=olympe.j.createNode(null,g=>{void 0===g?olympe.j.V.log(f,'undefined'):null===g?olympe.j.V.log(f,'null'):olympe.j.V.log(f,String(g))},null,[a],[0],'DataFlowDump');a.onDestroy(()=>{olympe.j.V.log(`Node #${d} destroyed`+(b?`: ${b}`:
|
|
429
|
-
''))});c.onDestroy(()=>{delete Lc[d]})}}else olympe.j.V.log('NOT starting node dump, node is '+String(a))};olympe.j.D3=function(){let a='',b=olympe.j.
|
|
429
|
+
''))});c.onDestroy(()=>{delete Lc[d]})}}else olympe.j.V.log('NOT starting node dump, node is '+String(a))};olympe.j.D3=function(){let a='',b=olympe.j.yb();for(;null!==b;)a+=b.nE()+' --\x3e ',b=b.getParent();olympe.j.V.log(a)};
|
|
430
430
|
olympe.j.Ca=function(a){if(void 0===a)return olympe.j.aa.ZERO;if(a instanceof olympe.j.aa)return a;a&&a.valueOf&&(a=a.valueOf());if('number'===typeof a){if(isNaN(a))return olympe.j.aa.lK;if(a===Math.PI)return olympe.j.aa.PI;if(Infinity===a)return olympe.j.aa.PR;if(-Infinity===a)return olympe.j.aa.tT;if(isNaN(a))var b=!1;else b=parseFloat(a),b=(b|0)===b;return b&&-1<=a&&100>=a?(olympe.j.gu.has(a)||olympe.j.gu.set(a,new olympe.j.aa(a)),olympe.j.gu.get(a)):new olympe.j.aa(a)}return null};
|
|
431
431
|
olympe.j.ma=function(a){return void 0===a?olympe.j.ub(olympe.j.aa):olympe.j.ub(olympe.j.aa,olympe.j.Og(a)?a:olympe.j.Ca(a))};olympe.j.Ji=olympe.j.aa.animate;olympe.j.X3=function(a,b){return new olympe.j.wQ(a,b)};olympe.j.kc=function(a){if(a instanceof olympe.j.kb)return a;a instanceof Object&&(a=a.valueOf());const b=typeof a;if('string'===b||'number'===b||'boolean'===b)return a=String(a),olympe.j.iA.has(a)?olympe.j.iA.get(a):new olympe.j.kb(a)};
|
|
432
432
|
olympe.j.Ab=function(a){return void 0===a?olympe.j.ub(olympe.j.kb):olympe.j.ub(olympe.j.kb,olympe.j.Og(a)?a:olympe.j.kc(a))};olympe.j.jc=function(a){return a instanceof olympe.j.ia?a:void 0!==a&&null!==a&&a.valueOf()?olympe.j.ia.C:olympe.j.ia.ob};olympe.j.Yc=function(a){return void 0===a?olympe.j.ub(olympe.j.ia):olympe.j.ub(olympe.j.ia,olympe.j.Og(a)?a:olympe.j.jc(a))};olympe.j.Y3=function(a){if(a instanceof Date)return zc(a)};
|
|
433
433
|
olympe.j.RY=function(){var a=new Date;return olympe.j.ub(olympe.j.bc,void 0!==a?zc(a):null)};olympe.j.hP=a=>a instanceof olympe.j.ia||a instanceof olympe.j.aa||a instanceof olympe.j.kb||a instanceof olympe.j.bc;olympe.j.ed=function(a,b){return olympe.j.ub(olympe.j.ga,void 0===a&&void 0===b?void 0:new olympe.j.ga(a,b))};olympe.j.qd=function(a,b,c,d){let e;void 0!==a&&(a instanceof olympe.j.Color?e=a:e=olympe.j.Color.create(a,b,c,d));return olympe.j.ub(olympe.j.Color,e)};olympe.j.b4=olympe.j.qd;
|
|
434
|
-
olympe.j.jW=function(a){olympe.j.V=a;olympe.j.qu=olympe.j.Ko()};olympe.j.Ko=function(){olympe.j.UE||(olympe.j.UE=new olympe.j.lL);return olympe.j.UE};olympe.j.
|
|
434
|
+
olympe.j.jW=function(a){olympe.j.V=a;olympe.j.qu=olympe.j.Ko()};olympe.j.Ko=function(){olympe.j.UE||(olympe.j.UE=new olympe.j.lL);return olympe.j.UE};olympe.j.yb=function(){olympe.j.qu||(olympe.j.qu=olympe.j.Ko());return olympe.j.qu};olympe.j.GP=function(a){const b=olympe.j.qu;olympe.j.FE(a)&&(olympe.j.qu=a);return null!=b?b:null};
|
|
435
435
|
olympe.j.ke=a=>{a='string'===typeof a?JSON.parse(a):a;if(a.type){let b=null;switch(a.type){case 'dateTime':b=olympe.j.bc.ke(a);break;case 'number':b=olympe.j.aa.ke(a);break;case 'string':b=olympe.j.kb.ke(a);break;case 'vector2':b=olympe.j.ga.ke(a);break;case 'color':b=olympe.j.Color.ke(a);break;case 'boolean':b=olympe.j.ia.ke(a)}return b}return null};function Nc(a){a.O.mc()||(a.D.forEach(b=>{b.destroy()}),a.D.clear(),a.T.clear(),a.size.clear(),a.W.clear(),a.C.length=0,a.R.length=0)}function Oc(a,b,c){Pc(a,c).push(b)}
|
|
436
436
|
function Qc(a){for(var b=a.C.length-1;0<=b&&0===a.C[b].length;b--)a.C.length=b;b=0;let c=a.R.length,d=0,e=a.C.length,f=null;const g=[];for(;b<c||d<e;){const k=d<e&&a.C[d++][0]||b<c&&a.R[b++]||null;if(null===k)break;g.push(k.ja());k.VP(f);f=k}b=g.length-1;a.D.forEach((k,l)=>{g.includes(l)||k.lI()});a.W.update(olympe.j.Ca(b));0>b?a.T.clear():a.T.update(a.D.get(g[b]))}
|
|
437
437
|
function Rc(a,b){if(!a.O.mc()){var c=a.D.get(b);void 0!==c&&(c.aB()?a.R.splice(a.R.indexOf(c),1):Sc(a,c),a.D.delete(b),c.destroy(),Qc(a))}}
|
|
438
|
-
function Tc(a,b,c=olympe.j.aa.ONE,d){if(a.D.has(b))throw Error('Already existing slot with id: '+b);var e=olympe.j.Qa(a.W)+1;const f=olympe.j.Qa(d,e).valueOf();e=a.O.run(()=>new Uc(b,c,f,void 0===d));a.D.set(b,e);e.aB()?a.R.push(e):Oc(a,e,f);Qc(a);olympe.j.Og(d)&&olympe.j.Jl([d],g=>{g=g.valueOf();if(!a.O.mc()){var k=a.D.get(b);if(void 0!==k){if(k.aB())throw Error('SlotManager: Cannot move explicitly an auto ranked entry');Sc(a,k);k.lQ(g);Oc(a,k,g);Qc(a)}}});olympe.j.
|
|
438
|
+
function Tc(a,b,c=olympe.j.aa.ONE,d){if(a.D.has(b))throw Error('Already existing slot with id: '+b);var e=olympe.j.Qa(a.W)+1;const f=olympe.j.Qa(d,e).valueOf();e=a.O.run(()=>new Uc(b,c,f,void 0===d));a.D.set(b,e);e.aB()?a.R.push(e):Oc(a,e,f);Qc(a);olympe.j.Og(d)&&olympe.j.Jl([d],g=>{g=g.valueOf();if(!a.O.mc()){var k=a.D.get(b);if(void 0!==k){if(k.aB())throw Error('SlotManager: Cannot move explicitly an auto ranked entry');Sc(a,k);k.lQ(g);Oc(a,k,g);Qc(a)}}});olympe.j.yb().Ve(()=>{Rc(a,b)});return e.HO()}
|
|
439
439
|
function Sc(a,b){a=Pc(a,b.gf());a.splice(a.indexOf(b),1)}function Pc(a,b){var c=a.C[b];if(void 0===c){c=b;let d;for(;0<=c&&void 0===d;)a.C[c]=[],c--,d=a.C[c];c=a.C[b]}return c}
|
|
440
440
|
olympe.j.Vz=class{constructor(){this.O=new olympe.j.ee('Slot Manager context');this.D=new Map;this.O.run(()=>{this.T=olympe.j.Za(Uc,'Last slot manager entry');this.size=M(olympe.j.Za(olympe.j.aa,'SlotManager size').repeat(this.T.wa().oE()),olympe.j.aa.ZERO);this.W=M(olympe.j.Za(olympe.j.aa,'last valid slots'),olympe.j.Ca(-1))});this.C=[];this.R=[];this.O.onDestroy(()=>{Nc(this)})}Sc(){return this.size.wa()}};
|
|
441
441
|
class Uc{constructor(a,b,c,d){this.id=a;this.D=new olympe.j.ee('Slot manager entry');this.O=c;this.T=d;this.D.run(()=>{const e=M(olympe.j.Za(olympe.j.aa),olympe.j.aa.ZERO);olympe.j.$b(b)?e.repeat(b):e.update(b);this.C=olympe.j.Za(olympe.j.aa);this.R=this.C.wa().Sa(e.wa())});this.next=null}ja(){return this.id}HO(){return this.C.wa()}oE(){return this.R}gf(){return this.O}aB(){return this.T}lQ(a){this.O=a}VP(a){null===a?this.C.update(olympe.j.aa.ZERO):(this.C.repeat(a.oE()),a.next=this)}lI(){this.C.clear();
|
|
442
|
-
this.next=null}destroy(){this.D.destroy();this.R=this.C=this.next=null}}h=Uc.prototype;h.ja.K=olympe.j.J.O;h.HO.K=new olympe.j.J(()=>olympe.j.aa);h.oE.K=new olympe.j.J(()=>olympe.j.aa);h.gf.K=olympe.j.J.O;h.aB.K=olympe.j.J.O;h.lQ.K=olympe.j.J.O;h.VP.K=olympe.j.J.O;h.lI.K=olympe.j.J.O;h.destroy.K=olympe.j.J.O;olympe.j.ba={Wb:'df.Logger'};olympe.ta.af(a=>{E(a,olympe.j.pa.mK,Number.POSITIVE_INFINITY);C(a,olympe.j.ba.Wb,[olympe.
|
|
442
|
+
this.next=null}destroy(){this.D.destroy();this.R=this.C=this.next=null}}h=Uc.prototype;h.ja.K=olympe.j.J.O;h.HO.K=new olympe.j.J(()=>olympe.j.aa);h.oE.K=new olympe.j.J(()=>olympe.j.aa);h.gf.K=olympe.j.J.O;h.aB.K=olympe.j.J.O;h.lQ.K=olympe.j.J.O;h.VP.K=olympe.j.J.O;h.lI.K=olympe.j.J.O;h.destroy.K=olympe.j.J.O;olympe.j.ba={Wb:'df.Logger'};olympe.ta.af(a=>{E(a,olympe.j.pa.mK,Number.POSITIVE_INFINITY);C(a,olympe.j.ba.Wb,[olympe.fb.ba.Pb],b=>b.Yg('df'))},'olympe.df');olympe.ta.run([olympe.j.ba.Wb],a=>{olympe.j.jW(a)},'olympe.df');olympe.host={};const Vc=new Map,Wc=new Map;olympe.host.Zc=class{static register(a,b,...c){Vc.set(a,b);0<c.length&&Wc.set(a,c)}static create(a,b,c,d){const e=Vc.get(a);if(void 0===e)throw Error('Undefined UI element type: '+a);a=Wc.get(a);return void 0!==a?new e(b,c,...a.map(f=>Na(d,f))):new e(b,c)}};function Xc(a,b,c){a.V.debug('CREATE #',b,', type=',c);a.C.set(b,olympe.host.Zc.create(c,b,a.V,a.R))}function Yc(a,b,c,...d){const e=a.C.get(b);if(void 0!==e){a.V.R()<=olympe.fb.He.C.zp&&a.V.debug('CALL #'+b+', '+c+'('+Array.prototype.slice.call(d,0)+')');b=[];for(const f of d)if(void 0===f||null===f)b.push(f);else if(olympe.j.$b(f))b.push(a.C.get(f.RD)||null);else if('function'===typeof f){const g=f,k=olympe.j.yb();b.push((...l)=>{k.mc()||g(...l)})}else b.push(f.valueOf());e[c].apply(e,b)}}
|
|
443
443
|
function Zc(a,b,c){++a.O;const d=a.O;Xc(a,d,c);const e=olympe.j.createNode(b,void 0,void 0,void 0,void 0,'Native('+d+')',!1,function(){var f=arguments.length-2;const g=Array.from({length:f}),k=[],l=arguments[f+1],m=d+'_'+l;this.D.has(m)&&this.D.get(m).destroy();for(let n=0;n<f;n++){let p=arguments[n];olympe.j.$b(p)?(k.push(n),p=p.Ub):olympe.j.gn(p)&&k.push(n);g[n]=p}0===k.length?e.run(()=>{Yc(this,d,l,...g)}):(f=olympe.j.createNode(void 0,(...n)=>{e.run(()=>{Yc(this,d,l,...n)})},void 0,g,k,'Native('+
|
|
444
|
-
d+').'+l),this.D.set(m,f),f.onDestroy(()=>this.D.delete(m)));return null}.bind(a));e.Ve(a.T.bind(a,d));a=ac(e);a.RD=d;Zb(e,a);return a}olympe.host.Ec=class{constructor(a,b){this.V=a;this.R=b;this.O=0;this.C=new Map;this.D=new Map;a.debug('Starting host manager')}
|
|
444
|
+
d+').'+l),this.D.set(m,f),f.onDestroy(()=>this.D.delete(m)));return null}.bind(a));e.Ve(a.T.bind(a,d));a=ac(e);a.RD=d;Zb(e,a);return a}olympe.host.Ec=class{constructor(a,b){this.V=a;this.R=b;this.O=0;this.C=new Map;this.D=new Map;a.debug('Starting host manager')}wb(){return this.V}T(a){this.V.debug('DESTROY #',a);const b=this.C.get(a);this.C.delete(a);b.destroy()}};function Q(a,b){return a.Kg.run(b)}function $c(a,b){return a.Kg.re(b)}olympe.host.Xi=class{constructor(a){this.gj=a;this.Kg=olympe.j.yb()}wg(){return this.gj}ag(){return this.gj.Ub.ag()||this.Kg.ag()}mc(){return this.gj.Ub.mc()}};olympe.host.Xi.prototype.wg.K=new olympe.j.J(()=>olympe.host.ab.Xi,[]);olympe.host.Yz=class{D(){}C(){}R(){}};olympe.host.JR=class{hn(){}};function ad(a,b,c){var d=olympe.host.Dn;const e=c||olympe.la.cf(),f=new olympe.j.ee('onTimeout context');d.C.$(b,e,()=>{f.mc()||f.ag()||f.run(a);d.C.C(e)});return new olympe.host.Zh.D(d.C,e,f)}function bd(a){var b=olympe.host.Dn;a=a instanceof olympe.host.Zh.D?a.ja():a;b.C.C(a)}function cd(a,b){var c=olympe.host.Dn;const d=olympe.la.cf(),e=new olympe.j.ee('onInterval context');c.C.W(b,d,()=>{e.mc()||e.ag()?c.C.R(d):e.run(a)})}olympe.host.Zh=class{constructor(a){this.C=Zc(a,olympe.host.ab.Zh,olympe.host.ab.jb.jM)}};
|
|
445
445
|
olympe.host.Zh.C=class{constructor(a,b,c){this.Dn=a;this.id=b;this.C=null!=c?c:null}ja(){return this.id}cancel(){}};olympe.host.Zh.R=class extends olympe.host.Zh.C{cancel(){this.Dn.T(this.id);let a;null==(a=this.C)||a.destroy();this.C=null}};olympe.host.Zh.D=class extends olympe.host.Zh.C{cancel(){this.Dn.C(this.id);let a;null==(a=this.C)||a.destroy();this.C=null}};olympe.host.Zh.O=class extends olympe.host.Zh.C{cancel(){this.Dn.R(this.id);let a;null==(a=this.C)||a.destroy();this.C=null}};olympe.host.sD=class{};olympe.host.sD.C={LIVENESS:'liveness',READINESS:'readiness',ALL:'all'};olympe.host.ab={};olympe.host.ab.Xi=class{destroy(){}};olympe.host.ab.Xi.prototype.destroy=olympe.host.ab.Xi.prototype.destroy;olympe.host.ab.jb={$F:100,BQ:101,q_:102,bG:103,aG:104,p_:105,CL:201,Tz:202,NU:204,g2:205,AL:206,BL:207,DL:208,EL:209,FL:210,GL:211,DD:212,f2:218,e2:219,HL:220,zL:221,yL:222,p2:300,q2:301,s2:302,WL:303,w2:304,z2:305,t2:310,u2:311,v2:312,w1:400,z1:401,A1:402,g1:450,eK:500,cK:501,gK:502,fK:503,dK:504,sT:505,S2:600,J2:601,N2:602,F2:603,G2:604,D2:605,I2:606,Y2:607,Q2:608,A2:609,E2:610,H2:611,P2:612,U2:613,B2:614,T2:615,O2:616,X2:617,K2:618,L2:619,M2:620,R2:630,C2:631,V2:632,W2:633,IM:700,lM:701,mM:702,
|
|
446
446
|
nM:703,pM:704,qM:705,rM:706,oM:707,tM:708,sM:709,uM:710,yM:711,GM:712,vM:713,wM:714,zM:715,AM:716,CM:717,DM:718,FM:719,BM:720,EM:721,HM:722,xM:723,JM:724,KM:725,jM:800};olympe.host.ab.Zh=class{T(){}$(){}C(){}W(){}R(){}};olympe.host.ba={Vt:'host.System',JH:'host.HistoryManager',nL:'host.Scheduler',Wb:'host.platform.Logger',Pb:'host.Manager',zm:'host.ProcessManager'};olympe.host.pa={Qz:'role',KH:'host.currentHost',H1:'host.processProbe',a2:'host.gracefulShutdownTimeout'};olympe.host.Br={JB:'active',Kt:'preview'};olympe.host.Dn=null;
|
|
447
|
-
olympe.ta.af(function(a){var b,c;const d='object'===typeof window&&(null==(b=window)?void 0:null==(c=b.location)?void 0:c.hostname)||'127.0.0.1';Qa(a,olympe.host.pa.KH,d);b=olympe.host.Br.JB;c=olympe.host.Br.Kt;E(a,olympe.host.pa.Qz,d.startsWith(`${c}.`)?c:b);Va(a,olympe.host.ba.Vt);Va(a,olympe.host.ba.JH);A(a,olympe.host.ba.zm,olympe.host.sD);C(a,olympe.host.ba.Wb,[olympe.
|
|
448
|
-
e=>{null===olympe.host.Dn&&(olympe.host.Dn=new olympe.host.Zh(e));return olympe.host.Dn},!0)},'olympe.host');olympe.ta.run([olympe.host.ba.nL],a=>a,'olympe.host.scheduler');olympe.ta.run([olympe.host.ba.Pb],a=>a,'olympe.host');olympe.ta.run([olympe.host.ba.zm],a=>{olympe.host.P3=()=>a});olympe.G.H.host={};olympe.G.H.host.Xi=class{constructor(a,b){this.uid=a;this.V=b}destroy(){}
|
|
447
|
+
olympe.ta.af(function(a){var b,c;const d='object'===typeof window&&(null==(b=window)?void 0:null==(c=b.location)?void 0:c.hostname)||'127.0.0.1';Qa(a,olympe.host.pa.KH,d);b=olympe.host.Br.JB;c=olympe.host.Br.Kt;E(a,olympe.host.pa.Qz,d.startsWith(`${c}.`)?c:b);Va(a,olympe.host.ba.Vt);Va(a,olympe.host.ba.JH);A(a,olympe.host.ba.zm,olympe.host.sD);C(a,olympe.host.ba.Wb,[olympe.fb.ba.Pb],e=>e.Yg('host'));A(a,olympe.host.ba.Pb,olympe.host.Ec,olympe.host.ba.Wb,olympe.ta.ba.xp);C(a,olympe.host.ba.nL,[olympe.host.ba.Pb],
|
|
448
|
+
e=>{null===olympe.host.Dn&&(olympe.host.Dn=new olympe.host.Zh(e));return olympe.host.Dn},!0)},'olympe.host');olympe.ta.run([olympe.host.ba.nL],a=>a,'olympe.host.scheduler');olympe.ta.run([olympe.host.ba.Pb],a=>a,'olympe.host');olympe.ta.run([olympe.host.ba.zm],a=>{olympe.host.P3=()=>a});olympe.G.H.host={};olympe.G.H.host.Xi=class{constructor(a,b){this.uid=a;this.V=b}destroy(){}wb(){return this.V}};olympe.G.H.host.Xi.prototype.destroy=olympe.G.H.host.Xi.prototype.destroy;olympe.G.H.host.Xi.Aa=[olympe.host.ab.Xi];olympe.G.H.host.Yz=class{constructor(){this.O=olympe.j.Za(olympe.j.ia).update(olympe.j.ia.C);document.addEventListener('visibilitychange',()=>{this.O.update(olympe.j.jc('visible'===document.visibilityState))})}D(){window.location.reload()}C(){return this.O.wa()}R(){return!1}};olympe.G.H.host.Yz.Aa=[olympe.host.Yz];function dd(a){const b=olympe.la.tP(),c=[];for(const [d,e]of b.entries()){if(a.state.get(d)!==e){let f;null==(f=a.C.get(d))||f.forEach(g=>c.push(g.bind(null,e)))}a.state.delete(d)}for(const d of a.state.keys()){let e;null==(e=a.C.get(d))||e.forEach(f=>c.push(f.bind(null,null)))}a.state=b;c.forEach(d=>d())}olympe.G.H.host.LH=class{constructor(){this.state=olympe.la.tP();this.C=new Map;new olympe.la.promise.Wt;window.addEventListener('hashchange',()=>dd(this))}hn(){return!0}};
|
|
449
449
|
olympe.G.H.host.LH.Aa=[olympe.host.JR];olympe.G.H.host.Zh=class{constructor(){this.O=new Map;this.D=new Map}destroy(){}T(a){this.O.has(a)&&(clearTimeout(this.O.get(a)),this.O.delete(a))}$(a,b,c){this.O.set(b,setTimeout(c,a))}C(a){this.T(a)}W(a,b,c){this.D.set(b,setInterval(c,a))}R(a){this.D.has(a)&&(clearInterval(this.D.get(a)),this.D.delete(a))}};olympe.host.Zc.register(olympe.host.ab.jb.jM,olympe.G.H.host.Zh);olympe.G.H.host.Zh.Aa=[olympe.host.ab.Zh];olympe.ta.af(function(a){Ra(a,olympe.host.ba.JH,olympe.G.H.host.LH,olympe.host.ba.Wb);Ra(a,olympe.host.ba.Vt,olympe.G.H.host.Yz)},'olympe.native.html.host');olympe.error={};olympe.error.Sh=class extends Error{constructor(a,b=olympe.error.eg.cA){super(a);this.code=b}hx(){return this.code}};olympe.error.eg={cA:0,Sv:1,qK:401,sC:403,dD:404,CT:406,TIMEOUT:408,zU:503,pK:530,$B:600,rK:1006};olympe.error.aA=class extends olympe.error.Sh{constructor(a){super(a,olympe.error.eg.TIMEOUT)}};olympe.error.HK=class extends olympe.error.Sh{constructor(a){super(a,olympe.error.eg.zU)}};olympe.error.fD=class extends olympe.error.Sh{constructor(a){super(a,olympe.error.eg.qK)}};olympe.error.gD=class extends olympe.error.Sh{constructor(a){super(a,olympe.error.eg.dD)}};
|
|
450
450
|
olympe.error.uK=class extends olympe.error.Sh{constructor(a){super(a,olympe.error.eg.Sv)}};olympe.error.tK=class extends olympe.error.Sh{constructor(a){super(a,olympe.error.eg.CT)}};olympe.error.j1=class extends olympe.error.Sh{constructor(a){super(a,olympe.error.eg.pK)}};olympe.error.eC=class extends olympe.error.Sh{constructor(a){super(a,olympe.error.eg.$B)}};olympe.error.ZG=class extends olympe.error.Sh{constructor(a){super(a,olympe.error.eg.Sv)}};
|
|
451
451
|
olympe.error.DK=class extends olympe.error.Sh{constructor(){super('Working offline',olympe.error.eg.Sv)}};olympe.error.EG=class extends olympe.error.Sh{constructor(a){super(a,olympe.error.eg.Sv)}};olympe.error.iL=class extends olympe.error.Sh{constructor(a){super(a,olympe.error.eg.Sv)}};olympe.error.HD=class extends olympe.error.Sh{constructor(a,b){super(a);this.id=b}ja(){return this.id}};olympe.error.It=class extends olympe.error.HD{};olympe.error.oG=class extends olympe.error.HD{};
|
|
@@ -453,7 +453,7 @@ olympe.error.HH=class extends olympe.error.HD{};olympe.xa={};olympe.xa.Tc={};oly
|
|
|
453
453
|
olympe.xa.Tc.qk={tG:0,zK:200,PQ:201,Ay:202,o_:400,dV:401,sC:403,dD:404,Z0:405,tU:500,vU:503};function ed(a){return a.host&&encodeURI(a.host)}function fd(a){return encodeURI(a.path).replace(olympe.xa.Ew.C,(b,c)=>'%'+c)}olympe.xa.Ew=class{constructor(a,b,c,d){this.host='localhost';this.port=80;this.path='';this.Ts=!1;void 0!==a&&(this.host=a);void 0!==b&&(this.port=b);void 0!==c&&this.Is(c);void 0!==d&&(this.Ts=d)}Is(a){this.path=a.replace(/^\/+/,'')}le(){return`${(void 0===this.Ts?443===this.port:this.Ts)?'wss':'ws'}://${ed(this)}:${this.port}/${fd(this)}`}toString(){return`${ed(this)}:${this.port}/${fd(this)}`}};
|
|
454
454
|
olympe.xa.Ew.C=/%25([0-9a-f]{2})/i;olympe.xa.WebSocket=class{send(){}close(){}ea(){}ca(){}$(){}D(){}};function gd(a,b,c,d){a=olympe.la.uP(a.valueOf());if(!a.host&&!a.path)return null;const e=a.scheme?a.scheme.includes('s'):!1;b=new olympe.xa.Zv(a.host,a.port||(e?443:80),a.path||'',e,b,c,d,a.query||void 0);a.mQ&&(c=a.mQ.split(':'),2===c.length&&(c=eb(olympe.la.Jj(),`${c[0]}:${c[1]}`),hd(b,{Authorization:`Basic ${c}`})));return b}function id(a){return void 0!==a.query?a.query.replace(/[^=&]+/g,b=>encodeURIComponent(b)):null}function jd(a,b){a.D=b;return a}
|
|
455
455
|
function hd(a,b){Object.assign(a.headers,b)}olympe.xa.Zv=class extends olympe.xa.Ew{constructor(a,b,c,d,e,f,g,k){super(a,b,c,d);this.method=null!=e?e:olympe.xa.Tc.lk.GET;this.query=k;this.headers={};this.body=f;this.D=null!=g?g:olympe.xa.Tc.ResponseType.Zz}C(){return this.headers}le(){let a=id(this);a=a?`?${a}`:'';if(!ed(this))return`${fd(this)}${a}`;const b=Number.isInteger(this.port)?`:${this.port}`:'';return`${(void 0===this.Ts?443===this.port:this.Ts)?'https':'http'}://${ed(this)}${b}/${fd(this)}${a}`}toString(){return this.le()}};
|
|
456
|
-
olympe.xa.Zv.lk={Vp:'POST',GET:'GET',zR:'HEAD',MK:'PUT',Sg:'DELETE',MT:'OPTIONS'};olympe.xa.$v=class{constructor(a,b,c,d){this.data=a;this.status=null!=b?b:200;this.statusText=null!=c?c:'';this.headers=null!=d?d:{}}mh(){return this.status}C(){return this.headers}};olympe.xa.Ec=class{constructor(a){this.V=a;this.O=new olympe.xa.di.KR(a);this.T=1;this.D=null;a='Initializing NET layer';this.V.C()&&(a+=' (implementation: '+this.ea()+')');this.V.log(a);this.V.log('DONE initializing NET layer (ready to receive connection requests)')}C(a){if(!a)throw Error('Try to send an invalid HTTP request: '+a);this.V.debug('SEND HTTP '+a.method+' to '+a.le());const b=this.T++,c=olympe.j.
|
|
456
|
+
olympe.xa.Zv.lk={Vp:'POST',GET:'GET',zR:'HEAD',MK:'PUT',Sg:'DELETE',MT:'OPTIONS'};olympe.xa.$v=class{constructor(a,b,c,d){this.data=a;this.status=null!=b?b:200;this.statusText=null!=c?c:'';this.headers=null!=d?d:{}}mh(){return this.status}C(){return this.headers}};olympe.xa.Ec=class{constructor(a){this.V=a;this.O=new olympe.xa.di.KR(a);this.T=1;this.D=null;a='Initializing NET layer';this.V.C()&&(a+=' (implementation: '+this.ea()+')');this.V.log(a);this.V.log('DONE initializing NET layer (ready to receive connection requests)')}C(a){if(!a)throw Error('Try to send an invalid HTTP request: '+a);this.V.debug('SEND HTTP '+a.method+' to '+a.le());const b=this.T++,c=olympe.j.yb(),d=c.onDestroy(()=>{var e=this.O;const f=e.C.get(b);e.C.delete(b);null==f||f()});return kd(this.O,
|
|
457
457
|
b,a).finally(()=>{c.Ro(d);this.O.C.delete(b)})}R(){}ca(){}W(){}Oo(){}ea(){}};function ld(a){const b=olympe.xa.AMQPClient.C.Ok,c=olympe.xa.AMQPClient.C.CONNECTING,d=olympe.xa.AMQPClient.C.Rf,e=olympe.xa.AMQPClient.C.we;ob(a.state,b,a.ea.bind(a),[c]);ob(a.state,c,()=>{a.V.debug('Connecting to the AMQP Client..');a.O=!0;a.state.moveTo(b)},[d]);ob(a.state,d,(f,g)=>q(function*(){a.O=null!=g?g:a.O;a.O||a.D.clear();yield md(a);if(a.O&&!a.W&&null!==a.options){let k,l;setTimeout(()=>{a.V.debug('Reconnecting to the AMQPClient..');a.state.moveTo(c)},null!=(l=null==(k=a.options)?void 0:
|
|
458
458
|
k.wP)?l:5E3)}}),[b,c,e]);pb(a.state,e,(f,g)=>{a.V.warn(`Error occurred with the AMQP Client, (was in state ${f}): ${g}`);a.state.moveTo(d,a.O)});a.state.start(d,!1)}function nd(a,b){mb(a.state,olympe.xa.AMQPClient.C.Ok,b)}function od(a,b){mb(a.state,olympe.xa.AMQPClient.C.CONNECTING,b)}function pd(a,b){mb(a.state,olympe.xa.AMQPClient.C.Rf,b)}
|
|
459
459
|
function md(a){return q(function*(){const b=a.C,c=a.R;a.C=a.R=null;!1===(null==b?void 0:b.closed)&&b.close().catch(d=>a.V.debug(`Issue while closing channel: ${d}`));!1===(null==c?void 0:c.closed)&&(yield olympe.la.Promise.HB(c.close(),500,'AMQPClient close timeout').catch(d=>{a.V.debug(`Error while closing client: ${d}`)}))})}function qd(a){return null!==a.R&&!a.R.closed&&null!==a.C&&!a.C.closed&&a.O}function rd(a,b){if(!qd(a))throw new olympe.error.eC(null!=b?b:'Not connected to the bus');}
|
|
@@ -467,16 +467,16 @@ function wd(a,b,c,d){return q(function*(){rd(a,'Cannot consume a queue without b
|
|
|
467
467
|
if(k===olympe.xa.AMQPClient.D.tD||k===olympe.xa.AMQPClient.D.cA)k=Math.round(5E3*Math.random()),a.V.warn(`Consumer of queue ${b} has been forced closed, will recreate the queue in ${k}ms..`),setTimeout(()=>{a.C===e&&!1===(null==e?void 0:e.closed)&&td(a,b,c,d).catch(l=>{a.V.error(`Failed to resubscribe to queue ${b}: ${l}`)})},k)})})}function zd(a,{id:b,OY:c}={}){return q(function*(){const d=yield a.R.channel(b);d.onerror=null!=c?c:e=>{a.V.debug(`Error with channel (${d.id}): ${e}`)};return d})}
|
|
468
468
|
function Ad(a,b,c){return q(function*(){rd(a,'Cannot bind a queue without being connected to the bus');var d;if(null==(d=a.D.get(b))?0:d.BB.has(c))throw Error(`Queue ${b} already bound to topic ${c}`);d=yield zd(a);try{a.V.debug(`Binding queue ${b} to topic ${c}`),yield d.queueBind(b,'amq.topic',c),a.D.get(b).BB.add(c)}finally{yield d.close()}})}
|
|
469
469
|
function Bd(a,b,c){return q(function*(){rd(a,'Cannot unbind a queue without being connected to the bus');const d=yield zd(a);try{a.V.debug(`Unbinding queue ${b} to topic ${c}`);let e,f;null==(e=a.D.get(b))||null==(f=e.BB)||f.delete(c);yield d.queueUnbind(b,'amq.topic',c)}finally{try{yield d.close()}catch(e){}}})}
|
|
470
|
-
olympe.xa.AMQPClient=class{constructor(a,b){this.V=olympe.
|
|
470
|
+
olympe.xa.AMQPClient=class{constructor(a,b){this.V=olympe.fb.wb('AMQP');this.W=this.O=!1;this.options=null;this.name=b;this.C=this.R=null;this.state=new olympe.la.TU(this.V);this.D=new Map;this.T=new Map;this.na=new olympe.la.promise.Wt;const c=olympe.la.Promise.sA(()=>{this.state.getState()===olympe.xa.AMQPClient.C.Rf?this.O&&this.state.moveTo(olympe.xa.AMQPClient.C.CONNECTING):this.state.moveTo(olympe.xa.AMQPClient.C.Rf,this.O)},0);a.subscribe(d=>{this.V.C()&&this.V.debug('New AMQP configuration received',
|
|
471
471
|
d);this.options=d;null!==d&&(this.W=!1,c().then())});ld(this)}connect(){const a=this;return q(function*(){if(qd(a))return a;a.state.getState()===olympe.xa.AMQPClient.C.Rf&&a.state.moveTo(olympe.xa.AMQPClient.C.CONNECTING);yield nb(a.state,olympe.xa.AMQPClient.C.Ok);return a})}disconnect(){const a=this;return q(function*(){const b=olympe.xa.AMQPClient.C.Rf;a.state.getState()!==b&&(a.state.moveTo(b,!1),yield nb(a.state,b))})}Nh(a,b,c,d={mandatory:!1,jQ:!1}){const e=this;return q(function*(){rd(e,'Cannot publish a message without being connected to the bus');
|
|
472
|
-
const f=JSON.stringify(c);e.V.C()&&e.V.debug(`AMQP > [${b}]: ${f}`);return(new Promise((g,k)=>{e.T.set(a,
|
|
473
|
-
a.options)throw Error('Cannot connect to the bus without a configuration');a.R=a.$(a.options,a.name);try{let b;yield olympe.la.Promise.BP(a.
|
|
474
|
-
olympe.error.eg.$B;const f=olympe.error.eg.rK,g=sd(d);if(g===e||g===f){b.V.debug(`Connection closed by network: ${d}`);b.state.moveTo(olympe.xa.AMQPClient.C.Rf,b.O);return}}else b.O=!1;e=b.state;e.moveTo(e.C,d)};try{yield b.R.connect(),b.ca(b.R,d=>{b.V.debug(`AMQP connection closed ${d?'with error':'without error'}`);d||b.state.moveTo(olympe.xa.AMQPClient.C.Rf,b.O)})}catch(d){if(d instanceof Error)switch(sd(d)){case olympe.error.eg.$B:case olympe.error.eg.rK:throw new olympe.error.eC(d);
|
|
475
|
-
|
|
476
|
-
{var g=b.state;g.moveTo(g.C,f)})}});yield b.C.confirmSelect();let d;yield b.C.prefetch(null!=(d=b.options.ZY)?d:20);b.C.onReturn=e=>{const f=`Message returned by the server: ${e.bodyToString()}`;let g;null==(g=b.T.get(parseInt(e.properties.U3,10)))||g(f)};b.D.forEach(({ZX:e,exclusive:f},g)=>{td(b,g,f,e)})});yield c()})}push(a){return this.
|
|
477
|
-
olympe.xa.AMQPClient.D={cA:0,tD:404,Q1:405,KK:406,v_:504,dI:541};function Cd(a){let b;return null!=(b=a.O)?b:{}}function Dd(a){return!1===a.C.closed?a.C.basicNack(a.D,!1,void 0).catch(b=>{olympe.
|
|
478
|
-
olympe.xa.AMQPMessage=class{constructor(a,b,c){this.R=a.redelivered;this.D=a.deliveryTag;this.T=a.routingKey;this.W=b;this.C=c;this.O=null;try{const d=a.bodyToString();this.O=JSON.parse(null!=d?d:'null')}catch(d){console.warn(`AMQPMessage: Failed to parse message payload: ${d}`)}}Ku(){return this.R}ack(){return!1===this.C.closed?this.C.basicAck(this.D,!1).catch(a=>{olympe.
|
|
479
|
-
olympe.ta.af(function(a){E(a,olympe.xa.pa.Op,3141);E(a,olympe.xa.pa.GR,100);E(a,olympe.xa.pa.lV,!1);E(a,olympe.xa.pa.ER,null);E(a,olympe.xa.pa.XC,'frontend');E(a,olympe.xa.pa.Az,!1);E(a,olympe.xa.pa.hD,!1);E(a,olympe.xa.pa.yK,20);Va(a,olympe.xa.ba.Pb);C(a,olympe.xa.ba.Wb,[olympe.
|
|
472
|
+
const f=JSON.stringify(c);e.V.C()&&e.V.debug(`AMQP > [${b}]: ${f}`);return(new Promise((g,k)=>{e.T.set(a,m=>k(new olympe.error.uK(`Impossible to deliver message to topic "${b}": ${m}`)));const l={messageId:String(a)};e.push(()=>e.C.basicPublish(d.jQ?'amq.topic':'',b,f,l,d.mandatory)).then(()=>g()).catch(m=>{m=sd(m)===olympe.xa.AMQPClient.D.tD?new olympe.error.gD(`Topic ${b} not deployed.`):Error(`Failed to publish a message ${f} to topic ${b}: ${m}`);k(m)})})).finally(()=>e.T.delete(a))})}ea(){const a=
|
|
473
|
+
this;return q(function*(){if(null===a.options)throw Error('Cannot connect to the bus without a configuration');a.R=a.$(a.options,a.name);try{let b;yield olympe.la.Promise.BP(a.Ba.bind(a),(null!=(b=a.options.wP)?b:5E3)/2,[olympe.error.eC]);a.V.debug('AMQP Client connected')}catch(b){if(b instanceof Event&&'close'===b.type)throw Error('Bus not ready, will try to reconnect..');throw b;}})}Ba(a){const b=this;return q(function*(){b.V.debug(`Connecting to the bus, tentative ${a+1}..`);b.R.onerror=d=>{if(d instanceof
|
|
474
|
+
amqp.AMQPError){var e=olympe.error.eg.$B;const f=olympe.error.eg.rK,g=sd(d);if(g===e||g===f){b.V.debug(`Connection closed by network: ${d}`);b.state.moveTo(olympe.xa.AMQPClient.C.Rf,b.O);return}}else b.O=!1;e=b.state;e.moveTo(e.C,d)};try{yield b.R.connect(),b.ca(b.R,d=>{b.V.debug(`AMQP connection closed ${d?'with error':'without error'}`);d||b.state.moveTo(olympe.xa.AMQPClient.C.Rf,b.O)})}catch(d){if(d instanceof Error)switch(sd(d)){case olympe.error.eg.$B:case olympe.error.eg.rK:throw new olympe.error.eC(d);
|
|
475
|
+
case olympe.error.eg.pK:case olympe.error.eg.qK:case olympe.error.eg.sC:throw b.W=!0,new olympe.error.fD('Connection to the bus is not allowed: check your credentials');}throw new olympe.error.Sh(`Connection to the bus failed: check your config and the availability of the bus: ${d}`);}const c=()=>q(function*(){b.C=yield zd(b,{id:1,OY:e=>{b.V.debug(`Error with channel 0: ${e}`);b.C=null;e=sd(e);e!==olympe.xa.AMQPClient.D.tD&&e!==olympe.xa.AMQPClient.D.KK||olympe.la.Promise.BP(f=>{b.V.warn(`Trying to recreate channel after being closed, tentative ${f+
|
|
476
|
+
1}..`);return c()},500).catch(f=>{var g=b.state;g.moveTo(g.C,f)})}});yield b.C.confirmSelect();let d;yield b.C.prefetch(null!=(d=b.options.ZY)?d:20);b.C.onReturn=e=>{const f=`Message returned by the server: ${e.bodyToString()}`;let g;null==(g=b.T.get(parseInt(e.properties.U3,10)))||g(f)};b.D.forEach(({ZX:e,exclusive:f},g)=>{td(b,g,f,e)})});yield c()})}push(a){return this.na.C(a)}$(){}ca(){}};olympe.xa.AMQPClient.C={CONNECTING:'CONNECTING',Ok:'CONNECTED',Rf:'DISCONNECTED',we:'ERROR'};
|
|
477
|
+
olympe.xa.AMQPClient.D={cA:0,tD:404,Q1:405,KK:406,v_:504,dI:541};function Cd(a){let b;return null!=(b=a.O)?b:{}}function Dd(a){return!1===a.C.closed?a.C.basicNack(a.D,!1,void 0).catch(b=>{olympe.fb.wb('amqp').error(`Failed to reject message ${a.D}: ${b}`)}):Promise.resolve()}
|
|
478
|
+
olympe.xa.AMQPMessage=class{constructor(a,b,c){this.R=a.redelivered;this.D=a.deliveryTag;this.T=a.routingKey;this.W=b;this.C=c;this.O=null;try{const d=a.bodyToString();this.O=JSON.parse(null!=d?d:'null')}catch(d){console.warn(`AMQPMessage: Failed to parse message payload: ${d}`)}}Ku(){return this.R}ack(){return!1===this.C.closed?this.C.basicAck(this.D,!1).catch(a=>{olympe.fb.wb('amqp').error(`Failed to ack message ${this.D}: ${a}`)}):Promise.resolve()}};function Ed(){return Promise.reject('Try to open a route on a web server using the browser implementation.')}olympe.xa.PM=class{constructor(a){this.V=a}start(){return Promise.reject('Try to start web server with the browser implementation.')}stop(){return Promise.reject('Try to stop web server with the browser implementation.')}};olympe.xa.PM.ALL='*';olympe.xa.kl=class{O(){return!1}register(){return q(function*(){throw Error('Service Worker Manager must be overridden by a native layer: called "register"');})}C(){console.error('Service Worker Manager must be overridden by a native layer: called "addUrlToCache"')}W(){console.error('Service Worker Manager must be overridden by a native layer: called "postMessage"')}};olympe.xa.ba={Pb:'net.Manager',Wb:'net.Logger',PD:'net.WebServer',Sz:'net.ServiceWorkerManager',zz:'net.OfflineConfig'};olympe.xa.pa={Op:'net.httpPort',GR:'net.httpBodyLimit',lV:'net.http2',ER:'net.httpsCertificatesPath',XC:'net.localNetworkSuffix',Az:'offline.enabled',hD:'offline.autoBackOnline',yK:'offline.downloadBatchSize'};
|
|
479
|
+
olympe.ta.af(function(a){E(a,olympe.xa.pa.Op,3141);E(a,olympe.xa.pa.GR,100);E(a,olympe.xa.pa.lV,!1);E(a,olympe.xa.pa.ER,null);E(a,olympe.xa.pa.XC,'frontend');E(a,olympe.xa.pa.Az,!1);E(a,olympe.xa.pa.hD,!1);E(a,olympe.xa.pa.yK,20);Va(a,olympe.xa.ba.Pb);C(a,olympe.xa.ba.Wb,[olympe.fb.ba.Pb],b=>b.Yg('net'));A(a,olympe.xa.ba.PD,olympe.xa.PM,olympe.xa.ba.Wb);A(a,olympe.xa.ba.Sz,olympe.xa.kl);C(a,olympe.xa.ba.zz,[new olympe.ta.Db(olympe.xa.pa.Az),new olympe.ta.Db(olympe.xa.pa.hD)],(b,c)=>new Map([['offlineEnabled',
|
|
480
480
|
b],['offlineAutoBackOnline',!b||c]]))},'olympe.net');olympe.xa.di={};function kd(a,b,c){const d=olympe.xa.Tc.qk.tG,e=olympe.xa.Tc.qk.tU,f=new AbortController;a.C.set(b,()=>f.abort());const g=c.le(),k=c.method;let l;return fetch(g,{method:k,headers:c.C(),body:null!=(l=c.body)?l:void 0,signal:f.signal}).then(m=>m.ok?Fd(m,c.D).catch(n=>new olympe.xa.$v(`Error parsing response from ${g} with method ${k}: ${n.message}`,e,'Error handling response')):new olympe.xa.$v(`Error fetching data from ${g} with method ${k}`,m.status,m.statusText,m.headers)).catch(m=>'AbortError'===
|
|
481
481
|
m.name?new olympe.xa.$v('',d,'Request canceled'):new olympe.xa.$v(`Error connecting to ${g} with method ${k}`,e,'Failed to fetch:'+m.message))}
|
|
482
482
|
function Fd(a,b){return q(function*(){switch(b){case olympe.xa.Tc.ResponseType.QB:var c=yield a.blob();break;case olympe.xa.Tc.ResponseType.$t:c=yield a.arrayBuffer();c=new Uint8Array(c,0,c.byteLength);break;case olympe.xa.Tc.ResponseType.JSON:c=yield a.json();break;case olympe.xa.Tc.ResponseType.il:c=a.body;break;default:c=yield a.text()}return new olympe.xa.$v(c,a.status,a.statusText,a.headers)})}olympe.xa.di.KR=class{constructor(a){this.V=a;this.C=new Map}};function Gd(a,b){const c=`#${a.id}`,d=a.na(b);d.binaryType='arraybuffer';d.addEventListener('open',()=>{a.V.info(`Websocket ${c} OPENED`);a.W?(a.V.debug('Notifying upper layer for WebSocket',c),a.W()):a.V.warn('Nothing to notify for WebSocket',c);a.V.debug(c,`Send all buffered messages (n=${a.buffer.length}).`);a.buffer.forEach(d.send.bind(d));a.buffer.length=0});d.addEventListener('message',e=>{e='string'===typeof e.data?String(e.data):fb(e.data);(a.V.O()||a.V.C()&&!e.startsWith('pong'))&&a.V.debug(c,
|
|
@@ -489,17 +489,17 @@ if(a instanceof olympe.dm.File){c=olympe.dc.eb();var e=c.Cc(a,olympe.dm.File.url
|
|
|
489
489
|
window.navigator.msSaveOrOpenBlob(e,b||'downloaded_file'):(a=URL.createObjectURL(e),d(a,b),URL.revokeObjectURL(a))}else throw Error('Try to download a file which is neither a string, Blob or a File instance');}ca(a,b){return new olympe.G.H.xa.LQ(a,b)}};function Hd(a,b){b=new URL(b,location.origin);b.searchParams.set(`logging.${a.V.bb()}`,a.V.R().toString());b.searchParams.set('cacheEnabled',a.R?'true':'false');return b.toString()}function Id(a){return q(function*(){if(a.$)return a.D;yield new Promise(b=>{a.T.push(()=>b())});return a.D})}
|
|
490
490
|
olympe.G.H.xa.kl=class extends olympe.xa.kl{constructor(a,b){super();this.V=a;this.R=b.get('offlineEnabled');this.D=null;this.$=!1;this.T=[]}O(){return!0===this.R}register(a){const b=this;return q(function*(){if('serviceWorker'in navigator)try{for(b.V.log('[SWM] Registering service worker'),b.D=yield navigator.serviceWorker.register(Hd(b,a),{scope:'.'}),navigator.serviceWorker.addEventListener('message',c=>{c=c.data;const [d,e]=c.split(/:(.*)/);switch(d){case olympe.G.H.xa.kl.C.qQ.toString():b.V.log(`[SWM] Successfully added URL in cache: ${e}`);
|
|
491
491
|
break;case olympe.G.H.xa.kl.C.pQ.toString():b.V.log(`[SWM] Failed to add URL in cache: ${e}`);break;case olympe.G.H.xa.kl.C.BU.toString():b.V.log(`[SWM] Successfully set cache strategy: ${e}`);break;case olympe.G.H.xa.kl.C.AU.toString():b.V.log(`[SWM] Failed to set cache strategy: ${e}`);break;default:b.V.log('[SWM] Unknown incoming message',c)}}),yield navigator.serviceWorker.ready,b.V.info('[SWM] Service worker: registration is ready'),b.$=!0;0<b.T.length;)b.T.shift().call(b)}catch(c){b.V.error(`[SWM] Registration failed with ${c}`)}})}C(a){this.R?
|
|
492
|
-
!a.startsWith('http')&&a.includes('://')||a.startsWith('data:')||(this.V.debug(`Request to add "${a}" in cache`),this.W(olympe.G.H.xa.kl.C.oQ,a)):this.V.debug(`Offline is not enabled, ignoring request to add "${a}" in cache`)}W(a,b){this.V.debug('[SWM] Attempt to post a message');Id(this).then(()=>{const c=`${a.toString()}:${b}`;this.V.log('[SWM] Posting message',c);this.D.active.postMessage(c)})}};olympe.G.H.xa.kl.C={oQ:0,qQ:1,pQ:2,Z1:3,BU:3,AU:4};olympe.G.H.xa.kl.D={u_:0,f1:1};olympe.G.H.xa.CR=class extends olympe.xa.di.WebSocket{na(a){return new WebSocket(a)}};olympe.G.H.xa.LQ=class extends olympe.xa.AMQPClient{$(a,b='olympe-browser'){const c=a.ZZ,d=a.cY,e=`${a.Ts?'wss':'ws'}://${a.host}:${a.port}${a.path}`;var f=a.cm;a=a.Bh;f=`${encodeURIComponent(c||'/')}|${encodeURIComponent(f)}|${encodeURIComponent(a)}`;this.V.debug(`Open AMQP Websocket to: ${e.toString()}, with encoded user: ${f}`);return new amqp.AMQPWebSocketClient(e,c,f,'_',b,void 0,d)}ca(a,b){a.socket.addEventListener('close',c=>{b(!c.wasClean)})}};olympe.G.H.xa.pa={l3:'native.html.net.useWorkers'};olympe.G.H.xa.ba={vL:'native.html.net.serviceWorkerLogger'};olympe.ta.af(function(a){Ra(a,olympe.xa.ba.Pb,olympe.G.H.xa.GT,olympe.xa.ba.Wb,olympe.host.ba.Pb,olympe.xa.ba.Sz);C(a,olympe.G.H.xa.ba.vL,[olympe.
|
|
493
|
-
olympe.async.jH=class{constructor(a,b=void 0===a){this.D=[];this.ca=[];this.O=a||new olympe.j.ee('Async executor context');this.Ba=b;this.C=null;this.W=new Map;this.W.set('Executor',this);this.R=this.T=!1;this.V=null;this.timer=this.timeout=0;this.ea=olympe.la.cf()}HB(a){0<=a&&(this.timeout=a);return this}
|
|
492
|
+
!a.startsWith('http')&&a.includes('://')||a.startsWith('data:')||(this.V.debug(`Request to add "${a}" in cache`),this.W(olympe.G.H.xa.kl.C.oQ,a)):this.V.debug(`Offline is not enabled, ignoring request to add "${a}" in cache`)}W(a,b){this.V.debug('[SWM] Attempt to post a message');Id(this).then(()=>{const c=`${a.toString()}:${b}`;this.V.log('[SWM] Posting message',c);this.D.active.postMessage(c)})}};olympe.G.H.xa.kl.C={oQ:0,qQ:1,pQ:2,Z1:3,BU:3,AU:4};olympe.G.H.xa.kl.D={u_:0,f1:1};olympe.G.H.xa.CR=class extends olympe.xa.di.WebSocket{na(a){return new WebSocket(a)}};olympe.G.H.xa.LQ=class extends olympe.xa.AMQPClient{$(a,b='olympe-browser'){const c=a.ZZ,d=a.cY,e=`${a.Ts?'wss':'ws'}://${a.host}:${a.port}${a.path}`;var f=a.cm;a=a.Bh;f=`${encodeURIComponent(c||'/')}|${encodeURIComponent(f)}|${encodeURIComponent(a)}`;this.V.debug(`Open AMQP Websocket to: ${e.toString()}, with encoded user: ${f}`);return new amqp.AMQPWebSocketClient(e,c,f,'_',b,void 0,d)}ca(a,b){a.socket.addEventListener('close',c=>{b(!c.wasClean)})}};olympe.G.H.xa.pa={l3:'native.html.net.useWorkers'};olympe.G.H.xa.ba={vL:'native.html.net.serviceWorkerLogger'};olympe.ta.af(function(a){Ra(a,olympe.xa.ba.Pb,olympe.G.H.xa.GT,olympe.xa.ba.Wb,olympe.host.ba.Pb,olympe.xa.ba.Sz);C(a,olympe.G.H.xa.ba.vL,[olympe.fb.ba.Pb],b=>b.Yg('sw'));A(a,olympe.xa.ba.Sz,olympe.G.H.xa.kl,olympe.G.H.xa.ba.vL,olympe.xa.ba.zz)},'olympe.native.html.net');olympe.async={};function Jd(a,b){a.R||a.ca.push(a.O.re(b))}
|
|
493
|
+
olympe.async.jH=class{constructor(a,b=void 0===a){this.D=[];this.ca=[];this.O=a||new olympe.j.ee('Async executor context');this.Ba=b;this.C=null;this.W=new Map;this.W.set('Executor',this);this.R=this.T=!1;this.V=null;this.timer=this.timeout=0;this.ea=olympe.la.cf()}HB(a){0<=a&&(this.timeout=a);return this}wb(){return this.V}add(a){this.R||this.D.push(this.O.re(a));return this}start(){this.T||(this.V&&this.V.log('Executor started.'),this.T=!0,this.O.onDestroy(()=>{this.C='Context destroyed.';this.complete(!1)},
|
|
494
494
|
this.ea),0<this.timeout&&(this.timer=setTimeout(()=>{this.C='Timeout expired.';this.timer=0;this.complete(!1)},this.timeout)))}clear(){this.D=[];this.ca=[];this.W.clear();this.Ba&&this.O.destroy()}complete(a){this.O.Ro(this.ea);if(!this.R){this.R=!0;this.timer&&(clearTimeout(this.timer),this.timer=0);this.V&&this.V.log(a?'Executor completed successfully':`Executor completed with error: ${this.C}`);for(const b of this.ca)b(a,a?null:this.C,this.W);this.clear()}}getContext(){return this.O}};
|
|
495
495
|
olympe.async.ML=class extends olympe.async.jH{static create(){return new olympe.async.ML(new olympe.j.ee('SequencedExecutor'),!0)}start(){this.T||(super.start(),this.continue())}continue(){if(0<this.D.length){const a=this.D.shift();this.V&&this.V.log(`Executing next task. ${this.D.length} tasks left in the pipeline.`);this.getContext().run(()=>{a(()=>{Promise.resolve().then(()=>{this.continue()})},b=>{b&&(this.C=b);this.complete(!1)},this.W)})}else this.complete(!0)}};
|
|
496
496
|
olympe.async.Jz=class extends olympe.async.jH{constructor(a,b){super(a,b);this.$=0;this.na=!0}static create(){return new olympe.async.Jz(new olympe.j.ee('ParallelExecutor'),!0)}run(a){this.V&&this.V.log('Starting a task');this.getContext().run(()=>{a(()=>{this.done()},b=>{this.na=!1;b&&(this.C=this.C?`${this.C}. ${b}`:b);this.done()},this.W)})}add(a){super.add(a);this.T&&!this.R&&(this.$++,this.run(a));return this}done(){this.$--;0>=this.$&&this.complete(this.na)}start(){if(!this.T)if(super.start(),
|
|
497
|
-
0<this.D.length){this.$=this.D.length;for(const a of this.D)this.run(a)}else this.complete(!0)}};olympe.Dc={};olympe.Dc.bT=class{C(){return q(function*(){})}Ia(){}na(){}D(){}Ba(){}forEach(){}has(){}get(){}set(){}remove(){}R(){}W(){}T(){}clear(){}ca(){}};olympe.Dc.cT=class{D(){}};olympe.Dc.Storage=class{write(){}close(){}};olympe.Dc.uz=class{get(){return null}set(){return this}delete(){}};olympe.Dc.ba={qz:'localStorage.KeyValueDatabaseManager',xw:'localStorage.Storage',F_:'localStorage.DatacloudStorage',sz:'localStorage.LocalStorage',Wb:'localStorage.Logger',Hr:'localStorage.prefix'};olympe.ta.af(function(a){Va(a,olympe.Dc.ba.qz);C(a,olympe.Dc.ba.Hr,[],()=>'olympe');C(a,olympe.Dc.ba.Wb,[olympe.
|
|
497
|
+
0<this.D.length){this.$=this.D.length;for(const a of this.D)this.run(a)}else this.complete(!0)}};olympe.Dc={};olympe.Dc.bT=class{C(){return q(function*(){})}Ia(){}na(){}D(){}Ba(){}forEach(){}has(){}get(){}set(){}remove(){}R(){}W(){}T(){}clear(){}ca(){}};olympe.Dc.cT=class{D(){}};olympe.Dc.Storage=class{write(){}close(){}};olympe.Dc.uz=class{get(){return null}set(){return this}delete(){}};olympe.Dc.ba={qz:'localStorage.KeyValueDatabaseManager',xw:'localStorage.Storage',F_:'localStorage.DatacloudStorage',sz:'localStorage.LocalStorage',Wb:'localStorage.Logger',Hr:'localStorage.prefix'};olympe.ta.af(function(a){Va(a,olympe.Dc.ba.qz);C(a,olympe.Dc.ba.Hr,[],()=>'olympe');C(a,olympe.Dc.ba.Wb,[olympe.fb.ba.Pb],b=>b.Yg('localstorage'));A(a,olympe.Dc.ba.sz,olympe.Dc.uz)},'olympe.localstorage');olympe.Y={};olympe.Y.xf={cz:'urls.FileSvc',XF:'urls.BackupSvc',$K:'urls.RestoreBackupSvc',ir:'urls.GetContext',DH:'urls.GraphDef',pG:'urls.StaticGraphDef',TRANSACTION:'urls.Transaction',iM:'urls.UserTagFromToken',kV:'urls.UserNameFromTag',jV:'urls.UserRoles',lU:'urls.RoleMembers',Bz:'urls.OpenIDSvc'};
|
|
498
498
|
olympe.ta.af(a=>{E(a,olympe.Y.xf.cz,'rest/filesvc');E(a,olympe.Y.xf.XF,'rest/backupsvc');E(a,olympe.Y.xf.$K,'rest/backupsvc/restore');E(a,olympe.Y.xf.Bz,'rest/openid');E(a,olympe.Y.xf.ir,'rest/initialData');E(a,olympe.Y.xf.DH,'rest/querysvc/graphDef');E(a,olympe.Y.xf.pG,'rest/querysvc/graphDef/static');E(a,olympe.Y.xf.TRANSACTION,'rest/transaction');E(a,olympe.Y.xf.iM,'rest/token');E(a,olympe.Y.xf.kV,'rest/authorization/getUserTag');E(a,olympe.Y.xf.jV,'rest/authorization/getUserRoles');E(a,olympe.Y.xf.lU,
|
|
499
499
|
'rest/authorization/roleMembers')});function Kd(a,b){a.validate=b.ack.bind(b);a.R=b.Ku();return a}
|
|
500
|
-
olympe.Y.Mb=class{constructor(a,b,c,d,e,f){this.Cj=c;this.O=a;this.source=b;this.D=d;this.messageType=e;this.C=null!=f?f:null;this.R=!1;this.validate=()=>q(function*(){})}static O(a,b,c){const d=olympe.Y.Mb.D.mD,e=Cd(a);let f;var g=olympe.Y.Mb,k=e[olympe.Y.Mb.D.DESTINATION],l=e[olympe.Y.Mb.D.Gr],m=e[olympe.Y.Mb.D.Rz],n=e[olympe.Y.Mb.D.Zp],p=e[olympe.Y.Mb.D.TYPE];b.T=c;return Kd(new g(k,l,m,n,p,b.W(null!=(f=e[d])?f:null)),a)}Ku(){return this.R}$f(){return this.O}zd(){return this.source}getType(){return this.messageType}ack(){return this.validate()}
|
|
501
|
-
olympe.Y.Mb.D.mD,d={[olympe.Y.Mb.D.DESTINATION]:this.O,[olympe.Y.Mb.D.Gr]:this.source,[olympe.Y.Mb.D.Rz]:this.Cj,[olympe.Y.Mb.D.Zp]:this.D,[olympe.Y.Mb.D.TYPE]:this.messageType};null!==this.C&&(a.$=b,d[c]=a.
|
|
502
|
-
olympe.Y.Mb.C={SEND:0,GET:1,SUBSCRIBE:2,PUBLISH:3,kM:4,il:5,Zp:6,we:7,pL:10,YL:11,Rp:12,fM:13,AD:14,yH:15};olympe.Y.ED=class extends olympe.Y.Mb{constructor(a,b,c,d,e,f,g){super(a,b,d,e,f,g);this.Bh=c}static O(a,b,c){const d=olympe.Y.Mb.D.mD,e=Cd(a);let f;var g=olympe.Y.ED,k=e[olympe.Y.Mb.D.DESTINATION],l=e[olympe.Y.Mb.D.Gr],m=e[olympe.Y.Mb.D.so],n=e[olympe.Y.Mb.D.Rz],p=e[olympe.Y.Mb.D.Zp],r=e[olympe.Y.Mb.D.TYPE];b.T=c;b=new g(k,l,m,n,p,r,b.W(null!=(f=e[d])?f:null));Kd(b,a);return b}zk(){return this.Bh}
|
|
500
|
+
olympe.Y.Mb=class{constructor(a,b,c,d,e,f){this.Cj=c;this.O=a;this.source=b;this.D=d;this.messageType=e;this.C=null!=f?f:null;this.R=!1;this.validate=()=>q(function*(){})}static O(a,b,c){const d=olympe.Y.Mb.D.mD,e=Cd(a);let f;var g=olympe.Y.Mb,k=e[olympe.Y.Mb.D.DESTINATION],l=e[olympe.Y.Mb.D.Gr],m=e[olympe.Y.Mb.D.Rz],n=e[olympe.Y.Mb.D.Zp],p=e[olympe.Y.Mb.D.TYPE];b.T=c;return Kd(new g(k,l,m,n,p,b.W(null!=(f=e[d])?f:null)),a)}Ku(){return this.R}$f(){return this.O}zd(){return this.source}getType(){return this.messageType}ack(){return this.validate()}gb(a,b){const c=
|
|
501
|
+
olympe.Y.Mb.D.mD,d={[olympe.Y.Mb.D.DESTINATION]:this.O,[olympe.Y.Mb.D.Gr]:this.source,[olympe.Y.Mb.D.Rz]:this.Cj,[olympe.Y.Mb.D.Zp]:this.D,[olympe.Y.Mb.D.TYPE]:this.messageType};null!==this.C&&(a.$=b,d[c]=a.gb(this.C));return d}toString(){return`Message(dest: ${this.O}, src: ${this.source}, seqId: ${this.Cj}, topic: ${this.D}, type: ${this.messageType}, payload: ${this.C})`}};olympe.Y.Mb.D={DESTINATION:'d',Gr:'s',Rz:'i',Zp:'tp',TYPE:'t',mD:'p',so:'tk'};
|
|
502
|
+
olympe.Y.Mb.C={SEND:0,GET:1,SUBSCRIBE:2,PUBLISH:3,kM:4,il:5,Zp:6,we:7,pL:10,YL:11,Rp:12,fM:13,AD:14,yH:15};olympe.Y.ED=class extends olympe.Y.Mb{constructor(a,b,c,d,e,f,g){super(a,b,d,e,f,g);this.Bh=c}static O(a,b,c){const d=olympe.Y.Mb.D.mD,e=Cd(a);let f;var g=olympe.Y.ED,k=e[olympe.Y.Mb.D.DESTINATION],l=e[olympe.Y.Mb.D.Gr],m=e[olympe.Y.Mb.D.so],n=e[olympe.Y.Mb.D.Rz],p=e[olympe.Y.Mb.D.Zp],r=e[olympe.Y.Mb.D.TYPE];b.T=c;b=new g(k,l,m,n,p,r,b.W(null!=(f=e[d])?f:null));Kd(b,a);return b}zk(){return this.Bh}gb(a,b){return Object.assign(super.gb(a,b),{[olympe.Y.Mb.D.so]:this.Bh})}toString(){return`SignedMessage{dest: ${this.O}, src: ${this.source}, seqId: ${this.Cj}, topic: ${this.D}, type: ${this.messageType}, token: ${this.Bh}, payload: ${this.C}}`}};const Ld=olympe.Y.Mb.C.SEND,Md=olympe.Y.Mb.C.GET,Nd=olympe.Y.Mb.C.SUBSCRIBE,Od=olympe.Y.Mb.C.Rp,Pd=olympe.Y.Mb.C.pL,Qd=olympe.Y.Mb.C.we,Rd=olympe.Y.Mb.C.kM,Sd=olympe.Y.Mb.C.Zp,Td=olympe.Y.Mb.C.YL;
|
|
503
503
|
olympe.Y.Wg=class{constructor(a,b,c){this.C=a;this.La=b;this.D=c;this.cm=null;Object.defineProperties(this,{La:{enumerable:!1},D:{enumerable:!1}})}Dv(){return null!==this.cm?Promise.resolve(this.cm):Ud(this.La,this.C).then(a=>this.cm=a)}Ku(){return this.C.Ku()}AP(){return this.C.getType()}source(){return this.C.zd()}body(){return this.C.C}ack(){const a=this;return q(function*(){if(a.C.getType()!==Ld)throw Error('Should only call `ack` on SEND requests');yield a.C.ack();yield a.La.zh(a.C,Pd)})}zh(a){const b=
|
|
504
504
|
this;return q(function*(){const c=b.C.getType();if(c===Md||c===Od)yield b.C.ack(),yield b.La.zh(b.C,Rd,a);else throw Error('Should only call `reply` on GET requests');})}IE(a){return this.C.getType()!==Nd?Promise.reject(Error('Should only call `notifyOn` on SUBSCRIBE requests')):new Promise((b,c)=>{const d=`sub_${olympe.la.cf()}`,e={seq:Vd(this.La,f=>{switch(f.getType()){case Td:Wd(this.D,d);b(d);break;case Qd:c(f.C.reason);break;default:c('Unsupported response type for a SUBSCRIBE request')}}),topic:a,
|
|
505
505
|
id:d,refresh:this.La.Qb};this.C.ack().then(()=>this.La.zh(this.C,Sd,e)).catch(c)})}ru(a){const b=this;return q(function*(){yield b.La.zh(b.C,Qd,{reason:a.message})})}};olympe.Y.Wg.prototype.fail=olympe.Y.Wg.prototype.ru;olympe.Y.Wg.prototype.notifyOn=olympe.Y.Wg.prototype.IE;olympe.Y.Wg.prototype.reply=olympe.Y.Wg.prototype.zh;olympe.Y.Wg.prototype.ack=olympe.Y.Wg.prototype.ack;olympe.Y.Wg.prototype.body=olympe.Y.Wg.prototype.body;olympe.Y.Wg.prototype.source=olympe.Y.Wg.prototype.source;
|
|
@@ -518,7 +518,7 @@ function te(a,b,c,d){var e;const f=null==(e=a.D)?void 0:e.get(b);if(null==f?0:Zd
|
|
|
518
518
|
olympe.Y.VB=class{constructor(a,b,c,d,e,f,g,k){this.V=a;this.zb=c;this.R=d;this.nc=f;this.Gb=g;this.$=new Map;this.C=`${'olympe-runtime'}-${olympe.la.cf()}`;this.Ia=k.get('requestTimeout');this.Qb=k.get('subscriptionsRefreshRate');this.pb=k.get('allowGuest');a=k.get('connection');d=this.R.Bh.wa().asObservable();c=c.Oo().asObservable();c=rxjs.combineLatest([a,d,c]).pipe(rxjs.operators.map(([l,m,n])=>n.valueOf()?Object.assign({},l,{cm:m.Ag(),Bh:m.Fi()}):null));this.O=b.ca(c,this.C);he(this);this.Pa=
|
|
519
519
|
'';k.get('topicPrefix').subscribe(l=>{this.V.debug(`Bus: new topic prefix: ${l}`);const m=this.Pa;this.Pa=l;if(m!==l&&be(this)){this.V.debug(`Resubscribe to queues with new topic prefix: ${l}`);Promise.all(Array.from(this.ca).map(([p,r])=>{const t=this;return q(function*(){yield le(t,p);yield me(t,p,r,t.Ka.has(p))})})).catch(p=>this.V.error(`Failed to subscribe topics after changing the topic prefix: ${p}`));let n;null==(n=this.D)||n.forEach(p=>{$d(p)})}});this.Rc=this.na=0;this.D=null;this.T=!1;
|
|
520
520
|
this.W=[];this.ca=new Map;this.Ka=new Set;this.Oa=new Map;this.ea=new olympe.la.Yt(this.Ia);this.Ba=this.tb=!1}connect(){return new Promise((a,b)=>{const c=d=>{b(d);this.W.forEach(e=>e(d));this.W=[]};be(this)?a():this.T||this.tb?this.W.push(d=>d?b(d):a()):ee(this.zb)?(this.tb=!0,olympe.j.us([this.R.zx()],d=>{this.tb=!1;d.valueOf()||this.pb?(this.pb||ue(this.R,()=>this.disconnect().then()),this.T=!0,this.W.push(e=>e?b(e):a()),this.O.connect().catch(e=>{this.T=!1;c(e)})):c(Error('Guest user is not allowed to connect to RabbitMQ, you can allow guest with the bus.allowGuest oConfig parameter!'))})):
|
|
521
|
-
c(Error('Cannot connect to the bus if working offline'))})}disconnect(){const a=this;return q(function*(){a.V.debug('Disconnecting from bus');a.R.W.delete('busLogoutCallback');yield a.O.disconnect()})}Nh(a,b=!1){const c=this;return q(function*(){if(!c.T||a.getType()!==olympe.Y.Mb.C.Rp){be(c)||(yield c.connect());var d=a.O.startsWith('olympe-runtime'),e=d?a.$f():c.Pa+a.$f();try{ne(c,a.Cj.toString(),'serialize');var f=a.
|
|
521
|
+
c(Error('Cannot connect to the bus if working offline'))})}disconnect(){const a=this;return q(function*(){a.V.debug('Disconnecting from bus');a.R.W.delete('busLogoutCallback');yield a.O.disconnect()})}Nh(a,b=!1){const c=this;return q(function*(){if(!c.T||a.getType()!==olympe.Y.Mb.C.Rp){be(c)||(yield c.connect());var d=a.O.startsWith('olympe-runtime'),e=d?a.$f():c.Pa+a.$f();try{ne(c,a.Cj.toString(),'serialize');var f=a.gb(c.nc,c.ld.bind(c,a.D,a.Cj));c.V.C()&&c.V.debug(`BUS > #${e}:`,JSON.stringify(f))}catch(k){throw Error(`An error occurred while serializing the message (seqId=${a.Cj}): ${k}`);
|
|
522
522
|
}var g=de.has(a.getType());yield c.O.Nh(a.Cj,e,f,{mandatory:g,jQ:!(d||b)});ne(c,a.Cj.toString(),'publish',(new Map).set('destination',a.$f()).set('messageType',a.getType().toString()))}})}ld(a,b,c){const d=this.Rc++;(()=>{const e=this;return q(function*(){let f;try{f=yield qe(e,a,b)}catch(p){e.V.error(`Error to get the destSessionId for the stream ${d}: ${p}`);return}const g=p=>e.Nh(new olympe.Y.Mb(f,e.C,b,a,olympe.Y.Mb.C.il,p)),k=olympe.Y.ml.cr,l=olympe.Y.ml.lt,m=olympe.Y.ml.we;let n=0;try{for(const p=
|
|
523
523
|
ia(c);;){const r=yield p.next();if(r.done)break;const t=r.value;yield g({id:d,i:n++,e:k,c:t})}yield g({id:d,s:n,e:l})}catch(p){yield g({id:d,e:m,reason:`Error to complete the stream: ${p}`})}})})();return d}zh(a,b,c){return this.send(a.Cj,a.zd(),a.zd(),b,c)}send(a,b,c,d,e){return this.Nh(new olympe.Y.Mb(c,this.C,a,b,d,e))}hc(a,b){const c=olympe.Y.Mb.D.Gr;a=olympe.Y.Mb.D.Rz;var d=olympe.Y.Mb.D.so;const e=b.W,f=Cd(b);if(f[c]===this.C&&e===this.C)this.V.debug('Received and ignore a message sent by the same runtime.'),
|
|
524
524
|
b.ack().catch(l=>this.V.error(`Failed to ack message: ${l}`));else{this.V.C()&&this.V.debug(`BUS < #${b.T}:`,JSON.stringify(f));ne(this,f[a],'consumed');a=void 0===f[d]?olympe.Y.Mb.O:olympe.Y.ED.O;d=null;var g=!1;try{d=a.call(null,b,this.nc,l=>{g=!0;return oe(this,f[c],l).stream}),de.has(d.getType())||b.ack().catch(l=>this.V.error(`Failed to ack message: ${l}`))}catch(l){this.V.error(`An error occurred while trying to deserialize the message: ${JSON.stringify(f)} with error ${l}`);Dd(b).catch(m=>
|
|
@@ -553,19 +553,19 @@ a.V.error(k);setTimeout(()=>a.connect().catch(l=>a.V.error(l)),g)}else a.V.info(
|
|
|
553
553
|
olympe.Y.lf=class{constructor(a,b,c,d,e,f){this.V=a;this.D=b;this.storage=e;this.state=olympe.j.Za(Number).update(olympe.Y.lf.C.INIT);this.C=f.get('offlineEnabled');this.R=f.get('offlineAutoBackOnline');this.O=f.get('storagePrefix');Xe(this,f)}Oo(){const a=olympe.Y.lf.C.vr,b=olympe.Y.lf.C.ym,c=olympe.Y.lf.C.Rf;let d=olympe.j.ia.ob;return olympe.j.Xa([this.state],e=>{if(e===a)d=olympe.j.ia.C;else if(e===b||e===c)d=olympe.j.ia.ob;return d},olympe.j.ia)}getState(){return this.state.wa()}connect(){const a=
|
|
554
554
|
this;return q(function*(){const b=olympe.Y.lf.C.vr,c=olympe.Y.lf.C.nD;olympe.j.Qa(a.state)!==b&&(a.state.update(c),a.storage.delete(a.O+'olympe_manual_offline'),yield a.D.connect(),yield Ze(),a.state.update(b))})}disconnect(){const a=this;return q(function*(){const b=olympe.Y.lf.C.ym,c=olympe.Y.lf.C.nD;if(!a.C)throw Error('Try to go offline manually while the process does not support it. Please add `offline.enabled=true` in the config');a.storage.set(a.O+'olympe_manual_offline','true');olympe.j.Qa(a.state)!==
|
|
555
555
|
b&&(a.state.update(c),yield olympe.Y.bs().disconnect(),yield a.D.disconnect())})}};olympe.Y.lf.C={INIT:0,nD:1,vr:2,ym:3,Rf:4,DU:5};olympe.Y.lf.D='olympe_manual_offline';function $e(a,b){return{t:a,v:b}}
|
|
556
|
-
olympe.Y.Nf=class{constructor(){this.T=this.$=null}
|
|
556
|
+
olympe.Y.Nf=class{constructor(){this.T=this.$=null}gb(a){a=this.D(a);this.$=null;return a}W(a){a=this.C(a);this.T=null;return a}D(a){switch(!0){case null===a:case void 0===a:return null;case 'string'===typeof a:case 'boolean'===typeof a:case 'number'===typeof a:return a;case a instanceof olympe.j.bc:return $e(olympe.Y.Nf.C.gC,a.valueOf().toISOString());case a instanceof Date:return $e(olympe.Y.Nf.C.gC,a.toISOString());case a instanceof olympe.j.Color:return $e(olympe.Y.Nf.C.COLOR,a.toJSON());case a instanceof
|
|
557
557
|
Map:return a=Object.fromEntries(Array.from(a).map(([c,d])=>[c,this.D(d)])),$e(olympe.Y.Nf.C.aK,a);case a instanceof Set:return a=Array.from(a).map(this.D.bind(this)),$e(olympe.Y.Nf.C.Fr,a);case Array.isArray(a):return a.map(this.D.bind(this));case a instanceof ArrayBuffer:return a=olympe.la.Jj().C(new Uint8Array(a)),$e(olympe.Y.Nf.C.ARRAY_BUFFER,a);case a instanceof Uint8Array:return a=olympe.la.Jj().C(a),$e(olympe.Y.Nf.C.$t,a);case Symbol.asyncIterator in a:if(!this.$)throw Error('No stream handler has been set, so cannot serialize the asyncIterable.');
|
|
558
558
|
let b;return $e(olympe.Y.Nf.C.il,null==(b=this.$)?void 0:b.call(this,a));case 'object'===typeof a:return a=Object.entries(a).reduce((c,[d,e])=>{c[d]=this.D(e);return c},{}),$e(olympe.Y.Nf.C.wK,a);default:throw Error(`Impossible to serialize the following value: ${a}`);}}C(a){switch(!0){case null===a:case void 0===a:return null;case 'string'===typeof a:case 'boolean'===typeof a:case 'number'===typeof a:return a}if(Array.isArray(a))return a.map(d=>this.C(d));if('object'!==typeof a)throw new olympe.error.ZG(`Impossible to deserialize the following value: ${a}`);
|
|
559
559
|
const {t:b,v:c}=a;switch(b){case olympe.Y.Nf.C.gC:return new Date(c);case olympe.Y.Nf.C.COLOR:return olympe.j.Color.ke(c);case olympe.Y.Nf.C.aK:return new Map(Object.entries(c).map(([e,f])=>[e,this.C(f)]));case olympe.Y.Nf.C.Fr:return new Set(c.map(e=>this.C(e)));case olympe.Y.Nf.C.ARRAY_BUFFER:return olympe.la.Jj().D(c).buffer;case olympe.Y.Nf.C.$t:return olympe.la.Jj().D(c);case olympe.Y.Nf.C.il:if(!this.T)throw Error('No stream handler has been set, so cannot deserialize the stream.');let d;return null==
|
|
560
560
|
(d=this.T)?void 0:d.call(this,c);case olympe.Y.Nf.C.wK:return Object.entries(c).reduce((e,[f,g])=>{e[f]=this.C(g);return e},{});default:throw new olympe.error.ZG(`Impossible to deserialize the following value: ${c}`);}}};olympe.Y.Nf.C={gC:1,COLOR:2,aK:3,Fr:4,ARRAY_BUFFER:5,$t:6,il:7,wK:8};const af=olympe.Y.Mb.C.SEND,bf=olympe.Y.Mb.C.GET,cf=olympe.Y.Mb.C.PUBLISH,df=olympe.Y.Mb.C.SUBSCRIBE,ef=olympe.Y.Mb.C.Rp,ff=olympe.Y.Mb.C.fM,gf=olympe.Y.Mb.C.pL,hf=olympe.Y.Mb.C.we,jf=olympe.Y.Mb.C.kM,kf=olympe.Y.Mb.C.Zp;function Wd(a,b){a.C||(a.C=jb(new olympe.la.MD(a.La.Qb+3E4),c=>{let d;null==(d=a.O)||d.call(a,c)}));a.C.add(b)}
|
|
561
561
|
function lf(a){let b,c;const d=null!=(c=null==(b=a.C)?void 0:b.code)?c:olympe.error.eg.cA;let e,f;a=null!=(f=null==(e=a.C)?void 0:e.reason)?f:'Unknown Error';return d===olympe.error.eg.TIMEOUT?new olympe.error.aA(a):new olympe.error.Sh(a,d)}function mf(a,b){const c=olympe.Y.Mb.C.Zp,d=olympe.Y.Mb.C.YL;return b.getType()!==c?Promise.reject('Should only call `topicAck` on TOPIC responses'):a.send(b.C.seq,b.zd(),b.zd(),d)}
|
|
562
|
-
olympe.Y.Od=class{constructor(a,b){this.La=olympe.Y.bs();this.D=a;this.O=this.C=null;this.R=new olympe.j.ee(`Service ${a}`,'function'===typeof b.se?b.se():b);this.V=olympe.
|
|
563
|
-
b){return q(function*(){yield ce(olympe.Y.bs(),a,a,cf,b,!1)})}static AO(a){const b=olympe.Y.bs(),c=new olympe.Y.Mz(a,b);qe(b,a).then(d=>nf(c,d)).catch(d=>olympe.
|
|
564
|
-
a,a,bf,b,!0,c.timeout).then(d=>{switch(d.getType()){case jf:d=d.C;if(null!==d)return d;throw Error('No payload after request to service: '+a);case hf:throw lf(d);default:throw Error('Unsupported response type for a GET request');}})}static observe(a,b,c,d={}){const e='function'===typeof b.se?b.se():b,f=olympe.Y.bs(),g=new olympe.Y.Mz(a,f);return{observable:(new rxjs.Observable(k=>{let l=null,m=null,n=null;const p=()=>{k.complete();m&&n&&(te(f,a,n,m),m=n=null);l&&(le(f,l).catch(r=>olympe.
|
|
565
|
-
a).error('Failed to unsubscribe from a topic '+r)),l=null)};e.Ve(p);ce(f,a,a,df,c,!0,d.timeout).then(r=>{switch(r.getType()){case kf:nf(g,r.zd());const t=r.C;l=t.topic;me(f,l,u=>{u.getType()===cf?k.next(u.C):(k.error('Unsupported notification message. It should be a publish'),p())}).then(()=>{m=t.id;n=r.zd();se(f,a,n,m,t.refresh,u=>k.error(u));mf(f,r).catch(u=>{k.error(`Was unable to ack the subscription: ${u}`);p()})}).catch(u=>
|
|
566
|
-
p()});break;case hf:k.error(lf(r));break;default:k.error('Unsupported response type for a SUBSCRIBE request')}}).catch(r=>k.error(r));return p})).pipe(vb(olympe.error.It,(k,l)=>{olympe.
|
|
567
|
-
'Failed to connect to the bus: '+c;this.V.error(c);a.error(Error(c))});return b})}Ou(a){const b=this;return q(function*(){yield ce(b.La,b.D,b.D,cf,a,!1,b.La.Ia)})}T(a,b){var c=new olympe.Y.Wg(b,this.La,this);switch(b.getType()){case ef:var d=c.body().filter(f=>{let g;return!(null==(g=this.C)?0:ib(g,f))});c.zh(d).catch(f=>this.V.error('Not able to validate subscription keep alive',f));break;case ff:c=c.body();null==(d=this.C)||d.delete(c);let e;
|
|
568
|
-
olympe.Y.Od.prototype.multicast=olympe.Y.Od.prototype.Ou;olympe.Y.Od.prototype.listen=olympe.Y.Od.prototype.Mu;olympe.Y.Od.observe=olympe.Y.Od.observe;olympe.Y.Od.get=olympe.Y.Od.get;olympe.Y.Od.send=olympe.Y.Od.send;olympe.Y.Od.getPublisher=olympe.Y.Od.AO;olympe.Y.Od.publish=olympe.Y.Od.Nh;olympe.Y.Od.prototype.stop=olympe.Y.Od.prototype.stop;olympe.Y.Od.prototype.setUnsubscriptionHandler=olympe.Y.Od.prototype.dQ;olympe.Y.FK=class{constructor(a){this.C=0;this.buffer=[];this.size=null;this.stream=new olympe.la.stream.Yp;this.D=null!=a?a:()=>{}}write(a,b){const c=this;return q(function*(){if(b<c.C||null!==c.size&&b>=c.size)throw Error(`Received stream chunk with unexpected index = ${b}. That index has already been processed. Next expected once is ${c.C}`);for(c.buffer[b-c.C]=a;void 0!==c.buffer[0];){c.C++;const d=c.buffer.shift();yield c.stream.write(d)}c.C===c.size&&(c.D(),c.stream.complete())})}complete(a){if(null!==
|
|
562
|
+
olympe.Y.Od=class{constructor(a,b){this.La=olympe.Y.bs();this.D=a;this.O=this.C=null;this.R=new olympe.j.ee(`Service ${a}`,'function'===typeof b.se?b.se():b);this.V=olympe.fb.wb(`Service ${this.D}`)}dQ(a){this.O=a;return this}stop(){this.R.destroy()}clear(){le(this.La,this.D).catch(b=>this.V.error('Failed to unsubscribe from '+this.D+', error: '+b));if(this.O){let b;null==(b=this.C)||b.forEach(c=>{let d;return null==(d=this.O)?void 0:d.call(this,c)})}let a;null==(a=this.C)||a.clear()}static Nh(a,
|
|
563
|
+
b){return q(function*(){yield ce(olympe.Y.bs(),a,a,cf,b,!1)})}static AO(a){const b=olympe.Y.bs(),c=new olympe.Y.Mz(a,b);qe(b,a).then(d=>nf(c,d)).catch(d=>olympe.fb.wb('Publisher for service '+a).error('Failed to get session id for publisher',d));return c}static send(a,b,c={}){return ce(olympe.Y.bs(),a,a,af,b,!0,c.timeout).then(d=>{switch(d.getType()){case gf:break;case hf:throw lf(d);default:throw Error('Unsupported response type for a SEND request');}})}static get(a,b,c={}){return ce(olympe.Y.bs(),
|
|
564
|
+
a,a,bf,b,!0,c.timeout).then(d=>{switch(d.getType()){case jf:d=d.C;if(null!==d)return d;throw Error('No payload after request to service: '+a);case hf:throw lf(d);default:throw Error('Unsupported response type for a GET request');}})}static observe(a,b,c,d={}){const e='function'===typeof b.se?b.se():b,f=olympe.Y.bs(),g=new olympe.Y.Mz(a,f);return{observable:(new rxjs.Observable(k=>{let l=null,m=null,n=null;const p=()=>{k.complete();m&&n&&(te(f,a,n,m),m=n=null);l&&(le(f,l).catch(r=>olympe.fb.wb('Service '+
|
|
565
|
+
a).error('Failed to unsubscribe from a topic '+r)),l=null)};e.Ve(p);ce(f,a,a,df,c,!0,d.timeout).then(r=>{switch(r.getType()){case kf:nf(g,r.zd());const t=r.C;l=t.topic;r.ack().catch(()=>olympe.fb.wb('Service '+a).error('Failed to ack the msg'));me(f,l,u=>{u.getType()===cf?k.next(u.C):(k.error('Unsupported notification message. It should be a publish'),p())}).then(()=>{m=t.id;n=r.zd();se(f,a,n,m,t.refresh,u=>k.error(u));mf(f,r).catch(u=>{k.error(`Was unable to ack the subscription: ${u}`);p()})}).catch(u=>
|
|
566
|
+
{k.error(`Was not able to subscribe to notification topic ${l}: ${u}`);p()});break;case hf:k.error(lf(r));break;default:k.error('Unsupported response type for a SUBSCRIBE request')}}).catch(r=>k.error(r));return p})).pipe(vb(olympe.error.It,(k,l)=>{olympe.fb.wb(`Service ${a}`).debug(`Subscribed to topic ${k.ja()} now that we are back online, after waiting for ${l}ms`);let m;null==(m=d.onRetry)||m.call(d)})),publisher:g}}Mu(){return new rxjs.Observable(a=>{const b=()=>{a.complete();this.clear()};this.R.onDestroy(b);
|
|
567
|
+
me(this.La,this.D,this.T.bind(this,a),!1).catch(c=>{c='Failed to connect to the bus: '+c;this.V.error(c);a.error(Error(c))});return b})}Ou(a){const b=this;return q(function*(){yield ce(b.La,b.D,b.D,cf,a,!1,b.La.Ia)})}T(a,b){var c=new olympe.Y.Wg(b,this.La,this);switch(b.getType()){case ef:var d=c.body().filter(f=>{let g;return!(null==(g=this.C)?0:ib(g,f))});c.zh(d).catch(f=>this.V.error('Not able to validate subscription keep alive',f));break;case ff:c=c.body();null==(d=this.C)||d.delete(c);let e;
|
|
568
|
+
null==(e=this.O)||e.call(this,c);break;default:a.next(c)}}};olympe.Y.Od.prototype.multicast=olympe.Y.Od.prototype.Ou;olympe.Y.Od.prototype.listen=olympe.Y.Od.prototype.Mu;olympe.Y.Od.observe=olympe.Y.Od.observe;olympe.Y.Od.get=olympe.Y.Od.get;olympe.Y.Od.send=olympe.Y.Od.send;olympe.Y.Od.getPublisher=olympe.Y.Od.AO;olympe.Y.Od.publish=olympe.Y.Od.Nh;olympe.Y.Od.prototype.stop=olympe.Y.Od.prototype.stop;olympe.Y.Od.prototype.setUnsubscriptionHandler=olympe.Y.Od.prototype.dQ;olympe.Y.FK=class{constructor(a){this.C=0;this.buffer=[];this.size=null;this.stream=new olympe.la.stream.Yp;this.D=null!=a?a:()=>{}}write(a,b){const c=this;return q(function*(){if(b<c.C||null!==c.size&&b>=c.size)throw Error(`Received stream chunk with unexpected index = ${b}. That index has already been processed. Next expected once is ${c.C}`);for(c.buffer[b-c.C]=a;void 0!==c.buffer[0];){c.C++;const d=c.buffer.shift();yield c.stream.write(d)}c.C===c.size&&(c.D(),c.stream.complete())})}complete(a){if(null!==
|
|
569
569
|
this.size)throw Error('The stream has already been completed');if(a<this.C+this.buffer.length)throw Error(`The stream has already reached element n\u00b0${this.C+this.buffer.length}, specified index must be greater or equal to it.`);this.size=a;this.C===this.size&&(this.D(),this.stream.complete())}throw(a){this.D();this.stream.throw(a)}};function nf(a,b){a.C=b;a.D.forEach(c=>c());a.D=[];return a}olympe.Y.Mz=class{constructor(a,b){this.La=b;this.D=[];this.O=a;this.C=null}Nh(a){const b=this;return q(function*(){b.C||(yield new Promise(c=>{b.D.push(()=>c())}));yield ce(b.La,b.C,b.O,olympe.Y.Mb.C.PUBLISH,a,!0)})}};olympe.Y.Mz.prototype.publish=olympe.Y.Mz.prototype.Nh;olympe.Y.Dj={cr:1,zp:2,we:3,tr:4,x_:5,iz:6,Xf:7};olympe.Y.iw={iz:1,fV:2,oR:3,Rp:5,hU:1,hV:2};olympe.Y.ml={cr:0,lt:1,we:2};olympe.Y.Nc.C={INIT:'initialize',CONNECTING:'connecting',Rf:'disconnected',UG:'disconnecting',Ok:'connected',yr:'reconnecting',hA:'waking',QF:'awake',we:'error'};olympe.Y.Nc.O={zK:1,uR:-1,TR:-2,ZU:-3};olympe.Y.Nc.D={yw:0,dI:23};
|
|
570
570
|
olympe.Y.Nc.Xf={0:'OK',1:'SRP Authentication First Step Failed',2:'SRP Authentication Last Step Failed',3:'SRP Authentication Bad Credentials',4:'AutoLogin Authentication Failed',5:'AutoLogin Authentication Token Invalid',6:'Logout Failed',7:'SAML Request Generation Failed',8:'SAML Authentication Save Failed',9:'Invalid SAML Response',10:'SAML User Not Found',11:'Transaction Failed',12:'GetContext Failed',13:'Notification Failed',15:'FileService Clean Failed',17:'Try to subscribe multiple times',
|
|
571
571
|
18:'Try to unsubscribe multiple times',21:'GraphDef Query Failed',22:'Client Request Invalid',23:'Internal Server Error',24:'File Retrieval Error',25:'File Does Not Exists',26:'Restore Failed',27:'Permission Error',14:'Handshake Failed',28:'Client Version Too Old',29:'Client Version Invalid Format',34:'Server overloaded, retry later',35:'Add token error',36:'Keep token alive error',37:'Unknown client message',39:'Fetch data while concurrency transaction'};olympe.Y.ba={hm:'com.ConnectivityManager',Tt:'com.ServerManager',hG:'com.BusManager',CC:'com.HttpManager',gl:'com.Serializer',Wb:'com.Logger',Gr:'com.Source',gM:'com.Urls',C1:'com.peerFileSvcUrl'};
|
|
@@ -573,7 +573,7 @@ olympe.Y.pa={Uy:'defaultHost',uU:'server.host',wU:'server.port',xU:'server.ssl',
|
|
|
573
573
|
jG:'bus.queuePrefetch',SB:'bus.allowGuest',ZL:'bus.topicPrefix'};
|
|
574
574
|
olympe.ta.af(function(a){const b=olympe.host.Br.Kt;E(a,olympe.Y.pa.Uy,a.getParameter(olympe.host.pa.KH));E(a,olympe.Y.pa.qL,'OlympeServer');E(a,olympe.Y.pa.ZL,'');Xa(a,'com.hostConfig',[olympe.host.pa.Qz,olympe.Y.pa.Uy,olympe.Y.pa.uU,olympe.Y.pa.wU,olympe.Y.pa.xU,olympe.Y.pa.qL,olympe.Y.pa.FQ,olympe.Y.pa.JQ,olympe.Y.pa.HQ,olympe.Y.pa.GQ,olympe.Y.pa.IQ],(e,f,g,k,l,m,n,p,r,t,u)=>{var v=a.getParameter(olympe.xa.pa.XC);e=e===olympe.host.Br.Kt;var w=['localhost','127.0.0.1'],x=f.endsWith(v),y=x&&e?`${f}-${b}`:
|
|
575
575
|
f;const B='object'===typeof window;g=null!=g?g:y;n=null!=n?n:!B&&x?y.replace(new RegExp(`${v}$`),'rabbitmq'):y;y=(v=w.includes(g))||x;x=(w=w.includes(n))||x;f=w?'/':f.split('.')[0];return{YE:g,ZE:null!=k?k:v?8080:y?e?85:80:443,$E:null!=l?l:!y,EP:m,WV:n,$V:null!=p?p:f,YV:null!=r?r:B?w?15670:x?e?85:80:443:x?5672:5671,XV:null!=t?t:!w&&B?'/amqp/ws':'',ZV:null!=u?u:!x}});E(a,olympe.Y.pa.NM,'websocket');E(a,olympe.Y.pa.uD,5E3);E(a,olympe.Y.pa.JK,5E3);E(a,olympe.Y.pa.MM,3E4);E(a,olympe.Y.pa.bL,4E3);E(a,
|
|
576
|
-
olympe.Y.pa.tL,'7.5.2');E(a,olympe.Y.pa.lG,6E4);E(a,olympe.Y.pa.mG,6E4);E(a,olympe.Y.pa.SB,!1);E(a,olympe.Y.pa.kG,a.getParameter(olympe.Y.pa.uD));E(a,olympe.Y.pa.gG,15);E(a,olympe.Y.pa.iG,3E5);E(a,olympe.Y.pa.jG,20);const c=a.getParameter(olympe.Po.pa.qH);if(void 0!==c)Qa(a,olympe.Y.pa.YB,c);else throw Error('Framework version could not be found! Is field "olympe-framework" present in version.json?');C(a,olympe.Y.ba.Wb,[olympe.
|
|
576
|
+
olympe.Y.pa.tL,'7.5.2');E(a,olympe.Y.pa.lG,6E4);E(a,olympe.Y.pa.mG,6E4);E(a,olympe.Y.pa.SB,!1);E(a,olympe.Y.pa.kG,a.getParameter(olympe.Y.pa.uD));E(a,olympe.Y.pa.gG,15);E(a,olympe.Y.pa.iG,3E5);E(a,olympe.Y.pa.jG,20);const c=a.getParameter(olympe.Po.pa.qH);if(void 0!==c)Qa(a,olympe.Y.pa.YB,c);else throw Error('Framework version could not be found! Is field "olympe-framework" present in version.json?');C(a,olympe.Y.ba.Wb,[olympe.fb.ba.Pb],e=>e.Yg('communication'));C(a,'server.WebSocketRequest',[new olympe.ta.kt('com.hostConfig'),
|
|
577
577
|
new olympe.ta.Db(olympe.Y.pa.NM)],(e,f)=>e.pipe(rxjs.operators.map(({YE:g,ZE:k,$E:l,EP:m})=>new olympe.xa.Ew(g,k,(m+'/'+f).replace(/\/+/g,'/').replace(/\/$/,''),l))).pipe(rxjs.operators.shareReplay(1)));C(a,'server.wakeUpRequest',[new olympe.ta.kt('com.hostConfig'),new olympe.ta.Db(olympe.Y.pa.yU)],(e,f)=>e.pipe(rxjs.operators.map(({YE:g,ZE:k,$E:l})=>{if(null===f||void 0===f)return null;const m=f.replace(/\/+/g,'/').replace(/\/$/,'');return new olympe.xa.Ew(g,k,m,l)})).pipe(rxjs.operators.shareReplay(1)));
|
|
578
578
|
const d=Array.from(Object.values(olympe.Y.xf));C(a,olympe.Y.ba.gM,[new olympe.ta.kt('com.hostConfig'),...d.map(e=>new olympe.ta.Db(e))],(e,...f)=>e.pipe(rxjs.operators.map(({YE:g,ZE:k,$E:l,EP:m})=>{const n=d.map((p,r)=>{r=f[r];r=(new olympe.xa.Zv(g,k,`${m}${r?'/'+r:''}`.replace(/\/+/g,'/').replace(/\/$/,''),l)).le();return[p,r]});return new Map(n)})).pipe(rxjs.operators.shareReplay(1)));A(a,olympe.Y.ba.gl,olympe.Y.Nf);A(a,olympe.Y.ba.CC,olympe.Y.DR,olympe.Y.ba.Wb,olympe.xa.ba.Pb,olympe.la.ba.mo,olympe.Y.ba.gM,
|
|
579
579
|
new olympe.ta.Db(olympe.Y.pa.bL));C(a,'com.server.ManagerConfig',[new olympe.ta.Db(olympe.Y.pa.JK),new olympe.ta.Db(olympe.Y.pa.MM),new olympe.ta.Db(olympe.Y.pa.YB),new olympe.ta.Db(olympe.Y.pa.tL),new olympe.ta.Db(olympe.dc.pa.Ut)],(...e)=>{const f=['pingInterval','messageTimeout','clientVersion','serverVersion','getContextMode'],g=new Map;e.forEach((k,l)=>g.set(f[l],k));return g});A(a,olympe.Y.ba.Tt,olympe.Y.Nc,olympe.Y.ba.Wb,olympe.xa.ba.Pb,olympe.host.ba.zm,olympe.host.ba.Vt,'server.WebSocketRequest',
|
|
@@ -600,8 +600,8 @@ return d.wa()}Pq(a){if(olympe.j.Qa(this.state)===olympe.ya.Ec.C.Tn){var b=re(thi
|
|
|
600
600
|
void 0:c.Fi();this.D.Hu(a,d,(e,f)=>{'string'===typeof f&&this.$.set(a,f);b(e,f)})}}Nu(){return Df(this)?(this.V.warn('Logout called for Guest user so it will be ignored'),Promise.resolve()):new Promise((a,b)=>{this.V.debug('Sending logout');let c;null==(c=this.storage)||Af(c).catch(d=>this.V.error('Failed to clear token',d));pf(this.D,re(this),d=>{d?(Jf(this,'Logout request rejected:',d),b(d)):(this.V.debug('Logout request acknowledged'),a())})})}En(a){olympe.j.Qa(this.state.wa())===olympe.ya.Ec.C.Tn&&
|
|
601
601
|
this.D.En(b=>{b&&this.V.error('Was not able to send the auth keep alive message:',b.message);null==a||a(b)})}Ia(a,b){const c=null===this.C?olympe.ya.Ec.O.Wf:this.C;this.C=null;if(!a||a instanceof olympe.error.DK){null===a?this.V.info(`User ${b.Ag()} (#${b.Ak()}) successfully authenticated`):this.V.info(`User ${b.Ag()} (#${b.Ak()}) recovered from token, while offline`);this.Bh.update(b);uf(this,olympe.ya.Ec.C.Tn);Kf(this,a,c);let d;null==(d=this.storage)||yf(d,b).catch(e=>this.V.error(e))}else{let d;
|
|
602
602
|
null==(d=this.storage)||Af(d).catch(e=>this.V.error(e));this.error.update(olympe.j.kc(a.message));zf(this,'authentication rejected: '+a.message);Kf(this,a,c)}this.O.has('login')&&this.O.delete('login')}};olympe.ya.Ec.C={INIT:'init',By:'authenticating',Tv:'guest',Tn:'authenticated',we:'error'};olympe.ya.Ec.O={Wf:'manual',Zs:'auto',so:'tokenOnFirstConnection'};olympe.ya.Ec.D={Ay:'accepted',VH:'redirect'};olympe.ya.Vg=class{constructor(a,b){this.V=a;this.D=b;this.C=null}O(){}zk(){}R(a,b){const c=()=>{this.C=setTimeout(()=>this.D.En(d=>{d?b(d,null):(b(null,null),c())}),this.D.C.nc)};c();return()=>{this.C&&clearTimeout(this.C);this.C=null}}Pq(a,b){this.D.En(c=>{b(c,null)})}};olympe.ya.Vg.C={SAML:'saml',OAUTH2:'openID',SRP:'srp',iD:'olympeToken'};function Hf(a,b){a.set('password',b)}function Lf(a){return a.get('idpName')}
|
|
603
|
-
olympe.ya.Request=class{constructor(){this.attributes=new Map}set(a,b){olympe.j.Wa([b],c=>{this.attributes.set(a.toLocaleLowerCase(),c.toString())})}get(a){(a=this.attributes.get(a.toLowerCase()))&&a.Jh&&(a=F(a));return a?a.valueOf():a}Ag(){return this.get('username')}Fi(){return this.get('nonce')}toString(){return this.Ag()+(this.Fi()?' with nonce':'')+(this.get('password')?' with password':'')+(Lf(this)?` with idp name ${Lf(this)}`:'')}};olympe.ya.Mr=class{constructor(a,b,c,d={},e=null){this.cm=a;this.Dv=b;this.nonce=c;this.C=e;this.D=d}Ag(){return this.cm}Ak(){return this.Dv}Fi(){return this.nonce}dw(){return this.D}yu(){return null}wm(){return this.C}
|
|
604
|
-
h.Ak.K=new olympe.j.J(()=>String,[]);h.Fi.K=new olympe.j.J(()=>String,[]);h.dw.K=new olympe.j.J(()=>Object,[]);h.yu.K=new olympe.j.J(()=>String,[]);h.wm.K=new olympe.j.J(()=>String,[]);h.
|
|
603
|
+
olympe.ya.Request=class{constructor(){this.attributes=new Map}set(a,b){olympe.j.Wa([b],c=>{this.attributes.set(a.toLocaleLowerCase(),c.toString())})}get(a){(a=this.attributes.get(a.toLowerCase()))&&a.Jh&&(a=F(a));return a?a.valueOf():a}Ag(){return this.get('username')}Fi(){return this.get('nonce')}toString(){return this.Ag()+(this.Fi()?' with nonce':'')+(this.get('password')?' with password':'')+(Lf(this)?` with idp name ${Lf(this)}`:'')}};olympe.ya.Mr=class{constructor(a,b,c,d={},e=null){this.cm=a;this.Dv=b;this.nonce=c;this.C=e;this.D=d}Ag(){return this.cm}Ak(){return this.Dv}Fi(){return this.nonce}dw(){return this.D}yu(){return null}wm(){return this.C}gb(){const a=olympe.la.Jj(),b=Object.assign({},{user:this.cm,userTag:this.Dv,nonce:this.nonce},this.C&&{idpName:this.C},{payload:this.D});return olympe.la.$M(eb(a,JSON.stringify(b)))}sr(){return olympe.ya.Vg.C.SRP}};h=olympe.ya.Mr.prototype;h.Ag.K=new olympe.j.J(()=>String,[]);
|
|
604
|
+
h.Ak.K=new olympe.j.J(()=>String,[]);h.Fi.K=new olympe.j.J(()=>String,[]);h.dw.K=new olympe.j.J(()=>Object,[]);h.yu.K=new olympe.j.J(()=>String,[]);h.wm.K=new olympe.j.J(()=>String,[]);h.gb.K=new olympe.j.J(()=>String,[]);h.sr.K=new olympe.j.J(()=>String,[]);function qf(a){return a.dw().access_token||null}function Mf(a){return 1E3*parseInt(a.dw().access_token_exp||'0',10)}olympe.ya.Fz=class extends olympe.ya.Mr{constructor(a,b,c,d,e){super(a,b,c,d,e);this.O=Date.now()}yu(){return qf(this)}sr(){return olympe.ya.Vg.C.OAUTH2}};olympe.ya.mL=class extends olympe.ya.Mr{constructor(a,b,c,d,e,f){super(a,b,c,e,f);this.O=d}yu(){return this.O}sr(){return olympe.ya.Vg.C.SAML}gb(){const a=olympe.la.Jj(),b=Object.assign({},{user:this.Ag(),userTag:this.Ak(),nonce:this.Fi()},this.wm()&&{idpName:this.wm()},{payload:this.dw(),fullToken:this.O});return olympe.la.$M(eb(a,JSON.stringify(b)))}};function tf(a){let b;return null!=(b=a.db.get('main','redirectTo'))?b:null}function yf(a,b){return a.D.C(()=>a.db.set('main','string'===typeof b?b:b.gb(),a.C).catch(c=>{throw Error(`Error when trying to set the token from the auth store: ${c}`);}))}function Af(a){return a.D.C(()=>a.db.remove('main',a.C).catch(b=>{a.V.error(`Error when trying to remove the token from the auth store: ${b}`)}))}
|
|
605
605
|
olympe.ya.xQ=class{constructor(a,b,c){this.O=a;this.V=b;this.C='OlympeToken-'+c.C;this.D=new olympe.la.promise.Wt;this.db=this.O.D('AUTH',1,d=>{d.objectStoreNames.contains('main')&&d.deleteObjectStore('main');const e=d.createObjectStore('main');return new Promise((f,g)=>{e.transaction.oncomplete=()=>f();e.transaction.onerror=()=>g(e.transaction.error)})})}zk(){this.V.debug(`olympe.auth.AuthStorage: retrieve token with key ${this.C}`);return this.D.C(()=>{const a=this;return q(function*(){let b;try{b=
|
|
606
606
|
yield a.db.get('main',a.C)}catch(g){throw Error(`Error when trying to get the token from the auth store: ${g}`);}let c=null;if(b)try{a.V.debug('olympe.auth.AuthStorage: Token retrieved successfully');var d=JSON,e=d.parse;var f=fb(olympe.la.Jj().D(olympe.la.TV(b)));const g=e.call(d,f);let k;g.fullToken?k=new olympe.ya.mL(g.user,g.userTag,g.nonce,g.fullToken,g.payload,g.idpName):g.payload&&g.payload.id_token?k=new olympe.ya.Fz(g.user,g.userTag,g.nonce,g.payload,g.idpName):k=new olympe.ya.Mr(g.user,
|
|
607
607
|
g.userTag,g.nonce,g.payload,g.idpName);c=k}catch(g){throw Error(`Error while unserializing token: ${g}`);}else a.V.debug('olympe.auth.AuthStorage: No token found');return c})})}};olympe.ya.Qt=class{redirect(){}D(){}C(){}};olympe.ya.Qt.C={GET:'GET',Vp:'POST'};olympe.ya.UF=class{constructor(a){this.C=a||'default'}};olympe.ya.mj={};function Nf(a,b,c){rf(a.D,olympe.ya.$h.C.tr,{token:b.Fi()},(d,e)=>{if(null!==d)c(d,null);else switch(e.c){case olympe.ya.$h.C.we:c(Error('Invalid token'),null);break;case olympe.ya.$h.C.yw:d=null;if(e=e.payload){const f=e.userName,g=e.userTag,k=e.rndCook,l=e.payload,m=e.protocol;'SAML'===m?d=new olympe.ya.mL(f,g,k,e.samlToken,l,Lf(b)):'openid'===m&&(d=new olympe.ya.Fz(f,g,k,l,Lf(b)))}c(null,d);break;default:c(Error('Unknown response from server'),null)}})}
|
|
@@ -609,7 +609,7 @@ olympe.ya.mj.qT=class extends olympe.ya.Vg{constructor(a,b,c){super(a,b);this.st
|
|
|
609
609
|
olympe.ya.mj.RT=class extends olympe.ya.Vg{constructor(a,b,c,d){super(a,b);this.T=c;this.W=d}O(){return olympe.ya.Vg.C.OAUTH2}zk(a){const b=encodeURIComponent(this.T.C());a=Lf(a)?`idpName=${Lf(a)}&`:'';this.T.redirect(`${this.W}/auth?${a}url=${b}`,null,olympe.ya.Qt.C.GET)}R(a,b){0<Mf(a)?this.C=Of(this,a,b):b(null,a);return this.$.bind(this)}Pq(a,b){sf(this.D,a,(c,d)=>{c?b(c,null):d&&(b(null,d),this.C&&(this.C=Of(this,d,b)))})}$(){this.C&&clearTimeout(this.C);this.C=null}};function Pf(a,b){rf(a.D,olympe.ya.$h.C.SAML,{},(c,d)=>{null!==c?b(c):d.url&&d.request?b(null,d.url,d.request.replace(/\s/g,''),d.id):b(Error('Missing parameters from server response'))})}olympe.ya.mj.SAML=class extends olympe.ya.Vg{constructor(a,b,c){super(a,b);this.T=c}O(){return olympe.ya.Vg.C.SAML}zk(a,b){Pf(this,(c,d,e,f)=>{c?b(c,null):this.T.D(d,e,f,Lf(a))})}};function Qf(a,b,c){const d=olympe.ya.$h.C.LR,e=olympe.ya.$h.C.we,f=olympe.ya.$h.C.QU,g={I:b.Ag()};rf(a.D,d,g,(k,l)=>{if(null!==k)c(k);else switch(l.c){case e:c(Error(`Username '${b.Ag()}' invalid, or password does not match`));break;case f:k=l.payload;c(null,k.S,k.B);break;default:c(Error('Unknown response from server'))}})}
|
|
610
610
|
function Rf(a,b,c){const d=olympe.ya.$h.C.uQ,e=olympe.ya.$h.C.we,f=olympe.ya.$h.C.yw;b={A:b.get('a'),M:b.get('m1'),I:b.Ag()};rf(a.D,d,b,(g,k)=>{if(null!==g)c(g,null);else switch(k.c){case e:a.V.debug('Login failed, invalid username or password');c(Error('Invalid username or password'),null);break;case f:g=k.payload;a.V.debug('Login successful, creating token');k=g.payload?JSON.parse(g.payload):void 0;c(null,new olympe.ya.Mr(g.userName,g.userTag,g.rndCook,k));break;default:c(Error(`Unknown response from server (type ${k.c})`),
|
|
611
611
|
null)}})}olympe.ya.mj.SRP=class extends olympe.ya.Vg{O(){return olympe.ya.Vg.C.SRP}zk(a,b){const c=a.get('password');a.attributes.delete('password');this.V.debug('Sending SRP request');Qf(this,a,(d,e,f)=>{this.V.debug('Received Salt+B message');if(d)b(d,null);else{try{const g=new SRPClient;g.step1(a.Ag(),c);const k=g.step2(e,f);a.set('a',k.A);a.set('m1',k.M1)}catch(g){b(g,null);return}this.V.debug('Sending SRP A+M (proof) message');Rf(this,a,b)}})}};olympe.ya.ba={Pb:'auth.Manager',Wb:'auth.Logger',xw:'auth.Storage',LB:'auth.appNameToken',Oz:'auth.Redirector',rL:'auth.ServerConnector'};olympe.ya.pa={iC:'auth.defaultProvider',MF:'auth.autoLogin',OF:'auth.autoUser',NF:'auth.autoPassword',so:'auth.token',qG:'auth.cacheTokenTimeout',XL:'auth.tokenDurationPercentage'};
|
|
612
|
-
olympe.ta.af(function(a){E(a,olympe.ya.pa.iC,olympe.ya.Vg.C.SRP);E(a,olympe.ya.pa.MF,!1);E(a,olympe.ya.pa.OF,'');E(a,olympe.ya.pa.NF,'');E(a,olympe.ya.pa.so,'');E(a,olympe.ya.pa.XL,50);E(a,olympe.ya.pa.qG,3E5);C(a,olympe.ya.ba.Wb,[olympe.
|
|
612
|
+
olympe.ta.af(function(a){E(a,olympe.ya.pa.iC,olympe.ya.Vg.C.SRP);E(a,olympe.ya.pa.MF,!1);E(a,olympe.ya.pa.OF,'');E(a,olympe.ya.pa.NF,'');E(a,olympe.ya.pa.so,'');E(a,olympe.ya.pa.XL,50);E(a,olympe.ya.pa.qG,3E5);C(a,olympe.ya.ba.Wb,[olympe.fb.ba.Pb],b=>b.Yg('auth'));A(a,olympe.ya.ba.LB,olympe.ya.UF,olympe.Dc.ba.Hr);A(a,olympe.ya.ba.xw,olympe.ya.xQ,olympe.Dc.ba.qz,olympe.ya.ba.Wb,olympe.ya.ba.LB);A(a,olympe.ya.ba.rL,olympe.ya.$h,olympe.ya.ba.Wb,olympe.Y.ba.Tt,olympe.Y.ba.CC,olympe.Y.ba.hm,olympe.ya.ba.Oz,
|
|
613
613
|
olympe.ya.ba.xw);Va(a,olympe.ya.ba.Oz);C(a,olympe.ya.ba.Pb,[olympe.ya.ba.Wb,olympe.Y.ba.hm,olympe.ya.ba.rL,olympe.host.ba.zm,olympe.host.ba.Vt,new olympe.ta.Od(olympe.ya.ba.xw,olympe.ta.gt.C.eD),new olympe.ta.Od(olympe.ya.ba.Oz,olympe.ta.gt.C.eD),new olympe.ta.Db(olympe.ya.pa.iC),new olympe.ta.Db(olympe.ya.pa.MF),new olympe.ta.Db(olympe.ya.pa.OF),new olympe.ta.Db(olympe.ya.pa.NF),new olympe.ta.Db(olympe.ya.pa.so),new olympe.ta.Db(olympe.ya.pa.qG)],(b,c,d,e,f,g,k,l,m,n,p,r,t)=>{const u=[new olympe.ya.mj.qT(b,
|
|
614
614
|
d,g),new olympe.ya.mj.SRP(b,d),new olympe.ya.mj.SAML(b,d,k),new olympe.ya.mj.RT(b,d,k,Ee(d.Ft,olympe.Y.xf.Bz))];if(!u.map(v=>v.O()).includes(l))throw Error(`Default provider name ${l} given by parameter ${olympe.ya.pa.iC} cannot be found`);return new olympe.ya.Ec(b,c,d,g,k,e,f,u,new Map([['defaultProvider',l],['autoLogin',m],['autoUser',n],['autoPassword',p],['autoToken',r],['cacheTokenTimeout',t]]))},!0)},'olympe.auth');olympe.ta.run([olympe.ya.ba.Pb],a=>{olympe.ya.vk=()=>a});olympe.G.H.ya={};olympe.G.H.ya.MH=class{redirect(a,b=null,c=olympe.ya.Qt.C.Vp){let d='';if(b)for(let e in b)Object.prototype.hasOwnProperty.call(b,e)&&(d+=`<input type="hidden" name="${e}" value="${b[e]}"/>`);d=''===d&&'GET'===c.toUpperCase()?`<script>window.location.href='${a}'</script>`:`<form method="${c}" action="${a}" id="redirectorForm">`+d+"</form><script>document.getElementById('redirectorForm').submit()\x3c/script>";document.write('<!DOCTYPE html>\n<html><head><title>Please wait...</title></head>\n<body>'+
|
|
615
615
|
d+'</body>\n</html>\n')}D(a,b,c,d){var e=olympe.ya.Qt.C.Vp;this.redirect(a,{SAMLRequest:b,RelayState:window.btoa(JSON.stringify(Object.assign({},{url:window.location.href},d&&{idpName:d},{id:c})))},e)}C(){return window.location.href}};olympe.G.H.ya.MH.Aa=[olympe.ya.Qt];olympe.ta.af(a=>{A(a,olympe.ya.ba.Oz,olympe.G.H.ya.MH)},'olympe.native.html.auth');olympe.N={};olympe.N.wf=class extends olympe.host.ab.Xi{};olympe.bi(olympe.N.wf,olympe.host.ab.Xi);olympe.N.X={};olympe.N.X.PH=class{oq(){}};olympe.N.X.qr=class{Kl(){}bm(){}};olympe.N.X.qr.prototype.unregisterValueChanged=olympe.N.X.qr.prototype.bm;olympe.N.X.qr.prototype.registerValueChanged=olympe.N.X.qr.prototype.Kl;olympe.N.X.QH=class{qb(){}};olympe.N.X.Nd=class{hp(){}In(){}np(){}Sn(){}gp(){}Hn(){}mp(){}Rn(){}ip(){}Jn(){}Rq(){}Kn(){}kp(){}Mn(){}jp(){}Ln(){}};olympe.N.X.Nd.prototype.unregisterPinch=olympe.N.X.Nd.prototype.Ln;olympe.N.X.Nd.prototype.registerPinch=olympe.N.X.Nd.prototype.jp;olympe.N.X.Nd.prototype.unregisterRotate=olympe.N.X.Nd.prototype.Mn;olympe.N.X.Nd.prototype.registerRotate=olympe.N.X.Nd.prototype.kp;olympe.N.X.Nd.prototype.unregisterLongPressUp=olympe.N.X.Nd.prototype.Kn;
|
|
@@ -661,7 +661,7 @@ olympe.N.P.yd.prototype.setX=olympe.N.P.yd.prototype.oe;olympe.N.P.oc=class exte
|
|
|
661
661
|
olympe.N.P.oc.prototype.unsetGradient=olympe.N.P.oc.prototype.yy;olympe.N.P.oc.prototype.setGradient=olympe.N.P.oc.prototype.hv;olympe.N.P.oc.prototype.setStrokeLinecap=olympe.N.P.oc.prototype.ny;olympe.N.P.oc.prototype.setStrokeDashOffset=olympe.N.P.oc.prototype.ly;olympe.N.P.oc.prototype.setStrokeDashPattern=olympe.N.P.oc.prototype.my;olympe.N.P.oc.prototype.setStrokeColorAndOpacity=olympe.N.P.oc.prototype.yB;olympe.N.P.oc.prototype.setStrokeOpacity=olympe.N.P.oc.prototype.nF;
|
|
662
662
|
olympe.N.P.oc.prototype.setStrokeColor=olympe.N.P.oc.prototype.setStrokeColor;olympe.N.P.oc.prototype.getStrokeWidth=olympe.N.P.oc.prototype.cn;olympe.N.P.oc.prototype.setStrokeWidth=olympe.N.P.oc.prototype.uv;olympe.N.P.oc.prototype.setFillColorAndOpacity=olympe.N.P.oc.prototype.rB;olympe.N.P.oc.prototype.setFillOpacity=olympe.N.P.oc.prototype.cF;olympe.N.P.oc.prototype.setFillColor=olympe.N.P.oc.prototype.setFillColor;olympe.N.P.oc.prototype.setFilled=olympe.N.P.oc.prototype.Tx;
|
|
663
663
|
olympe.N.P.oc.prototype.rotate=olympe.N.P.oc.prototype.rotate;olympe.bi(olympe.N.P.oc,olympe.N.P.yd,olympe.N.X.pc,olympe.N.X.RH,olympe.N.X.Nd,olympe.N.X.QH);olympe.N.P.jm=class extends olympe.N.P.oc{constructor(){super()}setRadius(){}};olympe.N.P.jm.prototype.setRadius=olympe.N.P.jm.prototype.setRadius;olympe.N.P.$n=class extends olympe.N.P.oc{constructor(){super()}hF(){}iF(){}setRadius(){}};olympe.N.P.$n.prototype.setRadius=olympe.N.P.$n.prototype.setRadius;olympe.N.P.$n.prototype.setRy=olympe.N.P.$n.prototype.iF;olympe.N.P.$n.prototype.setRx=olympe.N.P.$n.prototype.hF;olympe.N.P.Image=class extends olympe.N.P.oc{constructor(){super()}ne(){}Ml(){}Nl(){}Rl(){}};olympe.N.P.Image.prototype.setVerticalAlignment=olympe.N.P.Image.prototype.Rl;olympe.N.P.Image.prototype.setHorizontalAlignment=olympe.N.P.Image.prototype.Nl;olympe.N.P.Image.prototype.setAspectRatioMode=olympe.N.P.Image.prototype.Ml;olympe.N.P.Image.prototype.setSource=olympe.N.P.Image.prototype.ne;olympe.N.P.ye=class extends olympe.N.P.oc{constructor(){super()}Xb(){}};olympe.N.P.ye.prototype.setCornerRadius=olympe.N.P.ye.prototype.Xb;olympe.N.P.Text=class extends olympe.N.P.oc{constructor(){super()}Jb(){}rb(){}vb(){}Bb(){}Wx(){}lp(){}Yq(){}};olympe.N.P.Text.prototype.unregisterTextSize=olympe.N.P.Text.prototype.Yq;olympe.N.P.Text.prototype.registerTextSize=olympe.N.P.Text.prototype.lp;olympe.N.P.Text.prototype.setHorizontalAlign=olympe.N.P.Text.prototype.Wx;olympe.N.P.Text.prototype.setFontWeight=olympe.N.P.Text.prototype.Bb;olympe.N.P.Text.prototype.setFontFamily=olympe.N.P.Text.prototype.vb;
|
|
664
|
-
olympe.N.P.Text.prototype.setFontSize=olympe.N.P.Text.prototype.rb;olympe.N.P.Text.prototype.setText=olympe.N.P.Text.prototype.Jb;olympe.N.P.Bw=class extends olympe.N.P.Text{constructor(){super()}Is(){}};olympe.N.P.Bw.prototype.setPath=olympe.N.P.Bw.prototype.Is;olympe.N.P.bl=class extends olympe.N.P.oc{constructor(){super()}Lx(){}oh(){}bq(){}Wu(){}};olympe.N.P.bl.prototype.removeSegment=olympe.N.P.bl.prototype.Wu;olympe.N.P.bl.prototype.addSegment=olympe.N.P.bl.prototype.bq;olympe.N.P.bl.prototype.setLineCap=olympe.N.P.bl.prototype.oh;olympe.N.P.bl.prototype.setClosed=olympe.N.P.bl.prototype.Lx;olympe.N.P.Jf=class extends olympe.N.P.ze{constructor(){super()}dj(){}oe(){}Ge(){}setPosition(){}dk(){}Mg(){}};olympe.N.P.Jf.prototype.getNext=olympe.N.P.Jf.prototype.Mg;olympe.N.P.Jf.prototype.setNext=olympe.N.P.Jf.prototype.dk;olympe.N.P.Jf.prototype.setPosition=olympe.N.P.Jf.prototype.setPosition;olympe.N.P.Jf.prototype.setY=olympe.N.P.Jf.prototype.Ge;olympe.N.P.Jf.prototype.setX=olympe.N.P.Jf.prototype.oe;olympe.N.P.Jf.prototype.getCommandString=olympe.N.P.Jf.prototype.dj;olympe.N.P.wi=class extends olympe.N.P.Jf{constructor(){super()}tF(){}zF(){}Nx(){}uF(){}AF(){}Ox(){}};olympe.N.P.wi.prototype.setControl2=olympe.N.P.wi.prototype.Ox;olympe.N.P.wi.prototype.setYControl2=olympe.N.P.wi.prototype.AF;olympe.N.P.wi.prototype.setXControl2=olympe.N.P.wi.prototype.uF;olympe.N.P.wi.prototype.setControl1=olympe.N.P.wi.prototype.Nx;olympe.N.P.wi.prototype.setYControl1=olympe.N.P.wi.prototype.zF;olympe.N.P.wi.prototype.setXControl1=olympe.N.P.wi.prototype.tF;olympe.N.P.Kz=class extends olympe.N.P.Jf{constructor(){super()}rd(){}};olympe.N.P.no=class extends olympe.N.P.Jf{constructor(){super()}sF(){}yF(){}Mx(){}};olympe.N.P.no.prototype.setControl=olympe.N.P.no.prototype.Mx;olympe.N.P.no.prototype.setYControl=olympe.N.P.no.prototype.yF;olympe.N.P.no.prototype.setXControl=olympe.N.P.no.prototype.sF;olympe.N.P.Yi=class extends olympe.N.P.Jf{constructor(){super()}hy(){}iy(){}qy(){}Yx(){}oy(){}};olympe.N.P.Yi.prototype.setSweepFlag=olympe.N.P.Yi.prototype.oy;olympe.N.P.Yi.prototype.setLargeArcSweepFlag=olympe.N.P.Yi.prototype.Yx;olympe.N.P.Yi.prototype.setXAxisRotation=olympe.N.P.Yi.prototype.qy;olympe.N.P.Yi.prototype.setRY=olympe.N.P.Yi.prototype.iy;olympe.N.P.Yi.prototype.setRX=olympe.N.P.Yi.prototype.hy;olympe.N.P.Lz=class extends olympe.N.P.Jf{constructor(){super()}};olympe.N.P.jr=class extends olympe.N.P.oc{constructor(){super()}appendChild(){}removeChild(){}};olympe.N.P.jr.prototype.removeChild=olympe.N.P.jr.prototype.removeChild;olympe.N.P.jr.prototype.appendChild=olympe.N.P.jr.prototype.appendChild;olympe.N.P.Sf=class extends olympe.N.P.yd{constructor(){super()}Oi(){}addElement(){}Tu(){}Hx(){}};olympe.N.P.Sf.prototype.removeAllElements=olympe.N.P.Sf.prototype.Hx;olympe.N.P.Sf.prototype.removeElement=olympe.N.P.Sf.prototype.Tu;olympe.N.P.Sf.prototype.addElement=olympe.N.P.Sf.prototype.addElement;olympe.N.P.Sf.prototype.setAbsolute=olympe.N.P.Sf.prototype.Oi;olympe.N.P.Hg=class extends olympe.N.P.yd{constructor(){super()}dk(){}Mg(){}};olympe.N.P.Hg.prototype.getNext=olympe.N.P.Hg.prototype.Mg;olympe.N.P.Hg.prototype.setNext=olympe.N.P.Hg.prototype.dk;olympe.N.P.Un=class extends olympe.N.P.Hg{constructor(){super()}Ix(){}kf(){}};olympe.N.P.Un.prototype.setInput=olympe.N.P.Un.prototype.kf;olympe.N.P.Un.prototype.setAmount=olympe.N.P.Un.prototype.Ix;olympe.N.P.br=class extends olympe.N.P.Hg{constructor(){super()}kf(){}setMatrix(){}};olympe.N.P.br.prototype.setMatrix=olympe.N.P.br.prototype.setMatrix;olympe.N.P.br.prototype.setInput=olympe.N.P.br.prototype.kf;olympe.N.P.Yn=class extends olympe.N.P.Hg{constructor(){super()}kf(){}Xx(){}ay(){}};olympe.N.P.Yn.prototype.setMode=olympe.N.P.Yn.prototype.ay;olympe.N.P.Yn.prototype.setInput2=olympe.N.P.Yn.prototype.Xx;olympe.N.P.Yn.prototype.setInput=olympe.N.P.Yn.prototype.kf;olympe.N.P.ao=class extends olympe.N.P.Hg{constructor(){super()}dF(){}fF(){}eF(){}};olympe.N.P.ao.prototype.setFloodColorAndOpacity=olympe.N.P.ao.prototype.eF;olympe.N.P.ao.prototype.setFloodOpacity=olympe.N.P.ao.prototype.fF;olympe.N.P.ao.prototype.setFloodColor=olympe.N.P.ao.prototype.dF;olympe.N.P.Uk=class extends olympe.N.P.Hg{constructor(){super()}ne(){}Ml(){}Nl(){}Rl(){}};olympe.N.P.Uk.prototype.setVerticalAlignment=olympe.N.P.Uk.prototype.Rl;olympe.N.P.Uk.prototype.setHorizontalAlignment=olympe.N.P.Uk.prototype.Nl;olympe.N.P.Uk.prototype.setAspectRatioMode=olympe.N.P.Uk.prototype.Ml;olympe.N.P.Uk.prototype.setSource=olympe.N.P.Uk.prototype.ne;olympe.N.P.lo=class extends olympe.N.P.Hg{constructor(){super()}Jw(){}Vu(){}kf(){}};olympe.N.P.lo.prototype.setInput=olympe.N.P.lo.prototype.kf;olympe.N.P.lo.prototype.removeInput=olympe.N.P.lo.prototype.Vu;olympe.N.P.lo.prototype.addInput=olympe.N.P.lo.prototype.Jw;olympe.N.P.Zk=class extends olympe.N.P.Hg{constructor(){super()}aF(){}bF(){}Rx(){}kf(){}};olympe.N.P.Zk.prototype.setInput=olympe.N.P.Zk.prototype.kf;olympe.N.P.Zk.prototype.setDelta=olympe.N.P.Zk.prototype.Rx;olympe.N.P.Zk.prototype.setDeltaY=olympe.N.P.Zk.prototype.bF;olympe.N.P.Zk.prototype.setDeltaX=olympe.N.P.Zk.prototype.aF;olympe.N.P.Hh=class extends olympe.N.P.ze{constructor(){super()}Oi(){}Mw(){}Xu(){}};olympe.N.P.Hh.prototype.removeStop=olympe.N.P.Hh.prototype.Xu;olympe.N.P.Hh.prototype.addStop=olympe.N.P.Hh.prototype.Mw;olympe.N.P.Hh.prototype.setAbsolute=olympe.N.P.Hh.prototype.Oi;olympe.N.P.Sk=class extends olympe.N.P.ze{constructor(){super()}by(){}lF(){}mF(){}xB(){}};olympe.N.P.Sk.prototype.setStopColorAndOpacity=olympe.N.P.Sk.prototype.xB;olympe.N.P.Sk.prototype.setStopOpacity=olympe.N.P.Sk.prototype.mF;olympe.N.P.Sk.prototype.setStopColor=olympe.N.P.Sk.prototype.lF;olympe.N.P.Sk.prototype.setOffset=olympe.N.P.Sk.prototype.by;olympe.N.P.si=class extends olympe.N.P.Hh{constructor(){super()}qF(){}wF(){}ey(){}rF(){}xF(){}gy(){}};olympe.N.P.si.prototype.setPoint2=olympe.N.P.si.prototype.gy;olympe.N.P.si.prototype.setY2=olympe.N.P.si.prototype.xF;olympe.N.P.si.prototype.setX2=olympe.N.P.si.prototype.rF;olympe.N.P.si.prototype.setPoint=olympe.N.P.si.prototype.ey;olympe.N.P.si.prototype.setY1=olympe.N.P.si.prototype.wF;olympe.N.P.si.prototype.setX1=olympe.N.P.si.prototype.qF;olympe.N.P.qo=class extends olympe.N.P.Hh{constructor(){super()}setRadius(){}Jx(){}Vx(){}};olympe.N.P.qo.prototype.setFocalPoint=olympe.N.P.qo.prototype.Vx;olympe.N.P.qo.prototype.setCenter=olympe.N.P.qo.prototype.Jx;olympe.N.P.qo.prototype.setRadius=olympe.N.P.qo.prototype.setRadius;olympe.N.P.jo=class extends olympe.N.P.yd{constructor(){super()}appendChild(){}removeChild(){}Oi(){}};olympe.N.P.jo.prototype.setAbsolute=olympe.N.P.jo.prototype.Oi;olympe.N.P.jo.prototype.removeChild=olympe.N.P.jo.prototype.removeChild;olympe.N.P.jo.prototype.appendChild=olympe.N.P.jo.prototype.appendChild;olympe.ui={};olympe.ui.Ec=class{constructor(){}C(){}hf(){}gi(){return this}D(){}ea(){}O(){}R(){}
|
|
664
|
+
olympe.N.P.Text.prototype.setFontSize=olympe.N.P.Text.prototype.rb;olympe.N.P.Text.prototype.setText=olympe.N.P.Text.prototype.Jb;olympe.N.P.Bw=class extends olympe.N.P.Text{constructor(){super()}Is(){}};olympe.N.P.Bw.prototype.setPath=olympe.N.P.Bw.prototype.Is;olympe.N.P.bl=class extends olympe.N.P.oc{constructor(){super()}Lx(){}oh(){}bq(){}Wu(){}};olympe.N.P.bl.prototype.removeSegment=olympe.N.P.bl.prototype.Wu;olympe.N.P.bl.prototype.addSegment=olympe.N.P.bl.prototype.bq;olympe.N.P.bl.prototype.setLineCap=olympe.N.P.bl.prototype.oh;olympe.N.P.bl.prototype.setClosed=olympe.N.P.bl.prototype.Lx;olympe.N.P.Jf=class extends olympe.N.P.ze{constructor(){super()}dj(){}oe(){}Ge(){}setPosition(){}dk(){}Mg(){}};olympe.N.P.Jf.prototype.getNext=olympe.N.P.Jf.prototype.Mg;olympe.N.P.Jf.prototype.setNext=olympe.N.P.Jf.prototype.dk;olympe.N.P.Jf.prototype.setPosition=olympe.N.P.Jf.prototype.setPosition;olympe.N.P.Jf.prototype.setY=olympe.N.P.Jf.prototype.Ge;olympe.N.P.Jf.prototype.setX=olympe.N.P.Jf.prototype.oe;olympe.N.P.Jf.prototype.getCommandString=olympe.N.P.Jf.prototype.dj;olympe.N.P.wi=class extends olympe.N.P.Jf{constructor(){super()}tF(){}zF(){}Nx(){}uF(){}AF(){}Ox(){}};olympe.N.P.wi.prototype.setControl2=olympe.N.P.wi.prototype.Ox;olympe.N.P.wi.prototype.setYControl2=olympe.N.P.wi.prototype.AF;olympe.N.P.wi.prototype.setXControl2=olympe.N.P.wi.prototype.uF;olympe.N.P.wi.prototype.setControl1=olympe.N.P.wi.prototype.Nx;olympe.N.P.wi.prototype.setYControl1=olympe.N.P.wi.prototype.zF;olympe.N.P.wi.prototype.setXControl1=olympe.N.P.wi.prototype.tF;olympe.N.P.Kz=class extends olympe.N.P.Jf{constructor(){super()}rd(){}};olympe.N.P.no=class extends olympe.N.P.Jf{constructor(){super()}sF(){}yF(){}Mx(){}};olympe.N.P.no.prototype.setControl=olympe.N.P.no.prototype.Mx;olympe.N.P.no.prototype.setYControl=olympe.N.P.no.prototype.yF;olympe.N.P.no.prototype.setXControl=olympe.N.P.no.prototype.sF;olympe.N.P.Yi=class extends olympe.N.P.Jf{constructor(){super()}hy(){}iy(){}qy(){}Yx(){}oy(){}};olympe.N.P.Yi.prototype.setSweepFlag=olympe.N.P.Yi.prototype.oy;olympe.N.P.Yi.prototype.setLargeArcSweepFlag=olympe.N.P.Yi.prototype.Yx;olympe.N.P.Yi.prototype.setXAxisRotation=olympe.N.P.Yi.prototype.qy;olympe.N.P.Yi.prototype.setRY=olympe.N.P.Yi.prototype.iy;olympe.N.P.Yi.prototype.setRX=olympe.N.P.Yi.prototype.hy;olympe.N.P.Lz=class extends olympe.N.P.Jf{constructor(){super()}};olympe.N.P.jr=class extends olympe.N.P.oc{constructor(){super()}appendChild(){}removeChild(){}};olympe.N.P.jr.prototype.removeChild=olympe.N.P.jr.prototype.removeChild;olympe.N.P.jr.prototype.appendChild=olympe.N.P.jr.prototype.appendChild;olympe.N.P.Sf=class extends olympe.N.P.yd{constructor(){super()}Oi(){}addElement(){}Tu(){}Hx(){}};olympe.N.P.Sf.prototype.removeAllElements=olympe.N.P.Sf.prototype.Hx;olympe.N.P.Sf.prototype.removeElement=olympe.N.P.Sf.prototype.Tu;olympe.N.P.Sf.prototype.addElement=olympe.N.P.Sf.prototype.addElement;olympe.N.P.Sf.prototype.setAbsolute=olympe.N.P.Sf.prototype.Oi;olympe.N.P.Hg=class extends olympe.N.P.yd{constructor(){super()}dk(){}Mg(){}};olympe.N.P.Hg.prototype.getNext=olympe.N.P.Hg.prototype.Mg;olympe.N.P.Hg.prototype.setNext=olympe.N.P.Hg.prototype.dk;olympe.N.P.Un=class extends olympe.N.P.Hg{constructor(){super()}Ix(){}kf(){}};olympe.N.P.Un.prototype.setInput=olympe.N.P.Un.prototype.kf;olympe.N.P.Un.prototype.setAmount=olympe.N.P.Un.prototype.Ix;olympe.N.P.br=class extends olympe.N.P.Hg{constructor(){super()}kf(){}setMatrix(){}};olympe.N.P.br.prototype.setMatrix=olympe.N.P.br.prototype.setMatrix;olympe.N.P.br.prototype.setInput=olympe.N.P.br.prototype.kf;olympe.N.P.Yn=class extends olympe.N.P.Hg{constructor(){super()}kf(){}Xx(){}ay(){}};olympe.N.P.Yn.prototype.setMode=olympe.N.P.Yn.prototype.ay;olympe.N.P.Yn.prototype.setInput2=olympe.N.P.Yn.prototype.Xx;olympe.N.P.Yn.prototype.setInput=olympe.N.P.Yn.prototype.kf;olympe.N.P.ao=class extends olympe.N.P.Hg{constructor(){super()}dF(){}fF(){}eF(){}};olympe.N.P.ao.prototype.setFloodColorAndOpacity=olympe.N.P.ao.prototype.eF;olympe.N.P.ao.prototype.setFloodOpacity=olympe.N.P.ao.prototype.fF;olympe.N.P.ao.prototype.setFloodColor=olympe.N.P.ao.prototype.dF;olympe.N.P.Uk=class extends olympe.N.P.Hg{constructor(){super()}ne(){}Ml(){}Nl(){}Rl(){}};olympe.N.P.Uk.prototype.setVerticalAlignment=olympe.N.P.Uk.prototype.Rl;olympe.N.P.Uk.prototype.setHorizontalAlignment=olympe.N.P.Uk.prototype.Nl;olympe.N.P.Uk.prototype.setAspectRatioMode=olympe.N.P.Uk.prototype.Ml;olympe.N.P.Uk.prototype.setSource=olympe.N.P.Uk.prototype.ne;olympe.N.P.lo=class extends olympe.N.P.Hg{constructor(){super()}Jw(){}Vu(){}kf(){}};olympe.N.P.lo.prototype.setInput=olympe.N.P.lo.prototype.kf;olympe.N.P.lo.prototype.removeInput=olympe.N.P.lo.prototype.Vu;olympe.N.P.lo.prototype.addInput=olympe.N.P.lo.prototype.Jw;olympe.N.P.Zk=class extends olympe.N.P.Hg{constructor(){super()}aF(){}bF(){}Rx(){}kf(){}};olympe.N.P.Zk.prototype.setInput=olympe.N.P.Zk.prototype.kf;olympe.N.P.Zk.prototype.setDelta=olympe.N.P.Zk.prototype.Rx;olympe.N.P.Zk.prototype.setDeltaY=olympe.N.P.Zk.prototype.bF;olympe.N.P.Zk.prototype.setDeltaX=olympe.N.P.Zk.prototype.aF;olympe.N.P.Hh=class extends olympe.N.P.ze{constructor(){super()}Oi(){}Mw(){}Xu(){}};olympe.N.P.Hh.prototype.removeStop=olympe.N.P.Hh.prototype.Xu;olympe.N.P.Hh.prototype.addStop=olympe.N.P.Hh.prototype.Mw;olympe.N.P.Hh.prototype.setAbsolute=olympe.N.P.Hh.prototype.Oi;olympe.N.P.Sk=class extends olympe.N.P.ze{constructor(){super()}by(){}lF(){}mF(){}xB(){}};olympe.N.P.Sk.prototype.setStopColorAndOpacity=olympe.N.P.Sk.prototype.xB;olympe.N.P.Sk.prototype.setStopOpacity=olympe.N.P.Sk.prototype.mF;olympe.N.P.Sk.prototype.setStopColor=olympe.N.P.Sk.prototype.lF;olympe.N.P.Sk.prototype.setOffset=olympe.N.P.Sk.prototype.by;olympe.N.P.si=class extends olympe.N.P.Hh{constructor(){super()}qF(){}wF(){}ey(){}rF(){}xF(){}gy(){}};olympe.N.P.si.prototype.setPoint2=olympe.N.P.si.prototype.gy;olympe.N.P.si.prototype.setY2=olympe.N.P.si.prototype.xF;olympe.N.P.si.prototype.setX2=olympe.N.P.si.prototype.rF;olympe.N.P.si.prototype.setPoint=olympe.N.P.si.prototype.ey;olympe.N.P.si.prototype.setY1=olympe.N.P.si.prototype.wF;olympe.N.P.si.prototype.setX1=olympe.N.P.si.prototype.qF;olympe.N.P.qo=class extends olympe.N.P.Hh{constructor(){super()}setRadius(){}Jx(){}Vx(){}};olympe.N.P.qo.prototype.setFocalPoint=olympe.N.P.qo.prototype.Vx;olympe.N.P.qo.prototype.setCenter=olympe.N.P.qo.prototype.Jx;olympe.N.P.qo.prototype.setRadius=olympe.N.P.qo.prototype.setRadius;olympe.N.P.jo=class extends olympe.N.P.yd{constructor(){super()}appendChild(){}removeChild(){}Oi(){}};olympe.N.P.jo.prototype.setAbsolute=olympe.N.P.jo.prototype.Oi;olympe.N.P.jo.prototype.removeChild=olympe.N.P.jo.prototype.removeChild;olympe.N.P.jo.prototype.appendChild=olympe.N.P.jo.prototype.appendChild;olympe.ui={};olympe.ui.Ec=class{constructor(){}C(){}hf(){}gi(){return this}D(){}ea(){}O(){}R(){}wb(){}$m(){}W(){}$(){}};olympe.ui.wf=class extends olympe.host.Xi{constructor(a){super(a)}ra(){return this.wg()}};olympe.ui.wf.prototype.ra.K=new olympe.j.J(()=>olympe.N.wf,[]);olympe.ui.st=class{constructor(a,b,c,d,e){this.C=a;this.style=b||'normal';this.O=c||300;this.D=d||Object.create(null);this.id=e||olympe.la.cf()}qE(){return this.C}QA(){return this.style}zE(){return this.O}SA(){return this.D}ja(){return this.id}};olympe.ui.st.prototype.qE.K=new olympe.j.J(()=>String,[]);olympe.ui.st.prototype.QA.K=new olympe.j.J(()=>String,[]);olympe.ui.st.prototype.zE.K=new olympe.j.J(()=>Number,[]);olympe.ui.st.prototype.SA.K=new olympe.j.J(()=>Object,[]);olympe.ui.ha={};olympe.ui.ha.Gy={y0:'fill',dt:'contain',et:'cover'};olympe.ui.ha.df={Wf:'manual',Em:'topleft',jh:'top',Fm:'topright',uG:'centerleft',Tb:'center',vG:'centerright',fm:'bottomleft',Ch:'bottom',bt:'bottomright'};olympe.ui.ha.Dh={Zs:'auto',Wf:'manual',dt:'contain',et:'cover'};olympe.ui.ha.vp={xz:'normal',wT:'multiply',rU:'screen',XQ:'darken',eT:'lighten',LU:'srcin',MU:'srcout',KU:'srcatop',yV:'xor'};olympe.ui.ha.qt={JU:'source_graphic',IU:'source_alpha',zQ:'background_image',yQ:'background_alpha',pR:'fill_paint',OU:'stroke_paint'};olympe.ui.ha.gz={xz:'normal',VR:'italic',l1:'oblique'};olympe.ui.ha.Ep={Wf:'manual',tQ:'auto_width',sQ:'auto_height',PF:'auto_width_height',FU:'smart_width',EU:'smart_height',GU:'smart_width_height'};olympe.ui.ha.Cb={Vf:'left',Tb:'center',zi:'right'};olympe.ui.ha.Qp={SG:'defaultaudio',TG:'defaultvideo',kH:'facingvideo',dH:'environmentvideo'};olympe.ui.ha.fw={nG:'butt',Ot:'round',CD:'square'};olympe.ui.ha.YC={ZF:'bevel',Ot:'round',hK:'miter'};olympe.ui.ha.GK={WT:'portrait',dT:'landscape'};olympe.ui.ha.$z={NONE:'none',NQ:'characters',uV:'words',sU:'sentences'};olympe.ui.ha.Lr={Zz:'text',IK:'password',aH:'email',UT:'phone',ET:'number'};olympe.ui.ha.vo={Mv:'clip',$G:'ellipsis',lH:'fade'};olympe.ui.ha.vc={jh:'top',Uc:'middle',Ch:'bottom'};olympe.ui.X={};olympe.ui.X.Event=class{constructor(a){this.ca=a}pE(){return this.ca}};olympe.ui.X.Event.prototype.pE.K=new olympe.j.J(()=>olympe.j.bc,[]);olympe.ui.X.mR=class{constructor(a,b,c,d){this.Im=a;this.LC=b;this.priority=void 0!==d?d:0;this.id=void 0!==c?c:olympe.la.tk();this.next=null}ja(){return this.id}Mg(){return this.next}dk(a){null!==this.next&&a.dk(this.next);this.next=a}};olympe.ui.X.Be=class{constructor(){this.first=null}Wd(){return this.first}contains(a){let b=this.first;for(;b;){if(b===a)return!0;b=b.Mg()}return!1}clear(){this.first=null}toString(){let a='',b=this.first;for(;b;)a+=(a?', ':'')+b.ja(),b=b.Mg();return'EventCallbackList('+a+')'}};function Sf(a,b,c){const d=olympe.j.bc.now();Q(a,()=>{olympe.j.Wa([b.pE()],e=>{const f=olympe.j.Qa(b);if(e.eP(d).valueOf()){e=[];let g=c.Wd();for(;null!==g;)e.push(g),g=g.Mg();for(const k of e)if(c.contains(k)&&!0===k.LC.run(k.Im.bind(null,f)))break}})})}function Tf(a,b,c,d,e,f){b=new olympe.ui.X.mR(b,olympe.j.yb(),c,d);let g=c=e.Wd();for(;c&&c.priority<d;)g=c,c=c.Mg();g?g.dk(b):e.first=b;olympe.j.yb().Ve(f.bind(a,b.ja()));return b.ja()}
|
|
665
665
|
function Uf(a,b){olympe.j.$b(a)&&(a=F(a));let c=null!==b?b.Wd():null;if(null!==c)if(c.ja()===a)null!==b.first&&(a=b.first.Mg(),b.first.next=null,b.first=a);else for(;null!==c.next;){b=c.Mg();if(b.ja()===a){a=c;null!==a.next&&(b=a.next.Mg(),a.next.next=null,a.next=b);break}c=b}}olympe.ui.X.qC=class extends olympe.ui.wf{constructor(a){super(a)}};olympe.ui.X.qe=class extends olympe.ui.X.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}HA(){return this.key}tX(){return this.char}hS(){return this.ctrlKey}jS(){return this.shiftKey}gS(){return this.altKey}iS(){return this.metaKey}preventDefault(){this.C instanceof KeyboardEvent&&this.C.preventDefault()}};olympe.ui.X.qe.C=8;olympe.ui.X.qe.T=46;olympe.ui.X.qe.Ia=9;olympe.ui.X.qe.ea=10;olympe.ui.X.qe.D=13;
|
|
666
666
|
olympe.ui.X.qe.R=27;olympe.ui.X.qe.BD=32;olympe.ui.X.qe.Oa=16;olympe.ui.X.qe.O=17;olympe.ui.X.qe.na=91;olympe.ui.X.qe.Ba=93;olympe.ui.X.qe.Ka=38;olympe.ui.X.qe.W=40;olympe.ui.X.qe.$=37;olympe.ui.X.qe.ca=39;olympe.ui.X.qe.Pa=90;h=olympe.ui.X.qe.prototype;h.HA.K=olympe.j.J.D;h.tX.K=olympe.j.J.R;h.hS.K=olympe.j.J.T;h.jS.K=olympe.j.J.T;h.gS.K=olympe.j.J.T;h.iS.K=olympe.j.J.T;olympe.ui.X.tg=class{Nj(){}Mj(){}Oj(){}jj(){}D(){}Ek(){}T(){}kj(){}O(){}};h=olympe.ui.X.tg.prototype;h.Nj.K=new olympe.j.J(()=>olympe.ui.X.qe,[]);h.Mj.K=new olympe.j.J(()=>olympe.ui.X.qe,[]);h.Oj.K=new olympe.j.J(()=>olympe.ui.X.qe,[]);h.jj.K=new olympe.j.J(()=>String,[]);h.Ek.K=new olympe.j.J(()=>String,[]);h.kj.K=new olympe.j.J(()=>String,[]);olympe.ui.X.ho=class extends olympe.ui.X.qC{constructor(a){super(a);this.W=this.ea=this.C=this.$=this.R=this.ca=null}Wc(a){return Q(this,()=>{const b=olympe.j.ub(olympe.ui.X.qe);a((c,d,e=!1,f=!1,g=!1,k=!1,l={})=>{I(b,new olympe.ui.X.qe(olympe.j.Ca(c),olympe.j.kc(d),olympe.j.jc(e),olympe.j.jc(f),olympe.j.jc(g),olympe.j.jc(k),olympe.j.bc.now(),l))});return b})}Nj(){null===this.ca&&(this.ca=this.Wc(function(a){this.ra().registerKeyPressed(a)}.bind(this)));return this.ca}Mj(){null===this.$&&(this.$=this.Wc(function(a){this.ra().registerKeyDown(a)}.bind(this)));
|
|
667
667
|
return this.$}Oj(){null===this.ea&&(this.ea=this.Wc(function(a){this.ra().registerKeyUp(a)}.bind(this)));return this.ea}jj(a,b,c){null===this.R&&(this.R=new olympe.ui.X.Be,Sf(this,this.Nj(),this.R));return Tf(this,a,b,c,this.R,this.D)}D(a){Uf(a,this.R)}Ek(a,b,c){null===this.C&&(this.C=new olympe.ui.X.Be,Sf(this,this.Mj(),this.C));return Tf(this,a,b,c,this.C,this.T)}T(a){Uf(a,this.C)}kj(a,b,c){null===this.W&&(this.W=new olympe.ui.X.Be,Sf(this,this.Oj(),this.W));return Tf(this,a,b,c,this.W,this.O)}O(a){Uf(a,
|
|
@@ -684,8 +684,8 @@ olympe.j.Za(olympe.ui.X.MouseEvent);this.Il(b=>{a.update(b)});return a.wa()}Wo(a
|
|
|
684
684
|
{this.ra().sn(d)}));null===this.R&&(this.R=new olympe.ui.X.Be,Sf(this,this.nc,this.R));return Tf(this,a,b,c,this.R,this.Dk)}Dk(a){this.R&&(Uf(a,this.R),null===this.R.first&&(this.R=null,this.nc&&(this.ra().Ub.mc()||this.ra().Wl(),this.nc=null)))}Rm(){const a=olympe.j.Za(olympe.ui.X.MouseEvent);this.lj(b=>{a.update(b)});return a.wa()}Ki(a,b,c){null===this.Qb&&(this.Qb=this.Ea(d=>{this.ra().tn(d)}));null===this.T&&(this.T=new olympe.ui.X.Be,Sf(this,this.Qb,this.T));return Tf(this,a,b,c,this.T,this.Wj)}Wj(a){this.T&&
|
|
685
685
|
(Uf(a,this.T),null===this.T.first&&(this.T=null,this.Qb&&(this.ra().Ub.mc()||this.ra().Xl(),this.Qb=null)))}Sm(){const a=olympe.j.Za(olympe.ui.X.MouseEvent);this.Ki(b=>{a.update(b)});return a.wa()}Xo(a,b,c){null===this.md&&Q(this,()=>{const d=olympe.j.jc,e=olympe.j.Ca,f=olympe.j.Za(olympe.ui.X.mk);this.md=f.wa();this.ra().xn((g,k,l,m,n,p,r,t,u,v,w,x)=>{g=new olympe.ui.X.mk(e(g),e(k),new olympe.j.ga(l,m),new olympe.j.ga(n,p),d(r),d(t),d(u),d(v),e(w),e(x),olympe.j.bc.now());f.update(g)})});null===this.ea&&
|
|
686
686
|
(this.ea=new olympe.ui.X.Be,Sf(this,this.md,this.ea));return Tf(this,a,b,c,this.ea,this.Dq)}Dq(a){this.ea&&(Uf(a,this.ea),null===this.ea.first&&(this.ea=null,this.md&&(this.ra().Ub.mc()||this.ra().am(),this.md=null)))}Tm(){const a=olympe.j.Za(olympe.ui.X.mk);this.Xo(b=>{a.update(b)});return a.wa()}Zg(a,b,c){null===this.Rc&&(this.Rc=this.Ea(d=>{this.ra().wn(d)}));null===this.ca&&(this.ca=new olympe.ui.X.Be,Sf(this,this.Rc,this.ca));return Tf(this,a,b,c,this.ca,this.Pg)}Pg(a){this.ca&&(Uf(a,this.ca),
|
|
687
|
-
null===this.ca.first&&(this.ca=null,this.Rc&&(this.ra().Ub.mc()||this.ra().$l(),this.Rc=null)))}Jo(){const a=olympe.j.Za(olympe.ui.X.MouseEvent),b=this.Zg(c=>{a.update(c)});olympe.j.
|
|
688
|
-
{a.update(olympe.j.ia.C)}),c=this.Zg(()=>{a.update(olympe.j.ia.ob)});olympe.j.
|
|
687
|
+
null===this.ca.first&&(this.ca=null,this.Rc&&(this.ra().Ub.mc()||this.ra().$l(),this.Rc=null)))}Jo(){const a=olympe.j.Za(olympe.ui.X.MouseEvent),b=this.Zg(c=>{a.update(c)});olympe.j.yb().Ve(()=>{this.Pg(b)});return a.wa()}Lh(){const a=olympe.j.Za(olympe.j.ia).update(olympe.j.ia.ob),b=this.lj(()=>{a.update(olympe.j.ia.C)}),c=this.Ki(()=>{a.update(olympe.j.ia.ob)});olympe.j.yb().Ve(()=>{this.Dk(b);this.Wj(c)});return a.wa()}en(){const a=olympe.j.Za(olympe.j.ia).update(olympe.j.ia.ob),b=this.nh(()=>
|
|
688
|
+
{a.update(olympe.j.ia.C)}),c=this.Zg(()=>{a.update(olympe.j.ia.ob)});olympe.j.yb().Ve(()=>{this.Ck(b);this.Pg(c)});return a.wa()}fn(){const a=olympe.j.Za(olympe.j.ia).update(olympe.j.ia.C),b=this.Zg(()=>{a.update(olympe.j.ia.C)}),c=this.nh(()=>{a.update(olympe.j.ia.ob)});olympe.j.yb().Ve(()=>{this.Ck(c);this.Pg(b)});return a.wa()}Gk(a,b,c){null===this.touches&&Vf(this);null===this.tb&&(this.tb=new olympe.ui.X.Be);return Tf(this,a,b,c,this.tb,this.To)}To(a){Uf(a,this.tb)}cp(a,b,c){null===this.touches&&
|
|
689
689
|
Vf(this);null===this.Pa&&(this.Pa=new olympe.ui.X.Be);return Tf(this,a,b,c,this.Pa,this.Gq)}Gq(a){Uf(a,this.Pa)}Fk(a,b,c){null===this.touches&&Vf(this);null===this.Ka&&(this.Ka=new olympe.ui.X.Be);return Tf(this,a,b,c,this.Ka,this.ij)}ij(a){Uf(a,this.Ka)}nn(a,b,c){null===this.touches&&Vf(this);null===this.Ia&&(this.Ia=new olympe.ui.X.Be);return Tf(this,a,b,c,this.Ia,this.So)}So(a){Uf(a,this.Ia)}Wm(){null===this.mg&&(this.mg=Wf(this,this.cp.bind(this)));return this.mg}Xm(){null===this.Bg&&(this.Bg=
|
|
690
690
|
Wf(this,this.Gk.bind(this)));return this.Bg}Vm(){null===this.vf&&(this.vf=Wf(this,this.Fk.bind(this)));return this.vf}Um(){null===this.uf&&(this.uf=Wf(this,this.nn.bind(this)));return this.uf}Zo(a,b,c){null===this.na&&Q(this,()=>{Xf(this)});null===this.Oa&&(this.Oa=new olympe.ui.X.Be);return Tf(this,a,b,c,this.Oa,this.Eq)}Eq(a){Uf(a,this.Oa)}Yo(a,b,c){null===this.na&&Q(this,()=>{Xf(this)});null===this.Ba&&(this.Ba=new olympe.ui.X.Be);return Tf(this,a,b,c,this.Ba,this.ln)}ln(a){Uf(a,this.Ba)}Lo(){null===
|
|
691
691
|
this.na&&Q(this,()=>{Xf(this)});return this.na}};olympe.ui.X.kw.Aa=[olympe.ui.X.pc];h=olympe.ui.X.kw.prototype;h.Go.K=new olympe.j.J(()=>olympe.ui.X.MouseEvent,[]);h.Pm.K=new olympe.j.J(()=>olympe.ui.X.MouseEvent,[]);h.Ho.K=new olympe.j.J(()=>olympe.ui.X.MouseEvent,[]);h.uk.K=new olympe.j.J(()=>olympe.ui.X.MouseEvent,[]);h.Io.K=new olympe.j.J(()=>olympe.ui.X.MouseEvent,[]);h.Rm.K=new olympe.j.J(()=>olympe.ui.X.MouseEvent,[]);h.Sm.K=new olympe.j.J(()=>olympe.ui.X.MouseEvent,[]);
|
|
@@ -765,7 +765,7 @@ a,()=>{const b=new olympe.ui.F.da.Aj;K(b.R,'grid-cell');K(b.C,'grid-cell');K(b.D
|
|
|
765
765
|
olympe.ui.F.da.jt.Fc='datepicker';h=olympe.ui.F.da.jt.prototype;h.CN.K=olympe.j.J.R;h.BN.K=olympe.j.J.W;h.sO.K=new olympe.j.J(()=>olympe.j.Color,[]);h.qS.K=new olympe.j.J(()=>olympe.j.Color,[]);h.EX.K=olympe.j.J.D;h.uO.K=new olympe.j.J(()=>olympe.j.Color,[]);h.tO.K=new olympe.j.J(()=>olympe.j.Color,[]);h.yN.K=new olympe.j.J(()=>olympe.j.Color,[]);h.IO.K=new olympe.j.J(()=>olympe.j.Color,[]);h.PO.K=new olympe.j.J(()=>olympe.j.Color,[]);h.OO.K=new olympe.j.J(()=>olympe.j.Color,[]);h.LO.K=olympe.j.J.D;
|
|
766
766
|
h.MO.K=olympe.j.J.D;h.JO.K=new olympe.j.J(()=>olympe.j.Color,[]);h.KO.K=olympe.j.J.D;h.NO.K=olympe.j.J.D;olympe.ui.F.nf=class extends olympe.ui.F.Element{constructor(a){super(a.C(olympe.N.F.nf,olympe.host.ab.jb.CL));a=a.D().hf();this.na=new olympe.j.ga(0,0);this.W=void 0;this.R=new olympe.ui.X.ho(this.fj());this.size=new olympe.j.ga;this.ea=this.ca=this.C=null;this.fj().xs((b,c)=>{this.size.oe(b);this.size.Ge(c)});this.Ma(a.gq());this.ah(a.jq(),olympe.ui.ha.Dh.Wf,olympe.ui.ha.df.Wf,a.iq(),a.hq())}fj(){return this.ra()}gi(a){this.fj().gi(a);return this}Xr(){this.fj().Xr();return this}Hw(a){this.fj().Hw(a);
|
|
767
767
|
return this}Sx(a){this.fj().Sx(a);return this}appendChild(a,b,c){void 0!==c&&a.setPosition(c);this.fj().appendChild(T(a),b);a.Ff(this);return this}removeChild(a){this.fj().removeChild(a);return this}clear(){this.fj().ng();return this}oa(){return this.size}Dd(){return this.size.qa()}De(){return this.size.sa()}yh(){return this.na}Nj(){return this.R.Nj()}jj(a,b,c){return this.R.jj(a,b,c)}D(a){this.R.D(a)}Mj(){return this.R.Mj()}Ek(a,b,c){return this.R.Ek(a,b,c)}T(a){this.R.T(a)}Oj(){return this.R.Oj()}kj(a,
|
|
768
|
-
b,c){return this.R.kj(a,b,c)}O(a){this.R.O(a)}rS(){void 0===this.W&&(this.W=olympe.j.ub(String),this.fj().hB(a=>{I(this.W,a)}));return this.W}XI(a){olympe.j.
|
|
768
|
+
b,c){return this.R.kj(a,b,c)}O(a){this.R.O(a)}rS(){void 0===this.W&&(this.W=olympe.j.ub(String),this.fj().hB(a=>{I(this.W,a)}));return this.W}XI(a){olympe.j.yb().Ve(()=>this.fj().T(a.ja()));var b=a.SA();const c=Object.keys(b);let d;if(1<=c.length)d=c[0],b=b[d],1<c.length&&console.warn('Multiple font files is currently not supported.');else throw Error('No url was provided for the font file.');this.fj().O(a.qE(),a.QA(),a.zE(),d,b,a.ja())}BF(a,b={}){const c=olympe.j.Qa;this.C||olympe.j.Ko().run(()=>
|
|
769
769
|
{this.C=new olympe.ui.F.cb;this.C.Zd(!0).Fd(!0).td(5).sd(5).Hc(5).Lc(5).eh(1E4).rd(!0);this.ca=olympe.j.Za(olympe.j.aa);M(this.ca,olympe.j.aa.ZERO);this.ea=olympe.j.Za(olympe.j.aa);M(this.ea,olympe.j.aa.ZERO);this.C.setPosition(new olympe.j.ga(this.ca.wa(),this.ea.wa()))});this.C.Eg(b.da||'');this.C.Jb(a);this.C.Ma(b.background||O());this.C.lb(b.H3||N());b.fontSize&&this.C.rb(b.fontSize);a=b.s3||1;const d=b.borderColor||N();this.C.Md(a,d);this.C.ib('pointer-events','none');b.position&&(a=olympe.j.Xa([b.position.qa(),
|
|
770
770
|
this.C.Dd(),this.oa().qa()],(e,f,g)=>tc(uc(olympe.j.aa.ZERO,e.za(f.Sa(10))),g.za(f)),olympe.j.aa),b=olympe.j.Xa([b.position.sa(),this.C.De(),this.oa().sa()],(e,f,g)=>tc(uc(olympe.j.aa.ZERO,e.za(f.Sa(5))),g.za(f)),olympe.j.aa),this.ca.repeat(a),this.ea.repeat(b));c(this.C.ns()).valueOf()&&(this.C.rd(!1),this.appendChild(this.C,'tooltip'))}yx(){this.C&&!olympe.j.Qa(this.C.ns()).valueOf()&&(this.C.rd(!0),this.removeChild('tooltip'))}Zx(a){this.fj().Zx(a);return this}};olympe.ui.F.nf.prototype.D.Rr=!0;
|
|
771
771
|
olympe.ui.F.nf.prototype.T.Rr=!0;olympe.ui.F.nf.prototype.O.Rr=!0;olympe.ui.F.nf.Aa=[olympe.ui.X.tg];h=olympe.ui.F.nf.prototype;h.fj.K=new olympe.j.J(()=>olympe.N.F.nf,[]);h.gi.K=olympe.j.J.C([]);h.Xr.K=olympe.j.J.C([]);h.Hw.K=olympe.j.J.C([]);h.Sx.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.oa.K=olympe.j.J.W;h.Dd.K=olympe.j.J.D;h.De.K=olympe.j.J.D;h.yh.K=olympe.j.J.W;h.Nj.K=new olympe.j.J(()=>olympe.ui.X.qe,[]);
|
|
@@ -777,33 +777,33 @@ b=>{T(this).qv(b.qa(),b.sa())});return this}NZ(a){T(this).qv(a,a);return this}eh
|
|
|
777
777
|
{for(const f of e)f.addedNodes.forEach(g=>{1===g.nodeType&&g===this.$m()&&(d.disconnect(),a(g))})});d.observe(b,{attributes:!1,childList:!0,characterData:!1,subtree:!1})}})}Ks(a){T(this).Ks(a)}};h=olympe.ui.F.mb.prototype;h.setPosition.K=olympe.j.J.C([]);h.be.K=olympe.j.J.W;h.qa.K=olympe.j.J.D;h.sa.K=olympe.j.J.D;h.Hb.K=olympe.j.J.C([]);h.oa.K=olympe.j.J.W;h.Dd.K=olympe.j.J.D;h.De.K=olympe.j.J.D;h.Xb.K=olympe.j.J.C([]);h.Md.K=olympe.j.J.C([]);h.Vq.K=olympe.j.J.C([]);h.dh.K=olympe.j.J.C([]);
|
|
778
778
|
h.JZ.K=olympe.j.J.C([]);h.setScale.K=olympe.j.J.C([]);h.NZ.K=olympe.j.J.C([]);h.eh.K=olympe.j.J.C([]);h.getParent.K=new olympe.j.J(()=>olympe.ui.F.Element,[]);h.Ff.K=olympe.j.J.C([]);h.yh.K=olympe.j.J.W;h.Zj.K=olympe.j.J.C([]);h.Eg.K=olympe.j.J.C([]);olympe.ui.F.Pv=class{constructor(){}Jb(){}Bb(){}vb(){}rb(){}Qd(){}lb(){}Yb(){}Vb(){}};olympe.ui.F.cb=class extends olympe.ui.F.mb{constructor(a,b){const c=new olympe.j.ga;super(olympe.ui.La.C(olympe.N.F.cb,olympe.host.ab.jb.BL),c);this.paddingTop=olympe.j.Za(olympe.j.aa).update(olympe.j.aa.ZERO);olympe.j.Wa([this.paddingTop],g=>{T(this).td(g.valueOf())});this.paddingBottom=olympe.j.Za(olympe.j.aa).update(olympe.j.aa.ZERO);olympe.j.Wa([this.paddingBottom],g=>{T(this).sd(g.valueOf())});this.paddingLeft=olympe.j.Za(olympe.j.aa).update(olympe.j.aa.ZERO);olympe.j.Wa([this.paddingLeft],
|
|
779
779
|
g=>{T(this).Hc(g.valueOf())});this.paddingRight=olympe.j.Za(olympe.j.aa).update(olympe.j.aa.ZERO);olympe.j.Wa([this.paddingRight],g=>{T(this).Lc(g.valueOf())});this.O=olympe.j.Ab(b);this.D=olympe.j.Za(olympe.j.ia);M(this.D,olympe.j.ia.ob);this.C=olympe.j.Za(olympe.j.kb);M(this.C,olympe.j.kc(olympe.ui.ha.vo.Mv));T(this).fi(this.C.wa());olympe.j.Wa([this.D,this.C],(g,k)=>{g.valueOf()?T(this).wv('pre-wrap'):k.valueOf()!==olympe.ui.ha.vo.Mv?T(this).wv('nowrap'):T(this).wv('pre')});this.T=olympe.j.Yc(void 0===
|
|
780
|
-
a);this.R=olympe.j.Yc(void 0===a);b=olympe.ui.La.D().Bu(this.O);olympe.ui.F.cb.prototype.ae.call(this,b);const d=void 0!==a?a:b.oa();let e=null;const f=olympe.j.
|
|
780
|
+
a);this.R=olympe.j.Yc(void 0===a);b=olympe.ui.La.D().Bu(this.O);olympe.ui.F.cb.prototype.ae.call(this,b);const d=void 0!==a?a:b.oa();let e=null;const f=olympe.j.yb().re(()=>{e=new olympe.j.ga;T(this).lp((g,k)=>{e.oe(g);e.Ge(k)})});olympe.j.Wa([this.T,this.R],(g,k)=>{g=g.valueOf();k=k.valueOf();T(this).Zd(g);T(this).Fd(k);g||k?(null===e&&f(),g?c.oe(e.qa().Sa(this.paddingLeft.wa()).Sa(this.paddingRight.wa())):c.oe(d.qa()),k?c.Ge(e.sa().Sa(this.paddingTop.wa()).Sa(this.paddingBottom.wa())):c.Ge(d.sa())):
|
|
781
781
|
(T(this).Yq(),e=null,c.oe(d.qa()),c.Ge(d.sa()))})}Jb(a){T(this).Jb(a);return this}Bb(a){T(this).Bb(a);return this}vb(a){T(this).vb(a);return this}rb(a){T(this).rb(a);return this}Qd(a){T(this).Qd(a);return this}lb(a){T(this).lb(olympe.j.cg(a,b=>b.ii()));return this}fo(a){olympe.j.Og(a)?this.D.repeat(a):this.D.update(a);return this}fi(a){olympe.j.Og(a)?this.C.repeat(a):this.C.update(a);return this}Vb(a){T(this).Vb(a);return this}Yb(a){T(this).Yb(a);return this}Zd(a){K(this.T,a);return this}Fd(a){K(this.R,
|
|
782
782
|
a);return this}ak(a){T(this).ak(a);return this}Hc(a){olympe.j.Og(a)?this.paddingLeft.repeat(a):('number'===typeof a&&(a=olympe.j.Ca(a)),this.paddingLeft.update(a));return this}Lc(a){olympe.j.Og(a)?this.paddingRight.repeat(a):('number'===typeof a&&(a=olympe.j.Ca(a)),this.paddingRight.update(a));return this}td(a){olympe.j.Og(a)?this.paddingTop.repeat(a):('number'===typeof a&&(a=olympe.j.Ca(a)),this.paddingTop.update(a));return this}sd(a){olympe.j.Og(a)?this.paddingBottom.repeat(a):('number'===typeof a&&
|
|
783
783
|
(a=olympe.j.Ca(a)),this.paddingBottom.update(a));return this}Ql(a){olympe.j.Wa([a],b=>{T(this).Ql(b.valueOf())});return this}Eg(a){K(this.O,a);return this}ae(a){a&&(super.ae(a),this.rb(a.yI()),this.Bb(a.Ei()),this.vb(a.Di()),this.Qd(a.Cl()),this.sd(a.zI()),this.Hc(a.AI()),this.Lc(a.BI()),this.td(a.CI()),this.lb(a.DI()),this.Vb(a.EI()),this.Yb(a.FI()))}};olympe.ui.F.cb.Aa=[olympe.ui.F.Pv];h=olympe.ui.F.cb.prototype;h.Jb.K=olympe.j.J.C([]);h.Bb.K=olympe.j.J.C([]);h.vb.K=olympe.j.J.C([]);h.rb.K=olympe.j.J.C([]);
|
|
784
784
|
h.Qd.K=olympe.j.J.C([]);h.lb.K=olympe.j.J.C([]);h.fo.K=olympe.j.J.C([]);h.Vb.K=olympe.j.J.C([]);h.Yb.K=olympe.j.J.C([]);h.Zd.K=olympe.j.J.C([]);h.Fd.K=olympe.j.J.C([]);h.ak.K=olympe.j.J.C([]);h.Hc.K=olympe.j.J.C([0]);h.Lc.K=olympe.j.J.C([0]);h.td.K=olympe.j.J.C([0]);h.sd.K=olympe.j.J.C([0]);h.Ql.K=olympe.j.J.C([0]);h.Eg.K=olympe.j.J.C([]);function dg(a,b,c){a.O().appendChild(T(b),c);b.Ff(a)}function eg(a,b){a.O().$(b)}olympe.ui.F.de=class extends olympe.ui.F.mb{constructor(a){super(olympe.ui.La.C(olympe.N.F.de,olympe.host.ab.jb.Tz),a)}O(){return this.te()}appendChild(){}removeChild(){}Tr(){this.O().Tr();return this}};function fg(a){const b=olympe.j.Qa(a.na),c=olympe.j.Qa(a.ca),d=olympe.j.Qa(a.ea),e=olympe.ui.La.W(a,'getScrollbarThicknessX'),f=olympe.ui.La.W(a,'getScrollbarThicknessY');a.md.update(b&&c?e:0);a.uf.update(b&&d?f:0)}function gg(a,b){a.te().uB(b.qa());a.te().vB(b.sa())}
|
|
785
785
|
olympe.ui.F.wd=class extends olympe.ui.F.mb{constructor(a){super(olympe.ui.La.C(olympe.N.F.wd,olympe.host.ab.jb.DL),a);this.W=null;this.na=M(olympe.j.Za(olympe.j.ia),olympe.j.ia.ob);this.ca=M(olympe.j.Za(olympe.j.ia),olympe.j.ia.ob);this.ea=M(olympe.j.Za(olympe.j.ia),olympe.j.ia.ob);this.md=M(olympe.j.Za(olympe.j.aa),olympe.j.aa.ZERO);this.uf=M(olympe.j.Za(olympe.j.aa),olympe.j.aa.ZERO);olympe.j.Wa([this.na,this.ca,this.ea],()=>{ad(()=>fg(this),0)});this.Li(()=>{fg(this)})}Pd(a){this.te().Pd(T(a));
|
|
786
786
|
a.Ff(this)}ou(){this.te().ou()}Ls(a){this.te().Ls(a);olympe.j.$b(a)?this.ca.repeat(a):this.ca.update(a)}rv(a){this.te().rv(a);olympe.j.$b(a)?this.ea.repeat(a):this.ea.update(a)}Ms(a){this.te().Ms(a);olympe.j.$b(a)?this.na.repeat(a):this.na.update(a)}jy(a){this.te().jy(a.AB())}T(){null===this.W&&Q(this,()=>{this.W=new olympe.j.ga(0,0);this.te().iB((a,b)=>{this.W.oe(a);this.W.Ge(b)})});return this.W}};olympe.ui.F.wd.prototype.T.K=olympe.j.J.W;olympe.ui.F.hr=class{Kw(){}oa(){}PA(){}zA(){}};olympe.ui.F.hr.prototype.Kw.K=new olympe.j.J(()=>olympe.ui.F.mb,[]);olympe.ui.F.hr.prototype.oa.K=olympe.j.J.W;olympe.ui.F.hr.prototype.PA.K=olympe.j.J.D;olympe.ui.F.hr.prototype.zA.K=olympe.j.J.D;olympe.ui.F.ZC=class{constructor(a,b,c){this.C=new olympe.j.Ce(olympe.ui.F.mb);this.ca=olympe.j.ma(0);this.$=olympe.j.ma(Number.MAX_SAFE_INTEGER);this.T=olympe.j.ma(a);const d=this.C.Kh(this.C.Sc().za(1));this.D=olympe.j.Yc(void 0!==b?b:!1);this.XA=olympe.j.Yc(!1);this.Uw=olympe.j.ub(olympe.ui.F.da.fd);this.Tw=olympe.j.ma();this.O=olympe.j.$a(this.XA,()=>this.Tw,()=>olympe.j.Ca(0),olympe.j.aa);this.animation=olympe.j.ub(olympe.ui.F.Gm);this.nA=olympe.j.ma(0);this.R=!1;this.W=olympe.j.$a(this.D,()=>
|
|
787
|
-
new olympe.j.ga(olympe.j.pj(d.qa().Sa(d.Dd()),0),a),()=>new olympe.j.ga(a,olympe.j.pj(d.sa().Sa(d.De()),0)),olympe.j.ga);olympe.ui.F.ZC.prototype.ea.call(this,olympe.ui.La.D().JA(c))}Kw(a,b,c,d,e,f,g){const k=e.gf(d),l=olympe.j.Ca(0),m=olympe.j.Za(olympe.ui.F.mb);olympe.j.Wa([k],w=>{0<w.valueOf()?(w=this.C.Kh(w.valueOf()-1),olympe.j.Wa([w],x=>{m.update(x)})):(w=olympe.j.
|
|
787
|
+
new olympe.j.ga(olympe.j.pj(d.qa().Sa(d.Dd()),0),a),()=>new olympe.j.ga(a,olympe.j.pj(d.sa().Sa(d.De()),0)),olympe.j.ga);olympe.ui.F.ZC.prototype.ea.call(this,olympe.ui.La.D().JA(c))}Kw(a,b,c,d,e,f,g){const k=e.gf(d),l=olympe.j.Ca(0),m=olympe.j.Za(olympe.ui.F.mb);olympe.j.Wa([k],w=>{0<w.valueOf()?(w=this.C.Kh(w.valueOf()-1),olympe.j.Wa([w],x=>{m.update(x)})):(w=olympe.j.yb(),olympe.j.gn(w)&&ic(w),m.clear())});const n=m.wa(),p=olympe.j.$a(this.D,()=>new olympe.j.ga(qc(n.qa().Sa(n.Dd()),l),l),()=>new olympe.j.ga(l,
|
|
788
788
|
qc(n.sa().Sa(n.De()),l)),olympe.j.ga),r=olympe.j.$a(this.D,()=>new olympe.j.ga(p.qa().Sa(this.O),p.sa()),()=>new olympe.j.ga(p.qa(),p.sa().Sa(this.O)),olympe.j.ga),t=new olympe.ui.F.ye(olympe.j.$a(this.D,()=>new olympe.j.ga(this.O,this.T),()=>new olympe.j.ga(this.T,this.O),olympe.j.ga));t.ae(this.Uw);t.rd(k.Se(0));t.setPosition(p);a.appendChild(t,'divider-'+d);const u=b(c,d,k,e,g);u.setPosition(r);a.appendChild(u,d);const v=F(this.animation);v&&(u.og(0),olympe.j.Wa([k],w=>{const x=F(this.nA).valueOf()*
|
|
789
|
-
w.valueOf();0<x&&!this.R?ad(()=>{w.valueOf()>=e.ej()-1&&(this.R=!0);u.og(1);v.Xj(u,a)},x):(u.og(1),v.Xj(u,a))}));this.C.set(d,u,k);olympe.j.
|
|
789
|
+
w.valueOf();0<x&&!this.R?ad(()=>{w.valueOf()>=e.ej()-1&&(this.R=!0);u.og(1);v.Xj(u,a)},x):(u.og(1),v.Xj(u,a))}));this.C.set(d,u,k);olympe.j.yb().Ve(()=>{f.ag()||(this.C.remove(d),0===this.C.ej()&&(this.R=!1))});return u}oa(){return this.W}PA(){return this.ca}zA(){return this.$}qB(a){K(this.Uw,a)}pB(a){K(this.Tw,a)}jv(a){K(this.XA,a)}YI(a){K(this.animation,a)}ZI(a){K(this.nA,a)}ea(a){this.qB(a.VN());this.pB(a.UN());this.jv(a.XA());this.YI(a.$r());this.ZI(a.nA)}};olympe.ui.F.ZC.Aa=[olympe.ui.F.hr];
|
|
790
790
|
h=olympe.ui.F.ZC.prototype;h.Kw.K=new olympe.j.J(()=>olympe.ui.F.mb,[]);h.oa.K=olympe.j.J.W;h.PA.K=olympe.j.J.D;h.zA.K=olympe.j.J.D;h.qB.K=olympe.j.J.C([]);h.pB.K=olympe.j.J.C([]);h.jv.K=olympe.j.J.C([]);h.YI.K=olympe.j.J.C([]);h.ZI.K=olympe.j.J.C([]);olympe.ui.F.vC=class extends olympe.ui.F.wd{constructor(a,b,c,d,e,f,g,k){super();this.data=olympe.j.ub(olympe.j.Xg);this.We=olympe.j.ub(olympe.ui.F.vC.D);this.R=olympe.j.ub(olympe.ui.F.hr);this.content=new olympe.ui.F.Ye(d.oa());this.Ka=olympe.j.ub(String);this.Gb=olympe.j.Ab(olympe.ui.F.da.mf.C.yD);this.pb=olympe.j.Ab(olympe.ui.F.da.mf.C.az);this.zb=olympe.j.Ab(olympe.ui.F.da.mf.C.nw);this.Pa=olympe.j.Yc(f);this.Ia=olympe.j.Yc(g);this.C=new olympe.j.Map;this.O=new olympe.j.Map;this.D=olympe.j.ub(olympe.j.ga);
|
|
791
791
|
this.aJ(c);this.Pd(this.content);this.RP(d);this.$I(b);this.LP(void 0===e?void 0!==a?olympe.ui.ha.Ep.Wf:olympe.ui.ha.Ep.PF:e);K(this.D,a);super.Hb(oc(this.Ka,l=>{switch(l.valueOf()){case olympe.ui.ha.Ep.tQ:return new olympe.j.ga(this.R.oa().qa(),this.D.sa());case olympe.ui.ha.Ep.sQ:return new olympe.j.ga(this.D.qa(),this.R.oa().sa());case olympe.ui.ha.Ep.PF:return this.R.oa();case olympe.ui.ha.Ep.FU:return new olympe.j.ga(this.R.oa().qa().Cn(this.D.qa()),this.D.sa());case olympe.ui.ha.Ep.EU:return new olympe.j.ga(this.D.qa(),
|
|
792
792
|
this.R.oa().sa().Cn(this.D.sa()));case olympe.ui.ha.Ep.GU:return new olympe.j.ga(this.R.oa().qa().Cn(this.D.qa()),this.R.oa().sa().Cn(this.D.sa()));default:return a}},null,olympe.j.ga));olympe.ui.F.vC.prototype.ae.call(this,olympe.ui.La.D().BA(k));olympe.j.Wa([this.data],l=>{this.C.ri(l.Fe())});olympe.j.hi([this.data,this.We,this.R,this.Ka],(l,m,n)=>{l.forEach((p,r,t)=>{const u=olympe.j.Ab(),v=n.Kw(this.content,m,p,r,t,this,u),w=olympe.j.Qa(this.Pa);void 0!==w&&w.valueOf()&&v.Xc(x=>{void 0===this.C.Lj(r)?
|
|
793
793
|
(x.mz().valueOf()&&olympe.j.Qa(this.Ia).valueOf()||(this.C.clear(),this.O.clear()),this.C.set(r,p),this.O.set(r,r)):!x.mz().valueOf()&&1<this.C.ej()?(this.C.clear(),this.O.clear(),this.C.set(r,p),this.O.set(r,r)):x.mz().valueOf()?(this.O.remove(r),this.C.remove(r)):(this.C.clear(),this.O.clear())});K(u,olympe.j.$a(this.C.has(r),()=>this.Gb,()=>olympe.j.$a(t.gf(r).Bx(2).Se(0),()=>this.pb,()=>this.zb,olympe.j.kb),olympe.j.kb))})})}$I(a){K(this.data,a)}aJ(a){K(this.We,a)}RP(a){K(this.R,a)}LP(a){K(this.Ka,
|
|
794
794
|
a)}Ql(a){K(this.Pa,a);return this}AZ(a){K(this.Ia,a);return this}OX(){return this.O}sS(){return this.O.Wd()}PX(){return this.C}tS(){return this.C.Wd()}JP(a){K(this.pb,a)}TP(a){K(this.zb,a)}XP(a){K(this.Gb,a)}Hb(a){K(this.D,a);return this}hZ(){F(this.Ia).valueOf()&&this.data.Bi((a,b)=>{this.C.set(b,a);this.O.set(b,b)});return this}eW(){this.C.clear();this.O.clear();return this}ae(a){super.ae(a);this.JP(a.D());this.TP(a.O());this.XP(a.R())}};h=olympe.ui.F.vC.prototype;h.$I.K=olympe.j.J.C([]);
|
|
795
|
-
h.aJ.K=olympe.j.J.C([]);h.RP.K=olympe.j.J.C([]);h.LP.K=olympe.j.J.C([]);h.Ql.K=olympe.j.J.C([]);h.AZ.K=olympe.j.J.C([]);h.OX.K=new olympe.j.J(()=>olympe.j.Map,[]);h.sS.K=new olympe.j.J(()=>String,[]);h.PX.K=new olympe.j.J(()=>olympe.j.Map,[]);h.tS.K=new olympe.j.J(()=>Object,[]);h.JP.K=olympe.j.J.C([]);h.TP.K=olympe.j.J.C([]);h.XP.K=olympe.j.J.C([]);h.Hb.K=olympe.j.J.C([]);h.hZ.K=olympe.j.J.C([]);h.eW.K=olympe.j.J.C([]);olympe.ui.F.tt=class extends olympe.ui.F.wd{constructor(a,b,c,d,e=0,f=!1){super();this.D=olympe.j.
|
|
795
|
+
h.aJ.K=olympe.j.J.C([]);h.RP.K=olympe.j.J.C([]);h.LP.K=olympe.j.J.C([]);h.Ql.K=olympe.j.J.C([]);h.AZ.K=olympe.j.J.C([]);h.OX.K=new olympe.j.J(()=>olympe.j.Map,[]);h.sS.K=new olympe.j.J(()=>String,[]);h.PX.K=new olympe.j.J(()=>olympe.j.Map,[]);h.tS.K=new olympe.j.J(()=>Object,[]);h.JP.K=olympe.j.J.C([]);h.TP.K=olympe.j.J.C([]);h.XP.K=olympe.j.J.C([]);h.Hb.K=olympe.j.J.C([]);h.hZ.K=olympe.j.J.C([]);h.eW.K=olympe.j.J.C([]);olympe.ui.F.tt=class extends olympe.ui.F.wd{constructor(a,b,c,d,e=0,f=!1){super();this.D=olympe.j.yb();this.data=b;this.Qb=c;this.We=d;this.pb=f||!1;this.R=olympe.j.createNode(olympe.j.aa);this.Ka=olympe.j.createNode(olympe.j.aa);this.scrollWidth=a.qa();this.Rc=a.sa();this.O=olympe.j.createNode(Number);this.Pa=olympe.j.createNode(Number);olympe.j.Wa([this.Ka,this.scrollWidth],(l,m)=>{m=m.valueOf();const n=Math.max(1,Math.floor(m/l));Zb(this.Pa,(m-l*n)/(n+1));Zb(this.O,n)},'ForEachLimited itemLineSize and scrollWidth');
|
|
796
796
|
olympe.j.cg(c,l=>{const m=this.data.Kh(0);olympe.j.$b(m)&&nc(m,l);l=this.We(m,0,olympe.j.ia.ob).oa();jc(this.R,l.sa().Sa(e).Ub);jc(this.Ka,l.qa().Ub)});this.Ia=olympe.j.Za(olympe.j.aa);this.Gb=olympe.j.Za(olympe.j.aa);olympe.j.Wa([this.Rc,this.R,this.O,this.data.Sc()],(l,m,n,p)=>{this.D.ag()||(l=l.valueOf(),p=p.valueOf(),l=Math.min(Math.ceil(l/m)+2,Math.ceil(p/n))*m,gc(this.Ia.C),this.Gb.update(olympe.j.Ca(l)),m=n*Math.ceil(l/m),m=isNaN(m)?Infinity:m,this.Ia.update(olympe.j.Ca(Math.max(0,Math.min(p,
|
|
797
797
|
m)))))},'ForEachLimited count process flow');const g=olympe.j.Xa([this.R,this.data.Sc(),this.O,e],(l,m,n,p)=>olympe.j.Ca(Math.max(0,l*Math.ceil(m.valueOf()/n)-p)),olympe.j.aa);this.content=new olympe.ui.F.Ye(new olympe.j.ga(a.qa(),g));this.C=[];this.selected=new olympe.j.Map(c);olympe.j.Wa([this.Ia],l=>{if(!this.D.ag()){var m=l.valueOf(),n=this.O.qg,p=this.C.length,r=Math.floor(p/n),t=p%n,u=olympe.j.Qa(this.data);this.D.run(()=>{var v=u?u.ej():0;if(p<m){var w=Math.ceil(m/n);for(var x=r;x<w;x++)for(let y=
|
|
798
798
|
x===r?t:0;y<n;y++){const B=x*n+y;if(B>=v)break;const H=new olympe.j.ee(`ForEachLimitedTile[${x}]`),G=H.run(()=>new hg(this.We,this.Qb,this.vq.bind(this)));this.C[B]=G;this.content.appendChild(G.R,G.ja());H.run(()=>olympe.j.$a(this.pb,()=>G.R.Xc(this.zb.bind(this,G))))}}else{for(v=p;v>m;v--)w=this.C[v-1],x=w.ja(),this.content.removeChild(x),w.destroy();this.C.length=m}})}});const k=this.T().sa();olympe.j.Wa([this.data,this.data.Sc()],l=>{if(!this.D.ag()){var m=0,n=!0;olympe.j.Wa([this.R,this.Ka,this.Gb,
|
|
799
799
|
k,this.Ia],(p,r,t,u,v)=>{if(!this.D.ag()){var w=olympe.j.Qa(g,-1).valueOf();if(u.valueOf()>w&&0<w)K(k,olympe.j.aa.ZERO);else{v=v.valueOf();if(!(0>=t.valueOf())){w=Math.floor(u.valueOf()/t.valueOf());u=Math.floor(u.valueOf()%t.valueOf()/p);var x=this.O.qg,y=this.Pa.qg,B=v!==m;for(let G=0,R=Math.ceil(this.C.length/x);G<R;G++){var H=olympe.j.Qa(this.C[G*x].O.wa()).valueOf();const fa=w+(G<u?1:0),Sa=fa*t.valueOf()+G*p;if(B&&(G+1)*x>m||n||H!==Sa){H=G===Math.floor(v/x)?v%x:x;for(let ta=0;ta<H;ta++){const Ob=
|
|
800
800
|
G*x+ta;if(!n&&B&&Ob<m)continue;const J=fa*v+Ob,V=this.C[Ob];ig(V,()=>{olympe.j.Wa([l.Kh(J)],Ja=>{V.O.update(olympe.j.Ca(Sa));V.W.update(olympe.j.Ca(ta*r+(ta+1)*y));var ua=V,Ta=l.vl(J),Wa=J;Ta!==ua.C&&(ua.C=Ta,K(ua.T,Ja),K(ua.$,Wa),K(ua.selected,ua.vq(Ta)))},`ForEachLimited Tile update object in rank ${J} flow`)})}}}}m=v;n=!1}}})}});olympe.j.Wa([this.Pa,this.O],(l,m)=>{if(!this.D.ag()){var n=this.Ka.qg,p=this.R.qg;for(let r=0,t=this.C.length;r<t;r++){const u=r%m,v=this.C[r];v.W.update(olympe.j.Ca(n*
|
|
801
|
-
u+l*(u+1)));v.O.update(olympe.j.Ca(Math.floor(r/m)*p))}}});this.data.forEach((l,m)=>olympe.j.
|
|
801
|
+
u+l*(u+1)));v.O.update(olympe.j.Ca(Math.floor(r/m)*p))}}});this.data.forEach((l,m)=>olympe.j.yb().onDestroy(()=>{this.selected.remove(m)}));this.Hb(a);this.Pd(this.content)}ld(){return this.selected}hc(){return this.content.oa()}vq(a){return void 0!==this.selected.Lj(a)}vf(a){'string'===typeof a&&(a=[a]);if(a instanceof Array||a instanceof olympe.j.Pk){this.selected.clear();const b=this.C;for(let c=0,d=b.length;c<d;c++)K(b[c].selected,!1);a.forEach(c=>{for(let d=0,e=b.length;d<e;d++)if(c===b[d].C){this.zb(b[d]);
|
|
802
802
|
break}})}return this}zb(a){if(olympe.j.Qa(this.pb).valueOf()){var b=olympe.j.Qa(!1).valueOf(),c=a.C,d=this.selected;if(void 0!==d.Lj(c))K(a.selected,!1),d.remove(c);else{var e=olympe.j.Qa(d.Zm());if(!b&&void 0!==e){d.remove(e);b=this.C;for(let f=0,g=b.length;f<g;f++)if(b[f].C===e){K(b[f].selected,!1);break}}olympe.j.us([this.data.get(c)],f=>{d.set(c,f);K(a.selected,!0)})}}}};function ig(a,b){a.ca.Do();a.ca.run(b)}
|
|
803
|
-
class hg{constructor(a,b,c){this.id=olympe.la.oN('ForEachLimited_row');this.D=olympe.j.
|
|
803
|
+
class hg{constructor(a,b,c){this.id=olympe.la.oN('ForEachLimited_row');this.D=olympe.j.yb();this.T=olympe.j.ub();olympe.j.Wa([b],d=>{nc(this.T,d)});this.C='';this.vq=c;this.$=olympe.j.ub(Number);this.ca=new olympe.j.ee('Rank listener context',this.D);this.selected=olympe.j.Yc(olympe.j.ia.ob);this.R=a(this.T,this.$,this.selected);this.R.Zj(!0);this.W=olympe.j.Za(olympe.j.aa).update(olympe.j.aa.ZERO);this.O=olympe.j.Za(olympe.j.aa).update(olympe.j.aa.ZERO);this.R.setPosition(new olympe.j.ga(this.W.wa(),
|
|
804
804
|
this.O.wa()))}ja(){return this.id}destroy(){this.D&&(this.D.destroy(),this.D=null)}}olympe.ui.F.tt.prototype.ld.K=new olympe.j.J(()=>olympe.j.Map,[]);olympe.ui.F.tt.prototype.hc.K=olympe.j.J.W;olympe.ui.F.tt.prototype.vf.K=olympe.j.J.C([]);olympe.ui.F.lc=class extends olympe.ui.F.de{constructor(a,b,c){super();this.Qb=olympe.j.Ab(c);this.R=olympe.j.ma(0);this.uf=olympe.j.qd();this.ld=olympe.j.qd();this.Bk=olympe.j.qd();this.vf=olympe.j.qd();this.zb=olympe.j.qd();this.Gb=olympe.j.qd();this.Rc=olympe.j.qd();this.Gl=olympe.j.qd();this.mg=olympe.j.qd();this.Qo=olympe.j.ma();this.Bg=olympe.j.ma();this.md=olympe.j.ma();this.hc=olympe.j.qd();this.W=olympe.j.qd();this.Of=olympe.j.Yc(!1);this.Oe=olympe.j.Yc(!1);this.T=olympe.j.ma(0);this.pb=
|
|
805
805
|
olympe.j.ma(0);this.Pa=olympe.j.ma(0);this.ea=olympe.j.Za(olympe.j.ia).update(olympe.j.ia.ob);this.Ia=olympe.j.Ab('');c=this.Dd().za(this.R.hb(2));var d=this.De().za(this.R.hb(2));this.C=new olympe.ui.F.cb(new olympe.j.ga(20,d));this.label=new olympe.ui.F.cb(new olympe.j.ga(0,d));this.label.Zd(!0);this.label.ib('pointer-events','inherit');this.na=olympe.j.ma();this.ca=olympe.j.ma();this.D=olympe.j.Za(olympe.j.ia);this.D.update(olympe.j.ia.ob);this.Ka=olympe.j.Za(olympe.j.ia).update(olympe.j.ia.ob);
|
|
806
|
-
const e=olympe.ui.X.MouseEvent,f=this.nh(p=>{p.Nm().Sb(e.Jy)&&this.D.update(olympe.j.ia.C)}),g=this.Zg(p=>{p.Nm().Sb(e.Jy)&&this.D.update(olympe.j.ia.ob)}),k=this.Ki(()=>{this.D.update(olympe.j.ia.ob);this.Ka.update(olympe.j.ia.ob)}),l=this.lj(p=>{this.Ka.update(olympe.j.ia.C);p.fP(e.Jy).valueOf()&&this.D.update(olympe.j.ia.C)}),m=this.Xc(()=>{this.D.update(olympe.j.ia.ob)});olympe.j.
|
|
806
|
+
const e=olympe.ui.X.MouseEvent,f=this.nh(p=>{p.Nm().Sb(e.Jy)&&this.D.update(olympe.j.ia.C)}),g=this.Zg(p=>{p.Nm().Sb(e.Jy)&&this.D.update(olympe.j.ia.ob)}),k=this.Ki(()=>{this.D.update(olympe.j.ia.ob);this.Ka.update(olympe.j.ia.ob)}),l=this.lj(p=>{this.Ka.update(olympe.j.ia.C);p.fP(e.Jy).valueOf()&&this.D.update(olympe.j.ia.C)}),m=this.Xc(()=>{this.D.update(olympe.j.ia.ob)});olympe.j.yb().Ve(()=>{this.Ck(f);this.Pg(g);this.Wj(k);this.Dk(l);this.Vj(m)});const n=olympe.ui.La.D().Nm(this.Qb);d=(p,r,
|
|
807
807
|
t,u)=>olympe.j.Xa([this.ea.wa(),this.D.wa(),this.Ka.wa()],(v,w,x)=>v.valueOf()?t:w.valueOf()?r:x.valueOf()&&void 0!==u?u:p,olympe.j.Color);void 0!==b&&this.Jb(b);this.label.lb(d(this.W,this.Gb,this.zb,this.W));this.C.Jb(this.Ia);this.C.lb(d(this.W,this.Gb,this.zb,this.W));this.C.vb('FontAwesome');this.C.Vb(olympe.ui.ha.Cb.Tb);this.C.rd(this.Ia.Ii());b=olympe.j.$a(this.Ia.Ii(),()=>this.label.Dd(),()=>this.label.Dd().Sa(this.C.Dd()).Sa(this.Pa),olympe.j.aa);b=c.za(b).Ua(2);this.label.setPosition(new olympe.j.ga(this.R.Sa(b),
|
|
808
808
|
this.R));this.C.setPosition(new olympe.j.ga(this.label.be().qa().Sa(this.label.Dd()).Sa(this.Pa),this.R));dg(this,this.label,'label');dg(this,this.C,'icon');olympe.ui.F.lc.prototype.ae.call(this,n);olympe.ui.F.de.prototype.cd.call(this,((p,r,t,u)=>olympe.j.Xa([this.ea.wa(),this.D.wa(),this.Ka.wa()],(v,w,x)=>v.valueOf()?t:w.valueOf()?r:x.valueOf()&&void 0!==u?u:p,olympe.j.aa))(this.R,this.Qo,this.md,this.Bg));olympe.ui.F.mb.prototype.od.call(this,d(this.hc,this.Gl,this.Rc,this.mg));olympe.ui.F.mb.prototype.Ma.call(this,
|
|
809
809
|
d(this.uf,this.Bk,this.ld,this.vf));K(this.ca,void 0!==a?a.sa():n.oa().sa());olympe.ui.F.mb.prototype.Hb.call(this,new olympe.j.ga(this.na,this.ca));olympe.j.$a(this.Of,()=>{this.label.Hc(this.T);olympe.j.Qa(this.Ia.Ii()).valueOf()?(this.label.Lc(this.T),K(this.na,this.label.Dd())):(this.C.Lc(this.T),K(this.na,this.label.Dd().Sa(this.C.Dd()).Sa(this.Pa).Sa(this.T)))},()=>{this.label.Hc(olympe.j.aa.ZERO);this.label.Lc(olympe.j.aa.ZERO);this.C.Lc(olympe.j.aa.ZERO);K(this.na,void 0!==a?a.qa():n.oa().qa())});
|
|
@@ -827,8 +827,8 @@ olympe.j.ma(k);this.Oa=void 0===l?olympe.j.ma(0):olympe.j.ma(l);this.zb=void 0==
|
|
|
827
827
|
this.D);olympe.j.$a(this.Ka,()=>{var r=this.W.hb(this.na.Ua(this.W).za(this.C));const t=this.C.Sa(1);r=r.Ua(t);K(this.O,r.Sa(this.ca))},()=>{K(this.O,this.ca)});this.Ia=new olympe.j.ga(this.width.Sa(this.ea).Sa(this.Ba),this.height.Sa(this.Oa).Sa(this.zb))}Kw(a,b,c,d,e,f,g){f=e.gf(d);const k=b(c,d,f,e,g);olympe.j.Qa(e.Sc()).Sa(1).Se(olympe.j.Qa(this.R)).valueOf()||K(this.R,e.Sc());b=k.oa().qa().Sa(this.O);const l=k.oa().sa().Sa(this.O);b=olympe.j.Ji(f.Bx(this.D).hb(b).Sa(this.O),olympe.j.ma(300),
|
|
828
828
|
olympe.j.aa.Gh.Cp);f=olympe.j.Ji(f.Ua(this.D).za(.5).round().hb(l),olympe.j.ma(300),olympe.j.aa.Gh.Cp);olympe.j.$a(this.$.Sj(1).and(this.Oe),()=>{K(this.T,this.$.hb(l))},()=>{K(this.T,k.oa().sa())});k.setPosition(new olympe.j.ga(b.Sa(this.ea),f.Sa(this.Oa)));a.appendChild(k,d);return k}oa(){return this.Ia}PA(){return this.tb}zA(){return this.Pa}};olympe.ui.F.kK.Aa=[olympe.ui.F.hr];olympe.ui.F.kK.prototype.oa.K=olympe.j.J.W;olympe.ui.F.Ue=class extends olympe.ui.F.mb{constructor(a,b){super(olympe.ui.La.C(olympe.N.F.Ue,olympe.host.ab.jb.DD),b)}C(){return this.te()}};olympe.ui.F.Ue.prototype.C.K=new olympe.j.J(()=>olympe.N.F.Ue,[]);function kg(a,b){a.C[olympe.la.tk()]=b}
|
|
829
829
|
olympe.ui.F.Je=class extends olympe.ui.F.mb{constructor(a){super(olympe.ui.La.C(olympe.N.F.Je,olympe.host.ab.jb.AL));this.D=olympe.j.ia.C;this.C=Object.create(null);T(this).gB(b=>{const c=[];let d,e,f;d=0;for(e=b.length;d<e;d++)f=b[d],c.push(new olympe.ui.F.sH(f.content,f.name,f.mimeType,f.size));for(let g in this.C)this.C[g](c)});this.Hb(void 0!==a?a:new olympe.j.ga(400,200));this.Xc(()=>{const b=olympe.j.Qa(this.D);b&&b.valueOf()&&T(this).Rs()})}ju(a){T(this).ju(a);return this}bv(a){T(this).bv(a);
|
|
830
|
-
return this}Kx(a){this.D=a;return this}Df(a){T(this).Df(a);return this}Hs(a){T(this).Hs(a);return this}pu(){T(this).pu();return this}Rs(){T(this).Rs();return this}};h=olympe.ui.F.Je.prototype;h.ju.K=olympe.j.J.C([]);h.bv.K=olympe.j.J.C([]);h.Kx.K=olympe.j.J.C([]);h.Df.K=olympe.j.J.C([]);h.Hs.K=olympe.j.J.C([]);h.pu.K=olympe.j.J.C([]);h.Rs.K=olympe.j.J.C([]);olympe.ui.F.sH=class{constructor(a,b,c,d){this.content=a;this.name=b;this.mimeType=c;this.size=d}le(){return olympe.j.kc(`file:${this.name}`)}Ae(){return this.content}ix(a,b){void 0===a&&void 0===b||olympe.
|
|
831
|
-
b=fb(this.content);null==a||a(b);return Promise.resolve(b)}ds(a,b){void 0===a&&void 0===b||olympe.
|
|
830
|
+
return this}Kx(a){this.D=a;return this}Df(a){T(this).Df(a);return this}Hs(a){T(this).Hs(a);return this}pu(){T(this).pu();return this}Rs(){T(this).Rs();return this}};h=olympe.ui.F.Je.prototype;h.ju.K=olympe.j.J.C([]);h.bv.K=olympe.j.J.C([]);h.Kx.K=olympe.j.J.C([]);h.Df.K=olympe.j.J.C([]);h.Hs.K=olympe.j.J.C([]);h.pu.K=olympe.j.J.C([]);h.Rs.K=olympe.j.J.C([]);olympe.ui.F.sH=class{constructor(a,b,c,d){this.content=a;this.name=b;this.mimeType=c;this.size=d}le(){return olympe.j.kc(`file:${this.name}`)}Ae(){return this.content}ix(a,b){void 0===a&&void 0===b||olympe.fb.wb('olympe.ui.std.FileUploadItem.getContentAsBinary').warn('"onSuccess" and "onFailure" callbacks are deprecated in favor of the returned promise');null==a||a(this.content);return Promise.resolve(this.content)}yA(a,b){void 0===a&&void 0===b||olympe.fb.wb('olympe.ui.std.FileUploadItem.getContentAsString').warn('"onSuccess" and "onFailure" callbacks are deprecated in favor of the returned promise');
|
|
831
|
+
b=fb(this.content);null==a||a(b);return Promise.resolve(b)}ds(a,b){void 0===a&&void 0===b||olympe.fb.wb('olympe.ui.std.FileUploadItem.getContentUrl').warn('"onSuccess" and "onFailure" callbacks are deprecated in favor of the returned promise');b=`data:${this.mimeType};base64,${olympe.la.Jj().C(this.content)}`;null==a||a(b);return Promise.resolve(b)}QE(a,b){olympe.j.Wa([a],c=>{this.name=c.valueOf()});b(!0)}bb(){return olympe.j.kc(this.name)}lz(){return olympe.j.kc(this.name)}qx(){return olympe.j.kc(this.mimeType)}Sc(){return this.size}};
|
|
832
832
|
olympe.ui.F.sH.Aa=[olympe.j.File];olympe.ui.F.Sf=class{constructor(){}filter(){}};olympe.ui.F.Ce=class extends olympe.ui.F.wd{constructor(a,b,c,d){super(a);this.data=olympe.j.ub(olympe.j.Xg);this.C=olympe.j.ma();this.R=new olympe.j.ga(this.oa().qa(),this.C);this.We=olympe.j.ub(Object);this.content=new olympe.ui.F.Ye(new olympe.j.ga(this.oa().qa(),this.C.hb(this.data.Sc())));olympe.j.qd();olympe.j.qd();this.D=olympe.j.ub();this.O=olympe.j.ub(String);a&&this.Hb(a);b&&this.dJ(b);c&&this.OP(c);d&&this.eJ(d);this.Pd(this.content);oc(this.data,e=>{nc(this.D,e.Fe())});oc(this.We,e=>{this.data.forEach((f,
|
|
833
833
|
g,k)=>{k=k.gf(g);const l=e(this.R,f,g,k);l.Xc(()=>{I(this.D,f);I(this.O,g)});this.content.appendChild(l,g,new olympe.j.ga(0,k.hb(this.C)))})})}dJ(a){K(this.data,a)}OP(a){K(this.C,a)}eJ(a){K(this.We,a)}xS(){return this.O}yS(){return this.D}};h=olympe.ui.F.Ce.prototype;h.dJ.K=olympe.j.J.C([]);h.OP.K=olympe.j.J.C([]);h.eJ.K=olympe.j.J.C([]);h.xS.K=new olympe.j.J(()=>String,[]);h.yS.K=new olympe.j.J(()=>Object,[]);olympe.ui.F.Gm=class{constructor(){}run(){}Xj(){}C(){}};function lg(a){const b=a.na+String((new Date).getTime()+Math.random());olympe.j.$a(a.Pa,()=>{null!==a.D&&a.D.eh(olympe.ui.La.O(b+'_overlay').Sa(1));a.C.eh(olympe.ui.La.O(b).Sa(1));a.O=F(a.T);a.O.appendChild(a.C,a.na);const c=()=>{for(const e in a.zb)if(Object.prototype.hasOwnProperty.call(a.zb,e))a.zb[e]();a.SE();null!==a.D&&a.D.setPosition(new olympe.j.ga(0,0))},d=F(a.animation);null!==d?F(a.Ka).valueOf()?d.Xj(a.content,a.O,c):d.Xj(a.C,a.O,c):c();null!==a.D&&(a.O.rj(),a.O.appendChild(a.D,a.na+'_overlay'),
|
|
834
834
|
null!==d&&F(a.Ba).valueOf()&&d.Xj(a.D,a.O,c))},()=>{if(null!==a.O){const c=a.O;a.O=null;const d=()=>{olympe.ui.La.R(b+'_overlay');olympe.ui.La.R(b);c.removeChild(a.na);null!==a.D&&c.removeChild(a.na+'_overlay');a.SE();null!==a.D&&a.D.setPosition(new olympe.j.ga(0,0));for(const f in a.$)if(Object.prototype.hasOwnProperty.call(a.$,f))a.$[f]()},e=olympe.j.Qa(a.animation);if(null!==e&&void 0!==e){const f=null!==a.D&&olympe.j.Qa(a.Ba)===olympe.j.ia.C;F(a.Ka).valueOf()?e.C(a.content,c,f?void 0:d):e.C(a.C,
|
|
@@ -864,7 +864,7 @@ dg(this,this.ca,'animOverlay');void 0===a&&this.Hb(this.C.DA().oa());let b=null;
|
|
|
864
864
|
olympe.j.$a(this.D,()=>this.C.Ng().es(),()=>this.C.sf().es(),olympe.j.Color),olympe.j.$a(this.D,()=>this.C.Ng().fs(),()=>this.C.sf().fs(),olympe.j.ia));this.Ma(olympe.j.Xa([this.D],e=>e.valueOf()?this.C.Ng().gq():this.C.sf().gq(),olympe.j.Color));this.Xb(olympe.j.$a(this.D,()=>this.C.Ng().kq(),()=>this.C.sf().kq(),olympe.j.aa));this.Md(olympe.j.$a(this.D,()=>this.C.Ng().Ci(),()=>this.C.sf().Ci(),olympe.j.aa),olympe.j.$a(this.D,()=>this.C.Ng().tl(),()=>this.C.sf().tl(),olympe.j.Color));this.ah(olympe.j.$a(this.D,
|
|
865
865
|
()=>this.C.Ng().jq(),()=>this.C.sf().jq(),olympe.j.kb),olympe.ui.ha.Dh.Wf,olympe.ui.ha.df.Wf,olympe.j.$a(this.D,()=>this.C.Ng().iq(),()=>this.C.sf().iq(),olympe.j.ga),olympe.j.$a(this.D,()=>this.C.Ng().hq(),()=>this.C.sf().hq(),olympe.j.ga));this.R.Xb(olympe.j.$a(this.D,()=>this.C.rf().kq(),()=>this.C.tf().kq(),olympe.j.aa));this.R.Md(olympe.j.$a(this.D,()=>this.C.rf().Ci(),()=>this.C.tf().Ci(),olympe.j.aa),olympe.j.$a(this.D,()=>this.C.rf().tl(),()=>this.C.tf().tl(),olympe.j.Color));this.R.dh(olympe.j.$a(this.D,
|
|
866
866
|
()=>this.C.rf().gs(),()=>this.C.tf().gs(),olympe.j.ga),olympe.j.$a(this.D,()=>this.C.rf().hs(),()=>this.C.tf().hs(),olympe.j.aa),olympe.j.$a(this.D,()=>this.C.rf().js(),()=>this.C.tf().js(),olympe.j.aa),olympe.j.$a(this.D,()=>this.C.rf().es(),()=>this.C.tf().es(),olympe.j.Color),olympe.j.$a(this.D,()=>this.C.rf().fs(),()=>this.C.tf().fs(),olympe.j.ia));this.R.Ma(olympe.j.$a(this.D,()=>this.C.rf().gq(),()=>this.C.tf().gq(),olympe.j.Color));this.R.ah(olympe.j.$a(this.D,()=>this.C.rf().jq(),()=>this.C.tf().jq(),
|
|
867
|
-
olympe.j.kb),olympe.ui.ha.Dh.Wf,olympe.ui.ha.df.Wf,olympe.j.$a(this.D,()=>this.C.rf().iq(),()=>this.C.tf().iq(),olympe.j.ga),olympe.j.$a(this.D,()=>this.C.rf().hq(),()=>this.C.tf().hq(),olympe.j.ga));const c=this.W,d=this.Dd().za(this.R.Dd()).za(this.W);a=olympe.j.$a(this.D,()=>d,()=>c,olympe.j.aa);a=olympe.j.Ji(a,this.C.wA(),olympe.j.aa.Gh.jR);olympe.j.cg(this.D,()=>{this.ca.eh(1);const e=setTimeout(()=>{this.ca.eh(-1)},olympe.j.Qa(qc(this.C.wA(),200)).valueOf());olympe.j.
|
|
867
|
+
olympe.j.kb),olympe.ui.ha.Dh.Wf,olympe.ui.ha.df.Wf,olympe.j.$a(this.D,()=>this.C.rf().iq(),()=>this.C.tf().iq(),olympe.j.ga),olympe.j.$a(this.D,()=>this.C.rf().hq(),()=>this.C.tf().hq(),olympe.j.ga));const c=this.W,d=this.Dd().za(this.R.Dd()).za(this.W);a=olympe.j.$a(this.D,()=>d,()=>c,olympe.j.aa);a=olympe.j.Ji(a,this.C.wA(),olympe.j.aa.Gh.jR);olympe.j.cg(this.D,()=>{this.ca.eh(1);const e=setTimeout(()=>{this.ca.eh(-1)},olympe.j.Qa(qc(this.C.wA(),200)).valueOf());olympe.j.yb().Ve(clearTimeout.bind(null,
|
|
868
868
|
e))});rc(this.ea,a)}CJ(){const a=F(this.D);I(this.D,!(a&&a.valueOf()))}Ka(a,b){b=b?b:olympe.la.tk();this.T[b]||(this.T[b]=a);return b}Ia(a){delete this.T[a]}FA(){return this.D}Gf(a){olympe.j.Wa([a],b=>{K(this.D,b)});return this}Df(a){olympe.j.$b(a)?this.disabled.repeat(a):this.disabled.update(olympe.j.jc(a))}Ef(a){K(this.W,a);return this}wE(){return this.R}NW(){return this.C}};h=olympe.ui.F.Ie.prototype;h.CJ.K=olympe.j.J.C([]);h.FA.K=olympe.j.J.T;h.Gf.K=olympe.j.J.C([0]);h.Ef.K=olympe.j.J.C([]);
|
|
869
869
|
h.wE.K=new olympe.j.J(()=>olympe.ui.F.ye,[]);h.NW.K=new olympe.j.J(()=>olympe.ui.F.da.ki,[]);olympe.ui.F.pd=class extends olympe.ui.F.de{constructor(a,b,c,d){super(a);const e=olympe.ui.La.D().lx(d);this.na=olympe.j.ub(olympe.j.Pk,b);this.Gb=olympe.j.Ab();this.R=olympe.j.ed();this.zb=olympe.j.ed();this.ea=M(olympe.j.Za(olympe.j.aa,'DropDown.arrowIconPaddingRight'),olympe.j.Ca(10));this.W=M(olympe.j.Za(olympe.j.ia,'DropDown.displayOnTop'),olympe.j.ia.ob);this.Pa=M(olympe.j.Za(olympe.j.aa,'DropDown.arrowIconPaddingRight'),olympe.j.aa.ZERO);this.paddingLeft=olympe.j.ma(0);this.paddingRight=olympe.j.ma(0);
|
|
870
870
|
this.paddingTop=olympe.j.ma(0);this.paddingBottom=olympe.j.ma(0);this.Ka=olympe.j.Ab();this.Qb=olympe.j.Ab();this.hc=olympe.j.Ab();this.vf=olympe.j.ma();this.ld=olympe.j.ed();this.Ia=olympe.j.Ab();this.T=olympe.j.ub(Object);this.uf=olympe.j.Xa([this.T],()=>olympe.j.ia.C,olympe.j.ia,'hasSelectedValue',olympe.j.ia.ob);this.ca=new Map;this.C=M(olympe.j.Za(olympe.j.ia,'DropDown.isExpanded'),olympe.j.ia.ob);this.Rc=olympe.j.Ab(this.Ka);this.md=olympe.j.Ab();olympe.ui.F.pd.prototype.ae.call(this,e);olympe.j.Wa([this.na],
|
|
@@ -889,20 +889,20 @@ r);I(this.ea,p);for(let x=0;x<this.D.length;x++)this.D[x](r,p)}});olympe.j.$a(u,
|
|
|
889
889
|
c=F(this.pb),d=F(this.na);void 0!==b&&b.remove(a);void 0!==c&&c.remove(a);void 0!==d&&d.remove(a);return this}kZ(a){K(this.na,a);return this}mZ(a){K(this.Ia,a);return this}lZ(a){K(this.pb,a);return this}HS(a){this.D.push(a);return this}rZ(a){this.ca.appendChild(a,'footerContent');return this}FS(){return this.ea}GZ(a,b){a instanceof olympe.j.Proxy&&(a=F(a));I(this.T,a);rc(this.ea,this.values.get(a));void 0!==b&&!0!==b||gg(this.W,new olympe.j.ga(0,F(this.mg.be().sa())));for(b=0;b<this.D.length;b++)this.D[b](a,
|
|
890
890
|
F(this.ea));return this}GS(){return this.Pa}Ql(a){K(this.ld,a);return this}kX(){return this.R}Ds(a){I(this.md,a);return this}Hb(a){this.Ka=a;return this}Zd(a){K(this.Of,a);return this}Fd(a){K(this.Oe,a);return this}LJ(a){K(this.hc,a)}IJ(a){K(this.zb,a)}MJ(a){K(this.Rc,a)}ak(a){K(this.C,a);return this}JJ(a){K(this.Gb,a)}KJ(a){K(this.Qb,a)}ae(a){super.ae(a);this.LJ(a.YN());this.IJ(a.DN());this.MJ(a.EO());this.uf||this.ak(a.nO());this.JJ(a.LN());this.KJ(a.TN())}};h=olympe.ui.F.IH.prototype;h.FV.K=olympe.j.J.C([]);
|
|
891
891
|
h.cZ.K=olympe.j.J.C([]);h.kZ.K=olympe.j.J.C([]);h.mZ.K=olympe.j.J.C([]);h.lZ.K=olympe.j.J.C([]);h.HS.K=olympe.j.J.C([]);h.rZ.K=olympe.j.J.C([]);h.FS.K=new olympe.j.J(()=>Object,[]);h.GZ.K=olympe.j.J.C([]);h.GS.K=olympe.j.J.T;h.Ql.K=olympe.j.J.C([]);h.kX.K=new olympe.j.J(()=>olympe.ui.F.wd,[]);h.Ds.K=olympe.j.J.C([]);h.Hb.K=olympe.j.J.C([]);h.Zd.K=olympe.j.J.C([]);h.Fd.K=olympe.j.J.C([]);h.LJ.K=olympe.j.J.C([]);h.IJ.K=olympe.j.J.C([]);h.MJ.K=olympe.j.J.C([]);h.ak.K=olympe.j.J.C([]);h.JJ.K=olympe.j.J.C([]);
|
|
892
|
-
h.KJ.K=olympe.j.J.C([]);olympe.ui.F.Screen=class{constructor(){}render(){}};olympe.ui.F.Screen.prototype.render.K=new olympe.j.J(()=>olympe.ui.F.mb,[]);olympe.ui.F.Transition=class{constructor(a,b,c,d,e){this.D=a;this.C=b;this.animation=olympe.j.ub(olympe.ui.F.Gm);void 0!==e&&K(this.animation,e)}$r(){return this.animation}};olympe.ui.F.TL=class extends olympe.ui.F.de{constructor(a){super();this.V=olympe.ui.La.
|
|
892
|
+
h.KJ.K=olympe.j.J.C([]);olympe.ui.F.Screen=class{constructor(){}render(){}};olympe.ui.F.Screen.prototype.render.K=new olympe.j.J(()=>olympe.ui.F.mb,[]);olympe.ui.F.Transition=class{constructor(a,b,c,d,e){this.D=a;this.C=b;this.animation=olympe.j.ub(olympe.ui.F.Gm);void 0!==e&&K(this.animation,e)}$r(){return this.animation}};olympe.ui.F.TL=class extends olympe.ui.F.de{constructor(a){super();this.V=olympe.ui.La.wb();this.ea=new Map;this.na=new Map;this.D=new Map;this.C=new Map;this.nd=new Map;this.R=olympe.j.Za(olympe.j.kb);this.W=new Map;this.ca=new olympe.ui.F.ye(this.oa());this.T='storyboard_overlay_'+String((new Date).getTime()+Math.random()).replace(/[^0-9]/,'');this.Hb(a)}UW(){return this.R.wa()}ZD(a,b){this.ea.set(b,a);this.C.set(b,olympe.j.Yc(!1));this.na.set(b,olympe.j.$a(this.C.get(b),()=>{const c=this.ea.get(b);
|
|
893
893
|
let d=this.D.get(b);c?d||(d=c.render(this.oa(),void 0),d instanceof olympe.j.Proxy||(d=olympe.j.ub(olympe.ui.F.mb,d)),this.D.set(b,d)):this.V.warn(`Screen with id ${b} doesn't exist!`)},()=>{this.D.delete(b)},void 0,[],'If screen loaded '+b).Ub)}XD(a,b,c){this.W.set(c,new olympe.ui.F.Transition(a,b,c,void 0,void 0))}dZ(a){this.W.delete(a);return this}MP(){I(this.C.get('login'),olympe.j.jc(!0));this.na.get('login').run(()=>{dg(this,this.D.get('login'),'login')});this.R.update(olympe.j.kc('login'))}jB(a){const b=
|
|
894
894
|
olympe.ui.La,c=b.hf(),d=olympe.j.Qa,e=this.W.get(a);if(void 0===e)return this.V.warn('Transition with id '+a+" doesn't exist!"),this;const f=e.C,g='*'===e.D?F(this.R.wa()).valueOf():e.D;if(f===g)return this;I(this.C.get(f),olympe.j.jc(!0));a=this.D.get(f);const k=this.D.get(g),l=()=>{for(const n in this.C.keys()){const p=this.C.get(n);d(p).valueOf()&&n!==e.C&&!this.nd.has(e.C+n)&&K(p,olympe.j.jc(!1))}this.R.update(olympe.j.kc(f))},m=d(e.$r());void 0!==m&&null!==m?(dg(this,d(a),f),this.ca.eh(b.O(this.T)),
|
|
895
895
|
c.appendChild(this.ca,this.T),m.run(k,a,g,f,this,()=>{this.O().removeChild(g);b.R(this.T);c.removeChild(this.T);l()})):(this.O().removeChild(g),dg(this,d(a),f),l());return this}O(){return this.te()}};h=olympe.ui.F.TL.prototype;h.UW.K=olympe.j.J.R;h.ZD.K=olympe.j.J.C([]);h.XD.K=olympe.j.J.C([]);h.dZ.K=olympe.j.J.C([]);h.MP.K=olympe.j.J.C([]);h.jB.K=olympe.j.J.C([]);olympe.ui.F.Nb=class extends olympe.ui.F.mb{constructor(a,b){const c=olympe.j.ga,d=olympe.j.Color,e=olympe.j.Qa;super(olympe.ui.La.C(olympe.N.F.Nb,olympe.host.ab.jb.FL),a);this.W=olympe.j.Ab('');this.ea=olympe.j.Za(olympe.j.kb);this.fontSize=olympe.j.Za(olympe.j.aa);this.na=olympe.j.Za(olympe.j.aa);this.Pa=olympe.j.Za(d);this.backgroundColor=olympe.j.Za(d);this.Ia=null;this.pb=olympe.j.Ab(b);this.R=olympe.j.Za(olympe.j.Pk);this.Ka=olympe.j.Za(olympe.j.ia).update(olympe.j.ia.ob);this.ca=olympe.j.Za(olympe.j.Ce);
|
|
896
896
|
this.C=null;const f=this.oa().qa(),g=this.fontSize.wa(),k=l=>{const m=(new olympe.ui.F.cb(new c(f,this.fontSize.wa().Sa(4)))).Yb(olympe.ui.ha.vc.Uc).lb(this.Pa.wa()).Jb(l).Hc(5);m.rb(g).vb(this.ea.wa()).Bb(this.na.wa());m.nh(()=>{this.Ka.update(olympe.j.ia.C);this.Jb(e(l));this.rj();this.Ka.update(olympe.j.ia.ob)});m.lj(()=>{m.Ma(Hc().jE(.5))});m.Ki(()=>{m.Ma(Ic())});return m};olympe.j.Wa([super.xu(),this.R.wa().Sc()],(l,m)=>{0<m.valueOf()&&null===this.C&&l.valueOf()&&(Q(this,()=>{let n=new olympe.j.Ce(olympe.j.kb),
|
|
897
897
|
p=new olympe.j.Ce(olympe.j.kb);olympe.j.Wa([this.R.wa(),this.R.wa().Sc(),this.W],(u,v,w)=>{const x=n;p.clear();let y=0;0<v&&u.Bi(B=>{(0===w.IA().valueOf()||B.toLowerCase().contains(w.toLowerCase()).and(B.Se(w).Re()).valueOf())&&p.set(B.valueOf(),B,y++)});n=p;p=x;this.ca.update(n)});var r=this.ca.wa().Sc();r=new c(f,g.Sa(9).hb(tc(3,r)));const t=new olympe.ui.F.tt(r,this.ca.wa(),olympe.j.kb,k,5,!1);this.C=new olympe.ui.F.tR(t);this.C.Ma(this.backgroundColor.wa());this.C.Xk(super.xu().and(this.ca.wa().Sc().Sj(0)));
|
|
898
|
-
olympe.j.Wa([r.sa(),this.yh().sa(),this.oa().sa(),olympe.ui.La.hf().oa().sa()],(u,v,w,x)=>{w.Sa(v).Sa(u).valueOf()<x.valueOf()?this.C.Pw(this,olympe.ui.F.ig.D.rz,olympe.ui.F.ig.O.Iy):this.C.Pw(this,olympe.ui.F.ig.D.rz,olympe.ui.F.ig.O.JD)})}),olympe.j.
|
|
898
|
+
olympe.j.Wa([r.sa(),this.yh().sa(),this.oa().sa(),olympe.ui.La.hf().oa().sa()],(u,v,w,x)=>{w.Sa(v).Sa(u).valueOf()<x.valueOf()?this.C.Pw(this,olympe.ui.F.ig.D.rz,olympe.ui.F.ig.O.Iy):this.C.Pw(this,olympe.ui.F.ig.D.rz,olympe.ui.F.ig.O.JD)})}),olympe.j.yb().destroy())});a=olympe.ui.La.D().wx(this.pb);olympe.ui.F.Nb.prototype.ae.call(this,a);T(this).Kl(l=>{I(this.W,olympe.j.kc(l))})}Yj(){T(this).Yj();return this}Df(a){T(this).Df(a);return this}Gf(a){T(this).Gf(a);return this}Jb(a){T(this).Gf(a);return this}Rj(){return this.W}KZ(a){olympe.j.$b(a)?
|
|
899
899
|
this.R.repeat(a):this.R.update(a);return this}getValue(){return this.W}xu(){return super.xu().or(this.Ka.wa())}Bb(a){olympe.j.$b(a)?this.na.repeat(a):this.na.update(olympe.j.Ca(a));T(this).Bb(a);return this}vb(a){olympe.j.$b(a)?this.ea.repeat(a):this.ea.update(olympe.j.kc(a));T(this).vb(a);return this}rb(a){olympe.j.$b(a)?this.fontSize.repeat(a):this.fontSize.update(olympe.j.Ca(a));T(this).rb(a);return this}Qd(a){T(this).Qd(a);return this}lb(a){olympe.j.cg(a,b=>{b&&b.ii&&(this.Pa.update(b),T(this).lb(b.ii()))});
|
|
900
900
|
return this}Ma(a){olympe.j.$b(a)?this.backgroundColor.repeat(a):this.backgroundColor.update(a);super.Ma(a);return this}Gn(a){T(this).Gn(a);return this}ov(a){T(this).ov(a);return this}lv(a){T(this).lv(a);return this}tv(a){T(this).tv(a);return this}Qg(a){T(this).Qg(a);return this}bh(a){T(this).bh(olympe.j.cg(a,b=>b.ii()));return this}Vb(a){T(this).Vb(a);return this}Yb(a){T(this).Yb(a);return this}fi(a){T(this).fi(a);return this}Hc(a){T(this).Hc(a);return this}Lc(a){T(this).Lc(a);return this}td(a){T(this).td(a);
|
|
901
901
|
return this}sd(a){T(this).sd(a);return this}av(a){T(this).av(a);return this}op(a=olympe.j.ia.C){T(this).op(a);return this}Wc(){null===this.Ia&&(this.Ia=new olympe.ui.X.ho(T(this)));return this.Ia}Nj(){return this.Wc().Nj()}Mj(){return this.Wc().Mj()}Oj(){return this.Wc().Oj()}jj(a,b,c){return this.Wc().jj(a,b,c)}D(a){this.Wc().D(a)}Ek(a,b,c){return this.Wc().Ek(a,b,c)}T(a){this.Wc().T(a)}kj(a,b,c){return this.Wc().kj(a,b,c)}O(a){this.Wc().O(a)}Eg(a){K(this.pb,a);return this}ae(a){a&&(olympe.ui.F.mb.prototype.ae.call(this,
|
|
902
902
|
a),this.rb(a.OI()),this.Bb(a.Ei()),this.vb(a.Di()),this.Qd(a.Cl()),this.sd(a.QI()),this.Hc(a.RI()),this.Lc(a.SI()),this.td(a.TI()),this.lb(a.UI()),this.Vb(a.VI()),this.Yb(a.WI()),this.bh(a.vO()))}};olympe.ui.F.Nb.Aa=[olympe.ui.X.tg,olympe.ui.F.Pv];h=olympe.ui.F.Nb.prototype;h.Yj.K=olympe.j.J.C([]);h.Df.K=olympe.j.J.C([]);h.Gf.K=olympe.j.J.C([]);h.Jb.K=olympe.j.J.C([]);h.Rj.K=olympe.j.J.R;h.KZ.K=olympe.j.J.C([0]);h.getValue.K=olympe.j.J.R;h.xu.K=olympe.j.J.T;h.Bb.K=olympe.j.J.C([]);h.vb.K=olympe.j.J.C([]);
|
|
903
903
|
h.rb.K=olympe.j.J.C([]);h.Qd.K=olympe.j.J.C([]);h.lb.K=olympe.j.J.C([]);h.Gn.K=olympe.j.J.C([]);h.ov.K=olympe.j.J.C([]);h.lv.K=olympe.j.J.C([]);h.tv.K=olympe.j.J.C([]);h.Qg.K=olympe.j.J.C([]);h.bh.K=olympe.j.J.C([]);h.Vb.K=olympe.j.J.C([]);h.Yb.K=olympe.j.J.C([]);h.fi.K=olympe.j.J.C([]);h.Hc.K=olympe.j.J.C([]);h.Lc.K=olympe.j.J.C([]);h.td.K=olympe.j.J.C([]);h.sd.K=olympe.j.J.C([]);h.av.K=olympe.j.J.C([]);h.op.K=olympe.j.J.C([]);h.Wc.K=new olympe.j.J(()=>olympe.ui.X.ho,[]);
|
|
904
904
|
h.Nj.K=new olympe.j.J(()=>olympe.ui.X.qe,[]);h.Mj.K=new olympe.j.J(()=>olympe.ui.X.qe,[]);h.Oj.K=new olympe.j.J(()=>olympe.ui.X.qe,[]);h.jj.K=new olympe.j.J(()=>String,[]);h.Ek.K=new olympe.j.J(()=>String,[]);h.kj.K=new olympe.j.J(()=>String,[]);h.Eg.K=olympe.j.J.C([]);olympe.ui.F.Qc=class extends olympe.ui.F.mb{constructor(a,b){super(olympe.ui.La.C(olympe.N.F.Qc,olympe.host.ab.jb.EL));this.C=olympe.j.Ab('');this.R=null;b=olympe.ui.La.D().vx(b);olympe.ui.F.Qc.prototype.ae.call(this,b);this.Hb(void 0!==a?a:b.oa());T(this).Kl(c=>{I(this.C,olympe.j.kc(c))})}Gf(a){T(this).Gf(a);return this}Jb(a){T(this).Gf(a);return this}getValue(){return this.C}Rj(){return this.C}Bb(a){T(this).Bb(a);return this}vb(a){T(this).vb(a);return this}rb(a){T(this).rb(a);return this}Qd(a){T(this).Qd(a);
|
|
905
|
-
return this}lb(a){olympe.j.cg(a,b=>{b&&b.ii&&T(this).lb(b.ii())});return this}Vb(a){T(this).Vb(a);return this}Yb(a){T(this).Yb(a);return this}Hc(a){T(this).Hc(a);return this}Lc(a){T(this).Lc(a);return this}td(a){T(this).td(a);return this}sd(a){T(this).sd(a);return this}Qg(a){T(this).Qg(a);return this}bh(a){T(this).bh(olympe.j.cg(a,b=>b.ii()));return this}Yj(){T(this).Yj();return this}Df(a){T(this).Df(a);return this}pp(a){olympe.j.Wa([a],b=>{b.valueOf()?T(this).pp(!0,olympe.j.
|
|
905
|
+
return this}lb(a){olympe.j.cg(a,b=>{b&&b.ii&&T(this).lb(b.ii())});return this}Vb(a){T(this).Vb(a);return this}Yb(a){T(this).Yb(a);return this}Hc(a){T(this).Hc(a);return this}Lc(a){T(this).Lc(a);return this}td(a){T(this).td(a);return this}sd(a){T(this).sd(a);return this}Qg(a){T(this).Qg(a);return this}bh(a){T(this).bh(olympe.j.cg(a,b=>b.ii()));return this}Yj(){T(this).Yj();return this}Df(a){T(this).Df(a);return this}pp(a){olympe.j.Wa([a],b=>{b.valueOf()?T(this).pp(!0,olympe.j.yb().re(c=>{I(olympe.j.Qa(this.oa()).sa(),
|
|
906
906
|
olympe.j.Ca(c))})):T(this).pp(!1)});return this}Wc(){this.R||(this.R=new olympe.ui.X.ho(T(this)));return this.R}Nj(){return this.Wc().Nj()}Mj(){return this.Wc().Mj()}Oj(){return this.Wc().Oj()}jj(a){return this.Wc().jj(a)}D(a){this.Wc().D(a)}Ek(a){return this.Wc().Ek(a)}T(a){this.Wc().T(a)}kj(a){return this.Wc().kj(a)}O(a){this.Wc().O(a)}ae(a){super.ae(a);this.rb(a.GI());this.Bb(a.Ei());this.vb(a.Di());this.Qd(a.Cl());this.sd(a.HI());this.Hc(a.II());this.Lc(a.JI());this.td(a.KI());this.lb(a.LI());
|
|
907
907
|
this.Vb(a.MI());this.Yb(a.NI())}};olympe.ui.F.Qc.Aa=[olympe.ui.F.Pv,olympe.ui.X.tg];h=olympe.ui.F.Qc.prototype;h.Gf.K=olympe.j.J.C([]);h.Jb.K=olympe.j.J.C([]);h.getValue.K=olympe.j.J.R;h.Rj.K=olympe.j.J.R;h.Bb.K=olympe.j.J.C([]);h.vb.K=olympe.j.J.C([]);h.rb.K=olympe.j.J.C([]);h.Qd.K=olympe.j.J.C([]);h.lb.K=olympe.j.J.C([]);h.Vb.K=olympe.j.J.C([]);h.Yb.K=olympe.j.J.C([]);h.Hc.K=olympe.j.J.C([]);h.Lc.K=olympe.j.J.C([]);h.td.K=olympe.j.J.C([]);h.sd.K=olympe.j.J.C([]);h.Qg.K=olympe.j.J.C([]);h.bh.K=olympe.j.J.C([]);
|
|
908
908
|
h.Yj.K=olympe.j.J.C([]);h.Df.K=olympe.j.J.C([]);h.pp.K=olympe.j.J.C([0]);h.Wc.K=new olympe.j.J(()=>olympe.ui.X.ho,[]);h.Nj.K=new olympe.j.J(()=>olympe.ui.X.qe,[]);h.Mj.K=new olympe.j.J(()=>olympe.ui.X.qe,[]);h.Oj.K=new olympe.j.J(()=>olympe.ui.X.qe,[]);h.jj.K=new olympe.j.J(()=>String,[]);h.Ek.K=new olympe.j.J(()=>String,[]);h.kj.K=new olympe.j.J(()=>String,[]);olympe.ui.F.Kd=class extends olympe.ui.F.mb{constructor(a){super(olympe.ui.La.C(olympe.N.F.Kd,olympe.host.ab.jb.GL),a);this.C=new olympe.j.ga(olympe.j.ma(),olympe.j.ma());this.ra().ux((b,c)=>{K(this.C.qa(),b);K(this.C.sa(),c)});this.D=olympe.j.Za(olympe.j.ia).update(olympe.j.ia.C);this.R=olympe.j.Za(olympe.j.ia).update(olympe.j.ia.ob);this.O=olympe.j.Za(olympe.j.ia).update(olympe.j.ia.ob);this.volume=olympe.j.Za(olympe.j.aa).update(olympe.j.aa.ONE);this.T=olympe.j.Za(olympe.j.aa).update(olympe.j.aa.ZERO);
|
|
@@ -956,7 +956,7 @@ e=new olympe.ui.F.cb(new r(u.za(y.hb(2)).hb(.55),a));a=new olympe.ui.F.cb(new r(
|
|
|
956
956
|
'hl_yleft_arrow');b.appendChild(a,'hl_month');b.appendChild(n,'hl_yright_arrow');this.Ia=new olympe.ui.F.ye(new olympe.j.ga(u,1));this.Ia.Ma(Hc());const fa=new olympe.ui.F.$d(w,0,0,0,!1,u),Sa=J=>{const V=new olympe.ui.F.cb(new r(y,w));this.D.weekday(V,J);return V};Array(7).fill(0).forEach((J,V)=>fa.appendChild(Sa(V),'weekday_'+V));const ta=new olympe.ui.F.xd(u,0,0,0,!1,v.za(x)),Ob=(J,V)=>{const Ja=new olympe.ui.F.cb(new r(y,V));let ua=null;olympe.j.$a(this.disabled.wa().Re(),()=>{ua=Ja.Xc(()=>{l(J.EE).valueOf()||
|
|
957
957
|
this.C.update(yc({year:J.year,month:J.month,day:1}));this.ky(yc({year:J.year,month:J.month,day:J.day}))})},()=>{null!==ua&&(this.Vj(ua),ua=null)});this.D.hQ(Ja,J);return Ja};k([this.C.wa().getMonth(),this.C.wa().getYear()],(J,V)=>{J=Eg(J-1,V);const Ja=v.za(x).Ua(J.length);J.forEach((ua,Ta)=>{const Wa=new olympe.ui.F.$d(Ja,0,0,0,!1,u);ua.forEach(ja=>{ja.month++;const ii=Ef=>Ef.getYear().Se(ja.year).and(Ef.getMonth().Se(ja.month).and(Ef.lq().Se(ja.day)));ja.HE=ii(g.now());ja.vq=t(ii(this.Pa.wa()),!1);
|
|
958
958
|
ja.EE=t(this.C.wa().getMonth().Se(ja.month),!1);Wa.appendChild(Ob(ja,Ja),`tile_${ja.month}-${ja.day}`)});ta.appendChild(Wa,`tile_line-${Ta}`)})});this.Ma(O());this.eh(1);this.appendChild(ta,'content_layout');this.appendChild(fa,'weekday_layout');this.appendChild(this.Ia,'separator');this.appendChild(b,'header_layout')}IZ(a){this.Ia.Ma(a);return this}zZ(a){this.ea=a;return this}yZ(a){this.ca=a;return this}oB(a){olympe.j.Wa([a],b=>{b=b.clone();b.hn().valueOf()&&this.C.update(b)})}dX(){return this.C.wa()}NY(a){this.na=
|
|
959
|
-
a}Df(a){olympe.j.$b(a)?this.disabled.repeat(a):this.disabled.update(olympe.j.jc(a))}ky(a){olympe.j.Wa([a],b=>{b=b.clone();b.hn().valueOf()&&this.Pa.update(b)})}OA(){return this.Pa.wa()}};h=olympe.ui.F.xG.prototype;h.IZ.K=olympe.j.J.C([]);h.zZ.K=olympe.j.J.C([]);h.yZ.K=olympe.j.J.C([]);h.oB.K=olympe.j.J.C([]);h.dX.K=new olympe.j.J(()=>olympe.j.bc,[]);h.NY.K=olympe.j.J.O;h.ky.K=olympe.j.J.O;h.OA.K=new olympe.j.J(()=>olympe.j.bc,[]);olympe.ui.F.ww=class extends olympe.ui.F.mb{constructor(a=olympe.ui.F.ww.D.zC,b){const c=new olympe.j.ga;super(olympe.ui.La.C(olympe.N.F.Ue,olympe.host.ab.jb.DD),c);this.C=olympe.j.Za(olympe.j.aa).update(olympe.j.Ca(a));this.Of=olympe.j.Za(olympe.j.ia).update(olympe.j.jc(void 0===b));this.Oe=olympe.j.Za(olympe.j.ia).update(olympe.j.jc(void 0===b));const d=b||new olympe.j.ga(100,100);let e=null;const f=olympe.j.
|
|
959
|
+
a}Df(a){olympe.j.$b(a)?this.disabled.repeat(a):this.disabled.update(olympe.j.jc(a))}ky(a){olympe.j.Wa([a],b=>{b=b.clone();b.hn().valueOf()&&this.Pa.update(b)})}OA(){return this.Pa.wa()}};h=olympe.ui.F.xG.prototype;h.IZ.K=olympe.j.J.C([]);h.zZ.K=olympe.j.J.C([]);h.yZ.K=olympe.j.J.C([]);h.oB.K=olympe.j.J.C([]);h.dX.K=new olympe.j.J(()=>olympe.j.bc,[]);h.NY.K=olympe.j.J.O;h.ky.K=olympe.j.J.O;h.OA.K=new olympe.j.J(()=>olympe.j.bc,[]);olympe.ui.F.ww=class extends olympe.ui.F.mb{constructor(a=olympe.ui.F.ww.D.zC,b){const c=new olympe.j.ga;super(olympe.ui.La.C(olympe.N.F.Ue,olympe.host.ab.jb.DD),c);this.C=olympe.j.Za(olympe.j.aa).update(olympe.j.Ca(a));this.Of=olympe.j.Za(olympe.j.ia).update(olympe.j.jc(void 0===b));this.Oe=olympe.j.Za(olympe.j.ia).update(olympe.j.jc(void 0===b));const d=b||new olympe.j.ga(100,100);let e=null;const f=olympe.j.yb().re(()=>{null===e&&(e=new olympe.j.ga);T(this).ea((g,k)=>{e.oe(g);e.Ge(k)})});olympe.j.Wa([this.Of,
|
|
960
960
|
this.Oe],(g,k)=>{T(this).pp(g.valueOf(),k.valueOf());k=k.valueOf();g.valueOf()?(f(),c.oe(e.qa()),k?c.Ge(e.sa()):c.Ge(d.sa())):k?(f(),c.oe(d.qa()),c.Ge(e.sa())):(c.oe(d.qa()),c.Ge(d.sa()))})}Jb(a){olympe.j.Wa([a,this.C.wa()],(b,c)=>{switch(c.valueOf()){case olympe.ui.F.ww.D.yT:b=(new remarkable.Remarkable({html:!0,typographer:!0,xhtmlOut:!0})).render(b.valueOf());break;case olympe.ui.F.ww.D.zC:b=b.valueOf();break;default:b=b.valueOf()}T(this).sB(b)});return this}Zd(a){olympe.j.Wa([a],b=>{this.Of.update(olympe.j.jc(b))});
|
|
961
961
|
return this}Fd(a){olympe.j.Wa([a],b=>{this.Oe.update(olympe.j.jc(b))});return this}sZ(a){this.C.update(olympe.j.Ca(a));return this}dv(a){T(this).dv(a);return this}fv(a){T(this).fv(a);return this}ev(a,b){T(this).ev(a,b.valueOf());return this}Bb(a){T(this).Bb(a);return this}vb(a){T(this).vb(a);return this}rb(a){T(this).rb(a);return this}Qd(a){T(this).Qd(a);return this}lb(a){T(this).lb(olympe.j.cg(a,b=>b.ii()));return this}Ef(a=0,b=0,c=0,d=0){T(this).Ef(a,b,c,d);return this}};
|
|
962
962
|
olympe.ui.F.ww.D={yT:1,zC:2};h=olympe.ui.F.ww.prototype;h.Jb.K=olympe.j.J.C([0]);h.Zd.K=olympe.j.J.C([0]);h.Fd.K=olympe.j.J.C([0]);h.sZ.K=olympe.j.J.C([0]);h.dv.K=olympe.j.J.C([0]);h.fv.K=olympe.j.J.C([0]);h.ev.K=olympe.j.J.C([0]);h.Bb.K=olympe.j.J.C([0]);h.vb.K=olympe.j.J.C([0]);h.rb.K=olympe.j.J.C([0]);h.Qd.K=olympe.j.J.C([0]);h.lb.K=olympe.j.J.C([0]);h.Ef.K=olympe.j.J.C([0,1,2,3]);function Fg(a,b){const c=new olympe.j.Map(olympe.j.aa),d=new olympe.j.Map(olympe.j.aa);a.D.forEach((f,g)=>{c.set(g,f.oa().qa());d.set(g,f.oa().sa())});const e=new olympe.ui.F.Ye(new olympe.j.ga(olympe.j.aa.max(c),olympe.j.aa.max(d)));olympe.j.Wa([a.C],f=>{e.ng();f=a.D.Kh(f);const g=new olympe.j.ga(e.Dd().za(f.Dd()).Ua(2),e.De().za(f.De()).Ua(2));e.appendChild(f,'displayedElement',g)});b.appendChild(e,'displayPort',olympe.ui.ha.Cb.Tb)}
|
|
@@ -1002,8 +1002,8 @@ Q(this,()=>{this.R=olympe.j.Ab();this.ra().Rl(this.R)});K(this.R,a);return this}
|
|
|
1002
1002
|
'seg'+this.W++);return this}arcTo(a,b,c,d,e,f){this.bq(new olympe.ui.P.Yi(a,b,c,d,e,f),'seg'+this.W++);return this}};olympe.ui.P.Jf=class extends olympe.ui.P.ze{constructor(a,b){super(a);this.position=olympe.j.ed();this.ra().setPosition(this.position.qa(),this.position.sa());b&&K(this.position,b)}setPosition(a){K(this.position,a);return this}be(){return this.position}};olympe.ui.P.Jf.prototype.be.K=olympe.j.J.W;olympe.ui.P.Yi=class extends olympe.ui.P.Jf{constructor(a,b,c,d,e,f){super(olympe.ui.La.C(olympe.N.P.Yi,olympe.host.ab.jb.BM),a);this.O=olympe.j.ma();this.C=olympe.j.ma();this.T=olympe.j.ma(0);this.D=olympe.j.Yc(!1);this.R=olympe.j.Yc(!1);this.ra().hy(this.O);this.ra().iy(this.C);this.ra().qy(this.T);this.ra().Yx(this.D);this.ra().oy(this.R);void 0!==b&&(K(this.O,b),K(this.C,b));void 0!==c&&K(this.C,c);void 0!==d&&K(this.T,d);void 0!==e&&K(this.D,e);void 0!==f&&K(this.R,f)}hy(a){K(this.O,a);return this}iy(a){K(this.C,
|
|
1003
1003
|
a);return this}qy(a){K(this.T,a);return this}Yx(a){K(this.D,a);return this}oy(a){K(this.R,a);return this}};olympe.ui.P.wi=class extends olympe.ui.P.Jf{constructor(a,b,c){super(olympe.ui.La.C(olympe.N.P.wi,olympe.host.ab.jb.CM),a);this.C=olympe.j.ed();this.D=olympe.j.ed();this.ra().Nx(this.C.qa(),this.C.sa());this.ra().Ox(this.D.qa(),this.D.sa());b&&K(this.C,b);c&&K(this.D,c)}Nx(a){K(this.C,a);return this}Ox(a){K(this.D,a);return this}};olympe.ui.P.Kz=class extends olympe.ui.P.Jf{constructor(a,b){super(olympe.ui.La.C(olympe.N.P.Kz,olympe.host.ab.jb.DM),a);this.C=null;void 0!==b&&this.rd(b)}rd(a){null===this.C&&this.C.Ub.destroy();this.C=this.ra().rd(a);return this}};olympe.ui.P.Lz=class extends olympe.ui.P.Jf{constructor(a){super(olympe.ui.La.C(olympe.N.P.Lz,olympe.host.ab.jb.EM),a)}};olympe.ui.P.no=class extends olympe.ui.P.Jf{constructor(a,b){super(olympe.ui.La.C(olympe.N.P.no,olympe.host.ab.jb.FM),a);this.C=olympe.j.ed();this.ra().Mx(this.C.qa(),this.C.sa());b&&K(this.C,b)}Mx(a){K(this.C,a);return this}};olympe.ui.P.qo=class extends olympe.ui.P.Hh{constructor(){super(olympe.ui.La.C(olympe.N.P.qo,olympe.host.ab.jb.GM));this.D=this.C=void 0}Jx(a){this.C||Q(this,()=>{this.C=olympe.j.ed();this.ra().Jx(this.C.qa(),this.C.sa())});K(this.C,a);return this}Vx(a){this.D||Q(this,()=>{this.D=olympe.j.ed();this.ra().Vx(this.D.qa(),this.D.sa())});K(this.D,a);return this}};olympe.ui.P.ye=class extends olympe.ui.P.oc{constructor(){super(olympe.ui.La.C(olympe.N.P.ye,olympe.host.ab.jb.HM))}Xb(a){this.ra().Xb(a);return this}};olympe.ui.P.m2=class{constructor(){this.height=this.width=100;this.strokeWidth=1;this.strokeColor='rgb(0,0,0)';this.D='Arial,Helvetica';this.fontSize=12;this.C=this.path=''}Hb(a,b){this.width=a;this.height=b;return this}uv(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}vb(a){this.D=a;return this}rb(a){this.fontSize=a;return this}clear(){this.path=
|
|
1004
1004
|
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.D+'" 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>'}DF(){return'data:image/svg+xml,'+encodeURIComponent(this.toString())}};olympe.ui.P.bM=class extends olympe.ui.P.oc{constructor(a){super(a);this.text=null;this.$=this.W=this.T=this.fontSize=void 0;this.R=null}Jb(a){const b=this;this.text||Q(this,()=>{b.text=olympe.j.Ab();b.ra().Jb(b.text)});K(this.text,a);return this}Rj(){this.text||this.Jb('');return this.text}Hb(){return this}oa(){this.R||Q(this,()=>{this.R=new olympe.j.ga(0,0);this.ra().lp((a,b)=>{this.R.oe(a);this.R.Ge(b)})});return this.R}rb(a){const b=this;this.fontSize||Q(this,()=>{b.fontSize=olympe.j.ma();b.ra().rb(b.fontSize)});
|
|
1005
|
-
K(this.fontSize,a);return this}vb(a){const b=this;this.T||Q(this,()=>{b.T=olympe.j.Ab();b.ra().vb(b.T)});K(this.T,a);return this}Bb(a){const b=this;this.W||Q(this,()=>{b.W=olympe.j.ma();b.ra().Bb(b.W)});K(this.W,a);return this}Wx(a){const b=this;this.$||Q(this,()=>{b.$=olympe.j.Ab();b.ra().Wx(b.$)});K(this.$,a);return this}};olympe.ui.P.Text=class extends olympe.ui.P.bM{constructor(){super(olympe.ui.La.C(olympe.N.P.Text,olympe.host.ab.jb.JM))}};olympe.ui.P.Bw=class extends olympe.ui.P.bM{constructor(){super(olympe.ui.La.C(olympe.N.P.Bw,olympe.host.ab.jb.KM))}Is(a){olympe.j.Wa([a],b=>{this.ra().Is(b.ra())});return this}};olympe.ui.di={};olympe.ui.di.Ec=class{constructor(a,b,c=!1){this.V=a;this.T=b;this.ca=olympe.j.ub(olympe.ui.F.da.wh,new olympe.ui.F.da.Zy);this.na=new olympe.j.Vz;this.Ba=new olympe.ui.F.nf(this);this.Oa=c}$(){return this.Oa}C(a,b){return Zc(this.T,a,b)}hf(){return this.Ba}gi(a){this.hf().gi(a);return this}D(){return this.ca}ea(a){K(this.ca,a)}O(a){return Tc(this.na,a)}R(a){Rc(this.na,a)}
|
|
1006
|
-
return(a=this.T.C.get(a.wg().RD)||null)&&'function'===typeof a[b]?a[b].call(a,...c):void 0}};olympe.ui.di.Ec.Aa=[olympe.ui.Ec];olympe.ui.ba={Pb:'ui.Manager',Wb:'ui.Logger',rT:'ui.MediaDeviceProvider'};olympe.ui.pa={sK:'ui.noTooltips'};olympe.ui.La=null;olympe.ta.af(function(a){E(a,olympe.ui.pa.sK,!1);C(a,olympe.ui.ba.Pb,[olympe.ui.ba.Wb,olympe.host.ba.Pb,new olympe.ta.Db(olympe.ui.pa.sK)],(b,c,d)=>{null===olympe.ui.La&&(olympe.ui.La=new olympe.ui.di.Ec(b,c,d));return olympe.ui.La},!0);C(a,olympe.ui.ba.Wb,[olympe.
|
|
1005
|
+
K(this.fontSize,a);return this}vb(a){const b=this;this.T||Q(this,()=>{b.T=olympe.j.Ab();b.ra().vb(b.T)});K(this.T,a);return this}Bb(a){const b=this;this.W||Q(this,()=>{b.W=olympe.j.ma();b.ra().Bb(b.W)});K(this.W,a);return this}Wx(a){const b=this;this.$||Q(this,()=>{b.$=olympe.j.Ab();b.ra().Wx(b.$)});K(this.$,a);return this}};olympe.ui.P.Text=class extends olympe.ui.P.bM{constructor(){super(olympe.ui.La.C(olympe.N.P.Text,olympe.host.ab.jb.JM))}};olympe.ui.P.Bw=class extends olympe.ui.P.bM{constructor(){super(olympe.ui.La.C(olympe.N.P.Bw,olympe.host.ab.jb.KM))}Is(a){olympe.j.Wa([a],b=>{this.ra().Is(b.ra())});return this}};olympe.ui.di={};olympe.ui.di.Ec=class{constructor(a,b,c=!1){this.V=a;this.T=b;this.ca=olympe.j.ub(olympe.ui.F.da.wh,new olympe.ui.F.da.Zy);this.na=new olympe.j.Vz;this.Ba=new olympe.ui.F.nf(this);this.Oa=c}$(){return this.Oa}C(a,b){return Zc(this.T,a,b)}hf(){return this.Ba}gi(a){this.hf().gi(a);return this}D(){return this.ca}ea(a){K(this.ca,a)}O(a){return Tc(this.na,a)}R(a){Rc(this.na,a)}wb(){return this.V}$m(a){a=this.T.C.get(a.wg().RD)||null;return null!==a&&'function'===typeof a.$m?a.$m():null}W(a,b){var c=[];
|
|
1006
|
+
return(a=this.T.C.get(a.wg().RD)||null)&&'function'===typeof a[b]?a[b].call(a,...c):void 0}};olympe.ui.di.Ec.Aa=[olympe.ui.Ec];olympe.ui.ba={Pb:'ui.Manager',Wb:'ui.Logger',rT:'ui.MediaDeviceProvider'};olympe.ui.pa={sK:'ui.noTooltips'};olympe.ui.La=null;olympe.ta.af(function(a){E(a,olympe.ui.pa.sK,!1);C(a,olympe.ui.ba.Pb,[olympe.ui.ba.Wb,olympe.host.ba.Pb,new olympe.ta.Db(olympe.ui.pa.sK)],(b,c,d)=>{null===olympe.ui.La&&(olympe.ui.La=new olympe.ui.di.Ec(b,c,d));return olympe.ui.La},!0);C(a,olympe.ui.ba.Wb,[olympe.fb.ba.Pb],b=>b.Yg('ui'));A(a,olympe.ui.ba.rT,olympe.ui.media.Up)},'olympe.ui');
|
|
1007
1007
|
olympe.ta.run([olympe.ui.ba.Pb],a=>a,'olympe.ui');olympe.G.H.ui={};olympe.G.H.ui.wf=class extends olympe.G.H.host.Xi{constructor(a,b){super(a,b)}};olympe.G.H.ui.wf.Aa=[olympe.N.wf];olympe.G.H.ui.la={};const Jg='b i s sub sup u br'.split(' '),Kg=new RegExp('</?('+Jg.join('|')+')/?>'),Lg=new RegExp('<(?!/?('+Jg.join('|')+')/?>)','g'),Mg=new RegExp('>(?!/?('+Jg.map(a=>a.split('').reverse().join('')).join('|')+')/?<)','g');olympe.G.H.ui.la.K0=class{};olympe.G.H.ui.Na={};olympe.G.H.ui.Na.Vv=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.Na.lr=class extends olympe.G.H.ui.Na.Vv{constructor(a){super(a);this.D=void 0}Kl(a){void 0===this.D&&(this.D=b=>{b.stopPropagation();a(this.C.value)},this.addEventListener('input',this.D,!1))}bm(){this.D&&(this.removeEventListener('input',this.D),this.D=void 0)}};olympe.G.H.ui.Na.lr.prototype.unregisterValueChanged=olympe.G.H.ui.Na.lr.prototype.bm;olympe.G.H.ui.Na.lr.prototype.registerValueChanged=olympe.G.H.ui.Na.lr.prototype.Kl;olympe.G.H.ui.Na.lr.Aa=[olympe.N.X.qr];olympe.G.H.ui.Na.Th=class extends olympe.G.H.ui.Na.Vv{constructor(a){super(a);this.R=this.D=this.O=null}Ik(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))}vj(){this.removeEventListener('keypress',this.O);this.O=null}Hk(a){null===this.D&&(this.D=function(b){b.stopPropagation();a(void 0!==b.which?b.which:b.charCode,String.fromCharCode(b.keyCode||
|
|
1008
1008
|
b.charCode),b.ctrlKey,b.shiftKey,b.altKey,b.metaKey,b)},this.addEventListener('keydown',this.D,!1))}uj(){this.removeEventListener('keydown',this.D);this.D=null}Jk(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))}wj(){this.removeEventListener('keyup',this.R);this.R=null}};olympe.G.H.ui.Na.Th.prototype.unregisterKeyUp=olympe.G.H.ui.Na.Th.prototype.wj;
|
|
1009
1009
|
olympe.G.H.ui.Na.Th.prototype.registerKeyUp=olympe.G.H.ui.Na.Th.prototype.Jk;olympe.G.H.ui.Na.Th.prototype.unregisterKeyDown=olympe.G.H.ui.Na.Th.prototype.uj;olympe.G.H.ui.Na.Th.prototype.registerKeyDown=olympe.G.H.ui.Na.Th.prototype.Hk;olympe.G.H.ui.Na.Th.prototype.unregisterKeyPressed=olympe.G.H.ui.Na.Th.prototype.vj;olympe.G.H.ui.Na.Th.prototype.registerKeyPressed=olympe.G.H.ui.Na.Th.prototype.Ik;olympe.G.H.ui.Na.Th.Aa=[olympe.N.X.tg];olympe.G.H.ui.Na.Kc=class a extends olympe.G.H.ui.Na.Vv{constructor(b){super(b);this.R=Object.create(null);this.W=!1}$(){this.W=!0}static C(b){let c=0;switch(b){case 0:c=1;break;case 1:c=4;break;case 2:c=2;break;case 3:c=8;break;case 4:c=16}return c}O(b,c){if(!this.R[b]){const d=e=>{e.stopPropagation();e.target!==this.C&&void 0!==e.target.tagName&&'a'===e.target.tagName.toLowerCase()||e.preventDefault();if('click'===b||'mouseup'===b||'mousedown'===b)document.activeElement&&document.activeElement.blur(),
|
|
@@ -1058,8 +1058,8 @@ olympe.G.H.ui.F.HTMLElement.prototype.setHidden=olympe.G.H.ui.F.HTMLElement.prot
|
|
|
1058
1058
|
olympe.G.H.ui.F.HTMLElement.prototype.setBackgroundImageSizeMode=olympe.G.H.ui.F.HTMLElement.prototype.qp;olympe.G.H.ui.F.HTMLElement.prototype.setBackgroundImagePositionMode=olympe.G.H.ui.F.HTMLElement.prototype.Sq;olympe.G.H.ui.F.HTMLElement.prototype.setBackgroundImageSrc=olympe.G.H.ui.F.HTMLElement.prototype.Cs;olympe.G.H.ui.F.HTMLElement.prototype.setBackgroundImage=olympe.G.H.ui.F.HTMLElement.prototype.ah;olympe.G.H.ui.F.HTMLElement.prototype.setOpacity=olympe.G.H.ui.F.HTMLElement.prototype.og;
|
|
1059
1059
|
olympe.G.H.ui.F.HTMLElement.prototype.setRGBABackgoundColor=olympe.G.H.ui.F.HTMLElement.prototype.gF;olympe.G.H.ui.F.HTMLElement.prototype.setBackgroundColor=olympe.G.H.ui.F.HTMLElement.prototype.Ma;olympe.G.H.ui.F.HTMLElement.Aa=[olympe.N.F.Element];const Wg=new Map,Xg=document.fonts||null;function Yg(a,b){if(null===Xg||Xg.check(`1em ${a}`))b();else{let c=Wg.get(a);c?c.add(b):(c=new Set([b]),Wg.set(a,c),Xg.load(`1em ${a}`).then(()=>{c.forEach(d=>d())}))}}
|
|
1060
1060
|
olympe.G.H.ui.F.Hd=class extends olympe.G.H.ui.F.HTMLElement{constructor(a,b){super(a,b,document.body);window.oncontextmenu=function(c){return 0===c.buttons};this.children=new Map;this.C=this.D=null;this.va().style.width='100%';this.va().style.height='100%';this.va().style.position='fixed';this.va().style.margin='0';this.va().style.lineHeight='normal'}Hw(a){const b=document.createElement('link');b.type='text/css';b.rel='stylesheet';b.href=a;document.head.appendChild(b);for(const c of this.children.values())c.Hj()}Sx(a){let b=
|
|
1061
|
-
document.querySelector("link[rel~='icon']");b||(b=document.createElement('link'),b.rel='icon',document.getElementsByTagName('head')[0].appendChild(b));b.href=a}Zx(a){let b=document.querySelector("link[rel~='manifest']");b||(b=document.createElement('link'),b.rel='manifest',document.getElementsByTagName('head')[0].appendChild(b));b.href=a}appendChild(a,b){a instanceof olympe.G.H.ui.F.ic||this.
|
|
1062
|
-
b||(b=olympe.G.H.ui.F.Hd.Gg);this.children.get(b)&&this.removeChild(b);this.children.set(b,a);this.va().appendChild(a.va());a.setAttribute('name_As_A_Child',b);a.Ff(this,b);a.nj();a.Hj()}removeChild(a){a||(a=olympe.G.H.ui.F.Hd.Gg);const b=this.children.get(a);if(void 0!==b)try{this.va().removeChild(b.va()),b.parent=null,b.Iu=null,b.Pl()}catch(c){this.
|
|
1061
|
+
document.querySelector("link[rel~='icon']");b||(b=document.createElement('link'),b.rel='icon',document.getElementsByTagName('head')[0].appendChild(b));b.href=a}Zx(a){let b=document.querySelector("link[rel~='manifest']");b||(b=document.createElement('link'),b.rel='manifest',document.getElementsByTagName('head')[0].appendChild(b));b.href=a}appendChild(a,b){a instanceof olympe.G.H.ui.F.ic||this.wb().warn('Trying to attach a wrongly typed object to absPosLayer (only HTMLDockableElement objects can be used with DOM UI implementation');
|
|
1062
|
+
b||(b=olympe.G.H.ui.F.Hd.Gg);this.children.get(b)&&this.removeChild(b);this.children.set(b,a);this.va().appendChild(a.va());a.setAttribute('name_As_A_Child',b);a.Ff(this,b);a.nj();a.Hj()}removeChild(a){a||(a=olympe.G.H.ui.F.Hd.Gg);const b=this.children.get(a);if(void 0!==b)try{this.va().removeChild(b.va()),b.parent=null,b.Iu=null,b.Pl()}catch(c){this.wb().debug('Not able to remove a child, has probably already been removed')}finally{this.children.delete(a)}else this.wb().warn('Trying to remove a non existing child: '+
|
|
1063
1063
|
a)}Wr(a){void 0!==a&&this.children.delete(a)}ng(){for(const a of this.children.keys())this.removeChild(a);this.children.clear()}gi(a){document.title=a}Xr(){let a;null==(a=document.body.querySelector('#olympe-loading'))||a.remove()}Wc(){this.D||(this.D=new olympe.G.H.ui.Na.Th(this.va()));return this.D}Ik(a){return this.Wc().Ik(a)}vj(){return this.Wc().vj()}Hk(a){return this.Wc().Hk(a)}uj(){return this.Wc().uj()}Jk(a){return this.Wc().Jk(a)}wj(){return this.Wc().wj()}hB(a){this.C||(this.C=function(){setTimeout(function(){90===
|
|
1064
1064
|
Math.abs(window.orientation)?a(olympe.ui.ha.GK.dT):a(olympe.ui.ha.GK.WT)},0)},{}.hasOwnProperty.call(window,'orientation')&&window.addEventListener('resize',this.C))}FF(){window.removeEventListener('resize',this.C);this.C=null}O(a,b,c,d,e,f){f='font_'+f;let g=document.getElementById(f);g||(g=document.createElement('style'),g.id=f,document.body.appendChild(g));g.innerHTML=`@font-face {font-family:'${a}'; font-style:${b}; font-weight:${c}; src:${`url('${e}') format('${d}')`};`;b=()=>{(Wg.get(a)||new Set).forEach(k=>
|
|
1065
1065
|
k());Wg.delete(a)};Xg?(Wg.set(a,new Set),Xg.load(`1em ${a}`).then(b)):setTimeout(b,50)}T(a){(a=document.getElementById('font_'+a))&&a.parentNode.removeChild(a)}};olympe.G.H.ui.F.Hd.prototype.unregisterScreenOrientation=olympe.G.H.ui.F.Hd.prototype.FF;olympe.G.H.ui.F.Hd.prototype.registerScreenOrientation=olympe.G.H.ui.F.Hd.prototype.hB;olympe.G.H.ui.F.Hd.prototype.unregisterKeyUp=olympe.G.H.ui.F.Hd.prototype.wj;olympe.G.H.ui.F.Hd.prototype.registerKeyUp=olympe.G.H.ui.F.Hd.prototype.Jk;
|
|
@@ -1089,25 +1089,25 @@ olympe.G.H.ui.F.Tg.prototype.setDisabled=olympe.G.H.ui.F.Tg.prototype.Df;olympe.
|
|
|
1089
1089
|
olympe.G.H.ui.F.Oc=class a extends olympe.G.H.ui.F.ic{constructor(b,c){super(b,c,document.createElement('div'));this.Ed=document.createElement('p');this.uy=null;this.paddingBottom=this.paddingTop=this.paddingRight=this.paddingLeft=0;this.Lu=this.ps=null;this.Oe=this.Of=!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';
|
|
1090
1090
|
b.height='auto';b['overflow-wrap']='break-word';Object.assign(this.Ed.style,b);this.va().appendChild(this.Ed)}Cf(){const b=Math.round(Math.min(this.Dd()/2,this.De()/2,this.Ci())),c=Math.round(this.paddingLeft),d=Math.round(this.paddingTop),e=Math.round(this.paddingRight),f=Math.round(this.paddingBottom),g=Math.round(this.Dd()-Math.min(2*this.Ci(),this.Dd())-this.paddingLeft-this.paddingRight),k=Math.round(this.De()-Math.min(2*this.Ci(),this.De())-this.paddingTop-this.paddingBottom),l=g+this.paddingLeft+
|
|
1091
1091
|
this.paddingRight,m=k+this.paddingTop+this.paddingBottom;this.ib('border',b+'px solid '+this.tl());this.Ed.style.padding=`${d}px ${e}px ${f}px ${c}px`;this.Ed.style['max-width']=l+'px';this.Ed.style.width=g+'px';this.Ed.style.height=k+'px';ah(this,l,m)}static C(){const b=new Map;hh.forEach((c,d)=>{c=c[0].Ed;b.set(d,[c.style.width,c.style.height])});hh.forEach(c=>{c=c[0].Ed;c.style.removeProperty('max-width');Object.assign(c.style,{width:'auto',height:'auto'})});hh.forEach(c=>{const d=c[0];var e=d.Ed;
|
|
1092
|
-
const f=e.clientWidth;e=e.clientHeight;if(d.ps!==f||d.Lu!==e)d.ps=f,d.Lu=e,c[1].mc()||null===d.uy||c[1].run(()=>{d.uy(d.ps-d.paddingRight-d.paddingLeft,d.Lu-d.paddingTop-d.paddingBottom)})});hh.forEach((c,d)=>{const e=c[0],f=e.Ed;d=b.get(d);Object.assign(f.style,{width:e.Of?e.ps:d[0],height:e.Oe?e.Lu:d[1],'max-width':c[0].ps})});hh.clear()}C(){if(null!==this.uy){const b=c=>{if(c<ih){const d=ih;window.setTimeout(()=>b(d),0)}else ih=0,a.C()};hh.set(this.uid,[this,olympe.j.
|
|
1092
|
+
const f=e.clientWidth;e=e.clientHeight;if(d.ps!==f||d.Lu!==e)d.ps=f,d.Lu=e,c[1].mc()||null===d.uy||c[1].run(()=>{d.uy(d.ps-d.paddingRight-d.paddingLeft,d.Lu-d.paddingTop-d.paddingBottom)})});hh.forEach((c,d)=>{const e=c[0],f=e.Ed;d=b.get(d);Object.assign(f.style,{width:e.Of?e.ps:d[0],height:e.Oe?e.Lu:d[1],'max-width':c[0].ps})});hh.clear()}C(){if(null!==this.uy){const b=c=>{if(c<ih){const d=ih;window.setTimeout(()=>b(d),0)}else ih=0,a.C()};hh.set(this.uid,[this,olympe.j.yb()]);ih++;1===ih&&b(0)}}rd(b){super.rd(b);
|
|
1093
1093
|
this.C()}Jb(b){if(-1<b.toString().search(Kg)){var c=this.Ed;b=b.split('').reverse().join('').replace(Mg,';tg&').split('').reverse().join('').replace(Lg,'<');c.innerHTML=b}else this.Ed.textContent=b;this.C()}Zd(b){this.Of=b;this.C()}Fd(b){this.Oe=b;this.C()}Fg(b){super.Fg(b);this.Cf();this.C()}Dg(b){super.Dg(b);this.Cf();this.C()}Bb(b){this.Ed.style['font-weight']=b.toString();this.C()}vb(b){this.Ed.style['font-family']=b||'';b&&Yg(b,()=>this.C())}rb(b){this.Ed.style['font-size']=b.toString()+'px';
|
|
1094
|
-
this.C()}Qd(b){this.Ed.style['font-style']=b.toString();this.C()}lb(b){this.ib('color',b)}Ol(b,c,d,e){this.ib('color','rgba('+b+', '+c+', '+d+', '+e+')')}ak(b){this.Ed.style['line-height']=b.toString();this.C()}Vb(b){switch(b){case olympe.ui.ha.Cb.Vf:this.Ed.style['text-align']='left';break;case olympe.ui.ha.Cb.Tb:this.Ed.style['text-align']='center';break;case olympe.ui.ha.Cb.zi:this.Ed.style['text-align']='right';break;default:this.
|
|
1095
|
-
'top';break;case olympe.ui.ha.vc.Uc:this.Ed.style['vertical-align']='middle';break;case olympe.ui.ha.vc.Ch:this.Ed.style['vertical-align']='bottom';break;default:this.
|
|
1096
|
-
c();break;default:this.
|
|
1094
|
+
this.C()}Qd(b){this.Ed.style['font-style']=b.toString();this.C()}lb(b){this.ib('color',b)}Ol(b,c,d,e){this.ib('color','rgba('+b+', '+c+', '+d+', '+e+')')}ak(b){this.Ed.style['line-height']=b.toString();this.C()}Vb(b){switch(b){case olympe.ui.ha.Cb.Vf:this.Ed.style['text-align']='left';break;case olympe.ui.ha.Cb.Tb:this.Ed.style['text-align']='center';break;case olympe.ui.ha.Cb.zi:this.Ed.style['text-align']='right';break;default:this.wb().warn('Unexpected text horizontal align value '+b+' ignored')}this.C()}Yb(b){switch(b){case olympe.ui.ha.vc.jh:this.Ed.style['vertical-align']=
|
|
1095
|
+
'top';break;case olympe.ui.ha.vc.Uc:this.Ed.style['vertical-align']='middle';break;case olympe.ui.ha.vc.Ch:this.Ed.style['vertical-align']='bottom';break;default:this.wb().warn('Unexpected text vertical align value '+b+' ignored')}this.D();this.C()}fi(b){const c=()=>{this.Ed.style.removeProperty('overflow');this.Ed.style['text-overflow']='clip'};switch(b){case olympe.ui.ha.vo.Mv:c();break;case olympe.ui.ha.vo.$G:this.Ed.style['text-overflow']='ellipsis';this.Ed.style.overflow='hidden';break;case olympe.ui.ha.vo.lH:this.wb().warn('Fade is not supported yet');
|
|
1096
|
+
c();break;default:this.wb().warn('Unexpected text overflow handling',b,'ignored'),c()}this.D()}wv(b){'pre'===b||'pre-wrap'===b||'nowrap'===b?this.Ed.style['white-space']=b:(this.wb().warn('Unexpected white space wrap value',b,'ignored'),this.Ed.style['white-space']='pre');this.C()}Ql(b){b?(this.Ed.style['user-select']='text',this.Ed.style['-webkit-user-select']='text',this.Ed.style['-moz-user-select']='text',this.Ed.style['-ms-user-select']='text',this.Ed.style.cursor='auto'):(this.Ed.style['user-select']=
|
|
1097
1097
|
'none',this.Ed.style['-webkit-user-select']='none',this.Ed.style['-moz-user-select']='none',this.Ed.style['-ms-user-select']='none',this.Ed.style.cursor='default')}lp(b){this.uy=b;this.ps&&this.Lu?b(this.ps-this.paddingRight-this.paddingLeft,this.Lu-this.paddingTop-this.paddingBottom):this.C()}Yq(){this.uy=null}Hc(b){this.paddingLeft=b||0;this.Cf();this.C()}Lc(b){this.paddingRight=b||0;this.Cf();this.C()}td(b){this.paddingTop=b||0;this.Cf();this.C()}sd(b){this.paddingBottom=b||0;this.Cf();this.C()}nj(){super.nj();
|
|
1098
1098
|
this.C()}Hj(){this.C()}D(){const b=this.Ed.style['vertical-align'],c=this.Ed.style['text-overflow'];this.Ed.style.display=b&&'top'!==b||'ellipsis'!==c?'table-cell':'block'}};olympe.G.H.ui.F.Oc.prototype.ancestorBecameVisible=olympe.G.H.ui.F.Oc.prototype.Hj;olympe.G.H.ui.F.Oc.prototype.setAppended=olympe.G.H.ui.F.Oc.prototype.nj;olympe.G.H.ui.F.Oc.prototype.setPaddingBottom=olympe.G.H.ui.F.Oc.prototype.sd;olympe.G.H.ui.F.Oc.prototype.setPaddingTop=olympe.G.H.ui.F.Oc.prototype.td;
|
|
1099
1099
|
olympe.G.H.ui.F.Oc.prototype.setPaddingRight=olympe.G.H.ui.F.Oc.prototype.Lc;olympe.G.H.ui.F.Oc.prototype.setPaddingLeft=olympe.G.H.ui.F.Oc.prototype.Hc;olympe.G.H.ui.F.Oc.prototype.unregisterTextSize=olympe.G.H.ui.F.Oc.prototype.Yq;olympe.G.H.ui.F.Oc.prototype.registerTextSize=olympe.G.H.ui.F.Oc.prototype.lp;olympe.G.H.ui.F.Oc.prototype.setSelectable=olympe.G.H.ui.F.Oc.prototype.Ql;olympe.G.H.ui.F.Oc.prototype.setWhiteSpaceWrap=olympe.G.H.ui.F.Oc.prototype.wv;
|
|
1100
1100
|
olympe.G.H.ui.F.Oc.prototype.setTextOverflow=olympe.G.H.ui.F.Oc.prototype.fi;olympe.G.H.ui.F.Oc.prototype.setTextVerticalAlign=olympe.G.H.ui.F.Oc.prototype.Yb;olympe.G.H.ui.F.Oc.prototype.setTextHorizontalAlign=olympe.G.H.ui.F.Oc.prototype.Vb;olympe.G.H.ui.F.Oc.prototype.setLineHeight=olympe.G.H.ui.F.Oc.prototype.ak;olympe.G.H.ui.F.Oc.prototype.setRGBATextColor=olympe.G.H.ui.F.Oc.prototype.Ol;olympe.G.H.ui.F.Oc.prototype.setTextColor=olympe.G.H.ui.F.Oc.prototype.lb;
|
|
1101
1101
|
olympe.G.H.ui.F.Oc.prototype.setFontStyle=olympe.G.H.ui.F.Oc.prototype.Qd;olympe.G.H.ui.F.Oc.prototype.setFontSize=olympe.G.H.ui.F.Oc.prototype.rb;olympe.G.H.ui.F.Oc.prototype.setFontFamily=olympe.G.H.ui.F.Oc.prototype.vb;olympe.G.H.ui.F.Oc.prototype.setFontWeight=olympe.G.H.ui.F.Oc.prototype.Bb;olympe.G.H.ui.F.Oc.prototype.setHeight=olympe.G.H.ui.F.Oc.prototype.Dg;olympe.G.H.ui.F.Oc.prototype.setWidth=olympe.G.H.ui.F.Oc.prototype.Fg;olympe.G.H.ui.F.Oc.prototype.setAutoHeight=olympe.G.H.ui.F.Oc.prototype.Fd;
|
|
1102
|
-
olympe.G.H.ui.F.Oc.prototype.setAutoWidth=olympe.G.H.ui.F.Oc.prototype.Zd;olympe.G.H.ui.F.Oc.prototype.setText=olympe.G.H.ui.F.Oc.prototype.Jb;olympe.G.H.ui.F.Oc.prototype.setHidden=olympe.G.H.ui.F.Oc.prototype.rd;olympe.host.Zc.register(olympe.host.ab.jb.BL,olympe.G.H.ui.F.Oc);olympe.G.H.ui.F.Oc.Aa=[olympe.N.F.cb];olympe.G.H.ui.F.sg=class extends olympe.G.H.ui.F.ic{constructor(a,b){super(a,b,document.createElement('div'));this.children=new Map;this.Oa=new Map}appendChild(a,b){a instanceof olympe.G.H.ui.F.ic||this.
|
|
1103
|
-
b);a.Ff(this,b);$g(a);this.nu&&'none'!==this.va().display&&a.Hj();this.nu&&a.nj()}removeChild(a){a=void 0!==a?a:olympe.G.H.ui.F.sg.Gg;const b=this.children.get(a);if(void 0!==b){b.parent=null;b.Iu=null;try{this.va().removeChild(b.va()),b.Pl()}catch(c){this.
|
|
1102
|
+
olympe.G.H.ui.F.Oc.prototype.setAutoWidth=olympe.G.H.ui.F.Oc.prototype.Zd;olympe.G.H.ui.F.Oc.prototype.setText=olympe.G.H.ui.F.Oc.prototype.Jb;olympe.G.H.ui.F.Oc.prototype.setHidden=olympe.G.H.ui.F.Oc.prototype.rd;olympe.host.Zc.register(olympe.host.ab.jb.BL,olympe.G.H.ui.F.Oc);olympe.G.H.ui.F.Oc.Aa=[olympe.N.F.cb];olympe.G.H.ui.F.sg=class extends olympe.G.H.ui.F.ic{constructor(a,b){super(a,b,document.createElement('div'));this.children=new Map;this.Oa=new Map}appendChild(a,b){a instanceof olympe.G.H.ui.F.ic||this.wb().warn('Trying to attach a wrongly typed object to absPosLayer (only HTMLDockableElement objects can be used with DOM UI implementation');b=void 0!==b?b:olympe.G.H.ui.F.sg.Gg;void 0!==this.children.get(b)&&this.removeChild(b);this.children.set(b,a);this.va().appendChild(a.va());a.setAttribute('name_As_A_Child',
|
|
1103
|
+
b);a.Ff(this,b);$g(a);this.nu&&'none'!==this.va().display&&a.Hj();this.nu&&a.nj()}removeChild(a){a=void 0!==a?a:olympe.G.H.ui.F.sg.Gg;const b=this.children.get(a);if(void 0!==b){b.parent=null;b.Iu=null;try{this.va().removeChild(b.va()),b.Pl()}catch(c){this.wb().debug('Not able to remove a child, has probably already been removed')}finally{this.children.delete(a)}}else this.wb().warn('Trying to remove a non existing child: '+a)}Wr(a){void 0!==a&&(this.children.delete(a),this.Oa.forEach(b=>b(a)))}ng(){for(const a of this.children.keys())this.removeChild(a)}cd(a){super.cd(a);
|
|
1104
1104
|
for(const b of this.children.values())$g(b)}Tr(){this.ib('overflow','visible')}nj(){super.nj();for(const a of this.children.values())a.nj()}Pl(){super.Pl();for(const a of this.children.values())a.Pl()}rd(a){super.rd(a);if(!a)for(const b of this.children.values())b.Hj()}Hj(){for(const a of this.children.values())a.Hj()}$(a){const b=olympe.la.cf();this.Oa.set(b,a)}};olympe.G.H.ui.F.sg.prototype.setHidden=olympe.G.H.ui.F.sg.prototype.rd;olympe.G.H.ui.F.sg.prototype.setRemoved=olympe.G.H.ui.F.sg.prototype.Pl;
|
|
1105
1105
|
olympe.G.H.ui.F.sg.prototype.setAppended=olympe.G.H.ui.F.sg.prototype.nj;olympe.G.H.ui.F.sg.prototype.authorizeOverflow=olympe.G.H.ui.F.sg.prototype.Tr;olympe.G.H.ui.F.sg.prototype.removeAllChildren=olympe.G.H.ui.F.sg.prototype.ng;olympe.G.H.ui.F.sg.prototype.childDestroyed=olympe.G.H.ui.F.sg.prototype.Wr;olympe.G.H.ui.F.sg.prototype.removeChild=olympe.G.H.ui.F.sg.prototype.removeChild;olympe.G.H.ui.F.sg.prototype.appendChild=olympe.G.H.ui.F.sg.prototype.appendChild;olympe.G.H.ui.F.sg.Gg='default';
|
|
1106
1106
|
olympe.host.Zc.register(olympe.host.ab.jb.Tz,olympe.G.H.ui.F.sg);olympe.G.H.ui.F.sg.Aa=[olympe.N.F.de,olympe.G.H.ui.F.AC];olympe.G.H.ui.F.AC=class{constructor(){}Wr(){}};olympe.G.H.ui.F.yc=class extends olympe.G.H.ui.F.ic{constructor(a,b){super(a,b,document.createElement('textarea'));this.paddingBottom=this.paddingTop=this.paddingRight=this.paddingLeft=0;this.D=this.O=void 0;this.ea='';this.T=!1;this.Ba=void 0;this.$=!1;this.va().removeAttribute('tabindex');this.ib('resize','none');this.ib('outline','0px');this.ib('overflow','auto');this.Hc(this.paddingLeft);this.Lc(this.paddingRight);this.td(this.paddingTop);this.sd(this.paddingBottom);this.ib('-webkit-user-select',
|
|
1107
1107
|
'text');this.ib('-moz-user-select','text');this.ib('-ms-user-select','text');this.ib('-user-select','text');this.va().addEventListener('mousedown',c=>{c.stopPropagation()});this.va().addEventListener('mouseup',c=>{c.stopPropagation()});this.va().addEventListener('click',c=>{c.stopPropagation()});this.va().addEventListener('keyup',c=>{c.stopPropagation()});this.va().addEventListener('keydown',c=>{c.stopPropagation()});this.va().addEventListener('keypress',c=>{c.stopPropagation()});this.C=()=>{requestAnimationFrame(this.Oa.bind(this))}}Cf(){const a=
|
|
1108
1108
|
Math.max(Math.round(this.width-2*this.borderWidth-this.paddingRight-this.paddingLeft),0),b=Math.max(Math.round(this.height-2*this.borderWidth-this.paddingTop-this.paddingBottom),0);this.ib('border',this.borderWidth+'px solid '+this.tl());this.ib('paddingLeft',this.paddingLeft+'px');this.ib('paddingRight',this.paddingRight+'px');this.ib('paddingTop',this.paddingTop+'px');this.ib('paddingBottom',this.paddingBottom+'px');ah(this,a,b)}Df(a){this.va().disabled=a}Bb(a){this.ib('fontWeight',a.toString());
|
|
1109
1109
|
$g(this)}Hc(a){this.paddingLeft=a||0;this.Cf()}Lc(a){this.paddingRight=a||0;this.Cf()}td(a){this.paddingTop=a||0;this.Cf()}sd(a){this.paddingBottom=a||0;this.Cf()}vb(a){this.ib('fontFamily',a||'')}rb(a){this.ib('fontSize',a.toString()+'px')}Qd(a){this.ib('fontStyle',a.toString())}lb(a){this.ib('color',a)}Ol(a,b,c,d){this.ib('color','rgba('+a+', '+b+', '+c+', '+d+')')}Qg(a){this.va().placeholder=a}bh(a){Sg(Qg(),this,'color:'+a)}Vb(a){switch(a){case olympe.ui.ha.Cb.Vf:this.ib('text-align','left');break;
|
|
1110
|
-
case olympe.ui.ha.Cb.Tb:this.ib('text-align','center');break;case olympe.ui.ha.Cb.zi:this.ib('text-align','right');break;default:this.
|
|
1110
|
+
case olympe.ui.ha.Cb.Tb:this.ib('text-align','center');break;case olympe.ui.ha.Cb.zi:this.ib('text-align','right');break;default:this.wb().warn('Unexpected text horizontal align value '+a+' ignored')}}Yb(a){switch(a){case olympe.ui.ha.vc.jh:this.ib('vertical-align','top');break;case olympe.ui.ha.vc.Uc:this.ib('vertical-align','middle');break;case olympe.ui.ha.vc.Ch:this.ib('vertical-align','bottom');break;default:this.wb().warn('Unexpected text vertical align value '+a+' ignored')}}Yj(){return this.va().select()}getValue(){return this.va().value}Gf(a){''!==
|
|
1111
1111
|
document.activeElement.id&&document.activeElement.id===this.va().id||this.va().value===a||(this.va().value=a,this.T&&window.setTimeout(this.Oa.bind(this),0),a=document.createEvent('HTMLEvents'),a.initEvent('input',!0,!0),a.C='input',this.va().dispatchEvent(a))}Wc(){this.O||(this.O=new olympe.G.H.ui.Na.Th(this.va()));return this.O}oq(){this.D||(this.D=new olympe.G.H.ui.Na.lr(this.va()));return this.D}Kl(a){U(this,'valueChanged',this.bm.bind(this));return this.oq().Kl(a)}bm(){W(this,'valueChanged');
|
|
1112
1112
|
return this.oq().bm()}Ik(a){U(this,'keyPressed',this.vj.bind(this));return this.Wc().Ik(a)}vj(){W(this,'keyPressed');return this.Wc().vj()}Hk(a){U(this,'keyDown',this.uj.bind(this));return this.Wc().Hk(a)}uj(){W(this,'keyDown');return this.Wc().uj()}Jk(a){U(this,'keyUp',this.wj.bind(this));return this.Wc().Jk(a)}wj(){W(this,'keyUp');return this.Wc().wj()}Oa(){const a=this.va();a.style.height=this.ea;const b=Number.parseInt(this.ea,10);let c=a.scrollHeight-this.paddingTop-this.paddingBottom;c=c>b?
|
|
1113
1113
|
c:b;a.style.height=c+'px';this.Ba&&this.Ba(c);this.Cf()}pp(a,b){const c=this.va();''===this.ea&&(this.ea=c.style.height.toString());this.Ba=b;this.T=a;!this.$&&this.T?(c.addEventListener('change',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.$=!0):this.$&&!this.T&&(c.removeEventListener('change',this.C,!1),c.removeEventListener('cut',this.C,!1),c.removeEventListener('paste',this.C,
|
|
@@ -1119,11 +1119,11 @@ olympe.G.H.ui.F.yc.prototype.setPaddingTop=olympe.G.H.ui.F.yc.prototype.td;olymp
|
|
|
1119
1119
|
'text');this.ib('-moz-user-select','text');this.ib('-ms-user-select','text');this.ib('-user-select','text');this.va().setAttribute('autocomplete','off');this.va().addEventListener('mousedown',c=>{c.stopPropagation()});this.va().addEventListener('mouseup',c=>{c.stopPropagation()});this.va().addEventListener('click',c=>{c.stopPropagation()});this.va().addEventListener('keyup',c=>{c.stopPropagation()});this.va().addEventListener('keydown',c=>{c.stopPropagation()});this.va().addEventListener('keypress',
|
|
1120
1120
|
c=>{c.stopPropagation()})}Cf(){let a=Math.min(this.Dd()/2,this.De()/2,this.Ci()),b=this.paddingLeft,c=this.paddingTop,d=Math.min(this.paddingRight,this.Dd()-2*a-this.paddingLeft),e=Math.min(this.paddingBottom,this.De()-2*a-this.paddingTop),f=this.Dd()-Math.min(2*this.Ci()+this.paddingLeft+this.paddingRight,this.Dd()),g=this.De()-Math.min(2*this.Ci()+this.paddingTop+this.paddingBottom,this.De());b=b+.5|0;c=c+.5|0;d=d+.5|0;e=e+.5|0;f=f+.5|0;g=g+.5|0;this.ib('border',(a+.5|0)+'px solid '+this.tl());
|
|
1121
1121
|
this.ib('padding-left',b+'px');this.ib('padding-right',d+'px');this.ib('padding-top',c+'px');this.ib('padding-bottom',e+'px');ah(this,f,g)}Df(a){this.va().disabled=a}Bb(a){this.ib('fontWeight',a.toString())}Hc(a){this.paddingLeft=a||0;this.Cf()}Lc(a){this.paddingRight=a||0;this.Cf()}td(a){this.paddingTop=a||0;this.Cf()}sd(a){this.paddingBottom=a||0;this.Cf()}vb(a){this.ib('fontFamily',a||'')}rb(a){this.ib('fontSize',a.toString()+'px')}Qd(a){this.ib('fontStyle',a.toString())}lb(a){this.ib('color',
|
|
1122
|
-
a)}Ol(a,b,c,d){this.ib('color','rgba('+a+', '+b+', '+c+', '+d+')')}Vb(a){switch(a){case olympe.ui.ha.Cb.Vf:this.ib('text-align','left');break;case olympe.ui.ha.Cb.Tb:this.ib('text-align','center');break;case olympe.ui.ha.Cb.zi:this.ib('text-align','right');break;default:this.
|
|
1123
|
-
'right');break;default:this.
|
|
1124
|
-
break;case olympe.ui.ha.Lr.IK:this.va().type='password';break;case olympe.ui.ha.Lr.ET:this.va().type='number';break;case olympe.ui.ha.Lr.aH:this.va().type='email';break;case olympe.ui.ha.Lr.UT:this.va().type='phone';break;default:this.
|
|
1125
|
-
case olympe.ui.ha.$z.uV:this.va().autocapitalize='words';break;case olympe.ui.ha.$z.sU:this.va().autocapitalize='sentences';break;default:this.
|
|
1126
|
-
b();break;default:this.
|
|
1122
|
+
a)}Ol(a,b,c,d){this.ib('color','rgba('+a+', '+b+', '+c+', '+d+')')}Vb(a){switch(a){case olympe.ui.ha.Cb.Vf:this.ib('text-align','left');break;case olympe.ui.ha.Cb.Tb:this.ib('text-align','center');break;case olympe.ui.ha.Cb.zi:this.ib('text-align','right');break;default:this.wb().warn('Unexpected text horizontal align value '+a+' ignored')}}Yb(a){switch(a){case olympe.ui.ha.vc.jh:this.ib('vertical-align','left');break;case olympe.ui.ha.vc.Uc:this.ib('vertical-align','center');break;case olympe.ui.ha.vc.Ch:this.ib('vertical-align',
|
|
1123
|
+
'right');break;default:this.wb().warn('Unexpected text vertical align value '+a+' ignored')}}Yj(){return this.va().select()}getValue(){return this.va().value}Gf(a){''!==document.activeElement.id&&document.activeElement.id===this.va().id||this.va().value===a||(this.va().value=a,a=document.createEvent('HTMLEvents'),a.initEvent('input',!0,!0),a.C='input',this.va().dispatchEvent(a))}Qg(a){this.va().placeholder=a}bh(a){Sg(Qg(),this,'color:'+a)}Gn(a){switch(a){case olympe.ui.ha.Lr.Zz:this.va().type='text';
|
|
1124
|
+
break;case olympe.ui.ha.Lr.IK:this.va().type='password';break;case olympe.ui.ha.Lr.ET:this.va().type='number';break;case olympe.ui.ha.Lr.aH:this.va().type='email';break;case olympe.ui.ha.Lr.UT:this.va().type='phone';break;default:this.wb().warn('Unexpected text field type '+a+' ignored')}}ov(a){this.va().min=a}lv(a){this.va().max=a}tv(a){this.va().step=a}av(a){switch(a){case olympe.ui.ha.$z.NONE:this.va().autocapitalize='off';break;case olympe.ui.ha.$z.NQ:this.va().autocapitalize='characters';break;
|
|
1125
|
+
case olympe.ui.ha.$z.uV:this.va().autocapitalize='words';break;case olympe.ui.ha.$z.sU:this.va().autocapitalize='sentences';break;default:this.wb().warn('Unexpected text field capitalization mode '+a+' ignored')}}fi(a){const b=()=>{this.removeAttribute('overflow');this.ib('text-overflow','clip')};switch(a){case olympe.ui.ha.vo.Mv:b();break;case olympe.ui.ha.vo.$G:this.ib('text-overflow','ellipsis');this.ib('overflow','hidden');break;case olympe.ui.ha.vo.lH:this.wb().warn('Fade is not supported yet');
|
|
1126
|
+
b();break;default:this.wb().warn('Unexpected text overflow handling',a,'ignored'),b()}}op(a){this.va().setAttribute('autocomplete',a.valueOf()?'on':'off')}Wc(){this.D||(this.D=new olympe.G.H.ui.Na.Th(this.va()));return this.D}oq(){this.C||(this.C=new olympe.G.H.ui.Na.lr(this.va()));return this.C}Kl(a){U(this,'valueChanged',this.bm.bind(this));return this.oq().Kl(a)}bm(){W(this,'valueChanged');return this.oq().bm()}Ik(a){U(this,'keyPressed',this.vj.bind(this));return this.Wc().Ik(a)}vj(){W(this,'keyPressed');
|
|
1127
1127
|
return this.Wc().vj()}Hk(a){U(this,'keyDown',this.uj.bind(this));return this.Wc().Hk(a)}uj(){W(this,'keyDown');return this.Wc().uj()}Jk(a){U(this,'keyUp',this.wj.bind(this));return this.Wc().Jk(a)}wj(){W(this,'keyUp');return this.Wc().wj()}destroy(){super.destroy();this.C=this.D=null}};olympe.G.H.ui.F.Ob.prototype.destroy=olympe.G.H.ui.F.Ob.prototype.destroy;olympe.G.H.ui.F.Ob.prototype.unregisterKeyUp=olympe.G.H.ui.F.Ob.prototype.wj;olympe.G.H.ui.F.Ob.prototype.registerKeyUp=olympe.G.H.ui.F.Ob.prototype.Jk;
|
|
1128
1128
|
olympe.G.H.ui.F.Ob.prototype.unregisterKeyDown=olympe.G.H.ui.F.Ob.prototype.uj;olympe.G.H.ui.F.Ob.prototype.registerKeyDown=olympe.G.H.ui.F.Ob.prototype.Hk;olympe.G.H.ui.F.Ob.prototype.unregisterKeyPressed=olympe.G.H.ui.F.Ob.prototype.vj;olympe.G.H.ui.F.Ob.prototype.registerKeyPressed=olympe.G.H.ui.F.Ob.prototype.Ik;olympe.G.H.ui.F.Ob.prototype.unregisterValueChanged=olympe.G.H.ui.F.Ob.prototype.bm;olympe.G.H.ui.F.Ob.prototype.registerValueChanged=olympe.G.H.ui.F.Ob.prototype.Kl;
|
|
1129
1129
|
olympe.G.H.ui.F.Ob.prototype.getFormEvent=olympe.G.H.ui.F.Ob.prototype.oq;olympe.G.H.ui.F.Ob.prototype.getKeyEvent=olympe.G.H.ui.F.Ob.prototype.Wc;olympe.G.H.ui.F.Ob.prototype.setAutoComplete=olympe.G.H.ui.F.Ob.prototype.op;olympe.G.H.ui.F.Ob.prototype.setTextOverflow=olympe.G.H.ui.F.Ob.prototype.fi;olympe.G.H.ui.F.Ob.prototype.setAutoCapitalization=olympe.G.H.ui.F.Ob.prototype.av;olympe.G.H.ui.F.Ob.prototype.setStep=olympe.G.H.ui.F.Ob.prototype.tv;olympe.G.H.ui.F.Ob.prototype.setMax=olympe.G.H.ui.F.Ob.prototype.lv;
|
|
@@ -1133,8 +1133,8 @@ olympe.G.H.ui.F.Ob.prototype.setFontFamily=olympe.G.H.ui.F.Ob.prototype.vb;olymp
|
|
|
1133
1133
|
olympe.host.Zc.register(olympe.host.ab.jb.FL,olympe.G.H.ui.F.Ob);olympe.G.H.ui.F.Ob.Aa=[olympe.N.F.Nb];function jh(a){const b=a.tb?'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)}
|
|
1134
1134
|
olympe.G.H.ui.F.vd=class extends olympe.G.H.ui.F.ic{constructor(a,b){super(a,b,document.createElement('div'));this.D=null;this.tb=!1;this.Qb='transparent';this.C=document.createElement('div');this.O=document.createElement('div');this.ea=!1;this.Ba=this.Oa=this.$=null;this.pb=!1;this.T=3;this.scrollLeft=this.scrollTop=0;a=this.va();this.O.style.overflow='hidden';jh(this);this.C.className='scroller';this.C.style.position='absolute';this.Ms(this.tb);this.C.appendChild(this.O);a.appendChild(this.C)}Ls(a){this.T=
|
|
1135
1135
|
this.T&1|(void 0===a?1:a)<<1;jh(this)}rv(a){this.T=this.T&2|(void 0===a?1:a);jh(this)}Ms(a=!1){this.tb=a;this.C.classList.toggle('hidescrollbar',!a);jh(this)}jy(a){this.Qb=a;this.C.style.setProperty('--scrollbar-color',this.Qb)}Fg(a){super.Fg(a);this.C.style.width=a+'px'}Dg(a){super.Dg(a);this.C.style.height=a+'px'}uB(a){this.C.scrollLeft=a}vB(a){this.C.scrollTop=a}iB(a){null===this.$&&(this.$=b=>{b.stopPropagation();b.preventDefault();a(this.C.scrollLeft,this.C.scrollTop)},this.C.addEventListener('scroll',
|
|
1136
|
-
this.$,!1),U(this,'scroll',this.DB.bind(this)),a(this.C.scrollLeft,this.C.scrollTop))}DB(){null!==this.$&&(this.C.removeEventListener('scroll',this.$,!1),W(this,'scroll'));this.$=null}cd(a){super.cd(a);null!==this.D&&$g(this.D)}zb(){return this.C.offsetHeight-this.C.clientHeight}Gb(){return this.C.offsetWidth-this.C.clientWidth}Pd(a){a instanceof olympe.G.H.ui.F.ic||this.
|
|
1137
|
-
null!==this.D&&this.ou();this.D=a;this.O.appendChild(a.va());a.setAttribute('name_As_A_Child','scrollContent');a.Ff(this,'scrollContent');$g(a);this.O.style.width=a.Dd()+'px';this.O.style.height=a.De()+'px';bh(a,(b,c)=>{const d=this.zb();this.O.style.width=b-this.Gb()+'px';this.O.style.height=c-d+'px'});this.nu?this.D.nj():this.ea=!0}ou(){if(null!==this.D){var a=this.D;a.parent=null;a.Iu=null;try{this.O.removeChild(this.D.va()),this.D.Pl(),this.ea=!1}catch(b){this.
|
|
1136
|
+
this.$,!1),U(this,'scroll',this.DB.bind(this)),a(this.C.scrollLeft,this.C.scrollTop))}DB(){null!==this.$&&(this.C.removeEventListener('scroll',this.$,!1),W(this,'scroll'));this.$=null}cd(a){super.cd(a);null!==this.D&&$g(this.D)}zb(){return this.C.offsetHeight-this.C.clientHeight}Gb(){return this.C.offsetWidth-this.C.clientWidth}Pd(a){a instanceof olympe.G.H.ui.F.ic||this.wb().warn('Trying to attach a wrongly typed object to absPosLayer (only HTMLUIElement objects can be used with DOM UI implementation');
|
|
1137
|
+
null!==this.D&&this.ou();this.D=a;this.O.appendChild(a.va());a.setAttribute('name_As_A_Child','scrollContent');a.Ff(this,'scrollContent');$g(a);this.O.style.width=a.Dd()+'px';this.O.style.height=a.De()+'px';bh(a,(b,c)=>{const d=this.zb();this.O.style.width=b-this.Gb()+'px';this.O.style.height=c-d+'px'});this.nu?this.D.nj():this.ea=!0}ou(){if(null!==this.D){var a=this.D;a.parent=null;a.Iu=null;try{this.O.removeChild(this.D.va()),this.D.Pl(),this.ea=!1}catch(b){this.wb().debug('Not able to remove a child, has probably already been removed')}finally{this.D.RE.delete('htmlScroller'),
|
|
1138
1138
|
this.D=null}}}Wr(){this.D=null}nj(){super.nj();this.ea&&(this.D.nj(),this.ea=!1)}Pl(){super.Pl();this.D&&this.D.Pl()}rd(a){super.rd(a);this.D&&this.D.Hj()}Hj(){this.D&&this.D.Hj()}PE(a){null===this.Oa&&(this.Oa=b=>{this.pb||(this.pb=!0,a(b.ctrlKey,b.shiftKey,b.altKey,b.metaKey))},this.C.addEventListener('scroll',this.Oa),U(this,'scrollStart',this.EB.bind(this)))}EB(){this.C.removeEventListener('scroll',this.Oa);W(this,'scrollStart')}OE(a){let b;null===this.Ba&&(this.Ba=c=>{clearTimeout(b);b=setTimeout(()=>
|
|
1139
1139
|
{this.pb=!1;a(c.ctrlKey,c.shiftKey,c.altKey,c.metaKey)},100)},this.C.addEventListener('scroll',this.Ba),U(this,'scrollEnd',this.CB.bind(this)))}CB(){this.C.removeEventListener('scroll',this.Ba);W(this,'scrollEnd')}};olympe.G.H.ui.F.vd.prototype.unregisterScrollEnd=olympe.G.H.ui.F.vd.prototype.CB;olympe.G.H.ui.F.vd.prototype.registerScrollEnd=olympe.G.H.ui.F.vd.prototype.OE;olympe.G.H.ui.F.vd.prototype.unregisterScrollStart=olympe.G.H.ui.F.vd.prototype.EB;
|
|
1140
1140
|
olympe.G.H.ui.F.vd.prototype.registerScrollStart=olympe.G.H.ui.F.vd.prototype.PE;olympe.G.H.ui.F.vd.prototype.ancestorBecameVisible=olympe.G.H.ui.F.vd.prototype.Hj;olympe.G.H.ui.F.vd.prototype.setHidden=olympe.G.H.ui.F.vd.prototype.rd;olympe.G.H.ui.F.vd.prototype.setRemoved=olympe.G.H.ui.F.vd.prototype.Pl;olympe.G.H.ui.F.vd.prototype.setAppended=olympe.G.H.ui.F.vd.prototype.nj;olympe.G.H.ui.F.vd.prototype.childDestroyed=olympe.G.H.ui.F.vd.prototype.Wr;olympe.G.H.ui.F.vd.prototype.clearContent=olympe.G.H.ui.F.vd.prototype.ou;
|
|
@@ -1152,19 +1152,19 @@ olympe.G.H.ui.F.Vd.prototype.onPause=olympe.G.H.ui.F.Vd.prototype.$o;olympe.G.H.
|
|
|
1152
1152
|
olympe.G.H.ui.F.Vd.prototype.play=olympe.G.H.ui.F.Vd.prototype.play;olympe.G.H.ui.F.Vd.prototype.setLoop=olympe.G.H.ui.F.Vd.prototype.sj;olympe.G.H.ui.F.Vd.prototype.setSourceStream=olympe.G.H.ui.F.Vd.prototype.fk;olympe.G.H.ui.F.Vd.prototype.setAutoplay=olympe.G.H.ui.F.Vd.prototype.oj;olympe.G.H.ui.F.Vd.prototype.setMuted=olympe.G.H.ui.F.Vd.prototype.ck;olympe.G.H.ui.F.Vd.prototype.setSource=olympe.G.H.ui.F.Vd.prototype.ne;olympe.G.H.ui.F.Vd.prototype.destroy=olympe.G.H.ui.F.Vd.prototype.destroy;
|
|
1153
1153
|
olympe.host.Zc.register(olympe.host.ab.jb.yL,olympe.G.H.ui.F.Vd);olympe.G.H.ui.F.Vd.Aa=[olympe.N.F.Audio];olympe.G.H.ui.F.kz=class extends olympe.G.H.ui.F.ic{constructor(a,b){super(a,b,document.createElement('iframe'))}Lk(a){this.va().setAttribute('src',a)}};olympe.G.H.ui.F.kz.prototype.setUrl=olympe.G.H.ui.F.kz.prototype.Lk;olympe.host.Zc.register(olympe.host.ab.jb.HL,olympe.G.H.ui.F.kz);olympe.G.H.ui.F.kz.Aa=[olympe.N.F.du];function kh(a){const b=a.D;a.D=[];b.forEach(function(c){const d=c.slice(1,c.length);switch(c[0]){case 'arc':this.arc.apply(this,d);break;case 'arcTo':this.arcTo.apply(this,d);break;case 'beginPath':this.beginPath();break;case 'bezierCurveTo':this.bezierCurveTo.apply(this,d);break;case 'clearRect':this.clearRect.apply(this,d);break;case 'clip':this.clip();break;case 'closePath':this.closePath();break;case 'fill':this.fill();break;case 'fillRect':this.fillRect.apply(this,d);break;case 'fillText':this.fillText.apply(this,
|
|
1154
1154
|
d);break;case 'lineTo':this.lineTo.apply(this,d);break;case 'lineToRelative':this.hj.apply(this,d);break;case 'moveTo':this.moveTo.apply(this,d);break;case 'quadraticCurveTo':this.quadraticCurveTo.apply(this,d);break;case 'rect':this.rect.apply(this,d);break;case 'stroke':this.stroke();break;case 'strokeRect':this.strokeRect.apply(this,d);break;case 'strokeText':this.strokeText.apply(this,d);break;case 'setStrokeStyle':this.Ns.apply(this,d);break;case 'setFillStyle':this.qj.apply(this,d);break;case 'setFont':this.$j.apply(this,
|
|
1155
|
-
d);break;case 'setGlobalCompositeOperation':this.Tq.apply(this,d);break;case 'setLineCap':this.oh.apply(this,d);break;case 'setLineJoin':this.bk.apply(this,d);break;case 'setLineWidth':this.Qh.apply(this,d);break;default:this.
|
|
1155
|
+
d);break;case 'setGlobalCompositeOperation':this.Tq.apply(this,d);break;case 'setLineCap':this.oh.apply(this,d);break;case 'setLineJoin':this.bk.apply(this,d);break;case 'setLineWidth':this.Qh.apply(this,d);break;default:this.wb().warn('Canvas: unknown instruction: ',c[0])}}.bind(a))}
|
|
1156
1156
|
olympe.G.H.ui.F.xc=class extends olympe.G.H.ui.F.ic{constructor(a,b){super(a,b,document.createElement('canvas'));this.C=this.va().getContext('2d');this.D=[];this.O=void 0;const c=this;window.addEventListener('resize',function(){kh(c)})}Fg(a){olympe.G.H.ui.F.ic.prototype.Fg.call(this,a);this.va().width=a;kh(this)}Dg(a){olympe.G.H.ui.F.ic.prototype.Dg.call(this,a);this.va().height=a;kh(this)}arc(a,b,c,d,e,f){this.D.push(['arc',a,b,c,d,e,f]);this.C.arc(a,b,c,d,e,f)}arcTo(a,b,c,d,e){this.D.push(['arcTo',
|
|
1157
1157
|
a,b,c,d,e]);this.C.arcTo(a,b,c,d,e)}beginPath(){this.D.push(['beginPath']);this.C.beginPath()}bezierCurveTo(a,b,c,d,e,f){this.D.push(['bezierCurveTo',a,b,c,d,e,f]);this.C.bezierCurveTo(a,b,c,d,e,f)}clearRect(a,b,c,d){for(;0<this.D.length;)this.D.pop();this.C.clearRect(a,b,c,d)}clip(){this.D.push(['clip']);this.C.clip()}closePath(){this.D.push(['closePath']);this.C.closePath()}fill(){this.D.push(['fill']);this.C.fill()}fillRect(a,b,c,d){this.D.push(['fillRect',a,b,c,d]);this.C.fillRect(a,b,c,d)}fillText(a,
|
|
1158
1158
|
b,c,d){this.D.push(['fillText',a,b,c,d]);this.C.fillText(a,b,c,d)}lineTo(a,b){this.D.push(['lineTo',a,b]);this.C.lineTo(a,b)}hj(a,b){this.D.push(['lineToRelative',a,b]);this.C.lineTo(a*this.Dd(),b*this.De())}moveTo(a,b){this.D.push(['moveTo',a,b]);this.C.moveTo(a,b)}quadraticCurveTo(a,b,c,d){this.D.push(['quadraticCurveTo',a,b,c,d]);this.C.quadraticCurveTo(a,b,c,d)}rect(a,b,c,d){this.D.push(['rect',a,b,c,d]);this.C.rect(a,b,c,d)}stroke(){this.D.push(['stroke']);this.C.stroke()}strokeRect(a,b,c,d){this.D.push(['strokeRect',
|
|
1159
1159
|
a,b,c,d]);this.C.strokeRect(a,b,c,d)}strokeText(a,b,c,d){this.D.push(['strokeText',a,b,c,d]);this.C.strokeText(a,b,c,d)}createLinearGradient(a,b,c,d){this.O=this.C.createLinearGradient(a,b,c,d)}addColorStop(a,b){this.O&&this.O.addColorStop(a,b)}Yw(){this.O&&(this.C.fillStyle=this.O);this.O=void 0}qj(a){this.D.push(['setFillStyle',a]);this.C.fillStyle=a}Ns(a){this.D.push(['setStrokeStyle',a]);this.C.strokeStyle=a}Tq(a){this.D.push(['setGlobalCompositeOperation',a]);this.C.globalCompositeOperation=
|
|
1160
|
-
a}$j(a){this.D.push(['setFont',a]);this.C.font=a}oh(a){let b;switch(a){case olympe.ui.ha.fw.nG:b='butt';break;case olympe.ui.ha.fw.Ot:b='round';break;case olympe.ui.ha.fw.CD:b='square';break;default:this.
|
|
1160
|
+
a}$j(a){this.D.push(['setFont',a]);this.C.font=a}oh(a){let b;switch(a){case olympe.ui.ha.fw.nG:b='butt';break;case olympe.ui.ha.fw.Ot:b='round';break;case olympe.ui.ha.fw.CD:b='square';break;default:this.wb().warn('Unexpected lime cap value '+a+' ignored')}b&&(this.D.push(['setLineCap',b]),this.C.lineCap=b)}bk(a){let b;switch(a){case olympe.ui.ha.YC.ZF:b='bevel';break;case olympe.ui.ha.YC.Ot:b='round';break;case olympe.ui.ha.YC.hK:b='miter';break;default:this.wb().warn('Unexpected line join value '+
|
|
1161
1161
|
a+' ignored')}b&&(this.D.push(['setLineJoin',b]),this.C.lineJoin=b)}Qh(a){this.D.push(['setLineWidth',a]);this.C.lineWidth=a}Ph(a){const b=this.va().toDataURL('image/png',1);a(b)}Pd(a){a=a.C;this.C.drawImage(a,0,0,a.width,a.height)}};olympe.G.H.ui.F.xc.prototype.setContent=olympe.G.H.ui.F.xc.prototype.Pd;olympe.G.H.ui.F.xc.prototype.saveAsPicture=olympe.G.H.ui.F.xc.prototype.Ph;olympe.G.H.ui.F.xc.prototype.setLineWidth=olympe.G.H.ui.F.xc.prototype.Qh;olympe.G.H.ui.F.xc.prototype.setLineJoin=olympe.G.H.ui.F.xc.prototype.bk;
|
|
1162
1162
|
olympe.G.H.ui.F.xc.prototype.setLineCap=olympe.G.H.ui.F.xc.prototype.oh;olympe.G.H.ui.F.xc.prototype.setFont=olympe.G.H.ui.F.xc.prototype.$j;olympe.G.H.ui.F.xc.prototype.setStrokeStyle=olympe.G.H.ui.F.xc.prototype.Ns;olympe.G.H.ui.F.xc.prototype.setFillStyle=olympe.G.H.ui.F.xc.prototype.qj;olympe.G.H.ui.F.xc.prototype.strokeText=olympe.G.H.ui.F.xc.prototype.strokeText;olympe.G.H.ui.F.xc.prototype.strokeRect=olympe.G.H.ui.F.xc.prototype.strokeRect;olympe.G.H.ui.F.xc.prototype.stroke=olympe.G.H.ui.F.xc.prototype.stroke;
|
|
1163
1163
|
olympe.G.H.ui.F.xc.prototype.rect=olympe.G.H.ui.F.xc.prototype.rect;olympe.G.H.ui.F.xc.prototype.quadraticCurveTo=olympe.G.H.ui.F.xc.prototype.quadraticCurveTo;olympe.G.H.ui.F.xc.prototype.moveTo=olympe.G.H.ui.F.xc.prototype.moveTo;olympe.G.H.ui.F.xc.prototype.lineToRelative=olympe.G.H.ui.F.xc.prototype.hj;olympe.G.H.ui.F.xc.prototype.lineTo=olympe.G.H.ui.F.xc.prototype.lineTo;olympe.G.H.ui.F.xc.prototype.fillText=olympe.G.H.ui.F.xc.prototype.fillText;olympe.G.H.ui.F.xc.prototype.fillRect=olympe.G.H.ui.F.xc.prototype.fillRect;
|
|
1164
1164
|
olympe.G.H.ui.F.xc.prototype.fill=olympe.G.H.ui.F.xc.prototype.fill;olympe.G.H.ui.F.xc.prototype.closePath=olympe.G.H.ui.F.xc.prototype.closePath;olympe.G.H.ui.F.xc.prototype.clip=olympe.G.H.ui.F.xc.prototype.clip;olympe.G.H.ui.F.xc.prototype.clearRect=olympe.G.H.ui.F.xc.prototype.clearRect;olympe.G.H.ui.F.xc.prototype.bezierCurveTo=olympe.G.H.ui.F.xc.prototype.bezierCurveTo;olympe.G.H.ui.F.xc.prototype.beginPath=olympe.G.H.ui.F.xc.prototype.beginPath;olympe.G.H.ui.F.xc.prototype.arcTo=olympe.G.H.ui.F.xc.prototype.arcTo;
|
|
1165
1165
|
olympe.G.H.ui.F.xc.prototype.arc=olympe.G.H.ui.F.xc.prototype.arc;olympe.G.H.ui.F.xc.prototype.setHeight=olympe.G.H.ui.F.xc.prototype.Dg;olympe.G.H.ui.F.xc.prototype.setWidth=olympe.G.H.ui.F.xc.prototype.Fg;olympe.host.Zc.register(olympe.host.ab.jb.zL,olympe.G.H.ui.F.xc);olympe.G.H.ui.F.xc.Aa=[olympe.N.F.ec];olympe.G.H.ui.ua={};function lh(a){var b=a.C;a.C=[];b.forEach(function(c){var d=c.slice(1,c.length);switch(c[0]){case 'arc':this.arc.apply(this,d);break;case 'arcTo':this.arcTo.apply(this,d);break;case 'beginPath':this.beginPath();break;case 'bezierCurveTo':this.bezierCurveTo.apply(this,d);break;case 'clearRect':this.clearRect.apply(this,d);break;case 'clip':this.clip();break;case 'closePath':this.closePath();break;case 'fill':this.fill();break;case 'fillRect':this.fillRect.apply(this,d);break;case 'fillText':this.fillText.apply(this,
|
|
1166
1166
|
d);break;case 'lineTo':this.lineTo.apply(this,d);break;case 'lineToRelative':this.hj.apply(this,d);break;case 'moveTo':this.moveTo.apply(this,d);break;case 'quadraticCurveTo':this.quadraticCurveTo.apply(this,d);break;case 'rect':this.rect.apply(this,d);break;case 'stroke':this.stroke();break;case 'strokeRect':this.strokeRect.apply(this,d);break;case 'strokeText':this.strokeText.apply(this,d);break;case 'setFillStyle':this.qj.apply(this,d);break;case 'setFont':this.$j.apply(this,d);break;case 'setGlobalCompositeOperation':this.Tq.apply(this,
|
|
1167
|
-
d);break;case 'setLineCap':this.oh.apply(this,d);break;case 'setLineJoin':this.bk.apply(this,d);break;case 'setLineWidth':this.Qh.apply(this,d);break;default:this.
|
|
1167
|
+
d);break;case 'setLineCap':this.oh.apply(this,d);break;case 'setLineJoin':this.bk.apply(this,d);break;case 'setLineWidth':this.Qh.apply(this,d);break;default:this.wb().warn('Bitmap container: unknown instruction: ',c[0])}}.bind(a))}
|
|
1168
1168
|
olympe.G.H.ui.ua.Jc=class extends olympe.G.H.ui.F.ic{constructor(a,b){super(a,b,document.createElement('canvas'));this.D=this.va().getContext('2d');this.C=[];window.addEventListener('resize',()=>{lh(this)})}Fg(a){super.Fg(a);this.va().width=a;lh(this)}Dg(a){super.Dg(a);this.va().height=a;lh(this)}arc(a,b,c,d,e,f){this.C.push(['arc',a,b,c,d,e,f]);this.D.arc(a,b,c,d,e,f)}arcTo(a,b,c,d,e){this.C.push(['arcTo',a,b,c,d,e]);this.D.arcTo(a,b,c,d,e)}beginPath(){this.C.push(['beginPath']);this.D.beginPath()}bezierCurveTo(a,
|
|
1169
1169
|
b,c,d,e,f){this.C.push(['bezierCurveTo',a,b,c,d,e,f]);this.D.bezierCurveTo(a,b,c,d,e,f)}clearRect(a,b,c,d){for(;0<this.C.length;)this.C.pop();this.D.clearRect(a,b,c,d)}clip(){this.C.push(['clip']);this.D.clip()}closePath(){this.C.push(['closePath']);this.D.closePath()}fill(){this.C.push(['fill']);this.D.fill()}fillRect(a,b,c,d){this.C.push(['fillRect',a,b,c,d]);this.D.fillRect(a,b,c,d)}fillText(a,b,c,d){this.C.push(['fillText',a,b,c,d]);this.D.fillText(a,b,c,d)}lineTo(a,b){this.C.push(['lineTo',a,
|
|
1170
1170
|
b]);this.D.lineTo(a,b)}hj(a,b){this.C.push(['lineToRelative',a,b]);this.D.lineTo(a*this.width,b*this.height)}moveTo(a,b){this.C.push(['moveTo',a,b]);this.D.moveTo(a,b)}quadraticCurveTo(a,b,c,d){this.C.push(['quadraticCurveTo',a,b,c,d]);this.D.quadraticCurveTo(a,b,c,d)}rect(a,b,c,d){this.C.push(['rect',a,b,c,d]);this.D.rect(a,b,c,d)}stroke(){this.C.push(['stroke']);this.D.stroke()}strokeRect(a,b,c,d){this.C.push(['strokeRect',a,b,c,d]);this.D.strokeRect(a,b,c,d)}strokeText(a,b,c,d){this.C.push(['strokeText',
|
|
@@ -1177,14 +1177,14 @@ olympe.G.H.ui.ua.Jc.prototype.arcTo=olympe.G.H.ui.ua.Jc.prototype.arcTo;olympe.G
|
|
|
1177
1177
|
b){const c=this.C.getContext('2d'),d=new Image;d.crossOrigin='Anonymous';d.onload=()=>{this.C.width=d.width;this.C.height=d.height;c.clearRect(0,0,d.width,d.height);c.drawImage(d,0,0,d.width,d.height,0,0,d.width,d.height);b(!0,d.width,d.height)};d.onerror=()=>{b(!1,0,0)};d.src=a}};olympe.G.H.ui.ua.Image.prototype.drawUrl=olympe.G.H.ui.ua.Image.prototype.Vw;olympe.G.H.ui.ua.Image.prototype.drawVectorial=olympe.G.H.ui.ua.Image.prototype.Ww;olympe.G.H.ui.ua.Image.prototype.toDataUrl=olympe.G.H.ui.ua.Image.prototype.DF;
|
|
1178
1178
|
olympe.host.Zc.register(olympe.host.ab.jb.aG,olympe.G.H.ui.ua.Image);olympe.G.H.ui.ua.Image.Aa=[olympe.N.ua.Image];olympe.G.H.ui.ua.filters={};olympe.G.H.ui.ua.filters.xt=class extends olympe.G.H.ui.F.ic{constructor(a,b){const c=document.createElement('canvas');super(a,b,c);this.O=1;this.C=null;this.T=c;window.D=this.D.bind(this)}wB(a){this.O=a;this.D()}tB(a){const b=this.uid;null!==this.C&&this.C.D.delete(b);this.C=a;this.C.D.set(b,this.D.bind(this))}D(){if(null!==this.C){var a=this.C.C,b=a.width,c=a.height;a=a.getContext('2d').getImageData(0,0,b,c).data;var d=this.T;d.width=b;d.height=c;var e=d.getContext('2d').getImageData(0,0,b,c),f=
|
|
1179
1179
|
e.data,g=this.O+.5|0,k=b/g+1|0,l=c/g+1|0,m,n,p,r,t,u,v;for(n=0;n<l;n++){var w=n*g;var x=Math.min(g,c-w);for(m=0;m<k;m++){var y=m*g;var B=Math.min(g,b-y);var H=x*B;for(r=v=u=t=0;r<x;r++){var G=(w+r)*b;for(p=0;p<B;p++){var R=4*(y+p+G);t+=a[R];u+=a[R+1];v+=a[R+2]}}t/=H;u/=H;v/=H;for(r=0;r<x;r++)for(G=(w+r)*b,p=0;p<B;p++)R=4*(y+p+G),f[R]=t,f[R+1]=u,f[R+2]=v,f[R+3]=255}}d.getContext('2d').putImageData(e,0,0)}}};olympe.G.H.ui.ua.filters.xt.prototype.setImage=olympe.G.H.ui.ua.filters.xt.prototype.tB;
|
|
1180
|
-
olympe.G.H.ui.ua.filters.xt.prototype.setSquareSize=olympe.G.H.ui.ua.filters.xt.prototype.wB;olympe.host.Zc.register(olympe.host.ab.jb.bG,olympe.G.H.ui.ua.filters.xt);olympe.G.H.ui.ua.filters.xt.Aa=[olympe.N.ua.filters.jw];olympe.G.H.ui.media={};olympe.G.H.ui.media.nr=class extends olympe.G.H.ui.wf{constructor(a,b){super(a,b)}destroy(){}$(){}ca(){}Vs(a,b,c){const d=new olympe.G.H.ui.F.Id('takePictureVideo',this.
|
|
1180
|
+
olympe.G.H.ui.ua.filters.xt.prototype.setSquareSize=olympe.G.H.ui.ua.filters.xt.prototype.wB;olympe.host.Zc.register(olympe.host.ab.jb.bG,olympe.G.H.ui.ua.filters.xt);olympe.G.H.ui.ua.filters.xt.Aa=[olympe.N.ua.filters.jw];olympe.G.H.ui.media={};olympe.G.H.ui.media.nr=class extends olympe.G.H.ui.wf{constructor(a,b){super(a,b)}destroy(){}$(){}ca(){}Vs(a,b,c){const d=new olympe.G.H.ui.F.Id('takePictureVideo',this.wb()),e=d.va(),f=document.createElement('canvas'),g=()=>{var k=e.videoWidth,l=e.videoHeight,m=void 0!==b?b:k;const n=void 0!==c?c:l;var p=Math.max(m/k,n/l);const r=Math.floor(m/p);p=Math.floor(n/p);k=(k-r)/2;l=(l-p)/2;f.setAttribute('width',m+'px');f.setAttribute('height',n+'px');const t=f.getContext('2d');t.clearRect(0,0,m,n);t.drawImage(e,
|
|
1181
1181
|
k,l,r,p,0,0,m,n);m=f.toDataURL();document.body.removeChild(f);e.removeEventListener('canplay',g);d.destroy();a(m)};f.style.display='none';e.style.display='none';document.body.appendChild(f);document.body.appendChild(e);e.addEventListener('canplay',g);this.$(d)}};olympe.G.H.ui.media.nr.prototype.takePicture=olympe.G.H.ui.media.nr.prototype.Vs;olympe.G.H.ui.media.nr.prototype.destroy=olympe.G.H.ui.media.nr.prototype.destroy;olympe.G.H.ui.media.nr.Aa=[olympe.N.media.MediaStream];function mh(a){a.getTracks().forEach(b=>b.stop())}function nh(a,b){a.D&&(a.C=b,Object.values(a.D).forEach(c=>c(b)))}function oh(a,b){a.W&&Object.values(a.W).forEach(c=>c(b))}
|
|
1182
|
-
olympe.G.H.ui.media.Xv=class extends olympe.G.H.ui.media.nr{constructor(a,b){super(a,b);this.C=null;this.D={};this.W=Object.create(null);this.O=Object.create(null)}destroy(){null!==this.C&&mh(this.C);this.W=this.D=this.C=null}$(a){const b=a.uid;this.O[b]&&(this.D&&delete this.D[this.O[b]],delete this.O[b]);this.O[b]=this.ea(c=>{const d=a.va();'srcObject'in d?d.srcObject=c:'URL'in window?d.src=window.URL.createObjectURL(c):a.
|
|
1182
|
+
olympe.G.H.ui.media.Xv=class extends olympe.G.H.ui.media.nr{constructor(a,b){super(a,b);this.C=null;this.D={};this.W=Object.create(null);this.O=Object.create(null)}destroy(){null!==this.C&&mh(this.C);this.W=this.D=this.C=null}$(a){const b=a.uid;this.O[b]&&(this.D&&delete this.D[this.O[b]],delete this.O[b]);this.O[b]=this.ea(c=>{const d=a.va();'srcObject'in d?d.srcObject=c:'URL'in window?d.src=window.URL.createObjectURL(c):a.wb().error('Cannot set stream as video input source')})}ca(a){a=a.uid;this.O[a]&&
|
|
1183
1183
|
(this.D&&delete this.D[this.O[a]],delete this.O[a]);0===Object.keys(this.O).length&&(null!==this.C&&mh(this.C),this.C=null)}na(a){var b;b||(b=olympe.la.cf());this.W&&(this.W[b]=a)}ea(a,b){b||(b=olympe.la.cf());this.D&&(this.D[b]=a,null!==this.C&&a(this.C));return b}};olympe.G.H.ui.media.Xv.prototype.destroy=olympe.G.H.ui.media.Xv.prototype.destroy;olympe.G.H.ui.media.Xv.Aa=[olympe.N.media.Qr];function ph(a,b,c){const d=olympe.G.H.ui.media.Jp.C;d&&(mh(d),olympe.G.H.ui.media.Jp.C=null);navigator.mediaDevices?navigator.mediaDevices.getUserMedia(a).then(function(e){olympe.G.H.ui.media.Jp.C=e;b(e)}).catch(c):c(Error('Media devices are not supported by this browser'))}
|
|
1184
1184
|
olympe.G.H.ui.media.Jp=class extends olympe.G.H.ui.media.Xv{constructor(a,b){super(a,b);this.R=new olympe.G.H.ui.media.BR;this.T=!1;qh(this.R)}vv(a){this.R.vv(a);null!==this.C&&!this.T&&this.No()}pF(a){a.Bv(this.R);null!==this.C&&!this.T&&this.No()}$u(a){this.R.$u(a);null!==this.C&&!this.T&&this.No()}mB(a){a.Bv(this.R);null!==this.C&&!this.T&&this.No()}ea(a,b){null!==this.C||this.T||this.No();return olympe.G.H.ui.media.Xv.prototype.ea.call(this,a,b)}No(){this.T=!0;ph(rh(this.R),a=>{this.T=!1;nh(this,
|
|
1185
|
-
a);oh(this,!0)},a=>{if('OverconstrainedError'===a.name){a=this.
|
|
1186
|
-
olympe.G.H.ui.media.Jp.C=null;void 0===navigator.mediaDevices&&console.error("Current platform doesn't support media devices.");olympe.G.H.ui.media.Jp.Aa=[olympe.N.media.ti];function sh(a,b){null===olympe.G.H.ui.media.ik.cc?navigator.mediaDevices.getUserMedia({audio:!1,video:!0}).then(c=>{c.getTracks().forEach(d=>{d.stop()});navigator.mediaDevices.enumerateDevices().then(d=>{olympe.G.H.ui.media.ik.cc=d;b(d)}).catch(d=>{a.
|
|
1187
|
-
function th(a,b,c){const d='videoinput'===b?'Camera ':'Microphone ';void 0===navigator.mediaDevices?(a.
|
|
1185
|
+
a);oh(this,!0)},a=>{if('OverconstrainedError'===a.name){a=this.wb();var b=a.error,c=this.R;let d;d='('+(c.R?'video:'+c.R+' ':'');d+=c.O?'audio:'+c.O+' ':'';b.call(a,'Stream(s) requested '+(d+') not available'))}else a=a.message||a.name||String(a),this.wb().error('HTMLLocalUserStream.initStream, getUserMedia error: '+a);oh(this,!1)})}};olympe.G.H.ui.media.Jp.prototype.setAudioInputDevice=olympe.G.H.ui.media.Jp.prototype.mB;olympe.host.Zc.register(olympe.host.ab.jb.dK,olympe.G.H.ui.media.Jp);
|
|
1186
|
+
olympe.G.H.ui.media.Jp.C=null;void 0===navigator.mediaDevices&&console.error("Current platform doesn't support media devices.");olympe.G.H.ui.media.Jp.Aa=[olympe.N.media.ti];function sh(a,b){null===olympe.G.H.ui.media.ik.cc?navigator.mediaDevices.getUserMedia({audio:!1,video:!0}).then(c=>{c.getTracks().forEach(d=>{d.stop()});navigator.mediaDevices.enumerateDevices().then(d=>{olympe.G.H.ui.media.ik.cc=d;b(d)}).catch(d=>{a.wb().error('Failed to obtain media list:',d);b([])})}).catch(c=>{a.wb().error(c);b([])}):b(olympe.G.H.ui.media.ik.cc)}
|
|
1187
|
+
function th(a,b,c){const d='videoinput'===b?'Camera ':'Microphone ';void 0===navigator.mediaDevices?(a.wb().error('Media devices are not supported by this browser'),c([])):sh(a,e=>{const f=[];e.forEach(g=>{g.kind===b&&f.push({id:g.deviceId,name:g.label||d+f.length})});c(f)})}olympe.G.H.ui.media.ik=class extends olympe.G.H.ui.wf{constructor(a,b){super(a,b)}destroy(){}bx(a){th(this,'videoinput',a)}ax(a){th(this,'audioinput',a)}};olympe.G.H.ui.media.ik.prototype.getAllAudioInputDevices=olympe.G.H.ui.media.ik.prototype.ax;
|
|
1188
1188
|
olympe.G.H.ui.media.ik.prototype.getAllVideoInputDevices=olympe.G.H.ui.media.ik.prototype.bx;olympe.G.H.ui.media.ik.prototype.destroy=olympe.G.H.ui.media.ik.prototype.destroy;olympe.G.H.ui.media.ik.cc=null;olympe.host.Zc.register(olympe.host.ab.jb.eK,olympe.G.H.ui.media.ik);olympe.G.H.ui.media.ik.Aa=[olympe.N.media.Up];olympe.G.H.ui.media.zt=class extends olympe.G.H.ui.media.nr{constructor(a,b){super(a,b);this.url=null}$(a){a.ne(this.url||'')}ca(a){a.ne('')}Lk(a){this.url=a}le(){return this.url}};olympe.G.H.ui.media.zt.prototype.getUrl=olympe.G.H.ui.media.zt.prototype.le;olympe.G.H.ui.media.zt.prototype.setUrl=olympe.G.H.ui.media.zt.prototype.Lk;olympe.host.Zc.register(olympe.host.ab.jb.fK,olympe.G.H.ui.media.zt);olympe.G.H.ui.media.zt.Aa=[olympe.N.media.MediaStream];function rh(a){return{audio:a.T?a.D:!1,video:a.W?a.C:!1}}function qh(a){a.C={facingMode:{exact:'environment'}}}olympe.G.H.ui.media.BR=class{constructor(){this.T=!0;this.D={};this.W=!0;this.C={};this.O=this.R=null}$u(a){this.T=a}vv(a){this.W=a}};olympe.G.H.ui.media.cc={};olympe.G.H.ui.media.cc.mr=class extends olympe.G.H.ui.wf{constructor(a,b){super(a,b)}destroy(){}bb(){}Bv(){}};olympe.G.H.ui.media.cc.mr.prototype.getName=olympe.G.H.ui.media.cc.mr.prototype.bb;olympe.G.H.ui.media.cc.mr.prototype.destroy=olympe.G.H.ui.media.cc.mr.prototype.destroy;olympe.G.H.ui.media.cc.mr.Aa=[olympe.N.media.cc.Tp];olympe.G.H.ui.media.cc.Fp=class extends olympe.G.H.ui.media.cc.mr{constructor(a,b){super(a,b);this.name=this.id=''}rp(a,b){this.id=a;this.name=b}bb(){return this.name}Bv(a){var b=this.id;a.O=b;switch(b){case olympe.ui.ha.Qp.SG:a.D={};break;default:a.D={deviceId:{exact:b}}}}};olympe.G.H.ui.media.cc.Fp.prototype.updateConstraints=olympe.G.H.ui.media.cc.Fp.prototype.Bv;olympe.G.H.ui.media.cc.Fp.prototype.getName=olympe.G.H.ui.media.cc.Fp.prototype.bb;
|
|
1189
1189
|
olympe.G.H.ui.media.cc.Fp.prototype.setIdAndName=olympe.G.H.ui.media.cc.Fp.prototype.rp;olympe.host.Zc.register(olympe.host.ab.jb.cK,olympe.G.H.ui.media.cc.Fp);olympe.G.H.ui.media.cc.Fp.Aa=[olympe.N.media.cc.up];olympe.G.H.ui.media.cc.Np=class extends olympe.G.H.ui.media.cc.mr{constructor(a,b){super(a,b);this.name=this.id=''}rp(a,b){this.id=a;this.name=b}bb(){return this.name}Bv(a){var b=this.id;a.R=b;switch(b){case olympe.ui.ha.Qp.kH:a.C={facingMode:'user'};break;case olympe.ui.ha.Qp.TG:qh(a);break;case olympe.ui.ha.Qp.dH:qh(a);break;default:a.C={deviceId:{exact:b}}}}};olympe.G.H.ui.media.cc.Np.prototype.updateConstraints=olympe.G.H.ui.media.cc.Np.prototype.Bv;
|
|
1190
1190
|
olympe.G.H.ui.media.cc.Np.prototype.getName=olympe.G.H.ui.media.cc.Np.prototype.bb;olympe.G.H.ui.media.cc.Np.prototype.setIdAndName=olympe.G.H.ui.media.cc.Np.prototype.rp;olympe.host.Zc.register(olympe.host.ab.jb.gK,olympe.G.H.ui.media.cc.Np);olympe.G.H.ui.media.cc.Np.Aa=[olympe.N.media.cc.Hm];olympe.G.H.ui.Ta={};olympe.G.H.ui.Ta.Va={};function uh(a){var b=document.createElement('link');b.rel='stylesheet';b.type='text/css';b.href='https://unpkg.com/leaflet@1.7.1/dist/leaflet.css';document.head.appendChild(b);b=document.createElement('script');b.type='text/javascript';b.src='https://unpkg.com/leaflet@1.7.1/dist/leaflet.js';b.id='LEAFLET';b.onload=a;document.body.appendChild(b)}
|
|
@@ -1228,7 +1228,7 @@ olympe.G.H.ui.P.Ha.prototype.addAnimation=olympe.G.H.ui.P.Ha.prototype.Gw;olympe
|
|
|
1228
1228
|
olympe.G.H.ui.P.Ha.prototype.getStrokeWidth=olympe.G.H.ui.P.Ha.prototype.cn;olympe.G.H.ui.P.Ha.prototype.setStrokeWidth=olympe.G.H.ui.P.Ha.prototype.uv;olympe.G.H.ui.P.Ha.prototype.setStrokeLinecap=olympe.G.H.ui.P.Ha.prototype.ny;olympe.G.H.ui.P.Ha.prototype.setStrokeDashOffset=olympe.G.H.ui.P.Ha.prototype.ly;olympe.G.H.ui.P.Ha.prototype.setStrokeDashPattern=olympe.G.H.ui.P.Ha.prototype.my;olympe.G.H.ui.P.Ha.prototype.setStrokeColorAndOpacity=olympe.G.H.ui.P.Ha.prototype.yB;
|
|
1229
1229
|
olympe.G.H.ui.P.Ha.prototype.setStrokeOpacity=olympe.G.H.ui.P.Ha.prototype.nF;olympe.G.H.ui.P.Ha.prototype.setStrokeColor=olympe.G.H.ui.P.Ha.prototype.setStrokeColor;olympe.G.H.ui.P.Ha.prototype.setFillColorAndOpacity=olympe.G.H.ui.P.Ha.prototype.rB;olympe.G.H.ui.P.Ha.prototype.setFillOpacity=olympe.G.H.ui.P.Ha.prototype.cF;olympe.G.H.ui.P.Ha.prototype.setFillColor=olympe.G.H.ui.P.Ha.prototype.setFillColor;olympe.G.H.ui.P.Ha.prototype.setFilled=olympe.G.H.ui.P.Ha.prototype.Tx;
|
|
1230
1230
|
olympe.G.H.ui.P.Ha.prototype.rotate=olympe.G.H.ui.P.Ha.prototype.rotate;olympe.G.H.ui.P.Ha.prototype.refreshBox=olympe.G.H.ui.P.Ha.prototype.ge;olympe.G.H.ui.P.Ha.Aa=[olympe.N.P.oc];olympe.G.H.ui.P.HTMLFilter=class extends olympe.G.H.ui.P.pe{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.hd.Le.Hf,'filter'));this.children=new Map}Oi(a){this.setAttribute('filterUnits',a?'userSpaceOnUse':'objectBoundingBox')}addElement(a,b){b||(b=olympe.G.H.ui.P.hd.Gg);this.children.get(b)&&this.Tu(b);this.children.set(b,a);this.va().appendChild(a.va());a.Ff(this)}Tu(a){a||(a=olympe.G.H.ui.P.hd.Gg);const b=this.children.get(a);if(void 0!==b)try{this.va().removeChild(b.va()),
|
|
1231
|
-
b.Ff(null)}catch(c){this.
|
|
1231
|
+
b.Ff(null)}catch(c){this.wb().debug('Not able to remove a child, has probably already been removed')}finally{this.children.delete(a)}else this.wb().warn('Trying to remove a non existing child: '+a)}Hx(){this.children.clear();let a;const b=this.va();for(;a=b.firstChild;)b.removeChild(a)}zP(a,b){this.va().replaceChild(b,a)}ge(){olympe.G.H.ui.P.pe.prototype.ge.call(this);const a=this.Dd(),b=this.De(),c=this.qa(),d=this.sa();for(const e of this.children.values())e.Px(c,d,a,b)}};
|
|
1232
1232
|
olympe.G.H.ui.P.HTMLFilter.prototype.refreshBox=olympe.G.H.ui.P.HTMLFilter.prototype.ge;olympe.G.H.ui.P.HTMLFilter.prototype.replaceChildHtmlElement=olympe.G.H.ui.P.HTMLFilter.prototype.zP;olympe.G.H.ui.P.HTMLFilter.prototype.removeAllElements=olympe.G.H.ui.P.HTMLFilter.prototype.Hx;olympe.G.H.ui.P.HTMLFilter.prototype.removeElement=olympe.G.H.ui.P.HTMLFilter.prototype.Tu;olympe.G.H.ui.P.HTMLFilter.prototype.addElement=olympe.G.H.ui.P.HTMLFilter.prototype.addElement;
|
|
1233
1233
|
olympe.G.H.ui.P.HTMLFilter.prototype.setAbsolute=olympe.G.H.ui.P.HTMLFilter.prototype.Oi;olympe.host.Zc.register(olympe.host.ab.jb.nM,olympe.G.H.ui.P.HTMLFilter);olympe.G.H.ui.P.HTMLFilter.Aa=[olympe.N.P.Sf];olympe.G.H.ui.P.Ih=class extends olympe.G.H.ui.P.pe{constructor(a,b,c){super(a,b,c);this.na=null}kv(a){this.setAttribute('result',this.id=a)}nq(a){if(a instanceof olympe.G.H.ui.P.Ih)a=a.ja();else switch(a){case olympe.ui.ha.qt.JU:a='SourceGraphic';break;case olympe.ui.ha.qt.IU:a='SourceAlpha';break;case olympe.ui.ha.qt.zQ:a='BackgroundImage';break;case olympe.ui.ha.qt.yQ:a='BackgroundAlpha';break;case olympe.ui.ha.qt.pR:a='FillPaint';break;case olympe.ui.ha.qt.OU:a='StrokePaint';break;default:a=String(a)}return a}dk(a){this.na=
|
|
1234
1234
|
a}Mg(){return this.na}};olympe.G.H.ui.P.Ih.prototype.getNext=olympe.G.H.ui.P.Ih.prototype.Mg;olympe.G.H.ui.P.Ih.prototype.setNext=olympe.G.H.ui.P.Ih.prototype.dk;olympe.G.H.ui.P.Ih.prototype.getFilterInput=olympe.G.H.ui.P.Ih.prototype.nq;olympe.G.H.ui.P.Ih.prototype.setId=olympe.G.H.ui.P.Ih.prototype.kv;olympe.G.H.ui.P.Ih.Aa=[olympe.N.P.Hg];olympe.G.H.ui.P.ut=class extends olympe.G.H.ui.P.Ih{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.hd.Le.Hf,'feGaussianBlur'));this.setAttribute('color-interpolation-filters','sRGB');this.amount=null}Ix(a){this.setAttribute('stdDeviation',this.amount=a)}kf(a){this.setAttribute('in',this.nq(a))}};olympe.G.H.ui.P.ut.prototype.setInput=olympe.G.H.ui.P.ut.prototype.kf;olympe.G.H.ui.P.ut.prototype.setAmount=olympe.G.H.ui.P.ut.prototype.Ix;
|
|
@@ -1238,7 +1238,7 @@ olympe.host.Zc.register(olympe.host.ab.jb.pM,olympe.G.H.ui.P.wt);olympe.G.H.ui.P
|
|
|
1238
1238
|
'multiply';b=this.D;break;case olympe.ui.ha.vp.rU:a='screen';b=this.D;break;case olympe.ui.ha.vp.LU:a='in';b=this.O;break;case olympe.ui.ha.vp.MU:a='out';b=this.O;break;case olympe.ui.ha.vp.KU:a='atop';b=this.O;break;case olympe.ui.ha.vp.yV:a='xor';b=this.O;break;default:a='normal',b=this.D}b!==this.C&&(this.getParent()instanceof olympe.G.H.ui.P.HTMLFilter&&this.getParent().zP(this.C,b),this.C=b,this.$&&this.setAttribute('in',this.$),this.ea&&this.setAttribute('in2',this.ea));this.setAttribute(this.C===
|
|
1239
1239
|
this.D?'mode':'operator',this.mode=a)}};olympe.G.H.ui.P.Gp.prototype.setMode=olympe.G.H.ui.P.Gp.prototype.ay;olympe.G.H.ui.P.Gp.prototype.setInput2=olympe.G.H.ui.P.Gp.prototype.Xx;olympe.G.H.ui.P.Gp.prototype.setInput=olympe.G.H.ui.P.Gp.prototype.kf;olympe.host.Zc.register(olympe.host.ab.jb.qM,olympe.G.H.ui.P.Gp);olympe.G.H.ui.P.Gp.Aa=[olympe.N.P.Yn];olympe.G.H.ui.P.om=class extends olympe.G.H.ui.P.Ha{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.hd.Le.Hf,'ellipse'));this.O=this.D=1}yE(){const a=this.cn();return Za(this.qa()+a/2,this.sa()+a/2)}ge(){olympe.G.H.ui.P.Ha.prototype.ge.call(this);const a=this.cn();this.setAttribute('rx',this.D-a/2);this.setAttribute('ry',this.O-a/2)}px(){return Math.min(this.D,this.O)}hF(a){this.D=Math.abs(a);this.ge()}iF(a){this.O=Math.abs(a);this.ge()}setRadius(a,b){this.D=Math.abs(a);this.O=
|
|
1240
1240
|
Math.abs(b);this.ge()}};olympe.G.H.ui.P.om.prototype.setRadius=olympe.G.H.ui.P.om.prototype.setRadius;olympe.G.H.ui.P.om.prototype.setRy=olympe.G.H.ui.P.om.prototype.iF;olympe.G.H.ui.P.om.prototype.setRx=olympe.G.H.ui.P.om.prototype.hF;olympe.G.H.ui.P.om.prototype.refreshBox=olympe.G.H.ui.P.om.prototype.ge;olympe.host.Zc.register(olympe.host.ab.jb.mM,olympe.G.H.ui.P.om);olympe.G.H.ui.P.om.Aa=[olympe.N.P.$n];olympe.G.H.ui.P.Hp=class extends olympe.G.H.ui.P.Ih{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.hd.Le.Hf,'feFlood'));this.D=this.O=null}dF(a){this.O=a;this.setAttribute('flood-color',this.O)}fF(a){this.D=a;this.setAttribute('flood-opacity',this.D)}eF(a,b,c,d){this.setAttribute('flood-color',this.O='rgb('+a+','+b+','+c+')');this.D=d;this.setAttribute('flood-opacity',this.D)}};olympe.G.H.ui.P.Hp.prototype.setFloodColorAndOpacity=olympe.G.H.ui.P.Hp.prototype.eF;
|
|
1241
|
-
olympe.G.H.ui.P.Hp.prototype.setFloodOpacity=olympe.G.H.ui.P.Hp.prototype.fF;olympe.G.H.ui.P.Hp.prototype.setFloodColor=olympe.G.H.ui.P.Hp.prototype.dF;olympe.host.Zc.register(olympe.host.ab.jb.rM,olympe.G.H.ui.P.Hp);olympe.G.H.ui.P.Hp.Aa=[olympe.N.P.ao];olympe.G.H.ui.P.co=class extends olympe.G.H.ui.P.Ke{constructor(a,b,c){super(a,b,c);this.D=new Map}Oi(a){this.setAttribute('gradientUnits',a?'userSpaceOnUse':'objectBoundingBox')}Mw(a,b){b||(b=olympe.G.H.ui.P.hd.Gg);this.D.has(b)&&this.Xu(b);this.D.set(b,a);this.va().appendChild(a.va())}Xu(a){a||(a=olympe.G.H.ui.P.hd.Gg);const b=this.D.get(a);if(void 0!==b)try{this.va().removeChild(b.va())}catch(c){this.
|
|
1241
|
+
olympe.G.H.ui.P.Hp.prototype.setFloodOpacity=olympe.G.H.ui.P.Hp.prototype.fF;olympe.G.H.ui.P.Hp.prototype.setFloodColor=olympe.G.H.ui.P.Hp.prototype.dF;olympe.host.Zc.register(olympe.host.ab.jb.rM,olympe.G.H.ui.P.Hp);olympe.G.H.ui.P.Hp.Aa=[olympe.N.P.ao];olympe.G.H.ui.P.co=class extends olympe.G.H.ui.P.Ke{constructor(a,b,c){super(a,b,c);this.D=new Map}Oi(a){this.setAttribute('gradientUnits',a?'userSpaceOnUse':'objectBoundingBox')}Mw(a,b){b||(b=olympe.G.H.ui.P.hd.Gg);this.D.has(b)&&this.Xu(b);this.D.set(b,a);this.va().appendChild(a.va())}Xu(a){a||(a=olympe.G.H.ui.P.hd.Gg);const b=this.D.get(a);if(void 0!==b)try{this.va().removeChild(b.va())}catch(c){this.wb().debug('Not able to remove a child, has probably already been removed')}finally{this.D.delete(a)}else this.wb().warn('Trying to remove a non existing child: '+
|
|
1242
1242
|
a)}};olympe.G.H.ui.P.co.prototype.removeStop=olympe.G.H.ui.P.co.prototype.Xu;olympe.G.H.ui.P.co.prototype.addStop=olympe.G.H.ui.P.co.prototype.Mw;olympe.G.H.ui.P.co.prototype.setAbsolute=olympe.G.H.ui.P.co.prototype.Oi;olympe.G.H.ui.P.co.Aa=[olympe.N.P.Hh];olympe.G.H.ui.P.pm=class extends olympe.G.H.ui.P.Ke{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.hd.Le.Hf,'stop'));this.D=this.O=this.offset=null}by(a){this.setAttribute('offset',this.offset=a)}lF(a){this.O=a;this.setAttribute('stop-color',this.O)}mF(a){this.D=a;this.setAttribute('stop-opacity',this.D)}xB(a,b,c,d){this.setAttribute('stop-color',this.O='rgb('+a+','+b+','+c+')');this.D=d;this.setAttribute('stop-opacity',this.D)}};
|
|
1243
1243
|
olympe.G.H.ui.P.pm.prototype.setStopColorAndOpacity=olympe.G.H.ui.P.pm.prototype.xB;olympe.G.H.ui.P.pm.prototype.setStopOpacity=olympe.G.H.ui.P.pm.prototype.mF;olympe.G.H.ui.P.pm.prototype.setStopColor=olympe.G.H.ui.P.pm.prototype.lF;olympe.G.H.ui.P.pm.prototype.setOffset=olympe.G.H.ui.P.pm.prototype.by;olympe.host.Zc.register(olympe.host.ab.jb.vM,olympe.G.H.ui.P.pm);olympe.G.H.ui.P.pm.Aa=[olympe.N.P.Sk];olympe.G.H.ui.P.Ip=class extends olympe.G.H.ui.P.Ha{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.hd.Le.Hf,'g'));this.children=new Map}appendChild(a,b){b=null!=b?b:olympe.G.H.ui.P.hd.Gg;this.children.has(b)&&this.removeChild(b);this.children.set(b,a);this.va().appendChild(a.va());a.setAttribute('name_As_A_Child',b);a.Ff(this);a.Qf(this.Fo())}removeChild(a){a||(a=olympe.G.H.ui.P.hd.Gg);const b=this.children.get(a);if(void 0!==b)try{this.va().removeChild(b.va()),b.Ff(null),b.Qf(null)}catch(c){this.V.debug('Not able to remove a child, has probably already been removed')}finally{this.children.delete(a)}else this.V.warn('Trying to remove a non existing child: '+
|
|
1244
1244
|
a)}Qf(a){olympe.G.H.ui.P.Ha.prototype.Qf.call(this,a);for(const b of this.children.values())b.Qf(a)}};olympe.G.H.ui.P.Ip.prototype.setContainer=olympe.G.H.ui.P.Ip.prototype.Qf;olympe.G.H.ui.P.Ip.prototype.removeChild=olympe.G.H.ui.P.Ip.prototype.removeChild;olympe.G.H.ui.P.Ip.prototype.appendChild=olympe.G.H.ui.P.Ip.prototype.appendChild;olympe.host.Zc.register(olympe.host.ab.jb.wM,olympe.G.H.ui.P.Ip);olympe.G.H.ui.P.Ip.Aa=[olympe.N.P.jr];function vh(a){let b;switch(a.D){case olympe.ui.ha.Gy.dt:b=wh(a)+' meet';break;case olympe.ui.ha.Gy.et:b=wh(a)+' slice';break;default:b='none'}a.setAttribute('preserveAspectRatio',b)}function wh(a){let b='';switch(a.O){case olympe.ui.ha.Cb.Vf:b+='xMin';break;case olympe.ui.ha.Cb.zi:b+='xMax';break;default:b+='xMid'}switch(a.$){case olympe.ui.ha.vc.jh:b+='YMin';break;case olympe.ui.ha.vc.Ch:b+='YMax';break;default:b+='YMid'}return b}
|
|
@@ -1290,10 +1290,10 @@ function Qh(a,b,c,d){const e=olympe.j.Ko();a.sources.set(olympe.dc.uc.SERVER,d.i
|
|
|
1290
1290
|
olympe.dc.oU=class{constructor(a,b,c,d,e,f,g){this.V=a;this.C=f;this.O=g;this.sources=new Map;this.D=new Map;Qh(this,d,b,c)}subscribe(a,b){this.V.debug('Router: subscribes',a);return this.zd(a.$f()).subscribe(a,b)}zh(a){if(a.$f()!==this.C)this.V.error(`Router: try to reply to a request that is not for this data cloud, ignore it: ${a}`);else{var b;null==(b=this.D.get(a.getType()))||b.forEach(c=>c(a))}}Ou(a){let b;null==(b=this.D.get(a.getType()))||b.forEach(c=>c(a));return this.zd(olympe.dc.uc.po).Ou(a)}zd(a){let b;
|
|
1291
1291
|
return null!=(b=this.sources.get(a))?b:this.sources.get(olympe.dc.uc.po)}};function Jh(a,b){b=new olympe.dc.fr(a.ja(),null!=b?b:null);b.C=a;return b}function Sh(a,b,c,d){c=new olympe.dc.fr(null!=d?d:olympe.la.cf(),null!=c?c:null);c.D=b;c.ac=a;return c}
|
|
1292
1292
|
olympe.dc.fr=class{constructor(a,b){this.id=a;this.ac=this.C=this.D=null;this.pA=b}static C(a){return Sh(a.p,a.s,a.t,a.i)}ja(){return this.id}Yf(a){return this.C instanceof olympe.dc.db.Tf?this.C.Yf(a):Array.isArray(this.ac)?(new olympe.dc.transaction.pw(this.D)).D(this.ac,a):a}Sc(){let a,b,c,d;return null!=(d=null!=(c=null==(a=this.ac)?void 0:a.length)?c:null==(b=this.C)?void 0:b.Sc())?d:0}Af(){return this.C instanceof olympe.dc.db.Tf?this.C:Array.isArray(this.ac)?(this.C=(new olympe.dc.transaction.pw(this.D)).C(this.ac,
|
|
1293
|
-
this.id),this.ac=null,this.C):new olympe.dc.db.Tf(this.id)}LA(){if(Array.isArray(this.ac))return this.ac;if(this.C instanceof olympe.dc.db.Tf){const a=new olympe.dc.transaction.al;this.C.Yf(a);return Th(a)}return[]}
|
|
1293
|
+
this.id),this.ac=null,this.C):new olympe.dc.db.Tf(this.id)}LA(){if(Array.isArray(this.ac))return this.ac;if(this.C instanceof olympe.dc.db.Tf){const a=new olympe.dc.transaction.al;this.C.Yf(a);return Th(a)}return[]}gb(){return{p:this.LA(),t:this.pA,s:this.D,i:this.id}}};olympe.dc.fr.Aa=[olympe.dc.PK];olympe.dc.Pc={};const Uh=olympe.dc.Ib.ORIGIN,Vh=olympe.dc.Ib.DESTINATION,Wh=new Map,Xh=new Map,Yh=new Map,Zh=new Map;function Mh(a){let b;return null!=(b=Wh.get(a))?b:null}function $h(a,b,c){let d=a;'function'===typeof a&&(d=c.entry);a=[...(d.CF||[])];return olympe.dc.Ja.C(b,c,...a)}function ai(a,b){Zh.set(a,b);return a}function bi(a){let b,c;return null!=(c=null==(b=Wh.get(a))?void 0:b.D)?c:olympe.dc.CloudObject}
|
|
1294
1294
|
function ci(a,b,c){const d=a+'@'+(b===Vh?Uh:Vh);if(Xh.has(d))throw Error(`Try to register the same relation (${b+a}) multiple times.`);Xh.set(d,c)}function di(a){a=a.ka()+'@'+a.Bc();return Xh.get(a)||olympe.dc.CloudObject}function X(a,b){b.NAME=a;Yh.set(a,b)}function ei(a){let b;return null!=(b=a.NAME)?b:null}
|
|
1295
1295
|
olympe.dc.Ja=class{constructor(){}static C(a,b,...c){if(Wh.has(a))throw Error(`Tag: ${a} - overwriting already defined CloudObject class ${Wh.get(a).D.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.ta.Od(g):g}}b=new olympe.dc.Pc.Entry(a,b,d);Wh.set(a,b);return b.D.entry=b}static Ee(a){let b,c;return null!=(c=null==(b=a.entry)?void 0:b.ka())?c:null}};function fi(a,b){a.C=b}function Y(a,b){b=b.fe();ci(b.ka(),b.Bc(),a.D);return b}function gi(a){a.O=!0;return a}
|
|
1296
|
-
olympe.dc.Pc.Entry=class{constructor(a,b,c){this.tag=a;this.D=b;this.CF=c||null;this.C=null;this.O=!1}ka(){return this.tag}instantiate(a,b){const c=this.D;if(this.CE()&&b.getParameter(olympe.dc.pa.fH)){var d=olympe.dc.eb();d=`Trying to instantiate an abstract class ${d.name(this)} (${this.ka()}).`+` This may happen when the implementation of another class extending ${d.name(this)} has not been registered`;olympe.
|
|
1296
|
+
olympe.dc.Pc.Entry=class{constructor(a,b,c){this.tag=a;this.D=b;this.CF=c||null;this.C=null;this.O=!1}ka(){return this.tag}instantiate(a,b){const c=this.D;if(this.CE()&&b.getParameter(olympe.dc.pa.fH)){var d=olympe.dc.eb();d=`Trying to instantiate an abstract class ${d.name(this)} (${this.ka()}).`+` This may happen when the implementation of another class extending ${d.name(this)} has not been registered`;olympe.fb.wb('dc').error(d)}return this.CF?(a=[void 0,a].concat(Ka(b,this.CF)),new c(...a)):
|
|
1297
1297
|
new c(void 0,a)}fa(a){return new olympe.dc.Pc.Property(a)}sb(a,b=olympe.dc.Ib.DESTINATION){ci(a,b,this.D);return new olympe.dc.Ra.Bm(a,b)}CE(){return this.O}};z('olympe.dc.registry.Entry',olympe.dc.Pc.Entry);olympe.dc.Pc.Entry.prototype.addRelation=olympe.dc.Pc.Entry.prototype.sb;olympe.dc.Pc.Entry.prototype.addProperty=olympe.dc.Pc.Entry.prototype.fa;olympe.dc.Pc.Entry.Aa=[olympe.dc.Tk];olympe.dc.Pc.Property=class{constructor(a){this.tag=a}ka(){return this.tag}toString(){return`Property: ${this.tag}`}};olympe.dc.Pc.Property.prototype.getTag=olympe.dc.Pc.Property.prototype.ka;olympe.dc.Pc.Property.Aa=[olympe.dc.Tk];olympe.dc.Pc.Relation=class{constructor(a,b=olympe.dc.Ib.DESTINATION,c=olympe.dc.CloudObject,d=olympe.dc.CloudObject){this.tag=olympe.dc.Ya(a);this.direction=b;this.origin=c;this.R=d}ka(){return this.tag}Bc(){return this.direction}type(){return this.R}fe(){return new olympe.dc.Pc.Relation(this.tag,this.direction===olympe.dc.Ib.DESTINATION?olympe.dc.Ib.ORIGIN:olympe.dc.Ib.DESTINATION,this.R,this.origin)}Sb(a){return a instanceof olympe.dc.Pc.Relation?a.ka()===this.ka()&&a.Bc()===this.Bc():!1}toString(){return`${this.direction}${olympe.dc.eb().name(this.tag)} (${this.tag})`}};
|
|
1298
1298
|
olympe.dc.Pc.Relation.prototype.getInverse=olympe.dc.Pc.Relation.prototype.fe;olympe.dc.Pc.Relation.prototype.getDirection=olympe.dc.Pc.Relation.prototype.Bc;olympe.dc.Pc.Relation.prototype.getTag=olympe.dc.Pc.Relation.prototype.ka;olympe.dc.Pc.Relation.Aa=[olympe.dc.Tk];olympe.dc.db={};function hi(a,b){const c=a.R,d=olympe.dc.eb(),e=olympe.dc.db.Database.C.qw,f=olympe.dc.db.Database.C.xj,g=olympe.dc.db.Database.C.ORIGIN,k=olympe.dc.db.Database.C.DESTINATION,l=new olympe.dc.db.Tf('rev-'+b.ja());a.V.debug('Generate the reverse graphLayer of',b.ja());b.je.forEach((m,n)=>{if(m.D()){l.D(n,olympe.dc.Te.NONE);for(const [t,u]of m.ci())l.Zf(t,n,u)}else{var p=c.get(n);if(void 0!==p)if(m.ei())for(const t of ji(d,n,m.O())){m=c.get(t);const u=new Map;m.forEach((v,w)=>{const x=w[0],y=w.substring(1);
|
|
1299
1299
|
x===e?u.set(y,v):x===f?u.set(w,v):x===g?v.forEach((B,H)=>{l.Rb(y,H,t)}):x===k&&v.forEach((B,H)=>{l.Rb(y,t,H)})});m=m.source();l.yf(t,m,u)}else{const t=new Map;for(const u of m.ce().keys()){var r=u[0]===f;const v=r?u.substring(1):u;r=r?ki(p,v,!0):p.Cc(v,!0);let w;t.set(u,null!=(w=r)?w:null)}0<t.size&&l.qh(n,t);for(const [u,v,w]of m.ci())w?l.Zf(u,n,v):l.Rb(u,n,v)}}});return l}
|
|
@@ -1306,7 +1306,7 @@ olympe.dc.db.UQ=class{constructor(a,b,c,d){this.V=a;this.R=b;this.eb=c;let e;thi
|
|
|
1306
1306
|
function vi(a,b,c,d){const e=olympe.dc.Ib.DESTINATION,f=c.tag(),g=a.C.lh(f);b.ce().forEach((k,l)=>{void 0!==c.Cc(l)&&(g.fa(l,k),b.Ba(l))});for(const [k,l,m]of b.ci()){const n=c.Gb(k,e,l);void 0!==n&&(d.R(k,f,l),n===m&&a.C.R(k,f,l))}}
|
|
1307
1307
|
class mi extends ti{constructor(a,b){super();this.D=a;this.C=b;this.db=olympe.dc.eb()}ja(){return this.D.ja()}Oh(a){for(const [b,c]of this.D.ca(a)){const d=b.tag();c.ei()?b.D()?a.C(d,b.O()):(this.D.C(d,c.O()),this.C.C(d,c.O())):b.ei()?(ui(this,c,b,a),a.C(d,b.O())):vi(this,c,b,a)}return a}}function wi(a){clearTimeout(a.O);a.O=setTimeout(()=>{a.buffer.splice(a.buffer.indexOf(a),1)},a.R)}
|
|
1308
1308
|
class oi extends ti{constructor(a,b,c,d){super();this.C=a;this.D=b;this.buffer=c;this.R=d;this.O=null;wi(this)}ja(){return this.C.ja()}Oh(a){return a.T(this.C)}update(a,b){this.D=b;a.Yf(this.C);wi(this);return this}};const xi=olympe.dc.Mf.uh,yi=olympe.dc.Mf.mt,zi=olympe.dc.Ib.ORIGIN,Ai=olympe.dc.Ib.DESTINATION;let Bi=0;
|
|
1309
|
-
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.uc.SELF;this.V=b;this.Gb=olympe.j.
|
|
1309
|
+
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.uc.SELF;this.V=b;this.Gb=olympe.j.yb();this.state=olympe.dc.db.Database.D.IDLE;this.ca=new Map;this.tb=[];this.$=new Map;this.R=null;this.na=new Set;var f;b=null!=(f=d.get('garbageCollector'))?f:olympe.dc.db.bo.C.kC;let g;f=null!=(g=d.get('garbageCollectorDelay'))?g:5E3;this.nc=new olympe.dc.db.bo(c,this,b,f);d.get('debug')&&this.uf()}ja(){return this.id}getState(){return this.state}wb(){return this.V}create(b,
|
|
1310
1310
|
c,d,e=!1){var f=this.T(b,!0);if(!f.e&&null!==c&&(null===f.R||f.R===c)){f.R=c;let g;(null==(g=f.model())?0:g.e)&&f.db.ea(f,!0)}e&&f.persist();this.state===a.D.PB&&Ci(f,!0);d&&this.zb(f,d);this.D(a.Event.aI,b)}update(b,c){c&&(b=this.T(b,!0),this.zb(b,c))}Ba(b){const c=this.get(b);void 0!==c&&(this.ea(c,!1),this.D(a.Event.bI,b))}Ia(b,c,d){c=this.T(c,!0);d=this.T(d,!0);switch(b){case xi:Di(c,d);break;case yi:Ei(c,d);break;default:Fi(c,b,d)}}md(b,c,d){c=this.get(c);d=this.get(d);if(void 0!==c&&void 0!==
|
|
1311
1311
|
d)switch(b){case xi:Gi(c,d);break;case yi:Hi(c,d);break;default:Ii(c,b,d)}}wg(b,c){for(const d of b)this.T(d).sk(c)}gj(b,c){for(const d of b)(b=this.get(d))&&b.detach(c)}vf(b){b.forEach(c=>{this.T(c).persist()})}Qb(b){const c=this.get(b);void 0!==c&&(c.clear(),super.delete(b),this.D(a.Event.cH,b))}T(b,c=!1){let d;return null!=(d=this.get(b))?d:this.yf(b,c)}yf(b,c){const d=new olympe.dc.db.Instance(b,this);this.set(b,d);this.D(a.Event.bH,b);c&&this.state!==a.D.PB&&this.D(a.Event.OD,b);return d}Pa(b){var c=
|
|
1312
1312
|
olympe.la.tk();this.R?Ji(this.R,c,b):b()}W(b){let c;null!=(c=this.R)&&c.C.delete(b)}dispatchEvent(b,...c){this.ca.has(b)&&this.ca.get(b).forEach(d=>{d(...c)})}D(b,c,...d){this.dispatchEvent(b,c,...d)}ea(b,c){let d;null!=(d=this.R)&&d.O.set(b,c)}ld(b,c,d,e){let f;null!=(f=this.R)&&Ki(f,b).fa(e?Li+c:c,d)}Rc(b,c,d,e,f){let g;null!=(g=this.R)&&(d===Mi?f?Ki(g,b).ea(c,e):Ki(g,b).na(c,e):f?Ki(g,b).Ka(c,e):Ki(g,b).pb(c,e))}Oa(b,c,d){let e;null!=(e=this.R)&&Ki(e,b).hc(c,d)}addEventListener(b,c){let d=this.ca.get(b);
|
|
@@ -1314,7 +1314,7 @@ void 0===d&&(d=[],this.ca.set(b,d));d.push(c)}C(b,c){this.addEventListener(b,c)}
|
|
|
1314
1314
|
b;this.R=null}hc(b){this.state=a.D.Wn;const c=this.$.get(b);c&&(this.R=c,Ni(this.R),Oi(this.R),this.$.delete(b),this.R=null);this.na.delete(b);0===this.na.size&&(this.state=a.D.IDLE,this.tb.forEach(d=>{d()}),Pi(this.nc))}zb(b,c){const d=a.C.xj;for(const [e,f]of c)void 0!==f&&(e[0]===d?Qi(b,e.substring(1),f):b.update(e,f))}pb(b,c,d=[]){const e=c.tag();if(!b.has(e)&&(b.add(e),d.push(c),c=c.get(zi+xi)))for(const f of c.values())null!==f.source()&&this.pb(b,f,d);return d}uf(){const b=a.Event.oC,c=a.Event.Pz,
|
|
1315
1315
|
d=new Set,e=new Map;this.C(a.Event.aI,f=>{d.add(f)});this.C(b,f=>{d.delete(f);e.delete(f)});this.C(c,(f,...g)=>{if(g[0]===yi&&g[1]===Ai){const k=g[2];this.get(k).qc()||(g=e.get(k)||new Set,0===g.size&&e.set(k,g),g.add(f))}});this.Ka(()=>{d.forEach(f=>{const g=this.get(f);g&&null===g.model()&&this.V.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.V.error(`\n[DEBUG - DATABASE]\nThe model ${g} is extended by other models but does not exist !`+
|
|
1316
1316
|
`\nExtension models: ${Array.from(f.values()).join(', ')}`+`\n\n ${k.toString()}`)});e.clear()})}};olympe.dc.db.Database.C={qw:'$',QR:'~',xj:'?',KB:'=',XH:'|',Lv:'@',ORIGIN:olympe.dc.Ib.ORIGIN,DESTINATION:olympe.dc.Ib.DESTINATION};olympe.dc.db.Database.Event={bH:0,cH:1,hM:2,OD:3,rG:4,sG:5,oC:6,Sg:7,Pz:8,vD:9,aI:10,bI:11,WK:12,z_:13,y_:14,bV:15,vH:16};olympe.dc.db.Database.D={IDLE:0,JB:1,YT:2,PB:3,Wn:4};function Ri(a,b,c=[]){const d=b.ja();li(a.C,b,c);return e=>{if(null!==e)a.C.push(d,e);else{e=a.C;var f=e.O.get(d);if(void 0!==f){const g=e.D.indexOf(d);e.D.splice(g,1);f=pi(e,f.C,e.D.length);e.write(ni(e,f,Date.now()),!1);e.O.delete(d)}}}}function Si(a,b,c={}){let d,e;return si(a.C,b,null!=(d=c.persist)?d:!0,null!=(e=c.$D)?e:!1)}function Ti(a,b){a.D.Ka(b)}
|
|
1317
|
-
olympe.dc.db.eR=class{constructor(a,b,c,d,e){this.V=a;this.D=b;this.view=c;this.C=new olympe.dc.db.UQ(a,b,c,d);this.AY=new olympe.dc.db.BT(a,c,b,e)}
|
|
1317
|
+
olympe.dc.db.eR=class{constructor(a,b,c,d,e){this.V=a;this.D=b;this.view=c;this.C=new olympe.dc.db.UQ(a,b,c,d);this.AY=new olympe.dc.db.BT(a,c,b,e)}wb(){return this.V}Oh(a,b={}){let c,d;this.C.Oh(a,null!=(c=b.persist)?c:!0,null!=(d=b.$D)?d:!1)}sk(a,b){this.D.wg(a,b)}detach(a,b){this.D.gj(a,b);return this}};const Ui=olympe.dc.db.Database.C.ORIGIN,Vi=olympe.dc.db.Database.C.DESTINATION,Wi=olympe.dc.db.Database.C.qw,Xi=olympe.dc.db.Database.C.xj,Yi=olympe.dc.db.Database.C.KB,Zi=olympe.dc.db.Database.C.XH,$i=Ui+Vi,aj=Wi+Wi,bj=olympe.dc.db.Database.D;let cj=0;function Hh(a,b,c,d=!1){const e=dj(a,b);if(null!==e){const f=ej(e,'',c);void 0!==f&&(a.C.getState()!==bj.Wn||e.O()&&!d||a.C.W(c),d||!e.qc()&&!e.O()||f(!1,b))}}
|
|
1318
1318
|
function Kh(a,b,c,d){a=a.C.T(fj(b));d=null!=d?d:gj();hj(a,'',d,c)&&a.qc()&&c(!0,b);return d}function ji(a,b,c){return{[Symbol.iterator]:function*(d,e,f){const g=(new Set).add(olympe.dc.Ya(e));for(const k of g)yield k,d.EA(k,f).forEach(([l,,,m])=>{m&&g.add(l)})}.bind(null,a,b,c)}}function gj(){++cj;return String(cj)}function fj(a){if(a)return olympe.dc.Ya(a);throw Error('DBView: Impossible to transform tag to string, provided tag is empty, null or undefined.');}
|
|
1319
1319
|
function ij(a,b,c,d,e){a=a.C.T(fj(b));c=fj(c);b=Wi+c;e=null!=e?e:gj();if(hj(a,b,e,d)&&a.qc()){let f=!1;b=a.get(b);void 0===b&&(f=!0,b=a.get(Yi+c));void 0!==b&&d(b,f)}return e}function dj(a,b,c=!1){if(b)return a=a.C.get(olympe.dc.Ya(b)),!a||c&&!a.qc()?null:a;throw Error('DBView: Impossible to get instance, provided tag is empty, null or undefined.');}function jj(a,b,c,d){b=dj(a,b);null!==b&&(c=olympe.dc.Ya(c),ej(b,Wi+c,d),a.C.getState()===bj.Wn&&a.C.W(d))}
|
|
1320
1320
|
function kj(a,b,c,d){a=a.C.T(fj(b));d=null!=d?d:gj();hj(a,aj,d,c)&&a.qc()&&a.forEach((e,f)=>{const g=f[0];g!==Wi&&g!==Yi||c(f.substring(1),e,g===Yi)});return d}function lj(a,b,c){b=dj(a,b);null!==b&&(ej(b,aj,c),a.C.getState()===bj.Wn&&a.C.W(c))}function mj(a,b,c,d,e){let f;null==(f=a.get(b))||f.forEach((g,k)=>{if(g.qc()||!c&&g.O())e?d(b.substring(1),b[0],c,k):d(c,k)})}function nj(a,b,c,d,e){a=a.C.T(fj(b));c=c.Bc()+c.ka();e=null!=e?e:gj();(d=oj(a,c,e,d))&&a.qc()&&mj(a,c,!0,d,!1);return e}
|
|
@@ -1351,7 +1351,7 @@ function Fi(a,b,c){var d=Rj+b;const e=Zj(a,Sj+b);d=Zj(c,d);e.has(c.C)||(e.set(c.
|
|
|
1351
1351
|
function Ii(a,b,c){const d=Rj+b;void 0!==bk(a,Sj+b,c.C)&&(bk(c,d,a.C),a.db.D(Lj.vD,a.C,b,Sj,c.C),a.db.D(Lj.vD,c.C,b,Rj,a.C),a.e&&c.e&&(ak(a,b,Sj,c,!1),ak(c,b,Rj,a,!1)))}function Qi(a,b,c){const d=Oj+b;var e=a.get(d);e=void 0===e?null:e;if(!ck(e,c))if(dk(a,b,e,c,!0),e=Nj+b,null===c){a.delete(d);let f;c=null==(f=a.Jm())?void 0:ki(f,b);c=void 0===c?null:c;null!==c&&a.set(e,c);Yj(a,(new Map).set(b,c))}else void 0!==a.get(e)&&a.delete(e),a.set(d,c),Yj(a,(new Map).set(b,c))}
|
|
1352
1352
|
function hj(a,b,c,d){const e=Zj(a,Qj+b);return e.has(c)?!1:(e.set(c,d),a.sk(olympe.dc.db.Instance.C.Lv+b),a.db.D(Lj.rG,a.C,b,c),!0)}function ej(a,b,c){const d=bk(a,Qj+b,c);void 0!==d&&(a.detach(olympe.dc.db.Instance.C.Lv+b),a.db.D(Lj.sG,a.C,b,c));return d}function oj(a,b,c,d){const e=(...f)=>{var g=f.length;const k=f[g-2];if(g=a.db.get(f[g-1])){const l=olympe.dc.db.Instance.C.kU+b;k?g.sk(l):g.detach(l)}d(...f)};return hj(a,b,c,e)?e:null}
|
|
1353
1353
|
function ck(a,b){return a instanceof Date?b instanceof Date&&a.getTime()===b.getTime():null!==a&&'function'===typeof a.Sb?a.Sb(b):a===b}
|
|
1354
|
-
function dk(a,b,c,d,e){c instanceof olympe.dc.Lf&&(ek(a.db.get(c.ka())),a.db.Ba(c.ka()));d instanceof olympe.dc.Lf&&(c=a.db.T(d.ka(),!0),c.D&&c.D.tag!==a.C&&a.db.
|
|
1354
|
+
function dk(a,b,c,d,e){c instanceof olympe.dc.Lf&&(ek(a.db.get(c.ka())),a.db.Ba(c.ka()));d instanceof olympe.dc.Lf&&(c=a.db.T(d.ka(),!0),c.D&&c.D.tag!==a.C&&a.db.wb().fatal('Instance',d.ka(),'referenced multiple times!\nThis instance is currently property of',c.D.tag,'(for the property '+c.D.Gc+')','and is assigned as a property of',a.C,'(for the property '+b+')'),d=c,a=a.C,void 0===d.D&&(d.sk(olympe.dc.db.Instance.C.tw+a+':'+b),d.db.Oa(d.C,a,b)),d.D={tag:a,Gc:b,iY:e})}
|
|
1355
1355
|
function fk(a,b,c,d){a.e&&a.db.ld(a.C,b,c,d)}function Yj(a,b,c=[]){const d=a.get(Rj+Tj);void 0!==d&&d.forEach(e=>{b.forEach((f,g)=>Xj(e,g,f))});a=a.get(Rj+Uj);void 0!==a&&a.forEach((e,f)=>{if(!c.includes(e.tag())){var g=new Map;b.forEach((k,l)=>{e.has(Oj+l)||(g.set(l,k),null!==k?e.set(Nj+l,k):e.delete(Nj+l))});Yj(e,g,[...c,f])}})}function Zj(a,b){let c;return null!=(c=a.get(b))?c:a.create(b)}function ak(a,b,c,d,e){a.db.Rc(a.C,b,c,d.C,e)}
|
|
1356
1356
|
function bk(a,b,c){const d=a.get(b);if(void 0!==d){const e=d.get(c);d.delete(c);0===d.size&&a.delete(b);return e}}function Xj(a,b,c){if(!a.has(Mj+b)){const d=Pj+b,e=a.get(d);ck(c,void 0!==e?e:null)||(null===c?a.delete(d):a.set(d,c),fk(a,b,c,null!==c))}}function Vj(a){a.forEach((b,c)=>{const d=c[0];if(d===Rj||d===Sj){const e=c.substring(1),f=d===Rj?Sj:Rj;b.forEach(g=>{g.e&&(ak(a,e,d,g,!0),ak(g,e,f,a,!0))})}else if(d===Mj||d===Pj)c=c.substring(1),fk(a,c,b,d===Pj)})}
|
|
1357
1357
|
function Wj(a){a.forEach((b,c)=>{const d=c[0];if(d!==Qj){var e=c.substring(1);d===Rj?b.forEach(f=>{Ii(f,e,a)}):d===Sj?b.forEach(f=>{Ii(a,e,f)}):d===Mj?a.update(e,null):d===Oj&&Qi(a,e,null);a.delete(c)}});if(void 0!==a.D){const b=a.db.get(a.D.tag),c=a.D.iY;let d,e;(null==(d=b.get(`${c?Oj:Mj}${a.D.Gc}`))?void 0:null==(e=d.ka)?void 0:e.call(d))===a.C&&(c?Qi(b,a.D.Gc,null):b.update(a.D.Gc,null))}}
|
|
@@ -1374,44 +1374,44 @@ function hk(a,b,c){if(!b)return'';let d='';if(c&&1<c)return'...';for(const [e,f]
|
|
|
1374
1374
|
(null!=(g=c)?g:0)+1)}return'{'+(d?d:'')+'}'}function ik(a,b){let c;return'string'===typeof b?null!=(c=a.db.name(b))?c:b:''}function jk(a,b){let c;return b===olympe.dc.Mf.uh?'Model':null!=(c=a.db.name(b))?c:b}
|
|
1375
1375
|
class gk{constructor(a){this.db=a;this.C='Applying patch on the local database'}flush(){const a=this.C;this.C='';return a}log(a,b){this.C+=`\ndb.${a};${b?`// ${b}`:''}`}yf(a,b,c,d){this.log(`createInstance(tag: ${a}, source: ${b}, ${hk(this,c)})`,ik(this,d))}qh(a,b,c){this.log(`updateInstance(tag: ${a}, ${hk(this,b)})`,ik(this,c))}D(a,b,c){this.log(`deleteInstance("${a}", rule: ${b})`,ik(this,c))}Rb(a,b,c){this.log(`createRelation("${a}", "${b}", "${c}")`,jk(this,a))}Zf(a,b,c){this.log(`deleteRelation("${a}", "${b}", "${c}")`,
|
|
1376
1376
|
jk(this,a))}}olympe.dc.db.QD.Aa=[olympe.dc.eu,olympe.dc.eu];olympe.dc.db.ba={Wb:'dc.db.Logger',wC:'dc.db.gc.Logger',Pb:'dc.db.DatabaseManager',Sy:'dc.db.Database',hC:'dc.db.DBView',H0:'dc.db.Graph',E_:'dc.db.DatabaseWriter',D1:'dc.db.PermissionProcessor',hw:'dc.db.GraphMonitor'};olympe.dc.db.pa={wH:'db.garbageCollector',xH:'db.garbageCollectorDelay',ZB:'db.commitBufferTimeout',hw:'db.monitor',vT:'db.monitorCounters',uT:'db.monitorCallbacks',QG:'db.debug'};
|
|
1377
|
-
olympe.ta.af(function(a){E(a,olympe.dc.db.pa.wH,olympe.dc.db.bo.C.KF);E(a,olympe.dc.db.pa.xH,5E3);E(a,olympe.dc.db.pa.ZB,3E4);E(a,olympe.dc.db.pa.hw,!1);E(a,olympe.dc.db.pa.QG,!1);C(a,olympe.dc.db.ba.Wb,[olympe.
|
|
1377
|
+
olympe.ta.af(function(a){E(a,olympe.dc.db.pa.wH,olympe.dc.db.bo.C.KF);E(a,olympe.dc.db.pa.xH,5E3);E(a,olympe.dc.db.pa.ZB,3E4);E(a,olympe.dc.db.pa.hw,!1);E(a,olympe.dc.db.pa.QG,!1);C(a,olympe.dc.db.ba.Wb,[olympe.fb.ba.Pb],b=>b.Yg('db'));C(a,olympe.dc.db.ba.wC,[olympe.fb.ba.Pb],b=>b.Yg('gc'));C(a,olympe.dc.db.ba.Sy,[olympe.dc.db.ba.Wb,olympe.dc.db.ba.wC,new olympe.ta.Db(olympe.dc.pa.Er),new olympe.ta.Db(olympe.dc.db.pa.wH),new olympe.ta.Db(olympe.dc.db.pa.xH),new olympe.ta.Db(olympe.dc.pa.Ut),new olympe.ta.Db(olympe.dc.db.pa.QG)],
|
|
1378
1378
|
(b,c,d,e,f,g,k)=>{e=g?olympe.dc.db.bo.C.kC: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)});A(a,olympe.dc.db.ba.hC,olympe.dc.Ad,olympe.dc.db.ba.Wb,olympe.dc.db.ba.Sy);C(a,olympe.dc.db.ba.hw,[olympe.dc.db.ba.Pb],b=>b.AY);C(a,olympe.dc.db.ba.Pb,[olympe.dc.db.ba.Wb,olympe.dc.db.ba.Sy,olympe.dc.db.ba.hC,new olympe.ta.Db(olympe.dc.pa.zp),new olympe.ta.Db(olympe.dc.db.pa.ZB),new olympe.ta.Db(olympe.dc.db.pa.hw),
|
|
1379
1379
|
new olympe.ta.Db(olympe.dc.db.pa.vT),new olympe.ta.Db(olympe.dc.db.pa.uT)],(b,c,d,e,f,g,k,l)=>{g=(new Map).set('active',g).set('counters',k).set('callbacks',l);e=(new Map).set('debug',e).set('bufferTimeout',f);return new olympe.dc.db.eR(b,c,d,e,g)})},'olympe.dc.db');olympe.ta.run([olympe.dc.db.ba.Sy,olympe.dc.db.ba.hw],(a,b)=>{olympe.Pj().db=a;olympe.Pj().dbMonitor=b},'DC.DB debug service injection');olympe.dc.query={};function kk(a){return(b,c)=>{const d=null===b,e=null===c;return d||e?d&&e?0:d?1:-1:a(b,c)}}
|
|
1380
|
-
olympe.dc.query.Xn=class{constructor(a,b,c){this.db=olympe.dc.eb();this.C=a;this.Gc=b;this.ew=c}
|
|
1381
|
-
d)=>c.compare(d));olympe.
|
|
1380
|
+
olympe.dc.query.Xn=class{constructor(a,b,c){this.db=olympe.dc.eb();this.C=a;this.Gc=b;this.ew=c}gb(){return{p:this.Gc.ka(),o:this.ew}}toString(){return'sortByQueryPart-'+this.ew+this.Gc.ka()}cs(){const a=this.db.Xd(this.Gc,olympe.dm.Property.typeRel),b=olympe.dc.Ya;if(this.db.dn(a,olympe.dm.String))return kk((c,d)=>c.localeCompare(d));if(a===b(olympe.dm.Number)||a===b(olympe.dm.Boolean))return kk((c,d)=>c-d);if(a===b(olympe.dm.DateTime))return kk((c,d)=>c.getTime()-d.getTime());if(a===b(olympe.dm.Color))return kk((c,
|
|
1381
|
+
d)=>c.compare(d));olympe.fb.wb('dc.query').warn(`No comparator found for type with tag ${a}`);return kk(()=>-1)}Cc(){return this.Gc}};olympe.dc.Tk=class{ka(){}};olympe.dc.Tk.prototype.getTag=olympe.dc.Tk.prototype.ka;olympe.dc.M0=olympe.dc.Tk;function lk(a){let b;if(null==(b=a.C)?0:b.Ii())if(a=a.R,!a.T){let c;null==(c=a.W)||c.call(a)}}function mk(a,b,c){if(a.db.source(b)===a.source){var d=`${a.D}:${b}:notif`;Kh(a.db,b,(e,f)=>{if(e){lk(a);let g;null==(g=a.C)||g.$(f)}else if(c&&lj(a.db,f,d),!a.db.qc(f)){lk(a);let g;null==(g=a.C)||g.D(f,olympe.dc.Te.NONE)}},d);c&&kj(a.db,b,(e,f,g)=>{lk(a);let k;g||null!=(k=a.C)&&k.qh(b,new Map([[e,f]]))},d)}}function nk(a,b,c,d,e){lk(a);let f,g;b?null==(f=a.C)||f.Rb(c,d,e):null==(g=a.C)||g.Zf(c,d,e)}
|
|
1382
1382
|
olympe.dc.query.HT=class{constructor(a,b,c,d){this.V=a;this.source=b;this.D=c;this.R=d;this.C=this.O=null;this.db=olympe.dc.eb()}stop(a){Hh(this.db,a,`${this.D}:${a}:notif`)}};olympe.dc.query.Hz={ASC:'ASC',DESC:'DESC'};function ok(a){const b=pk(a.query),c=new Map;for(let e=b.length;0<=e;e--){const f=0<e?b[e-1].ja():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.yg()),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 B;n.set(y,Array.from(w).map(H=>p?`${x};${H}`:H).reduce((H,G)=>H.add(G),null!=(B=n.get(y))?B:new Set))}m.delete(x)});u&&m.forEach(w=>{const x=p?`${w};${v}`:v;for(const y of l.C(w)){let B;n.set(y,
|
|
1383
1383
|
(null!=(B=n.get(y))?B:new Set).add(x))}})}else m.forEach(t=>{const u=p?`${t};`:'';for(const v of l.C(t))n.has(v)?n.get(v).add(u):n.set(v,(new Set).add(u))});if(0<e&&c.has(g)){const [t,u,v]=c.get(g),w=new Map;n.forEach((x,y)=>{let B;null==(B=t.get(y))||B.forEach(H=>{let G;const R=null!=(G=w.get(y))?G:new Set;x.forEach(fa=>R.add(fa+H));w.set(y,R)});n.delete(y);t.delete(y)});u&&n.forEach((x,y)=>{w.set(y,new Set(Array.from(x).map(B=>B+v)))});b[e-1].T()&&t.forEach((x,y)=>{w.set(y,new Set(Array.from(x).map(B=>
|
|
1384
1384
|
r+B)))});c.set(g,[w,u&&k,r+v])}else c.set(g,[n,k,r])}let d;a=null==(d=c.get('root'))?void 0:d[0].get('root');return Array.from(null!=a?a:[]).map(e=>e.slice(0,-1).split(';'))}function qk(a){if(null===a.D){const b={Pe:a.query.cs(),Pi:a.Pi,max:a.query.C.max,offset:a.query.C.offset};a.D=olympe.dc.zc.from(a.$,ok(a),b)}return a.D}function rk(a,b){a.W=b}function sk(a){if(!a.T){null!==a.D&&(a.$=a.D);a.D=null;a.T=!0;let b;null==(b=a.W)||b.call(a)}}
|
|
1385
1385
|
function tk(a,b){let c;return null!=(c=a.C.get(b).yg())?c:[]}function uk(a,b,c){let d,e;return null!=(e=null==(d=a.C.get(c))?void 0:d.has(b))?e:!1}function vk(a,b,c=a.O,d='root'){const e=a.C.get(c);if(!e)return a.V.error('Try to insert result entry to a higher level than possible'),null;const f=!e.has(b);e.D(b,d)&&sk(a);let g;f&&(null==(g=a.Hl)||mk(g,b,a.R.has(c)));return f}function wk(a,b,c,d,e,f){null!==a.Hl&&(d===olympe.dc.Ib.ORIGIN?nk(a.Hl,b,c,f,e):nk(a.Hl,b,c,e,f))}
|
|
1386
1386
|
function xk(a){a.V.C()&&a.V.debug(`Start sending notifications for query ${a.query.ja()}`);const b=new olympe.dc.query.HT(a.V,a.query.zd(),a.query.ja(),a);a.C.forEach((c,d)=>{for(const e of c.yg())mk(b,e,a.R.has(d))});null!=b.C||(b.C=new olympe.dc.db.Tf);a.Hl=b}function yk(a){null!==a.Hl&&(a.V.C()&&a.V.debug(`Stop sending notifications for query ${a.query.ja()}`),a.C.forEach(b=>{for(const c of b.yg())a.Hl.stop(c)}),a.Hl=null)}
|
|
1387
1387
|
function zk(a){a.T=!1;if(null!=(a=a.Hl)){let b;const c=!(null==(b=a.C)?0:b.Ii());a.O=c?a.C:null;c&&(a.C=new olympe.dc.db.Tf,a.V.C()&&a.V.debug(`Commit notification with ${a.O.Sc()} operations for query ${a.D}`))}}
|
|
1388
|
-
olympe.dc.query.NK=class{constructor(a,b){this.V=a;this.query=b;this.O=olympe.la.Yd(b.D);this.
|
|
1389
|
-
this.C.get(b);if(null==b?0:b.remove(a,c))if(sk(this),!b.has(a)){let d;null==(d=this.Hl)||d.stop(a);return!0}return!1}kh(a){const b=a.D,c=olympe.la.Yd(b);a=pk(a);const d=[];for(const [f,g]of this.C){if(g.R(b))return!0;g.has(b)&&d.push(f)}const e=(new Map).set(c,d);return 0<d.length&&a.every(f=>{let g;const k=(null!=(g=e.get(f.C))?g:[]).flatMap(l=>f.$(l,this.
|
|
1388
|
+
olympe.dc.query.NK=class{constructor(a,b){this.V=a;this.query=b;this.O=olympe.la.Yd(b.D);this.xb=new Map;this.C=(new Map).set(this.O,new olympe.dc.query.xb.FD);this.R=new Set(b.O);this.Pi=-1;this.T=!1;this.W=null;this.$=olympe.dc.zc.empty();this.Hl=this.D=null;a=pk(b);a.forEach(c=>{const d=c.ja();this.xb.set(d,c.clone());this.C.set(d,c.ea())});b=b.cs();if(null!==b){b=b.C;let c=-1;for(const d of[this.O].concat(a.map(e=>e.ja())))if(c+=this.R.has(d)?1:0,b===d){this.Pi=c;break}}}remove(a,b=this.O,c='root'){b=
|
|
1389
|
+
this.C.get(b);if(null==b?0:b.remove(a,c))if(sk(this),!b.has(a)){let d;null==(d=this.Hl)||d.stop(a);return!0}return!1}kh(a){const b=a.D,c=olympe.la.Yd(b);a=pk(a);const d=[];for(const [f,g]of this.C){if(g.R(b))return!0;g.has(b)&&d.push(f)}const e=(new Map).set(c,d);return 0<d.length&&a.every(f=>{let g;const k=(null!=(g=e.get(f.C))?g:[]).flatMap(l=>f.$(l,this.xb.get(l))).filter(l=>{let m,n;return null!=(n=null==(m=this.xb.get(l))?void 0:m.kh(f))?n:!1});e.set(f.ja(),k);return 0<k.length})}};function Ak(a){if(!olympe.dc.eb().me(a,olympe.dm.Property))throw new olympe.dc.query.xi(`The specified property while trying to build a query predicate is invalid: ${a}`);}
|
|
1390
1390
|
function Bk(a){var b=olympe.dc.query.Zb.C.UL;const c=olympe.dc.query.Zb.C.eH,d=olympe.dc.query.Zb.C.Ny,e=olympe.dc.query.Zb.C.ZH,f=olympe.dc.query.Zb.C.nK,g=olympe.dc.query.Zb.C.XK,k=olympe.dc.query.Zb.C.JF,l=olympe.dc.query.Zb.C.AK;switch(a.pr){case b:return new olympe.dc.query.Da.LD(a.t);case c:b=a.v;switch(a.t){case 2:b=new Date(b);break;case 3:b=olympe.dc.CloudObject.get(b);break;case 4:b=olympe.j.Color.create(b.r,b.g,b.b,b.a)}return new olympe.dc.query.Da.Qk(a.p,b,olympe.dc.eb());case d:return new olympe.dc.query.Da.Zn(a.p,
|
|
1391
1391
|
a.s,olympe.dc.eb(),a.c);case e:return new olympe.dc.query.Da.aw(olympe.dc.eb(),a.p,a.b,a.l,a.s);case f:return new olympe.dc.query.Da.nk(Bk(a.v));case g:return new olympe.dc.query.Da.ro(a.p,new RegExp(a.r),olympe.dc.eb(),a.c);case l:return new olympe.dc.query.Da.$k(...a.p.map(m=>Bk(m)));case k:return new olympe.dc.query.Da.Qi(...a.p.map(m=>Bk(m)));default:return null}}
|
|
1392
|
-
olympe.dc.query.Zb=class{observe(){}Ld(){}compile(){return[[this]]}Re(){return new olympe.dc.query.Da.nk(this)}ce(){}kh(){}clear(){}
|
|
1392
|
+
olympe.dc.query.Zb=class{observe(){}Ld(){}compile(){return[[this]]}Re(){return new olympe.dc.query.Da.nk(this)}ce(){}kh(){}clear(){}gb(){}ph(){}toString(){}Sb(a){return this===a}static cP(...a){return new olympe.dc.query.Da.LD(a)}static Sb(a,b){Ak(a);return new olympe.dc.query.Da.Qk(a,b,olympe.dc.eb())}static contains(a,b,c=!0){Ak(a);return new olympe.dc.query.Da.Zn(a,b,olympe.dc.eb(),c)}static $Y(a,b,c=!0){Ak(a);return new olympe.dc.query.Da.ro(a,b,olympe.dc.eb(),c)}static WA(a,b,c=!0){Ak(a);return new olympe.dc.query.Da.aw(olympe.dc.eb(),
|
|
1393
1393
|
a,b,!1,c)}static sy(a,b,c=!0){Ak(a);return new olympe.dc.query.Da.aw(olympe.dc.eb(),a,b,!0,c)}static and(...a){if(!a.every(b=>b instanceof olympe.dc.query.Zb))throw new olympe.dc.query.xi(`Some specified predicates, while trying to build an AND query predicate are invalid: ${a}`);return new olympe.dc.query.Da.Qi(...a)}static or(...a){if(!a.every(b=>b instanceof olympe.dc.query.Zb))throw new olympe.dc.query.xi(`Some specified predicates, while trying to build an OR query predicate are invalid: ${a}`);
|
|
1394
1394
|
return new olympe.dc.query.Da.$k(...a)}static Re(a){if(!(a instanceof olympe.dc.query.Zb))throw new olympe.dc.query.xi(`The specified predicate, while trying to build a NOT query predicate is invalid: ${a}`);return new olympe.dc.query.Da.nk(a)}};olympe.dc.query.Zb.not=olympe.dc.query.Zb.Re;olympe.dc.query.Zb.or=olympe.dc.query.Zb.or;olympe.dc.query.Zb.and=olympe.dc.query.Zb.and;olympe.dc.query.Zb.smallerThan=olympe.dc.query.Zb.sy;olympe.dc.query.Zb.greaterThan=olympe.dc.query.Zb.WA;
|
|
1395
|
-
olympe.dc.query.Zb.regex=olympe.dc.query.Zb.$Y;olympe.dc.query.Zb.contains=olympe.dc.query.Zb.contains;olympe.dc.query.Zb.equals=olympe.dc.query.Zb.Sb;olympe.dc.query.Zb['in']=olympe.dc.query.Zb.cP;olympe.dc.query.Zb.C={UL:0,eH:1,Ny:2,ZH:3,nK:4,XK:5,AK:6,JF:7};function pk(a){return Array.from(a.
|
|
1396
|
-
function Ck(a,b){var c=b.relation,d=olympe.dm.Relation.originModelRel,e=olympe.dm.Relation.destinationModelRel;d=a.db.Xd(c,c.Bc()===olympe.dc.Ib.ORIGIN?e:d);if(0>a.cursor)e=a.C.Ll;else if(e=a.
|
|
1397
|
-
b.ja();for(c=a.cursor+1;c<a.
|
|
1398
|
-
function Ek(a,b,c,d={}){var e=olympe.dc.Te.Zi;const f=(null==d?0:d.$g)?d.$g:olympe.dc.nb.Kf.im,g=(null==d?0:d.zB)?'__code-as-data__':void 0;b=olympe.dc.Ya(b);const k=olympe.dc.Qj().Lm(b);b=(new olympe.dc.nb(b,k)).bj();b.
|
|
1395
|
+
olympe.dc.query.Zb.regex=olympe.dc.query.Zb.$Y;olympe.dc.query.Zb.contains=olympe.dc.query.Zb.contains;olympe.dc.query.Zb.equals=olympe.dc.query.Zb.Sb;olympe.dc.query.Zb['in']=olympe.dc.query.Zb.cP;olympe.dc.query.Zb.C={UL:0,eH:1,Ny:2,ZH:3,nK:4,XK:5,AK:6,JF:7};function pk(a){return Array.from(a.xb)}
|
|
1396
|
+
function Ck(a,b){var c=b.relation,d=olympe.dm.Relation.originModelRel,e=olympe.dm.Relation.destinationModelRel;d=a.db.Xd(c,c.Bc()===olympe.dc.Ib.ORIGIN?e:d);if(0>a.cursor)e=a.C.Ll;else if(e=a.xb[a.cursor],null!==e.na)e=e.na;else{var f=olympe.dc.Ib.ORIGIN;e=olympe.dc.eb().Xd(e.relation,e.relation.Bc()===f?olympe.dm.Relation.originModelRel:olympe.dm.Relation.destinationModelRel)}if(a.db.qc(olympe.dc.CloudObject)&&(null===d||!a.db.dn(d,e)&&!a.db.dn(e,d)))throw new olympe.dc.query.xi(`The specified relation "${c}" is invalid at the current level "${a.db.name(e)} (${e})" of the Query you are building. Please make sure you did not forget a .back() or another relation.`);d=
|
|
1397
|
+
b.ja();for(c=a.cursor+1;c<a.xb.length&&a.xb[c].ja()!==d;)c++;b=c<a.xb.length?a.xb:a.xb.concat(b);return new olympe.dc.nb(a.D,a.source,b,c,a.O,a.C)}function Dk(a,b=a.cursor){return 0<=b?a.xb[b].ja():olympe.la.Yd(a.D)}
|
|
1398
|
+
function Ek(a,b,c,d={}){var e=olympe.dc.Te.Zi;const f=(null==d?0:d.$g)?d.$g:olympe.dc.nb.Kf.im,g=(null==d?0:d.zB)?'__code-as-data__':void 0;b=olympe.dc.Ya(b);const k=olympe.dc.Qj().Lm(b);b=(new olympe.dc.nb(b,k)).bj();b.xb=[f===olympe.dc.nb.Kf.Wp?new olympe.dc.query.xb.tH(Dk(b),e,c):new olympe.dc.query.xb.rh(Dk(b),e,c)];let l;b.R=null!=(l=null==d?void 0:d.iP)?l:!1;return b.observe(a,{$g:f,oA:g})}
|
|
1399
1399
|
function Fk(a,b,...c){a=b.reduce((d,e)=>d.rc(e),a);return(c?a.filter(olympe.dc.query.Zb.cP(...c)):a).back(b.length)}function Gk(a){const b=0===a.O.size?a.bj():a;if(null!==b.C.Pi&&!b.O.has(Dk(a,b.C.Pi)))throw new olympe.dc.query.xi('AndReturn was not called for the current level before sortBy operator');return b}function Hk(a,b){let c,d;return b.R||(null!=(d=null==(c=a.T)?void 0:c.has(b.ja()))?d:!1)}
|
|
1400
|
-
olympe.dc.nb=class{constructor(a,b,c=[],d=-1,e=new Set,f={max:-1,offset:0,Pi:null,Ll:null}){this.db=olympe.dc.eb();if('string'!==typeof a||''===a)throw new olympe.dc.query.xi('The root of the query cannot be empty.');this.D=a;this.source=b;this.
|
|
1400
|
+
olympe.dc.nb=class{constructor(a,b,c=[],d=-1,e=new Set,f={max:-1,offset:0,Pi:null,Ll:null}){this.db=olympe.dc.eb();if('string'!==typeof a||''===a)throw new olympe.dc.query.xi('The root of the query cannot be empty.');this.D=a;this.source=b;this.xb=c;this.cursor=d;this.O=e;this.C=f;this.T=this.id=null;this.R=!1}static from(a,b){a=olympe.dc.Ya(a);if(!olympe.dc.CloudObject.Xw(a))throw new olympe.dc.query.xi(`Try to create a query from an instance that does not exist (${a}). Please try to use \`Query.fromTag()\` instead.`);
|
|
1401
1401
|
b=null!=b?b:olympe.dc.Qj().Lm(a);b=new olympe.dc.nb(a,b);b.C.Ll=olympe.dc.eb().model(a);return b}static Lm(a,b,c){if(!olympe.dc.CloudObject.Xw(b)&&!c)throw new olympe.dc.query.xi(`Try to create a query from an instance (${a}) with an explicit datatype that does not exist (${b})`);a=olympe.dc.Ya(a);c=null!=c?c:olympe.dc.Qj().fromModel(b);c=new olympe.dc.nb(a,c);c.C.Ll=olympe.dc.Ya(b);return c}static ZA(a,b=!0,c){const d=olympe.dc.Ya(a);var e=olympe.dc.eb();if(!e.Ju(d))throw new olympe.dc.query.xi(`Try to create a query to get instances of ${a}, which is not a data type or does not exist.`);
|
|
1402
|
-
a=null!=c?c:olympe.dc.Qj().fromModel(d);a=new olympe.dc.nb(d,a);a.C.Ll=e.model(d);b&&(a=Ck(a,new olympe.dc.query.
|
|
1403
|
-
d.
|
|
1404
|
-
return Ck(this,new olympe.dc.query.
|
|
1405
|
-
b=0){return new olympe.dc.nb(this.D,this.source,this.
|
|
1406
|
-
offset:this.C.offset,Ll:this.C.Ll},e=Array.from(this.
|
|
1407
|
-
offset:this.C.offset,returned:this.O.has(b),filter:[],optional:!1,inheritance:!1,next:[]};a.set(b,c);this.db.Ju(this.D)?c.dataType=olympe.dc.Ya(this.D):(c.root=olympe.dc.Ya(this.D),c.dataType=this.C.Ll);this.
|
|
1402
|
+
a=null!=c?c:olympe.dc.Qj().fromModel(d);a=new olympe.dc.nb(d,a);a.C.Ll=e.model(d);b&&(a=Ck(a,new olympe.dc.query.xb.Rk(Dk(a),olympe.dc.CloudObject.extendedByRel,!0,!1)));b=a;e=new olympe.dc.query.xb.rt(Dk(a),olympe.dc.CloudObject.instancesRel,!1);e.na=d;return Ck(b,e)}static bf(a,b,c,d,e){var f;const g=null!=(f=null==e?void 0:e.$g)?f:olympe.dc.nb.Kf.im;f=(null==e?0:e.zB)?'__code-as-data__':void 0;b=olympe.dc.Ya(b);d=null!=d?d:olympe.dc.Qj().Lm(b);d=(new olympe.dc.nb(b,d)).bj();b=g===olympe.dc.nb.Kf.Wp;
|
|
1403
|
+
d.xb=[b?new olympe.dc.query.xb.tH(Dk(d),c):new olympe.dc.query.xb.rh(Dk(d),c)];let k;d.R=null!=(k=null==e?void 0:e.iP)?k:!1;let l;return d.observe(a,{$g:g,oA:f,Qw:null!=(l=null==e?void 0:e.Qw)?l:b})}rc(a,b=!1){if(!(a instanceof olympe.dc.Pc.Relation))throw new olympe.dc.query.xi(`The relation given to follow() is invalid: ${a}`);return Ck(this,new olympe.dc.query.xb.rt(Dk(this),a,b))}fq(a,b=!1,c=!1){if(!(a instanceof olympe.dc.Pc.Relation))throw new olympe.dc.query.xi(`The relation given to followRecursively() is invalid: ${a}`);
|
|
1404
|
+
return Ck(this,new olympe.dc.query.xb.Rk(Dk(this),a,b,c))}bj(){const a=(new Set(this.O)).add(Dk(this));return new olympe.dc.nb(this.D,this.source,this.xb,this.cursor,a,this.C)}Sc(){return this.xb.length}filter(a){if(!(a instanceof olympe.dc.query.Zb))throw new olympe.dc.query.xi(`The specified predicate while trying to filter a query is invalid: ${a}`);const b=Array.from(this.xb);b[this.cursor]=b[this.cursor].filter(a);return new olympe.dc.nb(this.D,this.source,b,this.cursor,this.O,this.C)}Rw(){return this}jn(a,
|
|
1405
|
+
b=0){return new olympe.dc.nb(this.D,this.source,this.xb,this.cursor,this.O,{Pi:this.C.Pi,max:a,offset:b,Ll:this.C.Ll})}yv(a,b=olympe.dc.query.Hz.ASC){if(0>this.cursor)throw new olympe.dc.query.xi('You are trying to sort an empty query. Please first follow at least one relation to sort a query.');if(!olympe.dc.eb().me(a,olympe.dm.Property))throw new olympe.dc.query.xi(`The specified property while trying to sort a query is invalid: ${a}`);const c=this.xb[this.cursor],d={Pi:this.cursor,max:this.C.max,
|
|
1406
|
+
offset:this.C.offset,Ll:this.C.Ll},e=Array.from(this.xb);e[this.cursor]=c.sort(a,b);return new olympe.dc.nb(this.D,this.source,e,this.cursor,this.O,d)}cs(){const a=this.C.Pi;let b;return null!==a?null==(b=this.xb[a])?void 0:b.cs():null}back(a=1){if(0>this.cursor||1>a)return this;let b=this.cursor;for(let c=0;c<a;c++){const d=this.xb[b].C;for(b--;-1<b&&Dk(this,b)!==d;)b--}return new olympe.dc.nb(this.D,this.source,Array.from(this.xb),b,this.O,this.C)}parse(){const a=new Map,b=Dk(this,-1),c={limit:this.C.max,
|
|
1407
|
+
offset:this.C.offset,returned:this.O.has(b),filter:[],optional:!1,inheritance:!1,next:[]};a.set(b,c);this.db.Ju(this.D)?c.dataType=olympe.dc.Ya(this.D):(c.root=olympe.dc.Ya(this.D),c.dataType=this.C.Ll);this.xb.forEach((d,e)=>{const f=d.ja(),g=d.ph();Object.assign(g,{returned:this.O.has(f),next:[]});a.set(f,g);g.sort&&this.C.Pi!==e&&delete g.sort;if(1>=e&&d instanceof olympe.dc.query.xb.rt&&d.relation.Sb(olympe.dc.CloudObject.instancesRel))Object.assign(c,g);else if(0===e&&d instanceof olympe.dc.query.xb.Rk&&
|
|
1408
1408
|
d.relation.Sb(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}Ld(a){const b=(null==a?0:a.$g)?a.$g:olympe.dc.nb.Kf.Iz;let c;return olympe.dc.query.NA().executeQuery(Gk(this),b,{Vr:null!=(c=null==a?void 0:a.oA)?c:null==a?void 0:a.cacheId,kg:null==a?void 0:a.kg}).then(d=>{let e;return null!=(e=null==d?void 0:qk(d))?e:olympe.dc.zc.empty()})}zf(){return qk(Ik(olympe.dc.query.NA(),Gk(this)))}observe(a,b){const c=(null==
|
|
1409
|
-
b?0:b.$g)?b.$g:olympe.dc.nb.Kf.im;a='function'===typeof a.se?a.se():a;let d;return Jk(olympe.dc.query.NA(),Gk(this),a,olympe.dc.uc.SELF,c,{Vr:null!=(d=null==b?void 0:b.oA)?d:null==b?void 0:b.cacheId,kg:null==b?void 0:b.kg,Qw:null==b?void 0:b.Qw}).pipe(rxjs.operators.map(e=>qk(e)),rxjs.operators.distinctUntilChanged())}ja(){null===this.id&&(this.id=olympe.la.Yd(this.D+pk(this).map(a=>a.R()).join()+Array.from(new Set(this.O)).sort().toString()+this.C.Pi+this.C.max+this.C.offset));return this.id}zd(){return this.source}
|
|
1410
|
-
return{b:this.D,p:this.
|
|
1409
|
+
b?0:b.$g)?b.$g:olympe.dc.nb.Kf.im;a='function'===typeof a.se?a.se():a;let d;return Jk(olympe.dc.query.NA(),Gk(this),a,olympe.dc.uc.SELF,c,{Vr:null!=(d=null==b?void 0:b.oA)?d:null==b?void 0:b.cacheId,kg:null==b?void 0:b.kg,Qw:null==b?void 0:b.Qw}).pipe(rxjs.operators.map(e=>qk(e)),rxjs.operators.distinctUntilChanged())}ja(){null===this.id&&(this.id=olympe.la.Yd(this.D+pk(this).map(a=>a.R()).join()+Array.from(new Set(this.O)).sort().toString()+this.C.Pi+this.C.max+this.C.offset));return this.id}zd(){return this.source}gb(){let a;
|
|
1410
|
+
return{b:this.D,p:this.xb.map(b=>b.gb()),r:Array.from(this.O),s:this.source,e:{m:this.C.max,o:this.C.offset,s:this.C.Pi,rm:null!=(a=this.C.Ll)?a:this.db.model(this.D)}}}toString(){return`Query: ${JSON.stringify(this)}`}toJSON(){return{origin:this.db.qc(this.D)?olympe.dc.CloudObject.get(this.D):this.D,relations:this.xb.map(a=>a.toJSON())}}};olympe.dc.nb.prototype.observe=olympe.dc.nb.prototype.observe;olympe.dc.nb.prototype.executeFromCache=olympe.dc.nb.prototype.zf;
|
|
1411
1411
|
olympe.dc.nb.prototype.execute=olympe.dc.nb.prototype.Ld;olympe.dc.nb.prototype.parse=olympe.dc.nb.prototype.parse;olympe.dc.nb.prototype.back=olympe.dc.nb.prototype.back;olympe.dc.nb.prototype.sortBy=olympe.dc.nb.prototype.yv;olympe.dc.nb.prototype.limit=olympe.dc.nb.prototype.jn;olympe.dc.nb.prototype.cast=olympe.dc.nb.prototype.Rw;olympe.dc.nb.prototype.filter=olympe.dc.nb.prototype.filter;olympe.dc.nb.prototype.andReturn=olympe.dc.nb.prototype.bj;olympe.dc.nb.prototype.followRecursively=olympe.dc.nb.prototype.fq;
|
|
1412
1412
|
olympe.dc.nb.prototype.follow=olympe.dc.nb.prototype.rc;olympe.dc.nb.followRule=olympe.dc.nb.bf;olympe.dc.nb.instancesOf=olympe.dc.nb.ZA;olympe.dc.nb.fromTag=olympe.dc.nb.Lm;olympe.dc.nb.from=olympe.dc.nb.from;olympe.dc.nb.Kf={im:1,Iz:2,Wp:3};olympe.dc.nb.C={WB:'cacheBucketName',fI:'isCacheable'};function Kk(a){null===a.ac&&null===a.C&&(a.ac=Th(a.O))}
|
|
1413
1413
|
olympe.dc.query.yi=class extends olympe.dc.fr{constructor(a){super(a,null);this.O=new olympe.dc.transaction.al}static $w(a){const b=new olympe.dc.query.yi(`DataResult_${a.ja()}`);b.D=a.zd();return b}static C(a){const b=new olympe.dc.query.yi(a.i);let c;b.D=null!=(c=a.s)?c:null;let d;b.pA=null!=(d=a.t)?d:null;let e;b.ac=null!=(e=a.p)?e:[];return b}Yf(a){Kk(this);return super.Yf(a)}Af(){Kk(this);return super.Af()}LA(){Kk(this);return super.LA()}create(a,b,c){this.O.yf(a,this.D,c,b);return this}Rb(a,
|
|
1414
|
-
b,c){this.O.Rb(a,b,c,null,null);return this}
|
|
1414
|
+
b,c){this.O.Rb(a,b,c,null,null);return this}gb(){return super.gb()}};olympe.dc.query.yi.prototype.createRelation=olympe.dc.query.yi.prototype.Rb;olympe.dc.query.yi.prototype.create=olympe.dc.query.yi.prototype.create;olympe.dc.query.yi.fromQuery=olympe.dc.query.yi.$w;function Ik(a,b){const c=new olympe.dc.query.NK(a.V,b);if(a.D.view.qc(b.D)){vk(c,b.D);for(const d of pk(b))d.Ld(c)}return c}
|
|
1415
1415
|
function Jk(a,b,c,d,e,f){const g=b.ja();let k=a.C.get(g);if(!k){var l=b.zd();a.V.debug(`Create new subscription for query ${g} for subscriber ${d}, to be executed by the data source ${l}`);l=!1===f.kg||a.R&&l===olympe.dc.uc.SERVER?[]:Array.from(a.C.values());k=new olympe.dc.query.VK(a.V,a.D,b,e,a.W.bind(a,e,f));a.C.set(g,k);Lk(k,m=>a.O.add(m));k.start(l)&&(null==f?0:f.Vr)&&Mk(a,b,e,f).catch(m=>{a.V.error(`Was not able to get the result of the subscribed query ${g} to add it to the cache: ${m}`)})}return new rxjs.Observable(m=>
|
|
1416
1416
|
{const n=()=>{p&&c.nP(p);m.complete();if(r){var t=r;const v=a.C.get(g);a.V.debug(`${d} unsubscribed from ${g}`);if(null==v)t=0;else{var u=v;u.O.delete(t)&&u.V.debug(`Remove subscriber ${d} for query ${u.query.ja()}, now have ${u.O.size} subscribers`);d!==olympe.dc.uc.SELF&&(u.ca--,0===u.ca&&yk(u.C));t=0===u.O.size}t&&(a.V.debug(`No more subscriber to ${g}, remove the subscription`),a.O.delete(g),a.C.delete(g),v.destroy())}},p=c.Ve(n),r=Nk(k,d,m);return n})}
|
|
1417
1417
|
function Ok(a){a.O.forEach(b=>{let c;null==(c=a.C.get(b))||Pk(c)});a.O.clear()}function Qk(a,b,c,d){return q(function*(){const e=null!=d?d:c===olympe.dc.nb.Kf.Wp;if(b instanceof ReadableStream)yield Si(a.D,b,{$D:e});else{var f;if(f=b instanceof olympe.dc.fr)f=b.ja(),f=!a.T.R.has(f);f&&a.D.Oh(b,{$D:e})}})}function Rk(a){a.V.debug('Send GetContext request to the orchestrator');const b=new olympe.dc.Request(olympe.dc.Request.C.ir,olympe.dc.uc.SERVER);return Ih(a.Xe,b).then(c=>{a.D.Oh(c)})}
|
|
@@ -1420,15 +1420,15 @@ function Tk(a,b,c){const d=[];for(const e of a.C.values())Uk(e,b,c)&&d.push(Mk(a
|
|
|
1420
1420
|
olympe.dc.query.gU=class{constructor(a,b,c,d,e){this.V=a;this.D=b;this.T=c;this.Xe=d;this.R=e;this.C=new Map;this.O=new Set;Ti(b,()=>Ok(this));Rh(d,olympe.dc.Request.C.Ty,f=>{Qk(this,f.Ae(),olympe.dc.nb.Kf.im).catch(g=>this.V.error(`Error while applying data notification on DB: ${g}`))})}executeQuery(a,b,c){const d=this;return q(function*(){const e='boolean'===typeof c.kg?c.kg:yield Sk(d,a);if(!e||(null==c?0:c.Vr))try{const f=yield Mk(d,a,b,c);e||(yield Qk(d,f,b))}catch(f){return d.V.error(`Error while sending a query to data source ${a.zd()}: ${f}`),
|
|
1421
1421
|
null}return Ik(d,a)})}W(a,b,c,d,e,f){const g=c.zd();if(g===olympe.dc.uc.SELF||b.kg||this.R&&g===olympe.dc.uc.SERVER)return e(),null;if(a!==olympe.dc.nb.Kf.im)return Mk(this,c,a,b).then(t=>{var u=t;t instanceof ReadableStream&&(u=(u=d())?t.pipeThrough(u):t);return Qk(this,u,a,b.Qw)}).then(e).catch(f),null;let k,l=!1;const m=t=>{k=[];t&&this.V.debug(`Resend subscription ${c.ja()} after detection of dead subscription in the remote service`);Mk(this,c,a,b).then(u=>{if(l)return this.V.warn(`Received data result after query subscription ${c.ja()} has been destroyed. Could happen with queries observed multiple times successively quickly.`),
|
|
1422
1422
|
Promise.resolve();var v=u;u instanceof ReadableStream&&(v=(v=d())?u.pipeThrough(v):u);return Qk(this,v,a,b.Qw).then(()=>{k.forEach(w=>Qk(this,w,a))}).finally(()=>{k=null})}).then(e).catch(f)},n=c.ja();m(!1);const p=Oh(new olympe.dc.Request(olympe.dc.Request.C.Nz,g,c),olympe.dc.nb.C.WB,null==b?void 0:b.Vr),r=this.Xe.subscribe(p,m.bind(this,!0)).pipe(vb(olympe.error.HH,()=>{},0)).pipe(vb(olympe.error.oG,(t,u)=>{this.V.debug(`Data Provider: Subscribe to topic ${t.ja()} now that we are back online, after waiting for ${u}ms`);
|
|
1423
|
-
m(!0)},0)).subscribe(rxjs.Subscriber.create(t=>{Array.isArray(k)?k.push(t):Qk(this,t,a)},t=>{this.V.error(`An error occurred with the subscription ${n}: ${t}`);f(String(t))}));return()=>{l=!0;this.V.debug(`Unsubscribe to query ${n} from data source ${g}`);r.unsubscribe()}}};function Vk(a){const b=olympe.dc.eb();let c=!1;const d=a.k.map(e=>{const f=e.split('.').map(g=>b.qc(g)?olympe.dc.CloudObject.get(g):(olympe.
|
|
1423
|
+
m(!0)},0)).subscribe(rxjs.Subscriber.create(t=>{Array.isArray(k)?k.push(t):Qk(this,t,a)},t=>{this.V.error(`An error occurred with the subscription ${n}: ${t}`);f(String(t))}));return()=>{l=!0;this.V.debug(`Unsubscribe to query ${n} from data source ${g}`);r.unsubscribe()}}};function Vk(a){const b=olympe.dc.eb();let c=!1;const d=a.k.map(e=>{const f=e.split('.').map(g=>b.qc(g)?olympe.dc.CloudObject.get(g):(olympe.fb.wb('dc.query').error(`CloudObject with tag ${g} not present but required for deserialization`),c=!0,null));return[e,1===f.length?f[0]:f]});return c?null:olympe.dc.zc.create(d,a.a,a.r)}
|
|
1424
1424
|
olympe.dc.zc=class{constructor(){this.C=[];this.D=new Map;this.O=[];this.R=[];this.hash=''}static empty(){return new olympe.dc.zc}[Symbol.iterator](){let a=0;return{next:()=>{var b={done:!0};a<this.C.length&&(b=this.C[a],b={value:[b,this.D.get(b)],done:!1},a++);return b}}}entries(){return this.C.map(a=>[a,this.D.get(a)])}values(){return this.D.values()}keys(){return this.C.values()}Sl(){return this.C.map(a=>this.D.get(a))}size(){return this.C.length}has(a){return this.D.has(a)||this.Sl().includes(a)}indexOf(a){return null===
|
|
1425
1425
|
a||void 0===a?-1:'string'===typeof a?this.C.indexOf(a):this.Sl().indexOf(a)}get(a){return(a=this.D.get(a))?a:null}Wd(){return this.Kh(0)}Kh(a){return a<this.C.length?this.D.get(this.C[a]):null}push(...a){const b=this.Sl();b.push(...a);return b}pop(){if(0===this.C.length)return[];const a=this.Sl();a.pop();return a}shift(){if(0<this.C.length){const a=this.Sl();a.shift();return a}return[]}filter(a){return this.Sl().filter(a)}find(a){return(a=this.Sl().find(a))?a:null}forEach(a){this.C.forEach((b,c)=>
|
|
1426
1426
|
a(this.D.get(b),c))}map(a){return this.Sl().map(a)}sort(a){const b=this.entries().sort((c,d)=>a(c[1],d[1]));return olympe.dc.zc.create(b,Array.from(this.O),Array.from(this.R))}reduce(a,b){return this.Sl().reduce(a,b)}concat(...a){const b=[this.entries(),...a.map(d=>d.entries())].flat();let c=Array.from(this.O);for(const d of a)c=c.concat(d.O.map(e=>e+c.length));a=this.R.concat(...a.map(d=>d.R));return olympe.dc.zc.create(b,c,a)}toString(){return`QueryResult: ${JSON.stringify(this)}`}toJSON(){return this.Sl()}wu(){return this.O.map(a=>
|
|
1427
1427
|
this.D.get(this.C[a]))}Eu(){return this.R.map(a=>{a=a.split('.');return 1===a.length?a[0]:a})}static from(a,b,{Pe:c,Pi:d,offset:e,max:f}={}){if(null!==c&&-1<d){const p=olympe.dc.eb(),r=c.ew===olympe.dc.query.Hz.ASC?1:-1,t=c.cs(),u=c.Cc();b.sort((v,w)=>{w=w[d];v=p.Cc(v[d],u);w=p.Cc(w,u);return null===v?-r:null===w?r:r*t(olympe.dc.Bd.vg(v),olympe.dc.Bd.vg(w))})}else b.sort((p,r)=>p.reduce((t,u,v)=>t||u.localeCompare(r[v]),0));if(0<e||-1<f)b=b.slice(e,-1<f?e+f:void 0);c=olympe.la.Yd(b.flat().join(''));
|
|
1428
|
-
if(c===a.hash)return a;const g=p=>''===p?null:olympe.dc.CloudObject.get(p);e=b.map(p=>[p.join('.'),1===p.length?g(p[0]):p.map(g)]);const k=new Set(e.map(p=>p[0])),l=new Set(a.keys()),m=[],n=[];e.forEach(([p],r)=>{!l.has(p)&&m.push(r)});l.forEach(p=>{!k.has(p)&&n.push(p)});return olympe.dc.zc.create(e,m,n,c)}static create(a,b,c,d){const e=new olympe.dc.zc;e.C=a.map(f=>f[0]);e.D=new Map(a);e.hash=d||olympe.la.Yd(e.C.join(''));e.O=b||e.C.map((f,g)=>g);e.R=c||[];return e}
|
|
1428
|
+
if(c===a.hash)return a;const g=p=>''===p?null:olympe.dc.CloudObject.get(p);e=b.map(p=>[p.join('.'),1===p.length?g(p[0]):p.map(g)]);const k=new Set(e.map(p=>p[0])),l=new Set(a.keys()),m=[],n=[];e.forEach(([p],r)=>{!l.has(p)&&m.push(r)});l.forEach(p=>{!k.has(p)&&n.push(p)});return olympe.dc.zc.create(e,m,n,c)}static create(a,b,c,d){const e=new olympe.dc.zc;e.C=a.map(f=>f[0]);e.D=new Map(a);e.hash=d||olympe.la.Yd(e.C.join(''));e.O=b||e.C.map((f,g)=>g);e.R=c||[];return e}gb(a){a&&this.C.flatMap(b=>b.split('.')).forEach(a);
|
|
1429
1429
|
return{k:this.C,a:this.O,r:this.R}}};olympe.dc.zc.prototype.getRemoved=olympe.dc.zc.prototype.Eu;olympe.dc.zc.prototype.getAdded=olympe.dc.zc.prototype.wu;olympe.dc.zc.prototype.concat=olympe.dc.zc.prototype.concat;olympe.dc.zc.prototype.reduce=olympe.dc.zc.prototype.reduce;olympe.dc.zc.prototype.sort=olympe.dc.zc.prototype.sort;olympe.dc.zc.prototype.map=olympe.dc.zc.prototype.map;olympe.dc.zc.prototype.forEach=olympe.dc.zc.prototype.forEach;olympe.dc.zc.prototype.find=olympe.dc.zc.prototype.find;
|
|
1430
1430
|
olympe.dc.zc.prototype.filter=olympe.dc.zc.prototype.filter;olympe.dc.zc.prototype.shift=olympe.dc.zc.prototype.shift;olympe.dc.zc.prototype.pop=olympe.dc.zc.prototype.pop;olympe.dc.zc.prototype.push=olympe.dc.zc.prototype.push;olympe.dc.zc.prototype.getAt=olympe.dc.zc.prototype.Kh;olympe.dc.zc.prototype.getFirst=olympe.dc.zc.prototype.Wd;olympe.dc.zc.prototype.get=olympe.dc.zc.prototype.get;olympe.dc.zc.prototype.indexOf=olympe.dc.zc.prototype.indexOf;olympe.dc.zc.prototype.has=olympe.dc.zc.prototype.has;
|
|
1431
|
-
olympe.dc.zc.prototype.size=olympe.dc.zc.prototype.size;olympe.dc.zc.prototype.toArray=olympe.dc.zc.prototype.Sl;olympe.dc.zc.prototype.keys=olympe.dc.zc.prototype.keys;olympe.dc.zc.prototype.values=olympe.dc.zc.prototype.values;olympe.dc.zc.prototype.entries=olympe.dc.zc.prototype.entries;olympe.dc.zc.empty=olympe.dc.zc.empty;function Wk(a){return 1<a.size()?(olympe.
|
|
1431
|
+
olympe.dc.zc.prototype.size=olympe.dc.zc.prototype.size;olympe.dc.zc.prototype.toArray=olympe.dc.zc.prototype.Sl;olympe.dc.zc.prototype.keys=olympe.dc.zc.prototype.keys;olympe.dc.zc.prototype.values=olympe.dc.zc.prototype.values;olympe.dc.zc.prototype.entries=olympe.dc.zc.prototype.entries;olympe.dc.zc.empty=olympe.dc.zc.empty;function Wk(a){return 1<a.size()?(olympe.fb.wb('dc').warn(`a follow() on a QuerySingle has ${a.size()} results (0 or 1 expected) -> returns null`),null):a.Wd()||null}olympe.dc.Xh=class{constructor(a){this.query=a}static from(a){return new olympe.dc.Xh(olympe.dc.nb.from(a))}rc(a){return new olympe.dc.Xh(this.query.rc(a))}Rw(){return this}Ld(a){return this.query.Ld(a).then(b=>Wk(b))}zf(){return Wk(this.query.zf())}};olympe.dc.Xh.prototype.executeFromCache=olympe.dc.Xh.prototype.zf;
|
|
1432
1432
|
olympe.dc.Xh.prototype.execute=olympe.dc.Xh.prototype.Ld;olympe.dc.Xh.prototype.cast=olympe.dc.Xh.prototype.Rw;olympe.dc.Xh.prototype.follow=olympe.dc.Xh.prototype.rc;const Xk=olympe.dc.Ib.ORIGIN,Yk=olympe.dc.Ib.DESTINATION;function Lk(a,b){rk(a.C,()=>{a.mc()||null!==a.D||b(a.query.ja())})}function Nk(a,b,c){const d=a.uid;a.uid++;a.O.set(d,c);b===olympe.dc.uc.SELF?a.Li(e=>e?c.error(e):c.next(a.C)):(a.ca++,1===a.ca&&a.Li(()=>xk(a.C)));a.V.debug(`Add subscriber ${b} for query ${a.query.ja()}, now have ${a.O.size} subscribers`);return d}
|
|
1433
1433
|
function Uk(a,b,c){if(a.query.zd()!==b)return!1;c.Yf(a.ea);(b=a.ea.flush())&&a.V.debug(`Subscription ${a.query.ja()} is considered as obsolete after the transaction ${c.ja()} applied on DB`);return b}function Pk(a){zk(a.C);a.O.forEach(b=>{b.next(a.C)})}
|
|
1434
1434
|
function Zk(a,b,c){const d=[];let e=!1;const f=new olympe.async.Jz(olympe.j.Ko());for(const g of b)if(g.kh(a.query)&&(e||(e=!0),f.add(k=>g.Li(l=>{!l&&d.push(g);k()}))),null!==g.D&&Hk(a.query,g.query)){let k;null==(k=a.W)||k.push(g)}Jd(f,g=>c(g?d:[]));f.start();return e}
|
|
@@ -1437,41 +1437,41 @@ function bl(a){const b=a.Ba(a.query,a.Oa.bind(a),()=>{null===a.D||a.mc()||$k(a)}
|
|
|
1437
1437
|
olympe.dc.query.VK=class{constructor(a,b,c,d,e){this.V=a;this.na=b;this.db=b.view;this.query=c;this.$g=d;this.C=new olympe.dc.query.NK(this.V,c);this.ca=0;this.uid=1;this.$=[];this.O=new Map;this.D=[()=>zk(this.C)];this.Ba=e;this.ea=new dl(a,this.db,c,this.C);this.R=this.T=null;this.W=[]}start(a){return Zk(this,a,b=>{0<b.length?(this.T=new Set(b),this.T.forEach(c=>{null===c.R&&(c.R=new Set);c.R.add(this)}),$k(this)):bl(this)})}kh(a){return!this.mc()&&this.query.zd()===a.zd()&&(this.query.ja()===a.ja()||
|
|
1438
1438
|
(null===this.D||this.query.D===a.D)&&this.C.kh(a))}Li(a){null!==this.D?this.D.push(a):a();return this}destroy(a){a?this.V.error(`Destroy subscription ${this.query.ja()} after error: ${a}`):this.V.debug(`Destroy subscription ${this.query.ja()}`);const b=this.$;this.$=null;this.O.forEach(e=>a?e.error(a):e.complete());let c;null==(c=this.R)||c.forEach(e=>cl(e,this));let d;null==(d=this.T)||d.forEach(e=>{e.R.delete(this);0===e.R.size&&(e.R=null)});b.forEach(e=>e())}mc(){return null===this.$}Oa(){const a=
|
|
1439
1439
|
olympe.dc.nb.Kf.Wp;if(this.$g===a)return olympe.la.stream.tap(c=>{c=c.LA().filter(d=>d.o===olympe.dc.hh.C).map(d=>d.t);this.na.sk(c,'Batch mode')});let b;if(0<(null==(b=this.W)?void 0:b.length)){const c=this.W.filter(e=>e.$g===a).map(e=>new Promise(f=>e.Li(f))),d=this.W.filter(e=>e.$g!==a).map(e=>new Promise(f=>e.Li(f)));this.W=void 0;return new TransformStream({start:()=>Promise.all(c),flush:()=>Promise.all(d)})}return null}};function el(a,b){return a.C.has(Yk+b)||a.C.has(Xk+b)}
|
|
1440
|
-
class dl{constructor(a,b,c,d){this.V=a;this.db=b;this.O=d;this.T=[];this.R=-1<c.C.max||0<c.C.offset;this.C=new Map;this.result=!1;const e=new Map;for(const f of pk(c)){a=f.ja();this.T.push(a);if(f instanceof olympe.dc.query.
|
|
1440
|
+
class dl{constructor(a,b,c,d){this.V=a;this.db=b;this.O=d;this.T=[];this.R=-1<c.C.max||0<c.C.offset;this.C=new Map;this.result=!1;const e=new Map;for(const f of pk(c)){a=f.ja();this.T.push(a);if(f instanceof olympe.dc.query.xb.Rt){a=f.relation;a=`${a.Bc()}${a.ka()}`;let g;b=null!=(g=this.C.get(a))?g:[];b.push(f);this.C.set(a,b)}fl(f).forEach(g=>{let k;const l=null!=(k=e.get(g))?k:[];l.push(f.ja());e.set(g,l)})}this.properties=Array.from(e.entries())}flush(){const a=this.result;this.result=!1;return a}yf(){}qh(a,
|
|
1441
1441
|
b){if(!(this.result||!this.R&&this.db.qc(a))){var c;this.result||(this.result=null==(c=this.properties)?void 0:c.some(([d,e])=>b.has(d)&&uk(this.O,a,e)))}}D(a){this.result||this.db.qc(a)&&!this.R||this.result||(this.result=this.T.some(b=>uk(this.O,a,b)))}Rb(a,b,c){if(!this.result&&el(this,a)){var d=this.db.qc(b),e=this.db.qc(c);if(d&&!e||!d&&e){const f=this.C.get(Yk+a);a=this.C.get(Xk+a);this.result||(this.result=d&&(null==f?void 0:f.some(g=>uk(this.O,b,g.C)))||e&&(null==a?void 0:a.some(g=>uk(this.O,
|
|
1442
1442
|
c,g.C))))}}}Zf(a,b,c){if(!this.result&&this.R&&el(this,a)&&this.db.jP(b,new olympe.dc.Pc.Relation(a),c)){const d=this.C.get(Yk+a);a=this.C.get(Xk+a);const e=this.O;this.result||(this.result=(null==d?void 0:d.some(f=>uk(e,b,f.C)&&uk(e,c,f.ja())))||(null==a?void 0:a.some(f=>uk(e,c,f.C)&&uk(e,b,f.ja()))))}}}olympe.dc.query.VK.Aa=[olympe.dc.eu];function gl(a){return new olympe.dc.query.Relation(a.tag,a.direction,!0)}
|
|
1443
1443
|
olympe.dc.query.Relation=class extends olympe.dc.Pc.Relation{constructor(a,b,c){super(a,b);this.recursive=c}toJSON(){let a='{ "tag": '+JSON.stringify(this.ka())+', ';a+='"direction": '+JSON.stringify(this.Bc())+', ';a+='"recursive": '+JSON.stringify(this.recursive);return a+'}'}static ke(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.ka(),a.Bc(),null!=b?b:a instanceof olympe.dc.Ra.Fj)}fe(){const a=
|
|
1444
|
-
olympe.dc.Ib.DESTINATION,b=olympe.dc.Ib.ORIGIN;return new olympe.dc.query.Relation(this.tag,this.direction===a?b:a,this.recursive)}ja(){return`${this.direction}${this.tag}${this.recursive?'-r':''}`}};olympe.dc.query.ba={Wb:'dc.query.Logger',sw:'dc.query.QueryProcessor'};olympe.ta.af(function(a){C(a,olympe.dc.query.ba.Wb,[olympe.
|
|
1445
|
-
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.la.Yd('AND-'+b+a+k),f.bind(null,k))})}
|
|
1446
|
-
this.Gc))}observe(a,b,c){ij(this.db,a,this.Gc,d=>{c(this.apply(d))},olympe.la.Yd(b+a+this.toString()))}apply(a){a=olympe.dc.Bd.vg(a);return'string'===typeof a?this.C?a.includes(this.substring):a.toLowerCase().includes(this.substring.toLowerCase()):!1}toString(){return'Contains'+this.Gc+'-'+this.substring+'-'+this.C}clear(a,b){jj(this.db,a,this.Gc,olympe.la.Yd(b+a+this.toString()))}ph(){return{name:'CONTAINS',property:this.Cc(),value:this.substring,caseSensitive:this.C}}
|
|
1444
|
+
olympe.dc.Ib.DESTINATION,b=olympe.dc.Ib.ORIGIN;return new olympe.dc.query.Relation(this.tag,this.direction===a?b:a,this.recursive)}ja(){return`${this.direction}${this.tag}${this.recursive?'-r':''}`}};olympe.dc.query.ba={Wb:'dc.query.Logger',sw:'dc.query.QueryProcessor'};olympe.ta.af(function(a){C(a,olympe.dc.query.ba.Wb,[olympe.fb.ba.Pb],b=>b.Yg('query'));A(a,olympe.dc.query.ba.sw,olympe.dc.query.gU,olympe.dc.query.ba.Wb,olympe.dc.db.ba.Pb,olympe.dc.transaction.ba.Pb,olympe.dc.ba.zr,new olympe.ta.Db(olympe.dc.pa.Ut))});olympe.ta.run([olympe.dc.query.ba.sw],a=>{olympe.dc.query.NA=()=>a});olympe.dc.query.xi=class extends Error{};olympe.dc.query.Da={};olympe.dc.query.Da.Qi=class extends olympe.dc.query.Zb{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},[])}Re(){return new olympe.dc.query.Da.$k(...this.Da.map(a=>a.Re()))}ce(){return this.Da.flatMap(a=>a.ce())}kh(){throw Error('Should not try to check predicate coverage on And (should be removed by compiling predicates');}Ld(a){return this.Da.reduce((b,c)=>b&&c.Ld(a),!0)}observe(a,
|
|
1445
|
+
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.la.Yd('AND-'+b+a+k),f.bind(null,k))})}gb(){return{pr:olympe.dc.query.Zb.C.JF,p:this.Da.map(a=>a.gb())}}ph(){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.la.Yd('AND-'+b+a+d))})}};olympe.dc.query.Da.Zn=class extends olympe.dc.query.Zb{constructor(a,b,c,d=!1){super();this.Gc=olympe.dc.Ya(a);this.substring=b;this.db=c;this.C=d}ce(){return[this.Gc]}kh(a,b){return a instanceof olympe.dc.query.Da.Zn&&a.Gc===this.Gc?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}Cc(){return this.Gc}Ld(a){return this.apply(this.db.Cc(a,
|
|
1446
|
+
this.Gc))}observe(a,b,c){ij(this.db,a,this.Gc,d=>{c(this.apply(d))},olympe.la.Yd(b+a+this.toString()))}apply(a){a=olympe.dc.Bd.vg(a);return'string'===typeof a?this.C?a.includes(this.substring):a.toLowerCase().includes(this.substring.toLowerCase()):!1}toString(){return'Contains'+this.Gc+'-'+this.substring+'-'+this.C}clear(a,b){jj(this.db,a,this.Gc,olympe.la.Yd(b+a+this.toString()))}ph(){return{name:'CONTAINS',property:this.Cc(),value:this.substring,caseSensitive:this.C}}gb(){return{pr:olympe.dc.query.Zb.C.Ny,
|
|
1447
1447
|
p:this.Gc,s:this.substring,c:this.C}}};olympe.dc.query.Da.Qk=class extends olympe.dc.query.Zb{constructor(a,b,c){super();this.Gc=olympe.dc.Ya(a);this.C=olympe.dc.Bd.vg(null!=b?b:null);this.db=c}ce(){return[this.Gc]}kh(a){if(a instanceof olympe.dc.query.Da.Qk&&this.Gc===a.Gc)if('object'===typeof this.C&&null!==this.C){if(this.C instanceof olympe.dc.CloudObject)return this.C.Sb(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.Sb(a.C)}else return this.C===
|
|
1448
1448
|
a.C;return!1}Ld(a){return this.apply(this.db.Cc(a,this.Gc))}observe(a,b,c){ij(this.db,a,this.Gc,d=>{c(this.apply(d))},olympe.la.Yd(b+a+this.toString()));null===this.C&&null===this.db.Cc(a,this.Gc)&&c(!0)}clear(a,b){jj(this.db,a,this.Gc,olympe.la.Yd(b+a+this.toString()))}apply(a){a=olympe.dc.Bd.vg(a);return'object'===typeof a&&null!==a?a instanceof olympe.dc.CloudObject?a.Sb(this.C):a instanceof Date?this.C instanceof Date&&this.C.getTime()===a.getTime():a instanceof olympe.j.Color?a.Sb(this.C):!1:
|
|
1449
|
-
a===this.C}toString(){let a,b;const c=null!=(b=null==(a=this.C)?void 0:a.toString())?b:'null';return'Equals-'+this.Gc+'-'+c}ph(){return{name:'EQUALS',property:this.Gc,value:this.C}}
|
|
1449
|
+
a===this.C}toString(){let a,b;const c=null!=(b=null==(a=this.C)?void 0:a.toString())?b:'null';return'Equals-'+this.Gc+'-'+c}ph(){return{name:'EQUALS',property:this.Gc,value:this.C}}gb(){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.ka();break;case this.C instanceof olympe.j.Color:a=4,b=this.C.toJSON()}return{pr:olympe.dc.query.Zb.C.eH,p:this.Gc,t:a,v:b}}};function hl(a,b,c){return olympe.la.Yd(c+b+a.C+a.Gc)}
|
|
1450
1450
|
olympe.dc.query.Da.aw=class extends olympe.dc.query.Zb{constructor(a,b,c,d=!0,e=!0){super();this.db=a;this.Gc=olympe.dc.Ya(b);this.C=(this.O=('object'===typeof c||'string'===typeof c)&&olympe.dc.CloudObject.Xw(c))?olympe.dc.Ya(c):c;this.D=d;this.R=e}Re(){return new olympe.dc.query.Da.aw(this.db,this.Gc,this.C,!this.D,!this.R)}ce(){return[this.Gc]}kh(a,b){if(b)throw Error('Check coverage of inequality should not happen with opposite = true');return a instanceof olympe.dc.query.Da.aw&&this.Gc===a.Gc?
|
|
1451
1451
|
typeof this.C!==typeof a.C||this.D!==a.D?!1:this.O?this.C===a.C:this.D&&this.C>=a.C||!this.D&&this.C<=a.C:!1}Cc(){return this.Gc}Ld(a){return this.compare(this.db.Cc(a,this.Gc),this.O?this.db.Cc(a,this.C):this.C)}observe(a,b,c){this.O&&ij(this.db,a,this.C,d=>{const e=this.db.Cc(a,this.Gc);null!==e&&c(this.compare(e,d))},hl(this,a,b));ij(this.db,a,this.Gc,d=>{const e=this.O?this.db.Cc(a,this.C):this.C;c(null!==e?this.compare(d,e):!0)},hl(this,a,b))}compare(a,b){return null===a?!1:null===b?!0:this.R?
|
|
1452
|
-
this.D?a<b:a>b:this.D?a<=b:a>=b}clear(a,b){jj(this.db,a,this.Gc,hl(this,a,b));this.O&&jj(this.db,a,this.C,hl(this,a,b))}ph(){return{name:'INEQUALITY_OPERATOR',property:this.Cc(),operator:this.D?'<':'>',strict:this.R,value:this.C}}
|
|
1452
|
+
this.D?a<b:a>b:this.D?a<=b:a>=b}clear(a,b){jj(this.db,a,this.Gc,hl(this,a,b));this.O&&jj(this.db,a,this.C,hl(this,a,b))}ph(){return{name:'INEQUALITY_OPERATOR',property:this.Cc(),operator:this.D?'<':'>',strict:this.R,value:this.C}}gb(){return{pr:olympe.dc.query.Zb.C.ZH,p:this.Gc,b:this.C,l:this.D,s:this.R}}toString(){return(this.D?'LowerThan-':'GreaterThan-')+this.Gc+'-'+this.R+'-'+this.C}};olympe.dc.query.Da.nk=class extends olympe.dc.query.Zb{constructor(a){super();this.C=a}compile(){const a=this.C.Re();return this.Sb(a)?super.compile():a.compile()}Re(){return this.C}ce(){return this.C.ce()}kh(a,b){return a instanceof olympe.dc.query.Da.nk?this.C.kh(a.C,b):this.C.kh(a,!b)}Ld(a){return!this.C.Ld(a)}observe(a,b,c){let d=null;this.C.observe(a,olympe.la.Yd('NOT'+b+a),e=>{!e!==d&&(d=!e,c(d))})}ph(){return{name:'NOT',predicate:this.C.ph()}}gb(){return{pr:olympe.dc.query.Zb.C.nK,v:this.C.gb()}}toString(){return`NOT-${this.C.toString()}`}clear(a,
|
|
1453
1453
|
b){this.C.clear(a,olympe.la.Yd('NOT'+b+a))}Sb(a){return a instanceof olympe.dc.query.Da.nk?this.C.Sb(a.C):!1}};olympe.dc.query.Da.$k=class extends olympe.dc.query.Zb{constructor(...a){super();this.Da=a}compile(){return this.Da.map(a=>a.compile()).flat()}Re(){return new olympe.dc.query.Da.Qi(...this.Da.map(a=>a.Re()))}ce(){return this.Da.flatMap(a=>a.ce())}kh(){throw Error('Should not try to check predicate coverage on And (should be removed by compiling predicates');}Ld(a){return this.Da.reduce((b,c)=>b||c.Ld(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=
|
|
1454
|
-
d.some(l=>l);e!==g&&(e=g,c(g))};this.Da.forEach((g,k)=>{g.observe(a,olympe.la.Yd('OR-'+b+a+k),f.bind(null,k))})}ph(){throw Error('toObject for OR predicate should not be called');}
|
|
1455
|
-
return'string'===typeof a?(a=this.C.test(this.D?a:a.toLowerCase()),this.C.lastIndex=0,a):!1}toString(){return'Regex'+this.Gc+'-'+this.C.toString()+'-'+this.D}ph(){return{name:'REGEX',property:this.Gc,pattern:this.C,caseSensitive:this.D}}
|
|
1454
|
+
d.some(l=>l);e!==g&&(e=g,c(g))};this.Da.forEach((g,k)=>{g.observe(a,olympe.la.Yd('OR-'+b+a+k),f.bind(null,k))})}ph(){throw Error('toObject for OR predicate should not be called');}gb(){return{pr:olympe.dc.query.Zb.C.AK,p:this.Da.map(a=>a.gb())}}toString(){return'And-'+this.Da.reduce((a,b)=>a.toString()+'-'+b.toString(),'')}clear(a,b){this.Da.forEach((c,d)=>{c.clear(a,olympe.la.Yd('OR-'+b+a+d))})}};olympe.dc.query.Da.ro=class extends olympe.dc.query.Zb{constructor(a,b,c,d=!0){super();this.Gc=olympe.dc.Ya(a);this.C='string'===typeof b?new RegExp(d?b:b.toLowerCase()):d?b:new RegExp(b.source.toLowerCase());this.db=c;this.D=d}ce(){return[this.Gc]}kh(a){return a instanceof olympe.dc.query.Da.ro&&this.Gc===a.Gc&&this.C.toString()===a.C.toString()}Ld(a){return this.apply(this.db.Cc(a,this.Gc))}observe(a,b,c){ij(this.db,a,this.Gc,d=>{c(this.apply(d))},olympe.la.Yd(b+a+this.toString()))}apply(a){a=olympe.dc.Bd.vg(a);
|
|
1455
|
+
return'string'===typeof a?(a=this.C.test(this.D?a:a.toLowerCase()),this.C.lastIndex=0,a):!1}toString(){return'Regex'+this.Gc+'-'+this.C.toString()+'-'+this.D}ph(){return{name:'REGEX',property:this.Gc,pattern:this.C,caseSensitive:this.D}}gb(){return{pr:olympe.dc.query.Zb.C.XK,p:this.Gc,r:this.C.source,c:this.D}}clear(a,b){jj(this.db,a,this.Gc,olympe.la.Yd(b+a+this.toString()))}};olympe.dc.query.Da.LD=class extends olympe.dc.query.Zb{constructor(a){super();this.C=new Set(a.map(olympe.dc.Ya))}ce(){return[]}kh(a){return a instanceof olympe.dc.query.Da.LD&&Array.from(a.C).every(b=>this.C.has(b))}Ld(a){return this.C.has(a)}observe(a,b,c){c(this.C.has(a))}clear(){}toString(){return'Tags-'+Array.from(this.C)}ph(){return{name:'IS',tags:Array.from(this.C)}}gb(){return{pr:olympe.dc.query.Zb.C.UL,t:Array.from(this.C)}}};olympe.dc.query.xb={};function fl(a){let b,c;const d=new Set(null!=(c=null==(b=a.D)?void 0:b.ce())?c:[]);let e;a.Pe&&d.add(null==(e=a.Pe)?void 0:e.Cc().ka());return d}function il(a){if(!a.ca){let b,c;a.ca=null!=(c=null==(b=a.D)?void 0:b.compile())?c:[]}return a.ca}function jl(a,b){for(const c of b)if(a.some(d=>d.kh(c,!1)))return!0;return!1}
|
|
1456
1456
|
function kl(a,b){if(null===a.D)return b;let c=!1;const d=a.toString();return(e,f,g,k)=>{const l=olympe.la.Yd(k+f+d);e?a.D.observe(f,l,m=>{c||b(m,f,g,l)}):(c=!0,a.D.clear(f,l),c=!1,b(!1,f,g,l))}}function ll(a,b,c){if(null===a.Pe)return c;const d=a.toString();return(e,f,g,k)=>{const l=a.Pe.Cc();k=olympe.la.Yd(k+d);e?ij(a.db,f,l,()=>{sk(b)},k):jj(a.db,f,l,k);c(e,f,g,k)}}
|
|
1457
|
-
olympe.dc.query.
|
|
1458
|
-
b,c,d;return`${this.C}-${this.optional}${null!=(c=null==(a=this.D)?void 0:a.toString())?c:''}${null!=(d=null==(b=this.Pe)?void 0:b.toString())?d:''}`}ph(){}toJSON(){}
|
|
1457
|
+
olympe.dc.query.xb.qD=class{constructor(a,b){this.db=olympe.dc.eb();this.C=a;this.optional=b;this.ca=this.Pe=this.D=this.id=null}static C(a){var b=a.i;if('string'===typeof a.f)return new olympe.dc.query.xb.rh(b,a.f);var c=a.o;const d=new olympe.dc.Pc.Relation(a.t,a.d);b='boolean'===typeof a.s?new olympe.dc.query.xb.Rk(b,d,a.s,c):new olympe.dc.query.xb.rt(b,d,c);void 0!==a.p&&(b.D=Bk(a.p));void 0!==a.c&&(c=b.ja(),a=a.c,a=new olympe.dc.query.Xn(c,new olympe.dc.Pc.Property(a.p),a.o),b.Pe=a);return b}clone(){}R(){let a,
|
|
1458
|
+
b,c,d;return`${this.C}-${this.optional}${null!=(c=null==(a=this.D)?void 0:a.toString())?c:''}${null!=(d=null==(b=this.Pe)?void 0:b.toString())?d:''}`}ph(){}toJSON(){}gb(){const a={i:this.C,o:this.optional};null!==this.D&&(a.p=this.D.gb());null!==this.Pe&&(a.c=this.Pe.gb());return a}W(){}ea(){return new olympe.dc.query.xb.FD}$(){}ja(){this.id||(this.id=this.W());return this.id}T(){return this.optional}kh(a){const b=il(this);if(0===b.length)return!0;a=il(a);if(0===a.length)return!1;for(const c of a)if(!b.some(d=>
|
|
1459
1459
|
jl(d,c)))return!1;return!0}filter(a){const b=this.clone(),c=b.D;null===c?b.D=a:b.D=c instanceof olympe.dc.query.Da.Qi?new olympe.dc.query.Da.Qi(...Array.from(c.Da),a):new olympe.dc.query.Da.Qi(b.D,a);return b}sort(a,b){const c=this.clone();c.Pe=new olympe.dc.query.Xn(this.ja(),a,b);return c}cs(){return this.Pe}Ld(a){if(null!==this.D){var b=this.ja();for(const c of tk(a,b))this.D.Ld(c)||a.remove(c,b,null)}}observe(a,b){const c=this.ja();return kl(this,ll(this,a,(d,e,f,g)=>{(d?vk(a,e,c,f):a.remove(e,
|
|
1460
|
-
c,f))&&b(d,e,f,g)}))}Sb(){}};olympe.dc.query.
|
|
1461
|
-
e=olympe.dc.Mf.mt,f=olympe.dm.Relation.C.cL,g=olympe.dm.Relation.C.eM;a=a.relation;const k=a.Bc(),l=a.ka();return k!==c||l!==d&&l!==e?!!(sj(this.db,a,this.bf)&(a.Bc()===b?f:g)):!0}return a instanceof olympe.dc.query.
|
|
1462
|
-
t),p&&d(e,r,t,k))},l):uj(this.db,g,this.bf,l);b(f,g,e,l)};return(e,f,g,k)=>{(e?vk(a,f,c,f):a.remove(f,c,f))&&d(f,e,f,olympe.la.Yd(k+f+this.toString()))}}
|
|
1463
|
-
rule:`${this.db.name(this.bf)} (${this.bf})`}}T(){return!1}filter(){olympe.
|
|
1464
|
-
b.relation.Sb(this.relation)&&c.push(a);return c}Ld(a){const b=this.ja();for(const c of tk(a,this.C))this.db.tc(c,this.relation).forEach(d=>{vk(a,d,b,c)});super.Ld(a)}observe(a,b){const c=super.observe(a,b),d=this.relation.ka(),e=this.relation.Bc(),f=this.toString();return(g,k,l,m)=>{const n=olympe.la.Yd(m+k+f);g?nj(this.db,k,this.relation,(p,r)=>{wk(a,p,d,e,k,r);c(p,r,k,n)},n):this.db.D(k,this.relation,n)}}
|
|
1465
|
-
{recursive:!1,relation:this.relation,filter:il(this).map(b=>b.map(c=>c.ph())),optional:this.T()};this.Pe&&(a.sort={property:this.Pe.Cc(),order:this.Pe.ew});return a}toString(){return`Follow Part: ${this.relation}`}toJSON(){return{type:'follow',relation:`${this.db.name(this.relation)} (${this.relation.ka()})`,direction:this.relation.Bc()}}Sb(a){return a instanceof olympe.dc.query.
|
|
1466
|
-
olympe.dc.query.
|
|
1467
|
-
super.observe(a,b)(f,g,g,olympe.la.Yd(k+g));e(f,g,g,k)}}
|
|
1468
|
-
relation:`${this.db.name(this.relation)} (${this.relation.ka()})`,direction:this.relation.Bc()}}Sb(a){return a instanceof olympe.dc.query.
|
|
1469
|
-
b){a===this.origin&&(this.origin=null);if(null===this.origin||!this.db.qc(a)||!b)return this.content.delete(a);var c=this.content.get(a);if(!c)return!1;const d=c.get(b);if(1<d)return c.set(b,d-1),!0;b=c.delete(b);if(0===c.size)return this.content.delete(a);if(b){c=new Set(c.keys());for(const e of c){if(this.origin===e)return!0;let f,g;for(const k of null!=(g=null==(f=this.content.get(e))?void 0:f.keys())?g:[])c.add(k)}return this.content.delete(a)}return!1}};olympe.dc.query.
|
|
1470
|
-
(e=null==c?void 0:c.delete(b))?e:!1;0===(null==c?void 0:c.size)&&this.content.delete(a);return b}};olympe.dc.query.
|
|
1471
|
-
return b}};olympe.dc.query.
|
|
1460
|
+
c,f))&&b(d,e,f,g)}))}Sb(){}};olympe.dc.query.xb.Rt=class extends olympe.dc.query.xb.qD{constructor(a,b,c){super(a,c);this.relation=b;this.na=null}};olympe.dc.query.xb.rD=class{has(){}R(){}C(){}yg(){}D(){}remove(){}};olympe.dc.query.xb.rh=class extends olympe.dc.query.xb.qD{constructor(a,b,c){super(a,!1);this.bf=b;this.O=null!=c?c:null}clone(){return new olympe.dc.query.xb.rh(this.C,this.bf,this.O)}W(){return olympe.la.Yd(this.C+olympe.dc.query.xb.rh.Fc)}ea(){return new olympe.dc.query.xb.gI(this.db,this.O)}$(a,b){return b instanceof olympe.dc.query.xb.rh?[a]:[olympe.la.Yd(a+olympe.dc.query.xb.rh.Fc)]}kh(a){if(a instanceof olympe.dc.query.xb.Rt){const b=olympe.dc.Ib.ORIGIN,c=olympe.dc.Ib.DESTINATION,d=olympe.dc.Mf.uh,
|
|
1461
|
+
e=olympe.dc.Mf.mt,f=olympe.dm.Relation.C.cL,g=olympe.dm.Relation.C.eM;a=a.relation;const k=a.Bc(),l=a.ka();return k!==c||l!==d&&l!==e?!!(sj(this.db,a,this.bf)&(a.Bc()===b?f:g)):!0}return a instanceof olympe.dc.query.xb.rh?this.bf===a.bf:!1}Ld(a){const b=this.ja();for(const c of tk(a,this.C))for(const d of ji(this.db,c,this.bf))vk(a,d,b,c)}observe(a,b){const c=this.ja(),d=(e,f,g,k)=>{const l=`${k}:${g}`;f?tj(this.db,g,this.bf,(m,n,p,r,t)=>{p&&(p=r?vk(a,t,c,g):a.remove(t,c,g),null!==n&&wk(a,r,m,n,g,
|
|
1462
|
+
t),p&&d(e,r,t,k))},l):uj(this.db,g,this.bf,l);b(f,g,e,l)};return(e,f,g,k)=>{(e?vk(a,f,c,f):a.remove(f,c,f))&&d(f,e,f,olympe.la.Yd(k+f+this.toString()))}}gb(){return Object.assign(super.gb(),{f:this.bf})}R(){return`followRulePart-${this.bf}-${super.R()}`}ph(){throw Error('Try to parse a part of an implicit query. Data connectors do not support those queries.');}toString(){return`FollowRule Part: ${this.db.name(this.bf)} (${this.bf})`}Sb(a){return a instanceof olympe.dc.query.xb.rh&&this.bf===a.bf}toJSON(){return{type:'follow rule',
|
|
1463
|
+
rule:`${this.db.name(this.bf)} (${this.bf})`}}T(){return!1}filter(){olympe.fb.wb('dc.query').warn('Should never try to filter on queries with follow rules, ignore...');return this}sort(){olympe.fb.wb('dc.query').warn('Should never try to sort queries with follow rules, ignore...');return this}};olympe.dc.query.xb.rh.Fc='followRules';olympe.dc.query.xb.rt=class extends olympe.dc.query.xb.Rt{constructor(a,b,c){super(a,olympe.dc.query.Relation.from(b,!1),c)}clone(){const a=new olympe.dc.query.xb.rt(this.C,this.relation,this.optional);a.D=this.D;a.Pe=this.Pe;return a}W(){return olympe.la.Yd(this.C+this.relation.ja())}$(a,b){if(b instanceof olympe.dc.query.xb.rh)return[a];const c=[a+this.relation.ja(),a+gl(this.relation).ja()+!1,a+gl(this.relation).ja()+!0,a+olympe.dc.query.xb.rh.Fc].map(d=>olympe.la.Yd(d));b instanceof olympe.dc.query.xb.Rk&&
|
|
1464
|
+
b.relation.Sb(this.relation)&&c.push(a);return c}Ld(a){const b=this.ja();for(const c of tk(a,this.C))this.db.tc(c,this.relation).forEach(d=>{vk(a,d,b,c)});super.Ld(a)}observe(a,b){const c=super.observe(a,b),d=this.relation.ka(),e=this.relation.Bc(),f=this.toString();return(g,k,l,m)=>{const n=olympe.la.Yd(m+k+f);g?nj(this.db,k,this.relation,(p,r)=>{wk(a,p,d,e,k,r);c(p,r,k,n)},n):this.db.D(k,this.relation,n)}}gb(){return Object.assign(super.gb(),{t:this.relation.ka(),d:this.relation.Bc()})}R(){return`followPart-${this.relation.ja()}-${super.R()}`}ph(){const a=
|
|
1465
|
+
{recursive:!1,relation:this.relation,filter:il(this).map(b=>b.map(c=>c.ph())),optional:this.T()};this.Pe&&(a.sort={property:this.Pe.Cc(),order:this.Pe.ew});return a}toString(){return`Follow Part: ${this.relation}`}toJSON(){return{type:'follow',relation:`${this.db.name(this.relation)} (${this.relation.ka()})`,direction:this.relation.Bc()}}Sb(a){return a instanceof olympe.dc.query.xb.rt&&this.relation.Sb(a.relation)}};olympe.dc.query.xb.Rk=class extends olympe.dc.query.xb.Rt{constructor(a,b,c,d){super(a,olympe.dc.query.Relation.from(b,!0),d);this.O=c}ea(){return new olympe.dc.query.xb.hL}clone(){const a=new olympe.dc.query.xb.Rk(this.C,this.relation,this.O,this.optional);a.D=this.D;a.Pe=this.Pe;return a}W(){return olympe.la.Yd(this.C+this.relation.ja()+this.O)}$(a,b){if(b instanceof olympe.dc.query.xb.rh)return[a];const c=[a+this.relation.ja()+this.O,a+olympe.dc.query.xb.rh.Fc].map(d=>olympe.la.Yd(d));b instanceof
|
|
1466
|
+
olympe.dc.query.xb.Rk&&b.relation.Sb(this.relation)&&c.push(a);return c}Ld(a){const b=this.ja();for(const c of tk(a,this.C))this.O&&vk(a,c,b,c),this.db.pq(c,this.relation).forEach(d=>{vk(a,d,b,c)});super.Ld(a)}observe(a,b){const c=this.relation.ka(),d=this.relation.Bc(),e=(f,g,k,l)=>{const m=olympe.la.Yd(l+g);f?nj(this.db,g,this.relation,(n,p)=>{wk(a,n,c,d,g,p);super.observe(a,(r,t,u,v)=>{b(r,t,u,v);e(r,t,u,l)})(n,p,k,m)},m):this.db.D(g,this.relation,m)};return(f,g,k,l)=>{k=l+this.toString();this.O&&
|
|
1467
|
+
super.observe(a,b)(f,g,g,olympe.la.Yd(k+g));e(f,g,g,k)}}gb(){return Object.assign(super.gb(),{s:this.O,t:this.relation.ka(),d:this.relation.Bc()})}R(){return`followRecursivelyPart-${this.relation.ja()}-${this.O}-${super.R()}`}ph(){const a={recursive:this.O?'INCLUDE_SELF':'EXCLUDE_SELF',relation:this.relation,filter:il(this).map(b=>b.map(c=>c.ph())),optional:this.T()};this.Pe&&(a.sort={property:this.Pe.Cc(),order:this.Pe.ew});return a}toString(){return`FollowRecursively Part: ${this.relation}`}toJSON(){return{type:'follow recursively',
|
|
1468
|
+
relation:`${this.db.name(this.relation)} (${this.relation.ka()})`,direction:this.relation.Bc()}}Sb(a){return a instanceof olympe.dc.query.xb.Rk&&this.relation.Sb(a.relation)&&this.O===a.O}};olympe.dc.query.xb.tH=class extends olympe.dc.query.xb.rh{observe(a,b){const c=this.ja();return(d,e,f,g)=>{d?vk(a,e,c,e):a.remove(e,c,e);b(d,e,e,g)}}};olympe.dc.query.xb.gI=class{constructor(a,b){this.db=a;this.origin=null;this.content=new Map;this.O=null!=b?b:null}yg(){return this.content.keys()}C(a){return this.content.has(a)&&null!==this.origin?[this.origin].values():[].values()}has(a){return this.content.has(a)}R(a){let b;return(null==(b=this.O)?void 0:b.call(this,a))||!1}D(a,b){null===this.origin&&(this.origin=b);const c=this.content.get(a);if(!c)return this.content.set(a,(new Map).set(b,1)),!0;let d;a=null!=(d=c.get(b))?d:0;c.set(b,a+1);return!1}remove(a,
|
|
1469
|
+
b){a===this.origin&&(this.origin=null);if(null===this.origin||!this.db.qc(a)||!b)return this.content.delete(a);var c=this.content.get(a);if(!c)return!1;const d=c.get(b);if(1<d)return c.set(b,d-1),!0;b=c.delete(b);if(0===c.size)return this.content.delete(a);if(b){c=new Set(c.keys());for(const e of c){if(this.origin===e)return!0;let f,g;for(const k of null!=(g=null==(f=this.content.get(e))?void 0:f.keys())?g:[])c.add(k)}return this.content.delete(a)}return!1}};olympe.dc.query.xb.gI.Aa=[olympe.dc.query.xb.rD];olympe.dc.query.xb.hL=class{constructor(){this.content=new Map}yg(){return this.content.keys()}C(a){let b,c;return null!=(c=null==(b=this.content.get(a))?void 0:b.keys())?c:[]}has(a){return this.content.has(a)}R(){return!1}D(a,b){let c=this.content.get(a);c||(c=new Map,this.content.set(a,c));let d;a=null!=(d=c.get(b))?d:0;c.set(b,a+1);return 0===a}remove(a,b){if(null===b)return this.content.delete(a);const c=this.content.get(a),d=null==c?void 0:c.get(b);if(1<d)return c.set(b,d-1),!1;let e;b=null!=
|
|
1470
|
+
(e=null==c?void 0:c.delete(b))?e:!1;0===(null==c?void 0:c.size)&&this.content.delete(a);return b}};olympe.dc.query.xb.hL.Aa=[olympe.dc.query.xb.rD];olympe.dc.query.xb.FD=class{constructor(){this.content=new Map}yg(){return this.content.keys()}C(a){let b,c;return null!=(c=null==(b=this.content.get(a))?void 0:b.values())?c:[]}has(a){return this.content.has(a)}R(){return!1}D(a,b){let c=this.content.get(a);c||(c=new Set,this.content.set(a,c));a=c.size;c.add(b);return a<c.size}remove(a,b){if(null===b)return this.content.delete(a);const c=this.content.get(a);let d;b=null!=(d=null==c?void 0:c.delete(b))?d:!1;0===(null==c?void 0:c.size)&&this.content.delete(a);
|
|
1471
|
+
return b}};olympe.dc.query.xb.FD.Aa=[olympe.dc.query.xb.rD];olympe.dc.sources={};olympe.dc.sources.Yy=class{ja(){}init(){}destroy(){}Ba(){return q(function*(){})}subscribe(){}};const ml=olympe.xa.Tc.lk.GET,nl=olympe.xa.Tc.lk.Vp,ol=olympe.xa.Tc.lk.Sg,pl=olympe.xa.Tc.lk.MK,ql=olympe.xa.Tc.Headers.Qy;function rl(a){const b=`/${olympe.ta.getParameter(olympe.dc.sources.pa.BC)}/:${'sourceId'}/:${'requestType'}`.replace(/\/+/g,'/').replace(/\/$/,'');Ed().catch(c=>a.V.error(`Error while starting the HTTP Service: ${c}`));a.V.debug(`Started HTTP service with path: ${b}`)}
|
|
1472
1472
|
function sl(a){Promise.reject('Try to close a route on a web server using the browser implementation.').catch(b=>{a.V.error(`An error occurred while stopping the data sources http service: ${b}`)})}function tl(a,b,c){0===a.D.size&&rl(a);a.D.set(b,c);return()=>{a.D.delete(b);0===a.D.size&&sl(a)}}function ul(a,b){return b instanceof olympe.xa.Zv?Ge(a.R,b,re(a.$).Fi()):Promise.reject('No http request to send')}
|
|
1473
|
-
function vl(a,b){var c=a.le(b.$f(),b.getType());if(!c)return Promise.reject(`No destination URL to send the query to destination: ${b.$f()}`);const d=b.Ae(),e=JSON.stringify(a.O.
|
|
1474
|
-
function wl(a,b){var c=a.le(b.$f(),b.getType());if(!c)return Promise.reject(`No destination URL to send the transaction to destination: ${b.$f()}`);const d=JSON.stringify(a.O.
|
|
1473
|
+
function vl(a,b){var c=a.le(b.$f(),b.getType());if(!c)return Promise.reject(`No destination URL to send the query to destination: ${b.$f()}`);const d=b.Ae(),e=JSON.stringify(a.O.gb(d));c=gd(c,nl,e,olympe.xa.Tc.ResponseType.JSON);hd(c,{['X-Source-Origin']:b.origin,[ql]:'application/json'});return ul(a,c).then(f=>(f=f.data)?a.O.W(f):olympe.dc.query.yi.$w(d))}
|
|
1474
|
+
function wl(a,b){var c=a.le(b.$f(),b.getType());if(!c)return Promise.reject(`No destination URL to send the transaction to destination: ${b.$f()}`);const d=JSON.stringify(a.O.gb(b.Ae()));c=gd(c,nl,d);hd(c,{['X-Source-Origin']:b.origin,[ql]:'application/json'});return ul(a,c).then(e=>Number.parseInt(e.data,10))}
|
|
1475
1475
|
olympe.dc.sources.FR=class{constructor(a,b,c,d,e,f){this.V=a;this.R=c;this.$=d;this.W=e;this.O=f;this.D=new Map;new olympe.j.ee('Http service of remote data provider');this.T=new Map;this.C=new Map;this.ca=new Map([[olympe.dc.Request.C.ir,olympe.Y.xf.ir],[olympe.dc.Request.C.er,olympe.Y.xf.cz],[olympe.dc.Request.C.Pr,olympe.Y.xf.cz],[olympe.dc.Request.C.dr,olympe.Y.xf.cz],[olympe.dc.Request.C.YF,olympe.Y.xf.XF],[olympe.dc.Request.C.aL,olympe.Y.xf.$K],[olympe.dc.Request.C.EH,olympe.Y.xf.DH],[olympe.dc.Request.C.Mt,
|
|
1476
1476
|
olympe.Y.xf.pG],[olympe.dc.Request.C.Xt,olympe.Y.xf.TRANSACTION]])}le(a,b){if(a===olympe.dc.uc.SERVER){var c;return null!=(c=Ee(this.R,this.ca.get(b)))?c:null}var d=this.T.get(a);if(!d){const e=this.W.zd(a);c=m=>{var n=null!=e?e:a;m=n instanceof olympe.dm.DataSource?n.Eo(m):xl(n,m);null===m&&this.V.error(`Impossible to build URL for data source ${n}`);return m};d=olympe.dc.sources.pa.At;const f=olympe.dc.sources.pa.Op,g=olympe.dc.sources.pa.Yv,k=olympe.dc.sources.pa.BC;let l;d=`${c(g)?'https':'http'}://${c(d)}:${null!=
|
|
1477
1477
|
(l=c(f))?l:c(g)?443:80}`+`/${c(k)}/${a}`.replace(/\/+/g,'/').replace(/\/$/,'');this.T.set(a,d)}return`${d}/${b}`}mh(a){var b=this.le(a.$f(),a.getType());if(!b)return Promise.reject(`No destination URL to send the status request to destination: ${a.$f()}`);b=jd(gd(b,ml),olympe.xa.Tc.ResponseType.JSON);hd(b,{['X-Source-Origin']:a.origin});return ul(this,b).then(c=>c.data)}uploadFileContent(a){const {tag:b,model:c,content:d}=a.Ae(),e=a.$f(),f=this.le(e,a.getType());if(!f)return Promise.reject(`No destination URL to upload the file. ${b}`);
|
|
@@ -1506,10 +1506,10 @@ return this}destroy(){return q(function*(){})}Pa(a,b){const c=b.ka(),d=new olymp
|
|
|
1506
1506
|
this.W.set(c,f),f.Mu().subscribe(l=>{l.Dv().then(m=>km(this,a,b,l,m)).catch(m=>{this.V.warn(`Error occurred while processing request from ${l.source()}: ${m}`);return l.ru(m instanceof Error?m:Error(m))})}))})}Ou(a){const b=this;return q(function*(){let c;yield null==(c=b.W.get(a.$f()))?void 0:c.Ou(a)})}Ka(a){const b=this.na.get(a);this.na.delete(a);if(a=b)null==(a=this.T.get(b))?a=0:(0<a.C&&--a.C,0===a.C?(a.V.debug(`Data subscription ${a.D} has more subscriber: unsubscribe`),a.O.unsubscribe(),a=
|
|
1507
1507
|
!0):(a.V.debug(`Data subscription ${a.D} has ${a.C} subscribers`),a=!1));a&&this.T.delete(b)}};class lm{constructor(a,b,c,d){this.V=a;this.D=b;this.C=0;this.O=c.subscribe(d).subscribe({next:e=>{olympe.Y.Od.Nh(b,e).catch(f=>a.error(`Error occurred while publishing a data notification: ${f}`))},error:e=>a.error(`Error occurred while trying to subscribe to topic ${b} for a datasource: ${e}`)})}subscribe(){this.C++;this.V.debug(`Data subscription ${this.D} has ${this.C} subscribers`);return this}}
|
|
1508
1508
|
olympe.dc.sources.jL.Aa=[olympe.dc.sources.Yy];const nm={OM:10,wG:11,mH:12,SK:13,QUERY_RESULT:14,FH:15,OG:16,uo:17,TK:18,NG:19,tw:20};function om(a,b){const c=new olympe.dc.transaction.al,d=new olympe.dc.transaction.al;b.forEach(e=>{const f=new Map(Array.from(Object.entries(e.p).map(([k,l])=>[k,a.C(l)]))),g=e.v?d:c;g.yf(e.t,e.s,f,e.m);e.r.forEach(k=>g.Rb(k.r,k.o,k.d))});a.ca.Oh(Sh(Th(d),olympe.dc.uc.SELF),{persist:!1});a.ca.Oh(Sh(Th(c),olympe.dc.uc.SELF))}
|
|
1509
|
-
olympe.dc.sources.Nf=class extends olympe.Y.Nf{constructor(a){super();this.ca=a;this.db=a.view;this.O=new Map}
|
|
1510
|
-
if(e.startsWith('blob:')||e.startsWith('stream:'))a=olympe.dc.WN().Oa(a),this.O.get(c).p[olympe.dm.File.urlProp.ka()]='stream://'+c,d.s=this.D(a)}a=d}return $e(b,a);case a instanceof olympe.dc.CloudObject:return $e(nm.wG,this.R(a.ka()));case a instanceof olympe.dc.nb:return $e(nm.SK,a.
|
|
1511
|
-
{r:a.getType(),o:a.origin,d:a.$f(),u:a.Ag(),c:this.D(a.Ae())});case a instanceof olympe.dc.transaction.Cw:return $e(nm.uo,{r:a.os(),p:this.D(a.Af())});case a instanceof olympe.dc.query.yi:return $e(nm.TK,a.
|
|
1512
|
-
a));return olympe.dc.CloudObject.get(d);case nm.wG:return olympe.dc.CloudObject.get(c);case nm.SK:return d=c.p.map(olympe.dc.query.
|
|
1509
|
+
olympe.dc.sources.Nf=class extends olympe.Y.Nf{constructor(a){super();this.ca=a;this.db=a.view;this.O=new Map}gb(a){a=super.gb(a);if(0<this.O.size){const b=Array.from(this.O.values());this.O.clear();return Object.assign($e(nm.OM,a),{i:b})}return a}W(a){return(null==a?void 0:a.t)===nm.OM&&Array.isArray(null==a?void 0:a.i)?(om(this,a.i),this.C(a.v)):this.C(a)}D(a){switch(!0){case a instanceof olympe.dm.File:var b=nm.mH;{const c=a.ka(),d={t:c};if(!this.O.has(c)&&(this.R(c),!this.db.Fl(c))){const e=a.get(olympe.dm.File.urlProp);
|
|
1510
|
+
if(e.startsWith('blob:')||e.startsWith('stream:'))a=olympe.dc.WN().Oa(a),this.O.get(c).p[olympe.dm.File.urlProp.ka()]='stream://'+c,d.s=this.D(a)}a=d}return $e(b,a);case a instanceof olympe.dc.CloudObject:return $e(nm.wG,this.R(a.ka()));case a instanceof olympe.dc.nb:return $e(nm.SK,a.gb());case a instanceof olympe.dc.zc:return $e(nm.QUERY_RESULT,a.gb(this.R.bind(this)));case a instanceof olympe.dc.db.Tf:return b=new olympe.dc.transaction.al,a.Yf(b),$e(nm.FH,{i:a.ja(),p:Th(b)});case a instanceof olympe.dc.Request:return $e(nm.OG,
|
|
1511
|
+
{r:a.getType(),o:a.origin,d:a.$f(),u:a.Ag(),c:this.D(a.Ae())});case a instanceof olympe.dc.transaction.Cw:return $e(nm.uo,{r:a.os(),p:this.D(a.Af())});case a instanceof olympe.dc.query.yi:return $e(nm.TK,a.gb());case a instanceof olympe.dc.fr:return $e(nm.NG,a.gb());case a instanceof olympe.dc.Lf:return $e(nm.tw,this.R(a.ka()));default:return super.D(a)}}C(a){if(null===a||'object'!==typeof a)return super.C(a);const {t:b,v:c}=a;switch(b){case nm.mH:var d=c.t;c.s&&(a=this.C(c.s),olympe.dc.WN().Pa(d,
|
|
1512
|
+
a));return olympe.dc.CloudObject.get(d);case nm.wG:return olympe.dc.CloudObject.get(c);case nm.SK:return d=c.p.map(olympe.dc.query.xb.qD.C),a=c.e,new olympe.dc.nb(c.b,c.s,d,d.length-1,new Set(c.r),{max:a.m,offset:a.o,Pi:a.s,Ll:a.rm});case nm.QUERY_RESULT:return Vk(c);case nm.FH:return(new olympe.dc.transaction.pw).C(c.p,c.i);case nm.OG:return a=null!=(d=this.C(c.c))?d:void 0,Nh(new olympe.dc.Request(c.r,c.d,a,c.u),c.o);case nm.uo:return d=this.C(c.p),new olympe.dc.transaction.Cw(d,c.r);case nm.TK:return olympe.dc.query.yi.C(c);
|
|
1513
1513
|
case nm.NG:return olympe.dc.fr.C(c);case nm.tw:return new olympe.dc.Lf(c);default:return super.C(a)}}R(a){if(this.O.has(a))return a;if(!this.db.qc(a))throw new olympe.dc.CK(a);const b={};this.db.ce(a).forEach((d,e)=>{b[e]=this.D(d)});var c=[];for(const [d,e,f]of wj(this.db,a))this.O.has(f)&&c.push(e===olympe.dc.Ib.DESTINATION?{r:d,o:a,d:f}:{r:d,o:f,d:a});c={t:a,m:this.db.model(a),s:this.db.source(a),p:b,r:c};this.db.Fl(a)||(c.v=!0);this.O.set(a,c);return a}};const pm=olympe.dc.Request.C.ir,qm=olympe.dc.Request.C.uo,rm=olympe.dc.Request.C.Xt,sm=olympe.dc.Request.C.Iv,tm=olympe.dc.Request.C.YF,um=olympe.dc.Request.C.aL,vm=olympe.dc.Request.C.Mt,wm=olympe.dc.Request.C.Nz,xm=olympe.dc.Request.C.EH,ym=olympe.dc.Request.C.vR,zm=olympe.dc.Request.C.wR,Am=olympe.dc.Request.C.xR,Bm=olympe.dc.Request.C.dr,Cm=olympe.dc.Request.C.er,Dm=olympe.dc.Request.C.Pr,Em=olympe.dc.Request.C.dz,Fm=olympe.dc.Request.C.eV,Gm=olympe.dc.Request.C.iU,Hm=olympe.dc.Request.C.zH,Im=
|
|
1514
1514
|
olympe.dc.Request.C.Jv,Jm=olympe.dc.Request.C.OQ,Km=olympe.dc.Request.C.Xf;function Lm(a){return Mm(a,olympe.dc.Request.C.ir).then(b=>{b=b.data.p;const c=Sh(b,a.ja());a.V.C()&&a.V.debug('< Get Context result',b);a.V.T()&&a.V.log('< Get Context result has',b.length,'operations');return c})}function Nm(a,b){const c=new olympe.dc.transaction.al({rk:!1,mu:!1}),d=b.Af(),e=b.C;d.Yf(c);return Om(a,qm,{i:d.ja(),r:b.os(),p:Th(c),bd:e?!0:void 0}).then(f=>f.ct)}
|
|
1515
1515
|
function Pm(a,b){const c=b.Af(),d=new olympe.dc.transaction.al({lB:!0,rk:!1,mu:!1});c.Yf(d);b=b.C?'bd=true':'';return Mm(a,rm,Th(d),b,olympe.xa.Tc.ResponseType.Zz).then(e=>{try{let f;return null!=(f=JSON.parse(e.data).ct)?f:Date.now()}catch(f){return Date.now()}}).finally(()=>{Qm(a,Em,{id:c.ja(),finalize:olympe.dc.transaction.wo.C.lw})})}
|
|
@@ -1518,7 +1518,7 @@ function Tm(a,b){const c=encodeURI(eb(olympe.la.Jj(),JSON.stringify(Um(a,b))));a
|
|
|
1518
1518
|
function Xm(a,b){if(!Ne(a.La))return a.V.error(`Server is disconnected, backup of instance ${b} is canceled.`),Promise.reject('Server is disconnected');b=Um(a,olympe.dc.nb.from(b));b.f=olympe.dc.Te.VG;b=gd(a.C.le(olympe.dc.uc.SERVER,tm),olympe.xa.Tc.lk.Vp,JSON.stringify(b),olympe.xa.Tc.ResponseType.$t);hd(b,{[olympe.xa.Tc.Headers.Qy]:olympe.xa.Tc.GG.JSON});return ul(a.C,b).then(c=>c.data)}
|
|
1519
1519
|
function Ym(a,b,c,d){if(!Ne(a.La))return a.V.error('Server is disconnected, restore of instance is canceled.'),Promise.reject('Server is disconnected');const e=a.C.le(olympe.dc.uc.SERVER,um);b=gd(e+`?debug=${c}&optional=${d}`,olympe.xa.Tc.lk.Vp,b);hd(b,{[olympe.xa.Tc.Headers.Qy]:olympe.xa.Tc.GG.BV});return ul(a.C,b).then(f=>f.data)}
|
|
1520
1520
|
function Om(a,b,c,d=!0){const e=olympe.Y.Dj.cr,f={c:b};Object.assign(f,c);if(d)return new Promise((g,k)=>{Qe(a.La,e,f,(l,m)=>{l?k(l):g(m)})});Qe(a.La,e,f);return Promise.resolve()}
|
|
1521
|
-
function Um(a,b){var c=pk(b);b={i:b.ja(),b:[b.D],m:!0,v:!0};if(c[0]instanceof olympe.dc.query.
|
|
1521
|
+
function Um(a,b){var c=pk(b);b={i:b.ja(),b:[b.D],m:!0,v:!0};if(c[0]instanceof olympe.dc.query.xb.rh)Object.assign(b,{f:c[0].bf,q:[]});else{const d=(k,l)=>{k.every(m=>!m.Sb(l))&&k.push(l);return k},e=new Map;for(let k=c.length-1;0<=k;k--){const l=c[k],m=l.C;let n;const p=d(null!=(n=e.get(m))?n:[],l);if(l instanceof olympe.dc.query.xb.Rk&&l.O){let r;null==(r=e.get(l.ja()))||r.forEach(t=>d(p,t))}e.set(m,p)}let f,g;c=null!=(g=e.get(null==(f=c[0])?void 0:f.C))?g:[];Object.assign(b,{f:olympe.dc.Te.NONE,
|
|
1522
1522
|
q:c.map(a.W.bind(a,e))})}return b}function Qm(a,b,c){b=Nh(new olympe.dc.Request(b,olympe.dc.uc.SELF,c),a.ja());let d;null==(d=a.Xe)||d.zh(b)}
|
|
1523
1523
|
function Mm(a,b,c,d,e){const f=a.C.le(a.ja(),b);if('string'!==typeof f)return Promise.reject(`ServerProvider: no url for type ${b}`);b=gd(`${f}${'string'===typeof d&&0<d.length?`?${d}`:''}`,void 0!==c?olympe.xa.Tc.lk.Vp:olympe.xa.Tc.lk.GET,c&&JSON.stringify(c));hd(b,{[olympe.xa.Tc.Headers.Qy]:'application/json'});jd(b,null!=e?e:olympe.xa.Tc.ResponseType.JSON);return ul(a.C,b)}
|
|
1524
1524
|
function Vm(a,b){return q(function*(){const c=b.headers.graphId,d=b.data;let e,f;return(null!=(f=null==(e=a.Oa)?void 0:yb(e,d))?f:olympe.la.stream.Gz.transform(b.data)).pipeThrough(new TransformStream({transform:(g,k)=>{a.V.debug(`Received ${g.length} operations for patch ${c}`);k.enqueue(Sh(g,a.ja(),null,c))}}))})}
|
|
@@ -1527,17 +1527,17 @@ olympe.dc.sources.NL=class extends olympe.dc.sources.aC{constructor(a,b,c,d,e,f,
|
|
|
1527
1527
|
olympe.dm.DataSource.Xf.we,b=olympe.dm.DataSource.Xf.Nt,Promise.resolve(Ne(this.La)?{s:b}:{s:a,r:'Disconnected'});case pm:return Lm(this);case qm:return Nm(this,c);case rm:return Pm(this,c);case sm:return Rm(this,c);case Im:return Sm(this,c);case vm:return d.get(olympe.dc.nb.C.fI)?Tm(this,c):Wm(this,c);case tm:return Xm(this,c);case um:return Ym(this,c.n4,c.debug,c.optional);case Fm:case Gm:case Hm:case Jm:return Om(this,b,{});case Cm:return this.C.downloadFileContent(a);case Bm:return this.C.deleteFileContent(a);
|
|
1528
1528
|
case Dm:return this.C.uploadFileContent(a);default:return Promise.reject(`ServerProvider: Message of type ${b} not supported yet`)}}ca(a,b){if(a.getType()===wm){const c=a.Ae(),d=c.ja();return(new rxjs.Observable(e=>{const f=Um(this,c);this.R.delete(d);this.O.set(d,e);Om(this,ym,f).catch(g=>e.error(g))})).pipe(vb(olympe.error.It,(e,f)=>{this.V.debug(`Subscribe to topic ${e.ja()} now that we are back online, after waiting for ${f}ms`);b()}),rxjs.operators.finalize(()=>{this.R.add(d);Om(this,zm,{i:d}).catch(e=>
|
|
1529
1529
|
{this.V.warn(`Fail to unsubscribe to graphdef ${d}: ${e}`)}).finally(()=>{this.R.has(d)&&this.O.delete(d);this.R.delete(d)})}))}return rxjs.throwError(()=>Error(`Subscription of type ${a.getType()} is not supported`))}init(a){super.init(a);Le(this.La,olympe.Y.Dj.cr,this.ea.bind(this));return this}destroy(){return q(function*(){})}ea(a,b){const c=olympe.dc.Request.C.eG,d=olympe.dc.Request.C.cD,e=a.c;if(e===olympe.dc.Request.C.Ty)Zm(this,a,b).then(f=>{Qm(this,e,f)});else if(e===c)b=this.T.C(a.p,a.i),
|
|
1530
|
-
b=Jh(b,a.ct),Qm(this,e,{rollback:b,error:a.error});else if(e===Am){const f=a.i;Zm(this,a,b).then(g=>{let k;null==(k=this.O.get(f))||k.next(g)})}else e===d&&Qm(this,Em,{id:a.i,finalize:olympe.dc.transaction.wo.C.cD,error:0<a.s?a.error:null})}W(a,b){if(b instanceof olympe.dc.query.
|
|
1530
|
+
b=Jh(b,a.ct),Qm(this,e,{rollback:b,error:a.error});else if(e===Am){const f=a.i;Zm(this,a,b).then(g=>{let k;null==(k=this.O.get(f))||k.next(g)})}else e===d&&Qm(this,Em,{id:a.i,finalize:olympe.dc.transaction.wo.C.cD,error:0<a.s?a.error:null})}W(a,b){if(b instanceof olympe.dc.query.xb.Rt){const c=b.relation;let d;b=null!=(d=a.get(b.ja()))?d:[];return{t:c.ka(),d:c.Bc()===olympe.dc.Ib.ORIGIN?1:2,v:!0,r:c.recursive,q:b.map(this.W.bind(this,a))}}return{}}};olympe.dc.sources.NL.Aa=[olympe.dc.sources.Yy];function $m(a,b,c){const d=new olympe.j.ee(`Source solver ${b.ka()}`);b.rc(olympe.dm.li.O.fe()).rc(olympe.dm.li.D).bj().back().rc(olympe.dm.li.C).bj().observe(d,{$g:c,kg:!0}).subscribe(e=>{e.wu().forEach(([f,g])=>{a.D.set(f.ka(),g.ja())});e.Eu().forEach(([f])=>{a.D.delete(f)})});b.rc(olympe.dm.gd.O).observe(d,{$g:c,kg:!0}).subscribe(e=>{let f,g;a.O=null!=(g=null==(f=e.Wd())?void 0:f.ja())?g:null});d.onDestroy(()=>{a.D.clear();a.O=null})}
|
|
1531
1531
|
olympe.dc.sources.Xz=class{constructor(a,b,c){this.db=a;this.C=b;this.T=c;this.D=new Map;this.O=null;this.R=!1}fromModel(a){a=olympe.dc.Ya(a);return this.D.has(a)?this.D.get(a):this.O&&this.W(a)?this.O:this.T}Lm(a){let b;return null!=(b=this.db.source(a))?b:this.T}zd(a){return a===this.C?olympe.dc.CloudObject.get(this.C):a===olympe.dc.uc.SERVER?olympe.dc.CloudObject.get(olympe.dm.DataSource.SERVER):this.db.qc(a)&&this.db.me(a,olympe.dm.DataSource)?olympe.dc.CloudObject.get(a):null}W(){return!1}init(){if(!this.R){this.R=
|
|
1532
1532
|
!0;var a=new olympe.dc.Vc;Z(a.create(olympe.dm.DataSource,this.C).ne(this.C),olympe.dm.DataSource.iu,!0);a.Rb(olympe.dm.DataSource.Dx,this.C,this.C);a.Ld(()=>{olympe.dc.nb.from(this.C).observe(olympe.j.Ko()).subscribe(()=>{})})}}};olympe.dc.sources.ba={Wb:'dc.sources.Logger',DC:'dc.sources.HTTPService',UR:'dc.sources.IOService',ZK:'dc.sources.RemoteProvider',sL:'dc.sources.ServerProvider',m1:'dc.sources.OfflineProvider',hl:'dc.sources.SourceSolver',gl:'dc.sources.Serializer',LG:'dc.sources.cache.Cache',MG:'dc.sources.cache.DATABASE',XB:'dc.sources.cache.Logger'};
|
|
1533
1533
|
olympe.dc.sources.pa={At:'data.httpHost',Op:'data.httpPort',Yv:'data.httpSSL',BC:'data.httpBasePath',oD:'data.pollingFrequency',gm:'data.communicationMode',wD:'data.restrictedUse',VERSION:'version.version',IL:'data.streamWorker',BK:'data.queryConcurrencyLimit'};olympe.dc.sources.Dt={XT:'olympe.internal.data.',At:'olympe.internal.data.httpHost',Op:'olympe.internal.data.httpPort',Yv:'olympe.internal.data.httpSSL'};
|
|
1534
1534
|
olympe.ta.af(function(a){const b=['localhost','127.0.0.1'],c=a.getParameter(olympe.xa.pa.XC),d=`-${olympe.host.Br.Kt}`;E(a,olympe.dc.sources.pa.At,null);E(a,olympe.dc.sources.pa.Op,null);E(a,olympe.dc.sources.pa.Yv,null);E(a,olympe.dc.sources.pa.BC,'runtime/data');E(a,olympe.dc.sources.pa.IL,!1);E(a,olympe.dc.sources.pa.BK,10);Xa(a,olympe.dc.sources.Dt.At,[olympe.host.pa.Qz,olympe.Y.pa.Uy,olympe.dc.sources.pa.At],(e,f,g)=>{if(g)return g;e=e===olympe.host.Br.Kt;return f.endsWith(c)&&e?f+d:f});Xa(a,
|
|
1535
|
-
olympe.dc.sources.Dt.Op,[olympe.dc.sources.Dt.At,olympe.dc.sources.pa.Op],(e,f)=>{if(f)return f;f=b.includes(e);const g=e.endsWith(d);e=e.endsWith(c);return f?3141:g?85:e?80:443});Xa(a,olympe.dc.sources.Dt.Yv,[olympe.dc.sources.Dt.Op,olympe.dc.sources.pa.Yv],(e,f)=>null!==f?f:443===e);E(a,olympe.dc.sources.pa.oD,null);E(a,olympe.dc.sources.pa.gm,null);E(a,olympe.dc.sources.pa.wD,null);C(a,olympe.dc.sources.ba.Wb,[olympe.
|
|
1535
|
+
olympe.dc.sources.Dt.Op,[olympe.dc.sources.Dt.At,olympe.dc.sources.pa.Op],(e,f)=>{if(f)return f;f=b.includes(e);const g=e.endsWith(d);e=e.endsWith(c);return f?3141:g?85:e?80:443});Xa(a,olympe.dc.sources.Dt.Yv,[olympe.dc.sources.Dt.Op,olympe.dc.sources.pa.Yv],(e,f)=>null!==f?f:443===e);E(a,olympe.dc.sources.pa.oD,null);E(a,olympe.dc.sources.pa.gm,null);E(a,olympe.dc.sources.pa.wD,null);C(a,olympe.dc.sources.ba.Wb,[olympe.fb.ba.Pb],e=>e.Yg('data'));A(a,olympe.dc.sources.ba.gl,olympe.dc.sources.Nf,olympe.dc.db.ba.Pb);
|
|
1536
1536
|
Ua(a,olympe.Y.ba.gl,olympe.dc.sources.ba.gl);A(a,olympe.dc.sources.ba.DC,olympe.dc.sources.FR,olympe.dc.sources.ba.Wb,olympe.xa.ba.PD,olympe.Y.ba.CC,olympe.ya.ba.Pb,olympe.dc.sources.ba.hl,olympe.Y.ba.gl,new olympe.ta.Db(olympe.Y.pa.SB));A(a,olympe.dc.sources.ba.UR,olympe.dc.sources.eI,olympe.dc.sources.ba.Wb,olympe.dc.ba.zr,olympe.xa.ba.Pb,olympe.ya.ba.Pb);A(a,olympe.dc.sources.ba.ZK,olympe.dc.sources.jL,olympe.dc.sources.ba.Wb,new olympe.ta.Db(olympe.dc.pa.Er),olympe.dc.sources.ba.DC,olympe.Y.ba.hm,
|
|
1537
|
-
olympe.dc.ba.it,olympe.dc.sources.ba.hl);A(a,olympe.dc.sources.ba.sL,olympe.dc.sources.NL,olympe.dc.sources.ba.Wb,olympe.Y.ba.Tt,olympe.Y.ba.hm,olympe.dc.sources.ba.DC,new olympe.ta.Db(olympe.dc.sources.pa.VERSION),new olympe.ta.Db(olympe.dc.sources.pa.BK),new olympe.ta.Db(olympe.dc.sources.pa.IL));A(a,olympe.dc.sources.ba.hl,olympe.dc.sources.Xz,olympe.dc.ba.it,new olympe.ta.Db(olympe.dc.pa.Er),new olympe.ta.Db(olympe.dc.pa.jC));C(a,olympe.dc.sources.ba.XB,[olympe.
|
|
1537
|
+
olympe.dc.ba.it,olympe.dc.sources.ba.hl);A(a,olympe.dc.sources.ba.sL,olympe.dc.sources.NL,olympe.dc.sources.ba.Wb,olympe.Y.ba.Tt,olympe.Y.ba.hm,olympe.dc.sources.ba.DC,new olympe.ta.Db(olympe.dc.sources.pa.VERSION),new olympe.ta.Db(olympe.dc.sources.pa.BK),new olympe.ta.Db(olympe.dc.sources.pa.IL));A(a,olympe.dc.sources.ba.hl,olympe.dc.sources.Xz,olympe.dc.ba.it,new olympe.ta.Db(olympe.dc.pa.Er),new olympe.ta.Db(olympe.dc.pa.jC));C(a,olympe.dc.sources.ba.XB,[olympe.fb.ba.Pb],e=>e.Yg('datacache'));
|
|
1538
1538
|
A(a,olympe.dc.sources.ba.LG,olympe.dc.sources.cache.Cache,olympe.dc.sources.ba.XB,olympe.dc.ba.zr,olympe.dc.sources.ba.MG,olympe.dc.db.ba.Pb,olympe.xa.ba.Pb,olympe.Y.ba.hm,olympe.Dc.ba.sz,olympe.la.ba.ar,new olympe.ta.Db(olympe.xa.pa.yK),new olympe.ta.Db(olympe.dc.sources.pa.VERSION));A(a,olympe.dc.sources.ba.MG,olympe.dc.sources.cache.Ez,olympe.Dc.ba.Hr,olympe.dc.sources.ba.XB,olympe.Dc.ba.qz)},'olympe.dc.sources');
|
|
1539
1539
|
olympe.ta.run([olympe.dc.sources.ba.hl,olympe.dc.sources.ba.LG],(a,b)=>{olympe.dc.Qj=()=>a;olympe.dc.sources.Kj=()=>b});olympe.dc.sources.cache={};olympe.dc.sources.cache.errors={};olympe.dc.sources.cache.errors.ID=class extends Error{constructor(a){super(a)}};olympe.dc.sources.cache.errors.VQ=class extends olympe.dc.sources.cache.errors.ID{};olympe.dc.sources.cache.errors.cV=class extends olympe.dc.sources.cache.errors.ID{};olympe.dc.sources.cache.errors.nV=class extends olympe.dc.sources.cache.errors.ID{};function an(a){switch(!0){case null===a:case void 0===a:return null;case 'string'===typeof a:case 'boolean'===typeof a:case 'number'===typeof a:return a}switch(a.t){case 1:return new Date(a.d);case 2:return olympe.j.Color.ke(a);case 17:return new olympe.dc.Lf(a.v);case 13:return(new olympe.dc.transaction.pw).C(a.v,a.i);default:throw Error(`Impossible to deserialize the following value: ${a}`);}}
|
|
1540
|
-
olympe.dc.sources.cache.TH=class{
|
|
1540
|
+
olympe.dc.sources.cache.TH=class{gb(a){switch(!0){case null===a:case void 0===a:return null;case 'string'===typeof a:case 'boolean'===typeof a:case 'number'===typeof a:return a;case a instanceof olympe.j.bc:return{t:1,d:a.valueOf().toISOString()};case a instanceof Date:return{t:1,d:a.toISOString()};case a instanceof olympe.j.Color:return Object.assign({t:2},a.toJSON());case a instanceof olympe.dc.Lf:return{t:17,v:a.ka()};case a instanceof olympe.dc.db.Tf:const b=new olympe.dc.transaction.al;a.Yf(b);
|
|
1541
1541
|
return{t:13,i:a.ja(),v:Th(b)};default:throw Error(`Impossible to serialize the following value: ${a}`);}}};function Tl(a,b,c){return q(function*(){bn(a,'queries',b);yield a.init();const d=a.D.has(c)?a.D.get(c):new Set;d.has(b)||(d.add(b),a.D.set(c,d),a.T.next(cn(a)));return dn(a.C,b,c)})}function Ul(a,b){return q(function*(){yield a.init();a.V.debug(`Cache: subtract pending transaction operations from ${b.ja()}`);b.T(a.O)})}
|
|
1542
1542
|
function Vl(a,b,c,d,e=!1){(()=>q(function*(){a.V.debug(`Cache: handle query ${b} graph patch: ${d.ja()}`);try{const f=null===b?[]:Array.from(a.D.entries()).filter(([,k])=>k.has(b)).map(([k])=>k),g=1===f.length&&'__code-as-data__'===f[0];if(null===b||!g||a.ca){a.V.debug('Cache: persist graph patch',d.ja());if(e&&b){const k=new Set(Array.from(d.yg()).filter(l=>!l.ei()).map(l=>l.tag()));yield en(a.C,[b],k)}yield fn(a.C,d,0<f.length?b:null);gn(a,d,c).catch(k=>{a.V.error(`Cache: Failed to download files of a graph patch: ${k}`)})}}catch(f){a.V.error(`Cache: Failed to handle graph patch ${d.ja()} with message: ${f}`),
|
|
1543
1543
|
a.Gb.next(f)}finally{b&&hn(a,'queries',b)}}))().then(()=>{})}function Wl(a,b,c,d,e=!1){return q(function*(){yield Ul(a,d);Vl(a,b,c,d,e)})}function jn(){var a=olympe.dc.sources.Kj();a.ca=!0;a.Pa=!0}function bn(a,b,c){const d=a.status.getValue();b in d||(d[b]={total:0,processed:0,values:new Set});d[b].total+=1;d[b].values.add(c);d.processing=!0;a.status.next(d)}
|
|
@@ -1557,7 +1557,7 @@ function zn(){const a=olympe.dc.sources.Kj();return q(function*(){var b=new Set;
|
|
|
1557
1557
|
function Bn(a){const b=olympe.dc.sources.Kj();return q(function*(){let c;try{c=JSON.parse(a)}catch(e){throw Error('Invalid pending changes, must be a JSON string');}var d=c.files;if(!Array.isArray(c.patches)||!Array.isArray(d))throw Error('Invalid pending changes, must contain a `patches` array and a `files` array');for(const e of c.files)d=b.Ba.D(e.c),yield on(b.C,e.t,d,e.m);yield Cn(b.C,c.patches);yield kn(b);b.Oa.Oh(Jh(b.O))})}
|
|
1558
1558
|
function Dn(){const a=olympe.dc.sources.Kj();return q(function*(){yield En(a.C);yield kn(a)})}
|
|
1559
1559
|
olympe.dc.sources.cache.Cache=class{constructor(a,b,c,d,e,f,g,k,l,m){this.V=a;this.Xe=b;this.C=c;this.Oa=d;this.nc=e;this.Ka=f;this.Ia=g;this.Ba=k;this.version=m;this.ca=this.version!==this.Ia.get('__code-as-data-version__');this.tb=this.Pa=!1;this.D=new Map;this.T=new rxjs.BehaviorSubject([]);this.R=null;this.ea=new rxjs.BehaviorSubject(!1);this.O=new olympe.dc.db.Tf;this.zb=this.pb=!1;this.na=[];this.$=0;this.hc=new rxjs.BehaviorSubject(!1);this.status=new rxjs.BehaviorSubject({processing:!1});
|
|
1560
|
-
this.W=!1;this.Gb=new rxjs.Subject;this.Qb=new olympe.la.promise.RL(l)}mh(){return this.status.asObservable()}init(){const a=this;return q(function*(){if(!a.pb)if(a.zb)yield new Promise(b=>{a.na.push(b)});else{a.zb=!0;(yield Fn(a.C)).forEach(b=>{a.D.set(b.name,new Set(b.Ni))});a.T.next(cn(a));yield kn(a);a.Oa.Oh(Jh(a.O));for(const b of a.na)b();a.pb=!0;a.na=[]}})}executeQuery(a){const b=this;return q(function*(){yield b.init();return pn(b,a.ja())&&pk(a).some(c=>c instanceof olympe.dc.query.
|
|
1560
|
+
this.W=!1;this.Gb=new rxjs.Subject;this.Qb=new olympe.la.promise.RL(l)}mh(){return this.status.asObservable()}init(){const a=this;return q(function*(){if(!a.pb)if(a.zb)yield new Promise(b=>{a.na.push(b)});else{a.zb=!0;(yield Fn(a.C)).forEach(b=>{a.D.set(b.name,new Set(b.Ni))});a.T.next(cn(a));yield kn(a);a.Oa.Oh(Jh(a.O));for(const b of a.na)b();a.pb=!0;a.na=[]}})}executeQuery(a){const b=this;return q(function*(){yield b.init();return pn(b,a.ja())&&pk(a).some(c=>c instanceof olympe.dc.query.xb.rh)?
|
|
1561
1561
|
Gn(b.C,a).then(olympe.la.stream.nN):b.C.executeQuery(a).then(olympe.la.stream.nN)})}applyTransaction(a,b){const c=this;return q(function*(){c.V.debug('Cache: apply transaction',a,b);yield c.init();const d=a.Af(),e=Array.from(d.je.keys());let f,g;const k=Array.from(null!=(g=null==(f=c.R)?void 0:f.C.je.keys())?g:[]);let l;b!==(null==(l=c.R)?void 0:l.D)||e.some(m=>!k.includes(m))?(yield Hn(c.C,d,b),c.R=new olympe.dc.sources.cache.TQ(d,b),c.ea.next(!0)):(d.Yf(c.R.C),yield Hn(c.C,c.R.C,b));d.Yf(c.O);yield fn(c.C,
|
|
1562
1562
|
d,'local-transaction')})}uploadFileContent(a,b,c){const d=this;return q(function*(){yield d.init();yield on(d.C,a,b,c);return`offline://${a}`})}downloadFileContent(a){const b=this;return q(function*(){yield b.init();return un(b.C,a).then(c=>c.content)})}deleteFileContent(a){const b=this;return q(function*(){yield b.init();yield In(b.C,[a])})}};olympe.dc.sources.cache.TQ=class{constructor(a,b){this.C=a;this.D=b}};olympe.dc.sources.cache.Cache.D='__code-as-data-version__';
|
|
1563
1563
|
olympe.dc.sources.cache.Cache.C='__code-as-data__';function Fn(a){return q(function*(){return(yield a.db.D('buckets')).map(b=>olympe.dc.sources.cache.ow.ke(b))})}function ln(a){return q(function*(){return(yield a.db.D('pending-transactions')).map(b=>{b=olympe.dc.sources.cache.Jt.ke(b);return an(b.C)})})}
|
|
@@ -1571,7 +1571,7 @@ function xn(a){return q(function*(){return(yield a.db.D('pending-transactions'))
|
|
|
1571
1571
|
function un(a,b){return q(function*(){const c=yield a.db.get('files',b);if(!c)throw Error(`File ${b} not found in offline cache database`);return olympe.dc.sources.cache.lD.ke(c)})}function An(a){return q(function*(){return a.db.D('pending-transactions')})}function Cn(a,b){return q(function*(){const c=new Map;for(const d of b){const e=olympe.dc.sources.cache.Jt.ke(d);e&&c.set(e.C.i,d)}yield a.db.W('pending-transactions',c)})}
|
|
1572
1572
|
function En(a){return q(function*(){return a.db.clear('pending-transactions').then(()=>{})})}
|
|
1573
1573
|
function Gn(a,b){return q(function*(){const c=b.zd();a.V.debug(`Offline DB: Executing query ${b.ja()} by ID with source ${c}`);const d=olympe.dc.query.yi.$w(b);var e=(yield a.db.ca('instances','queryIds',b.ja())).map(f=>olympe.dc.sources.cache.pk.ke(f));for(const f of e){if(f.source!==c)continue;e=olympe.dc.sources.cache.Ez.Ee(f);const g=Kn(f.Mi);d.create(f.tag,e,g);for(const k of f.nd)if(e=k.match(/^([a-z0-9]*)(<|>)([a-z0-9]*)$/)){const [,l,m,n]=e;e='<'===m;l===olympe.dc.Mf.uh&&!0===e||d.Rb(l,e?
|
|
1574
|
-
n:f.tag,e?f.tag:n)}}a.V.C()&&a.V.debug(`Offline DB: Data result for query ${b.ja()}`,d.Af().je.size,'instances',Array.from(d.Af().ci()).length,'relations');return d})}function Hn(a,b,c){b=a.T.
|
|
1574
|
+
n:f.tag,e?f.tag:n)}}a.V.C()&&a.V.debug(`Offline DB: Data result for query ${b.ja()}`,d.Af().je.size,'instances',Array.from(d.Af().ci()).length,'relations');return d})}function Hn(a,b,c){b=a.T.gb(b);a.V.debug(`save transaction in destination '${c}'`,JSON.stringify(b));return a.db.set('pending-transactions',(new olympe.dc.sources.cache.Jt(c,b,Date.now())).toJSON())}function Ln(a){return q(function*(){return a.db.na('pending-transactions')})}
|
|
1575
1575
|
function In(a,b,c){return q(function*(){b.forEach(d=>a.files.delete(d));yield a.db.T('files',b,c)})}
|
|
1576
1576
|
function Jn(a,b){var c={ud:!1};return q(function*(){return 0===b.size?Promise.resolve():a.db.C(()=>q(function*(){var d=olympe.dc.Ib.ORIGIN;const e=olympe.dc.Ib.DESTINATION;a.V.debug(`Offline DB: Removing related relations of ${b.size} deleted instances`);var f=new Map;for(const g of b.values()){let k,l;for(const m of null!=(l=null==(k=g)?void 0:k.nd)?l:[]){const n=m.substring(21);if(!b.has(n)){const p=`${m.substring(0,20)}${m.charAt(20)===d?e:d}${g.tag}`;let r;const t=null!=(r=f.get(n))?r:new Set;
|
|
1577
1577
|
t.add(p);f.set(n,t)}}}d=yield a.db.R('instances',Array.from(f.keys()),{ud:!1,wq:olympe.dc.sources.cache.pk.ke});for(const [g,k]of f.entries())(f=d.get(g))?f.nd=f.nd.filter(l=>!k.has(l)):(a.V.warn(`Instance ${g} not found when trying to remove related relations`),d.delete(g));yield a.db.W('instances',d,{ud:!1,wq:g=>g.toJSON()})}),{Cd:'removeRelatedRelations',ud:null==c?void 0:c.ud,Tj:!0})})}function Kn(a){return Object.entries(a).reduce((b,[c,d])=>b.set(c,an(d)),new Map)}
|
|
@@ -1579,27 +1579,27 @@ olympe.dc.sources.cache.Ez=class{constructor(a,b,c){this.R=`Olympe_Cache_${a}`;t
|
|
|
1579
1579
|
const k=e('pending-transactions',{keyPath:'patch.i'});k.createIndex('destination','destination');const l=e('failed-transactions',{keyPath:'timestamp'});e=e('files',{keyPath:'tag'});return Promise.all([f,g,k,l,e].map(m=>new Promise((n,p)=>{m.transaction.oncomplete=()=>n();m.transaction.onerror=()=>p(m.transaction.error)}))).then(()=>{})});this.C=new Set;this.D=[];this.files=null;this.db.Ba('files').then(d=>{this.files=new Set(d);this.D.forEach(e=>e(null))}).catch(d=>{this.D.forEach(e=>e(d))});this.O=
|
|
1580
1580
|
olympe.la.Promise.sA(()=>{const d=this;return q(function*(){if(!(0===d.C.size||0<(yield Ln(d))))if(0<d.db.Ia())d.O().then(()=>{}),d.V.debug('Offline DB GC: Postponing round while the stack is busy');else{d.V.debug(`Offline DB GC: Round with ${d.C.size} candidates`);var e=Date.now();yield d.db.C(()=>{const f=new Map;return d.db.R('instances',Array.from(d.C),{ud:!1}).then(g=>{for(const k of g.values()){g=olympe.dc.sources.cache.pk.ke(k);let l;0===(null==(l=g)?void 0:l.Ni.length)&&(d.V.debug(`Offline DB GC: Garbage collecting ${g.tag}`),
|
|
1581
1581
|
f.set(g.tag,g))}}).then(()=>q(function*(){if(0<f.size){const g=Array.from(f.keys());yield Promise.all([d.db.T('instances',g,{ud:!1}),In(d,g,{ud:!1})]);yield Jn(d,f)}}))},{Cd:'garbageCollector',Tj:!0}).then(()=>{});d.V.debug(`Offline DB GC: has taken ${Date.now()-e}ms to run`)}})},5E3)}static Ee(a){const b=new RegExp(`^(${olympe.dc.Mf.uh})>([a-z0-9]*)$`);for(const c of a.nd)if(a=c.match(b))return a[2];return null}executeQuery(a){const b=this;return q(function*(){const c=Date.now();b.V.debug(`Offline DB: Executing query ${a.ja()} with source ${a.zd()}`);
|
|
1582
|
-
const d=olympe.dc.query.yi.$w(a),e=a.zd();var f=yield b.db.get('instances',a.D),g=olympe.dc.sources.cache.pk.ke(f);if(!g)return d;f=new Map;const k=new Set([g.tag]);d.create(g.tag,olympe.dc.sources.cache.Ez.Ee(g),Kn(g.Mi));for(const p of pk(a))if(p instanceof olympe.dc.query.
|
|
1583
|
-
{if(!k.has(x))return b.V.warn(`Offline DB: Instance ${x} not found while processing query part, this should not happen`),Promise.resolve([]);const y=`${t.ka()}${t.Bc()}${x}`;return b.db.ca('instances','relations',y,{ud:!0}).then(B=>B.map(H=>olympe.dc.sources.cache.pk.ke(H))).then(B=>{w.set(x,B)})})).then(()=>w);for(const [x,y]of m){p instanceof olympe.dc.query.
|
|
1584
|
-
new Set,u.push(n));n.add(m)}l.add(m);k.has(m)||(k.add(m),n=olympe.dc.sources.cache.Ez.Ee(B),d.create(m,n,Kn(B.Mi)));r===olympe.dc.Mf.uh&&!0===g||d.Rb(r,g?m:x,g?x:m)}}}}else p instanceof olympe.dc.query.
|
|
1582
|
+
const d=olympe.dc.query.yi.$w(a),e=a.zd();var f=yield b.db.get('instances',a.D),g=olympe.dc.sources.cache.pk.ke(f);if(!g)return d;f=new Map;const k=new Set([g.tag]);d.create(g.tag,olympe.dc.sources.cache.Ez.Ee(g),Kn(g.Mi));for(const p of pk(a))if(p instanceof olympe.dc.query.xb.Rt){var l=p.relation;g=l.Bc()===olympe.dc.Ib.ORIGIN;const r=l.ka(),t=l.fe();l=new Set;f.set(p.ja(),l);const u=[f.has(p.C)?new Set(f.get(p.C)):new Set([a.D])];for(const v of u){const w=new Map;var m=yield Promise.all(Array.from(v).map(x=>
|
|
1583
|
+
{if(!k.has(x))return b.V.warn(`Offline DB: Instance ${x} not found while processing query part, this should not happen`),Promise.resolve([]);const y=`${t.ka()}${t.Bc()}${x}`;return b.db.ca('instances','relations',y,{ud:!0}).then(B=>B.map(H=>olympe.dc.sources.cache.pk.ke(H))).then(B=>{w.set(x,B)})})).then(()=>w);for(const [x,y]of m){p instanceof olympe.dc.query.xb.Rk&&p.O&&l.add(x);for(const B of y)if(m=B.tag,B.source===e){if(p instanceof olympe.dc.query.xb.Rk&&!l.has(m)){var n=u[u.length-1];n||(n=
|
|
1584
|
+
new Set,u.push(n));n.add(m)}l.add(m);k.has(m)||(k.add(m),n=olympe.dc.sources.cache.Ez.Ee(B),d.create(m,n,Kn(B.Mi)));r===olympe.dc.Mf.uh&&!0===g||d.Rb(r,g?m:x,g?x:m)}}}}else p instanceof olympe.dc.query.xb.rh&&b.V.warn(`Offline DB: Trying to execute a query ${a.ja()} on the Cache DB that contains a FollowRule part. This is not supported and designed not to happen.`);b.V.C()&&(b.V.debug(`Offline DB: Data result for query ${a.ja()}`,d.Af().je.size,'instances',Array.from(d.Af().ci()).length,'relations'),
|
|
1585
1585
|
b.V.debug(`Offline DB: Data result for query ${a.ja()} took ${Date.now()-c}ms to be executed`));return d})}};olympe.dc.sources.cache.ow=class{constructor(a,b){this.name=a;this.Ni=b}static ke(a){return a?new olympe.dc.sources.cache.ow(a.name,a.queryIds):null}toJSON(){return{name:this.name,queryIds:this.Ni}}};
|
|
1586
1586
|
olympe.dc.sources.cache.pk=class{constructor(a,b,c,d,e){this.tag=a;this.source=b;this.Mi=null!=c?c:{};this.nd=null!=d?d:[];this.Ni=null!=e?e:[]}static ke(a){return a?new olympe.dc.sources.cache.pk(a.tag,a.source,a.props,a.relations,a.queryIds):null}toJSON(){return{tag:this.tag,source:this.source,props:this.Mi,relations:this.nd,queryIds:this.Ni}}};
|
|
1587
1587
|
olympe.dc.sources.cache.Jt=class{constructor(a,b,c){this.D=a;this.C=b;this.timestamp=c}static ke(a){return a?new olympe.dc.sources.cache.Jt(a.destination,a.patch,a.timestamp):null}toJSON(){return{destination:this.D,patch:this.C,timestamp:this.timestamp}}};
|
|
1588
1588
|
olympe.dc.sources.cache.QT=class extends olympe.dc.sources.cache.Jt{constructor(a,b,c,d){super(a,b,c);this.error=d}static ke(a){return a?new olympe.dc.sources.cache.QT(a.destination,a.patch,a.timestamp,a.error):null}toJSON(){return{destination:this.D,patch:this.C,timestamp:this.timestamp,error:this.error}}};
|
|
1589
1589
|
olympe.dc.sources.cache.lD=class{constructor(a,b,c){this.tag=a;this.content=b;this.C=c}static ke(a){return a?new olympe.dc.sources.cache.lD(a.tag,a.content,a.mimetype):null}toJSON(){return{tag:this.tag,content:this.content,mimetype:this.C}}};function Mn(a,b){let c=a.W.get(b);c||(c=new Set(a.C.get(b).nd),a.W.set(b,c));return c}
|
|
1590
|
-
olympe.dc.sources.cache.UH=class{constructor(a,b){this.V=a;this.O=b;this.C=new Map;this.R=new Set;this.$=new Set;this.T=new olympe.dc.sources.cache.TH;this.W=new Map}yg(){this.R.forEach(a=>this.C.delete(a));Array.from(this.C.entries()).forEach(([a,b])=>{b||this.C.delete(a)});return this.C}yf(a,b,c){const d=this.C.get(a);d||this.$.add(a);var e;c=Array.from(null!=c?c:[]).reduce((k,l)=>{k[l[0]]=this.T.
|
|
1591
|
-
this.O||e.includes(this.O)||e.push(this.O);let g;b=new olympe.dc.sources.cache.pk(a,b,c,null!=(g=null==d?void 0:d.nd)?g:[],e);this.C.set(a,b)}qh(a,b){const c=this.C.get(a);if(c){var d;c.Mi=Array.from(b).reduce((e,[f,g])=>{null===g?delete e[f]:e[f]=this.T.
|
|
1590
|
+
olympe.dc.sources.cache.UH=class{constructor(a,b){this.V=a;this.O=b;this.C=new Map;this.R=new Set;this.$=new Set;this.T=new olympe.dc.sources.cache.TH;this.W=new Map}yg(){this.R.forEach(a=>this.C.delete(a));Array.from(this.C.entries()).forEach(([a,b])=>{b||this.C.delete(a)});return this.C}yf(a,b,c){const d=this.C.get(a);d||this.$.add(a);var e;c=Array.from(null!=c?c:[]).reduce((k,l)=>{k[l[0]]=this.T.gb(l[1]);return k},null!=(e=null==d?void 0:d.Mi)?e:{});let f;e=null!=(f=null==d?void 0:d.Ni)?f:[];null===
|
|
1591
|
+
this.O||e.includes(this.O)||e.push(this.O);let g;b=new olympe.dc.sources.cache.pk(a,b,c,null!=(g=null==d?void 0:d.nd)?g:[],e);this.C.set(a,b)}qh(a,b){const c=this.C.get(a);if(c){var d;c.Mi=Array.from(b).reduce((e,[f,g])=>{null===g?delete e[f]:e[f]=this.T.gb(g);return e},null!=(d=c.Mi)?d:{})}else this.V.warn(`Trying to update an instance (${a}) which do not exists in the cache database: ignoring.`)}D(a){this.R.add(a)}Rb(a,b,c){var d;const e=null!=(d=this.C.get(b))?d:new olympe.dc.sources.cache.pk(b,
|
|
1592
1592
|
'unknown',{},[],[]);var f;d=null!=(f=this.C.get(c))?f:new olympe.dc.sources.cache.pk(c,'unknown',{},[],[]);b=`${a}${olympe.dc.Ib.ORIGIN}${b}`;f=(g,k)=>{this.C.set(g.tag,g);const l=Mn(this,g.tag);l.has(k)||(g.nd.push(k),l.add(k));null===this.O||g.Ni.includes(this.O)||g.Ni.push(this.O)};f(e,`${a}${olympe.dc.Ib.DESTINATION}${c}`);f(d,b)}Zf(a,b,c){const d=this.C.get(b),e=this.C.get(c);c=`${a}${olympe.dc.Ib.DESTINATION}${c}`;a=`${a}${olympe.dc.Ib.ORIGIN}${b}`;b=(f,g)=>{const k=Mn(this,f.tag);if(k.has(g)){const l=
|
|
1593
1593
|
f.nd.indexOf(g);f.nd.splice(l,1);k.delete(g)}};d&&b(d,c);e&&b(e,a)}};olympe.dc.sources.cache.UH.Aa=[olympe.dc.eu];olympe.dc.transaction={};olympe.dc.Kv=class a{constructor(b,c){this.id=null!=b?b:olympe.la.cf();this.D=new olympe.j.ee('BurstTransaction#'+this.id,c);this.Pa=Nn(this);this.W=!1;this.D.onDestroy(()=>this.T());this.$=new Set;this.O=new Map;this.R=new Set;this.C=null;let d;this.Ia=null!=(d=olympe.ta.getParameter(olympe.dc.transaction.pa.dG))?d:30;this.na=[]}static C(b,c){return`${b},${c}`}tb(b){for(const c of this.na)c(b);this.stop()}Oa(){null!==this.C&&(clearTimeout(this.C),this.C=null);const b=this.ea(this.R);0<b.size&&On(this,
|
|
1594
1594
|
b,!1);this.R.clear()}ea(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}ca(b,c,d){this.Ba(b,c,d);this.Pa(b,c,d);null===this.C&&(this.C=setTimeout(this.Oa.bind(this),this.Ia))}Ba(b,c,d){b=a.C(b,c);this.O.set(b,d);this.R.add(b)}Ka(b,c){return this.O.get(a.C(b,c))}push(b,c){const d=olympe.dc.Ya(b);b=c.subscribe(e=>{for(const [f,g]of e)e=olympe.dc.Ya(f),this.Ka(d,e)!==g&&this.ca(d,e,g.valueOf())});this.$.add(b)}complete(){return new Promise((b,
|
|
1595
|
-
c)=>{this.T((d,e)=>{for(const f of this.$)f.unsubscribe();d?b():c(e)})})}update(b,c,d){const e=olympe.dc.Ya(b),f=olympe.dc.Ya(c);void 0===e||void 0===f?olympe.
|
|
1595
|
+
c)=>{this.T((d,e)=>{for(const f of this.$)f.unsubscribe();d?b():c(e)})})}update(b,c,d){const e=olympe.dc.Ya(b),f=olympe.dc.Ya(c);void 0===e||void 0===f?olympe.fb.wb('dc').error('Burst transaction: instance tag or property tag is undefined'):(this.D.run(()=>{olympe.j.Jl([d],g=>{this.W=!0;if(g instanceof olympe.dc.Lf)olympe.fb.wb('dc').error('Cannot send complex property values in burst transactions');else{var k;this.ca(e,f,null!=(k=null==g?void 0:g.valueOf())?k:null)}})}),this.D.Ve(()=>{this.T()}))}stop(){this.D.destroy();
|
|
1596
1596
|
this.na.length=0}getContext(){return this.D}ja(){return this.id}os(){return!1}T(b){if(this.W){this.W=!1;null!==this.C&&(clearTimeout(this.C),this.C=null);this.R.clear();const c=this.ea(new Set(this.O.keys()));On(this,c,!0,b)}else null==b||b(!0)}toString(){return'Burst transaction #'+this.id}};olympe.dc.Kv.prototype.complete=olympe.dc.Kv.prototype.complete;olympe.dc.Kv.prototype.push=olympe.dc.Kv.prototype.push;olympe.dc.hh=class{C(){}toString(){}};olympe.dc.hh.C=1;olympe.dc.hh.D=2;olympe.dc.hh.R=3;olympe.dc.hh.O=4;olympe.dc.hh.T=5;olympe.dc.transaction.pw=class a{constructor(b){this.O=null!=b?b:olympe.dc.uc.SERVER}static C(b){const c=new Map;for(const [d,e]of Object.entries(b)){b=d;let f=typeof e;20<b.length&&b.startsWith('fd')&&(b=olympe.dc.oi.xj+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':case 'boolean':case 'number':c.set(b,e);break;case '4':c.set(b,new Date(Date.UTC(e.y,e.M-1,e.d,e.h,e.m,
|
|
1597
1597
|
e.s,e.S)));break;case '5':c.set(b,new Date(Date.UTC(e.y,e.M-1,e.d)));break;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.Lf(e.t));break;case 'untyped':null===e&&c.set(b,null)}}return c}C(b,c){return this.D(b,new olympe.dc.db.Tf(c))}D(b,c){for(const d of b)switch(d.o){case olympe.dc.hh.C:b=a.C(d.p||{});let e;c.yf(d.t,null!=(e=d.s)?e:this.O,b,d.m);break;case olympe.dc.hh.D:c.qh(d.t,
|
|
1598
1598
|
a.C(d.p),d.m);break;case olympe.dc.hh.R:c.D(d.t,d.f,d.m);break;case olympe.dc.hh.O:c.Rb(d.m,d.l,d.r,d.lm,d.rm);break;case olympe.dc.hh.T:c.Zf(d.m,d.l,d.r,d.lm,d.rm);break;default:throw Error('Undefined patch operation: '+d.o);}return c}};function Pn(a,b){let c;return null!=(c=a.sources.get(b))?c:a.R.Lm(b)}function Qn(a,b){let c,d,e;return null!=(e=null!=(d=null==(c=a.C.lh(b))?void 0:c.Qe())?d:a.db.model(b))?e:null}function Rn(a,b){let c;return null!=(c=a.O.get(b))?c:a.db.Fl(b)||!a.db.qc(b)}function Sn(a,b){0===a.O.size?a.O=b:b.forEach((c,d)=>a.O.set(d,c))}function Tn(a){return Array.from(a.C.yg()).filter(b=>!b.ei()).map(b=>b.tag())}function Un(a){return Array.from(a.C.yg()).filter(b=>b.ei()).map(b=>b.tag())}
|
|
1599
1599
|
function Vn(a,b,c,d){d(a.C);c&&!a.T&&b!==olympe.dc.uc.SELF&&(c=a.D.get(b),c||(c=new olympe.dc.db.Tf(a.id),a.D.set(b,c)),d(c))}function Wn(a,b,c){const d=Pn(a,b),e=Rn(a,b),f=Qn(a,b);Vn(a,d,e,g=>{g.D(b,c,f)})}
|
|
1600
1600
|
olympe.dc.transaction.bU=class{constructor(a,b,c){this.id=null!=c?c:olympe.la.cf();this.R=b;this.db=a;this.D=new Map;this.C=new olympe.dc.db.Tf(this.id);this.sources=new Map;this.O=new Map;this.T=!1}Ii(){return 0===this.C.je.size}Sc(){return this.D.size}yf(a,b,c,d){let e;const f=null!=(e=null!=c?c:this.sources.get(a))?e:this.R.fromModel(b);c=Rn(this,a);this.sources.set(a,f);Vn(this,f,c,g=>{g.yf(a,f,d,b)})}qh(a,b){const c=Pn(this,a),d=Rn(this,a),e=Qn(this,a);Vn(this,c,d,f=>{f.qh(a,null!=b?b:new Map,
|
|
1601
|
-
e)})}Rb(a,b,c){const d=Pn(this,b),e=Pn(this,c);var f=Rn(this,b)&&Rn(this,c)&&d!==olympe.dc.uc.SELF&&e!==olympe.dc.uc.SELF;f&&d!==e&&a!==olympe.dc.Mf.uh&&(f=g=>{let k;return null!=(k=olympe.dc.eb().name(g))?k:g},olympe.
|
|
1602
|
-
b),e=Pn(this,c);let f=Rn(this,b)&&Rn(this,c)&&d!==olympe.dc.uc.SELF&&e!==olympe.dc.uc.SELF;f&&d!==e&&a!==olympe.dc.Mf.uh&&(olympe.
|
|
1601
|
+
e)})}Rb(a,b,c){const d=Pn(this,b),e=Pn(this,c);var f=Rn(this,b)&&Rn(this,c)&&d!==olympe.dc.uc.SELF&&e!==olympe.dc.uc.SELF;f&&d!==e&&a!==olympe.dc.Mf.uh&&(f=g=>{let k;return null!=(k=olympe.dc.eb().name(g))?k:g},olympe.fb.wb('dc').warn(`Try to create a relation between 2 objects that have different locations: \n ${f(b)} (${b})-[${f(a)} (${a})]->${f(c)} (${c}), originSrc: ${f(d)} (${d}), destinationSrc: ${f(e)} (${e})`),f=!1);Vn(this,d,f,g=>{g.Rb(a,b,c,Qn(this,b),Qn(this,c))})}Zf(a,b,c){const d=Pn(this,
|
|
1602
|
+
b),e=Pn(this,c);let f=Rn(this,b)&&Rn(this,c)&&d!==olympe.dc.uc.SELF&&e!==olympe.dc.uc.SELF;f&&d!==e&&a!==olympe.dc.Mf.uh&&(olympe.fb.wb('dc').warn(`Try to delete a relation between 2 objects that have different locations: ${b}-[${a}]->${c}`),f=!1);Vn(this,d,f,g=>{g.Zf(a,b,c,Qn(this,b),Qn(this,c))})}};function Xn(a,b,c){const d=Object.create(null);if(!b)return d;for(const f of Array.from(b.keys()).sort()){let g=f;var e=b.get(f);if(g===olympe.dc.jI.Gr)if(e===olympe.dc.uc.SELF)d[g]=olympe.dc.eb().ja();else{if(e===olympe.dc.uc.SERVER)continue}else g.startsWith(olympe.dc.oi.xj)&&(g='fd'+g.substring(1));e=a.W(e);c&&e instanceof Object&&8===e.c?a.T.set(g,e):d[g]=e}return d}function Yn(a){if(0===a.T.size)return null;const b=Object.create(null);a.T.forEach((c,d)=>{b[d]=c});a.T.clear();return b}
|
|
1603
1603
|
class Zn{constructor(){this.T=new Map}W(a){return a instanceof olympe.j.kb||a instanceof olympe.j.ia||a instanceof olympe.j.aa?a.valueOf():a instanceof Date||a instanceof olympe.j.bc?(a=a instanceof olympe.j.bc?a.valueOf():a,{c:4,y:a.getUTCFullYear(),M:a.getUTCMonth()+1,d:a.getUTCDate(),h:a.getUTCHours(),m:a.getUTCMinutes(),s:a.getUTCSeconds(),S:a.getUTCMilliseconds(),z:0}):a instanceof olympe.j.Color?{c:7,r:a.El().valueOf(),g:a.Dl().valueOf(),b:a.sl().valueOf(),a:a.rl().valueOf()}:a&&'function'===
|
|
1604
1604
|
typeof a.ka?{c:8,t:a.ka()}:a}}function Th(a){const b=a.R.concat(a.O).concat(a.T).concat(a.C).concat(a.W);a.T=[];a.O=[];a.C=[];a.W=[];a.R=[];return b}
|
|
1605
1605
|
olympe.dc.transaction.al=class{constructor({lB:a=!1,mu:b=!0,rk:c=!0}={}){this.T=[];this.O=[];this.C=[];this.W=[];this.R=[];this.lB=null!=a?a:!1;this.rk=null!=c?c:!0;this.mu=null!=b?b:!0;this.$=olympe.j?new Zn:new class extends Zn{W(d){return d&&'function'===typeof d.ka?{c:8,t:d.ka()}:d}}}flush(){return JSON.stringify(Th(this))}yf(a,b,c,d=null){c=Xn(this.$,null!=c?c:null,this.lB);c={o:olympe.dc.hh.C,t:a,p:c};this.mu&&(c.s=b);this.rk&&d&&(c.m=d);this.T.push(c);this.lB&&(b=Yn(this.$))&&this.C.push({o:olympe.dc.hh.D,
|
|
@@ -1611,13 +1611,13 @@ olympe.dc.Vc=class{constructor(a){this.id=null!=a?a:olympe.la.cf();this.ac=[];th
|
|
|
1611
1611
|
b));const c=b.ka();this.O.set(c,olympe.dc.Ya(a));let d;this.persist(c,null!=(d=this.D.get(c))?d:this.$);return b}persist(a,b=!0){const c=olympe.dc.Ya(a);var d=olympe.dc.eb();this.D.set(c,b);if(b){let f;b=null!=(f=this.O.get(c))?f:d.model(c);if(null===b)throw Error(`Try to persist an instance that does not exist: ${c}`);var e;d=null!=(e=d.source(a))?e:olympe.dc.Qj().fromModel(b);ao(this,new olympe.dc.transaction.ac.cU(c,d))}else{if((e=d.qc(c))&&d.Fl(c))throw Error(`Try to remove persistence of an instance already persisted: ${c}`);
|
|
1612
1612
|
if(!e&&!this.O.has(c))throw Error(`Try to remove persistence of an instance that does not exist and is not part of the transaction: ${c}`);}return this}delete(a,b=olympe.dc.Te.Sg){ao(this,new olympe.dc.transaction.ac.YG(a,b))}update(a,b,c){return ao(this,new olympe.dc.transaction.ac.pV(a,b,c))}Rb(a,b,c){ao(this,new olympe.dc.transaction.ac.fC(a,b,c))}Zf(a,b,c){ao(this,new olympe.dc.transaction.ac.gR(a,b,c))}hE(a,b){ao(this,new olympe.dc.transaction.ac.XG(a,b))}defineProperty(a,b,c,d,e,f){d=this.create(olympe.dm.Property,
|
|
1613
1613
|
f);Z(d,olympe.dc.CloudObject.nameProp,c||'');void 0!==e&&this.update(a,olympe.dc.oi.xj+d.ka(),e);this.Rb(olympe.dc.CloudObject.propertyRel,a,d);this.Rb(olympe.dm.Property.typeRel,d,b);this.Rb(olympe.dc.CloudObject.containsRel,a,d);return d}fN(a,b,c='',{u3:d=olympe.dm.Relation.R.JT,F3:e=olympe.dm.Relation.C.jU,A3:f=olympe.dm.Relation.C.CQ,f4:g=olympe.dm.Relation.C.WH,p3:k=olympe.dm.NB.NONE,c4:l=olympe.dm.Relation.T|k}={},m=olympe.la.cf()){c=Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(this.create(olympe.dm.Relation,m),olympe.dc.CloudObject.nameProp,
|
|
1614
|
-
c||''),olympe.dm.Relation.D,d),olympe.dm.Relation.O,l),olympe.dm.Relation.ea,e),olympe.dm.Relation.Ba,e),olympe.dm.Relation.ca,e),olympe.dm.Relation.$,f),olympe.dm.Relation.na,g),olympe.dm.Relation.Oa,olympe.dm.Relation.C.WH),olympe.dm.Relation.W,k);this.Rb(olympe.dc.CloudObject.Cx,a,c);this.Rb(olympe.dm.Relation.destinationModelRel,c,b);this.Rb(olympe.dc.CloudObject.containsRel,a,c);return c}os(){return!1}YD(a){this.ca.push(olympe.j.
|
|
1614
|
+
c||''),olympe.dm.Relation.D,d),olympe.dm.Relation.O,l),olympe.dm.Relation.ea,e),olympe.dm.Relation.Ba,e),olympe.dm.Relation.ca,e),olympe.dm.Relation.$,f),olympe.dm.Relation.na,g),olympe.dm.Relation.Oa,olympe.dm.Relation.C.WH),olympe.dm.Relation.W,k);this.Rb(olympe.dc.CloudObject.Cx,a,c);this.Rb(olympe.dm.Relation.destinationModelRel,c,b);this.Rb(olympe.dc.CloudObject.containsRel,a,c);return c}os(){return!1}YD(a){this.ca.push(olympe.j.yb().re(a))}Ld(a,b){fo(olympe.dc.xx(),this,eo(this,a),b)}iE(a){a=
|
|
1615
1615
|
eo(this,a);go(olympe.dc.xx(),this,a,!0)}toString(){return`Transaction #${this.id}`}};olympe.dc.Vc.Aa=[olympe.dc.hh];function Nn(a){var b=olympe.dc.xx();const c=a.ja();b.R.set(c,a);return(d,e,f)=>{const g=new olympe.dc.db.Tf(c);g.qh(d,(new Map).set(e,f),b.db.model(d));b.C.Oh(Jh(g,Infinity))}}
|
|
1616
1616
|
function On(a,b,c,d){var e=olympe.dc.xx();const f=olympe.dc.Request.C.Iv,g=olympe.dc.Request.C.Jv,k=a.ja();a=a.os();const l=new Map;for(const m of b.keys()){const n=e.db.source(m);if(n===olympe.dc.uc.SELF||!e.db.Fl(m))continue;let p=l.get(n);p||(p=new olympe.dc.db.Tf(k),l.set(n,p));p.qh(m,b.get(m),e.db.model(m))}for(const [m,n]of l)b=new olympe.dc.Request(c?g:f,m,new olympe.dc.transaction.Cw(n,a)),b=Ih(e.Xe,b).catch(p=>null==d?void 0:d(!1,`${p}`)),c&&b.then(p=>{e.C.Oh(Jh(n,p));null==d||d(!0)})}
|
|
1617
1617
|
function fo(a,b,c,d){if(d){const e=b.ja();a.D.set(e,c);go(a,b,(f,g)=>{f||(a.D.delete(e),c(f,g))},!1)}else go(a,b,c,!1)}function ho(a){const b=olympe.dc.Request.C.dz;Rh(a.Xe,olympe.dc.Request.C.eG,c=>{var d=c.Ae();c=d.rollback;d=d.error;const e=c.ja(),f=a.R.get(e);void 0!==f&&(a.R.delete(e),f.tb(d));a.C.Oh(c);a.V.warn(`Burst update (id=${e}) has been refused and is rolled back. Error: ${d}`)});Rh(a.Xe,b,c=>{c=c.Ae();io(a,c.id,c.finalize,c.error)})}
|
|
1618
1618
|
function jo(a,b,c){if(!c)throw Error('Transaction compiler id is required');a.Ba.has(c)||a.ca.push(b);return a}
|
|
1619
1619
|
function go(a,b,c,d=!1){const e=b.ja(),f=new olympe.dc.transaction.bU(a.db,a.na,e);try{b.C(f)}catch(r){if(r instanceof olympe.dc.vK){r.C.then(()=>go(a,b,c,d));return}c(!1,r.message);return}if(f.Ii()){c(!0);var g;null==(g=a.D.get(e))||g(!0);a.D.delete(e)}else{a.O.set(e,[]);var k=Tn(f);a.C.sk(k,olympe.dc.db.Instance.C.TRANSACTION);g=k.filter(r=>Rn(f,r));var l=Un(f).filter(r=>a.db.Fl(r)&&a.db.me(r,olympe.dm.File)&&a.db.source(r)!==olympe.dc.uc.SERVER).map(r=>[r,a.db.model(r),a.db.source(r)]),m=Ri(a.C,
|
|
1620
|
-
f.C,g),n=olympe.j.
|
|
1620
|
+
f.C,g),n=olympe.j.yb().re((r,t)=>c(null!==r,t)),p=[m,n];ko(a,f,g).then(r=>{p.splice(1,0,r);lo(a,e,k,f.Sc()+1);return mo(a,f.D,d,b.os(),b.T)}).then(r=>Promise.allSettled(l.map(([t,u,v])=>a.T.Ba(t,u,v))).then(t=>{t.forEach(u=>{'rejected'===u.status&&a.V.warn('Some binary files have not been deleted after the transaction:',u.reason)});return r})).then(r=>{p.forEach(t=>t(r));io(a,e,olympe.dc.transaction.wo.C.lw)}).catch(r=>{a.V.error(r);p.forEach(t=>t(null,`${r}`));no(a,e)})}}
|
|
1621
1621
|
function ko(a,b,c){const d=b.C,e=olympe.dm.File.urlProp.ka();c=c.filter(n=>{let p;return a.db.me(n,olympe.dm.File)&&void 0!==(null==(p=d.lh(n))?void 0:p.Cc(e))}).map(olympe.dc.CloudObject.get);if(0===c.length)return Promise.resolve(()=>{});const f=olympe.dm.File.C.ka(),g=olympe.dm.File.modificationDateProp.ka(),k=Array.from(b.D.values()),l=[],m=olympe.la.Jj();return Promise.all(c.map(n=>{const p=n.get(e);if(p.startsWith('blob:'))return m.O(p).then(r=>new Promise((t,u)=>{if(null===r)URL.revokeObjectURL(p),
|
|
1622
1622
|
t();else{var v=n.ka(),w,x=null!=(w=n.get(olympe.dm.File.mimeTypeProp))?w:'application/data';a.T.na(v,r,x,y=>{const B=k.reduce((H,G)=>H||G.lh(v),null);null!==B&&(y=(new Map).set(e,y).set(f,!0).set(g,new Date),B.mA(y),l.push([v,y]));URL.revokeObjectURL(p);t()},u)}}));2048<p.length&&a.V.error('Trying to create a file with an URL longer than 2048. It likely is a data url and should be an object url. File tag:',n.ka());return Promise.resolve([])})).then(()=>{const n=l.reduce((p,[r,t])=>{p.qh(r,t);return p},
|
|
1623
1623
|
new olympe.dc.db.Tf);return Ri(a.C,n)})}function lo(a,b,c,d){const e=olympe.j.Ko(),f=new olympe.async.Jz(e);0<a.W&&f.HB(a.W);const g=olympe.dc.transaction.wo.C.DT;let k=!0;const l=a.O.get(b);for(let m=0;m<d;m++)f.add((n,p)=>{l.push(e.re((r,t)=>{k&&(k=r!==g);t?p(t):n()}))});Jd(f,(m,n)=>{m||a.V.warn(`An error occurred while processing the notification of transaction (${b}): ${n}.`);k&&a.C.detach(c,olympe.dc.db.Instance.C.TRANSACTION);no(a,b)});f.start()}
|
|
@@ -1625,7 +1625,7 @@ function mo(a,b,c,d,e){if(c&&olympe.j.Qa(a.ea.state)!==olympe.ya.Ec.C.Tn)return
|
|
|
1625
1625
|
function no(a,b){var c;null==(c=a.O.get(b))||c.forEach(d=>{d(olympe.dc.transaction.wo.C.lw,null)});a.O.delete(b);if(0===a.O.size){for(const d of a.$)d();a.$=[]}a.D.has(b)&&(c=a.D.get(b),a.D.delete(b),c(!0))}
|
|
1626
1626
|
olympe.dc.transaction.wo=class{constructor(a,b,c,d,e,f,g){this.V=a;this.C=b;this.db=b.view;this.Xe=c;this.na=d;this.T=e;this.ea=f;this.W=g.get('notificationTimeout');this.ca=[];let k;this.Ba=new Set(null!=(k=g.get('disabledCompilers'))?k:[]);this.R=new olympe.la.Yt(g.get('burstHoldTime'));this.O=new Map;this.$=[];this.D=new Map;this.Oa=new olympe.la.promise.Wt;ho(this)}xk(a){this.Oa.C(()=>Ih(this.Xe,new olympe.dc.Request(olympe.dc.Request.C.zH,olympe.dc.uc.SERVER)).then(b=>{a(b.ids,b.undo_stack_size,
|
|
1627
1627
|
b.redo_stack_size)}).catch(b=>this.V.error('Failed to process get stack request',b))).then(()=>{})}};olympe.dc.transaction.wo.C={cD:0,lw:1,DT:2};olympe.dc.transaction.Cw=class{constructor(a,b=!1,c=!1){this.D=a;this.O=b;this.C=c}os(){return this.O}Af(){return this.D}};olympe.dc.transaction.ba={Wb:'dc.transaction.Logger',Pb:'dc.transaction.Manager'};olympe.dc.transaction.pa={oK:'dc.transaction.timeout',dG:'dc.transaction.burstInterval',lC:'dc.transaction.disabledCompilers'};
|
|
1628
|
-
olympe.ta.af(function(a){E(a,olympe.dc.transaction.pa.oK,9E4);E(a,olympe.dc.transaction.pa.dG,30);E(a,olympe.dc.transaction.pa.lC,[]);C(a,olympe.dc.transaction.ba.Wb,[olympe.
|
|
1628
|
+
olympe.ta.af(function(a){E(a,olympe.dc.transaction.pa.oK,9E4);E(a,olympe.dc.transaction.pa.dG,30);E(a,olympe.dc.transaction.pa.lC,[]);C(a,olympe.dc.transaction.ba.Wb,[olympe.fb.ba.Pb],b=>b.Yg('dc'));C(a,'olympe.dc.transaction.Config',[new olympe.ta.Db(olympe.dc.transaction.pa.oK),new olympe.ta.Db(olympe.dc.transaction.pa.lC),new olympe.ta.Db(olympe.dc.db.pa.ZB)],(b,c,d)=>new Map([['notificationTimeout',b],['disabledCompilers',c],['burstHoldTime',d]]));A(a,olympe.dc.transaction.ba.Pb,olympe.dc.transaction.wo,
|
|
1629
1629
|
olympe.dc.transaction.ba.Wb,olympe.dc.db.ba.Pb,olympe.dc.ba.zr,olympe.dc.sources.ba.hl,olympe.dc.ba.bz,olympe.ya.ba.Pb,'olympe.dc.transaction.Config')},'olympe.dc.transaction');olympe.dc.transaction.ac={};function oo(a,b){const c=new Map;for(const [d,e]of b)c.set(d,a.Qa(e));return c}olympe.dc.transaction.ac.$q=class{constructor(){this.eb=olympe.dc.eb()}C(){throw Error('Abstract method build() not override !');}toString(){throw Error('Abstract method toString() not override !');}Qa(a){a=olympe.j.Qa(a);return void 0===a||null===a?null:olympe.j.hP(a)?a.valueOf():a}};olympe.dc.transaction.ac.$q.Aa=[olympe.dc.hh];olympe.dc.transaction.ac.RF=class extends olympe.dc.transaction.ac.$q{constructor(a,b){super();this.relation=a instanceof olympe.dc.Pc.Relation?a:new olympe.dc.Pc.Relation(olympe.dc.Ya(a));this.origin=this.eb.qc(b)?olympe.dc.CloudObject.get(b):b}getType(){return this.relation.ka()}Bc(){return this.relation.Bc()}C(){throw Error('Abstract method build() not override !');}toString(){throw Error('Abstract method toString() not override !');}};function Z(a,b,c){a.Mi.set(olympe.dc.Ya(b),c);return a}olympe.dc.transaction.ac.JG=class extends olympe.dc.transaction.ac.$q{constructor(a,b){super();let c;this.tag=null!=(c=b&&olympe.dc.Ya(b))?c:olympe.la.Yr();this.model=olympe.dc.Ya(a);this.source=null;this.Mi=new Map}ka(){return this.tag}Ee(){return this.model}ne(a){this.source=a;return this}C(a){const b=this.Ee(),c=this.ka();if(!b)throw Error('OperationError: Cannot create instance, model tag is undefined');a.yf(c,b,this.source,oo(this,this.Mi))}toString(){return`CreateInstance(${this.Ee()}, ${this.ka()})`}};
|
|
1630
1630
|
olympe.dc.transaction.ac.JG.Aa=[olympe.dc.Tk];olympe.dc.transaction.ac.fC=class extends olympe.dc.transaction.ac.RF{constructor(a,b,c){super(a,b);this.D=this.eb.qc(c)?olympe.dc.CloudObject.get(c):c}C(a){const b=this.getType();if(''===b)throw Error('OperationError: Cannot create relation, type is undefined, null or empty string');if(b===olympe.dc.Mf.uh)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');
|
|
1631
1631
|
if(!this.D)throw Error('OperationError: Cannot create relation, destination tag is undefined, null or empty string');this.relation.Bc()===olympe.dc.Ib.DESTINATION?a.Rb(b,olympe.dc.Ya(this.origin),olympe.dc.Ya(this.D)):a.Rb(b,olympe.dc.Ya(this.D),olympe.dc.Ya(this.origin))}toString(){return`CreateRelation('${this.relation.Bc()}${this.relation.ka()}, ${olympe.dc.Ya(this.origin)}, ${olympe.dc.Ya(this.D)})`}};olympe.dc.transaction.ac.R_=class extends olympe.dc.transaction.ac.$q{constructor(a,b=olympe.dc.Te.Sg){super();this.model=a instanceof olympe.dc.CloudObject?a:olympe.dc.CloudObject.get(a);this.bf=b}C(a){for(const b of this.eb.yg(this.model))b!==olympe.dc.Ya(this.model)&&(new olympe.dc.transaction.ac.YG(b,this.bf)).C(a)}toString(){return`DeleteAllInstances(${this.model.ka()}, ${this.bf})`}};olympe.dc.transaction.ac.XG=class extends olympe.dc.transaction.ac.RF{C(a){const b=this.getType();if(void 0===b)throw Error('OperationError: Cannot delete relation, type is undefined');if(b===olympe.dc.Mf.uh)throw Error('OperationError: Cannot delete the instance -> model relation');const c=olympe.dc.Ya(this.origin);if(!this.origin)throw Error('OperationError: Cannot delete relation, left tag is undefined');const d=this.Bc(),e=this.eb.tc(c,this.relation);for(const f of e)d===olympe.dc.Ib.DESTINATION?
|
|
@@ -1635,8 +1635,8 @@ for(const [e,f]of c){var d=this.eb.Cc(b,e,!0);d instanceof olympe.dc.Lf&&Wn(a,d.
|
|
|
1635
1635
|
l)&&(k===olympe.dc.Ib.ORIGIN?b.Rb(g,l,this.tag):b.Rb(g,this.tag,l))}}toString(){return`PersistOperation: tag - ${this.tag}, src - ${this.source}`}};olympe.dc.Ya=function(a){let b=null;if('string'===typeof a)return a;if('function'===typeof(null==a?void 0:a.ka)&&(null==a||!a.Jh))b=a.ka();else if('function'===typeof a){let d;b=null!=(d=olympe.dc.Ja.Ee(a))?d:''}else if(olympe.j.Og(a)){let d;b=olympe.dc.Ya(null==(d=olympe.j.Qa(a))?void 0:d.valueOf())}let c;return null!=(c=b)?c:''};z('olympe.dc.instanceToTag',olympe.dc.Ya);olympe.dc.eb=function(){return olympe.dc.XW().view};olympe.dc.register=function(a,b){olympe.dc.Ja.C(a,b)};
|
|
1636
1636
|
olympe.dc.defineProperty=function(a){return new olympe.dc.Pc.Property(a)};olympe.dc.fN=function(a,b=olympe.dc.Ib.DESTINATION,c=olympe.dc.CloudObject,d=olympe.dc.Ib.DESTINATION){const e=olympe.dc.Ib.DESTINATION;return b===olympe.dc.Ib.ORIGIN||b===e?new olympe.dc.Pc.Relation(a,b):new olympe.dc.Pc.Relation(a,d,b,c)};olympe.dc.lW=function(a){return a.fe()};olympe.dc.Bd={};olympe.dc.Bd.eE=a=>'string'===typeof a||'number'===typeof a||'boolean'===typeof a||a instanceof String?olympe.j.kc(a):a instanceof olympe.j.kb?a:null;olympe.dc.Bd.bE=a=>'boolean'===typeof a||a instanceof Boolean?olympe.j.jc(a):a instanceof olympe.j.ia?a:null;olympe.dc.Bd.dE=a=>'number'===typeof a||a instanceof Number?olympe.j.Ca(a):'string'===typeof a||a instanceof String?olympe.j.Ca(Number.parseFloat(a.valueOf())):a instanceof olympe.j.aa?a:null;
|
|
1637
1637
|
olympe.dc.Bd.cE=a=>'number'===typeof a||a instanceof Number?Ac(a.valueOf()):'string'===typeof a||a instanceof String?wc(a.valueOf()):a instanceof Date?zc(a):a instanceof olympe.j.bc?a:null;olympe.dc.Bd.aN=function(a){return a instanceof olympe.j.Color?a:'string'===typeof a||a instanceof String?Jc(a.valueOf()):null};olympe.dc.Bd.bN=a=>a instanceof olympe.dc.CloudObject?a:a instanceof olympe.dc.Lf?Gh(a):null;olympe.dc.Bd.Sw=a=>a instanceof olympe.dc.Lf?Gh(a):a;
|
|
1638
|
-
olympe.dc.Bd.vg=a=>{a=a instanceof olympe.dc.Lf?Gh(a):a;let b;return null!=(b=a instanceof olympe.dc.CloudObject?a.vg():a)?b:null};olympe.dc.Bd.KW=a=>{switch(a){case olympe.j.ia:return olympe.dc.Bd.bE;case olympe.j.kb:return olympe.dc.Bd.eE;case olympe.j.aa:return olympe.dc.Bd.dE;case olympe.j.bc:return olympe.dc.Bd.cE;case olympe.j.Color:return olympe.dc.Bd.aN;case olympe.dc.CloudObject:return olympe.dc.Bd.bN;default:return olympe.dc.Bd.Sw}};olympe.dc.bg={};olympe.dc.Xn=class{bb(){}O(){}compare(){}R(){}
|
|
1639
|
-
olympe.dc.Kb=class{constructor(a,b,c){void 0===a||null===a?olympe.
|
|
1638
|
+
olympe.dc.Bd.vg=a=>{a=a instanceof olympe.dc.Lf?Gh(a):a;let b;return null!=(b=a instanceof olympe.dc.CloudObject?a.vg():a)?b:null};olympe.dc.Bd.KW=a=>{switch(a){case olympe.j.ia:return olympe.dc.Bd.bE;case olympe.j.kb:return olympe.dc.Bd.eE;case olympe.j.aa:return olympe.dc.Bd.dE;case olympe.j.bc:return olympe.dc.Bd.cE;case olympe.j.Color:return olympe.dc.Bd.aN;case olympe.dc.CloudObject:return olympe.dc.Bd.bN;default:return olympe.dc.Bd.Sw}};olympe.dc.bg={};olympe.dc.Xn=class{bb(){}O(){}compare(){}R(){}gb(){}toString(){}};function po(a){let b=null;for(a=[...a.Ra];null===b&&0<a.length;)b=a.pop().Fe();return b}function qo(a,b){a.T()||(a=`Calling "${b}" on subscription with id ${a.ja()} 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.fb.wb('dc').warn(a))}
|
|
1639
|
+
olympe.dc.Kb=class{constructor(a,b,c){void 0===a||null===a?olympe.fb.wb('dc').warn('attempt to create a listdef with a null or undefind basetag. This listdef is thus without effect.'):(this.D=olympe.j.Xa([a],olympe.dc.Ya,String),this.Ra=void 0!==b&&(Array.isArray(b)?b:[b])||[],this.valueType=c||po(this),this.C=null,this.kg=void 0)}vk(){return olympe.dc.vk()}Ld(){if(null===this.C){const a=olympe.dc.bg.vX();this.C=ro(a,this,this.kg);null!==this.valueType&&this.C.ri(this.valueType);olympe.j.yb().Ve(()=>
|
|
1640
1640
|
{var b=this.C.ja();a.V.debug('QueryMGR: [ID:',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().Qb(),a.C.delete(b));this.C=null})}return this}getSubscription(){null===this.C&&this.Ld();return this.C}ri(a){this.valueType=a;null!==this.C&&this.C.ri(this.valueType)}Fe(){return null!==this.C?this.C.Fe():null===this.valueType?olympe.dc.CloudObject:this.valueType}Ij(){return this.D}TC(){return this.Ra}Li(a,b){return this.getSubscription().Li(a,
|
|
1641
1641
|
b)}dB(a){this.getSubscription().dB(a)}NS(){return this.getSubscription().nc()}MS(){return this.getSubscription().T()}get(a){return this.getSubscription().get(a)}Au(){return this.getSubscription().Au()}Lj(a){const b=this.getSubscription();qo(b,'getCurrent');return b.Lj(a)}has(a){return this.getSubscription().has(a)}Hi(a){const b=this.getSubscription();qo(b,'hasCurrent');return b.Hi(a)}Kh(a){return this.getSubscription().Kh(a)}FY(a){return this.Kh(a).asObservable()}ul(a){const b=this.getSubscription();
|
|
1642
1642
|
qo(b,'getCurrentAt');return b.ul(a)}an(a){return this.getSubscription().an(a)}vl(a){const b=this.getSubscription();qo(b,'getCurrentKeyAt');return b.vl(a)}gf(a){return this.getSubscription().gf(a)}KY(a){return this.gf(a).asObservable()}Om(a){const b=this.getSubscription();qo(b,'getCurrentRank');return b.Om(a)}Wd(){return this.getSubscription().Wd()}GY(){return this.Wd().asObservable()}Zm(){return this.getSubscription().Zm()}Sc(){return this.getSubscription().Sc()}LY(){return this.Sc().asObservable()}ej(){const a=
|
|
@@ -1648,7 +1648,7 @@ olympe.dc.Kb.prototype.getCurrentRank=olympe.dc.Kb.prototype.Om;olympe.dc.Kb.pro
|
|
|
1648
1648
|
h.Ld.K=olympe.j.J.C([]);h.getSubscription.K=new olympe.j.J(()=>olympe.dc.bg.Subscription,[]);h.ri.K=new olympe.j.J(()=>{},[]);h.Ij.K=new olympe.j.J(()=>String,[]);h.TC.K=new olympe.j.J(()=>Array,[]);h.Li.K=new olympe.j.J(()=>String,[]);h.dB.K=new olympe.j.J(()=>{},[]);h.NS.K=olympe.j.J.T;h.MS.K=olympe.j.J.O;h.get.K=new olympe.j.J(()=>olympe.dc.CloudObject,[],'valueType');h.Au.K=new olympe.j.J(()=>Array,[]);h.Lj.K=olympe.j.J.O;h.has.K=olympe.j.J.T;h.Hi.K=olympe.j.J.O;
|
|
1649
1649
|
h.Kh.K=new olympe.j.J(()=>olympe.dc.CloudObject,[],'valueType');h.ul.K=olympe.j.J.O;h.an.K=new olympe.j.J(()=>String,[]);h.vl.K=olympe.j.J.O;h.gf.K=olympe.j.J.D;h.Om.K=olympe.j.J.O;h.Wd.K=new olympe.j.J(()=>olympe.dc.CloudObject,[],'valueType');h.Zm.K=new olympe.j.J(()=>String,[]);h.Sc.K=olympe.j.J.D;h.ej.K=olympe.j.J.O;h.forEach.K=new olympe.j.J(()=>{},[]);h.Bi.K=olympe.j.J.O;h.Zw.K=new olympe.j.J(()=>{},[]);h.transform.K=new olympe.j.J(()=>olympe.dc.Kb,[]);
|
|
1650
1650
|
h.wy.K=new olympe.j.J(()=>olympe.dc.Kb,[]);h.filter.K=new olympe.j.J(()=>olympe.dc.Kb,[]);h.Ur.K=new olympe.j.J(()=>olympe.dc.Sp,[]);h.toString.K=olympe.j.J.O;h.LS.K=olympe.j.J.O;h.pg.K=olympe.j.J.R;const so={f_:'append',rC:'filter_not',oH:'filter_and',pH:'filter_or'};function to(a,b){a=uo(a);a=olympe.dc.CloudObject.get(a);return(new olympe.dc.dd.SF(a,b)).D}
|
|
1651
|
-
olympe.dc.Sp=class{constructor(a,b){this.C=uo(a);this.V=olympe.
|
|
1651
|
+
olympe.dc.Sp=class{constructor(a,b){this.C=uo(a);this.V=olympe.fb.wb('dc.query');this.valueType=void 0===b?olympe.dc.CloudObject:b;this.Ra=[];this.ac=[];this.kg=void 0}jk(){const a=new olympe.dc.Kb(this.C,this.Ra,this.valueType);'boolean'===typeof this.kg&&(a.kg=this.kg);return a}transform(a){for(let b=0,c=a.length,d;b<c;b++){d=a[b];if(void 0===d)throw new vo('transform','Trying to set an undefined transformer');if(d instanceof olympe.dc.Pc.Property)throw new vo('transform','Properties cannot be used as transformer, unlike relations '+
|
|
1652
1652
|
d);if(!d||'function'!==typeof d.C)throw new vo('transform','one of the argument is not a Transformer '+d);const e=d.Fe();null!==e&&(this.valueType=e);this.Ra.push(d)}return this}wy(a){this.Ra.push(new olympe.dc.Ra.yo(a));return this}YZ(a){this.Ra.push(new olympe.dc.Ra.yo(uo(a)));return this}OS(a){this.valueType=a;return this}rc(a){this.Ra.push(a);this.valueType=a.Fe()||olympe.dc.CloudObject;return this}mN(){var a=[olympe.dc.CloudObject.containsRel,olympe.dc.CloudObject.containsRel];for(const b of a)this.Ra.push(b),
|
|
1653
1653
|
this.valueType=b.Fe()||olympe.dc.CloudObject;return this}lN(a){var b=olympe.dc.CloudObject.extendRel;a=new olympe.dc.Ra.Fj(b,b.Bc(),olympe.dc.Ra.xD.YH,a);this.Ra.push(a);this.valueType=a.Fe()||olympe.dc.CloudObject;return this}zW(a){const b=[];let c;for(let d=0;d<a.length;d++){const e=a[d];b.push(e.ka());void 0===c&&(c=e.Bc())}a=new olympe.dc.Ra.wz(b,c);this.Ra.push(a);this.valueType=a.Fe()||olympe.dc.CloudObject;return this}NJ(){this.rc(olympe.dc.CloudObject.instancesRel);return this}Km(a){var b=
|
|
1654
1654
|
this.ac.pop();b===so.rC&&(a=new olympe.dc.Da.nk(a),b=this.ac.pop());switch(b){case so.oH:b=this.Ra.pop().D;b instanceof olympe.dc.Da.Qi?(b=b.Da,b.push(a),a=new olympe.dc.Da.Qi(...b)):a=new olympe.dc.Da.Qi(b,a);b=this.ac.pop();break;case so.pH:b=this.Ra.pop().D,b instanceof olympe.dc.Da.$k?(b=b.Da,b.push(a),a=new olympe.dc.Da.$k(...b)):a=new olympe.dc.Da.$k(b,a),b=this.ac.pop()}b===so.rC&&(a=new olympe.dc.Da.nk(a),this.ac.pop());this.Ra.push(new olympe.dc.Ra.Sf(a));return this}vW(a,b,c){return this.Km(new olympe.dc.Da.Qk(to(a,
|
|
@@ -1659,37 +1659,37 @@ c));break;case olympe.dm.Number.U.ka():d=new olympe.dc.ug.Number(new olympe.dc.d
|
|
|
1659
1659
|
b));return this}};class vo extends Error{constructor(a,b){super(`ListDefBuilder.${a}(): ${b}`)}}function uo(a){return'string'===typeof a||a instanceof olympe.j.kb?a:'function'===typeof a?olympe.dc.Ja.Ee(a):olympe.j.$b(a)?a.fu===olympe.j.kb?a:olympe.j.Xa([a],b=>olympe.j.kc(olympe.dc.Ya(b)),olympe.j.kb):a.ka()}h=olympe.dc.Sp.prototype;h.jk.K=new olympe.j.J(()=>olympe.dc.Kb,[]);h.transform.K=olympe.j.J.C([]);h.wy.K=olympe.j.J.C([]);h.YZ.K=olympe.j.J.C([]);h.OS.K=olympe.j.J.C([]);h.rc.K=olympe.j.J.C([]);
|
|
1660
1660
|
h.mN.K=olympe.j.J.C([]);h.lN.K=olympe.j.J.C([]);h.zW.K=olympe.j.J.C([]);h.NJ.K=olympe.j.J.C([]);h.Km.K=olympe.j.J.C([]);h.vW.K=olympe.j.J.C([]);h.contains.K=olympe.j.J.C([]);h.me.K=olympe.j.J.C([]);h.YA.K=olympe.j.J.C([]);h.wW.K=olympe.j.J.C([]);h.$X.K=olympe.j.J.C([]);h.WA.K=olympe.j.J.C([]);h.sy.K=olympe.j.J.C([]);h.yY.K=olympe.j.J.C([]);h.filter.K=olympe.j.J.C([]);h.Re.K=olympe.j.J.C([]);h.and.K=olympe.j.J.C([]);h.or.K=olympe.j.J.C([]);h.yv.K=olympe.j.J.C([]);h.sort.K=olympe.j.J.C([]);h.pW.K=olympe.j.J.C([]);
|
|
1661
1661
|
h.jn.K=olympe.j.J.C([]);function ro(a,b,c){const d=b.Ij();var e=new olympe.dc.query.aU;let f;f=d;olympe.j.$b(f)&&(f=e.add(d));b=(b=b.TC())?Array.isArray(b)?b:[b]:null;e=olympe.dc.bg.Subscription.O(f,b,e);let g,k,l=null!=(k=null==(g=a.C.get(e))?void 0:g.getSubscription())?k:null;null===l&&(a.V.debug('QueryMGR: new',a.D?'local':'remote','subscription "',e,'": #',`${f},`,b),l=new olympe.dc.bg.Subscription(e,d,b,a.O));l.getContext().run(()=>a.process(l,c));return l}
|
|
1662
|
-
function wo(a,b){if(b.T())a.V.debug('ListProcessor: [ID:',b.ja(),'] - Subscription already booted, ignoring');else{a.V.debug('ListProcessor: [ID:',b.ja(),'] - Booting subscription');var c=new olympe.dc.dg.SL(a.db,a.V),d=b.ja();olympe.j.Wa([b.Ij()],e=>{const f=olympe.dc.Ya(e);a.V.debug('ListProcessor: [ID:',b.ja(),'] - Booting with baseTag',f);b.wg()||b.gj();Kh(a.db,f,xo(a,b,c),d);olympe.j.
|
|
1662
|
+
function wo(a,b){if(b.T())a.V.debug('ListProcessor: [ID:',b.ja(),'] - Subscription already booted, ignoring');else{a.V.debug('ListProcessor: [ID:',b.ja(),'] - Booting subscription');var c=new olympe.dc.dg.SL(a.db,a.V),d=b.ja();olympe.j.Wa([b.Ij()],e=>{const f=olympe.dc.Ya(e);a.V.debug('ListProcessor: [ID:',b.ja(),'] - Booting with baseTag',f);b.wg()||b.gj();Kh(a.db,f,xo(a,b,c),d);olympe.j.yb().Ve(()=>Hh(a.db,f,d));a.db.qc(f.valueOf())||yo(c);b.T()||(yo(c),b.zb([]))})}}
|
|
1663
1663
|
function zo(a,b,c,d,e){const f=[b.Ij()],g=m=>m instanceof olympe.dc.Ra.yo;let k;const l=(null!=(k=b.ks())?k:[]).filter(g);for(const m of l){f.push(m.Ij());let n;l.push(...(null!=(n=m.ks())?n:[]).filter(g))}olympe.j.Wa(f,()=>{const m=b.ld(c);Ao(a,m,b.ja(),d,e)})}
|
|
1664
|
-
function Ao(a,b,c,d,e){a.V.debug('CoverageProcessor: [ID:',c,'] - checking coverage of remote query over',b.length,'paths.');const f=olympe.j.
|
|
1665
|
-
function xo(a,b,c){const d=new olympe.dc.dg.Hy;let e=!1;const f=olympe.j.
|
|
1664
|
+
function Ao(a,b,c,d,e){a.V.debug('CoverageProcessor: [ID:',c,'] - checking coverage of remote query over',b.length,'paths.');const f=olympe.j.yb(),g=new olympe.async.Jz(f);b.forEach(k=>{g.add((l,m)=>{let n=!1;Jk(a.R,k,f,olympe.dc.uc.SELF,olympe.dc.nb.Kf.im,{kg:e}).subscribe(rxjs.Subscriber.create(()=>{n||(n=!0,f.run(l))},p=>f.run(()=>m(`The query ${c} is not covered by an existing graphdef, `+`and the specific graphdef id ${k.ja()} has encountered an error: ${p}`))))})});Jd(g,(k,l)=>d(l));g.start()}
|
|
1665
|
+
function xo(a,b,c){const d=new olympe.dc.dg.Hy;let e=!1;const f=olympe.j.yb(),g=b.ks(),k=[];k[g?g.length:0]=(l,m,n,p)=>{f.ag()||f.mc()||(l?b.Hi(n)?a.V.warn('Adding the same index twice (should never happen) for sub #',b.ja(),', index #',n,', tag #',m):(a.V.debug('ListProcessor: [ID:',b.ja(),'] - Adding Instance',m,'to the subscription'),b.hc(n,m)):(a.V.debug('ListProcessor: [ID:',b.ja(),'] - Removing Instance',m,'from the subscription'),b.Kg(n)),e||(Bo(c,()=>{p.aq();yo(c)}),f.run(()=>p.vk().Uq(b.zb.bind(b))),
|
|
1666
1666
|
e=!0),Co(c,n))};if(null!==g)for(let l=g.length-1;0<=l;l--)k[l]=g[l].C(f,c,k[l+1]);return(l,m)=>{const n=b.ja();c.register(n,null);const p=d.C(l,m,n,null);if(null!==p)k[0](l,m,n,Do(p,l,m,n))}}
|
|
1667
1667
|
olympe.dc.bg.oT=class{constructor(a,b,c,d,e,f){this.V=a;this.db=b;this.D=f||e;this.R=d;this.C=new Map;this.O=new olympe.j.ee('Legacy ListDef processor')}process(a,b){const c=a.ja();var d=this.C.get(c);d||(d=new olympe.dc.bg.WU(a),this.C.set(c,d));d.counter++;Eo(d)?this.V.debug('ListProcessor: [ID:',c,'] - id already processed'):(this.V.debug('ListProcessor: [ID:',c,'] - NOT processed yet.'),d=a.md(),b||this.D&&d===olympe.dc.uc.SERVER||d===olympe.dc.uc.SELF?(this.V.debug('QueryMGR: [ID:',c,'] - Local subscription, no need for coverage check, booting subscription '),
|
|
1668
1668
|
wo(this,a)):zo(this,a,d,e=>{e?this.V.error(e):wo(this,a)},b))}};function Fo(a){return olympe.j.$b(a)?'Node#'+a.Ub.ja():String(a)}function Go(a,b){return olympe.j.$b(b)?'{"c":"Parameter","v":"'+a.add(b)+'"}':JSON.stringify(b)}
|
|
1669
|
-
olympe.dc.query.aU=class{constructor(){this.uid=0;this.values=null}add(a){let b;b=olympe.j.$b(a)?'n'+a.Ub.ja():'p'+ ++this.uid;null===this.values&&(this.values={});this.values[b]=a;return b}get(a){return this.values[a]}clear(){const a=this.values;if(null!==a)for(let b=Object.keys(a),c=b.length,d=0;d<c;d++)delete a[b[d]]}forEach(a){const b=this.values;if(null!==b)for(let c=Object.keys(b),d=c.length,e=0;e<d;e++)a(b[c[e]],c[e])}};olympe.dc.Zb=class{bb(){}C(){}D(){}
|
|
1669
|
+
olympe.dc.query.aU=class{constructor(){this.uid=0;this.values=null}add(a){let b;b=olympe.j.$b(a)?'n'+a.Ub.ja():'p'+ ++this.uid;null===this.values&&(this.values={});this.values[b]=a;return b}get(a){return this.values[a]}clear(){const a=this.values;if(null!==a)for(let b=Object.keys(a),c=b.length,d=0;d<c;d++)delete a[b[d]]}forEach(a){const b=this.values;if(null!==b)for(let c=Object.keys(b),d=c.length,e=0;e<d;e++)a(b[c[e]],c[e])}};olympe.dc.Zb=class{bb(){}C(){}D(){}gb(){}toString(){}};olympe.dc.bg.Subscription=class a extends olympe.j.Cy{constructor(b,c,d,e){super(olympe.dc.CloudObject,new olympe.j.ee('context subscription '+b,e));this.id=b;this.Gb=c;this.Ra=d||null;this.state=this.R.run(()=>olympe.j.ma(olympe.dc.bg.Subscription.C.INIT));this.pb=!1;this.$=this.tb=null}static O(b,c,d){let e;try{e=b;if(c)for(let f=0,g=c.length;f<g;f++)e+='|'+c[f].gb(d);else e+='|null';e=olympe.la.Yd(e)}catch(f){e=olympe.la.cf()}return e}ja(){return this.id}Ij(){return this.Gb}ks(){return this.Ra}md(){const b=
|
|
1670
1670
|
olympe.dc.Qj(),c=olympe.j.Qa(this.Ij());let d;return olympe.dc.CloudObject.instancesRel.Sb(null==(d=this.Ra)?void 0:d[0])?b.fromModel(c):b.Lm(c)}wg(){const b=olympe.j.Qa(this.state);return b&&b.valueOf()>=olympe.dc.bg.Subscription.C.JL}gj(){if(this.state.Ub.mc())throw Error(`Cannot set destroyed subscription '${this.id}' as subscribed`);const b=this.tb;this.tb=null;for(let c in b)if(Object.prototype.hasOwnProperty.call(b,c))b[c](this);K(this.state,olympe.j.ma(olympe.dc.bg.Subscription.C.JL))}nc(){return olympe.j.Xa([this.state],
|
|
1671
|
-
()=>{},olympe.j.ia)}T(){const b=F(this.state);return b&&b.valueOf()>=olympe.dc.bg.Subscription.C.Nt}Li(b,c){this.T()?b(this):(null===this.$&&(this.$=new Map),void 0===c&&(c=olympe.la.cf()),this.$.set(c,olympe.j.
|
|
1671
|
+
()=>{},olympe.j.ia)}T(){const b=F(this.state);return b&&b.valueOf()>=olympe.dc.bg.Subscription.C.Nt}Li(b,c){this.T()?b(this):(null===this.$&&(this.$=new Map),void 0===c&&(c=olympe.la.cf()),this.$.set(c,olympe.j.yb().re(b)));return c||''}dB(b){null!==this.$&&b&&this.$.delete(b)}Pa(){const b=olympe.dc.bg.Subscription.C.Nt;if(!this.state.Ub.mc()&&olympe.j.Qa(this.state)!==b&&(this.Ao(),K(this.state,b),null!==this.$)){for(const c of this.$.values())c(this);this.$=null}}onDestroy(b){this.R.onDestroy(b)}Qb(){this.R.destroy()}zb(b){if(!this.state.Ub.mc()){for(let c=
|
|
1672
1672
|
0,d=b.length;c<d;c++)this.kA(b[c],c);if(this.T())this.Ao();else{this.pb=b=!0;for(let c in this.D)if(Object.prototype.hasOwnProperty.call(this.D,c)&&!Object.prototype.hasOwnProperty.call(this.values,c)){b=!1;break}b&&this.Pa()}}}hc(b,c){if(!this.state.Ub.mc()&&(this.jA(b,olympe.dc.CloudObject.get(c)),b=this.T(),this.pb&&!b)){b=!0;for(let d in this.D)if(Object.prototype.hasOwnProperty.call(this.D,d)&&!Object.prototype.hasOwnProperty.call(this.values,d)){b=!1;break}b&&this.Pa()}}Kg(b){this.state.Ub.mc()||
|
|
1673
1673
|
(this.UD(b),this.Fw(b,!this.T()))}rr(){return this.T()?super.rr():'Subscription is not ready!'}ld(b){const c=olympe.j.Qa(this.Ij());return olympe.dc.bg.Subscription.D(c,b,this.ks())}static D(b,c,d){var e=olympe.dc.nb.from(b,c).bj();if(null===d)return[e];b=[];b.push(e);for(let f=0,g=d.length;f<g;f++)if(e=d[f],e instanceof olympe.dc.Ra.Bm){const k=olympe.dc.query.Relation.from(e);b=b.map(l=>l.rc(k,!0))}else if(e instanceof olympe.dc.Ra.Fj){const k=olympe.dc.query.Relation.from(e);b=b.map(l=>l.fq(k,
|
|
1674
|
-
!0,!0))}else if(e instanceof olympe.dc.Ra.yo)e=a.D(olympe.j.Qa(e.Ij()),c,e.ks()),b.push(...e);else if(e instanceof olympe.dc.Ra.Sf||e instanceof olympe.dc.Ra.Jr){const k=e.O();b=b.map(l=>{for(const m of k){for(const n of m)l=n.recursive?l.fq(n,!0,!0):l.rc(n,!0);l=l.back(m.length)}return l})}return b}};olympe.dc.bg.Subscription.C={INIT:0,JL:1,Nt:2};olympe.dc.bg.Subscription.prototype.rr.K=olympe.j.J.O;function Eo(a){const b=a.C;a.C=!0;return b}olympe.dc.bg.WU=class{constructor(a){this.counter=0;this.C=!1;this.D=a}getSubscription(){return this.D}};olympe.dc.xo=class{bb(){}Fe(){}C(){}
|
|
1675
|
-
olympe.dc.Da.OB.Aa=[olympe.dc.Zb];olympe.dc.Da.Qi=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])}bb(){return ei(olympe.dc.Da.Qi)}D(){return this.Da.reduce((a,b)=>a.concat(b.D()),[])}C(a,b){return a.run(()=>olympe.j.Xa(this.Da.map(c=>c.C(a,b)),(...c)=>olympe.j.jc(c.every(d=>d.valueOf())),olympe.j.ia))}
|
|
1676
|
-
a.toString()).join(',')+')'}};X('olympe.dc.predicates.And',olympe.dc.Da.Qi);olympe.dc.Da.Qi.Aa=[olympe.dc.Zb];olympe.dc.Da.UB=class{constructor(a,b){this.Uj=a;this.value=b}C(a,b){return a.run(()=>olympe.j.Xa([this.Uj,this.value.getValue(a,b)],(c,d)=>{c=c.valueOf();return olympe.j.jc((Number(c)&Number(d.valueOf()))===Number(c))},olympe.j.ia))}bb(){return ei(olympe.dc.Da.UB)}D(){return[this.value.C()]}
|
|
1677
|
-
return this.bb().replace(/^.+\./,'')+'('+a.toString()+','+this.value.toString()+')'}};X('olympe.dc.predicates.BitMask',olympe.dc.Da.UB);olympe.dc.Da.UB.Aa=[olympe.dc.Zb];olympe.dc.Da.Zn=class{constructor(a,b,c){this.source=a;this.value=b;this.O=c?c:!1}bb(){return ei(olympe.dc.Da.Zn)}D(){return[this.source.C(),this.value.C()]}zd(){return this.source}getValue(){return this.value}C(a,b){return a.run(()=>olympe.j.Xa([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.jc(c.includes(d))},olympe.j.ia))}
|
|
1678
|
-
return'{"c":"'+this.bb()+'","a":['+b+','+c+','+a+']}'}toString(){const a=Fo(this.O);return'Contains('+this.source.toString()+','+this.value.toString()+','+a+')'}};X('olympe.dc.predicates.Contains',olympe.dc.Da.Zn);olympe.dc.Da.Zn.Aa=[olympe.dc.Zb];olympe.dc.Da.Qk=class{constructor(a,b){this.O=a;this.R=b}bb(){return ei(olympe.dc.Da.Qk)}D(){return[this.O.C(),this.R.C()]}C(a,b){return a.run(()=>olympe.j.Xa([this.O.getValue(a,b),this.R.getValue(a,b)],(c,d)=>'object'===typeof c&&void 0!==c.Se?c.Se(d):'object'===typeof d&&void 0!==d.Se?d.Se(c):olympe.j.jc(c.valueOf()===d.valueOf()),olympe.j.ia,'Test equal predicate'))}
|
|
1674
|
+
!0,!0))}else if(e instanceof olympe.dc.Ra.yo)e=a.D(olympe.j.Qa(e.Ij()),c,e.ks()),b.push(...e);else if(e instanceof olympe.dc.Ra.Sf||e instanceof olympe.dc.Ra.Jr){const k=e.O();b=b.map(l=>{for(const m of k){for(const n of m)l=n.recursive?l.fq(n,!0,!0):l.rc(n,!0);l=l.back(m.length)}return l})}return b}};olympe.dc.bg.Subscription.C={INIT:0,JL:1,Nt:2};olympe.dc.bg.Subscription.prototype.rr.K=olympe.j.J.O;function Eo(a){const b=a.C;a.C=!0;return b}olympe.dc.bg.WU=class{constructor(a){this.counter=0;this.C=!1;this.D=a}getSubscription(){return this.D}};olympe.dc.xo=class{bb(){}Fe(){}C(){}gb(){}toString(){}};olympe.dc.QK=class{O(){}};olympe.dc.fA=class{bb(){}getValue(){}C(){}gb(){}toString(){}};olympe.dc.ug={};let Ho=0;olympe.dc.ug.Zq=class{constructor(){this.id=Ho++}bb(){return'CustomLocalComparator#'+Ho}R(){return[]}O(){throw Error('GetComparedValue function was not implemented.');}compare(){throw Error('Compare function was not implemented.');}gb(){return`{"c":"${this.bb()}"}`}toString(){return this.bb()+'()'}};olympe.dc.ug.Zq.Aa=[olympe.dc.Xn];olympe.dc.ug.DateTime=class{constructor(a){this.C=a}bb(){return ei(olympe.dc.ug.DateTime)}R(){return this.C.C()}O(a,b){return this.C.getValue(a,b)}compare(a,b){if(!a)return b?-1:0;if(!b)return 1;a=a.getTime();b=b.getTime();return a!==b?a>b?1:-1:0}gb(a){return'{"c":"'+this.bb()+'",a:['+this.C.gb(a)+']}'}toString(){return'Number('+this.C.toString()+')'}};X('olympe.dc.comparators.DateTime',olympe.dc.ug.DateTime);olympe.dc.ug.DateTime.Aa=[olympe.dc.Xn];olympe.dc.ug.Number=class{constructor(a){this.C=a}bb(){return ei(olympe.dc.ug.Number)}R(){return this.C.C()}O(a,b){return this.C.getValue(a,b)}compare(a,b){return a!==b?a>b?1:-1:0}gb(a){return`{"c":"${this.bb()}",a:[${this.C.gb(a)}]}`}toString(){return`Number(${this.C.toString()})`}};X('olympe.dc.comparators.Number',olympe.dc.ug.Number);olympe.dc.ug.Number.Aa=[olympe.dc.Xn];olympe.dc.ug.String=class{constructor(a){this.C=a}bb(){return ei(olympe.dc.ug.String)}R(){return this.C.C()}O(a,b){return olympe.j.Xa([this.C.getValue(a,b)],c=>c.toLowerCase(),olympe.j.kb)}compare(a,b){return void 0===a?void 0===b?0:1:a!==b?a>b?1:-1:0}gb(a){return`{"c":"${this.bb()}",a:[${this.C.gb(a)}]}`}toString(){return`String(${this.C.toString()})`}};X('olympe.dc.comparators.String',olympe.dc.ug.String);olympe.dc.ug.String.Aa=[olympe.dc.Xn];olympe.dc.Da={};let Io=0;olympe.dc.Da.Zq=class{constructor(){this.id=Io++}bb(){return'CustomLocalPredicate#'+this.id}D(){return[]}C(){throw Error('Test function was not implemented.');}gb(){return`{"c":"${this.bb()}"}`}toString(){return this.bb()+'()'}};olympe.dc.Da.Zq.Aa=[olympe.dc.Zb];olympe.dc.Da.OB=class{constructor(a,b){this.O=a;this.R=b}bb(){}D(){return[this.O.C(),this.R.C()]}C(a,b){return a.run(()=>olympe.j.Xa([this.O.getValue(a,b),this.R.getValue(a,b)],(c,d)=>{c=c.valueOf();d=d.valueOf();return olympe.j.jc(this.T('string'===typeof c?c:Number(c),'string'===typeof d?d:Number(d)))},olympe.j.ia))}T(){}gb(a){return'{"c":"'+this.bb()+'","a":['+this.O.gb(a)+','+this.R.gb(a)+']}'}toString(){return this.bb().replace(/^.+\./,'')+'('+this.O.toString()+','+this.R.toString()+')'}};
|
|
1675
|
+
olympe.dc.Da.OB.Aa=[olympe.dc.Zb];olympe.dc.Da.Qi=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])}bb(){return ei(olympe.dc.Da.Qi)}D(){return this.Da.reduce((a,b)=>a.concat(b.D()),[])}C(a,b){return a.run(()=>olympe.j.Xa(this.Da.map(c=>c.C(a,b)),(...c)=>olympe.j.jc(c.every(d=>d.valueOf())),olympe.j.ia))}gb(a){const b=this.Da.map(c=>c.gb(a));return'{"c":"'+this.bb()+'","a":['+b.join(',')+']}'}toString(){return'And('+this.Da.map(a=>
|
|
1676
|
+
a.toString()).join(',')+')'}};X('olympe.dc.predicates.And',olympe.dc.Da.Qi);olympe.dc.Da.Qi.Aa=[olympe.dc.Zb];olympe.dc.Da.UB=class{constructor(a,b){this.Uj=a;this.value=b}C(a,b){return a.run(()=>olympe.j.Xa([this.Uj,this.value.getValue(a,b)],(c,d)=>{c=c.valueOf();return olympe.j.jc((Number(c)&Number(d.valueOf()))===Number(c))},olympe.j.ia))}bb(){return ei(olympe.dc.Da.UB)}D(){return[this.value.C()]}gb(a){const b=olympe.j.$b(this.Uj)?F(this.Uj).valueOf():this.Uj.valueOf();return'{"c":"'+this.bb()+'","a":['+b+','+this.value.gb(a)+']}'}toString(){const a=olympe.j.$b(this.Uj)?F(this.Uj).valueOf():this.Uj.valueOf();
|
|
1677
|
+
return this.bb().replace(/^.+\./,'')+'('+a.toString()+','+this.value.toString()+')'}};X('olympe.dc.predicates.BitMask',olympe.dc.Da.UB);olympe.dc.Da.UB.Aa=[olympe.dc.Zb];olympe.dc.Da.Zn=class{constructor(a,b,c){this.source=a;this.value=b;this.O=c?c:!1}bb(){return ei(olympe.dc.Da.Zn)}D(){return[this.source.C(),this.value.C()]}zd(){return this.source}getValue(){return this.value}C(a,b){return a.run(()=>olympe.j.Xa([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.jc(c.includes(d))},olympe.j.ia))}gb(a){const b=this.source.gb(a),c=this.value.gb(a);a=Go(a,this.O);
|
|
1678
|
+
return'{"c":"'+this.bb()+'","a":['+b+','+c+','+a+']}'}toString(){const a=Fo(this.O);return'Contains('+this.source.toString()+','+this.value.toString()+','+a+')'}};X('olympe.dc.predicates.Contains',olympe.dc.Da.Zn);olympe.dc.Da.Zn.Aa=[olympe.dc.Zb];olympe.dc.Da.Qk=class{constructor(a,b){this.O=a;this.R=b}bb(){return ei(olympe.dc.Da.Qk)}D(){return[this.O.C(),this.R.C()]}C(a,b){return a.run(()=>olympe.j.Xa([this.O.getValue(a,b),this.R.getValue(a,b)],(c,d)=>'object'===typeof c&&void 0!==c.Se?c.Se(d):'object'===typeof d&&void 0!==d.Se?d.Se(c):olympe.j.jc(c.valueOf()===d.valueOf()),olympe.j.ia,'Test equal predicate'))}gb(a){return'{"c":"'+this.bb()+'","a":['+this.O.gb(a)+','+this.R.gb(a)+']}'}toString(){return'Equals('+this.O.toString()+','+this.R.toString()+
|
|
1679
1679
|
')'}};X('olympe.dc.predicates.Equals',olympe.dc.Da.Qk);olympe.dc.Da.Qk.Aa=[olympe.dc.Zb];olympe.dc.Da.kR=class extends olympe.dc.Da.Qk{constructor(a,b){super(a,new olympe.dc.dd.mm(b))}};olympe.dc.Da.kR.Aa=[olympe.dc.Zb];olympe.dc.Da.hz=class extends olympe.dc.Da.OB{constructor(a,b){super(a,b)}bb(){return ei(olympe.dc.Da.hz)}T(a,b){return a>b}};X('olympe.dc.predicates.Greater',olympe.dc.Da.hz);olympe.dc.Da.Bt=class{constructor(a,b,c){this.nd=[];this.O=c instanceof Array?c:void 0!==c?[olympe.dc.Ya(c)]:[];a=Array.isArray(a)?a:[a];for(let d=0,e=a.length;d<e;d++)c=a[d],c instanceof olympe.dc.Ra.Fj?this.nd.push(new Jo(c.ka(),c.Bc(),c.O,c.D)):this.nd.push(new Jo(olympe.dc.Ya(c),b[d],1,1))}bb(){return ei(olympe.dc.Da.Bt)}D(){return[this.nd.reduce((a,b)=>a.concat(b),[])]}C(a,b){const c=a.run(()=>M(olympe.j.Za(Boolean),!1)),d=olympe.la.cf(),e=olympe.dc.eb();let f=0;a=(k,l)=>{0!==this.O.length&&
|
|
1680
|
-
!this.O.includes(l)||c.getContext().mc()||c.getContext().ag()||(f+=k?1:-1,c.update(0<f))};const g=this.nd;for(let k=g.length-1;0<=k;k--)a=Ko(g[k],e,a,d+k);Kh(e,b,a,d);c.getContext().onDestroy(()=>{Hh(e,b,d)});return c.wa()}
|
|
1681
|
-
function Ko(a,b,c,d){const e=Object.create(null);d+=olympe.la.tk();const f=(g,k,l)=>{l>=a.D&&c(g,k);if(!(0<=a.C&&l>=a.C)){var m=d+l;g?e[k]||(e[k]=!0,nj(b,k,a,(n,p)=>{f(n,p,l+1)},m)):(delete e[k],b.D(k,a,m))}};return(g,k)=>f(g,k,0)}class Jo extends olympe.dc.query.Relation{constructor(a,b,c,d){super(a,b,1!==c||1!==d);this.D=c;this.C=d}
|
|
1682
|
-
l(1)};const g=this.nd;for(let l=g.length-1;0<=l;l--)f=Mo(g[l],d,f,e+l);let k=0;Kh(d,b,f.bind(null,l=>{c.getContext().ag()||c.getContext().mc()||(k+=l,c.update(0<k))}),e);a.onDestroy(()=>Hh(d,b,e));return c.wa()}
|
|
1680
|
+
!this.O.includes(l)||c.getContext().mc()||c.getContext().ag()||(f+=k?1:-1,c.update(0<f))};const g=this.nd;for(let k=g.length-1;0<=k;k--)a=Ko(g[k],e,a,d+k);Kh(e,b,a,d);c.getContext().onDestroy(()=>{Hh(e,b,d)});return c.wa()}gb(){return'{"c":"'+this.bb()+'","a":['+JSON.stringify(this.nd.map(a=>a.gb()))+(0!==this.O.length?',"'+this.O.toString():'')+'"]}'}toString(){return'HasRelated('+(0!==this.O.length?'#'+this.O.toString()+', ':'')+this.nd.map(a=>a.gb())+')'}};X('olympe.dc.predicates.HasRelated',olympe.dc.Da.Bt);
|
|
1681
|
+
function Ko(a,b,c,d){const e=Object.create(null);d+=olympe.la.tk();const f=(g,k,l)=>{l>=a.D&&c(g,k);if(!(0<=a.C&&l>=a.C)){var m=d+l;g?e[k]||(e[k]=!0,nj(b,k,a,(n,p)=>{f(n,p,l+1)},m)):(delete e[k],b.D(k,a,m))}};return(g,k)=>f(g,k,0)}class Jo extends olympe.dc.query.Relation{constructor(a,b,c,d){super(a,b,1!==c||1!==d);this.D=c;this.C=d}gb(){return`${this.ka()}, ${this.Bc()}, ${this.D}, ${this.C}`}}olympe.dc.Da.Bt.Aa=[olympe.dc.Zb];olympe.dc.Da.FC=class{constructor(a,b,c){this.nd=[];this.O=void 0!==c?c.map(olympe.dc.Ya):null;a=Array.isArray(a)?a:[a];for(let d=0,e=a.length;d<e;d++)c=a[d],c instanceof olympe.dc.Ra.Fj?this.nd.push(new Lo(c.ka(),c.Bc(),c.O,c.D)):this.nd.push(new Lo(olympe.dc.Ya(c),b[d],1,1))}bb(){return ei(olympe.dc.Da.FC)}D(){return[this.nd.reduce((a,b)=>a.concat(b),[])]}C(a,b){const c=a.run(()=>M(olympe.j.Za(Boolean),!1)),d=olympe.dc.eb(),e=olympe.la.tk();let f=(l,m,n)=>{m&&(null===this.O||this.O.includes(n))&&
|
|
1682
|
+
l(1)};const g=this.nd;for(let l=g.length-1;0<=l;l--)f=Mo(g[l],d,f,e+l);let k=0;Kh(d,b,f.bind(null,l=>{c.getContext().ag()||c.getContext().mc()||(k+=l,c.update(0<k))}),e);a.onDestroy(()=>Hh(d,b,e));return c.wa()}gb(){return'{"c":"'+this.bb()+'","a":['+JSON.stringify(this.nd.map(a=>a.gb()))+(null!==this.O?',"'+this.O.toString():'')+'"]}'}toString(){return'HasRelatedTree('+(null!==this.O?'#['+this.O.toString()+'], ':'')+this.nd.map(a=>a.gb())+')'}};X('olympe.dc.predicates.HasRelatedTree',olympe.dc.Da.FC);
|
|
1683
1683
|
function Mo(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.la.tk();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(B=>B(x)));g.delete(v)};k(m,t,p);e.has(t)?m(e.get(t)):(n>=a.D&&
|
|
1684
|
-
c(x=>{e.set(t,(e.get(t)||0)+x);m(x)},r,t),(0>a.C||n<=a.C)&&t!==p&&nj(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.D(t,a,u))};return(m,n,p)=>l(m,0,'origin',n,p)}class Lo extends olympe.dc.query.Relation{constructor(a,b,c,d){super(a,b,1!==c||1!==d);this.D=c;this.C=d;this.T=new Map;this.O=new Map}
|
|
1685
|
-
this.O.has(l)?(c.update(olympe.j.ia.C),f()):(k=new No(l,olympe.dc.CloudObject.extendRel),e.push(k),nj(d,k.tag,k.relation,g,k.id))}};a=new No(b,olympe.dc.CloudObject.modelRel);e.push(a);nj(d,a.tag,a.relation,g,a.id);c.getContext().onDestroy(f);return c.wa()}
|
|
1686
|
-
X('olympe.dc.predicates.InstanceOf',olympe.dc.Da.bw);olympe.dc.Da.bw.Aa=[olympe.dc.Zb];olympe.dc.Da.nk=class{constructor(a){this.O=a}bb(){return ei(olympe.dc.Da.nk)}D(){return this.O.D()}C(a,b){return a.run(()=>olympe.j.Xa([this.O.C(a,b)],c=>olympe.j.jc(!c.valueOf()),olympe.j.ia))}
|
|
1687
|
-
a.toString()).join(',')+')'}};X('olympe.dc.predicates.Or',olympe.dc.Da.$k);olympe.dc.Da.$k.Aa=[olympe.dc.Zb];olympe.dc.Da.ro=class{constructor(a,b,c){this.source=a;this.R=b;this.O=void 0===c?!0:c}bb(){return ei(olympe.dc.Da.ro)}D(){return[this.source.C()]}zd(){return this.source}C(a,b){return a.run(()=>olympe.j.Xa([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.jc((new RegExp(d)).test(c))},olympe.j.ia))}
|
|
1684
|
+
c(x=>{e.set(t,(e.get(t)||0)+x);m(x)},r,t),(0>a.C||n<=a.C)&&t!==p&&nj(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.D(t,a,u))};return(m,n,p)=>l(m,0,'origin',n,p)}class Lo extends olympe.dc.query.Relation{constructor(a,b,c,d){super(a,b,1!==c||1!==d);this.D=c;this.C=d;this.T=new Map;this.O=new Map}gb(){return`${this.ka()}, ${this.Bc()}, ${this.D}, ${this.C}`}}olympe.dc.Da.FC.Aa=[olympe.dc.Zb];olympe.dc.Da.bw=class{constructor(a){this.O=new Set;a instanceof Array?a.forEach(b=>{this.O.add(olympe.dc.Ya(b))}):this.O.add(olympe.dc.Ya(a))}bb(){return ei(olympe.dc.Da.bw)}D(){return[]}C(a,b){const c=a.run(()=>M(olympe.j.Za(olympe.j.ia),olympe.j.ia.ob)),d=olympe.dc.eb();let e=[];const f=()=>{e.forEach(k=>{d.D(k.tag,k.relation,k.id)});e=[]},g=(k,l)=>{if(k)if(l===olympe.dc.Ya(olympe.dc.CloudObject))c.update(olympe.j.jc(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})`);
|
|
1685
|
+
this.O.has(l)?(c.update(olympe.j.ia.C),f()):(k=new No(l,olympe.dc.CloudObject.extendRel),e.push(k),nj(d,k.tag,k.relation,g,k.id))}};a=new No(b,olympe.dc.CloudObject.modelRel);e.push(a);nj(d,a.tag,a.relation,g,a.id);c.getContext().onDestroy(f);return c.wa()}gb(){return'{"c":"'+this.bb()+'","a":['+JSON.stringify(Array.from(this.O))+']}'}toString(){return'InstanceOf('+Array.from(this.O).join(', ')+')'}};class No{constructor(a,b){this.tag=a;this.relation=b;this.id=olympe.la.tk()}}
|
|
1686
|
+
X('olympe.dc.predicates.InstanceOf',olympe.dc.Da.bw);olympe.dc.Da.bw.Aa=[olympe.dc.Zb];olympe.dc.Da.nk=class{constructor(a){this.O=a}bb(){return ei(olympe.dc.Da.nk)}D(){return this.O.D()}C(a,b){return a.run(()=>olympe.j.Xa([this.O.C(a,b)],c=>olympe.j.jc(!c.valueOf()),olympe.j.ia))}gb(a){return`{"c":"${this.bb()}","a":[${this.O.gb(a)}]}`}toString(){return'Not('+this.O.toString()+')'}};X('olympe.dc.predicates.Not',olympe.dc.Da.nk);olympe.dc.Da.nk.Aa=[olympe.dc.Zb];olympe.dc.Da.$k=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])}bb(){return ei(olympe.dc.Da.$k)}D(){return this.Da.reduce((a,b)=>a.concat(b.D()),[])}C(a,b){return a.run(()=>olympe.j.Xa(this.Da.map(c=>c.C(a,b)),(...c)=>olympe.j.jc(c.some(d=>d.valueOf())),olympe.j.ia))}gb(a){const b=this.Da.map(c=>c.gb(a));return'{"c":"'+this.bb()+'","a":['+b.join(',')+']}'}toString(){return'Or('+this.Da.map(a=>
|
|
1687
|
+
a.toString()).join(',')+')'}};X('olympe.dc.predicates.Or',olympe.dc.Da.$k);olympe.dc.Da.$k.Aa=[olympe.dc.Zb];olympe.dc.Da.ro=class{constructor(a,b,c){this.source=a;this.R=b;this.O=void 0===c?!0:c}bb(){return ei(olympe.dc.Da.ro)}D(){return[this.source.C()]}zd(){return this.source}C(a,b){return a.run(()=>olympe.j.Xa([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.jc((new RegExp(d)).test(c))},olympe.j.ia))}gb(a){const b=this.source.gb(a),c=Go(a,this.R);a=Go(a,this.O);return'{"c":"'+this.bb()+'","a":['+b+','+c+','+
|
|
1688
1688
|
a+']}'}toString(){const a=Fo(this.O);return'Regex('+this.source.toString()+','+this.R+','+a+')'}};X('olympe.dc.predicates.Regex',olympe.dc.Da.ro);olympe.dc.Da.ro.Aa=[olympe.dc.Zb];olympe.dc.Da.Wz=class extends olympe.dc.Da.OB{constructor(a,b){super(a,b)}bb(){return ei(olympe.dc.Da.Wz)}T(a,b){return a<b}};X('olympe.dc.predicates.Smaller',olympe.dc.Da.Wz);olympe.dc.dg={};olympe.dc.dg.Hy=class{constructor(){this.W=this.item=this.R=this.D=null}T(){return null!==this.D}$(a){if(null!==this.D)throw Error('Manager already activated (depth='+this.D+')');this.D=a;this.O()}C(a,b,c){b=this.item;if(a&&null!==b)throw Error('The AutoManger handles only a single item.');a?(b=new olympe.dc.dg.$y(this),this.R=c,this.item=b):this.item=this.R=null;return b}O(){if(null===this.D)throw Error('Manager not activated, need to set a depth before updating ranks');if(null!==this.W){const a=
|
|
1689
1689
|
[];null!==this.item&&(0<=this.D?Oo(Po(this.item,this.D),a):a.push(this.R));this.W(a)}}Uq(a){this.W=a}};olympe.dc.dg.Hy.Aa=[olympe.dc.dg.Ec];function Do(a,b,c,d){b?a.T[d]=c:delete a.T[d];null===a.D&&(a.D=new olympe.dc.dg.$y(a.La,a));return a.D}function Po(a,b){for(let c=0;c<b;c++)if(null!==a.D)a=a.D;else break;return a}function Oo(a,b){a=a.T;if(null!==a)for(let c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.push(c)}olympe.dc.dg.$y=class{constructor(a,b){this.La=a;this.parent=b||null;this.depth=b?b.depth+1:0;this.T=Object.create(null);this.D=null}vk(){return this.La}aq(){this.La.T()?this.La.O():this.La.$(this.depth-1)}};class Qo extends olympe.dc.dg.$y{constructor(a,b,c){super(a);this.R=b;this.tag=c;this.$=this.W=this.O=!1;this.C=null}}
|
|
1690
1690
|
function Ro(a,b,c,d,e){const f=Object.create(null),g=a.na,k=a.R;let l,m,n;a.ea=!0;m=0;for(n=g.length;m<n;m++)f[g[m]]=null;g.length=0;m=c;for(n=Math.min(b.length,d);m<n;m++)l=b[m],c=k[l],void 0!==c&&(delete f[l],g.push(l),c.O||(c.O=!0,e(!0,c.tag,c.R,c)));for(l in f)Object.prototype.hasOwnProperty.call(f,l)&&(c=k[l],c.O&&(c.O=!1,e(!1,c.tag,c.R,c)),c.W&&(c.C=null,delete k[l]),delete f[l]);a.ea=!1;null!==a.D&&a.O()}
|
|
1691
1691
|
olympe.dc.dg.aD=class{constructor(){this.R={};this.na=[];this.D=null;this.ea=!1;this.W=[];this.ca=null}T(){return null!==this.D}$(a){if(null!==this.D)throw Error('Manager already activated (depth='+this.D+')');this.D=a;this.O()}O(){if(null===this.D)throw Error('Manager not activated, need to set a depth before updating ranks');if(!this.ea){var a=this.na,b=a.length,c=this.R,d;for(d=this.W.length=0;d<b;d++){var e=c[a[d]];if(0>this.D)this.W.push(e.R);else{if(!e.$){var f=e,g=this.D;f.$=!0;f.C=Po(f,g)}null!==
|
|
1692
|
-
e.C&&Oo(e.C,this.W)}}this.ca&&this.ca(this.W)}}Uq(a){this.ca=a}C(a,b,c){let d=this.R[c];a?void 0===d?(d=new Qo(this,c,b),this.R[c]=d):(d.tag=b,d.W=!1):void 0!==d&&(d.W=!0);return d}};olympe.dc.dg.aD.Aa=[olympe.dc.dg.Ec];olympe.dc.dg.Ec=class{constructor(){}C(){}T(){}$(){}O(){}Uq(){}};function So(a,b){olympe.j.Og(a.value)?(a.C=olympe.j.cg(a.value,b),Xb(a.C)||b()):b()}function To(a,b){if(olympe.j.Og(a.value)){const c=olympe.j.
|
|
1692
|
+
e.C&&Oo(e.C,this.W)}}this.ca&&this.ca(this.W)}}Uq(a){this.ca=a}C(a,b,c){let d=this.R[c];a?void 0===d?(d=new Qo(this,c,b),this.R[c]=d):(d.tag=b,d.W=!1):void 0!==d&&(d.W=!0);return d}};olympe.dc.dg.aD.Aa=[olympe.dc.dg.Ec];olympe.dc.dg.Ec=class{constructor(){}C(){}T(){}$(){}O(){}Uq(){}};function So(a,b){olympe.j.Og(a.value)?(a.C=olympe.j.cg(a.value,b),Xb(a.C)||b()):b()}function To(a,b){if(olympe.j.Og(a.value)){const c=olympe.j.yb(),d=a.R;olympe.j.Wa([a.value],e=>{d!==e.valueOf()&&(c.run(()=>So(a,b)),olympe.j.yb().destroy())})}}
|
|
1693
1693
|
class Uo extends olympe.dc.dg.$y{constructor(a,b,c){super(a);this.$=b;this.value=c;this.R=this.Qa();this.position=this.C=null;this.W=!1;this.O=null}Qa(){const a=olympe.j.Qa(this.value);return a?a.valueOf():a}destroy(){this.C&&(this.C.destroy(),this.C=null);this.O=this.value=null}mc(){return null===this.value}}
|
|
1694
1694
|
function Vo(a,b){if(!b.mc()){var c=a.D;var d=a.na,e=b.Qa(),f=0;let g=c.length,k=0,l;for(null!==b.position&&--g;g>f;){k=Math.floor((f+g)/2);l=d(c[k].R,e);if(0===l||2>g-f){0>l&&null!==b.position&&b.position<=k&&(l=d(c[g].R,e));k=0>l?g:k;break}0>l?f=k:g=k}c=k;b.R=b.Qa();if(c!==b.position){d=a.D;e=d.length;f=b.position;null===f&&(f=e);if(c<f)for(e=f;e>c;e--)d[e]=d[e-1],d[e].position=e;else for(e=f;e<c;e++)d[e]=d[e+1],d[e].position=e;d[c]=b;d[c].position=c;b.W&&a.O()}}}
|
|
1695
1695
|
function Wo(a){const b=a.na;a.D.sort((c,d)=>b(c.Qa(),d.Qa()))}
|
|
@@ -1701,29 +1701,29 @@ olympe.dc.dg.SL=class{constructor(a,b){this.db=a;this.V=b||null;this.R=Object.cr
|
|
|
1701
1701
|
class cp{constructor(a,b){this.id=a;this.parent=b||null;this.C=this.R=this.D=this.children=null;this.O=!1}ja(){return this.id}aq(a){const b=this.R;if(this.O||this.C===a||null===a)b&&b(),!b&&Xo(this)}notify(a){const b=this.D,c=this.children;if(this.O)b&&b();else if(!c[a]){a=c[a]=!0;for(let d in c)if(!c[d]){a=!1;break}a&&b&&b()}}};olympe.dc.dd={};function gp(a,b,c,d){const e=olympe.dc.eb(),f=new olympe.dc.dg.Hy,g=new olympe.dc.dg.SL(e);let k=!1;const l=Object.create(null),m=r=>{if(0<r.length)for(const t in l)r[0]===t&&d(l[t])};let n=(r,t,u,v)=>{a.ag()||a.mc()||(k||(Bo(g,()=>{v.aq();yo(g)}),v.vk().Uq(m),k=!0),r?l[u]=t:delete l[u],Co(g,u))};if(null!==c)for(let r=c.length-1;0<=r;r--)n=c[r].C(a,g,n);const p=olympe.la.cf();Kh(e,b,(r,t)=>{g.register(p,null);const u=f.C(r,b,p,null);n(r,t,p,Do(u,r,b,p))},p);a.onDestroy(()=>{Hh(e,b,p)});e.qc(b)||yo(g)}
|
|
1702
1702
|
function hp(a,b,c){const d=c.getContext(),e=olympe.dc.eb(),f=a.O(),g=ij(e,b,a.R,d.re(k=>{null!==k&&(k=f(k));null===k?c.clear():c.update(k)}));d.onDestroy(()=>jj(e,b,a.R,g))}
|
|
1703
1703
|
olympe.dc.dd.Hv=class{constructor(a,b,c){this.R=a&&a.ka?a.ka():a;this.Ra=b&&b.filter(d=>d instanceof olympe.dc.Ra.Bm||d instanceof olympe.dc.Ra.Fj)||null;this.D=c||null;this.defaultValue=null}bb(){}Fe(){}O(){}C(){return(this.Ra||[]).reduce((a,b)=>a.concat(olympe.dc.query.Relation.from(b)),[])}pj(a){this.defaultValue=a;return this}ks(){return this.Ra}Ij(){return this.D}getValue(a,b){const c=a.run(()=>olympe.j.Za(this.Fe()||Object,'AbstractProperty valueType'));null!==this.defaultValue&&M(c,this.defaultValue);
|
|
1704
|
-
b=this.D||b;null!==this.Ra?gp(a,b,this.Ra,d=>{hp(this,d,c)}):hp(this,b,c);return c.wa()}
|
|
1705
|
-
b);break;case olympe.dm.Boolean.U.ka():d=new olympe.dc.dd.Ky(c,b);break;case olympe.dm.DateTime.U.ka():d=new olympe.dc.dd.Nv(c,b)}this.D=d}bb(){return this.D.bb()}C(){return this.D.C()}getValue(a,b){return this.D.getValue(a,b)}
|
|
1706
|
-
d(g,k,l,!1),delete e[k]}}
|
|
1707
|
-
b.register(B,v,w,f,g);c(!0,y,B,H)},x.bP=t,e[w]=x,null===m||t<m)n&&n(),x()}else if(m===t){n();e[w]=!0;x=Infinity;let B=null;for(let H=Object.keys(e),G=H.length,R=0;R<G;R++){let fa=e[H[R]];fa.bP<x&&(x=fa.bP,B=fa)}B&&B()}},r=(t,u,v,w,x)=>{w?e[x]||(e[x]=!0,$o(b,v,x,f,g),$o(b,v,x,k,l),nj(d,x,this.rel,p.bind(this,t,u,v,x),v+'_val'),nj(d,x,this.D,r.bind(this,t+1,u,v),v+'_follow')):(d.D(x,this.D,v+'_follow'),d.D(x,this.rel,v+'_val'),delete e[x])};return(t,u,v,w)=>r(0,w,v,t,u)}
|
|
1708
|
-
'","a":["'+this.rel.toString()+'","'+this.D.toString()+'"]}'}toString(){return'FirstRelated('+this.rel.toString()+', '+this.D.toString()+')'}};X('olympe.dc.transformers.FirstRelated',olympe.dc.Ra.uC);olympe.dc.Ra.uC.Aa=[olympe.dc.xo];olympe.dc.Ra.Gt=class{constructor(a,b){this.start=a;this.D=b}Fe(){return null}bb(){return ei(olympe.dc.Ra.Gt)}C(a,b,c){const d=new olympe.dc.dg.aD;let e,f,g,k=!1;const l=()=>{if(void 0!==f&&void 0!==g&&void 0!==e){var n=f+g;b.D||(b.C.C=e[0>n-1?0:Math.min(e.length,n)-1]);Ro(d,e,f,n,c)}};a.run(()=>olympe.j.Wa([this.start,this.D],(n,p)=>{f=n.valueOf();g=p.valueOf();l()}));ep(b,l);const m=bp(b);ap(b,m);return(n,p,r,t)=>{k||(t.vk().Uq(u=>{e=u;fp(b,m)}),Bo(b,()=>t.aq(),m),k=!0);d.C(n,p,r,null);Co(b,r,m)}}
|
|
1704
|
+
b=this.D||b;null!==this.Ra?gp(a,b,this.Ra,d=>{hp(this,d,c)}):hp(this,b,c);return c.wa()}gb(a){const b=Go(a,this.R),c=Go(a,this.D);let d='null';this.Ra&&(d=this.Ra.map(function(e){return e.gb(a)}).join(','));return`{"c":"${this.bb()}","a":["${b}",${d},${c}]}`}toString(){const a=Fo(this.R),b=this.D?','+Fo(this.D):'';let c='';this.Ra&&(c=','+this.Ra.join(','));return this.bb().replace(/^.+\./,'')+'('+a+c+b+')'}};olympe.dc.dd.Hv.Aa=[olympe.dc.fA];olympe.dc.dd.SF=class{constructor(a,b){if(olympe.j.Og(a))throw Error('Dataflows of Property not supported by AnyProperty');const c=a.ka();var d=olympe.dc.eb();const e=d.Xd(a,olympe.dm.Property.typeRel);if(!e)throw Error('Type of property '+a+'unavailable locally, cannot proceed with AnyProperty');a=d.pq(e,olympe.dc.CloudObject.extendRel,olympe.dm.dl);d=null;switch(1<a.length?a[a.length-2]:e){case olympe.dm.String.U.ka():d=new olympe.dc.dd.zw(c,b);break;case olympe.dm.Number.U.ka():d=new olympe.dc.dd.mw(c,
|
|
1705
|
+
b);break;case olympe.dm.Boolean.U.ka():d=new olympe.dc.dd.Ky(c,b);break;case olympe.dm.DateTime.U.ka():d=new olympe.dc.dd.Nv(c,b)}this.D=d}bb(){return this.D.bb()}C(){return this.D.C()}getValue(a,b){return this.D.getValue(a,b)}gb(a){return this.D.gb(a)}toString(){return this.D.toString()}};olympe.dc.dd.SF.Aa=[olympe.dc.fA];olympe.dc.dd.Ky=class extends olympe.dc.dd.Hv{constructor(a,b,c){super(a,b,c)}bb(){return ei(olympe.dc.dd.Ky)}O(){return olympe.dc.Bd.bE}Fe(){return olympe.j.ia}};X('olympe.dc.valuedefs.BooleanProperty',olympe.dc.dd.Ky);olympe.dc.dd.mm=class{constructor(a){this.value=a}bb(){return ei(olympe.dc.dd.mm)}C(){return[]}getValue(){return this.value}gb(a){a=Go(a,this.value);return`{"c":"${this.bb()}","a":[${a}]}`}toString(){return`Constant(${Fo(this.value)})`}};X('olympe.dc.valuedefs.Constant',olympe.dc.dd.mm);olympe.dc.dd.mm.Aa=[olympe.dc.fA];olympe.dc.dd.Nv=class extends olympe.dc.dd.Hv{constructor(a,b,c){super(a,b,c)}bb(){return ei(olympe.dc.dd.Nv)}O(){return olympe.dc.Bd.cE}Fe(){return olympe.j.bc}};X('olympe.dc.valuedefs.DateTimeProperty',olympe.dc.dd.Nv);olympe.dc.dd.mw=class extends olympe.dc.dd.Hv{constructor(a,b,c){super(a,b,c)}bb(){return ei(olympe.dc.dd.mw)}O(){return olympe.dc.Bd.dE}Fe(){return olympe.j.aa}};X('olympe.dc.valuedefs.NumberProperty',olympe.dc.dd.mw);olympe.dc.dd.zw=class extends olympe.dc.dd.Hv{constructor(a,b,c){super(a,b,c)}bb(){return ei(olympe.dc.dd.zw)}O(){return olympe.dc.Bd.eE}Fe(){return olympe.j.kb}};X('olympe.dc.valuedefs.StringProperty',olympe.dc.dd.zw);olympe.dc.dd.Aw=class{bb(){return ei(olympe.dc.dd.Aw)}C(){return[]}getValue(a,b){return b}gb(){return'{"c":"'+this.bb()+'","a":[]}'}toString(){return'Tag()'}};X('olympe.dc.valuedefs.Tag',olympe.dc.dd.Aw);olympe.dc.dd.Aw.Aa=[olympe.dc.fA];olympe.dc.Ra={};olympe.dc.Ra.Ov=class{Fe(){return null}bb(){return ei(olympe.dc.Ra.Ov)}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.D||(b.C.C=f),c(!0,f,f,Do(k,!0,f,f))):(d[f]++,Zo(b,g)):void 0!==d[f]&&0>=--d[f]&&(delete d[f],c(!1,f,f,Do(k,!1,f,f)))}}gb(){return'{"c":"'+this.bb()+'"}'}toString(){return'Distinct()'}};X('olympe.dc.transformers.Distinct',olympe.dc.Ra.Ov);olympe.dc.Ra.Ov.Aa=[olympe.dc.xo];olympe.dc.Ra.Sf=class{constructor(a){this.D=a}Fe(){return null}bb(){return ei(olympe.dc.Ra.Sf)}O(){return this.D.D()}C(a,b,c){function d(f,g,k,l){l=l.valueOf();!1===l&&Zo(b,g);l!==!!e[g]&&(e[g]=l,c(l,f,g,Do(k,l,f,g)))}const e={};return(f,g,k,l)=>{const m='@'+k;if(f){let n=this.D.C(a,g);olympe.j.$b(n)&&(n=n.Ub);olympe.j.gn(n)?(b.D||void 0!==olympe.j.Qa(n)||Zo(b,k),e[m]=n,a.run(()=>{olympe.j.Wa([n],p=>{d(g,k,l,p)},'filterResultHandler')})):d(g,k,l,n)}else void 0!==e[m]&&(e[m].destroy(),delete e[m]),
|
|
1706
|
+
d(g,k,l,!1),delete e[k]}}gb(a){return'{"c":"'+this.bb()+'","a":['+this.D.gb(a)+']}'}toString(){return'Filter('+this.D.toString()+')'}};X('olympe.dc.transformers.Filter',olympe.dc.Ra.Sf);olympe.dc.Ra.Sf.Aa=[olympe.dc.xo,olympe.dc.QK];olympe.dc.Ra.uC=class{constructor(a,b,c,d){this.rel=new olympe.dc.Pc.Relation(olympe.dc.Ya(a),c||olympe.dc.Ib.DESTINATION);this.D=new olympe.dc.Pc.Relation(olympe.dc.Ya(b),d||olympe.dc.Ib.DESTINATION)}Fe(){return di(this.rel)}bb(){return ei(olympe.dc.Ra.uC)}C(a,b,c){const d=olympe.dc.eb(),e={},f=this.rel.ka(),g=this.rel.Bc(),k=this.D.ka(),l=this.D.Bc();let m=null,n=null;const p=(t,u,v,w,x,y)=>{if(x){if(x=()=>{const B=olympe.la.Yd(v+g+(f+'_'+t)+y,20),H=Do(u,!0,y,B);m=t;n=()=>{c(!1,y,B,Do(u,!1,y,B))};
|
|
1707
|
+
b.register(B,v,w,f,g);c(!0,y,B,H)},x.bP=t,e[w]=x,null===m||t<m)n&&n(),x()}else if(m===t){n();e[w]=!0;x=Infinity;let B=null;for(let H=Object.keys(e),G=H.length,R=0;R<G;R++){let fa=e[H[R]];fa.bP<x&&(x=fa.bP,B=fa)}B&&B()}},r=(t,u,v,w,x)=>{w?e[x]||(e[x]=!0,$o(b,v,x,f,g),$o(b,v,x,k,l),nj(d,x,this.rel,p.bind(this,t,u,v,x),v+'_val'),nj(d,x,this.D,r.bind(this,t+1,u,v),v+'_follow')):(d.D(x,this.D,v+'_follow'),d.D(x,this.rel,v+'_val'),delete e[x])};return(t,u,v,w)=>r(0,w,v,t,u)}gb(){return'{"c":"'+this.bb()+
|
|
1708
|
+
'","a":["'+this.rel.toString()+'","'+this.D.toString()+'"]}'}toString(){return'FirstRelated('+this.rel.toString()+', '+this.D.toString()+')'}};X('olympe.dc.transformers.FirstRelated',olympe.dc.Ra.uC);olympe.dc.Ra.uC.Aa=[olympe.dc.xo];olympe.dc.Ra.Gt=class{constructor(a,b){this.start=a;this.D=b}Fe(){return null}bb(){return ei(olympe.dc.Ra.Gt)}C(a,b,c){const d=new olympe.dc.dg.aD;let e,f,g,k=!1;const l=()=>{if(void 0!==f&&void 0!==g&&void 0!==e){var n=f+g;b.D||(b.C.C=e[0>n-1?0:Math.min(e.length,n)-1]);Ro(d,e,f,n,c)}};a.run(()=>olympe.j.Wa([this.start,this.D],(n,p)=>{f=n.valueOf();g=p.valueOf();l()}));ep(b,l);const m=bp(b);ap(b,m);return(n,p,r,t)=>{k||(t.vk().Uq(u=>{e=u;fp(b,m)}),Bo(b,()=>t.aq(),m),k=!0);d.C(n,p,r,null);Co(b,r,m)}}gb(a){return'{"c":"'+
|
|
1709
1709
|
this.bb()+'","a":['+Go(a,this.start)+','+Go(a,this.D)+']}'}toString(){return`Limit(${olympe.j.Qa(this.start)},${olympe.j.Qa(this.D)})`}};X('olympe.dc.transformers.Limit',olympe.dc.Ra.Gt);olympe.dc.Ra.Gt.Aa=[olympe.dc.xo];function ip(a){return a.nd.map(b=>b.ka())}
|
|
1710
1710
|
olympe.dc.Ra.wz=class{constructor(a,b){this.direction=b||olympe.dc.Ib.DESTINATION;this.nd=a.map(c=>new olympe.dc.Pc.Relation(c,this.direction))}Fe(){return olympe.dc.CloudObject}bb(){return ei(olympe.dc.Ra.wz)}Bc(){return this.direction}C(a,b,c){const d=olympe.dc.eb(),e=(f,g,k,l)=>nj(d,f,l,(m,n)=>{var p=l.ka();p=olympe.la.Yd(g+l.Bc()+p+n,20);const r=Do(k,m,n,p);m&&b.register(p,g,f,l.ka(),l.Bc());c(m,n,p,r)},g);return(f,g,k,l)=>{f?this.nd.forEach(m=>{$o(b,k,g,m.ka(),m.Bc());e(g,k,l,m)}):this.nd.forEach(m=>
|
|
1711
|
-
{d.D(g,m,k)})}}
|
|
1712
|
-
r,t,k,l||g);null===l&&b.register(x,r,t,k,f)}}},n=(p,r,t,u,v,w)=>{v&&!b.D&&m(p,u,w);p>=this.O?c(v,w,u,Do(t,v,w,u)):$o(b,u,w,k,l);0<=this.D&&p>=this.D||(v?e[w]||(e[w]=!0,nj(d,w,this,(x,y)=>{const B=p+1,H=olympe.la.Yd(u+l+(k+'_'+B)+y,20);n(B,w,t,H,x,y)},u)):(d.D(w,this,u),delete e[w]))};return(p,r,t,u)=>n(0,null,u,t,p,r)}
|
|
1713
|
-
X('olympe.dc.transformers.RecursiveRelated',olympe.dc.Ra.Fj);olympe.dc.Ra.Fj.Aa=[olympe.dc.xo];olympe.dc.Ra.Bm=class extends olympe.dc.Pc.Relation{constructor(a,b){super(a,b||olympe.dc.Ib.DESTINATION)}Fe(){return di(this)}bb(){return ei(olympe.dc.Ra.Bm)}fe(){return new olympe.dc.Ra.Bm(this.tag,this.direction===olympe.dc.Ib.DESTINATION?olympe.dc.Ib.ORIGIN:olympe.dc.Ib.DESTINATION)}C(a,b,c){const d=olympe.dc.eb(),e=this.ka(),f=this.Bc();return(g,k,l,m)=>{$o(b,l,k,e,f);g?nj(d,k,this,(n,p)=>{const r=olympe.la.Yd(l+f+e+p,20),t=Do(m,n,p,r);n&&b.register(r,l,k,e,f);c(n,p,r,t)},l):d.D(k,this,l)}}
|
|
1714
|
-
this.bb()+'","a":["'+this.ka()+'","'+this.Bc()+'"]}'}toString(){return'Related('+this.Bc()+this.ka()+')'}};X('olympe.dc.transformers.Related',olympe.dc.Ra.Bm);olympe.dc.Ra.Bm.Aa=[olympe.dc.xo];olympe.dc.Ra.Jr=class{constructor(a,b){this.Pe=a;this.D=void 0===b?!0:!!b}Fe(){return null}bb(){return ei(olympe.dc.Ra.Jr)}cs(){return this.Pe}O(){return[this.Pe.R()]}C(a,b,c){const d=new olympe.dc.dg.PL(a.re(this.D?this.Pe.compare.bind(this.Pe):(e,f)=>this.Pe.compare(f,e)));return(e,f,g)=>{var k=e?this.Pe.O(a,f):void 0;k=d.C(e,f,g,k);c(e,f,g,k)}}
|
|
1715
|
-
')'}};X('olympe.dc.transformers.Sort',olympe.dc.Ra.Jr);olympe.dc.Ra.Jr.Aa=[olympe.dc.xo,olympe.dc.QK];function jp(a,b,c,d,e,f){function g(n,p){if(m)for(var r=m.length-1;0<=r;r--)f=m[r].C(b,e,f);e.register(k,null);r=d.C(n,p,c,null);f(n,p,k,Do(r,n,p,k))}const k=olympe.la.cf(),l=olympe.dc.eb(),m=a.Ra;b.run(()=>olympe.j.Wa([a.D],n=>{kp(l,n,g,k);void 0===l.model(n)&&yo(e)}))}function kp(a,b,c,d){const e=b&&b.valueOf();e&&(Kh(a,e,c,d),olympe.j.
|
|
1716
|
-
olympe.dc.Ra.yo=class{constructor(a,b){this.Ra=this.D=null;a instanceof olympe.dc.Kb?(this.D=a.Ij(),this.Ra=a.TC()):(this.D=a,b&&(this.Ra=b))}Fe(){return null}bb(){return ei(olympe.dc.Ra.yo)||''}ks(){return this.Ra}Ij(){return this.D}C(a,b,c){const d=new olympe.dc.dg.aD,e=new olympe.dc.dg.Hy;let f=[],g=[],k=!1,l=!1;const m=bp(b),n=bp(b);ep(b,()=>{const p=f.concat(g);0<p.length?b.D||(b.C.C=p[p.length-1]):fp(b);Ro(d,p,0,p.length,c)});ap(b,n);jp(this,a,this.D,e,b,(p,r,t,u)=>{const v=olympe.j.
|
|
1717
|
-
v.mc()||(l||(u.vk().Uq(w=>{g=w;fp(b,n)}),Bo(b,()=>u.aq(),n),l=!0),d.C(p,r,t),Co(b,t,n))});ap(b,m);return(p,r,t,u)=>{k||(u.vk().Uq(v=>{f=v;fp(b,m)}),Bo(b,()=>u.aq(),m),k=!0);d.C(p,r,t,m);Co(b,t,m)}}
|
|
1711
|
+
{d.D(g,m,k)})}}gb(){return'{"c":"'+this.bb()+'","a":['+JSON.stringify(ip(this))+',"'+this.direction+'"]}'}toString(){return'MultiRelated('+this.Bc()+'['+ip(this).join(',')+'])'}};X('olympe.dc.transformers.MultiRelated',olympe.dc.Ra.wz);olympe.dc.Ra.wz.Aa=[olympe.dc.xo];olympe.dc.Ra.Fj=class extends olympe.dc.Pc.Relation{constructor(a,b=olympe.dc.Ib.DESTINATION,c=1,d=-1){super(a,b);this.O=c;this.D=d}Fe(){return di(this)}bb(){return ei(olympe.dc.Ra.Fj)}C(a,b,c){const d=olympe.dc.eb(),e=Object.create(null),f=olympe.dc.Ib.ORIGIN,g=olympe.dc.Ib.DESTINATION,k=this.ka(),l=this.Bc(),m=(p,r,t)=>{if(!(0<=this.D&&p>=this.D)){var u=d.tc(t,this);p+=1;for(let v=0,w=u.length;v<w;v++){if(void 0!==e[u[v]]||t===u[v])continue;const x=olympe.la.Yd(r+l+(k+'_'+p)+u[v],20);b.register(x,
|
|
1712
|
+
r,t,k,l||g);null===l&&b.register(x,r,t,k,f)}}},n=(p,r,t,u,v,w)=>{v&&!b.D&&m(p,u,w);p>=this.O?c(v,w,u,Do(t,v,w,u)):$o(b,u,w,k,l);0<=this.D&&p>=this.D||(v?e[w]||(e[w]=!0,nj(d,w,this,(x,y)=>{const B=p+1,H=olympe.la.Yd(u+l+(k+'_'+B)+y,20);n(B,w,t,H,x,y)},u)):(d.D(w,this,u),delete e[w]))};return(p,r,t,u)=>n(0,null,u,t,p,r)}gb(){return'{"c":"'+this.bb()+'","a":["'+this.ka()+'","'+this.Bc()+'",'+this.O+','+this.D+']}'}toString(){return'RecursiveRelated('+this.Bc()+this.ka()+'['+this.O+'..'+this.D+'])'}};
|
|
1713
|
+
X('olympe.dc.transformers.RecursiveRelated',olympe.dc.Ra.Fj);olympe.dc.Ra.Fj.Aa=[olympe.dc.xo];olympe.dc.Ra.Bm=class extends olympe.dc.Pc.Relation{constructor(a,b){super(a,b||olympe.dc.Ib.DESTINATION)}Fe(){return di(this)}bb(){return ei(olympe.dc.Ra.Bm)}fe(){return new olympe.dc.Ra.Bm(this.tag,this.direction===olympe.dc.Ib.DESTINATION?olympe.dc.Ib.ORIGIN:olympe.dc.Ib.DESTINATION)}C(a,b,c){const d=olympe.dc.eb(),e=this.ka(),f=this.Bc();return(g,k,l,m)=>{$o(b,l,k,e,f);g?nj(d,k,this,(n,p)=>{const r=olympe.la.Yd(l+f+e+p,20),t=Do(m,n,p,r);n&&b.register(r,l,k,e,f);c(n,p,r,t)},l):d.D(k,this,l)}}gb(){return'{"c":"'+
|
|
1714
|
+
this.bb()+'","a":["'+this.ka()+'","'+this.Bc()+'"]}'}toString(){return'Related('+this.Bc()+this.ka()+')'}};X('olympe.dc.transformers.Related',olympe.dc.Ra.Bm);olympe.dc.Ra.Bm.Aa=[olympe.dc.xo];olympe.dc.Ra.Jr=class{constructor(a,b){this.Pe=a;this.D=void 0===b?!0:!!b}Fe(){return null}bb(){return ei(olympe.dc.Ra.Jr)}cs(){return this.Pe}O(){return[this.Pe.R()]}C(a,b,c){const d=new olympe.dc.dg.PL(a.re(this.D?this.Pe.compare.bind(this.Pe):(e,f)=>this.Pe.compare(f,e)));return(e,f,g)=>{var k=e?this.Pe.O(a,f):void 0;k=d.C(e,f,g,k);c(e,f,g,k)}}gb(a){return'{"c":"'+this.bb()+'","a":['+this.Pe.gb(a)+','+JSON.stringify(this.D)+']}'}toString(){return'Sort('+this.Pe.toString()+','+JSON.stringify(this.D)+
|
|
1715
|
+
')'}};X('olympe.dc.transformers.Sort',olympe.dc.Ra.Jr);olympe.dc.Ra.Jr.Aa=[olympe.dc.xo,olympe.dc.QK];function jp(a,b,c,d,e,f){function g(n,p){if(m)for(var r=m.length-1;0<=r;r--)f=m[r].C(b,e,f);e.register(k,null);r=d.C(n,p,c,null);f(n,p,k,Do(r,n,p,k))}const k=olympe.la.cf(),l=olympe.dc.eb(),m=a.Ra;b.run(()=>olympe.j.Wa([a.D],n=>{kp(l,n,g,k);void 0===l.model(n)&&yo(e)}))}function kp(a,b,c,d){const e=b&&b.valueOf();e&&(Kh(a,e,c,d),olympe.j.yb().Ve(()=>Hh(a,e,d)))}
|
|
1716
|
+
olympe.dc.Ra.yo=class{constructor(a,b){this.Ra=this.D=null;a instanceof olympe.dc.Kb?(this.D=a.Ij(),this.Ra=a.TC()):(this.D=a,b&&(this.Ra=b))}Fe(){return null}bb(){return ei(olympe.dc.Ra.yo)||''}ks(){return this.Ra}Ij(){return this.D}C(a,b,c){const d=new olympe.dc.dg.aD,e=new olympe.dc.dg.Hy;let f=[],g=[],k=!1,l=!1;const m=bp(b),n=bp(b);ep(b,()=>{const p=f.concat(g);0<p.length?b.D||(b.C.C=p[p.length-1]):fp(b);Ro(d,p,0,p.length,c)});ap(b,n);jp(this,a,this.D,e,b,(p,r,t,u)=>{const v=olympe.j.yb();v.ag()||
|
|
1717
|
+
v.mc()||(l||(u.vk().Uq(w=>{g=w;fp(b,n)}),Bo(b,()=>u.aq(),n),l=!0),d.C(p,r,t),Co(b,t,n))});ap(b,m);return(p,r,t,u)=>{k||(u.vk().Uq(v=>{f=v;fp(b,m)}),Bo(b,()=>u.aq(),m),k=!0);d.C(p,r,t,m);Co(b,t,m)}}gb(a){const b=this.Ra?'['+this.Ra.map(c=>c.gb(a)).join(',')+']':'null';return'{"c":"'+this.bb()+'","a":['+Go(a,this.D)+','+b+']}'}toString(){const a=olympe.j.$b(this.D)?'N:'+this.D.Ub.ja():this.D.valueOf(),b=this.Ra?','+this.Ra.map(c=>c.toString()).join(','):'';return'Union('+a+b+')'}};
|
|
1718
1718
|
X('olympe.dc.transformers.Union',olympe.dc.Ra.yo);olympe.dc.Ra.yo.Aa=[olympe.dc.xo];olympe.dc.Ra.xD={z0:1,OR:-1,YH:0};olympe.dc.Ra.j2={g_:!0,I_:!1};olympe.dc.bg.ba={RJ:'dc.legacy.listdefProcessor'};olympe.dc.bg.pa={QJ:'dc.legacy.listdefsCovered'};olympe.ta.af(a=>{E(a,olympe.dc.bg.pa.QJ,!1);A(a,olympe.dc.bg.ba.RJ,olympe.dc.bg.oT,olympe.dc.query.ba.Wb,olympe.dc.ba.it,olympe.dc.transaction.ba.Pb,olympe.dc.query.ba.sw,new olympe.ta.Db(olympe.dc.pa.Ut),new olympe.ta.Db(olympe.dc.bg.pa.QJ))});olympe.ta.run([olympe.dc.bg.ba.RJ],a=>{olympe.dc.bg.vX=()=>a});function lp(a){const b=olympe.dc.eb(),c=new Map;b.mx(a).forEach(d=>{b.tc(d,olympe.dc.CloudObject.propertyRel).forEach(e=>{const f=b.name(e);c.has(f)||c.set(f,e)})});return c}
|
|
1719
1719
|
olympe.dc.CloudObject=class{constructor(a,b){this.tag=b;this.db=olympe.dc.eb();Object.defineProperty(this,'db',{enumerable:!1});this.model=null;Object.defineProperties(this,{db:{enumerable:!1}})}static yf(a,b,c,...d){b=olympe.dc.Ya(b);var e=Mh(b);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.ka()}static get(a){if(a instanceof olympe.dc.CloudObject)var b=a;else{b=olympe.dc.hO();a=olympe.dc.Ya(a);var c=b.db.model(a);c=Lh(b,c);if(null===
|
|
1720
|
-
c)throw new olympe.dc.CK(a);c=c.instantiate(a,b.D);b.C.sk([a],olympe.dc.db.Instance.C.$H);b.Pc.register(c,a);b=c}return b}static Xw(a){return olympe.dc.eb().qc(olympe.dc.Ya(a))}static kW(a,b,c){const d=olympe.dc.eb();let e=null;const f=l=>{null===e&&(e=lp(b||this));return e.has(l)?e.get(l):null},g=$n(!1),k=g.create(null!=b?b:this);void 0!==c&&k.ne(c);a.forEach((l,m)=>{d.qc(olympe.dc.Ya(m))?Z(k,m,l):(m=f(m))&&Z(k,m,l)});g.Ld((l,m)=>{l||olympe.
|
|
1720
|
+
c)throw new olympe.dc.CK(a);c=c.instantiate(a,b.D);b.C.sk([a],olympe.dc.db.Instance.C.$H);b.Pc.register(c,a);b=c}return b}static Xw(a){return olympe.dc.eb().qc(olympe.dc.Ya(a))}static kW(a,b,c){const d=olympe.dc.eb();let e=null;const f=l=>{null===e&&(e=lp(b||this));return e.has(l)?e.get(l):null},g=$n(!1),k=g.create(null!=b?b:this);void 0!==c&&k.ne(c);a.forEach((l,m)=>{d.qc(olympe.dc.Ya(m))?Z(k,m,l):(m=f(m))&&Z(k,m,l)});g.Ld((l,m)=>{l||olympe.fb.wb('dc').error(`Error occurred for transaction executed by CloudObject.createWith: ${m}`)});
|
|
1721
1721
|
return this.get(k)}static XM(){return this.get(this)}static ZA(a){return olympe.dc.nb.ZA(a)}static ce(){return olympe.dc.eb().tc(this,olympe.dc.CloudObject.propertyRel).map(a=>new olympe.dc.Pc.Property(a))}static ci(){const a=olympe.dc.eb();return a.tc(this,olympe.dc.CloudObject.Cx).map(b=>new olympe.dc.Pc.Relation(b)).concat(a.tc(this,olympe.dc.CloudObject.hN).map(b=>new olympe.dc.Pc.Relation(b,olympe.dc.Ib.ORIGIN)))}static lh(a){return olympe.dc.CloudObject.get(a)}static iO(a){var b=Lh(olympe.dc.hO(),
|
|
1722
1722
|
olympe.dc.Ya(a));b=b&&b.D;return new olympe.dc.Kb(olympe.dc.Ya(a),olympe.dc.CloudObject.instancesRel,b)}ka(){return this.tag}name(){return this.db.name(this)}bb(){return this.Td(olympe.dc.CloudObject.nameProp)}Qe(){this.model||(this.model=olympe.dc.CloudObject.get(this.db.model(this)));return this.model}query(){return olympe.dc.nb.from(this)}Fl(){return this.db.Fl(this)}zd(){return this.db.source(this)}rX(){return this.db.Ju(this)?olympe.dc.Qj().fromModel(this):null}SN(){return olympe.j.Xa([this.bb()],
|
|
1723
1723
|
a=>olympe.j.kc(a),olympe.j.kb,'getDisplayName',olympe.j.kc('('+this.toString()+')'))}Ee(){return this.model?this.model.ka():this.db.model(this)}observe(a,b,c=!0){const d='function'===typeof a.se?a.se():a;return new rxjs.Observable(e=>{const f=olympe.dc.Bd.vg(this.db.Cc(this.tag,b));c||null!==f||e.next(f);const g=ij(this.db,this.tag,b,k=>{e.next(olympe.dc.Bd.vg(k))});d.Ve(()=>{e.complete();jj(this.db,this.tag,b,g)});return()=>jj(this.db,this.tag,b,g)})}IY(a){const b='function'===typeof a.se?a.se():
|
|
1724
|
-
a;return new rxjs.Observable(c=>{const d=kj(this.db,this.tag,(e,f)=>{null===f||void 0===f?c.next([new olympe.dc.Pc.Property(e),null]):c.next([new olympe.dc.Pc.Property(e),f])});b.Ve(()=>{c.complete();lj(this.db,this.tag,d)});return()=>lj(this.db,this.tag,d)})}JY(a){return this.observe(olympe.j.
|
|
1725
|
-
olympe.dc.CloudObject)}jx(){return this.tc(olympe.dc.CloudObject.containsRel,olympe.dc.CloudObject)}Mo(a,b,c){const d=olympe.j.Za(c,'Sync valueType'),e=ij(this.db,this.tag,a,olympe.j.
|
|
1726
|
-
olympe.j.ia))}tx(a){return ac(this.Mo(a,olympe.dc.Bd.cE,olympe.j.bc))}zO(){return ac(this.Mo(olympe.dm.Color.valueProp,olympe.dc.Bd.aN,olympe.j.Color))}MA(a){return ac(this.Mo(a,olympe.dc.Bd.bN,olympe.dc.CloudObject))}tc(a,b){a=a instanceof olympe.dc.Ra.Bm?a:new olympe.dc.Ra.Bm(a.ka(),a.Bc());return new olympe.dc.Kb(this.ka(),a,b)}Lg(a,b){return this.tc(a,b).Wd()}uA(a,b){const c=this.db,d=olympe.la.cf(),e=olympe.j.
|
|
1724
|
+
a;return new rxjs.Observable(c=>{const d=kj(this.db,this.tag,(e,f)=>{null===f||void 0===f?c.next([new olympe.dc.Pc.Property(e),null]):c.next([new olympe.dc.Pc.Property(e),f])});b.Ve(()=>{c.complete();lj(this.db,this.tag,d)});return()=>lj(this.db,this.tag,d)})}JY(a){return this.observe(olympe.j.yb(),a)}get(a){return olympe.dc.Bd.vg(this.db.Cc(this.tag,a))}Cc(a){return this.get(a)}rc(a){return olympe.dc.nb.from(this).rc(a)}ql(a){return olympe.dc.Xh.from(this).rc(a)}vg(){return this}Fo(){return this.Lg(olympe.dc.CloudObject.gW,
|
|
1725
|
+
olympe.dc.CloudObject)}jx(){return this.tc(olympe.dc.CloudObject.containsRel,olympe.dc.CloudObject)}Mo(a,b,c){const d=olympe.j.Za(c,'Sync valueType'),e=ij(this.db,this.tag,a,olympe.j.yb().re(f=>{b&&null!==f&&void 0!==f&&(f=b(f));null===f||void 0===f?d.clear():d.update(f)}));d.getContext().onDestroy(()=>jj(this.db,this.tag,a,e));return d.getContext()}Td(a){return ac(this.Mo(a,olympe.dc.Bd.eE,olympe.j.kb))}zg(a){return ac(this.Mo(a,olympe.dc.Bd.dE,olympe.j.aa))}bn(a){return ac(this.Mo(a,olympe.dc.Bd.bE,
|
|
1726
|
+
olympe.j.ia))}tx(a){return ac(this.Mo(a,olympe.dc.Bd.cE,olympe.j.bc))}zO(){return ac(this.Mo(olympe.dm.Color.valueProp,olympe.dc.Bd.aN,olympe.j.Color))}MA(a){return ac(this.Mo(a,olympe.dc.Bd.bN,olympe.dc.CloudObject))}tc(a,b){a=a instanceof olympe.dc.Ra.Bm?a:new olympe.dc.Ra.Bm(a.ka(),a.Bc());return new olympe.dc.Kb(this.ka(),a,b)}Lg(a,b){return this.tc(a,b).Wd()}uA(a,b){const c=this.db,d=olympe.la.cf(),e=olympe.j.yb(),f=new Map;nj(c,this.tag,a,(k,l)=>{if(k)(k=e.run(b,olympe.dc.CloudObject.get(l)))&&
|
|
1727
1727
|
f.set(l,k);else{let m;null==(m=f.get(l))||m();f.delete(l)}},d);const g=()=>{c.D(this.tag,a,d)};e.onDestroy(g);return g}UZ(){return new olympe.dc.Kb(this.ka(),[],bi(this.ka()))}transform(...a){return(new olympe.dc.Kb(this.ka(),[],this.constructor)).transform(...a)}pg(){return this.SN()}toString(){return`CloudObject: ${JSON.stringify(this)}`}toJSON(){return this.db.qc(this.tag)?Object.assign({'#tag':this.ka(),'#type':this.Qe().name()},this.ph(!0,!0)):{'#tag':this.ka(),'#error':'The object does not exist in the local database.'}}ph(a=
|
|
1728
1728
|
!1,b=!0){const c={};this.db.ce(this,b).forEach((d,e)=>{this.db.qc(e)&&(e=a?this.db.name(e):e,c[e]=olympe.dc.Bd.vg(d))});return c}Sb(a){return a instanceof olympe.dc.CloudObject?this.ka()===a.ka():'function'===typeof a?olympe.dc.Ja.Ee(a)===this.ka():!1}Se(a){return olympe.j.Xa([a],b=>olympe.j.jc(this.Sb(b)),olympe.j.ia)}nW(a){const b=this.db;let c=!1;if(void 0===a||null===a)a=new olympe.dc.Vc,c=!0;const d=olympe.dc.Ib.ORIGIN;for(const [e,f,g]of wj(b,this))f===d?a.Zf(e,g,this):e!==olympe.dc.CloudObject.modelRel.ka()&&
|
|
1729
1729
|
a.Zf(e,this,g);a.delete(this,olympe.dc.Te.NONE);c&&a.Ld()}};olympe.dc.CloudObject.prototype.equals=olympe.dc.CloudObject.prototype.Sb;olympe.dc.CloudObject.prototype.toObject=olympe.dc.CloudObject.prototype.ph;olympe.dc.CloudObject.prototype.followSingle=olympe.dc.CloudObject.prototype.ql;olympe.dc.CloudObject.prototype.follow=olympe.dc.CloudObject.prototype.rc;olympe.dc.CloudObject.prototype.getProperty=olympe.dc.CloudObject.prototype.Cc;olympe.dc.CloudObject.prototype.get=olympe.dc.CloudObject.prototype.get;
|
|
@@ -1736,7 +1736,7 @@ z('olympe.dc.CloudObject.instancesRel',olympe.dc.CloudObject.instancesRel);olymp
|
|
|
1736
1736
|
z('olympe.dc.CloudObject.containsRel',olympe.dc.CloudObject.containsRel);olympe.dc.CloudObject.gW=Y(olympe.dc.CloudObject.U,olympe.dc.CloudObject.containsRel);olympe.dc.CloudObject.mW=olympe.dc.CloudObject.U.sb('018282d3ac0a474a0bf4');z('olympe.dc.CloudObject.deleteAlsoRel',olympe.dc.CloudObject.mW);olympe.dc.n2=olympe.dc.CloudObject;olympe.dc.CloudObject.Aa=[olympe.dc.Tk];h=olympe.dc.CloudObject.prototype;h.ka.K=new olympe.j.J(()=>String,[]);h.name.K=new olympe.j.J(()=>String,[]);h.bb.K=olympe.j.J.R;
|
|
1737
1737
|
h.Qe.K=new olympe.j.J(()=>olympe.dc.CloudObject,[]);h.zd.K=new olympe.j.J(()=>String,[]);h.rX.K=new olympe.j.J(()=>String,[]);h.SN.K=olympe.j.J.R;h.Ee.K=new olympe.j.J(()=>String,[]);h.Fo.K=new olympe.j.J(()=>olympe.dc.CloudObject,[]);h.jx.K=new olympe.j.J(()=>olympe.dc.Kb,[]);h.Mo.K=new olympe.j.J(()=>olympe.j.Node,[]);h.Td.K=olympe.j.J.R;h.zg.K=olympe.j.J.D;h.bn.K=olympe.j.J.T;h.tx.K=new olympe.j.J(()=>olympe.j.bc,[]);h.zO.K=new olympe.j.J(()=>olympe.j.Color,[]);
|
|
1738
1738
|
h.MA.K=new olympe.j.J(()=>olympe.dc.CloudObject,[]);h.tc.K=new olympe.j.J(()=>olympe.dc.Kb,[]);h.Lg.K=new olympe.j.J(()=>olympe.dc.CloudObject,[]);h.uA.K=new olympe.j.J(()=>Function,[]);h.UZ.K=new olympe.j.J(()=>olympe.dc.Kb,[]);h.transform.K=new olympe.j.J(()=>olympe.dc.Kb,[]);h.pg.K=olympe.j.J.R;h.toString.K=olympe.j.J.O;h.Sb.K=olympe.j.J.O;h.Se.K=olympe.j.J.T;h.nW.K=new olympe.j.J(()=>{},[]);olympe.dc.ba={it:'dc.DBView',cI:'dc.InstanceManager',Wb:'dc.Logger',aV:'dc.TransactionLogger',bz:'dc.FileServiceManager',zr:'dc.Router'};olympe.dc.pa={Er:'dc.tag',zp:'dc.debug',Ut:'dc.subscribeAll',jC:'dc.defaultSource',nH:'dc.fileCache',KG:'dc.dataConsumerOnly',fH:'dc.errorOnAbstractInstantiation'};
|
|
1739
|
-
olympe.ta.af(function(a){const b='object'===typeof window;E(a,olympe.dc.pa.zp,!1);E(a,olympe.dc.pa.Ut,!1);E(a,olympe.dc.pa.jC,olympe.dc.uc.SERVER);E(a,olympe.dc.pa.KG,b);E(a,olympe.dc.pa.nH,b);E(a,olympe.dc.pa.fH,!0);E(a,olympe.dc.pa.Er,olympe.la.cf());C(a,olympe.dc.ba.Wb,[olympe.
|
|
1739
|
+
olympe.ta.af(function(a){const b='object'===typeof window;E(a,olympe.dc.pa.zp,!1);E(a,olympe.dc.pa.Ut,!1);E(a,olympe.dc.pa.jC,olympe.dc.uc.SERVER);E(a,olympe.dc.pa.KG,b);E(a,olympe.dc.pa.nH,b);E(a,olympe.dc.pa.fH,!0);E(a,olympe.dc.pa.Er,olympe.la.cf());C(a,olympe.dc.ba.Wb,[olympe.fb.ba.Pb],c=>c.Yg('dc'));Ua(a,olympe.dc.ba.aV,olympe.dc.transaction.ba.Wb);Ua(a,olympe.dc.ba.it,olympe.dc.db.ba.hC);A(a,olympe.dc.ba.bz,olympe.dc.sR,olympe.dc.ba.Wb,olympe.dc.db.ba.Pb,olympe.xa.ba.Pb,olympe.dc.ba.zr,olympe.la.ba.ar,
|
|
1740
1740
|
new olympe.ta.Db(olympe.dc.pa.nH));A(a,olympe.dc.ba.zr,olympe.dc.oU,olympe.dc.ba.Wb,olympe.dc.sources.ba.ZK,olympe.dc.sources.ba.sL,olympe.dc.ba.it,olympe.host.ba.zm,new olympe.ta.Db(olympe.dc.pa.Er),new olympe.ta.Db(olympe.dc.pa.KG));A(a,olympe.dc.ba.cI,olympe.dc.$R,olympe.dc.db.ba.wC,olympe.dc.db.ba.Pb,olympe.ta.ba.xp)},'olympe.dc');
|
|
1741
1741
|
olympe.ta.run([olympe.dc.db.ba.Pb,olympe.dc.transaction.ba.Pb,olympe.dc.ba.cI,olympe.dc.ba.bz,new olympe.ta.Db(olympe.dc.pa.Er)],(a,b,c,d,e)=>{olympe.dc.XW=()=>a;olympe.dc.xx=()=>b;olympe.dc.hO=()=>c;olympe.dc.WN=()=>d;olympe.dc.uc.SELF=e},'DC singleton getter initialization');olympe.dm={};olympe.dm.$i=class extends olympe.dc.CloudObject{bb(){return this.Td(olympe.dc.CloudObject.nameProp)}C(){return olympe.j.kb.EMPTY}D(){return olympe.j.ia.ob}};olympe.dm.$i.U=olympe.dc.Ja.C('ff021000000000000002',olympe.dm.$i);olympe.dm.$i.T=olympe.dm.$i.U.fa('ff023000000000000035');olympe.dm.$i.C=olympe.dm.$i.U.sb('ff022000000000000005');olympe.dm.$i.O=ai('ff011000000000000001','AUTHENTICATED_USERS');olympe.dm.$i.R=ai('ff011000000000000002','PROJECT_RUNNER_USERS_ROLE');
|
|
1742
1742
|
olympe.dm.$i.D=ai('014831d95f83635090ea','ADMIN_USERS_ROLE');olympe.dm.$i.prototype.bb.K=olympe.j.J.R;olympe.dm.$i.prototype.C.K=olympe.j.J.R;olympe.dm.$i.prototype.D.K=olympe.j.J.T;olympe.dm.NB={NONE:0,M_:1,$Q:2,N_:4,J_:8,L_:16,K_:31,t1:32,p1:64,u1:128,q1:256,NT:512,s1:992,A0:1023};olympe.dm.User=class extends olympe.dc.CloudObject{jX(){return this.tE()}bb(){return this.tE()}tE(){return this.Td(olympe.dm.User.loginProp)}QS(){return this.Td(olympe.dm.User.D)}PS(){return olympe.j.kb.EMPTY}MX(){return this.Td(olympe.dm.User.saltProp)}XX(){return this.Td(olympe.dm.User.verifierProp)}KX(){return this.tc(olympe.dm.User.O,olympe.dm.$i)}};olympe.dm.User.U=olympe.dc.Ja.C('ff021000000000000003',olympe.dm.User);olympe.dm.User.loginProp=olympe.dm.User.U.fa('ff023000000000000001');
|
|
@@ -1748,7 +1748,7 @@ olympe.dm.BrickMetadata.qk={W_:'experimental',b2:'stable',H_:'deprecated'};olymp
|
|
|
1748
1748
|
function Nl(a,b){const c=a.query().rc(olympe.dm.li.C.fe()).rc(olympe.dm.li.D);a=a.query().rc(olympe.dm.gd.O.fe()).fq(olympe.dm.gd.C,!0).rc(olympe.sc.rg.C.fe());const d=e=>e.bj().fq(olympe.dc.CloudObject.extendRel,!0).rc(olympe.dc.CloudObject.Cx,!0).rc(olympe.dm.Relation.destinationModelRel).back(2).rc(olympe.dc.CloudObject.propertyRel,!0).rc(olympe.dm.Property.typeRel).observe(b);return rxjs.combineLatest([d(c),d(a)]).pipe(rxjs.operators.map(([e,...f])=>e.concat(...f)))}
|
|
1749
1749
|
function mm(a,b){return a.observe(b,olympe.dm.DataSource.dN).pipe(rxjs.operators.map(()=>a.Eo(olympe.dc.sources.pa.gm)),rxjs.operators.distinctUntilChanged())}
|
|
1750
1750
|
olympe.dm.DataSource=class extends olympe.dc.CloudObject{constructor(a,b,c){super(a,b);this.Xe=c;this.eN=new Map([[olympe.dc.sources.pa.oD,olympe.dm.DataSource.VY],[olympe.dc.sources.pa.gm,olympe.dm.DataSource.dN],[olympe.dc.sources.pa.wD,olympe.dm.DataSource.fZ]])}ja(){return this.tag===olympe.dm.DataSource.SERVER?olympe.dc.uc.SERVER:this.tag}Eo(a){const b=a.startsWith('data.')?a.split('.')[1]:a,c=`${'data.'}${b}`;let d,e;return null!=(e=null!=(d=olympe.ta.getParameter(`${'data.'}${this.name().toLowerCase().replace(/\W/g,
|
|
1751
|
-
'_')}.${b}`))?d:xl(this.ka(),a))?e:this.eN.has(c)?this.get(this.eN.get(c)):null}mh(){const a=this;return q(function*(){const b=olympe.dm.DataSource.Xf.bR,c=olympe.dm.DataSource.Xf.we,d=new olympe.dc.Request(olympe.dc.Request.C.Xf,a.ja());return Ih(a.Xe,d).then(e=>{let f;const g=null!=(f=null==e?void 0:e.s)?f:c;(e=null==e?void 0:e.r)&&olympe.
|
|
1751
|
+
'_')}.${b}`))?d:xl(this.ka(),a))?e:this.eN.has(c)?this.get(this.eN.get(c)):null}mh(){const a=this;return q(function*(){const b=olympe.dm.DataSource.Xf.bR,c=olympe.dm.DataSource.Xf.we,d=new olympe.dc.Request(olympe.dc.Request.C.Xf,a.ja());return Ih(a.Xe,d).then(e=>{let f;const g=null!=(f=null==e?void 0:e.s)?f:c;(e=null==e?void 0:e.r)&&olympe.fb.wb('dc').warn(`Source ${a.name()} (${a.ja()}) has encountered issues: ${e}`);return g}).catch(e=>e instanceof olympe.error.aA||e instanceof olympe.error.gD?
|
|
1752
1752
|
b:c)})}init(){const a=this;return q(function*(){if(a.constructor===olympe.dm.DataSource)throw Error(`Data source ${a.name()} (${a.tag}) has no implementation (is the file missing ?)`);})}destroy(){return q(function*(){})}healthCheck(){return q(function*(){})}executeQuery(a){return q(function*(){return olympe.dc.query.yi.$w(a)})}applyTransaction(){return q(function*(){})}uploadFileContent(){return q(function*(){throw Error('Should not try to upload files with SELF source');})}downloadFileContent(){return q(function*(){throw Error('Should not try to download files with SELF source');
|
|
1753
1753
|
})}deleteFileContent(){return q(function*(){})}};olympe.dm.DataSource.prototype.deleteFileContent=olympe.dm.DataSource.prototype.deleteFileContent;olympe.dm.DataSource.prototype.downloadFileContent=olympe.dm.DataSource.prototype.downloadFileContent;olympe.dm.DataSource.prototype.uploadFileContent=olympe.dm.DataSource.prototype.uploadFileContent;olympe.dm.DataSource.prototype.applyTransaction=olympe.dm.DataSource.prototype.applyTransaction;olympe.dm.DataSource.prototype.executeQuery=olympe.dm.DataSource.prototype.executeQuery;
|
|
1754
1754
|
olympe.dm.DataSource.prototype.healthCheck=olympe.dm.DataSource.prototype.healthCheck;olympe.dm.DataSource.prototype.destroy=olympe.dm.DataSource.prototype.destroy;olympe.dm.DataSource.prototype.init=olympe.dm.DataSource.prototype.init;olympe.dm.DataSource.prototype.getConfig=olympe.dm.DataSource.prototype.Eo;olympe.dm.DataSource.prototype.getId=olympe.dm.DataSource.prototype.ja;olympe.dm.DataSource.U=olympe.dc.Ja.C('ff021000000000000060',olympe.dm.DataSource,olympe.dc.ba.zr);
|
|
@@ -1758,10 +1758,10 @@ olympe.dm.Ze.R=olympe.dm.Ze.U.sb('016a697ef00ce7554692');Y(olympe.dc.CloudObject
|
|
|
1758
1758
|
olympe.dm.ih.zb=ai('10000000000000000002','INTERNAL_FOLDER');olympe.dm.ih.prototype.C.K=new olympe.j.J(()=>olympe.dc.Kb,[]);olympe.dm.Module=class extends olympe.dc.CloudObject{gX(){return this.Td(olympe.dm.Module.T)}zX(){return this.zg(olympe.dm.Module.W)}RS(){return this.Td(olympe.dm.Module.D)}DX(){return this.Td(olympe.dm.Module.$)}QW(){return this.Td(olympe.dm.Module.O)}AX(){return this.tc(olympe.dm.Module.R,olympe.dm.Module)}NX(){return this.tc(olympe.dm.Module.C,olympe.dm.Wi)}};olympe.dm.Module.U=olympe.dc.Ja.C('ff021000000000000040',olympe.dm.Module);olympe.dm.Module.T=olympe.dm.Module.U.fa('ff023000000000000042');
|
|
1759
1759
|
olympe.dm.Module.W=olympe.dm.Module.U.fa('ff023000000000000043');olympe.dm.Module.D=olympe.dm.Module.U.fa('ff023000000000000044');olympe.dm.Module.$=olympe.dm.Module.U.fa('ff023000000000000045');olympe.dm.Module.O=olympe.dm.Module.U.fa('ff023000000000000046');olympe.dm.Module.creationDateProp=olympe.dm.Module.U.fa('ff023000000000000049');olympe.dm.Module.C=olympe.dm.Module.U.sb('ff022000000000000013');olympe.dm.Module.R=olympe.dm.Module.U.sb('ff022000000000000014');
|
|
1760
1760
|
olympe.dm.Module.ca=ai('016a69b9bceabd815b77','OLYMPE_SERVER_MODULE');h=olympe.dm.Module.prototype;h.gX.K=olympe.j.J.R;h.zX.K=olympe.j.J.D;h.RS.K=olympe.j.J.R;h.DX.K=olympe.j.J.R;h.QW.K=olympe.j.J.R;h.AX.K=new olympe.j.J(()=>olympe.dc.Kb,[]);h.NX.K=new olympe.j.J(()=>olympe.dc.Kb,[]);olympe.dm.File=class extends olympe.dc.CloudObject{static D(a,b,c,d,e,f,g){e=e||'application/data';d=URL.createObjectURL(new Blob([d],{type:e}));g=null!=g?g:olympe.dc.Qj().fromModel(a);a=b.create(a,f).ne(g);b=olympe.j.bc.now();Z(Z(Z(Z(Z(Z(a,olympe.dm.File.fileNameProp,null!=c?c:'file'),olympe.dm.File.urlProp,d),olympe.dm.File.creationDateProp,b),olympe.dm.File.modificationDateProp,b),olympe.dm.File.mimeTypeProp,e||'application/data'),olympe.dm.File.C,!1);return a.ka()}constructor(a,b,c,d,e){super(a,
|
|
1761
|
-
b);this.C=c;this.R=d;this.O=e}qx(){return this.Td(olympe.dm.File.mimeTypeProp)}ix(a,b){void 0===a&&void 0===b||olympe.
|
|
1762
|
-
void 0===b||olympe.
|
|
1763
|
-
olympe.j.
|
|
1764
|
-
null==d||d(a);return Promise.reject(Error(a))}QE(a,b){const c=b&&olympe.j.
|
|
1761
|
+
b);this.C=c;this.R=d;this.O=e}qx(){return this.Td(olympe.dm.File.mimeTypeProp)}ix(a,b){void 0===a&&void 0===b||olympe.fb.wb('File.getContentAsBinary').warn('"onSuccess" and "onFailure" callbacks are deprecated in favor of the returned promise');const c=a&&olympe.j.yb().re(a),d=b&&olympe.j.yb().re(e=>null==b?void 0:b(`${e}`));return this.C.O(this).then(e=>{e=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);null==c||c(e);return e}).catch(e=>{null==d||d(e.message);throw e;})}yA(a,b){void 0===a&&
|
|
1762
|
+
void 0===b||olympe.fb.wb('File.getContentAsString').warn('"onSuccess" and "onFailure" callbacks are deprecated in favor of the returned promise');const c=a&&olympe.j.yb().re(a),d=b&&olympe.j.yb().re(e=>null==b?void 0:b(`${e}`));return this.ix().then(e=>{e=fb(e);null==c||c(e);return e}).catch(e=>{null==d||d(e.message);throw e;})}ds(a,b){void 0===a&&void 0===b||olympe.fb.wb('File.getContentUrl').warn('"onSuccess" and "onFailure" callbacks are deprecated in favor of the returned promise');const c=a&&
|
|
1763
|
+
olympe.j.yb().re(a),d=b&&olympe.j.yb().re(g=>null==b?void 0:b(`${g}`));a=this.get(olympe.dm.File.C);const e=this.get(olympe.dm.File.urlProp),f=this.get(olympe.dm.File.mimeTypeProp);if(a||(null==e?0:e.startsWith('blob:'))||(null==e?0:e.startsWith('stream:')))return this.C.O(this).then(g=>{g=`data:${f};base64,${this.O.C(g)}`;null==c||c(g);return g}).catch(g=>{null==d||d(g.message);throw g;});if('string'===typeof e)return null==c||c(e),Promise.resolve(e);a=`No content nor URL associated to the file ${this.ka()}`;
|
|
1764
|
+
null==d||d(a);return Promise.reject(Error(a))}QE(a,b){const c=b&&olympe.j.yb().re(b);olympe.j.us([a],d=>{const e=new olympe.dc.Vc;e.update(this,olympe.dc.CloudObject.nameProp,d);e.update(this,olympe.dm.File.fileNameProp,d);e.Ld(f=>{c&&c(f)})})}DP(a){this.get(olympe.dm.File.urlProp).startsWith('stream:')?this.C.$(this.tag).then(()=>this.DP(a)).catch(b=>this.V.error(`Error while getting the content of a streamed file: ${b}`)):this.R.W(this,a,this.get(olympe.dm.File.mimeTypeProp))}le(){return this.Td(olympe.dm.File.urlProp)}lz(){return this.Td(olympe.dm.File.fileNameProp)}TW(){return this.tx(olympe.dm.File.creationDateProp)}yX(){return this.tx(olympe.dm.File.modificationDateProp)}lY(){return this.bn(olympe.dm.File.C)}};
|
|
1765
1765
|
olympe.dm.File.prototype.saveAs=olympe.dm.File.prototype.DP;olympe.dm.File.prototype.getContentUrl=olympe.dm.File.prototype.ds;olympe.dm.File.prototype.getContentAsString=olympe.dm.File.prototype.yA;olympe.dm.File.prototype.getContentAsBinary=olympe.dm.File.prototype.ix;olympe.dm.File.U=olympe.dc.Ja.C('ff021000000000000030',olympe.dm.File,olympe.dc.ba.bz,olympe.xa.ba.Pb,olympe.la.ba.ar);olympe.dm.File.nameProp=olympe.dm.File.U.fa('ff023000000000000050');z('olympe.dm.File.nameProp',olympe.dm.File.nameProp);
|
|
1766
1766
|
olympe.dm.File.fileNameProp=olympe.dm.File.U.fa('ff023000000000000050');z('olympe.dm.File.fileNameProp',olympe.dm.File.fileNameProp);olympe.dm.File.creationDateProp=olympe.dm.File.U.fa('ff023000000000000051');z('olympe.dm.File.creationDateProp',olympe.dm.File.creationDateProp);olympe.dm.File.modificationDateProp=olympe.dm.File.U.fa('ff023000000000000055');z('olympe.dm.File.modificationDateProp',olympe.dm.File.modificationDateProp);olympe.dm.File.mimeTypeProp=olympe.dm.File.U.fa('ff023000000000000052');
|
|
1767
1767
|
z('olympe.dm.File.mimeTypeProp',olympe.dm.File.mimeTypeProp);olympe.dm.File.urlProp=olympe.dm.File.U.fa('ff023000000000000053');z('olympe.dm.File.urlProp',olympe.dm.File.urlProp);olympe.dm.File.C=olympe.dm.File.U.fa('ff023000000000000054');olympe.dm.File.U.C=olympe.dm.File.D.bind(null,olympe.dm.File);olympe.dm.File.T='application/data';olympe.dm.File.Aa=[olympe.j.File];h=olympe.dm.File.prototype;h.qx.K=olympe.j.J.R;h.ix.K=olympe.j.J.O;h.yA.K=olympe.j.J.O;h.ds.K=olympe.j.J.O;h.QE.K=olympe.j.J.O;
|
|
@@ -1775,13 +1775,13 @@ olympe.dm.Relation.W=olympe.dm.Relation.U.fa('ff023000000000000031');olympe.dm.R
|
|
|
1775
1775
|
olympe.dm.Relation.R={n1:3,JT:4,Y0:5,X0:6};olympe.dm.Relation.T=olympe.dm.NB.NT+olympe.dm.NB.$Q;h=olympe.dm.Relation.prototype;h.uX.K=olympe.j.J.R;h.JW.K=olympe.j.J.D;h.FX.K=olympe.j.J.D;h.ON.K=new olympe.j.J(()=>olympe.dc.CloudObject,[]);h.rO.K=new olympe.j.J(()=>olympe.dc.CloudObject,[]);function mp(a){a=olympe.dc.Ya(a);if(olympe.dc.eb().dn(a,olympe.dm.String))return olympe.dm.String.valueProp;switch(a){case olympe.dm.Number.U.ka():return olympe.dm.Number.valueProp;case olympe.dm.Boolean.U.ka():return olympe.dm.Boolean.valueProp;case olympe.dm.DateTime.U.ka():return olympe.dm.DateTime.valueProp;case olympe.dm.Color.U.ka():return olympe.dm.Color.valueProp;default:throw Error('Unknown primitive model: '+a);}}olympe.dm.dl=class extends olympe.dc.CloudObject{getValue(){}};
|
|
1776
1776
|
olympe.dm.dl.U=olympe.dc.Ja.C('ff021000000000000019',olympe.dm.dl);olympe.dm.String=class extends olympe.dm.dl{getValue(){return this.Td(olympe.dm.String.valueProp)}vg(){return this.get(olympe.dm.String.valueProp)}toString(){let a;return null!=(a=this.get(olympe.dm.String.valueProp))?a:''}};olympe.dm.String.U=olympe.dc.Ja.C('ff021000000000000011',olympe.dm.String);olympe.dm.String.valueProp=olympe.dm.String.U.fa('ff023000000000000026');z('olympe.dm.String.valueProp',olympe.dm.String.valueProp);olympe.dm.String.prototype.getValue.K=olympe.j.J.R;
|
|
1777
1777
|
olympe.dm.String.prototype.toString.K=olympe.j.J.O;olympe.dm.Boolean=class extends olympe.dm.dl{getValue(){return this.bn(olympe.dm.Boolean.valueProp)}vg(){return this.get(olympe.dm.Boolean.valueProp)}};olympe.dm.Boolean.U=olympe.dc.Ja.C('ff021000000000000012',olympe.dm.Boolean);olympe.dm.Boolean.valueProp=olympe.dm.Boolean.U.fa('ff023000000000000027');z('olympe.dm.Boolean.valueProp',olympe.dm.Boolean.valueProp);olympe.dm.Boolean.prototype.getValue.K=olympe.j.J.T;olympe.dm.Color=class extends olympe.dm.dl{getValue(){return this.zO()}vg(){return this.get(olympe.dm.Color.valueProp)}};olympe.dm.Color.U=olympe.dc.Ja.C('ff021000000000000017',olympe.dm.Color);olympe.dm.Color.valueProp=olympe.dm.Color.U.fa('ff023000000000000032');z('olympe.dm.Color.valueProp',olympe.dm.Color.valueProp);olympe.dm.Color.prototype.getValue.K=new olympe.j.J(()=>olympe.j.Color,[]);olympe.dm.DateTime=class extends olympe.dm.dl{getValue(){return this.tx(olympe.dm.DateTime.valueProp)}vg(){return this.get(olympe.dm.DateTime.valueProp)}};olympe.dm.DateTime.U=olympe.dc.Ja.C('ff021000000000000014',olympe.dm.DateTime);olympe.dm.DateTime.valueProp=olympe.dm.DateTime.U.fa('ff023000000000000029');z('olympe.dm.DateTime.valueProp',olympe.dm.DateTime.valueProp);olympe.dm.DateTime.prototype.getValue.K=new olympe.j.J(()=>olympe.j.bc,[]);olympe.dm.Enum=class extends olympe.dm.String{bb(){return olympe.j.Xa([super.bb(),super.getValue()],(a,b)=>''!==a.valueOf()?a:b,olympe.j.kb)}gf(){return this.zg(olympe.dm.Enum.rankProp)}};olympe.dm.Enum.U=olympe.dc.Ja.C('016cdd861b32d56c81f7',olympe.dm.Enum);olympe.dm.Enum.rankProp=olympe.dm.Enum.U.fa('017a7690c915975ea995');olympe.dm.Enum.prototype.gf.K=olympe.j.J.D;olympe.dm.Dp=class extends olympe.dm.BrickMetadata{VX(){return this.rc(olympe.dc.CloudObject.instancesRel).yv(olympe.dm.Enum.rankProp,olympe.dc.query.Hz.ASC).zf()}static create(a,b){b=a.create(olympe.dm.Dp,(new Map).set(olympe.dc.CloudObject.nameProp,b));a.Rb(olympe.dc.CloudObject.extendRel,b,olympe.dm.Enum);return b}};olympe.dm.Dp.create=olympe.dm.Dp.create;olympe.dm.Dp.prototype.getValues=olympe.dm.Dp.prototype.VX;olympe.dm.Dp.U=olympe.dc.Ja.C('017a768f966fc08ebb98',olympe.dm.Dp);olympe.dm.Number=class extends olympe.dm.dl{getValue(){return this.zg(olympe.dm.Number.valueProp)}vg(){return this.get(olympe.dm.Number.valueProp)}};olympe.dm.Number.U=olympe.dc.Ja.C('ff021000000000000013',olympe.dm.Number);olympe.dm.Number.valueProp=olympe.dm.Number.U.fa('ff023000000000000028');z('olympe.dm.Number.valueProp',olympe.dm.Number.valueProp);olympe.dm.Number.prototype.getValue.K=olympe.j.J.D;olympe.sc={};olympe.sc.ba={Wb:'sc.Logger',uw:'sc.RootContext',gl:'sc.Serializer'};olympe.sc.pa={em:'sc.app',zp:'sc.debug',LF:'sc.autostartProfiler',PG:'sc.debugger',mC:'sc.disableTheme',PRODUCTION:'sc.production',KT:'sc.onstartTimeout',YK:'sc.remoteActionTimeout'};
|
|
1778
|
-
olympe.ta.af(a=>{E(a,olympe.sc.pa.em,'');E(a,olympe.sc.pa.zp,!1);E(a,olympe.sc.pa.mC,!0);E(a,olympe.sc.pa.PRODUCTION,!1);E(a,olympe.sc.pa.KT,2E4);E(a,olympe.sc.pa.YK,3E4);E(a,olympe.sc.pa.LF,!1);C(a,olympe.sc.ba.Wb,[olympe.
|
|
1778
|
+
olympe.ta.af(a=>{E(a,olympe.sc.pa.em,'');E(a,olympe.sc.pa.zp,!1);E(a,olympe.sc.pa.mC,!0);E(a,olympe.sc.pa.PRODUCTION,!1);E(a,olympe.sc.pa.KT,2E4);E(a,olympe.sc.pa.YK,3E4);E(a,olympe.sc.pa.LF,!1);C(a,olympe.sc.ba.Wb,[olympe.fb.ba.Pb],b=>b.Yg('sc'));A(a,olympe.sc.ba.gl,olympe.sc.Nf,olympe.dc.db.ba.Pb);Ua(a,olympe.dc.sources.ba.gl,olympe.sc.ba.gl);C(a,olympe.sc.ba.uw,[new olympe.ta.Db(olympe.sc.pa.PRODUCTION)],b=>{const c=new olympe.sc.yp('root','root',null);olympe.sc.TE=c;c.set(olympe.sc.Fb.C.PRODUCTION,
|
|
1779
1779
|
b);return new olympe.sc.Fb(c)})},'olympe.sc');olympe.ta.run([olympe.sc.ba.uw,new olympe.ta.Db(olympe.Y.pa.YB)],(a,b)=>{olympe.Pj().ctx=a;olympe.Pj().oVersion=()=>b});olympe.sc.$A=()=>null!==olympe.dc.eb().Xd(void 0,olympe.sc.Runnable.W.fe());olympe.sc.w3=(a,b,c,d)=>{c=Z(Z(a.create(olympe.sc.Fh),olympe.sc.Fh.C,c||null),olympe.sc.Fh.O,d||null);a.Rb(olympe.sc.Fh.D,c,b);a.Rb(olympe.dc.CloudObject.containsRel,b,c);return c.ka()};olympe.sc.Sw=(a,b)=>{a=olympe.dc.Bd.KW(b)(a);return a instanceof olympe.sc.vi?a.C():a};
|
|
1780
|
-
olympe.sc.N3=function(a){const b=olympe.dc.CloudObject.containsRel.fe();var c=olympe.dc.Ya(a);if(void 0===c)return[];a=olympe.dc.eb();const d=[];let e=[];const f=new Set;for(;!a.me(c,olympe.dm.Ze);){f.add(c);const g=a.Xd(c,b);if(null===g)return olympe.
|
|
1780
|
+
olympe.sc.N3=function(a){const b=olympe.dc.CloudObject.containsRel.fe();var c=olympe.dc.Ya(a);if(void 0===c)return[];a=olympe.dc.eb();const d=[];let e=[];const f=new Set;for(;!a.me(c,olympe.dm.Ze);){f.add(c);const g=a.Xd(c,b);if(null===g)return olympe.fb.wb('sc').warn(`Object ${c} has no container`),[];a.me(c,olympe.sc.logic.jd)||g===a.Xd(c,olympe.sc.Runnable.W.fe())||d.push(c);c=g;if(f.has(c))throw Error(`Instance ${c} (${a.name(c)}) is part of a cyclic contain pattern`);}e.push(c);e=e.concat(a.pq(e[0],
|
|
1781
1781
|
olympe.dm.Ze.Pa));e=e.concat(a.pq(e[e.length-1],olympe.dm.ih.ca.fe()));e=e.concat(a.pq(e[e.length-1],olympe.dm.ih.$.fe()));return[...d,...e].reverse()};olympe.sc.hX=a=>{a=a&&a.valueOf()||'';return a.startsWith('image/')?olympe.sc.eo:a.startsWith('video/')?olympe.sc.cu:a.startsWith('font/')||a.startsWith('application/font-woff')?olympe.sc.Ig:olympe.dm.File};
|
|
1782
1782
|
olympe.sc.M3=a=>a instanceof olympe.sc.eo?'image/*':a instanceof olympe.sc.cu?'video/*':a instanceof olympe.sc.Ig?'font/*,application/font-woff':null;olympe.sc.ad={};function np(a,b,c,d,e=!0){return op(a.state,b,c,d,e)}function pp(a,b){var c=olympe.sc.Fb,d=a.state;a=a.se();b=olympe.dc.Ya(b);let e,f=null==(e=d.children)?void 0:e.get(b);if(!f){f=d.Co(a,void 0,b);for(d=f.getParent();d&&d.ca&&!d.id.startsWith('_');)d=d.getParent();let g;null==(g=d)||qp(g,b,f)}return new c(f)}function rp(a,b){let c,d;return(a=null!=(d=null==(c=a.state.children)?void 0:c.get(olympe.dc.Ya(b)))?d:null)?new olympe.sc.Fb(a):null}
|
|
1783
1783
|
function sp(a){let b;return null!=(b=a.Qa(olympe.sc.Fb.C.EDITION))?b:!1}function tp(a){let b;return null!=(b=a.Qa(olympe.sc.Fb.C.PRODUCTION))?b:!1}
|
|
1784
|
-
olympe.sc.Fb=class{constructor(a=olympe.sc.TE){this.state=a;this.V=olympe.
|
|
1784
|
+
olympe.sc.Fb=class{constructor(a=olympe.sc.TE){this.state=a;this.V=olympe.fb.wb('sc');this.parent=null}ja(){return this.state.ja()}getParent(){if(null===this.parent){const a=this.state.getParent();this.parent=null===a?null:new olympe.sc.Fb(a)}return this.parent}OW(a){const b=olympe.dc.eb();let c=this.getParent();if(!c)return this;const d=e=>{e=e.Mm();if('string'!==typeof e)return!1;const f=b.model(e);return f&&b.Cc(f,olympe.sc.Ac.ea)||a.modelTag&&!b.me(e,a.modelTag)?!1:!0};for(;c&&!d(c);){const e=
|
|
1785
1785
|
c.getParent();if(!e)break;c=e}return c}Mm(){return this.state.Mm()}se(){return this.state.se()}set(a,b){this.state.set(a,b);return this}Xq(a){return this.set(a,Date.now())}remove(a){this.set(a,null)}wa(a,b,c=!1){const d=olympe.dc.Ya(a),e=olympe.j.Za(null!=b?b:Object,`Get context value flow source of ${d}`);e.getContext().onDestroy(np(this,a,f=>{null===f?e.clear():e.update(f)},c?this.state.ja():void 0));return e.wa()}get(a,b=!1){a=this.Qa(a,b);return void 0!==a?a:null}has(a,b=!1){return this.state.has(a,
|
|
1786
1786
|
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=np(this,a,d.next.bind(d),c?void 0:this.state.ja(),!1);this.onDestroy(()=>{f();d.complete()});return f})}repeat(a,b){const c=up(this.state,a);a=b.subscribe(d=>{null!==d?this.set(c,d):this.remove(c)});this.rs(a.unsubscribe.bind(a));return this}gZ(a){a=a instanceof olympe.sc.Runnable?a:this.get(a);if(!a)return null;const b=this.Co(`Runner ${a.name()}`);a.run(b);return b}GB(a,b=!0,c=!1){return new Promise((d,
|
|
1787
1787
|
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.Ya(a)})\``+`on the context ${this.ja()}:\nStack: ${this.xk()}\n${f}`;f instanceof rxjs.EmptyError&&(g=`The context ${this.ja()} has been destroyed while a Promise `+`created from a call to \`waitFor(${olympe.dc.Ya(a)})\` `+`has never received any value:\nStack: ${this.xk()}`);e(Error(g))}))})}throw(a){var b=a instanceof Error?a.message:String(a);
|
|
@@ -1792,21 +1792,21 @@ olympe.sc.Fb.prototype.getEvent=olympe.sc.Fb.prototype.AA;olympe.sc.Fb.prototype
|
|
|
1792
1792
|
olympe.sc.Fb.prototype.destroy=olympe.sc.Fb.prototype.destroy;olympe.sc.Fb.prototype.getOtherContext=olympe.sc.Fb.prototype.CX;olympe.sc.Fb.prototype.onContext=olympe.sc.Fb.prototype.eB;olympe.sc.Fb.prototype.createChild=olympe.sc.Fb.prototype.Co;olympe.sc.Fb.prototype.setParentElement=olympe.sc.Fb.prototype.UP;olympe.sc.Fb.prototype['throw']=olympe.sc.Fb.prototype.throw;olympe.sc.Fb.prototype.waitFor=olympe.sc.Fb.prototype.GB;olympe.sc.Fb.prototype.runner=olympe.sc.Fb.prototype.gZ;
|
|
1793
1793
|
olympe.sc.Fb.prototype.repeat=olympe.sc.Fb.prototype.repeat;olympe.sc.Fb.prototype.observe=olympe.sc.Fb.prototype.observe;olympe.sc.Fb.prototype.has=olympe.sc.Fb.prototype.has;olympe.sc.Fb.prototype.get=olympe.sc.Fb.prototype.get;olympe.sc.Fb.prototype.remove=olympe.sc.Fb.prototype.remove;olympe.sc.Fb.prototype.trigger=olympe.sc.Fb.prototype.Xq;olympe.sc.Fb.prototype.set=olympe.sc.Fb.prototype.set;olympe.sc.Fb.prototype.getClosest=olympe.sc.Fb.prototype.OW;olympe.sc.Fb.prototype.getParent=olympe.sc.Fb.prototype.getParent;
|
|
1794
1794
|
olympe.sc.Fb.C={PRODUCTION:'__production',EDITION:'__editionMode',TRANSACTION:'__transaction',REDELIVERED:'__redelivered',xp:'__htmlContainer',Bp:'__dockableElement',MB:'__appHasStarted'};olympe.sc.oV=class extends olympe.sc.Fb{constructor(a){super(a);this.C=new olympe.j.ee('SC Update Context',super.se());const b=a.rs(()=>{b&&a.cB(b);this.C.destroy()})}se(){return this.C}rs(a,b){return this.se().onDestroy(a,null!=b?b:olympe.la.cf())}};let zp=0;function up(a,b){b=olympe.dc.Ya(b);let c,d,e,f;return null!=(f=null!=(e=null==(c=a.W)?void 0:c.get('I#'+b))?e:null==(d=a.W)?void 0:d.get('IO#'+b))?f:b}function wp(a,b){if(null===a.parent)a.V.error(`An error occurred in a brick: ${b.toString()}`);else if(a.$&&olympe.dc.eb().qc(a.$)){var c=Ap(olympe.dc.CloudObject.get(a.$));null!==c&&Bp(a,c).some(d=>{let e,f;return 0<(null==(e=a.D)?void 0:null==(f=e.get(d))?void 0:f.size)})&&!a.O.has('$'+c)?a.set(c,b):wp(a.parent,b)}else wp(a.parent,b)}
|
|
1795
|
-
function op(a,b,c,d,e=!0){if(a.C.mc()||a.C.ag())return()=>{};const f=up(a,b),g=d?olympe.dc.Ya(d):'*';b=Cp(a,'@'+g+'.'+f,c);a=d?(a=xp(a,g))?a.Qa(f,!1):void 0:a.Qa(f);void 0!==a&&c(a);if(e)olympe.j.
|
|
1795
|
+
function op(a,b,c,d,e=!0){if(a.C.mc()||a.C.ag())return()=>{};const f=up(a,b),g=d?olympe.dc.Ya(d):'*';b=Cp(a,'@'+g+'.'+f,c);a=d?(a=xp(a,g))?a.Qa(f,!1):void 0:a.Qa(f);void 0!==a&&c(a);if(e)olympe.j.yb().onDestroy(b);return b}function xp(a,b){if(b===a.id||a.R.has(b)||!b)return a;for(a=a.parent;a;){if(b===a.ja()||a.R.has(b))return a;const c=Dp(a.children,b);if(c)return c;a=a.getParent()}return null}
|
|
1796
1796
|
function Ep(a,b,c=0){null===a.ad&&(a.ad=new Map);a.ad.has(b.ja())||(a.ad.set(b.ja(),{kB:b,depth:c}),Fp(a,d=>{(-1===b.O||c<b.O)&&Ep(d,b,c+1)}),a.onDestroy(()=>{Gp(a,b.ja())}));return b.ja()}function Gp(a,b){if(null===a.ad||!a.ad.has(b))return!1;const {kB:c,depth:d}=a.ad.get(b);Fp(a,f=>{Gp(f,b)});0===d&&c.D();const e=a.ad.delete(b);0===a.ad.size&&(a.ad=null);return e}function yp(a,b){let c;return(null==(c=a.W)?void 0:c.get('IO#'+b))||null}
|
|
1797
1797
|
function Hp(a){a.C.Ve(()=>{Fp(a,c=>c.destroy())});a.C.onDestroy(()=>{void 0!==a.Qa(olympe.sc.Fb.C.TRANSACTION,!1)&&a.V.warn(`The context ${a.ja()} is being destroyed but still has unreleased transactions. You probably forgot to end a transaction.`);a.clear();let c;if(null!=(c=a.parent)){let d;null==(d=c.children)||d.delete(a.ja());let e;0===(null==(e=c.children)?void 0:e.size)&&(c.children=null)}a.R.clear()});let b;null==(b=a.parent)||Ip(b,a)}
|
|
1798
1798
|
function Dp(a,b){if(null===a)return null;if(a.has(b))return a.get(b);for(const c of a.values())if(c.ca&&!c.id.startsWith('_')&&(a=Dp(c.children,b)))return a;return null}function Jp(a,b,...c){if(null!==a.ad)for(const {kB:d,depth:e}of a.ad.values())d.process(a,b,e,...c)}function Kp(a,b){a.$=olympe.dc.Ya(b);a.ca=b.lg().$A();b.ea().forEach(c=>{a.id===c||a.R.has(c)||(a.R.add(c),qp(a,c,a))});a.W=b.W();Jp(a,olympe.sc.ad.jg.C.INIT)}
|
|
1799
1799
|
function Lp(a){a.ea=!0;let b;null==(b=a.children)||b.forEach(c=>{Lp(c)})}function Mp(a){a.ea=!1;let b;null==(b=a.children)||b.forEach(c=>{Mp(c)})}function Bp(a,b){return['*',a.id,...a.R].map(c=>`${'@'}${c}.${b}`)}function Np(a,b,c,d){c.forEach(f=>{let g,k;null==(g=a.D)||null==(k=g.get(f))||k.forEach(l=>{l(d)})});let e;null==(e=a.children)||e.forEach(f=>{!f.ea&&f.data.has(b)||Np(f,b,c,d)})}
|
|
1800
1800
|
function Cp(a,b,c){a.D||(a.D=new Map);let d=a.D.get(b);void 0===d&&(d=new Map,a.D.set(b,d));zp++;const e=zp;d.set(e,c);return()=>{const f=a.D.get(b);f&&(f.delete(e),0===f.size&&a.D.delete(b))}}function qp(a,b,c){a.O.add(b);let d,e;null==(d=a.D)||null==(e=d.get('&'+b))||e.forEach(f=>{f(c)});Fp(a,f=>{f.O.has(b)||qp(f,b,c)});a.O.delete(b)}function Fp(a,b){let c;null==(c=a.children)||c.forEach(b)}function Op(a,b){a.data.forEach((c,d)=>b(c,d.slice(1)))}
|
|
1801
1801
|
function Pp(a){var b=olympe.sc.ad.jg.D.po;const c=[];if(null!==a.ad)for(const {kB:d}of a.ad.values())d.getType()===b&&(c.push(d.ja()),d.D(),Gp(a,d.ja()))}function Ip(a,b){null===a.children&&(a.children=new Map);a.children.set(b.id,b)}
|
|
1802
|
-
olympe.sc.yp=class{constructor(a,b='no name',c=olympe.sc.TE){this.id=a;this.Cd=b;this.R=new Set;this.parent=c;this.C=new olympe.j.ee('SC Context');this.data=new Map;this.$=this.T=this.children=this.D=null;this.ca=!1;this.O=new Set;this.ea=!1;this.W=null;this.V=olympe.
|
|
1802
|
+
olympe.sc.yp=class{constructor(a,b='no name',c=olympe.sc.TE){this.id=a;this.Cd=b;this.R=new Set;this.parent=c;this.C=new olympe.j.ee('SC Context');this.data=new Map;this.$=this.T=this.children=this.D=null;this.ca=!1;this.O=new Set;this.ea=!1;this.W=null;this.V=olympe.fb.wb('sc');this.ad=null;Hp(this)}ja(){return this.id}getParent(){return this.parent}Mm(){return this.$}set(a,b){if(!this.C.ag()&&!this.C.mc()){const g=olympe.dc.Ya(a);var c,d;let k,l;a=null!=(l=null!=(k=null==(c=this.W)?void 0:c.get('O#'+
|
|
1803
1803
|
g))?k:null==(d=this.W)?void 0:d.get('IO#'+g))?l:g;c='$'+a;var e;d=null!=(e=this.data.get(c))?e:null;b=null!=b?b:null;if(e=!this.O.has(c)){a:{if('function'===typeof(null==b?void 0:b.Sb))try{var f=b.Sb(d);break a}catch(m){f=!1;break a}f=b===d}e=!f}e&&(null===b?this.data.delete(c):this.data.set(c,b),null!==this.ad&&0<this.ad.size&&Jp(this,olympe.sc.ad.jg.C.Fr,a,b),f=Bp(this,a),this.O.add(c),Np(this,c,f,b),this.O.delete(c))}}has(a,b=!1){a='$'+up(this,a);let c=this.data.has(a),d=this.getParent();if(b)for(;!c&&
|
|
1804
1804
|
d;)c=d.data.has(a),d=d.getParent();return c}Co(a,b,c){const d=null!=c?c:'_'+olympe.la.cf();if(a.mc()||a.ag())throw Error(`Try to create new child context in a destroyed context ${a.ja()}, probably because \`runner()\` is called on a destroyed context`);const e=a.run(()=>new olympe.sc.yp(d,b,this));null!==this.ad&&0<this.ad.size&&this.ad.forEach(({kB:f,depth:g})=>{(-1===f.O||g<f.O)&&Ep(e,f,g+1)});return e}eB(a,b){const c=xp(this,a);if(c)return b(c),()=>{};const d=Cp(this,'&'+a,e=>{let f;null==(f=d)||
|
|
1805
1805
|
f();b(e)});return d}Qa(a,b=!0){a='$'+up(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.ag()||this.C.mc()||(Jp(this,olympe.sc.ad.jg.C.Vy),this.C.destroy(),Jp(this,olympe.sc.ad.jg.C.yj))}rs(a,b){if(this.C.mc())a();else return zp++,b=null!=b?b:String(zp),null===this.T&&(this.T=new Map),this.T.set(b,a),b;return b||'noId'}cB(a){null!==this.T&&this.T.delete(a)}onDestroy(a){return this.mc()?(a(),'noId'):this.C.onDestroy(a)}clear(){if(!this.C.mc()){Jp(this,
|
|
1806
1806
|
olympe.sc.ad.jg.C.Ly);let a;null==(a=this.T)||a.forEach(b=>b());Jp(this,olympe.sc.ad.jg.C.My)}}mc(){return this.C.mc()}se(){return this.C}};olympe.sc.yp.prototype.getParent=olympe.sc.yp.prototype.getParent;olympe.sc.yp.C={IC:'I#',jD:'O#',SR:'IO#'};function Qp(a,b,c){return(c=c.Mm())?`${a}.${c}.${b}`:`${a}.${b}`}olympe.sc.ad.jg=class{constructor(a=-1){this.id=olympe.la.Yr();this.active=!0;this.O=a}D(){this.active=!1}ja(){return this.id}getType(){}process(){}};olympe.sc.ad.jg.C={INIT:'INIT',Fr:'SET',Ly:'CLEAR',My:'CLEARED',Vy:'DESTROY',yj:'DESTROYED'};olympe.sc.ad.jg.D={po:'REMOTE',fT:'LOCAL',mo:'PROFILER'};olympe.sc.zj=class a{constructor(){this.D=this.R=this.T=null;this.W=new Map;this.O=new Map;this.C=new olympe.la.MD(1E4);jb(this.C,b=>{Pp(b)})}$(b,c,d){const e=b.body(),f=e.c,g=this.W.get(f);switch(e.t){case olympe.sc.zj.C.ST:c=this.O.get(e.f);b.zh(c).catch(m=>{d.error('Unable to reply with paths: ',m)});break;case olympe.sc.zj.C.TT:const k=f+c,l=(m,n,p=0)=>{Op(m,(r,t)=>{let u;r instanceof olympe.dc.CloudObject?u=a.O(r):u=r;let v;r=null!=(v=m.Mm())?v:'';0<r.length&&(r+='.');n.push([`${p}.${r}${t}`,
|
|
1807
1807
|
u])})};b.IE(k).then(()=>{const m=[];l(g,m,0);Fp(g,p=>{l(p,m,1)});olympe.Y.Od.Nh(k,{t:olympe.sc.zj.C.RR,v:m,ts:0}).catch(p=>{d.error('Error publishing on service : ',p)});const n=new olympe.sc.ad.nU(k);Ep(g,n);this.C.has(g)?ib(this.C,g):this.C.add(g)}).catch(m=>{d.error('Error notifying on a contextId : ',m)});break;case olympe.sc.zj.C.VT:void 0!==g&&this.C.has(g)&&ib(this.C,g);break;case olympe.sc.zj.C.lt:void 0!==g&&(this.C.delete(g),Pp(g))}}ea(b,c,d){this.T=new olympe.Y.Od('discovery_debug_id',
|
|
1808
1808
|
c);this.T.Mu().subscribe(e=>{var f=e.body();if(f.t===olympe.sc.zj.C.aR){e=f.i;f=f.f;if(!this.O.has(f)){const g=this.ca(f,c,b);if(0!==g.length)this.O.set(f,g);else return}null===this.D&&(this.D=olympe.la.Yr(),f=new olympe.j.ee(this.D,c.se()),this.R=new olympe.Y.Od(this.D,f),this.R.Mu().subscribe(g=>{this.$(g,b,d)}));olympe.Y.Od.Nh(e,{t:olympe.sc.zj.C.rQ,n:olympe.ta.getParameter(olympe.sc.pa.PG)||'no name',a:b,s:this.D}).catch(g=>{d.error('Error publishing on draw service : '+g)})}})}ca(b,c,d){const e=
|
|
1809
|
-
[],f=olympe.dc.eb(),g=(k,l)=>{Fp(k,m=>{if(null!==m.Mm()){const n=olympe.dc.CloudObject.get(m.Mm()).ql(olympe.sc.Runnable.ca).zf();if(null!==n){const p=l+'/'+f.name(n);n.ka()===b&&(e.push([p,m.ja()]),this.W.set(m.ja(),m));g(m,p)}}})};g(c.state,f.name(d));return e}static D(b,c,d){let e=d;d instanceof olympe.dc.CloudObject&&(e=a.O(d));olympe.Y.Od.Nh(b,{t:olympe.sc.zj.C.dA,k:c,v:e,ts:Date.now()}).catch(f=>{olympe.
|
|
1809
|
+
[],f=olympe.dc.eb(),g=(k,l)=>{Fp(k,m=>{if(null!==m.Mm()){const n=olympe.dc.CloudObject.get(m.Mm()).ql(olympe.sc.Runnable.ca).zf();if(null!==n){const p=l+'/'+f.name(n);n.ka()===b&&(e.push([p,m.ja()]),this.W.set(m.ja(),m));g(m,p)}}})};g(c.state,f.name(d));return e}static D(b,c,d){let e=d;d instanceof olympe.dc.CloudObject&&(e=a.O(d));olympe.Y.Od.Nh(b,{t:olympe.sc.zj.C.dA,k:c,v:e,ts:Date.now()}).catch(f=>{olympe.fb.wb('Debugger').error('Error publishing on service : ',f)})}static O(b){if(null===b||void 0===
|
|
1810
1810
|
b)return'<null>';const c=olympe.dc.eb();if(b instanceof olympe.dc.CloudObject){var d=b.Ee();if(!c.me(d,olympe.sc.rg))return b.toString();let f=`${b.Qe().name()} (${b.ka()})`;var e=olympe.dc.CloudObject.get(d);d=olympe.dc.nb.from(e).fq(olympe.dc.CloudObject.extendRel,!0).bj().rc(olympe.dc.CloudObject.propertyRel).bj().zf();e=olympe.dc.nb.from(e).fq(olympe.dc.CloudObject.extendRel,!0).bj().rc(olympe.dc.CloudObject.Cx).bj().zf();d=d.filter(([g])=>g instanceof olympe.sc.rg);0!==d.length&&(f+='<br> ',
|
|
1811
1811
|
f+='Properties:<br>',d.forEach(([,g])=>{f+=' ';f+=' - '+c.name(g)+' : '+c.Cc(b.ka(),g)+'<br>'}));d=e.filter(([g])=>g instanceof olympe.sc.rg);0!==d.length&&(f+=' ',f+='Relations:<br>',d.forEach(([,g])=>{f+=' ';f+=' - '+c.name(g)+'<br>'}));return f}return b.toString()}};olympe.sc.zj.R='discovery_debug_id';olympe.sc.zj.C={aR:0,rQ:1,ST:2,TT:3,RR:4,dA:5,VT:6,lt:7};olympe.sc.ad.W0=class extends olympe.sc.ad.jg{constructor(a=-1){super(a);this.C=new Map}getType(){return olympe.sc.ad.jg.D.fT}process(a,b,c,...d){if(this.active&&b===olympe.sc.ad.jg.C.Fr){a=Qp(c,up(a,d[0]),a);d=d[1];let e;null==(e=this.C.get(a))||e(d)}}};function Rp(a,b,c,d=new Map){for(var e=[];b;){const n=b.Mm();if(!n)break;e.push(n);b=b.getParent()}ub(a.C,c,d.set('context',e));var f;let g;for(const n of[...e,null==(f=d)?void 0:f.get('propId'),null==(g=d)?void 0:g.get('type')])if(c=n,'string'===typeof c&&!a.R.has(c)){e=a;f=c;e.eb||(e.eb=olympe.dc.eb());d=e.eb.name(f);e=(f=e.eb.model(f))?e.eb.name(f):'';var [k,l,m]=[d,f,e];d=a.C;e=(new Map).set(c,k).set(l,m);c=(new Map).set(c,l);for(const [p,r]of e.entries())d.R.set(p,r);for(const [p,r]of c.entries())d.O.set(p,
|
|
1812
1812
|
r)}}
|
|
@@ -1815,10 +1815,10 @@ olympe.sc.logic.Me),Rp(this,a,b?e:d?f:c,new Map([['propId',r],['value',t],['type
|
|
|
1815
1815
|
const Sp={IC:'input',jD:'output',ZT:'prop',INIT:'init',Ly:'clear',My:'cleared',Vy:'destroy',yj:'destroyed',OT:'other'};olympe.sc.ad.nU=class extends olympe.sc.ad.jg{constructor(a){super(1);this.R=a;this.C=new Map;this.db=olympe.dc.eb()}getType(){return olympe.sc.ad.jg.D.po}D(){super.D();for(const a of this.C.values())a();this.C.clear()}process(a,b,c,...d){if(this.active&&b===olympe.sc.ad.jg.C.Fr&&void 0!==d[0]&&null!==d[0]){const e=Qp(c,up(a,d[0]),a),f=d[1];let g;null==(g=this.C.get(e))||g();this.C.delete(e);if(f instanceof olympe.dc.CloudObject&&f.Qe()instanceof olympe.sc.rg){const k=kj(this.db,f,()=>{olympe.sc.zj.D(this.R,
|
|
1816
1816
|
e,f)});this.C.set(e,()=>{lj(this.db,f,k)})}olympe.sc.zj.D(this.R,e,f)}}};olympe.sc.Metadata=class extends olympe.dc.CloudObject{qa(){return this.zg(this.UA())}sa(){return this.zg(this.VA())}be(){return new olympe.j.ga(this.zg(this.UA()),this.zg(this.VA()))}UA(){}VA(){}};olympe.sc.Metadata.U=olympe.dc.Ja.C('0161ae936c62f9fcd131',olympe.sc.Metadata);h=olympe.sc.Metadata.prototype;h.qa.K=olympe.j.J.D;h.sa.K=olympe.j.J.D;h.be.K=olympe.j.J.W;h.UA.K=olympe.j.J.O;h.VA.K=olympe.j.J.O;olympe.sc.Fh=class extends olympe.dc.CloudObject{D(){return this.Td(olympe.sc.Fh.O)}C(){return this.Td(olympe.sc.Fh.C)}};olympe.sc.Fh.U=olympe.dc.Ja.C('01703376c4a81c0e9d90',olympe.sc.Fh);olympe.sc.Fh.O=olympe.sc.Fh.U.fa('01703376c4a81c0e9d91');olympe.sc.Fh.C=olympe.sc.Fh.U.fa('01703376c4a81c0e9d92');olympe.sc.Fh.D=olympe.sc.Fh.U.sb('01703376c4a81c0e9d93');Y(olympe.dc.CloudObject.U,olympe.sc.Fh.D);olympe.sc.Fh.prototype.D.K=olympe.j.J.R;olympe.sc.Fh.prototype.C.K=olympe.j.J.R;olympe.sc.jf={};olympe.sc.jf.aj={qR:'folders',oL:'screenflow',ND:'ui-design',xL:'software-intelligence',ht:'data-management',I1:'projects'};olympe.sc.fl=class extends olympe.dc.CloudObject{constructor(a,b){super(a,b)}gf(){return this.zg(olympe.sc.fl.C)}};olympe.sc.fl.U=olympe.dc.Ja.C('019131fb930466a1ad79',olympe.sc.fl);olympe.sc.fl.C=olympe.sc.fl.U.fa('016d1bb681929c2cc3f1');olympe.sc.fl.D=olympe.sc.fl.U.sb('019131fb930466a1ad7a');Y(olympe.dc.CloudObject.U,olympe.sc.fl.D);olympe.sc.fl.prototype.gf.K=olympe.j.J.D;olympe.sc.Yh=class extends olympe.dm.BrickMetadata{Gi(){return olympe.sc.jf.aj.xL}C(){return this.tc(olympe.sc.Yh.C,olympe.sc.logic.Lt)}D(){return this.tc(olympe.sc.Yh.D,olympe.sc.logic.xr)}};olympe.sc.Yh.U=olympe.dc.Ja.C('011100000000000adef0',olympe.sc.Yh);olympe.sc.Yh.C=olympe.sc.Yh.U.sb('016ac4f59a2917fdef01');olympe.sc.Yh.D=olympe.sc.Yh.U.sb('016ac4f59a2917fdef02');olympe.sc.Yh.U.C=(a,b)=>co(a,b||'New function signature',olympe.sc.Yh,olympe.sc.logic.ni).ka();
|
|
1817
1817
|
olympe.sc.Yh.prototype.C.K=new olympe.j.J(()=>olympe.dc.Kb,[]);olympe.sc.Yh.prototype.D.K=new olympe.j.J(()=>olympe.dc.Kb,[]);function Tp(a,b){a.$().forEach(c=>c.call(a,b,(d,e)=>{null===e?b.remove(d):b.set(d,e)}))}function Up(a,b){b=b.filter(c=>'string'===typeof c&&a.db.me(c,olympe.sc.logic.pf));b.sort((c,d)=>{let e;c=null!=(e=a.db.Cc(c,olympe.sc.logic.pf.C,!0))?e:0;let f;d=null!=(f=a.db.Cc(d,olympe.sc.logic.pf.C,!0))?f:0;return c-d});return b}function Vp(a){return Up(a,a.db.tc(a.tag,olympe.sc.Ac.O))}function Wp(a){return Up(a,a.db.tc(a.tag,olympe.sc.Ac.D))}
|
|
1818
|
-
olympe.sc.Ac=class extends olympe.dm.BrickMetadata{Fa(a,b,c,d,e=!0){e||olympe.
|
|
1818
|
+
olympe.sc.Ac=class extends olympe.dm.BrickMetadata{Fa(a,b,c,d,e=!0){e||olympe.fb.wb('sc').error('parameter own= false ignored, investigate');return olympe.j.pj(ac(this.Mo(a,olympe.dc.Bd.Sw,c)),d)}$(){return[]}Ba(a,b){const c=this.db,d=olympe.la.tk();a=olympe.j.yb();kj(c,this.tag,a.re((e,f)=>{b(e,olympe.dc.Bd.vg(f))}),d);a.onDestroy(()=>{lj(c,this.tag,d)})}T(){return[]}O(){return rxjs.of([])}DO(){return this.tc(olympe.sc.Ac.R,olympe.sc.Runnable)}RW(){return this.tc(olympe.sc.Ac.T,olympe.sc.Runnable)}uq(){return this.db.Cc(this,
|
|
1819
1819
|
olympe.sc.Ac.ea)}$A(){return null!==this.db.Xd(this.tag,olympe.sc.Runnable.W.fe())}getInputs(){return this.tc(olympe.sc.Ac.O,olympe.sc.logic.ie)}getOutputs(){return this.tc(olympe.sc.Ac.D,olympe.sc.logic.Me)}W(){return[olympe.sc.Ac.Pa]}};olympe.sc.Ac.U=olympe.dc.Ja.C('0112000000000000def0',olympe.sc.Ac);olympe.sc.Ac.ea=olympe.sc.Ac.U.fa('01692aa71f3108454479');olympe.sc.Ac.tb=olympe.sc.Ac.U.fa('0166446c1f128ebc903a');olympe.sc.Ac.Pa=olympe.sc.Ac.U.fa('0166446c1f128ebc904e');olympe.sc.Ac.R=olympe.sc.Ac.U.sb('01692a4af82e8984742c');
|
|
1820
1820
|
olympe.sc.Ac.T=olympe.sc.Ac.U.sb('01692a4af82e8984742d');olympe.sc.Ac.ca=olympe.sc.Ac.U.sb('01692a4af82e8984742e');olympe.sc.Ac.O=olympe.sc.Ac.U.sb('01621fb84e320000f00a');olympe.sc.Ac.D=olympe.sc.Ac.U.sb('01621fb84e320000f00b');olympe.sc.Ac.md=olympe.sc.Ac.U.sb('0171838bcfed0000e00e');olympe.sc.Ac.Rc=olympe.sc.Ac.U.sb('0171838bcfed0000a00a');h=olympe.sc.Ac.prototype;h.Fa.K=olympe.j.J.O;h.DO.K=new olympe.j.J(()=>olympe.dc.Kb,[]);h.RW.K=new olympe.j.J(()=>olympe.dc.Kb,[]);h.uq.K=olympe.j.J.O;
|
|
1821
|
-
h.$A.K=olympe.j.J.O;h.getInputs.K=new olympe.j.J(()=>olympe.dc.Kb,[]);h.getOutputs.K=new olympe.j.J(()=>olympe.dc.Kb,[]);function Ap(a){let b;return null!=(b=a.lg().W().map(olympe.dc.Ya)[0])?b:null}function Xp(a){const b=new olympe.dc.Vc;a=b.create(a);b.persist(a,!1);b.Ld((d,e)=>{d||olympe.
|
|
1821
|
+
h.$A.K=olympe.j.J.O;h.getInputs.K=new olympe.j.J(()=>olympe.dc.Kb,[]);h.getOutputs.K=new olympe.j.J(()=>olympe.dc.Kb,[]);function Ap(a){let b;return null!=(b=a.lg().W().map(olympe.dc.Ya)[0])?b:null}function Xp(a){const b=new olympe.dc.Vc;a=b.create(a);b.persist(a,!1);b.Ld((d,e)=>{d||olympe.fb.wb('sc').error(`Error occurred for transaction executed by createLocalRunnable: ${e}`)});const c=olympe.dc.CloudObject.get(a);olympe.j.yb().onDestroy(()=>{const d=new olympe.dc.Vc;d.delete(c);d.Ld()});return c}
|
|
1822
1822
|
function Yp(a,b){Kp(b.state,a);Tp(a.lg(),b);const c=a.T(),d=Zp(b,c),e=[];c.forEach((f,g)=>{f===a.ca?e[0]=g:f===a.$&&(e[1]=g)});void 0!==e[0]&&void 0!==e[1]&&($p(a,b,d[e[0]],d[e[1]]),c[e[0]]=null,c[e[1]]=null);c.forEach((f,g)=>{f&&f.call(a,b,d[g])})}
|
|
1823
1823
|
function aq(a,b){let c,d,e;a.V.C()&&(e=a.db.name(a.Ee()),c=`Brick ${e} successfully run`,d=`Brick ${e} successfully cleared`);const f=bq(a,b),g=a.setupExecution(b).pipe(rxjs.operators.map(k=>{if(!b.mc()&&(b.clear(),null!==k)){const l=Array.isArray(k)?k:[k],m=new olympe.sc.oV(b.state);m.se().run(()=>q(function*(){try{yield a.update(m,l,f)}catch(n){m.throw(n)}}));return!0}return!1})).subscribe(rxjs.Subscriber.create(k=>k?a.V.debug(c):a.V.debug(d),k=>b.throw(k),()=>a.V.debug(`Brick ${e} completed`)));
|
|
1824
1824
|
b.onDestroy(g.unsubscribe.bind(g))}function cq(a,b,c,d){let e=[];const f=nj(a.db,b,c,(g,k)=>{if(g){const l=pp(d,k),m=olympe.dc.CloudObject.get(k);m instanceof olympe.sc.logic.Eh&&null!==e?e.push(()=>m.run(l)):m.run(l)}else{let l;null==(l=rp(d,k))||l.destroy()}});e.forEach(g=>g());e=null;d.se().onDestroy(a.db.D.bind(a.db,b,c,f))}function bq(a,b){return a.lg().T(b)}
|
|
@@ -1829,8 +1829,8 @@ b,c,d,e=!0){a=b.wa(a,c,e);void 0!==d&&olympe.j.pj(a,d);return a}O(a,b,c,d,e){oly
|
|
|
1829
1829
|
e.ka(),g=np(a,eq(d,f),k=>{b(f,k)});return()=>{g();b(f,null)}}))}};olympe.sc.Runnable.U=gi(olympe.dc.Ja.C('01130000000000ca1100',olympe.sc.Runnable));olympe.sc.Runnable.ca=olympe.sc.Runnable.U.sb('01692a4af82e8984742b');olympe.sc.Runnable.W=olympe.sc.Runnable.U.sb('01756a18d4921c103111');olympe.sc.Runnable.T3=Y(olympe.sc.Runnable.U,olympe.sc.Ac.R);olympe.sc.Runnable.W3=Y(olympe.sc.Runnable.U,olympe.sc.Ac.T);olympe.sc.Runnable.Z3=Y(olympe.sc.Runnable.U,olympe.sc.Ac.ca);Y(olympe.sc.Ac.U,olympe.sc.Runnable.ca);
|
|
1830
1830
|
Y(olympe.sc.Ac.U,olympe.sc.Runnable.W);olympe.sc.Runnable.prototype.lg.K=new olympe.j.J(()=>olympe.sc.Ac,[]);olympe.sc.Runnable.prototype.Fa.K=new olympe.j.J(()=>Object,[]);olympe.sc.Runnable.prototype.O.K=olympe.j.J.O;function fq(a){if(a){if('string'===typeof a)return a;if(a instanceof olympe.sc.vi)return(a=a.D())?a.valueOf():null;if('function'===typeof a.ka)return a.ka()}return null}olympe.sc.vi=class extends olympe.dc.CloudObject{D(){return this.db.tc(this,olympe.sc.vi.C)[0]}C(){const a=fq(this);return olympe.dc.CloudObject.get(a)}vg(){return this.C().vg()}toString(){const a=fq(this);let b;a&&(b=this.db.name(a));return b||super.toString()}};olympe.sc.vi.U=olympe.dc.Ja.C('0163c9ae01f2d6e9ca49',olympe.sc.vi);
|
|
1831
1831
|
olympe.sc.vi.C=olympe.sc.vi.U.sb('0169b5a8a33144fb0b49');Y(olympe.dc.CloudObject.U,olympe.sc.vi.C);olympe.sc.vi.prototype.D.K=new olympe.j.J(()=>String,[]);olympe.sc.vi.prototype.C.K=new olympe.j.J(()=>olympe.dc.CloudObject,[]);olympe.sc.WG=class extends olympe.dm.Ze{Gi(){return olympe.sc.jf.aj.ht}};olympe.sc.WG.U=olympe.dc.Ja.C('0163a68ce44f3d1fa84c',olympe.sc.WG);olympe.sc.rg=class extends olympe.dm.BrickMetadata{};olympe.sc.rg.U=olympe.dc.Ja.C('016324fde11a836f76c2',olympe.sc.rg);olympe.sc.rg.C=olympe.sc.rg.U.sb('016324fde11a836087c2');olympe.sc.rg.U.C=function(a,b){return co(a,null!=b?b:'New type',olympe.sc.rg).ka()};let gq=null,hq=null,iq=[];
|
|
1832
|
-
function jq(a,b){gq=a;const c=olympe.j.
|
|
1833
|
-
g()}))})}olympe.
|
|
1832
|
+
function jq(a,b){gq=a;const c=olympe.j.yb();return olympe.dc.Xh.from(a).rc(olympe.sc.Eb.Rg.C).rc(olympe.sc.Vn.C.fe()).Ld({Vr:'__code-as-data__'}).then(d=>{let e;null==(e=iq)||e.forEach(f=>f());iq=null;hq=d;if(null!==d){if(b){const f=olympe.dc.eb();return new Promise(g=>{Ek(c,d,k=>{k=f.Ju(k)?k:f.model(k);return null!==k&&f.me(k,olympe.sc.rg)},{zB:!0}).subscribe(rxjs.Subscriber.create(()=>{g()},()=>{olympe.fb.wb('sc').error('Impossible to load the business container for the application',a,'maybe are you offline?');
|
|
1833
|
+
g()}))})}olympe.fb.wb('sc').debug("Found business container but won't load it's content according to configuration.")}else olympe.fb.wb('sc').info(`No business container for application ${a}. You probably miss permissions.`);return Promise.resolve()}).catch(d=>{iq=null;throw d;})}function Fh(){return null===iq?Promise.resolve():new Promise(a=>{iq.push(()=>a())})}olympe.sc.Vn=class extends olympe.dc.CloudObject{};olympe.sc.Vn.U=olympe.dc.Ja.C('017b3aa8fae1e3d044dc',olympe.sc.Vn);olympe.sc.Vn.C=olympe.sc.Vn.U.sb('017b3aa8fd1659291b92');
|
|
1834
1834
|
olympe.sc.Vn.D=olympe.sc.Vn.U.sb('017b3aa8fe7ec3fd52f2');olympe.sc.Map=class extends olympe.dc.CloudObject{};olympe.sc.Map.U=olympe.dc.Ja.C('018119241abce0e5696e',olympe.sc.Map);olympe.sc.Ce=class extends olympe.sc.Map{};olympe.sc.Ce.U=olympe.dc.Ja.C('01631aacd8276ea98490',olympe.sc.Ce);olympe.sc.File=class extends olympe.dm.File{static hW(a,b,c,d,e,f){e=a.create(olympe.sc.File,new Map,e,f);olympe.sc.File.Pd(a,e,b,c,d);return e}static iW(a,b,c,d,e,f){e=a.create(olympe.sc.File,new Map,e,f);olympe.sc.File.oF(a,e,b,c,d);return e}static Pd(a,b,c,d,e){e=null!=e?e:'application/data';d=URL.createObjectURL(new Blob([d],{type:e}));olympe.sc.File.oF(a,b,c,d,e)}static oF(a,b,c,d,e){const f=olympe.dc.eb(),g=f.qc(b);var k;const l=null!=(k=a.model(b))?k:olympe.sc.File;if(null===l||!f.dn(l,olympe.dm.File))throw Error(`Try to set the content of an object which is not a file: ${b}`);
|
|
1835
1835
|
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.Cc(b,olympe.dm.File.urlProp)||c.set(olympe.dm.File.creationDateProp,k).set(olympe.dm.File.C,!1);a.mP(b,c)}};olympe.sc.File.setURLContent=olympe.sc.File.oF;olympe.sc.File.setContent=olympe.sc.File.Pd;olympe.sc.File.createFromURL=olympe.sc.File.iW;olympe.sc.File.createFromContent=olympe.sc.File.hW;
|
|
1836
1836
|
olympe.sc.File.U=$h(olympe.dm.File,'ff021000000000000031',olympe.sc.File);olympe.sc.eo=class extends olympe.sc.File{D(){const a=olympe.j.Za(olympe.j.kb);this.ds(b=>{a.update(olympe.j.kc(b))});return a.wa()}};olympe.sc.eo.U=$h(olympe.sc.File,'01644b6297305d62fca2',olympe.sc.eo);olympe.sc.eo.U.C=olympe.sc.File.D.bind(null,olympe.sc.eo);olympe.sc.eo.prototype.D.K=olympe.j.J.R;olympe.sc.Ig=class extends olympe.sc.File{Di(){return this.Td(olympe.sc.Ig.fontFamilyProp)}Cl(){return this.Td(olympe.sc.Ig.O)}Ei(){return this.zg(olympe.sc.Ig.R)}};olympe.sc.Ig.U=$h(olympe.sc.File,'01647e113043c637b541',olympe.sc.Ig);olympe.sc.Ig.fontFamilyProp=olympe.sc.Ig.U.fa('01647e35ecd24ef0b88d');olympe.sc.Ig.O=olympe.sc.Ig.U.fa('01647e677f5d1cfbdf42');olympe.sc.Ig.R=olympe.sc.Ig.U.fa('01647e6780999bf8bd25');
|
|
@@ -1877,56 +1877,56 @@ let p;f=null!=(p=null==(l=b.lh(k))?void 0:l.Qe())?p:c.model(k)}if(c.dn(f,olympe.
|
|
|
1877
1877
|
olympe.sc.Wq.aW=a=>{const b=a.C,c=olympe.dc.eb(),d=new Set;for(var e of b.je.values()){a=e.tag();let f;const g=null!=(f=e.Qe())?f:c.model(a);if(null!==g&&e.Qb()&&(d.has(g)||c.me(g,olympe.sc.rg))){d.add(g);const k=Array.from(e.Oa()).flatMap(([l,,m,n])=>n&&l!==olympe.dc.Mf.uh?[m]:[]).find(l=>{let m,n;const p=null!=(n=null==(m=b.lh(l))?void 0:m.Qe())?n:c.model(l);return!p||!(d.has(p)||c.me(p,olympe.sc.rg))});if(void 0!==k){let l,m,n;e=null!=(n=null!=(m=null==(l=b.lh(k))?void 0:l.Qe())?m:c.model(k))?
|
|
1878
1878
|
n:'unknown';throw Error(`Try to link an instance (${a}) of DataType ${c.name(g)} (${g}) to an instance which is not (${k}) a DataType: ${c.name(e)} (${e})`);}}}};olympe.sc.Wq.TY=a=>{var b=a.C;const c=olympe.dc.eb();for(const d of b.yg()){b=d.tag();const e=d.Qe();if(e&&!c.me(e,olympe.sc.rg)&&Rn(a,b))throw Error(`You are trying to persist an instance of : ${c.name(e)} (${e}), but only instances of DataType can be persisted`);}};
|
|
1879
1879
|
olympe.ta.run([olympe.dc.transaction.ba.Pb],a=>{jo(jo(jo(a,olympe.sc.Wq.aW,'businessDataRelations'),olympe.sc.Wq.rY,'linkBusinessContainer'),olympe.sc.Wq.EY,'noBusinessComplexProperty')});olympe.sc.Py=class extends olympe.dm.BrickMetadata{Gi(){return olympe.sc.jf.aj.ht}};olympe.sc.Py.U=olympe.dc.Ja.C('01645fe6873aeea59e64',olympe.sc.Py);olympe.sc.Py.C=olympe.sc.Py.U.sb('017ed8ac775f48d4d589');olympe.sc.CG=class extends olympe.dm.Ze{Gi(){return olympe.sc.jf.aj.ht}};olympe.sc.CG.U=olympe.dc.Ja.C('0163a68ce44f3d1fa95d',olympe.sc.CG);olympe.sc.ft=class extends olympe.dm.BrickMetadata{};olympe.sc.ft.U=olympe.dc.Ja.C('016324fde11a836f77d3',olympe.sc.ft);olympe.sc.ft.C=olympe.sc.rg.U.sb('016324fde11a836088d3');olympe.sc.ft.U.C=(a,b)=>co(a,null!=b?b:'New config type',olympe.sc.ft).ka();olympe.sc.D_=class{};olympe.sc.Xy=class extends olympe.dm.BrickMetadata{Gi(){return olympe.sc.jf.aj.ht}};olympe.sc.Xy.U=olympe.dc.Ja.C('017dc8d6c8fd8c8bd2ff',olympe.sc.Xy);olympe.sc.Xy.U.C=(a,b)=>co(a,null!=b?b:'New data connector',olympe.sc.Xy,olympe.dm.DataSource).ka();function eq(a,b){return`delegated^${olympe.dc.Ya(a)}^${olympe.dc.Ya(b)}`}olympe.sc.hg=class extends olympe.sc.Runnable{Oa(){return this.tc(olympe.sc.hg.O,olympe.sc.Runnable)}Ba(){return this.tc(olympe.sc.hg.C,olympe.dm.Property)}};olympe.sc.hg.U=gi(olympe.dc.Ja.C('016c2d996d9ca27fa9d8',olympe.sc.hg));olympe.sc.hg.O=olympe.sc.hg.U.sb('016c3cb7742ec9309e0b');olympe.sc.hg.C=olympe.sc.hg.U.sb('016c42d3454636f90533');olympe.sc.hg.prototype.Oa.K=new olympe.j.J(()=>olympe.dc.Kb,[]);
|
|
1880
|
-
olympe.sc.hg.prototype.Ba.K=new olympe.j.J(()=>olympe.dc.Kb,[]);olympe.sc.iH=class extends olympe.dm.Ze{Gi(){return olympe.sc.jf.aj.ht}};olympe.sc.iH.U=olympe.dc.Ja.C('017a7a9ff057958e5678',olympe.sc.iH);olympe.sc.Qv=class extends olympe.dm.Enum{static create(a,b,c,d,e){const f=olympe.dc.eb();e=void 0!==e?e:f.qc(b)&&f.yg(b).length||0;c=(new Map).set(olympe.dm.String.valueProp,c).set(olympe.dc.CloudObject.nameProp,d||c).set(olympe.dm.Enum.rankProp,e);return a.create(b,c)}};olympe.sc.Qv.create=olympe.sc.Qv.create;olympe.sc.Qv.U=olympe.dc.Ja.C('016cdd861b32d56c8208',olympe.sc.Qv);olympe.sc.iK=class extends olympe.dm.Ze{Gi(){return olympe.sc.jf.aj.ND}};olympe.sc.iK.U=olympe.dc.Ja.C('01644b6d4543b344b857',olympe.sc.iK);olympe.sc.jK=class extends olympe.dc.CloudObject{};olympe.sc.jK.U=olympe.dc.Ja.C('0162f672366be5ca7a86',olympe.sc.jK);const wq={gH:30};olympe.sc.Nf=class extends olympe.dc.sources.Nf{D(a){return a instanceof olympe.sc.logic.Error?$e(wq.gH,{c:a.hx(),m:a.message,s:a.xk()}):super.D(a)}C(a){return(null==a?void 0:a.t)===wq.gH?(a=a.v,vp(a.m,a.c,a.s)):super.C(a)}R(a){super.R(a);if(this.db.model(a)===olympe.sc.vi.U.ka()){const b=olympe.sc.vi.C;this.O.get(a).r.push({r:b.ka(),o:a,d:this.db.Xd(a,b)})}return a}};function xq(a,b,c,d){const e=eq(a,c);olympe.j.Wa([d],f=>{b.set(e,f)});olympe.j.
|
|
1881
|
-
'string'===typeof c?c:olympe.dc.Qj().fromModel(a);a=this.C.create(a,d).ne(c);for(const [e,f]of b)Z(a,e,f);b=a.ka();this.D.push(b);return b}update(a,b,c){this.C.update(a,b,c);return this}mP(a,b){a=this.C.update(a);for(const [c,d]of b)b=d,a.Mi.set(olympe.dc.Ya(c),b);return this}delete(a){this.C.delete(a);return this}Rb(a,b,c){this.C.Rb(a,b,c);return this}Zf(a,b,c){this.C.Zf(a,b,c);return this}hE(a,b){this.C.hE(a,b);return this}persist(a,b=!0){this.C.persist(a,b);return this}SY(a,b=!0){olympe.
|
|
1880
|
+
olympe.sc.hg.prototype.Ba.K=new olympe.j.J(()=>olympe.dc.Kb,[]);olympe.sc.iH=class extends olympe.dm.Ze{Gi(){return olympe.sc.jf.aj.ht}};olympe.sc.iH.U=olympe.dc.Ja.C('017a7a9ff057958e5678',olympe.sc.iH);olympe.sc.Qv=class extends olympe.dm.Enum{static create(a,b,c,d,e){const f=olympe.dc.eb();e=void 0!==e?e:f.qc(b)&&f.yg(b).length||0;c=(new Map).set(olympe.dm.String.valueProp,c).set(olympe.dc.CloudObject.nameProp,d||c).set(olympe.dm.Enum.rankProp,e);return a.create(b,c)}};olympe.sc.Qv.create=olympe.sc.Qv.create;olympe.sc.Qv.U=olympe.dc.Ja.C('016cdd861b32d56c8208',olympe.sc.Qv);olympe.sc.iK=class extends olympe.dm.Ze{Gi(){return olympe.sc.jf.aj.ND}};olympe.sc.iK.U=olympe.dc.Ja.C('01644b6d4543b344b857',olympe.sc.iK);olympe.sc.jK=class extends olympe.dc.CloudObject{};olympe.sc.jK.U=olympe.dc.Ja.C('0162f672366be5ca7a86',olympe.sc.jK);const wq={gH:30};olympe.sc.Nf=class extends olympe.dc.sources.Nf{D(a){return a instanceof olympe.sc.logic.Error?$e(wq.gH,{c:a.hx(),m:a.message,s:a.xk()}):super.D(a)}C(a){return(null==a?void 0:a.t)===wq.gH?(a=a.v,vp(a.m,a.c,a.s)):super.C(a)}R(a){super.R(a);if(this.db.model(a)===olympe.sc.vi.U.ka()){const b=olympe.sc.vi.C;this.O.get(a).r.push({r:b.ka(),o:a,d:this.db.Xd(a,b)})}return a}};function xq(a,b,c,d){const e=eq(a,c);olympe.j.Wa([d],f=>{b.set(e,f)});olympe.j.yb().Ve(()=>{b.remove(e)})}olympe.sc.Ir=class extends olympe.sc.hg{};olympe.sc.Ir.U=olympe.dc.Ja.C('016d3f37610ae4fc3962',olympe.sc.Ir);olympe.sc.Text=class extends olympe.dm.String{};olympe.sc.Text.U=olympe.dc.Ja.C('016cfca73e63f9ab5ba4',olympe.sc.Text);olympe.sc.Vc=class{constructor(a=!0){a=$n(a);a.T=!0;var b=olympe.sc.Wq.TY;let c;(null==(c=olympe.ta.getParameter(olympe.dc.transaction.pa.lC))?0:c.includes('persistenceBusinessDataOnly'))||a.W.push(b);this.C=a;this.D=[];this.source=null}static from(a){const b=olympe.sc.Fb.C.TRANSACTION;return a.has(b,!0)?a.get(b,!0):new olympe.sc.Vc}static process(a,b){return a.has(olympe.sc.Fb.C.TRANSACTION,!0)?Promise.resolve(!1):b.Ld().then(()=>!0)}ja(){return this.C.ja()}create(a,b=new Map,c=this.source,d){c=
|
|
1881
|
+
'string'===typeof c?c:olympe.dc.Qj().fromModel(a);a=this.C.create(a,d).ne(c);for(const [e,f]of b)Z(a,e,f);b=a.ka();this.D.push(b);return b}update(a,b,c){this.C.update(a,b,c);return this}mP(a,b){a=this.C.update(a);for(const [c,d]of b)b=d,a.Mi.set(olympe.dc.Ya(c),b);return this}delete(a){this.C.delete(a);return this}Rb(a,b,c){this.C.Rb(a,b,c);return this}Zf(a,b,c){this.C.Zf(a,b,c);return this}hE(a,b){this.C.hE(a,b);return this}persist(a,b=!0){this.C.persist(a,b);return this}SY(a,b=!0){olympe.fb.wb('dc').warn('Transaction#persistInstance() has been deprecated. Please use Transaction#persist() instead.');
|
|
1882
1882
|
return this.persist(a,b)}ne(a){this.source=a;return this}model(a){return this.C.model(a)}merge(a){ao(this.C,a.C);return this}YD(a){this.C.YD(a);return this}Ld(){return new Promise((a,b)=>{this.C.Ld((c,d)=>{c?a(new olympe.sc.Dw(this.D)):b(d)})})}iE(){return new Promise((a,b)=>{this.C.iE((c,d)=>{c?a(new olympe.sc.Dw(this.D)):b(d)})})}};olympe.sc.Vc.prototype.executeAsLarge=olympe.sc.Vc.prototype.iE;olympe.sc.Vc.prototype.execute=olympe.sc.Vc.prototype.Ld;olympe.sc.Vc.prototype.afterExecution=olympe.sc.Vc.prototype.YD;
|
|
1883
1883
|
olympe.sc.Vc.prototype.merge=olympe.sc.Vc.prototype.merge;olympe.sc.Vc.prototype.model=olympe.sc.Vc.prototype.model;olympe.sc.Vc.prototype.setSource=olympe.sc.Vc.prototype.ne;olympe.sc.Vc.prototype.persistInstance=olympe.sc.Vc.prototype.SY;olympe.sc.Vc.prototype.persist=olympe.sc.Vc.prototype.persist;olympe.sc.Vc.prototype.deleteAllRelations=olympe.sc.Vc.prototype.hE;olympe.sc.Vc.prototype.deleteRelation=olympe.sc.Vc.prototype.Zf;olympe.sc.Vc.prototype.createRelation=olympe.sc.Vc.prototype.Rb;
|
|
1884
1884
|
olympe.sc.Vc.prototype['delete']=olympe.sc.Vc.prototype.delete;olympe.sc.Vc.prototype.multiUpdate=olympe.sc.Vc.prototype.mP;olympe.sc.Vc.prototype.update=olympe.sc.Vc.prototype.update;olympe.sc.Vc.prototype.create=olympe.sc.Vc.prototype.create;olympe.sc.Vc.prototype.getId=olympe.sc.Vc.prototype.ja;olympe.sc.Vc.process=olympe.sc.Vc.process;olympe.sc.Vc.from=olympe.sc.Vc.from;olympe.sc.Dw=class{constructor(a){this.C=a}SW(){return this.C.map(olympe.dc.CloudObject.get)}};olympe.sc.Dw.prototype.getCreatedObjects=olympe.sc.Dw.prototype.SW;olympe.Bf={};olympe.Bf.TF=class{run(){}};function yq(a,b='default'){return a.C===b}
|
|
1885
1885
|
olympe.Bf.Ec=class{constructor(a,b){this.C=a;this.V=b;this.D=null;this.O='';this.V.info('HC Manager will execute application registered as:',this.C)}Qq(a,b,c=''){b||(b='default');b===this.C?(null===this.D?this.V.log('Application',c,'designated to be launched'):this.V.log('OVERRIDE: Application',c,'designated to be launched'),this.D=a,this.O=c):this.V.debug('ignoring application:'+c+' as it is registered under name '+b+' and not '+this.C)}run(){null!==this.D?(this.V.info('Running application:',this.O),
|
|
1886
|
-
this.D.run()):this.V.error('No app registered under name: '+this.C)}};olympe.Bf.Qq=function(a,b,c='default'){const d=a.
|
|
1886
|
+
this.D.run()):this.V.error('No app registered under name: '+this.C)}};olympe.Bf.Qq=function(a,b,c='default'){const d=a.wb();c?d.debug('Pre-registering application '+b+' under name '+c+' (use '+olympe.Bf.pa.em+'='+c+' to start it)'):d.debug('Pre-registering application '+b+' as default one');a.lg(olympe.Bf.ba.Pb).af(c,[b],(e,f)=>f.Qq(e,c,b),e=>yq(e,c),'olympe.hc.registerApp')};olympe.Bf.ba={Pb:'hc.Manager',Wb:'hc.Logger'};olympe.Bf.pa={em:'hc.app',CH:'hc.globalToken'};olympe.ta.af(function(a){E(a,olympe.Bf.pa.em,'default');E(a,olympe.Bf.pa.CH,!1);C(a,olympe.Bf.ba.Wb,[olympe.fb.ba.Pb],b=>b.Yg('hc'));C(a,olympe.Dc.ba.Hr,[new olympe.ta.Db(olympe.Bf.pa.em)],b=>b);C(a,olympe.ya.ba.LB,[olympe.Dc.ba.Hr,new olympe.ta.Db(olympe.Bf.pa.CH)],(b,c)=>new olympe.ya.UF(c?'':b));A(a,olympe.Bf.ba.Pb,olympe.Bf.Ec,new olympe.ta.Db(olympe.Bf.pa.em),olympe.Bf.ba.Wb)},'olympe.hc');
|
|
1887
1887
|
olympe.ta.run([olympe.Bf.ba.Pb],a=>a.run(),'olympe.hc');olympe.sc.ve={};function zq(a){if(a.Ia)return a.V.debug('Sending getContext request'),Rk(a.Ka).then(()=>{a.V.debug('synchronisation request successful');var f=a.C;iq=null;gq=f}).catch(f=>{a.V.error('failed to synchronise (authenticated) with server: '+f.message)});const b=tp(a.D);!b&&jn();a.V.debug((b?'PULLING':'SUBSCRIBING')+' application '+a.C);const c=a.D.se(),d=new Promise((f,g)=>{const k=olympe.dc.eb(),l=new olympe.j.ee('Primordial Subscription Context',c);Ek(l,a.C,m=>{m=k.Ju(m)?m:k.model(m);return null!==m&&
|
|
1888
|
-
k.me(m,olympe.sc.ft)},{$g:
|
|
1889
|
-
{$g:
|
|
1890
|
-
function
|
|
1891
|
-
a.ca()})}else a.V.error('application retrieved: not an Application with a run() method');else
|
|
1892
|
-
function
|
|
1888
|
+
k.me(m,olympe.sc.ft)},{$g:b?olympe.dc.nb.Kf.Wp:olympe.dc.nb.Kf.im,zB:!0,iP:!0}).subscribe(rxjs.Subscriber.create(c.re(()=>{k.me(a.C,olympe.sc.Eb.Rg)?(a.Pa.$(a.C,b),f()):ee(a.O)?g(Error(`The specified application tag (${a.C}) is not an application or does not exist`)):(l.destroy(),a.O.connect().catch(m=>{g(Error(`Failed to load the app while offline, you might want to try again when online: ${m}`))}))}),m=>g(m)))}),e=new Promise(f=>{olympe.j.Wa([a.T.Ak()],g=>{olympe.dc.nb.Lm(g,olympe.dm.User,olympe.dc.uc.SERVER).observe(c,
|
|
1889
|
+
{$g:olympe.dc.nb.Kf.Iz,oA:'__code-as-data__'}).subscribe(()=>f())})});return Promise.all([d,e]).then(()=>{if(a.Oa)return Aq(a);Aq(a).then(()=>{})})}
|
|
1890
|
+
function Bq(a){a.V.info('Starting application '+a.C);const b=olympe.dc.eb();if(0<a.C.length){const c=Kh(b,a.C,a.D.se().re((f,g)=>{if(f)if(f=Xp(g),f instanceof olympe.sc.Eb.at){a.V.debug('application retrieved: running');g=pp(a.D,f);const k=new olympe.sc.ad.eU(a.W);rb(a.W,()=>Ep(a.D.state,k));sb(a.W,()=>{var l=k.ja();return Gp(a.D.state,l)});a.zb&&a.W.start();f.run(g);'string'===typeof a.Gb&&(new olympe.sc.zj).ea(f.ka(),g,a.V);g.GB(olympe.sc.Fb.C.MB).then(()=>{let l;null==(l=d)||l.cancel();a.pb.update(olympe.j.ia.C);
|
|
1891
|
+
a.ca()})}else a.V.error('application retrieved: not an Application with a run() method');else Cq(a)}));olympe.j.yb().onDestroy(()=>{Hh(b,a.C,c)});const d=ad(()=>{a.V.warn(`requested application ${a.C} may not be available (it may not exist or the logged user may not have the correct permissions)`)},3E4);let e;null==(e=a.nc)||e.start()}}
|
|
1892
|
+
function Aq(a){return q(function*(){Dq(a.C)&&(yield jq(a.C,a.Oa).catch(b=>{throw Error(`Failed to load the business container for the application ${a.C}: ${b}`);}))})}function Cq(a){a.V.info('Stop the application');a.D.se().Do()}
|
|
1893
1893
|
olympe.sc.ve.Dr=class{constructor(a,b,c,d,e,f,g,k,l,m){this.V=a;this.T=b;this.O=c;this.Ka=d;this.D=f;this.Pa=g;this.W=k;this.nc=m;this.C=l.get('appTag');this.Ia=l.get('getContextMode');let n;this.Gb=null!=(n=l.get('debuggerName'))?n:null;this.zb=l.get('autostartProfiler');this.Oa=l.get('requireBusinessContainer');this.pb=olympe.j.Za(olympe.j.ia).update(olympe.j.ia.ob)}run(){this.V.debug('runtime starting for app #'+this.C);let a=!1;const b=olympe.Y.lf.C.vr,c=olympe.Y.lf.C.ym,d=olympe.Y.lf.C.Rf;olympe.j.Wa([this.O.getState()],
|
|
1894
|
-
e=>{switch(e){case b:case c:this.V.debug('Server session opened or working offline, start the application');a||(a=!0,this.ea(),zq(this).then(olympe.j.
|
|
1895
|
-
a.Ia.set('__code-as-data-version__',a.version),a.Pa||(a.ca=!1))}};olympe.sc.ve.Dr.C='app_instance';olympe.sc.ve.Dr.Aa=[olympe.Bf.TF];olympe.sc.ve.pU=class{constructor(a,b,c,d){this.V=a;d.get('httpManifestPath');this.C=d.get('manifestCommon');if(!this.C)this.C={};else if('string'===typeof this.C)try{this.C=JSON.parse(this.C)}catch(e){this.V.warn('Invalid manifest common config'),this.C={}}}start(){Ed().catch(()=>this.V.error('Error while starting the RuntimeHTTPService'));this.V.debug('Started RuntimeHTTPService')}};function
|
|
1894
|
+
e=>{switch(e){case b:case c:this.V.debug('Server session opened or working offline, start the application');a||(a=!0,this.ea(),zq(this).then(olympe.j.yb().re(()=>Bq(this))));break;case d:this.V.debug('Impossible to open a connection to the orchestrator and offline mode is disabled.')}})}ea(){}ca(){this.V.info(`Application ${olympe.dc.eb().name(this.C)} (${this.C}) started`);var a=olympe.dc.sources.Kj();a.tb=!0;a.$+=0;a.hc.next(0<a.$);0===a.$&&a.ca&&a.tb&&(a.V.debug(`Cache: set code-as-data version in local storage: ${a.version}`),
|
|
1895
|
+
a.Ia.set('__code-as-data-version__',a.version),a.Pa||(a.ca=!1))}};olympe.sc.ve.Dr.C='app_instance';olympe.sc.ve.Dr.Aa=[olympe.Bf.TF];olympe.sc.ve.pU=class{constructor(a,b,c,d){this.V=a;d.get('httpManifestPath');this.C=d.get('manifestCommon');if(!this.C)this.C={};else if('string'===typeof this.C)try{this.C=JSON.parse(this.C)}catch(e){this.V.warn('Invalid manifest common config'),this.C={}}}start(){Ed().catch(()=>this.V.error('Error while starting the RuntimeHTTPService'));this.V.debug('Started RuntimeHTTPService')}};function Dq(a){var b=olympe.dm.DataSource.SERVER;const c=olympe.dc.nb.from(a).rc(olympe.sc.Eb.Rg.C).rc(olympe.dm.li.O.fe()).rc(olympe.dm.li.C).zf();a=olympe.dc.nb.from(a).rc(olympe.sc.Eb.Rg.C).rc(olympe.dm.gd.O).zf();return c.concat(a).has(b)}
|
|
1896
1896
|
olympe.sc.ve.Xz=class extends olympe.dc.sources.Xz{W(a){return this.db.me(a,olympe.sc.rg)}$(a,b){if(!this.R){super.init();var c=olympe.dc.Xh.from(a).rc(olympe.sc.Eb.Rg.C).zf();if(!(c instanceof olympe.dm.gd))throw Error(`Impossible to initialize the source solver for the application ${a}: no project is linked to it`);b=b?olympe.dc.nb.Kf.Wp:olympe.dc.nb.Kf.im;$m(this,c,b);c=new olympe.j.ee('deployed data sources');olympe.dc.nb.from(a).rc(olympe.sc.Eb.Rg.Oa).observe(c,{$g:b}).subscribe(d=>{const e=
|
|
1897
1897
|
new olympe.dc.Vc;d.wu().forEach(f=>{e.Rb(olympe.dm.DataSource.Dx,this.C,f)});d.Eu().forEach(f=>{e.Zf(olympe.dm.DataSource.Dx,this.C,f)});e.Ld()})}}};olympe.sc.ve.ba={Zi:'sc.runtime.Main',hl:'sc.runtime.SourceSolver',Pt:'sc.runtime.appConfig',gL:'sc.runtime.runtimeHTTPServiceConfig',fL:'sc.runtime.RuntimeHTTPService',xK:'sc.runtime.OfflineAppConfig'};olympe.sc.ve.pa={OH:'app.httpManifestPath',WJ:'app.manifest.common',SJ:'sc.loadBusinessContainer'};
|
|
1898
1898
|
olympe.ta.af(function(a){E(a,olympe.sc.ve.pa.OH,'/runtime/manifest');E(a,olympe.sc.ve.pa.WJ,null);E(a,olympe.sc.ve.pa.SJ,!1);C(a,olympe.Dc.ba.Hr,[new olympe.ta.Db(olympe.Bf.pa.em),new olympe.ta.Db(olympe.sc.pa.em)],(b,c)=>`${b}${c?'-'+c:''}`);C(a,olympe.sc.ve.ba.xK,[new olympe.ta.Db(olympe.sc.pa.em),new olympe.ta.Db(olympe.xa.pa.Az),new olympe.ta.Db(olympe.xa.pa.hD)],(b,c,d)=>{let e;const f=null!=(e=a.getParameter(`offline.${b}.enabled`))?e:c;let g;b=null!=(g=a.getParameter(`offline.${b}.autoBackOnline`))?
|
|
1899
1899
|
g:d;return new Map([['offlineEnabled',f],['offlineAutoBackOnline',!f||b]])});Ua(a,olympe.xa.ba.zz,olympe.sc.ve.ba.xK);A(a,olympe.sc.ve.ba.hl,olympe.sc.ve.Xz,olympe.dc.ba.it,new olympe.ta.Db(olympe.dc.pa.Er),new olympe.ta.Db(olympe.dc.pa.jC));Ua(a,olympe.dc.sources.ba.hl,olympe.sc.ve.ba.hl);C(a,olympe.sc.ve.ba.Pt,[new olympe.ta.Db(olympe.sc.pa.em),new olympe.ta.Db(olympe.dc.pa.Ut),new olympe.ta.Db(olympe.sc.pa.PG),new olympe.ta.Db(olympe.sc.pa.LF),new olympe.ta.Db(olympe.sc.ve.pa.SJ)],(b,c,d,e,f)=>
|
|
1900
1900
|
new Map([['appTag',b],['getContextMode',c],['debuggerName',d],['autostartProfiler',e],['requireBusinessContainer',f]]));A(a,olympe.sc.ve.ba.Zi,olympe.sc.ve.Dr,olympe.sc.ba.Wb,olympe.ya.ba.Pb,olympe.Y.ba.hm,olympe.dc.query.ba.sw,olympe.host.ba.zm,olympe.sc.ba.uw,olympe.sc.ve.ba.hl,olympe.la.ba.mo,olympe.sc.ve.ba.Pt,olympe.sc.ve.ba.fL);C(a,olympe.sc.ve.ba.gL,[new olympe.ta.Db(olympe.sc.ve.pa.OH),new olympe.ta.Db(olympe.sc.ve.pa.WJ)],(b,c)=>new Map([['httpManifestPath',b],['manifestCommon',c]]));A(a,
|
|
1901
|
-
olympe.sc.ve.ba.fL,olympe.sc.ve.pU,olympe.sc.ba.Wb,olympe.xa.ba.PD,olympe.sc.ba.uw,olympe.sc.ve.ba.gL);olympe.Bf.Qq(a,olympe.sc.ve.ba.Zi,'sc.runtime');olympe.Bf.Qq(a,olympe.sc.ve.ba.Zi,'sc.headless');olympe.Bf.Qq(a,olympe.sc.ve.ba.Zi)},'olympe.sc.runtime');olympe.sc.ui={};olympe.sc.ui.S3=function(a){return a instanceof olympe.sc.ui.Ud};function
|
|
1902
|
-
function
|
|
1903
|
-
r.valueOf();c.set(t,new olympe.ui.st(l.valueOf(),m.valueOf(),n.valueOf(),v,u))});if(!b)olympe.j.
|
|
1904
|
-
olympe.sc.ui.Gj.U=olympe.dc.Ja.C('01612df1f810c91e8997',olympe.sc.ui.Gj);olympe.sc.ui.Gj.$=olympe.sc.ui.Gj.U.sb('016951f802614c4350bf');Y(olympe.dm.Property.U,olympe.sc.ui.Gj.$);olympe.sc.ui.Gj.U.C=(a,b)=>Z(co(a,b||'New Abstract Visual Component',olympe.sc.ui.Gj,olympe.sc.ui.fc),olympe.dc.CloudObject.fY,!0).ka();olympe.sc.ui.Gj.prototype.C.K=new olympe.j.J(()=>olympe.dc.Kb,[]);olympe.sc.ui.Oy=class extends olympe.sc.ui.Gj{};olympe.sc.ui.Oy.U=olympe.dc.Ja.C('017a8a97979d7c51ab6a',olympe.sc.ui.Oy);olympe.sc.ui.Oy.U.C=function(a,b){return co(a,b||'New Coded Visual Component',olympe.sc.ui.Oy,olympe.sc.ui.fc).ka()};function
|
|
1905
|
-
function
|
|
1906
|
-
function
|
|
1907
|
-
function
|
|
1908
|
-
olympe.sc.ui.Ud=class extends olympe.sc.ui.Gj{ca(){return this.MA(olympe.sc.ui.Ud.C)}$(){return[this.Ba]}D(a,b){var c=olympe.j.ia;const d=olympe.sc.ui.Ud.C,e=olympe.sc.ui.Ud.Ba,f=olympe.sc.ui.Ud.Oa,g=b.oa(a),k=b.Fa(e,a,c,c.ob),l=b.Fa(f,a,c,c.ob),m=
|
|
1909
|
-
()=>{var u=
|
|
1901
|
+
olympe.sc.ve.ba.fL,olympe.sc.ve.pU,olympe.sc.ba.Wb,olympe.xa.ba.PD,olympe.sc.ba.uw,olympe.sc.ve.ba.gL);olympe.Bf.Qq(a,olympe.sc.ve.ba.Zi,'sc.runtime');olympe.Bf.Qq(a,olympe.sc.ve.ba.Zi,'sc.headless');olympe.Bf.Qq(a,olympe.sc.ve.ba.Zi)},'olympe.sc.runtime');olympe.sc.ui={};olympe.sc.ui.S3=function(a){return a instanceof olympe.sc.ui.Ud};function Eq(a){const b=olympe.dc.eb(),c=[a.ka()].concat(b.pq(a,olympe.dm.gd.C));return b.yg(olympe.sc.Ig).filter(d=>c.includes(b.Xd(d,olympe.dm.gd.T.fe()))).map(d=>olympe.dc.CloudObject.get(d))}function Fq(a){return(new olympe.dc.Kb(olympe.sc.Ig)).transform(olympe.dc.CloudObject.instancesRel).transform(new olympe.dc.Ra.Sf(new olympe.dc.Da.Bt([olympe.dm.gd.T,new olympe.dc.Ra.Fj(olympe.dm.gd.Oa,olympe.dc.Ib.ORIGIN,0)],[olympe.dc.Ib.ORIGIN,olympe.dc.Ib.ORIGIN],a)))}
|
|
1902
|
+
function Gq(a,b=!1){const c=new olympe.j.Map,d=e=>{let f,g;const k=olympe.j.Za(olympe.j.kb);e.ds(l=>k.update(olympe.j.kc(l)));olympe.j.Wa([e.Di(),e.Cl(),e.Ei(),e.qx(),k],(l,m,n,p,r)=>{const t=l+':'+m+':'+n;var u=c.Lj(t);const v=u?u.SA():Object.create(null);u=u?u.ja():null;const w=f?c.Lj(f):null;p=p.valueOf().replace(/^font\//,'');g&&g!==p&&delete v[g];if(w&&t!==f){const x=w.SA();delete x[g];0===Object.keys(x).length?c.remove(f):c.set(f,new olympe.ui.st(w.qE(),w.QA(),w.zE(),x,w.ja()))}g=p;f=t;v[p]=
|
|
1903
|
+
r.valueOf();c.set(t,new olympe.ui.st(l.valueOf(),m.valueOf(),n.valueOf(),v,u))});if(!b)olympe.j.yb().onDestroy(()=>{f&&c.remove(f)})};b?Eq(a).forEach(d):Fq(a).forEach(d);return c}olympe.sc.ui.D0=class{};function Hq(a,b=!0){const c=d=>{d=a.db.Xd(d,olympe.sc.ui.Jg.propertyRel.fe());return a.db.Cc(d,olympe.sc.fl.C)};return[a.tag].concat(a.db.mx(a,olympe.sc.ui.Renderable)).reduce((d,e)=>{e=a.db.tc(e,olympe.dc.CloudObject.propertyRel);b&&e.sort((f,g)=>c(f)-c(g));return d.concat(e)},[])}olympe.sc.ui.Gj=class extends olympe.sc.Ac{C(){const a=olympe.dc.eb().mx(this,olympe.sc.ui.Renderable).length;return(new olympe.dc.Sp(this.tag)).lN(a-1).rc(olympe.dc.CloudObject.propertyRel).jk()}Gi(){return olympe.sc.jf.aj.ND}R(){return null}};
|
|
1904
|
+
olympe.sc.ui.Gj.U=olympe.dc.Ja.C('01612df1f810c91e8997',olympe.sc.ui.Gj);olympe.sc.ui.Gj.$=olympe.sc.ui.Gj.U.sb('016951f802614c4350bf');Y(olympe.dm.Property.U,olympe.sc.ui.Gj.$);olympe.sc.ui.Gj.U.C=(a,b)=>Z(co(a,b||'New Abstract Visual Component',olympe.sc.ui.Gj,olympe.sc.ui.fc),olympe.dc.CloudObject.fY,!0).ka();olympe.sc.ui.Gj.prototype.C.K=new olympe.j.J(()=>olympe.dc.Kb,[]);olympe.sc.ui.Oy=class extends olympe.sc.ui.Gj{};olympe.sc.ui.Oy.U=olympe.dc.Ja.C('017a8a97979d7c51ab6a',olympe.sc.ui.Oy);olympe.sc.ui.Oy.U.C=function(a,b){return co(a,b||'New Coded Visual Component',olympe.sc.ui.Oy,olympe.sc.ui.fc).ka()};function Iq(a){return(new olympe.dc.Sp(a,olympe.sc.ui.fc)).rc(olympe.sc.Ac.R).me([olympe.sc.ui.fc]).yv(olympe.sc.ui.Renderable.ea).jk()}function Jq(a,b,c,d,e){const f=olympe.j.aa,g=olympe.j.ia,k=olympe.sc.ui.Ud.Ba,l=olympe.sc.ui.Ud.Oa,m=Kq(a,b,e);a=c.Fa(k,b,g,g.ob);b=c.Fa(l,b,g,g.ob);return new olympe.j.ga(olympe.j.$a(a,()=>uc(m.qa(),d.qa()),()=>d.qa(),f),olympe.j.$a(b,()=>uc(m.sa(),d.sa()),()=>d.sa(),f))}
|
|
1905
|
+
function Lq(a,b,c,d,e,f,g,k){const l=olympe.j.aa,m=olympe.sc.ui.Ud.Gb,n=olympe.sc.ui.Ud.nc;a=a.Fa(olympe.sc.ui.Ud.zb,b,olympe.j.ia,olympe.j.ia.ob);const p=new olympe.ui.F.wd(e);p.Ls(g);p.rv(k);p.Ms(a);olympe.j.$a(a,()=>{var r=p.T();const t=c.O(m,b,l,r.qa());r=c.O(n,b,l,r.sa());gg(p,new olympe.j.ga(t,r));const u=e.qa(),v=e.sa();Mq(d,v,u,r,f.sa(),!1);Mq(d,u,v,t,f.qa(),!0)});return p}
|
|
1906
|
+
function Kq(a,b,c){const d=olympe.sc.ui.Renderable.C,e=olympe.sc.ui.Renderable.D,f=olympe.sc.ui.fc.R,g=olympe.sc.ui.fc.T,k=olympe.j.aa;a=void 0===c?Iq(a):c;c=(l,m,n)=>{const p=new olympe.j.Map(k);p.set('0',k.ZERO);l.forEach(r=>{var t=r.ka(),u=pp(b,t);t=r.Fa(m,u,k);u=r.Fa(n,u,k);p.set(r.ka(),t.Sa(u))},r=>{p.remove(r)});return k.max(p)};return new olympe.j.ga(c(a,f,d),c(a,g,e))}
|
|
1907
|
+
function Mq(a,b,c,d,e,f){olympe.j.$a(b.GE(e),()=>{var g=olympe.j.Xa([b,e],(l,m)=>olympe.j.Ca(0>=m?1:l.valueOf()/m.valueOf()),olympe.j.aa);if(f){var k=new olympe.j.ga(b.hb(g),3);g=new olympe.j.ga(d.hb(g),c.za(3))}else k=new olympe.j.ga(3,b.hb(g)),g=new olympe.j.ga(c.za(3),d.hb(g));k=new olympe.ui.F.ye(k);k.Ma(Fc());k.Xb(3);k.eh(1E3);a.appendChild(k,'lift'+(f?'X':'Y'),g)})}
|
|
1908
|
+
olympe.sc.ui.Ud=class extends olympe.sc.ui.Gj{ca(){return this.MA(olympe.sc.ui.Ud.C)}$(){return[this.Ba]}D(a,b){var c=olympe.j.ia;const d=olympe.sc.ui.Ud.C,e=olympe.sc.ui.Ud.Ba,f=olympe.sc.ui.Ud.Oa,g=b.oa(a),k=b.Fa(e,a,c,c.ob),l=b.Fa(f,a,c,c.ob),m=Iq(this);c=b.Fa(d,a,olympe.sc.ui.ur);const n=new olympe.ui.F.Ye(g),p=b.Fa(olympe.sc.ui.fc.$,a,olympe.j.Color).rl().Se(1).Re();olympe.j.Wa([c],r=>{r.init(a);const t=r.zs(a,m);t.Ah(p);t.Es(a.wa(olympe.sc.ui.Renderable.Ia,olympe.j.kb,!0));n.appendChild(olympe.j.$a(k.or(l),
|
|
1909
|
+
()=>{var u=Jq(this,a,b,g,m);t.Hb(u);const v=new olympe.ui.F.Ye(g);u=Lq(this,a,b,v,g,u,k,l);u.Pd(t);v.appendChild(u,'scroller');return v},()=>{t.Tr();return t},olympe.ui.F.mb),'groupContent')});return n}C(){return super.C().wy(olympe.sc.ui.Ud.XM().transform(olympe.dc.CloudObject.propertyRel))}R(){return Iq(this)}};olympe.sc.ui.Ud.U=olympe.dc.Ja.C('016be61ab63fb8a838ee',olympe.sc.ui.Ud);olympe.sc.ui.Ud.C=olympe.sc.ui.Ud.U.fa('016be61ab921cb3bdef9');olympe.sc.ui.Ud.Ba=olympe.sc.ui.Ud.U.fa('01664466071718f2a34b');
|
|
1910
1910
|
olympe.sc.ui.Ud.Oa=olympe.sc.ui.Ud.U.fa('016652f9cd0b1e216e6b');olympe.sc.ui.Ud.zb=olympe.sc.ui.Ud.U.fa('01665907468d5e684177');olympe.sc.ui.Ud.Gb=olympe.sc.ui.Ud.U.fa('016e7ee3fd5998d599ce');olympe.sc.ui.Ud.nc=olympe.sc.ui.Ud.U.fa('016e7ee3fd59d238eec0');olympe.sc.ui.Ud.U.C=function(a,b,c,d){b=b||'Group';d=d||co(a,b,olympe.sc.ui.Ud,olympe.sc.ui.fc);Z(d,olympe.dc.oi.xj+olympe.dc.CloudObject.nameProp.ka(),b);a=a.create(olympe.sc.ui.Lb.Ye,c);Z(d,olympe.sc.ui.Ud.C.ka(),new olympe.dc.Lf(a));return d.ka()};
|
|
1911
|
-
olympe.sc.ui.Ud.prototype.ca.K=new olympe.j.J(()=>olympe.sc.ui.ur,[]);olympe.sc.ui.Ud.prototype.D.K=new olympe.j.J(()=>olympe.ui.F.Ye,[]);olympe.sc.ui.Uz=class extends olympe.sc.ui.Ud{};olympe.sc.ui.Uz.U=olympe.dc.Ja.C('01612df349e137bbb30b',olympe.sc.ui.Uz);olympe.sc.ui.Uz.U.C=function(a,b,c){b=b||'New Screen';const d=co(a,b,olympe.sc.ui.Uz,olympe.sc.ui.Screen);olympe.dc.CloudObject.yf(a,olympe.sc.ui.Ud,b,c,d);return d.ka()};olympe.sc.ui.gA=class extends olympe.sc.ui.Ud{};olympe.sc.ui.gA.U=olympe.dc.Ja.C('0166446c1f124f078a5f',olympe.sc.ui.gA);olympe.sc.ui.gA.U.C=function(a,b,c){b=b||'New Visual Component';c=co(a,b,olympe.sc.ui.gA,c||olympe.sc.ui.fc);olympe.dc.CloudObject.yf(a,olympe.sc.ui.Ud,b,void 0,c);Z(c,olympe.dc.oi.xj+olympe.sc.ui.Renderable.C.ka(),600);Z(c,olympe.dc.oi.xj+olympe.sc.ui.Renderable.D.ka(),300);return c.ka()};const
|
|
1912
|
-
function
|
|
1913
|
-
olympe.sc.ui.Renderable=class extends olympe.sc.Runnable{constructor(a,b){super(a,b,olympe.
|
|
1911
|
+
olympe.sc.ui.Ud.prototype.ca.K=new olympe.j.J(()=>olympe.sc.ui.ur,[]);olympe.sc.ui.Ud.prototype.D.K=new olympe.j.J(()=>olympe.ui.F.Ye,[]);olympe.sc.ui.Uz=class extends olympe.sc.ui.Ud{};olympe.sc.ui.Uz.U=olympe.dc.Ja.C('01612df349e137bbb30b',olympe.sc.ui.Uz);olympe.sc.ui.Uz.U.C=function(a,b,c){b=b||'New Screen';const d=co(a,b,olympe.sc.ui.Uz,olympe.sc.ui.Screen);olympe.dc.CloudObject.yf(a,olympe.sc.ui.Ud,b,c,d);return d.ka()};olympe.sc.ui.gA=class extends olympe.sc.ui.Ud{};olympe.sc.ui.gA.U=olympe.dc.Ja.C('0166446c1f124f078a5f',olympe.sc.ui.gA);olympe.sc.ui.gA.U.C=function(a,b,c){b=b||'New Visual Component';c=co(a,b,olympe.sc.ui.gA,c||olympe.sc.ui.fc);olympe.dc.CloudObject.yf(a,olympe.sc.ui.Ud,b,void 0,c);Z(c,olympe.dc.oi.xj+olympe.sc.ui.Renderable.C.ka(),600);Z(c,olympe.dc.oi.xj+olympe.sc.ui.Renderable.D.ka(),300);return c.ka()};const Nq=new Map,Oq=new Set([]);function Pq(a){const b=olympe.sc.logic.jd,c=olympe.j.yb(),d=a.ka(),e=Object.create(null),f=Object.create(null);for(const [k,l]of Nq)f[k]=l,Nq.delete(k);const g=nj(a.db,d,b.Ss.fe(),c.re((k,l)=>{k?(k=a.db.Xd(l,b.ty),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.D(d,b.Ss.fe(),g)})}function Qq(a,b,c,d,e){a=new Rq(c,a,b);void 0!==e?Sq(a,d,e):Tq(a,d);Nq.set(olympe.dc.Ya(c),a)}
|
|
1912
|
+
function Uq(a,b){const c=`finalThemeClass-${a.tag}`;let d;const e=f=>{d&&d();const g=Vq(f,a.Ee(),'');let k=!1;d=np(b,g,l=>{k=!0;b.set(c,l?f:'default')});k||b.set(c,'default');olympe.j.yb().onDestroy(()=>{d&&d()})};b.set(c,'default');np(b,olympe.sc.ui.Renderable.pb.ka(),f=>e(f))}function Wq(a,b){olympe.j.Wa([a.qa()],c=>{b.set(olympe.sc.ui.Renderable.C,c.valueOf())});olympe.j.Wa([a.sa()],c=>{b.set(olympe.sc.ui.Renderable.D,c.valueOf())})}
|
|
1913
|
+
olympe.sc.ui.Renderable=class extends olympe.sc.Runnable{constructor(a,b){super(a,b,olympe.fb.wb('sc'));this.Ka=!!olympe.ta.getParameter(olympe.sc.pa.mC)}ea(){return this.lg()instanceof olympe.sc.ui.Ud?[this.Ee()]:[]}W(){const a=olympe.sc.yp.C.SR,b=this.db,c=new Map,d=this.lg();for(const e of Hq(d,!1))c.set(a+b.name(e),e);return c}update(a,b,c){const d=olympe.sc.Fb.C.xp,e=olympe.sc.Fb.C.Bp,f=this.lg().uq(),g=olympe.sc.ui.Renderable.prototype.D!==this.D;!f&&super.update(a,b,c);c=a.get(e);c||(c=a.state.se().run(()=>
|
|
1914
1914
|
this.D(a)),a.set(e,c));const k=f&&!g?this.render(a,b):c.$m();if(!g&&(f||a.state.id.startsWith('_'))){const l=np(a,d,m=>{void 0!==k?null!==k&&a.set('_off_container',this.updateParent(m,k)):this.draw(a,m)},a.ja());a.onDestroy(()=>{l();let m;null==(m=a.get('_off_container'))||m();a.remove('_off_container')})}}render(){}updateParent(a,b){b&&a.appendChild(b);return()=>{b.remove()}}D(a){var b=this.lg();if(b.uq()){const c=olympe.j.ia,d=olympe.j.kb;b=new olympe.ui.F.Ue(this.tag,this.oa(a));b.rd(this.Fa(olympe.sc.ui.fc.Oa,
|
|
1915
|
-
a,c,c.ob));b.Es(this.Fa(olympe.sc.ui.Renderable.Ia,a,d));b.Li(e=>{a.UP(e)})}else b=b.D(a,this),this.C(b,a);return b}ce(){return
|
|
1916
|
-
'Roboto';b.appendChild(a)}C(a,b){a.Ma(this.Fa(olympe.sc.ui.Renderable.$,b,olympe.j.Color,Ic()));
|
|
1917
|
-
k.run(()=>{for(const n of g)m(n);k.onDestroy(()=>{for(const n of g)b(n,null)})})}))}oa(a){return new olympe.j.ga(this.Fa(olympe.sc.ui.Renderable.C,a,olympe.j.aa,olympe.j.aa.ZERO,!0),this.Fa(olympe.sc.ui.Renderable.D,a,olympe.j.aa,olympe.j.aa.ZERO,!0))}gf(){return this.zg(olympe.sc.ui.Renderable.ea)}R(){return null}};olympe.sc.ui.Renderable.prototype.getProperties=olympe.sc.ui.Renderable.prototype.ce;let
|
|
1918
|
-
function
|
|
1919
|
-
class
|
|
1915
|
+
a,c,c.ob));b.Es(this.Fa(olympe.sc.ui.Renderable.Ia,a,d));b.Li(e=>{a.UP(e)})}else b=b.D(a,this),this.C(b,a);return b}ce(){return Hq(this.lg())}draw(a,b){super.onUpdate(a,[],[]);a=document.createElement('p');a.innerHTML=`No code found for:<br/>${this.Qe().name()}<br/>(${this.Ee()})`;a.style['vertical-align']='middle';a.style['text-align']='center';a.style.width='inherit';a.style.height='inherit';a.style.display='table-cell';a.style['background-color']='rgba(192, 192, 192, 0.5)';a.style['font-family']=
|
|
1916
|
+
'Roboto';b.appendChild(a)}C(a,b){a.Ma(this.Fa(olympe.sc.ui.Renderable.$,b,olympe.j.Color,Ic()));Pq(this)}T(){const a=[this.tb,this.na,this.ca,this.$];this.Ka||a.splice(3,0,this.Ba);return a}Ba(a,b){Uq(this,a);const c=olympe.j.yb(),d=this.Ee(),e=olympe.sc.ui.Gj.$,f=this.db.mx(this.Ee(),olympe.sc.ui.Renderable);f.push(d);let g=[];f.forEach(l=>{g=g.concat(this.db.tc(l,e))});let k;np(a,`finalThemeClass-${this.tag}`,c.re(l=>{k&&k.destroy();const m=n=>{const p=Vq(l,d,n);np(a,p,r=>{b(n,r)})};k=new olympe.j.ee(`onFinalThemeClassKey for ${this.tag}`);
|
|
1917
|
+
k.run(()=>{for(const n of g)m(n);k.onDestroy(()=>{for(const n of g)b(n,null)})})}))}oa(a){return new olympe.j.ga(this.Fa(olympe.sc.ui.Renderable.C,a,olympe.j.aa,olympe.j.aa.ZERO,!0),this.Fa(olympe.sc.ui.Renderable.D,a,olympe.j.aa,olympe.j.aa.ZERO,!0))}gf(){return this.zg(olympe.sc.ui.Renderable.ea)}R(){return null}};olympe.sc.ui.Renderable.prototype.getProperties=olympe.sc.ui.Renderable.prototype.ce;let Xq=0;
|
|
1918
|
+
function Sq(a,b,c){!a.$&&a.C.Ah(!0);a.O=a.T.re(()=>{!a.$&&a.C.Ah(!1);const d=b(()=>a.R.Xq(a.W));olympe.j.yb().onDestroy(()=>{c(d);a.$||a.C.mc()||a.C.ag()||a.C.Ah(!0)})})}function Tq(a,b){null!=a.O||(a.O=a.T.re(()=>{olympe.j.Wa([b()],c=>{a.R.set(a.W,c)});olympe.j.yb().onDestroy(()=>a.R.remove(a.W))}))}
|
|
1919
|
+
class Rq{constructor(a,b,c){++Xq;this.W=a;this.R=b;this.C=c;this.T=new olympe.j.ee('InteractionBinder context '+Xq);this.O=null;this.D=0;this.$=Oq.has(this.C.constructor)}enable(){++this.D;1===this.D&&this.O()}disable(){--this.D;0===this.D&&this.T.destroy()}}olympe.sc.ui.Renderable.U=gi(olympe.dc.Ja.C('01612df219d0691f6b4d',olympe.sc.ui.Renderable));olympe.sc.ui.Renderable.pb=olympe.sc.ui.Renderable.U.fa('0161d7ba2406f5d75a37');olympe.sc.ui.Renderable.$=olympe.sc.ui.Renderable.U.fa('01611d9c686bbed5fdba');
|
|
1920
1920
|
olympe.sc.ui.Renderable.Ia=olympe.sc.ui.Renderable.U.fa('01611d9c686bbed5fddd');olympe.sc.ui.Renderable.C=olympe.sc.ui.Renderable.U.fa('01611d99ec0553b5926e');olympe.sc.ui.Renderable.D=olympe.sc.ui.Renderable.U.fa('01611d9a0452a179c68f');olympe.sc.ui.Renderable.ea=olympe.sc.ui.Renderable.U.fa('016c23bd12493a7e1b2e');olympe.sc.ui.Renderable.prototype.oa.K=olympe.j.J.W;olympe.sc.ui.Renderable.prototype.gf.K=olympe.j.J.D;olympe.sc.ui.fc=class extends olympe.sc.ui.Renderable{constructor(a,b){super(a,b)}be(a){return new olympe.j.ga(this.Fa(olympe.sc.ui.fc.R,a,olympe.j.aa,olympe.j.aa.ZERO),this.Fa(olympe.sc.ui.fc.T,a,olympe.j.aa,olympe.j.aa.ZERO))}R(a){const b=this.lg();return b.$A()?b.DO().Ur().me([olympe.sc.ui.fc]).yv(olympe.sc.ui.Renderable.ea).jk():a.includes(this.ka())?this.db.tc(b,olympe.dc.CloudObject.propertyRel).filter(c=>this.db.dn(this.db.Xd(c,olympe.dm.Property.typeRel),olympe.sc.ui.fc)).reduce((c,d)=>{olympe.j.Wa([this.MA(d)],
|
|
1921
1921
|
e=>{e=e.Qe();a.includes(olympe.dc.Ya(e))&&c.set(d,e)});return c},new olympe.j.Ce(olympe.dm.nm)):null}C(a,b){const c=olympe.j.Color,d=olympe.j.aa,e=olympe.j.ia,f=olympe.j.kb;a.rd(this.Fa(olympe.sc.ui.fc.Oa,b,e,e.ob));a.cd(uc(this.Fa(olympe.sc.ui.fc.vf,b,d),0));a.od(this.Fa(olympe.sc.ui.fc.gj,b,c));a.Xb(this.Fa(olympe.sc.ui.fc.uf,b,d));a.Os(this.Fa(olympe.sc.ui.fc.xW,b,d));olympe.j.Wa([this.Fa(olympe.sc.ui.fc.mg,b,f)],g=>{g=g.valueOf().split(';').filter(k=>''!==k).map(k=>k.split(':')).filter(([k,l])=>
|
|
1922
|
-
void 0!==k&&void 0!==l);for(const [k,l]of g)a.ib(k.trim(),l.trim());a.Cf()});olympe.j.Wa([this.Fa(olympe.sc.ui.fc.ld,b,e,e.ob)],g=>{a.ib('overflow',g.valueOf()?'visible':'hidden')});
|
|
1922
|
+
void 0!==k&&void 0!==l);for(const [k,l]of g)a.ib(k.trim(),l.trim());a.Cf()});olympe.j.Wa([this.Fa(olympe.sc.ui.fc.ld,b,e,e.ob)],g=>{a.ib('overflow',g.valueOf()?'visible':'hidden')});Qq(b,a,olympe.sc.ui.fc.iR,a.Xc.bind(a),a.Vj.bind(a));super.C(a,b)}};olympe.sc.ui.fc.U=olympe.dc.Ja.C('01664466071746f5e167',olympe.sc.ui.fc);olympe.sc.ui.fc.R=olympe.sc.ui.fc.U.fa('01611d99243ad989b91b');olympe.sc.ui.fc.T=olympe.sc.ui.fc.U.fa('01611d9962e7f4f9a26d');olympe.sc.ui.fc.Oa=olympe.sc.ui.fc.U.fa('01611d9a88f340465399');
|
|
1923
1923
|
olympe.sc.ui.fc.xW=olympe.sc.ui.fc.U.fa('016b08fd79c14bad3193');olympe.sc.ui.fc.mg=olympe.sc.ui.fc.U.fa('017c5114f14f96c4f187');olympe.sc.ui.fc.ld=olympe.sc.ui.fc.U.fa('017e6d4a0974fd84338f');olympe.sc.ui.fc.vf=olympe.sc.ui.fc.U.fa('0163ba941097ae1920b0');olympe.sc.ui.fc.gj=olympe.sc.ui.fc.U.fa('0163ba942b6ee2bc78c0');olympe.sc.ui.fc.uf=olympe.sc.ui.fc.U.fa('0163ba9e1428240acec7');olympe.sc.ui.fc.qY=olympe.sc.ui.fc.U.fa('0162e2bd70fb607442d4');olympe.sc.ui.fc.iR=olympe.sc.ui.fc.U.fa('01619aacf66faf45a75d');
|
|
1924
1924
|
olympe.sc.ui.km=class{constructor(a,b){this.tag=a;this.C=b}ka(){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.km.prototype.set=olympe.sc.ui.km.prototype.set;olympe.sc.ui.km.prototype.observe=olympe.sc.ui.km.prototype.observe;olympe.sc.ui.km.prototype.get=olympe.sc.ui.km.prototype.get;olympe.sc.ui.km.prototype.getTag=olympe.sc.ui.km.prototype.ka;olympe.sc.ui.dC=class extends olympe.sc.ui.km{Xq(){this.set(Date.now())}};
|
|
1925
|
-
olympe.sc.ui.dC.prototype.trigger=olympe.sc.ui.dC.prototype.Xq;olympe.sc.ui.fc.Aa=[olympe.dc.Tk];olympe.sc.ui.fc.prototype.be.K=olympe.j.J.W;function
|
|
1926
|
-
a.To.bind(a));
|
|
1925
|
+
olympe.sc.ui.dC.prototype.trigger=olympe.sc.ui.dC.prototype.Xq;olympe.sc.ui.fc.Aa=[olympe.dc.Tk];olympe.sc.ui.fc.prototype.be.K=olympe.j.J.W;function Yq(a,b){const c=(d,e,f)=>{Qq(b,a,d,e,f)};Qq(b,a,olympe.sc.ui.Ga.rR,a.mn.bind(a),a.xq.bind(a));Qq(b,a,olympe.sc.ui.Ga.aT,a.nh.bind(a),a.Ck.bind(a));Qq(b,a,olympe.sc.ui.Ga.$T,a.Zg.bind(a),a.Pg.bind(a));Qq(b,a,olympe.sc.ui.Ga.kT,a.lj.bind(a),a.Dk.bind(a));Qq(b,a,olympe.sc.ui.Ga.xT,a.Ki.bind(a),a.Wj.bind(a));Qq(b,a,olympe.sc.ui.Ga.FT,a.Il.bind(a),a.kn.bind(a));Qq(b,a,olympe.sc.ui.Ga.PT,a.Wo.bind(a),a.Cq.bind(a));Qq(b,a,olympe.sc.ui.Ga.fU,a.Xo.bind(a),a.Dq.bind(a));Qq(b,a,olympe.sc.ui.Ga.zV,a.Gk.bind(a),
|
|
1926
|
+
a.To.bind(a));Qq(b,a,olympe.sc.ui.Ga.rV,a.Fk.bind(a),a.ij.bind(a));Qq(b,a,olympe.sc.ui.Ga.vV,a.cp.bind(a),a.Gq.bind(a));Qq(b,a,olympe.sc.ui.Ga.mV,a.nn.bind(a),a.So.bind(a));Qq(b,a,olympe.sc.ui.Ga.yR,a.Iq.bind(a),a.yq.bind(a));Qq(b,a,olympe.sc.ui.Ga.AV,a.Oq.bind(a),a.Hq.bind(a));Qq(b,a,olympe.sc.ui.Ga.HR,a.Jq.bind(a),a.zq.bind(a));Qq(b,a,olympe.sc.ui.Ga.ZR,a.Kq.bind(a),a.Aq.bind(a));Qq(b,a,olympe.sc.ui.Ga.$S,a.Lq.bind(a),a.Bq.bind(a));Qq(b,a,olympe.sc.ui.Ga.RU,a.Nq.bind(a),a.Fq.bind(a));Qq(b,a,olympe.sc.ui.Ga.mU,
|
|
1927
1927
|
a.Mq.bind(a),a.Ba.bind(a));c(olympe.sc.ui.Ga.$Z,()=>{a.Go()});c(olympe.sc.ui.Ga.b_,()=>{a.Pm()});c(olympe.sc.ui.Ga.vQ,()=>{a.uk()});c(olympe.sc.ui.Ga.d_,()=>{a.Rm()});c(olympe.sc.ui.Ga.e_,()=>{a.Sm()});c(olympe.sc.ui.Ga.KQ,()=>{a.Tm()});c(olympe.sc.ui.Ga.JE,()=>{a.en()});c(olympe.sc.ui.Ga.WE,()=>{a.fn()});c(olympe.sc.ui.Ga.KE,()=>{a.Lh()});c(olympe.sc.ui.Ga.oY,()=>{a.Xm()});c(olympe.sc.ui.Ga.dY,()=>{a.Wm()});c(olympe.sc.ui.Ga.aY,()=>{a.Vm()});c(olympe.sc.ui.Ga.AW,()=>{a.Um()});c(olympe.sc.ui.Ga.Gl,
|
|
1928
1928
|
()=>{a.wl()});c(olympe.sc.ui.Ga.pY,()=>{a.Bl()});c(olympe.sc.ui.Ga.Qo,()=>{a.xl()});c(olympe.sc.ui.Ga.EF,()=>{a.yl()});c(olympe.sc.ui.Ga.GF,()=>{a.Qm()});c(olympe.sc.ui.Ga.DV,()=>{a.Al()});c(olympe.sc.ui.Ga.CV,()=>{a.zl()})}
|
|
1929
|
-
olympe.sc.ui.Ga=class extends olympe.sc.ui.fc{C(a,b){const c=olympe.j.Color,d=olympe.j.aa,e=olympe.j.ia;a.Vq(this.Fa(olympe.sc.ui.Ga.UV,b,d,d.ZERO));a.dh(new olympe.j.ga(this.Fa(olympe.sc.ui.Ga.SQ,b,d,d.ZERO),this.Fa(olympe.sc.ui.Ga.dR,b,d,d.ZERO)),uc(this.Fa(olympe.sc.ui.Ga.nQ,b,d,d.ZERO),0),this.Fa(olympe.sc.ui.Ga.tW,b,d,d.ZERO),this.Fa(olympe.sc.ui.Ga.cW,b,c,Ic()),this.Fa(olympe.sc.ui.Ga.fB,b,e,e.ob));
|
|
1929
|
+
olympe.sc.ui.Ga=class extends olympe.sc.ui.fc{C(a,b){const c=olympe.j.Color,d=olympe.j.aa,e=olympe.j.ia;a.Vq(this.Fa(olympe.sc.ui.Ga.UV,b,d,d.ZERO));a.dh(new olympe.j.ga(this.Fa(olympe.sc.ui.Ga.SQ,b,d,d.ZERO),this.Fa(olympe.sc.ui.Ga.dR,b,d,d.ZERO)),uc(this.Fa(olympe.sc.ui.Ga.nQ,b,d,d.ZERO),0),this.Fa(olympe.sc.ui.Ga.tW,b,d,d.ZERO),this.Fa(olympe.sc.ui.Ga.cW,b,c,Ic()),this.Fa(olympe.sc.ui.Ga.fB,b,e,e.ob));Yq(a,b);super.C(a,b)}};olympe.sc.ui.Ga.U=olympe.dc.Ja.C('01612df263119ee77622',olympe.sc.ui.Ga);
|
|
1930
1930
|
olympe.sc.ui.Ga.UV=olympe.sc.ui.Ga.U.fa('01631febba3ab94ae368');olympe.sc.ui.Ga.SQ=olympe.sc.ui.Ga.U.fa('0163baa7ccf69a395b87');olympe.sc.ui.Ga.dR=olympe.sc.ui.Ga.U.fa('0163bab1436a39979789');olympe.sc.ui.Ga.nQ=olympe.sc.ui.Ga.U.fa('0163baa7e220ba9a58da');olympe.sc.ui.Ga.tW=olympe.sc.ui.Ga.U.fa('0163baa7f80f046eaf31');olympe.sc.ui.Ga.cW=olympe.sc.ui.Ga.U.fa('0163baa80bd84ac855fc');olympe.sc.ui.Ga.fB=olympe.sc.ui.Ga.U.fa('0163baa821c816754827');olympe.sc.ui.Ga.$Z=olympe.sc.ui.Ga.U.fa('0168dc764f26c7e92f9b');
|
|
1931
1931
|
olympe.sc.ui.Ga.b_=olympe.sc.ui.Ga.U.fa('0168dc76919c78c432de');olympe.sc.ui.Ga.vQ=olympe.sc.ui.Ga.U.fa('0168c7726a7e3da3f394');olympe.sc.ui.Ga.d_=olympe.sc.ui.Ga.U.fa('0168dc77a52c67b749ec');olympe.sc.ui.Ga.e_=olympe.sc.ui.Ga.U.fa('0168dc77cf5a80ff7502');olympe.sc.ui.Ga.KQ=olympe.sc.ui.Ga.U.fa('0168dc77f26c3af6380e');olympe.sc.ui.Ga.JE=olympe.sc.ui.Ga.U.fa('0168dc76c4ce4dfa21ce');olympe.sc.ui.Ga.WE=olympe.sc.ui.Ga.U.fa('0168dc771521d4989f44');olympe.sc.ui.Ga.KE=olympe.sc.ui.Ga.U.fa('0168dc776679ae991d32');
|
|
1932
1932
|
olympe.sc.ui.Ga.Gl=olympe.sc.ui.Ga.U.fa('0168dcdbac93683e961f');olympe.sc.ui.Ga.pY=olympe.sc.ui.Ga.U.fa('0168dcdbe096622948a4');olympe.sc.ui.Ga.Qo=olympe.sc.ui.Ga.U.fa('0168dcdc172e489c48b9');olympe.sc.ui.Ga.EF=olympe.sc.ui.Ga.U.fa('0168dcdc4ef0492f7be9');olympe.sc.ui.Ga.GF=olympe.sc.ui.Ga.U.fa('0168dcdc6d186bf8c60d');olympe.sc.ui.Ga.DV=olympe.sc.ui.Ga.U.fa('0168dcdcaa879e1d49ec');olympe.sc.ui.Ga.CV=olympe.sc.ui.Ga.U.fa('0168dcdcd0e43889eeaf');olympe.sc.ui.Ga.oY=olympe.sc.ui.Ga.U.fa('0168e13a2c9eff4b1bb2');
|
|
@@ -1934,19 +1934,19 @@ olympe.sc.ui.Ga.dY=olympe.sc.ui.Ga.U.fa('0168e13a668be409860f');olympe.sc.ui.Ga.
|
|
|
1934
1934
|
olympe.sc.ui.Ga.kT=olympe.sc.ui.Ga.U.fa('0168c772458260728005');olympe.sc.ui.Ga.xT=olympe.sc.ui.Ga.U.fa('0168c77245ec33d5d3d6');olympe.sc.ui.Ga.fU=olympe.sc.ui.Ga.U.fa('0168c7724654174d5289');olympe.sc.ui.Ga.zV=olympe.sc.ui.Ga.U.fa('0168c7724990f6c6e2c5');olympe.sc.ui.Ga.rV=olympe.sc.ui.Ga.U.fa('0168c77249f71507f1a0');olympe.sc.ui.Ga.vV=olympe.sc.ui.Ga.U.fa('0168c7724a5ffdb8603c');olympe.sc.ui.Ga.mV=olympe.sc.ui.Ga.U.fa('0168c7724ac89011b0f1');olympe.sc.ui.Ga.yR=olympe.sc.ui.Ga.U.fa('0168c7724ccef19bd4fe');
|
|
1935
1935
|
olympe.sc.ui.Ga.AV=olympe.sc.ui.Ga.U.fa('0168c7724d3698b4bacc');olympe.sc.ui.Ga.HR=olympe.sc.ui.Ga.U.fa('0168c7724d9a84b5addb');olympe.sc.ui.Ga.ZR=olympe.sc.ui.Ga.U.fa('0168c7724dff8c67d120');olympe.sc.ui.Ga.$S=olympe.sc.ui.Ga.U.fa('0168c7724e65de8791ac');olympe.sc.ui.Ga.RU=olympe.sc.ui.Ga.U.fa('0168c7724eca5653c809');olympe.sc.ui.Ga.mU=olympe.sc.ui.Ga.U.fa('0168c7724f30c049da91');olympe.sc.ui.pl=class extends olympe.sc.ui.Gj{D(){return this.Lg(olympe.sc.ui.pl.C,olympe.sc.ui.Screen)}};olympe.sc.ui.pl.U=olympe.dc.Ja.C('0112025000000015def0',olympe.sc.ui.pl);olympe.sc.ui.pl.C=olympe.sc.ui.pl.U.sb('0163f988aa658051daeb');olympe.sc.ui.pl.prototype.D.K=new olympe.j.J(()=>olympe.sc.ui.Screen,[]);olympe.sc.ui.ur=class extends olympe.sc.hg{init(a){const b=a.set.bind(a);$p(this,a,b,b)}run(){}zs(){}D(){}C(){}};olympe.sc.ui.ur.U=gi(olympe.dc.Ja.C('016be61abe39070d9c42',olympe.sc.ui.ur));olympe.sc.ui.ur.prototype.zs.K=new olympe.j.J(()=>olympe.ui.F.mb,[]);olympe.sc.ui.Rd=class extends olympe.sc.ui.Ga{C(a,b){const c=olympe.j.Color,d=olympe.j.aa,e=olympe.j.ia,f=olympe.j.kb;a instanceof olympe.ui.F.pd||(a.Jb(this.Fa(olympe.sc.ui.Rd.O,b,f)),a.vb(this.Fa(olympe.sc.ui.Rd.fontFamilyProp,b,f)),a.rb(this.Fa(olympe.sc.ui.Rd.Bk,b,d)),a.Bb(this.Fa(olympe.sc.ui.Rd.tb,b,d)),a.Qd(olympe.j.$a(this.Fa(olympe.sc.ui.Rd.Pa,b,e,e.ob),()=>olympe.ui.ha.gz.VR,()=>olympe.ui.ha.gz.xz,f)),a.lb(this.Fa(olympe.sc.ui.Rd.Ka,b,c)),a.Vb(this.Fa(olympe.sc.ui.Rd.zb,b,f)),a.Yb(this.Fa(olympe.sc.ui.Rd.Gb,
|
|
1936
1936
|
b,f)));super.C(a,b)}};olympe.sc.ui.Rd.U=gi(olympe.dc.Ja.C('01633e9252d8e1c4f25b',olympe.sc.ui.Rd));olympe.sc.ui.Rd.fontFamilyProp=olympe.sc.ui.Rd.U.fa('01635eaa384788490dc5');olympe.sc.ui.Rd.Bk=olympe.sc.ui.Rd.U.fa('01633fa38ad45c58d04d');olympe.sc.ui.Rd.Pa=olympe.sc.ui.Rd.U.fa('01633fa38c309356404a');olympe.sc.ui.Rd.tb=olympe.sc.ui.Rd.U.fa('01633fa38d2863f0a464');olympe.sc.ui.Rd.Ka=olympe.sc.ui.Rd.U.fa('01633fa5303ccd8c1801');olympe.sc.ui.Rd.zb=olympe.sc.ui.Rd.U.fa('0164229fd527ecd56900');
|
|
1937
|
-
olympe.sc.ui.Rd.Gb=olympe.sc.ui.Rd.U.fa('016422a069b9bd45e8a8');olympe.sc.ui.Rd.O=olympe.sc.ui.Rd.U.fa('01633fa386be67e6fd1d');olympe.sc.ui.Ne=class extends olympe.sc.ui.Rd{C(a,b){const c=olympe.j.aa,d=olympe.j.ia;
|
|
1937
|
+
olympe.sc.ui.Rd.Gb=olympe.sc.ui.Rd.U.fa('016422a069b9bd45e8a8');olympe.sc.ui.Rd.O=olympe.sc.ui.Rd.U.fa('01633fa386be67e6fd1d');olympe.sc.ui.Ne=class extends olympe.sc.ui.Rd{C(a,b){const c=olympe.j.aa,d=olympe.j.ia;Oq.add(a.constructor);a.Qg(this.Fa(olympe.sc.ui.Ne.na,b,olympe.j.kb));a.bh(this.Fa(olympe.sc.ui.Ne.Kg,b,olympe.j.Color));a.td(this.Fa(olympe.sc.ui.Ne.Us,b,c,c.ZERO));a.sd(this.Fa(olympe.sc.ui.Ne.Qb,b,c,c.ZERO));a.Hc(this.Fa(olympe.sc.ui.Ne.Rc,b,c,c.ZERO));a.Lc(this.Fa(olympe.sc.ui.Ne.Bg,b,c,c.ZERO));a.Df(this.Fa(olympe.sc.ui.Ne.hc,b,d,d.ob));Qq(b,a,olympe.sc.ui.Ne.wg,a.kj.bind(a),a.O.bind(a));Qq(b,a,olympe.sc.ui.Ne.md,
|
|
1938
1938
|
a.jj.bind(a),a.D.bind(a));super.C(a,b)}};olympe.sc.ui.Ne.U=olympe.dc.Ja.C('016e64ba43b2367826cd',olympe.sc.ui.Ne);olympe.sc.ui.Ne.na=olympe.sc.ui.Ne.U.fa('0164b26aecbaa5ca5b23');olympe.sc.ui.Ne.Kg=olympe.sc.ui.Ne.U.fa('0164b69dd71d223649bc');olympe.sc.ui.Ne.hc=olympe.sc.ui.Ne.U.fa('016e64de79ddfffad3ea');olympe.sc.ui.Ne.Us=olympe.sc.ui.Ne.U.fa('0168387e0011b88e3095');olympe.sc.ui.Ne.Qb=olympe.sc.ui.Ne.U.fa('0168387e0527edb9bd2a');olympe.sc.ui.Ne.Rc=olympe.sc.ui.Ne.U.fa('0168387e0a992ee500be');
|
|
1939
|
-
olympe.sc.ui.Ne.Bg=olympe.sc.ui.Ne.U.fa('0168387e0e5bfd3e00d8');olympe.sc.ui.Ne.wg=olympe.sc.ui.Ne.U.fa('0168377a219478c7a296');olympe.sc.ui.Ne.md=olympe.sc.ui.Ne.U.fa('0168377a5118eb32afd2');olympe.sc.ui.gw=class extends olympe.sc.ui.Ud{};olympe.sc.ui.gw.U=olympe.dc.Ja.C('01634497d5e7cab7022f',olympe.sc.ui.gw);olympe.sc.ui.gw.U.C=function(a,b,c,d){b=b||'List Element';c=co(a,{[olympe.dc.CloudObject.nameProp.ka()]:b},olympe.sc.ui.gw,olympe.sc.ui.Z.io);olympe.dc.CloudObject.yf(a,olympe.sc.ui.Ud,b,d,c);return c.ka()};olympe.sc.ui.LL=class extends olympe.sc.ui.pl{};olympe.sc.ui.LL.U=olympe.dc.Ja.C('016c8f3b84720165aac5',olympe.sc.ui.LL);function
|
|
1939
|
+
olympe.sc.ui.Ne.Bg=olympe.sc.ui.Ne.U.fa('0168387e0e5bfd3e00d8');olympe.sc.ui.Ne.wg=olympe.sc.ui.Ne.U.fa('0168377a219478c7a296');olympe.sc.ui.Ne.md=olympe.sc.ui.Ne.U.fa('0168377a5118eb32afd2');olympe.sc.ui.gw=class extends olympe.sc.ui.Ud{};olympe.sc.ui.gw.U=olympe.dc.Ja.C('01634497d5e7cab7022f',olympe.sc.ui.gw);olympe.sc.ui.gw.U.C=function(a,b,c,d){b=b||'List Element';c=co(a,{[olympe.dc.CloudObject.nameProp.ka()]:b},olympe.sc.ui.gw,olympe.sc.ui.Z.io);olympe.dc.CloudObject.yf(a,olympe.sc.ui.Ud,b,d,c);return c.ka()};olympe.sc.ui.LL=class extends olympe.sc.ui.pl{};olympe.sc.ui.LL.U=olympe.dc.Ja.C('016c8f3b84720165aac5',olympe.sc.ui.LL);function Zq(a,b){const c=new Map;a.db.tc(a,olympe.sc.ui.ef.D).forEach(d=>{var e=a.db.Xd(d,olympe.sc.ui.vh.C);d=a.db.Xd(d,olympe.sc.ui.vh.D);a.V.debug(`ScreenTransition: Saving property ${e} to ${d}`);e=b.get(e);c.set(d,e)});return c}
|
|
1940
1940
|
olympe.sc.ui.ef=class extends olympe.dc.CloudObject{constructor(a,b,c){super(a,b);this.V=c}RA(){return this.ql(olympe.sc.ui.ef.O).zf()}CA(){return this.ql(olympe.sc.ui.ef.C).zf()}AA(){return this.tc(olympe.sc.ui.ef.R,olympe.dm.Property).Wd()}C(){return this.tc(olympe.sc.ui.ef.D,olympe.sc.ui.vh)}};olympe.sc.ui.ef.U=olympe.dc.Ja.C('01619a10457e749fdf59',olympe.sc.ui.ef,olympe.sc.ba.Wb);olympe.sc.ui.ef.O=olympe.sc.ui.ef.U.sb('01619a16a406bf504c9f');olympe.sc.ui.ef.C=olympe.sc.ui.ef.U.sb('01619a16a406bf504c9e');
|
|
1941
1941
|
olympe.sc.ui.ef.R=olympe.sc.ui.ef.U.sb('01619a16a406bf504c90');olympe.sc.ui.ef.D=olympe.sc.ui.ef.U.sb('0162befc703dfd7b93b4');Y(olympe.dm.Property.U,olympe.sc.ui.ef.R);olympe.sc.ui.ef.prototype.RA.K=new olympe.j.J(()=>olympe.sc.ui.Screen,[]);olympe.sc.ui.ef.prototype.CA.K=new olympe.j.J(()=>olympe.sc.ui.Screen,[]);olympe.sc.ui.ef.prototype.AA.K=new olympe.j.J(()=>olympe.dm.Property,[]);olympe.sc.ui.ef.prototype.C.K=new olympe.j.J(()=>olympe.dc.Kb,[]);olympe.sc.ui.bA=class extends olympe.sc.Eb.at{constructor(a,b,c,d,e,f){super(a,b,c);this.D=d;this.C=e;this.Oa=f}ue(a){this.render(a);super.ue(a);const b=Le(this.C,olympe.Y.Dj.Xf,c=>{c.c===olympe.Y.iw.hV&&(0<Fk(olympe.dc.nb.from(olympe.sc.ui.ai.Ba).rc(olympe.sc.logic.jd.ty.fe()),[olympe.sc.logic.jd.Ss],this.Ee()).zf().size()?(this.V.debug('A custom listener has been set for the onUpgradeDone event.'),a.Xq(olympe.sc.ui.ai.Ba)):(new olympe.sc.ui.Z.qV(this.Oa)).Xk(!0))});a.onDestroy(()=>Te(this.C,olympe.Y.Dj.Xf,
|
|
1942
|
-
b))}render(a){const b=this.D.hf();var c=this.Ba();const d=this.lg();this.D.gi(d.bb());this.V.debug('Loading fonts');
|
|
1942
|
+
b))}render(a){const b=this.D.hf();var c=this.Ba();const d=this.lg();this.D.gi(d.bb());this.V.debug('Loading fonts');Gq(c,tp(a)).forEach(f=>{b.XI(f)});this.V.debug('Apply theme');d.C().VM(a);const e=d.D();c=pp(a,e.ka());Wq(b.oa(),c);c.GB(olympe.sc.Fb.C.Bp).then(f=>{a.set(olympe.sc.Fb.C.MB,!0);b.appendChild(f,'ui_app_screenflow')}).catch(()=>this.V.warn(`Screenflow ${e.ka()} has not been rendered.`))}};
|
|
1943
1943
|
olympe.sc.ui.bA.U=olympe.dc.Ja.C('0113031000000aca1101',olympe.sc.ui.bA,olympe.sc.ba.Wb,olympe.ui.ba.Pb,olympe.Y.ba.Tt,olympe.host.ba.Vt);olympe.sc.ui.ai=class extends olympe.sc.Eb.Rg{Gi(){return olympe.sc.jf.aj.oL}C(){return this.Lg(olympe.sc.ui.ai.$,olympe.sc.ui.wh)}D(){const a=this.db.tA(this.tag,[olympe.sc.Ac.R],b=>this.db.me(b,olympe.sc.ui.Z.jl));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.jx().Ur().me([olympe.sc.ui.Z.jl]).jk()}};
|
|
1944
1944
|
olympe.sc.ui.ai.U=olympe.dc.Ja.C('011203100000000adef1',olympe.sc.ui.ai,olympe.ui.ba.Pb,olympe.sc.ba.Wb);olympe.sc.ui.ai.Ba=olympe.sc.Eb.Rg.U.fa('016200d21c9069cf23a3');olympe.sc.ui.ai.$=olympe.sc.ui.ai.U.sb('016200d21c9069cf23b4');
|
|
1945
1945
|
olympe.sc.ui.ai.U.C=(a,b,c,d)=>{b=co(a,b||'New UI App',olympe.sc.ui.ai,olympe.sc.ui.bA);var e=olympe.la.Yr();e=olympe.dc.CloudObject.yf(a,olympe.sc.ui.Z.jl,'UIApp Screenflow',e);a.Rb(olympe.sc.Ac.R,b,e);a.Rb(olympe.dc.CloudObject.containsRel,b,e);a.Rb(olympe.sc.Eb.Rg.C,b,c);d&&a.Rb(olympe.sc.ui.ai.$,b,d);return b.ka()};olympe.sc.ui.ai.prototype.C.K=new olympe.j.J(()=>olympe.sc.ui.wh,[]);olympe.sc.ui.ai.prototype.D.K=olympe.j.J.O;olympe.sc.ui.Screen=class extends olympe.sc.ui.Renderable{T(){return[this.na,this.Oa,this.ca,this.Ba,this.$]}Oa(a,b){if(a=a.Qa('MAP_PROPS'))for(const [c,d]of a)b(c,d)}};olympe.sc.ui.Screen.U=olympe.dc.Ja.C('01612df3703450d895ac',olympe.sc.ui.Screen);olympe.sc.ui.Screen.O=Y(olympe.sc.ui.Screen.U,olympe.sc.ui.ef.C);olympe.sc.ui.Screen.tb=Y(olympe.sc.ui.Screen.U,olympe.sc.ui.ef.O);olympe.sc.ui.Screen.Ba=olympe.sc.ui.Screen.U.fa('01648dde0de293c23f90');olympe.sc.ui.Screen.T=olympe.sc.ui.Screen.U.fa('01648dde0de252c9f851');
|
|
1946
1946
|
olympe.sc.ui.Screen.Ka=olympe.sc.ui.Screen.U.fa('01648dde0de26fef1ae0');olympe.sc.ui.Screen.Pa=olympe.sc.ui.Screen.U.fa('01648dde0de218c6a40b');olympe.sc.ui.Screen.na=olympe.sc.ui.Screen.U.fa('01648dde0de2ffac7f66');olympe.sc.ui.Screen.Oa=olympe.sc.ui.Screen.U.fa('01648dde0de283af36bd');olympe.sc.ui.Screen.R=olympe.sc.ui.Screen.U.fa('01648dde0de2ea82e114');Y(olympe.sc.ui.Screen.U,olympe.sc.ui.pl.C);olympe.sc.ui.KL=class extends olympe.sc.ui.Screen{D(){const a=new olympe.ui.F.Ye(new olympe.j.ga(100,100));a.Ma(Fc());return a}};olympe.sc.ui.KL.U=olympe.dc.Ja.C('016402313e7c1e9fd8fa',olympe.sc.ui.KL);olympe.sc.ui.vh=class extends olympe.dc.CloudObject{CA(){return this.tc(olympe.sc.ui.vh.C,olympe.dm.Property).Wd()}RA(){return this.tc(olympe.sc.ui.vh.D,olympe.dm.Property).Wd()}};olympe.sc.ui.vh.O='MAP_PROPS';olympe.sc.ui.vh.U=olympe.dc.Ja.C('0162d3e045580eac6c53',olympe.sc.ui.vh);olympe.sc.ui.vh.C=olympe.sc.ui.vh.U.sb('0162bef0c00ce7782cee');olympe.sc.ui.vh.D=olympe.sc.ui.vh.U.sb('0162bef120e8ca8f61a3');olympe.sc.ui.vh.R=Y(olympe.sc.ui.vh.U,olympe.sc.ui.ef.D);Y(olympe.dm.Property.U,olympe.sc.ui.vh.C);
|
|
1947
|
-
Y(olympe.dm.Property.U,olympe.sc.ui.vh.D);olympe.sc.ui.vh.prototype.CA.K=new olympe.j.J(()=>olympe.dm.Property,[]);olympe.sc.ui.vh.prototype.RA.K=new olympe.j.J(()=>olympe.dm.Property,[]);olympe.sc.ui.dM=class extends olympe.dc.CloudObject{};olympe.sc.ui.dM.U=olympe.dc.Ja.C('0162d3ede786c89fb31b',olympe.sc.ui.dM);olympe.sc.ui.UIEvent=class extends olympe.dc.CloudObject{};olympe.sc.ui.UIEvent.U=olympe.dc.Ja.C('0163fe51d83dad2a0f4b',olympe.sc.ui.UIEvent);olympe.sc.ui.cM=class extends olympe.dc.CloudObject{};olympe.sc.ui.cM.U=olympe.dc.Ja.C('016c865bbf883591cc25',olympe.sc.ui.cM);function
|
|
1948
|
-
olympe.sc.ui.wh=class extends olympe.dm.BrickMetadata{constructor(a,b,c){super(a,b);this.C={};this.O=c}VM(a){if(!this.O){var b=this.db;this.D().forEach(c=>{const d=b.model(c);olympe.j.Wa([c.bb(),c.Td(olympe.sc.ui.Renderable.pb)],(e,f)=>{const g=
|
|
1949
|
-
{jj(b,c,k,r);a.remove(l)})}),olympe.j.
|
|
1947
|
+
Y(olympe.dm.Property.U,olympe.sc.ui.vh.D);olympe.sc.ui.vh.prototype.CA.K=new olympe.j.J(()=>olympe.dm.Property,[]);olympe.sc.ui.vh.prototype.RA.K=new olympe.j.J(()=>olympe.dm.Property,[]);olympe.sc.ui.dM=class extends olympe.dc.CloudObject{};olympe.sc.ui.dM.U=olympe.dc.Ja.C('0162d3ede786c89fb31b',olympe.sc.ui.dM);olympe.sc.ui.UIEvent=class extends olympe.dc.CloudObject{};olympe.sc.ui.UIEvent.U=olympe.dc.Ja.C('0163fe51d83dad2a0f4b',olympe.sc.ui.UIEvent);olympe.sc.ui.cM=class extends olympe.dc.CloudObject{};olympe.sc.ui.cM.U=olympe.dc.Ja.C('016c865bbf883591cc25',olympe.sc.ui.cM);function Vq(a,b,c){return a+'^'+b+'^'+('string'===typeof c?c:c.ka())}function $q(a,b){void 0===a.C[b]&&(a.C[b]=new olympe.dc.Kb(b,[new olympe.dc.Ra.Fj(olympe.dc.Mf.mt,olympe.dc.Ib.DESTINATION,0),olympe.sc.ui.Gj.$],olympe.dm.Property));return a.C[b].getSubscription()}
|
|
1948
|
+
olympe.sc.ui.wh=class extends olympe.dm.BrickMetadata{constructor(a,b,c){super(a,b);this.C={};this.O=c}VM(a){if(!this.O){var b=this.db;this.D().forEach(c=>{const d=b.model(c);olympe.j.Wa([c.bb(),c.Td(olympe.sc.ui.Renderable.pb)],(e,f)=>{const g=Vq(e,d,'');a.Qa(g)||(a.set(g,!0),$q(this,d).forEach(k=>{const l=Vq(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=ij(b,c,k,(t,u)=>{m=u?null:t;p()});if(!e.Sb(f)){const t=Vq(f,d,k);np(a,t,u=>{n=u;p()})}olympe.j.yb().Ve(()=>
|
|
1949
|
+
{jj(b,c,k,r);a.remove(l)})}),olympe.j.yb().Ve(()=>{a.set(g,!1)}))})})}}Gi(){return olympe.sc.jf.aj.ND}D(){return this.tc(olympe.sc.ui.wh.C,olympe.sc.ui.Renderable)}};olympe.sc.ui.wh.U=olympe.dc.Ja.C('0161d7b7e11e93199927',olympe.sc.ui.wh,new olympe.ta.Db(olympe.sc.pa.mC));olympe.sc.ui.wh.O=Y(olympe.sc.ui.wh.U,olympe.sc.ui.ai.$);olympe.sc.ui.wh.C=olympe.sc.ui.wh.U.sb('0170171c1c9e2f1555bb');Y(olympe.sc.ui.Renderable.U,olympe.sc.ui.wh.C);olympe.sc.ui.wh.D=ai('01644110be563fae3bf9','DEFAULT_THEME');
|
|
1950
1950
|
olympe.sc.ui.wh.prototype.VM.K=new olympe.j.J(()=>{},[]);olympe.sc.ui.wh.prototype.D.K=new olympe.j.J(()=>olympe.dc.Kb,[]);olympe.sc.ui.ThemeModel=class extends olympe.sc.rg{};olympe.sc.ui.ThemeModel.U=olympe.dc.Ja.C('018170e67563c0afc0bb',olympe.sc.ui.ThemeModel);olympe.sc.ui.ThemeModel.nameProp=olympe.sc.ui.ThemeModel.U.fa('018170e8784d922f000e');olympe.sc.ui.ThemeModel.primaryColorProp=olympe.sc.ui.ThemeModel.U.fa('018170ee2608eacd830c');olympe.sc.ui.ThemeModel.secondaryColorProp=olympe.sc.ui.ThemeModel.U.fa('018170ee44ec5d550b90');olympe.sc.ui.ThemeModel.errorColorProp=olympe.sc.ui.ThemeModel.U.fa('018170ee5d9539e6d248');
|
|
1951
1951
|
olympe.sc.ui.ThemeModel.warningColorProp=olympe.sc.ui.ThemeModel.U.fa('018170ee7bbb1e53309c');olympe.sc.ui.ThemeModel.infoColorProp=olympe.sc.ui.ThemeModel.U.fa('018170ee9a10111a31b4');olympe.sc.ui.ThemeModel.successColorProp=olympe.sc.ui.ThemeModel.U.fa('018170eeb3a585062ad4');olympe.sc.ui.ThemeModel.fontFamilyProp=olympe.sc.ui.ThemeModel.U.fa('018170ef10002db20904');olympe.sc.ui.Ug=class extends olympe.dm.nm{gf(){return this.zg(olympe.sc.ui.Ug.C)}C(){return this.rc(olympe.sc.ui.Ug.D).zf()}};olympe.sc.ui.Ug.U=olympe.dc.Ja.C('01611e77c1becc16025b',olympe.sc.ui.Ug);olympe.sc.ui.Ug.C=olympe.sc.ui.Ug.U.fa('01611e7ad37b715e393d');olympe.sc.ui.Ug.propertyRel=olympe.sc.ui.Ug.U.sb('01611e7cd458bd5607ac');olympe.sc.ui.Ug.D=olympe.sc.ui.Ug.U.sb('016952415429cb0a0c0a');olympe.sc.ui.Ug.W=ai('0164188f5cc0c205bc06','CUSTOM_PROPERTIES_TAB_CAT');
|
|
1952
1952
|
olympe.sc.ui.Ug.T=ai('0165335122d2ea44dd92','CUSTOM_EVENT_CAT');olympe.sc.ui.Ug.R=ai('0161bd31111c6b32e43d','CATEGORY_SPECIFIC_VALUE');olympe.sc.ui.Ug.O=ai('016362a33e99ca8f8ade','CATEGORY_SPECIFIC_FONT');olympe.sc.ui.Ug.$=ai('016122a51eea77d3dd8a','ROOT_CATEGORY');olympe.sc.ui.Ug.prototype.gf.K=olympe.j.J.D;olympe.sc.ui.Ug.prototype.C.K=new olympe.j.J(()=>olympe.dc.zc,[]);olympe.sc.ui.Jg=class extends olympe.sc.fl{constructor(a,b){super(a,b)}hY(){return this.bn(olympe.sc.ui.Jg.fW)}nY(){return this.bn(olympe.sc.ui.Jg.eZ)}jY(){return this.bn(olympe.sc.ui.Jg.uW)}ce(){return this.tc(olympe.sc.ui.Jg.propertyRel,olympe.dm.Property)}LW(){return this.tc(olympe.sc.ui.Jg.cN,olympe.sc.ui.Ug).Wd()}};olympe.sc.ui.Jg.U=olympe.dc.Ja.C('016d1bb681929c2cc3f0',olympe.sc.ui.Jg);olympe.sc.ui.Jg.eZ=olympe.sc.ui.Jg.U.fa('016d1bb681929c2cc3f2');olympe.sc.ui.Jg.fW=olympe.sc.ui.Jg.U.fa('016d1bb681929c2cc3f3');
|
|
@@ -1960,7 +1960,7 @@ const r=this.Fa(olympe.sc.ui.Rd.Ka,a,b);n=this.Fa(olympe.sc.ui.Z.lc.Us,a,b);l.PC
|
|
|
1960
1960
|
u=>u.valueOf(),Number))});olympe.j.$a(c,()=>{xq(this.Fa(f,a,olympe.sc.Ir),a,k,olympe.j.Xa([l.oa().sa()],u=>u.valueOf(),Number))});sp(a)&&(c=this.Fa(olympe.sc.ui.Rd.O,a,olympe.j.kb,olympe.j.kc('%UNDEFINED%')),l.Jb(olympe.j.Xa([c],u=>olympe.sc.logic.IG.C(this)?u.Sb('%UNDEFINED%')||u.Ii&&u.Ii().valueOf()?olympe.j.kc('%COMPUTED VALUE%'):u:u,olympe.j.kb)));return l}};olympe.sc.ui.Z.lc.U=olympe.dc.Ja.C('01612df3ae3701933b03',olympe.sc.ui.Z.lc);olympe.sc.ui.Z.lc.Ba=olympe.sc.ui.Z.lc.U.fa('016c8b3713bf8f4db871');
|
|
1961
1961
|
olympe.sc.ui.Z.lc.na=olympe.sc.ui.Z.lc.U.fa('016c8b3713bf8f4db872');olympe.sc.ui.Z.lc.wg=olympe.sc.ui.Z.lc.U.fa('0170ca4983528b9f6bd7');olympe.sc.ui.Z.lc.Kg=olympe.sc.ui.Z.lc.U.fa('0170ca4991f5dcc3a484');olympe.sc.ui.Z.lc.Bg=olympe.sc.ui.Z.lc.U.fa('016437688914581fea4d');olympe.sc.ui.Z.lc.Rc=olympe.sc.ui.Z.lc.U.fa('016437688914b03261ce');olympe.sc.ui.Z.lc.Qb=olympe.sc.ui.Z.lc.U.fa('0168997eefed6611afa2');olympe.sc.ui.Z.lc.Us=olympe.sc.ui.Z.lc.U.fa('016437688914bcb67a39');olympe.sc.ui.Z.lc.md=olympe.sc.ui.Z.lc.U.fa('016437688914221515ed');
|
|
1962
1962
|
olympe.sc.ui.Z.lc.hc=olympe.sc.ui.Z.lc.U.fa('0168997f731e2170e16e');olympe.sc.ui.Z.lc.nc=olympe.sc.ui.Z.lc.U.fa('0168990cc9a77f2a16b8');olympe.sc.ui.Z.lc.KD=olympe.sc.ui.Z.lc.U.fa('016d3f37610ae4fc3964');olympe.sc.ui.Z.lc.U.C=function(a,b){a=a.create(olympe.sc.ui.Z.lc);b&&(Z(a,olympe.dc.CloudObject.nameProp,b),Z(a,olympe.sc.ui.Rd.O,b));return a.ka()};olympe.sc.ui.Z.lc.prototype.D.K=new olympe.j.J(()=>olympe.ui.F.lc,[]);olympe.sc.ui.Z.Ie=class extends olympe.sc.ui.Ga{D(a){const b=new olympe.ui.F.Ie(this.oa(a)),c=olympe.j.Xa([b.FA()],d=>d.valueOf(),Boolean);b.Gf(this.O(olympe.sc.ui.Z.Ie.valueProp,a,Boolean,c));this.C(b,a);b.Ma(olympe.j.$a(b.FA(),()=>this.Fa(olympe.sc.ui.Z.Ie.Ba,a,olympe.j.Color),()=>this.Fa(olympe.sc.ui.Renderable.$,a,olympe.j.Color),olympe.j.Color));b.wE().Md(this.Fa(olympe.sc.ui.Z.Ie.Pa,a,olympe.j.aa),this.Fa(olympe.sc.ui.Z.Ie.Ka,a,olympe.j.Color));b.wE().Ma(olympe.j.$a(b.FA(),()=>this.Fa(olympe.sc.ui.Z.Ie.zb,
|
|
1963
|
-
a,olympe.j.Color),()=>this.Fa(olympe.sc.ui.Z.Ie.tb,a,olympe.j.Color),olympe.j.Color));b.Ef(this.Fa(olympe.sc.ui.Z.Ie.O,a,olympe.j.aa,olympe.j.aa.ZERO));
|
|
1963
|
+
a,olympe.j.Color),()=>this.Fa(olympe.sc.ui.Z.Ie.tb,a,olympe.j.Color),olympe.j.Color));b.Ef(this.Fa(olympe.sc.ui.Z.Ie.O,a,olympe.j.aa,olympe.j.aa.ZERO));Qq(a,b,olympe.sc.ui.Z.Ie.na,b.Ka.bind(b),b.Ia.bind(b));return b}};olympe.sc.ui.Z.Ie.U=olympe.dc.Ja.C('0161bce1f151ed95683f',olympe.sc.ui.Z.Ie);olympe.sc.ui.Z.Ie.valueProp=olympe.sc.ui.Z.Ie.U.fa('0161bce236ebb4125ff7');olympe.sc.ui.Z.Ie.na=olympe.sc.ui.Z.Ie.U.fa('0161bce2516b5beb66ee');olympe.sc.ui.Z.Ie.Ba=olympe.sc.ui.Z.Ie.U.fa('016952bd9b2945e0cf2d');
|
|
1964
1964
|
olympe.sc.ui.Z.Ie.Pa=olympe.sc.ui.Z.Ie.U.fa('016eef124b767b01de0e');olympe.sc.ui.Z.Ie.Ka=olympe.sc.ui.Z.Ie.U.fa('016eef2694489f36a6d3');olympe.sc.ui.Z.Ie.tb=olympe.sc.ui.Z.Ie.U.fa('016eeb3de5c4036fe1fa');olympe.sc.ui.Z.Ie.zb=olympe.sc.ui.Z.Ie.U.fa('016eeb3df78614f0290b');olympe.sc.ui.Z.Ie.O=olympe.sc.ui.Z.Ie.U.fa('016eeb5e545fbe43dd7a');olympe.sc.ui.Z.Ie.U.C=function(a,b){a=a.create(olympe.sc.ui.Z.Ie);b&&Z(a,olympe.dc.CloudObject.nameProp,b);return a.ka()};olympe.sc.ui.Z.fg=class extends olympe.sc.ui.Ga{D(a){const b=new Intl.DateTimeFormat(void 0,{month:'long'});var c=this.zg(olympe.sc.ui.Z.fg.na),d=this.zg(olympe.sc.ui.Z.fg.O);const e=new olympe.ui.F.xG(new olympe.j.ga(c,d),{TZ:(m,n)=>{m.Jb(olympe.j.kc(n.day));m.Ma(olympe.j.$a(n.vq,()=>O(),()=>Ic(),olympe.j.Color));m.Yb(olympe.ui.ha.vc.Uc);m.Vb(olympe.ui.ha.Cb.Tb);m.lb(olympe.j.$a(n.vq,()=>Ec('dark slate gray',69,90,100,1),()=>olympe.j.$a(n.HE,()=>Ec('dark cyan',0,150,136,1),()=>olympe.j.$a(n.EE,()=>
|
|
1965
1965
|
O(),()=>Fc(),olympe.j.Color),olympe.j.Color),olympe.j.Color));m.Bb(olympe.j.$a(n.HE.and(n.vq.Re()),()=>700,()=>400,Number));m.Xb(5)},bY:(m,n,p)=>{m.Jb(olympe.j.Xa([p],r=>olympe.j.kc(b.format(r.Av())),olympe.j.kb)).Bb(800).lb(O());n.Jb(p.getYear().pg()).Bb(800).lb(O());m.Yb(olympe.ui.ha.vc.Uc);m.Vb(olympe.ui.ha.Cb.Tb);n.Yb(olympe.ui.ha.vc.Uc);n.Vb(olympe.ui.ha.Cb.Tb)},RV:(m,n)=>{m.Jb('<'===n?'\uf104':'\uf105').Bb(800).vb('FontAwesome').lb(O()).Yb(olympe.ui.ha.vc.Uc).Vb(olympe.ui.ha.Cb.Tb)},a_:(m,n)=>
|
|
1966
1966
|
{m.Jb('Mo Tu We Th Fr Sa Su'.split(' ')[n]);m.lb(O());m.Yb(olympe.ui.ha.vc.Uc);m.Vb(olympe.ui.ha.Cb.Tb)}});e.Ma(olympe.j.Color.create(69,90,100));d=olympe.j.Qa(olympe.j.bc.now());e.ky(d);e.oB(d);olympe.j.Wa([this.Fa(olympe.sc.ui.Z.fg.Ba,a,olympe.j.kb)],m=>{'DD.MM.YYYY'!==m.valueOf()&&this.V.warn('[DatePicker] Using custom format is no longer supported! Date will be formatted as DD.MM.YYYY!')});d=this.O(olympe.sc.ui.Z.fg.valueProp,a,String,olympe.j.Xa([e.OA()],m=>m.sp().valueOf(),String),olympe.j.bc.now().sp().valueOf());
|
|
@@ -1969,7 +1969,7 @@ n=olympe.ui.La.hf();m?(l&&(n.Vj(l.valueOf()),l=void 0),f.update(olympe.j.ia.ob))
|
|
|
1969
1969
|
olympe.sc.ui.Z.fg.U=olympe.dc.Ja.C('01719cda197c37ff5018',olympe.sc.ui.Z.fg);olympe.sc.ui.Z.fg.valueProp=olympe.sc.ui.Z.fg.U.fa('01719cdb1c36b870db0d');olympe.sc.ui.Z.fg.Ba=olympe.sc.ui.Z.fg.U.fa('01611e3015371b459ce8');olympe.sc.ui.Z.fg.na=olympe.sc.ui.Z.fg.U.fa('01611e3015371b459cf9');olympe.sc.ui.Z.fg.O=olympe.sc.ui.Z.fg.U.fa('01611e3015371b459cd5');
|
|
1970
1970
|
olympe.sc.ui.Z.fg.U.C=(a,b)=>{a=a.create(olympe.sc.ui.Z.fg);Z(a,olympe.dc.CloudObject.nameProp,b);Z(a,olympe.sc.ui.Z.fg.Ba,'DD.MM.YYYY');Z(a,olympe.sc.ui.Z.fg.valueProp,olympe.j.bc.now().sp());Z(a,olympe.sc.ui.Z.fg.na,250);Z(a,olympe.sc.ui.Z.fg.O,250);Z(a,olympe.sc.ui.Renderable.C,olympe.j.Ca(250));Z(a,olympe.sc.ui.Renderable.D,olympe.j.Ca(40));return a.ka()};olympe.sc.ui.Z.pd=class extends olympe.sc.ui.Rd{D(a){const b=this.Fa(olympe.sc.ui.Z.pd.nc,a,olympe.j.Pk),c=this.Fa(olympe.sc.ui.Z.pd.hc,a,olympe.sc.logic.Function,null),d=this.oa(a),e=new olympe.ui.F.pd(d,b,{render:(g,k)=>{const l=new olympe.ui.F.cb(k);l.Hc(5);this.C(l,a);olympe.j.Wa([c,g],(m,n)=>{if(null===m)l.Jb('');else{const p=a.Co('dropdown_renderer'),[r]=m.getInputs(),[t]=m.getOutputs();p.set(r,n);m.run(p);l.Jb(p.wa(t,String,!0))}});return l},getType:()=>olympe.dc.CloudObject});e.Lc(10);e.Qg(olympe.j.kb.BD.qA(this.Fa(olympe.sc.ui.Z.pd.Qb,
|
|
1971
1971
|
a,olympe.j.kb)));this.C(e.pb,a);e.HP(this.Fa(olympe.sc.ui.Z.pd.Bg,a,olympe.j.ia,olympe.j.ia.ob));e.QP(d.sa().Ua(2).Cn(this.Fa(olympe.sc.ui.Z.pd.Us,a,olympe.j.aa,olympe.j.aa.ZERO)));e.FP(this.Fa(olympe.sc.ui.Z.pd.Kg,a,olympe.j.aa,olympe.j.Ca(10)));e.RC(new olympe.j.ga(this.Fa(olympe.sc.ui.Z.pd.wg,a,olympe.j.aa),this.Fa(olympe.sc.ui.Z.pd.Rc,a,olympe.j.aa)));e.SC(this.Fa(olympe.sc.ui.Z.pd.md,a,olympe.j.kb));this.C(e,a);olympe.j.cg(e.T,g=>{a.set(olympe.sc.ui.Z.pd.Ba,g)});this.O(olympe.sc.ui.Z.pd.na,a,
|
|
1972
|
-
olympe.j.ia,e.gP(),olympe.j.ia.ob);np(a,olympe.sc.ui.Z.pd.na,g=>{e.KP(g)},this);const f=this.Fa(olympe.sc.ui.Z.pd.Ba,a,olympe.dc.CloudObject);e.na.forEach((g,k)=>{olympe.j.$a(olympe.j.Xa([f,g],(l,m)=>olympe.j.jc(l.ka&&l.ka()===m.ka()),olympe.j.ia),()=>e.YP(k))});
|
|
1972
|
+
olympe.j.ia,e.gP(),olympe.j.ia.ob);np(a,olympe.sc.ui.Z.pd.na,g=>{e.KP(g)},this);const f=this.Fa(olympe.sc.ui.Z.pd.Ba,a,olympe.dc.CloudObject);e.na.forEach((g,k)=>{olympe.j.$a(olympe.j.Xa([f,g],(l,m)=>olympe.j.jc(l.ka&&l.ka()===m.ka()),olympe.j.ia),()=>e.YP(k))});Qq(a,e,olympe.sc.ui.Z.pd.KD,e.Bg.bind(e),e.mg.bind(e));return e}};olympe.sc.ui.Z.pd.U=olympe.dc.Ja.C('01646ac1cbb34f2ae625',olympe.sc.ui.Z.pd);olympe.sc.ui.Z.pd.nc=olympe.sc.ui.Z.pd.U.fa('01646ac1ce7698272467');olympe.sc.ui.Z.pd.hc=olympe.sc.ui.Z.pd.U.fa('01646ac1cf8521b01aba');
|
|
1973
1973
|
olympe.sc.ui.Z.pd.Ba=olympe.sc.ui.Z.pd.U.fa('01646b41d4fb284e88c4');olympe.sc.ui.Z.pd.Qb=olympe.sc.ui.Z.pd.U.fa('016dca2998c1f20c3c6e');olympe.sc.ui.Z.pd.Kg=olympe.sc.ui.Z.pd.U.fa('016edaa40fdb543d0176');olympe.sc.ui.Z.pd.md=olympe.sc.ui.Z.pd.U.fa('016edacf08785409c410');olympe.sc.ui.Z.pd.wg=olympe.sc.ui.Z.pd.U.fa('016edb1bc5fb269bfce8');olympe.sc.ui.Z.pd.Rc=olympe.sc.ui.Z.pd.U.fa('016edb1bcff460c08af3');olympe.sc.ui.Z.pd.Bg=olympe.sc.ui.Z.pd.U.fa('016edb8f1f3e173ffa3e');olympe.sc.ui.Z.pd.Us=olympe.sc.ui.Z.pd.U.fa('016edbc49fa2c9ef9e8d');
|
|
1974
1974
|
olympe.sc.ui.Z.pd.na=olympe.sc.ui.Z.pd.U.fa('016eda7c30ccd9936f6d');olympe.sc.ui.Z.pd.KD=olympe.sc.ui.Z.pd.U.fa('0165cdf57056f7394839');olympe.sc.ui.Z.Je=class extends olympe.sc.ui.Ga{D(a){const b=new olympe.ui.F.Je(this.oa(a));b.Hs(!0);kg(b,c=>{const d=bo(),e=[];for(const f of c){c=f.qx().valueOf();const g=olympe.sc.hX(c);c=olympe.dm.File.D(g,d,f.lz().valueOf(),f.Ae(),c);e.push(c)}d.Ld(f=>{f?(a.set(olympe.sc.ui.Z.Je.O,e.map(olympe.dc.CloudObject.get)),a.Xq(olympe.sc.ui.Z.Je.na)):this.V.warn('The application encountered a problem while uploading files. The transaction failed.')})});this.C(b,a);return b}};
|
|
1975
1975
|
olympe.sc.ui.Z.Je.U=olympe.dc.Ja.C('0165cd420a0ddfa948a2',olympe.sc.ui.Z.Je);olympe.sc.ui.Z.Je.O=olympe.sc.ui.Z.Je.U.fa('0165cd42349c06193ae4');olympe.sc.ui.Z.Je.na=olympe.sc.ui.Z.Je.U.fa('0165cd424c8ac11a98ba');olympe.sc.ui.Z.Image=class extends olympe.sc.ui.Ga{D(a){const b=new olympe.ui.F.ye(this.oa(a));this.C(b,a);const c=olympe.dc.CloudObject.get('016eb13ba1388f7bdd71');b.Cs(olympe.j.Xa([this.Fa(olympe.sc.ui.Z.Image.zb,a,olympe.sc.eo,c)],d=>{d instanceof olympe.sc.vi&&(d=d.C());if(d instanceof olympe.sc.eo)return d.D();if('string'===typeof d||d instanceof olympe.j.kb)return olympe.j.kc(d);this.V.warn('Image: cannot set value as background image source',d);return olympe.j.kb.EMPTY},olympe.j.kb));b.Sq(this.Fa(olympe.sc.ui.Z.Image.O,
|
|
@@ -1980,39 +1980,39 @@ olympe.sc.ui.Z.Image.nc={'01611e082c56483c8ef2':olympe.ui.ha.df.Wf,'01611e09c8b0
|
|
|
1980
1980
|
olympe.sc.ui.Z.Image.Qb={'01611e0bda4db5357514':olympe.ui.ha.Dh.Wf,'01611e0bf880be3d343d':olympe.ui.ha.Dh.dt,'01611e0c10abf1090731':olympe.ui.ha.Dh.et,'01611e0bbbd851a47e01':olympe.ui.ha.Dh.Zs};olympe.sc.ui.Z.Image.Gb='016eb13ba1388f7bdd71';olympe.sc.ui.Z.cb=class extends olympe.sc.ui.Rd{D(a){var b=olympe.sc.ui.Z.cb.Qb,c=olympe.sc.ui.Z.cb.na;const d=olympe.sc.ui.Z.cb.Ba,e=olympe.sc.ui.Z.cb.Rc;var f=olympe.sc.ui.Z.cb.hc;const g=olympe.sc.ui.Z.cb.nc,k=olympe.sc.ui.Renderable.C,l=olympe.sc.ui.Renderable.D,m=olympe.j.ia.ob,n=new olympe.ui.F.cb(this.oa(a));this.C(n,a);b=this.Fa(b,a,olympe.j.ia);n.fo(b);n.fi(this.Fa(e,a,olympe.j.kb));n.Zd(this.Fa(d,a,olympe.j.ia));n.Fd(this.Fa(c,a,olympe.j.ia));n.Ql(this.Fa(f,a,olympe.j.ia));f=this.Fa(d,a,
|
|
1981
1981
|
olympe.j.ia,m);c=this.Fa(c,a,olympe.j.ia,m);olympe.j.$a(b,()=>{const p=this.Fa(g,a,olympe.sc.Ir);xq(p,a,e,olympe.ui.ha.vo.Mv);xq(p,a,d,!1)});olympe.j.$a(f,()=>{xq(this.Fa(g,a,olympe.sc.Ir),a,k,olympe.j.Xa([n.oa().qa()],p=>p.valueOf(),Number))});olympe.j.$a(c,()=>{xq(this.Fa(g,a,olympe.sc.Ir),a,l,olympe.j.Xa([n.oa().sa()],p=>p.valueOf(),Number))});sp(a)&&(c=this.Fa(olympe.sc.ui.Rd.O,a,String,'%UNDEFINED%'),n.Jb(olympe.j.Xa([c],p=>olympe.sc.logic.IG.C(this)?'%UNDEFINED%'===p||''===p?'%COMPUTED VALUE%':
|
|
1982
1982
|
p:p,olympe.j.kb)));return n}};olympe.sc.ui.Z.cb.U=olympe.dc.Ja.C('01612df39109cf82fa8d',olympe.sc.ui.Z.cb);olympe.sc.ui.Z.cb.nc=olympe.sc.ui.Z.cb.U.fa('016d3f37610ae4fc3963');olympe.sc.ui.Z.cb.Qb=olympe.sc.ui.Z.cb.U.fa('016c8b3713bf8f4db860');olympe.sc.ui.Z.cb.Rc=olympe.sc.ui.Z.cb.U.fa('0170a5a1ad57c8e9545b');olympe.sc.ui.Z.cb.Ba=olympe.sc.ui.Z.cb.U.fa('016c8b3713bf8f4db861');olympe.sc.ui.Z.cb.na=olympe.sc.ui.Z.cb.U.fa('016c8b3713bf8f4db862');olympe.sc.ui.Z.cb.hc=olympe.sc.ui.Z.cb.U.fa('016ea1b4cb51e0229e85');
|
|
1983
|
-
olympe.sc.ui.Z.cb.U.C=function(a,b){a=a.create(olympe.sc.ui.Z.cb);b&&(Z(a,olympe.dc.CloudObject.nameProp,b),Z(a,olympe.sc.ui.Z.cb.O,b));return a.ka()};olympe.sc.ui.Z.cb.prototype.D.K=new olympe.j.J(()=>olympe.ui.F.cb,[]);function
|
|
1984
|
-
function
|
|
1985
|
-
function
|
|
1986
|
-
olympe.sc.ui.Z.Ce=class extends olympe.sc.ui.Ga{D(a){if(sp(a))return
|
|
1987
|
-
b.Co('list_row');c.run(k);const l=k.get(olympe.sc.Fb.C.Bp);olympe.j.Wa([a.qa()],m=>k.set(olympe.sc.ui.Renderable.C,m));olympe.j.Wa([a.sa()],m=>{0===m.valueOf()&&(m=olympe.j.aa.ONE);k.set(olympe.sc.ui.Renderable.D,m)});k.set(olympe.sc.ui.fc.R,0);k.set(olympe.sc.ui.fc.T,0);k.set(olympe.sc.ui.Z.io.na,g);olympe.j.Wa([e],m=>k.set(olympe.sc.ui.Z.io.O,m));f.appendChild(l,'currentRenderedItem');olympe.j.
|
|
1983
|
+
olympe.sc.ui.Z.cb.U.C=function(a,b){a=a.create(olympe.sc.ui.Z.cb);b&&(Z(a,olympe.dc.CloudObject.nameProp,b),Z(a,olympe.sc.ui.Z.cb.O,b));return a.ka()};olympe.sc.ui.Z.cb.prototype.D.K=new olympe.j.J(()=>olympe.ui.F.cb,[]);function ar(a,b){var c=a.oa(b);const d=br(a,b),e=cr(a,b),f=new olympe.j.Ce(olympe.dc.CloudObject);olympe.j.Wa([c.sa(),d.sa(),olympe.j.pj(e.Sc(),0)],(k,l)=>{k=Math.ceil(k/l);if(Number.isFinite(k)){l=f.ej();if(k<l)for(var m=l-1;m>=k;m--)f.remove(f.vl(m));for(m=olympe.j.Qa(e);l<k;l++)f.set('item'+l,m&&m.ul(l)||null,l)}});const g=dr(a);c=new olympe.ui.F.tt(c,f,olympe.dc.CloudObject,a.pb.bind(a,d,b,g));a.C(c,b);return c}
|
|
1984
|
+
function dr(a){a=a.db.Cc(a,olympe.sc.ui.Z.Ce.O);return a instanceof olympe.dc.Lf?Gh(a):null}function cr(a,b){a=a.Fa(olympe.sc.ui.Z.Ce.na,b,olympe.dc.Kb);return olympe.j.Xa([a],c=>{if(c instanceof olympe.j.Ce)return c;if(c instanceof olympe.dc.Kb){const e=olympe.j.Za(olympe.dc.Kb);c.Li(()=>e.update(c));return e.wa()}const d=new olympe.j.Ce(olympe.dc.CloudObject);c instanceof Array&&c.forEach((e,f)=>{const g=olympe.la.cf();d.set(g,e);d.Ks(g,f)});return d},olympe.j.Xg)}
|
|
1985
|
+
function br(a,b){const c=olympe.j.aa,d=a.Fa(olympe.sc.ui.Renderable.C,b,c,c.ZERO);a=olympe.j.Xa([a.Fa(olympe.sc.ui.Z.Ce.Ba,b,c)],e=>0>=e.valueOf()?void 0:e,c,'List row height');return new olympe.j.ga(d,a)}
|
|
1986
|
+
olympe.sc.ui.Z.Ce=class extends olympe.sc.ui.Ga{D(a){if(sp(a))return ar(this,a);var b=dr(this);b=new olympe.ui.F.tt(this.oa(a),cr(this,a),olympe.dc.CloudObject,this.Oa.bind(this,br(this,a),a,b));this.C(b,a);return b}R(a){return a.includes(this.ka())?this.jx().Ur().me([olympe.sc.ui.Ud]).filter(b=>a.includes(olympe.dc.Ya(b))).jk():null}pb(a,b,c,d,e,f){a=this.Oa(a,b,c,d,e,f);a.Md(1,olympe.j.Color.create(46,135,239));a.og(.4);return a}Oa(a,b,c,d,e){const f=new olympe.ui.F.Ye(a);olympe.j.Wa([d],g=>{const k=
|
|
1987
|
+
b.Co('list_row');c.run(k);const l=k.get(olympe.sc.Fb.C.Bp);olympe.j.Wa([a.qa()],m=>k.set(olympe.sc.ui.Renderable.C,m));olympe.j.Wa([a.sa()],m=>{0===m.valueOf()&&(m=olympe.j.aa.ONE);k.set(olympe.sc.ui.Renderable.D,m)});k.set(olympe.sc.ui.fc.R,0);k.set(olympe.sc.ui.fc.T,0);k.set(olympe.sc.ui.Z.io.na,g);olympe.j.Wa([e],m=>k.set(olympe.sc.ui.Z.io.O,m));f.appendChild(l,'currentRenderedItem');olympe.j.yb().Ve(()=>{k.destroy()})});return f}};olympe.sc.ui.Z.Ce.U=olympe.dc.Ja.C('01633eae77762d97b497',olympe.sc.ui.Z.Ce);
|
|
1988
1988
|
olympe.sc.ui.Z.Ce.O=olympe.sc.ui.Z.Ce.U.fa('01633eda39772493a535');olympe.sc.ui.Z.Ce.na=olympe.sc.ui.Z.Ce.U.fa('01633eaf88c467023dac');olympe.sc.ui.Z.Ce.Ba=olympe.sc.ui.Z.Ce.U.fa('01633eaf88c4b25d8071');
|
|
1989
1989
|
olympe.sc.ui.Z.Ce.U.C=function(a,b){const c=a.create(olympe.sc.ui.Z.Ce);Z(c,olympe.dc.CloudObject.nameProp,b);Z(c,olympe.sc.ui.Renderable.C,200);Z(c,olympe.sc.ui.Renderable.D,400);b=olympe.dc.CloudObject.yf(a,olympe.sc.ui.gw,'Item Renderer',!0);const d=olympe.dc.CloudObject.yf(a,b,'item renderer');Z(c,olympe.sc.ui.Z.Ce.O,new olympe.dc.Lf(d));a.Rb(olympe.sc.Runnable.ca,d,b);a.Rb(olympe.sc.Runnable.W,d,b);a.Rb(olympe.dc.CloudObject.containsRel,c,b);return c.ka()};olympe.sc.ui.Z.io=class extends olympe.sc.ui.fc{D(a){return super.D(a)}};olympe.sc.ui.Z.io.U=olympe.dc.Ja.C('016995c9f3cd1db60dc7',olympe.sc.ui.Z.io);olympe.sc.ui.Z.io.na=olympe.sc.ui.Z.io.U.fa('016343f1676b2cb4ad06');olympe.sc.ui.Z.io.O=olympe.sc.ui.Z.io.U.fa('016343f1676b131af556');olympe.sc.ui.Z.Map=class extends olympe.sc.ui.Ga{D(a){const b=new olympe.ui.Ta.Va.Map(this.oa(a));this.C(b,a);b.Cv(this.Fa(olympe.sc.ui.Z.Map.Ka,a,olympe.j.kb),this.Fa(olympe.sc.ui.Z.Map.Ba,a,olympe.j.kb));b.Gs(this.O(olympe.sc.ui.Z.Map.na,a,olympe.j.aa,b.uE()));b.Fs(this.O(olympe.sc.ui.Z.Map.O,a,olympe.j.aa,b.sE()));b.Qs(this.O(olympe.sc.ui.Z.Map.Pa,a,olympe.j.aa,b.R()));const c=this.Fa(olympe.sc.ui.Z.Map.tb,a,olympe.sc.logic.Function,null);olympe.j.Wa([this.Fa(olympe.sc.ui.Z.Map.zb,a,olympe.j.Xg)],
|
|
1990
|
-
d=>{d&&d.forEach&&d.forEach((e,f)=>{olympe.j.Wa([c],g=>{if(null===g)b.ys(f);else{const k=a.Co('object_to_marker'),[l]=g.getInputs(),[m,n]=g.getOutputs();k.set(l,e);g.run(k);olympe.j.Wa([k.wa(n,Number,!0),k.wa(m,Number,!0)],(p,r)=>b.lu(p,r,f))}});olympe.j.
|
|
1990
|
+
d=>{d&&d.forEach&&d.forEach((e,f)=>{olympe.j.Wa([c],g=>{if(null===g)b.ys(f);else{const k=a.Co('object_to_marker'),[l]=g.getInputs(),[m,n]=g.getOutputs();k.set(l,e);g.run(k);olympe.j.Wa([k.wa(n,Number,!0),k.wa(m,Number,!0)],(p,r)=>b.lu(p,r,f))}});olympe.j.yb().Ve(()=>b.ys(f))})});return b}};olympe.sc.ui.Z.Map.U=olympe.dc.Ja.C('016426b17399ffc56c99',olympe.sc.ui.Z.Map);olympe.sc.ui.Z.Map.Ba=olympe.sc.ui.Z.Map.U.fa('016427a99e367fa6c09d');olympe.sc.ui.Z.Map.Gb=olympe.sc.ui.Z.Map.U.fa('01766b9dcec160a517e1');
|
|
1991
1991
|
olympe.sc.ui.Z.Map.na=olympe.sc.ui.Z.Map.U.fa('016427a9b97eea350e50');olympe.sc.ui.Z.Map.O=olympe.sc.ui.Z.Map.U.fa('016427a9cfb705df606e');olympe.sc.ui.Z.Map.Pa=olympe.sc.ui.Z.Map.U.fa('016427a9e5efd39a5071');olympe.sc.ui.Z.Map.Ka=olympe.sc.ui.Z.Map.U.fa('016436f8c0383becf392');olympe.sc.ui.Z.Map.zb=olympe.sc.ui.Z.Map.U.fa('0164378b2cebf5cc6b6b');olympe.sc.ui.Z.Map.tb=olympe.sc.ui.Z.Map.U.fa('0168ec49fe6e55ebe510');
|
|
1992
|
-
olympe.sc.ui.Z.Map.U.C=(a,b)=>{a=a.create(olympe.sc.ui.Z.Map);Z(a,olympe.dc.CloudObject.nameProp,b);Z(a,olympe.sc.ui.Z.Map.Ka,olympe.N.Ta.Va.Map.C.bK);Z(a,olympe.sc.ui.Z.Map.Ba,'streets-v11');Z(a,olympe.sc.ui.Z.Map.O,46.5);Z(a,olympe.sc.ui.Z.Map.na,6.5);Z(a,olympe.sc.ui.Z.Map.Pa,10);Z(a,olympe.sc.ui.Renderable.C,500);Z(a,olympe.sc.ui.Renderable.D,500);return a.ka()};olympe.sc.ui.Z.ye=class extends olympe.sc.ui.Ga{D(a){const b=new olympe.ui.F.ye(this.oa(a));this.C(b,a);return b}};olympe.sc.ui.Z.ye.U=olympe.dc.Ja.C('01646f6a3fa5615a5bd1',olympe.sc.ui.Z.ye);olympe.sc.ui.Z.ye.U.C=function(a,b){a=a.create(olympe.sc.ui.Z.ye);Z(a,olympe.dc.CloudObject.nameProp,b);return a.ka()};function
|
|
1993
|
-
'Screenflow process screen change');var n=null;olympe.j.Wa([m],p=>{const r=pp(b,p);n&&n.destroy();n=r;p.run(r);
|
|
1994
|
-
function
|
|
1995
|
-
function
|
|
1996
|
-
function
|
|
1997
|
-
function
|
|
1998
|
-
function
|
|
1999
|
-
function
|
|
1992
|
+
olympe.sc.ui.Z.Map.U.C=(a,b)=>{a=a.create(olympe.sc.ui.Z.Map);Z(a,olympe.dc.CloudObject.nameProp,b);Z(a,olympe.sc.ui.Z.Map.Ka,olympe.N.Ta.Va.Map.C.bK);Z(a,olympe.sc.ui.Z.Map.Ba,'streets-v11');Z(a,olympe.sc.ui.Z.Map.O,46.5);Z(a,olympe.sc.ui.Z.Map.na,6.5);Z(a,olympe.sc.ui.Z.Map.Pa,10);Z(a,olympe.sc.ui.Renderable.C,500);Z(a,olympe.sc.ui.Renderable.D,500);return a.ka()};olympe.sc.ui.Z.ye=class extends olympe.sc.ui.Ga{D(a){const b=new olympe.ui.F.ye(this.oa(a));this.C(b,a);return b}};olympe.sc.ui.Z.ye.U=olympe.dc.Ja.C('01646f6a3fa5615a5bd1',olympe.sc.ui.Z.ye);olympe.sc.ui.Z.ye.U.C=function(a,b){a=a.create(olympe.sc.ui.Z.ye);Z(a,olympe.dc.CloudObject.nameProp,b);return a.ka()};function er(a,b){if(sp(b))b.set(olympe.sc.Fb.C.Bp,fr(a,b));else{var c=a.oa(b),d=new olympe.ui.F.Ye(c),e=a.Qe(),f=a.Fa(olympe.sc.ui.Z.jl.O,b,olympe.sc.ui.Screen),g=tp(b),k=new Set;gr(a,g,()=>{a.Oa?hr(a,e,k,g,()=>{ir(e,f,b)}):ir(e,f,b)});var l=olympe.j.yb(),m=olympe.j.Za(olympe.sc.ui.Screen,'Screenflow loaded screen');jr(e,g,()=>{olympe.j.Wa([m],p=>{kr(p,b)})});olympe.j.Wa([f],p=>{k.has(p.ka())?m.update(p):l.run(()=>lr(p,g,()=>{k.add(p.ka());olympe.dc.Ya(f)===p.ka()?m.update(p):a.V.warn(`The selected screen ${olympe.dc.Ya(f)} has changed while the loading of another one ${p.ka()}`)}))},
|
|
1993
|
+
'Screenflow process screen change');var n=null;olympe.j.Wa([m],p=>{const r=pp(b,p);n&&n.destroy();n=r;p.run(r);Wq(c,r);r.GB(olympe.sc.Fb.C.Bp).then(t=>{d.appendChild(t,'screen');b.set(olympe.sc.Fb.C.Bp,d)}).catch(()=>a.V.warn(`Screen ${p.ka()} has not been rendered.`));olympe.j.yb().Ve(()=>{r.destroy()})},'Screenflow render loaded screen')}}
|
|
1994
|
+
function fr(a,b){const c=a.oa(b),d=new olympe.ui.F.Ye(c);a.C(d,b);a=new olympe.ui.F.cb(c);a.Md(1,N());a.Yb(olympe.ui.ha.vc.Uc);a.Vb(olympe.ui.ha.Cb.Tb);a.Jb('Screenflow');a.rb(c.qa().hb(.1));a.og(.5);d.appendChild(a,'label');return d}function gr(a,b,c){const d=olympe.j.yb();olympe.dc.nb.from(a.Qe()).bj().rc(olympe.sc.ui.pl.C,!0).back().rc(olympe.sc.Ac.T,!0).rc(olympe.sc.Runnable.ca,!0).observe(d,{$g:mr(b)}).subscribe(d.re(()=>null==c?void 0:c()))}
|
|
1995
|
+
function hr(a,b,c,d,e){b=olympe.dc.nb.from(b).rc(olympe.sc.Ac.T).zf();const f=olympe.j.yb(),g=new olympe.async.ML(f);b.forEach(k=>{g.add(l=>lr(k,d,()=>{c.add(k.ka());f.run(l)}))});Jd(g,(k,l)=>{!k&&a.V.error(`Error while downloading some screen data: ${l}`);e()});g.start()}
|
|
1996
|
+
function ir(a,b,c){let d;void 0===olympe.j.Qa(b)&&(d=a.ql(olympe.sc.ui.pl.C).zf())&&c.set(olympe.sc.ui.Z.jl.O,d);a.rc(olympe.sc.ui.pl.C).observe(olympe.j.yb(),{kg:!0}).pipe(rxjs.operators.skip(d?1:0)).subscribe(e=>{c.set(olympe.sc.ui.Z.jl.O,e.Wd())})}
|
|
1997
|
+
function jr(a,b,c){const d=olympe.j.yb();olympe.dc.nb.from(a).bj().rc(olympe.sc.Ac.T,!0).rc(olympe.sc.ui.ef.C.fe(),!0).rc(olympe.sc.ui.ef.O,!0).back().rc(olympe.sc.ui.ef.R,!0).back().rc(olympe.sc.ui.ef.D,!0).observe(d,{$g:mr(b),Vr:'__code-as-data__'}).subscribe(()=>null==c?void 0:c())}
|
|
1998
|
+
function kr(a,b){const c=olympe.j.yb(),d=new Map,e=a.ka();a.rc(olympe.sc.ui.ef.C.fe()).observe(c,{kg:!0}).subscribe(f=>{f.wu().forEach(g=>{const k=g.CA(),l=g.RA();if(e!==(null==l?void 0:l.ka())){var m=new olympe.j.ee('',c);d.set(g.ka(),m);m.run(()=>{const n=pp(b,e);olympe.j.Wa([g.AA()],p=>{np(n,p,()=>{pp(b,l);const r=Zq(g,n);b.set('MAP_PROPS',r);b.set(olympe.sc.ui.Z.jl.O,l)},k)})})}});f.Eu().forEach(g=>{let k;null==(k=d.get(g))||k.destroy();d.delete(g)})})}
|
|
1999
|
+
function lr(a,b,c){const d=olympe.j.yb();olympe.dc.nb.bf(d,a,olympe.dc.Te.Zi,void 0,{$g:mr(b),zB:!0}).subscribe(()=>null==c?void 0:c())}function mr(a){return a?olympe.dc.nb.Kf.Wp:olympe.dc.nb.Kf.im}olympe.sc.ui.Z.jl=class extends olympe.sc.ui.Ga{constructor(a,b,c,d){super(a,b);this.Oa=d}update(a){er(this,a)}R(){return(new olympe.dc.Sp(this)).mN().me([olympe.sc.ui.Screen]).jk()}};olympe.sc.ui.Z.jl.U=olympe.dc.Ja.C('0163f87334925ee199c4',olympe.sc.ui.Z.jl,olympe.ya.ba.Pb,new olympe.ta.Db(olympe.xa.pa.Az));
|
|
2000
2000
|
olympe.sc.ui.Z.jl.O=olympe.sc.ui.Z.jl.U.fa('016e608cbdeab7a480ce');olympe.sc.ui.Z.Jd=class extends olympe.sc.ui.Ga{D(a){var b=this.Fa(olympe.sc.ui.Z.Jd.Pa,a,olympe.j.aa);const c=this.Fa(olympe.sc.ui.Z.Jd.Ka,a,olympe.j.aa),d=this.Fa(olympe.sc.ui.Z.Jd.O,a,olympe.j.aa);b=new olympe.ui.F.Jd(this.oa(a),b,c,d);b.Gf(this.O(olympe.sc.ui.Z.Jd.valueProp,a,Number,olympe.j.Xa([b.getValue()],e=>e.valueOf(),Number)));this.C(b,a);b.PP(this.Fa(olympe.sc.ui.Z.Jd.na,a,olympe.j.Color));b.Qh(this.Fa(olympe.sc.ui.Z.Jd.Ba,a,olympe.j.aa));b.aQ(this.Fa(olympe.sc.ui.Z.Jd.hc,a,olympe.j.Color));
|
|
2001
|
-
b.cQ(this.Fa(olympe.sc.ui.Z.Jd.Gb,a,olympe.j.Color));b.$P(this.Fa(olympe.sc.ui.Z.Jd.Qb,a,olympe.j.aa));b.ZP(this.Fa(olympe.sc.ui.Z.Jd.nc,a,olympe.j.Color));b.bQ(this.Fa(olympe.sc.ui.Z.Jd.zb,a,olympe.j.Color));
|
|
2001
|
+
b.cQ(this.Fa(olympe.sc.ui.Z.Jd.Gb,a,olympe.j.Color));b.$P(this.Fa(olympe.sc.ui.Z.Jd.Qb,a,olympe.j.aa));b.ZP(this.Fa(olympe.sc.ui.Z.Jd.nc,a,olympe.j.Color));b.bQ(this.Fa(olympe.sc.ui.Z.Jd.zb,a,olympe.j.Color));Qq(a,b,olympe.sc.ui.Z.Jd.tb,b.sP.bind(b),b.oP.bind(b));return b}};olympe.sc.ui.Z.Jd.U=olympe.dc.Ja.C('0163df0bbf0d8c8ca7d3',olympe.sc.ui.Z.Jd);olympe.sc.ui.Z.Jd.valueProp=olympe.sc.ui.Z.Jd.U.fa('0163df0bc2f7d39a2396');olympe.sc.ui.Z.Jd.Pa=olympe.sc.ui.Z.Jd.U.fa('0163df0bc9635729e324');
|
|
2002
2002
|
olympe.sc.ui.Z.Jd.Ka=olympe.sc.ui.Z.Jd.U.fa('0163df0bca9e746a1bda');olympe.sc.ui.Z.Jd.O=olympe.sc.ui.Z.Jd.U.fa('01697cd892e2698db26b');olympe.sc.ui.Z.Jd.Ba=olympe.sc.ui.Z.Jd.U.fa('01697cd8ffd33aa56287');olympe.sc.ui.Z.Jd.na=olympe.sc.ui.Z.Jd.U.fa('01697cd93f436566d0c9');olympe.sc.ui.Z.Jd.hc=olympe.sc.ui.Z.Jd.U.fa('01697cd97974dfd25476');olympe.sc.ui.Z.Jd.Gb=olympe.sc.ui.Z.Jd.U.fa('01697cd9b11eb39a003d');olympe.sc.ui.Z.Jd.nc=olympe.sc.ui.Z.Jd.U.fa('01697cd9f6f7d89034ec');olympe.sc.ui.Z.Jd.Qb=olympe.sc.ui.Z.Jd.U.fa('016980a2557456722aae');
|
|
2003
2003
|
olympe.sc.ui.Z.Jd.zb=olympe.sc.ui.Z.Jd.U.fa('01697cda25b97273ee84');olympe.sc.ui.Z.Jd.tb=olympe.sc.ui.Z.Jd.U.fa('01697cda53b82f03b323');olympe.sc.ui.Z.Qc=class extends olympe.sc.ui.Ne{D(a){const b=new olympe.ui.F.Qc(this.oa(a));this.C(b,a);b.Jb(this.O(olympe.sc.ui.Rd.O,a,String,olympe.j.Xa([b.Rj()],c=>c.valueOf(),String)));return b}};olympe.sc.ui.Z.Qc.U=olympe.dc.Ja.C('01683779d3c3769a590f',olympe.sc.ui.Z.Qc);olympe.sc.ui.Z.Qc.U.C=function(a,b){a=a.create(olympe.sc.ui.Z.Qc);b&&Z(a,olympe.dc.CloudObject.nameProp,b);Z(a,olympe.sc.ui.Rd.O,'');return a.ka()};olympe.sc.ui.Z.Qc.prototype.D.K=new olympe.j.J(()=>olympe.ui.F.Qc,[]);olympe.sc.ui.Z.Nb=class extends olympe.sc.ui.Ne{D(a){const b=new olympe.ui.F.Nb(this.oa(a));this.C(b,a);b.Jb(this.O(olympe.sc.ui.Rd.O,a,String,olympe.j.Xa([b.Rj()],c=>c.valueOf(),String)));b.Gn(this.Fa(olympe.sc.ui.Z.Nb.Ba,a,olympe.j.kb));b.op(this.Fa(olympe.sc.ui.Z.Nb.nc,a,olympe.j.ia));return b}};olympe.sc.ui.Z.Nb.U=olympe.dc.Ja.C('01626ce8543dd37b31dd',olympe.sc.ui.Z.Nb);olympe.sc.ui.Z.Nb.Ba=olympe.sc.ui.Z.Nb.U.fa('01699631db815bc2f18a');olympe.sc.ui.Z.Nb.nc=olympe.sc.ui.Z.Nb.U.fa('016e220471bea6ac38dd');
|
|
2004
2004
|
olympe.sc.ui.Z.Nb.U.C=function(a,b){a=a.create(olympe.sc.ui.Z.Nb);b&&Z(a,olympe.dc.CloudObject.nameProp,b);Z(a,olympe.sc.ui.Rd.O,'');return a.ka()};olympe.sc.ui.Z.Nb.prototype.D.K=new olympe.j.J(()=>olympe.ui.F.Nb,[]);olympe.sc.ui.Z.qV=class extends olympe.ui.F.rw{constructor(a){super();const b=new olympe.ui.F.xd(500,0);this.C.Hb(b.oa());b.Xb(8);b.Md(1,Jc('#D2D2D2'));b.Ma(Jc('#D2D2D2'));const c=new olympe.ui.F.$d(void 0,0,32,32);c.Xb(8);var d=new olympe.ui.F.xd(434,8,16,16);const e=(new olympe.ui.F.cb(new olympe.j.ga(300,0))).Jb('A new version is available').rb(24).Bb(800).Fd(!0).fo(!0),f=(new olympe.ui.F.cb(new olympe.j.ga(300,0))).Jb('Your application has been upgraded in the background').rb(16).Fd(!0).fo(!0);
|
|
2005
2005
|
d.appendChild(e,'title',olympe.ui.ha.Cb.Vf);d.appendChild(f,'subtitle',olympe.ui.ha.Cb.Vf);c.appendChild(d,'topContent');const g=new olympe.ui.F.$d(void 0,8,32,32);g.Xb(8);g.Ma(O());d=(k,l,m,n)=>{l=(new olympe.ui.F.lc(new olympe.j.ga(100,40),k)).Ma(l).lb(m).dh(new olympe.j.ga(0,0),0,0,N(),!1);n=(new olympe.ui.F.cb(new olympe.j.ga(213,0))).Jb(n).rb(12).fo(!0).Fd(!0);m=new olympe.ui.F.xd(213,8,16,16);m.appendChild(l,'button',olympe.ui.ha.Cb.Vf);m.appendChild(n,'text',olympe.ui.ha.Cb.Vf);g.appendChild(m,
|
|
2006
|
-
k,olympe.ui.ha.vc.Uc);return l};d('Close',Jc('#D2D2D2'),Jc('#000000'),'Ignore the new version for now and continue working on this page').Xc(()=>{this.Xk(!1)});d('Refresh',Jc('#2e87ef'),Jc('#ffffff'),'Click to reload this page and start using the new version right now').Xc(()=>{this.Xk(!1);a.D()});b.appendChild(c,'top',olympe.ui.ha.Cb.Tb);b.appendChild(g,'bottom',olympe.ui.ha.Cb.Tb);this.QC(N().jE(.6));this.Xb(8);og(this);this.Pd(b)}};olympe.sc.ui.Lb={};function
|
|
2007
|
-
function
|
|
2006
|
+
k,olympe.ui.ha.vc.Uc);return l};d('Close',Jc('#D2D2D2'),Jc('#000000'),'Ignore the new version for now and continue working on this page').Xc(()=>{this.Xk(!1)});d('Refresh',Jc('#2e87ef'),Jc('#ffffff'),'Click to reload this page and start using the new version right now').Xc(()=>{this.Xk(!1);a.D()});b.appendChild(c,'top',olympe.ui.ha.Cb.Tb);b.appendChild(g,'bottom',olympe.ui.ha.Cb.Tb);this.QC(N().jE(.6));this.Xb(8);og(this);this.Pd(b)}};olympe.sc.ui.Lb={};function nr(a,b,c,d,e,f,g){const k=c.ka(),l=pp(f,k);olympe.j.us([l.wa(olympe.sc.Fb.C.Bp,olympe.ui.F.mb,!0)],m=>{m.Zj(!0);b.appendChild(m,k+'_'+a.db.name(k),d,e);m.Ks(e);or(a,f,l,m,g)})}function pr(a,b,c,d,e,f=olympe.j.kb.EMPTY){f!==olympe.j.kb.EMPTY&&olympe.j.Jl([f],g=>{g=g.valueOf();b.ng();d.Bi((k,l,m)=>{nr(a,b,k,g,m.gf(l),c,e)})});d.forEach((g,k,l)=>{const m=olympe.j.Qa(f).valueOf();nr(a,b,g,m,l.gf(k),c,e)})}
|
|
2007
|
+
function or(a,b,c,d,e){var f=olympe.sc.ui.fc.T,g=olympe.sc.ui.Renderable.C,k=olympe.sc.ui.Renderable.D;const l=eq(a,olympe.sc.ui.fc.R);f=eq(a,f);g=eq(a,g);k=eq(a,k);const m=d.oa(),n=a.C(b);a=a.D(b);b=olympe.j.$a(n,()=>e.sa(),()=>m.sa(),olympe.j.aa);const p=olympe.j.$a(a,()=>e.qa(),()=>m.qa(),olympe.j.aa),r=(t,u,v)=>{void 0===v?olympe.j.Wa([u],w=>{c.set(t,w.valueOf())}):olympe.j.Wa([u,v],(w,x)=>{x.valueOf()?c.set(t,w.valueOf()):c.remove(t)});olympe.j.yb().onDestroy(()=>c.remove(t))};d=d.be();r(f,d.sa());
|
|
2008
2008
|
r(l,d.qa());r(g,p,a);r(k,b,n)}olympe.sc.ui.Lb.kk=class extends olympe.sc.ui.ur{zs(){}D(){}C(){}};olympe.sc.ui.Lb.kk.D={Wy:'distributed',Wf:'manual'};olympe.sc.ui.Lb.Ye=class extends olympe.sc.ui.ur{zs(a,b){const c=olympe.j.aa,d=olympe.sc.ui.Ga.qY,e=new olympe.j.ga(this.Fa(olympe.sc.ui.Renderable.C,a,c,c.ZERO,!0),this.Fa(olympe.sc.ui.Renderable.D,a,c,c.ZERO,!0)),f=new olympe.ui.F.Ye(e);b.forEach((g,k,l)=>{const m=g.ka(),n=pp(a,m);olympe.j.us([n.wa(olympe.sc.Fb.C.Bp,olympe.ui.F.mb,!0)],p=>{p.setPosition(g.be(n));p.eh(g.Fa(d,n,c,c.ZERO));f.appendChild(p,m+'_'+this.db.name(m));p.Ks(l.gf(k))})});return f}D(){return olympe.j.ia.ob}C(){return olympe.j.ia.ob}};
|
|
2009
2009
|
olympe.sc.ui.Lb.Ye.U=olympe.dc.Ja.C('016c2458e07561155a49',olympe.sc.ui.Lb.Ye);olympe.sc.ui.Lb.$d=class extends olympe.sc.ui.Lb.kk{zs(a,b){var c=olympe.j.kb,d=olympe.j.aa;const e=olympe.j.ga,f=olympe.ui.F.$d;var g=olympe.ui.ha.vc.Uc;const k=olympe.sc.ui.Lb.kk.D.Wf,l=olympe.sc.ui.Lb.kk.D.Wy,m=olympe.sc.ui.Lb.$d.R,n=olympe.sc.ui.Lb.$d.ea;var p=olympe.sc.ui.Lb.$d.$,r=olympe.sc.ui.Lb.$d.T,t=this.Fa(olympe.sc.ui.Renderable.C,a,d,d.ZERO,!0);const u=this.Fa(olympe.sc.ui.Renderable.D,a,d,d.ZERO,!0);p=this.Fa(p,a,d,d.ZERO,!0);g=this.Fa(n,a,c,g,!0);c=this.Fa(m,a,c,k,!0);r=this.Fa(r,a,
|
|
2010
|
-
d,olympe.j.Ca(-1),!0);t=olympe.j.Xa([c,t,b.Sc(),p],(v,w,x,y)=>olympe.j.Ca(v.valueOf()===l&&0<x?(w-(x-1)*y)/x:-1),olympe.j.aa);d=new f(u,p,d.ZERO,d.ZERO);
|
|
2010
|
+
d,olympe.j.Ca(-1),!0);t=olympe.j.Xa([c,t,b.Sc(),p],(v,w,x,y)=>olympe.j.Ca(v.valueOf()===l&&0<x?(w-(x-1)*y)/x:-1),olympe.j.aa);d=new f(u,p,d.ZERO,d.ZERO);pr(this,d,a,b,new e(t,r),g);return d}D(a){const b=olympe.sc.ui.Lb.kk.D.Wy;return this.Fa(olympe.sc.ui.Lb.$d.R,a,olympe.j.kb,olympe.sc.ui.Lb.kk.D.Wf).Se(b)}C(a){return this.Fa(olympe.sc.ui.Lb.$d.T,a,olympe.j.aa,olympe.j.Ca(-1)).Sj(-1)}};olympe.sc.ui.Lb.$d.U=olympe.dc.Ja.C('016c2464cd56eb1d285e',olympe.sc.ui.Lb.$d);olympe.sc.ui.Lb.$d.ea=olympe.sc.ui.Lb.$d.U.fa('016c2465994ea70d575b');
|
|
2011
2011
|
olympe.sc.ui.Lb.$d.R=olympe.sc.ui.Lb.$d.U.fa('016c2465d49a1b57c37b');olympe.sc.ui.Lb.$d.$=olympe.sc.ui.Lb.$d.U.fa('016c24662dd291131b36');olympe.sc.ui.Lb.$d.T=olympe.sc.ui.Lb.$d.U.fa('016c246628ec25819a59');olympe.sc.ui.Lb.$d.U.C=a=>{const b=a.create(olympe.sc.ui.Lb.$d);a.Rb(olympe.sc.hg.C,b,olympe.sc.ui.fc.R);a.Rb(olympe.sc.hg.C,b,olympe.sc.ui.fc.T);return b.ka()};olympe.sc.ui.Lb.If=class extends olympe.sc.ui.Lb.kk{zs(a,b){var c=olympe.j.aa,d=olympe.j.ia;const e=olympe.j.ga;var f=olympe.ui.F.If,g=olympe.sc.ui.Lb.If.R,k=olympe.sc.ui.Lb.If.$,l=olympe.sc.ui.Lb.If.na;const m=olympe.sc.ui.Lb.If.ea,n=olympe.sc.ui.Lb.If.T,p=this.Fa(olympe.sc.ui.Renderable.C,a,c,c.ZERO,!0),r=this.Fa(olympe.sc.ui.Renderable.D,a,c,c.ZERO,!0);g=this.Fa(g,a,c,olympe.j.Ca(50),!0);k=this.Fa(k,a,c,c.ZERO,!0);l=this.Fa(l,a,c,c.ZERO,!0);c=this.Fa(m,a,c,c.ZERO,!0);d=this.Fa(n,a,d,d.ob,!0);f=
|
|
2012
|
-
new f(p,r,g,k,l,c);f.IP(d);
|
|
2012
|
+
new f(p,r,g,k,l,c);f.IP(d);pr(this,f,a,b,new e(g,-1));return f}D(a){return this.Fa(olympe.sc.ui.Lb.If.R,a,olympe.j.aa,olympe.j.Ca(50)).Sj(-1)}C(){return olympe.j.ia.ob}};olympe.sc.ui.Lb.If.U=olympe.dc.Ja.C('016c2466cfdfb79fda99',olympe.sc.ui.Lb.If);olympe.sc.ui.Lb.If.R=olympe.sc.ui.Lb.If.U.fa('016c24674d58a6863271');olympe.sc.ui.Lb.If.$=olympe.sc.ui.Lb.If.U.fa('016c24679171effcf472');olympe.sc.ui.Lb.If.na=olympe.sc.ui.Lb.If.U.fa('016c2467dd3812adac6e');olympe.sc.ui.Lb.If.ea=olympe.sc.ui.Lb.If.U.fa('016c2467fa3c2444dfec');
|
|
2013
2013
|
olympe.sc.ui.Lb.If.T=olympe.sc.ui.Lb.If.U.fa('016c24680a7ae4f6964c');olympe.sc.ui.Lb.If.Ba=olympe.sc.ui.Lb.If.U.fa('016c2468a81749b0dea5');olympe.sc.ui.Lb.If.U.C=a=>{const b=a.create(olympe.sc.ui.Lb.If);a.Rb(olympe.sc.hg.C,b,olympe.sc.ui.fc.R);a.Rb(olympe.sc.hg.C,b,olympe.sc.ui.fc.T);a.Rb(olympe.sc.hg.C,b,olympe.sc.ui.Renderable.C);return b.ka()};olympe.sc.ui.Lb.xd=class extends olympe.sc.ui.Lb.kk{zs(a,b){var c=olympe.j.kb,d=olympe.j.aa;const e=olympe.j.ga,f=olympe.ui.F.xd;var g=olympe.ui.ha.Cb.Tb;const k=olympe.sc.ui.Lb.kk.D.Wf,l=olympe.sc.ui.Lb.kk.D.Wy,m=olympe.sc.ui.Lb.xd.$,n=olympe.sc.ui.Lb.xd.T;var p=olympe.sc.ui.Lb.xd.ea,r=olympe.sc.ui.Lb.xd.R;const t=this.Fa(olympe.sc.ui.Renderable.C,a,d,d.ZERO,!0);var u=this.Fa(olympe.sc.ui.Renderable.D,a,d,d.ZERO,!0);p=this.Fa(p,a,d,d.ZERO,!0);g=this.Fa(m,a,c,g,!0);c=this.Fa(n,a,c,k,!0);r=this.Fa(r,
|
|
2014
|
-
a,d,olympe.j.Ca(-1),!0);u=olympe.j.Xa([c,u,b.Sc(),p],(v,w,x,y)=>olympe.j.Ca(v.valueOf()===l&&0<x?(w-(x-1)*y)/x:-1),olympe.j.aa);d=new f(t,p,d.ZERO,d.ZERO);
|
|
2015
|
-
olympe.sc.ui.Lb.xd.T=olympe.sc.ui.Lb.xd.U.fa('016c245e748f56bc527c');olympe.sc.ui.Lb.xd.ea=olympe.sc.ui.Lb.xd.U.fa('016c24642a7b84145c27');olympe.sc.ui.Lb.xd.R=olympe.sc.ui.Lb.xd.U.fa('016c2464540a0699987e');olympe.sc.ui.Lb.xd.U.C=a=>{const b=a.create(olympe.sc.ui.Lb.xd);a.Rb(olympe.sc.hg.C,b,olympe.sc.ui.fc.R);a.Rb(olympe.sc.hg.C,b,olympe.sc.ui.fc.T);return b.ka()};olympe.sc.ui.Pf={};olympe.sc.ui.Pf.cw=class extends olympe.dc.CloudObject{};olympe.sc.ui.Pf.cw.U=olympe.dc.Ja.C('0168c77252629e4b7e4b',olympe.sc.ui.Pf.cw);olympe.sc.ui.Pf.GestureEvent=class extends olympe.sc.ui.Pf.cw{};olympe.sc.ui.Pf.GestureEvent.U=olympe.dc.Ja.C('0168dcccfca62952a55f',olympe.sc.ui.Pf.GestureEvent);olympe.sc.ui.Pf.GestureEvent.C={I0:'Horizontal Pan',m3:'Vertical Pan',J0:'Horizontal Swipe',T0:'Long Press',U0:'Long Press Up',V1:'Rotate',E1:'Pinch'};olympe.sc.ui.Pf.MouseEvent=class extends olympe.sc.ui.Pf.cw{};olympe.sc.ui.Pf.MouseEvent.U=olympe.dc.Ja.C('0168c772532efa4be843',olympe.sc.ui.Pf.MouseEvent);olympe.sc.ui.Pf.MouseEvent.C={$0:'Mouse Click',O_:'Mouse Double Click',c1:'Mouse Move',a1:'Mouse Enter',b1:'Mouse Leave',d1:'Mouse Wheel'};olympe.sc.ui.Pf.mk=class extends olympe.sc.ui.Pf.MouseEvent{};olympe.sc.ui.Pf.mk.U=olympe.dc.Ja.C('0168dc74bc018fb93ca2',olympe.sc.ui.Pf.mk);olympe.sc.ui.Pf.Nr=class extends olympe.dc.CloudObject{};olympe.sc.ui.Pf.Nr.U=olympe.dc.Ja.C('0168e0e2c4621df32516',olympe.sc.ui.Pf.Nr);olympe.sc.ui.Pf.TouchEvent=class extends olympe.sc.ui.Pf.cw{};olympe.sc.ui.Pf.TouchEvent.U=olympe.dc.Ja.C('0168e0f0f8b8d1b6daa2',olympe.sc.ui.Pf.TouchEvent);olympe.sc.ui.Pf.TouchEvent.C={d3:'Touch Start',c3:'Touch Move',b3:'Touch End',a3:'Touch Cancel'};olympe.sc.ui.jf={};olympe.sc.ui.jf.cl=class extends olympe.sc.Metadata{UA(){return olympe.sc.ui.jf.cl.C}VA(){return olympe.sc.ui.jf.cl.D}};olympe.sc.ui.jf.cl.U=olympe.dc.Ja.C('01621f6ab29d770a3bba',olympe.sc.ui.jf.cl);olympe.sc.ui.jf.cl.C=olympe.sc.ui.jf.cl.U.fa('01621f6ab58c2f884654');olympe.sc.ui.jf.cl.D=olympe.sc.ui.jf.cl.U.fa('01621f6ab6ac89348f20');olympe.sc.Ic={};olympe.sc.Ic.gg=class extends olympe.ui.F.da.Zy{constructor(a){super();a=a.hf().oa();olympe.j.
|
|
2014
|
+
a,d,olympe.j.Ca(-1),!0);u=olympe.j.Xa([c,u,b.Sc(),p],(v,w,x,y)=>olympe.j.Ca(v.valueOf()===l&&0<x?(w-(x-1)*y)/x:-1),olympe.j.aa);d=new f(t,p,d.ZERO,d.ZERO);pr(this,d,a,b,new e(r,u),g);return d}D(a){return this.Fa(olympe.sc.ui.Lb.xd.R,a,olympe.j.aa,olympe.j.Ca(-1)).Sj(-1)}C(a){const b=olympe.sc.ui.Lb.kk.D.Wy;return this.Fa(olympe.sc.ui.Lb.xd.T,a,olympe.j.kb,olympe.sc.ui.Lb.kk.D.Wf).Se(b)}};olympe.sc.ui.Lb.xd.U=olympe.dc.Ja.C('016c245de13d033efad4',olympe.sc.ui.Lb.xd);olympe.sc.ui.Lb.xd.$=olympe.sc.ui.Lb.xd.U.fa('016c2463a6aab57119e9');
|
|
2015
|
+
olympe.sc.ui.Lb.xd.T=olympe.sc.ui.Lb.xd.U.fa('016c245e748f56bc527c');olympe.sc.ui.Lb.xd.ea=olympe.sc.ui.Lb.xd.U.fa('016c24642a7b84145c27');olympe.sc.ui.Lb.xd.R=olympe.sc.ui.Lb.xd.U.fa('016c2464540a0699987e');olympe.sc.ui.Lb.xd.U.C=a=>{const b=a.create(olympe.sc.ui.Lb.xd);a.Rb(olympe.sc.hg.C,b,olympe.sc.ui.fc.R);a.Rb(olympe.sc.hg.C,b,olympe.sc.ui.fc.T);return b.ka()};olympe.sc.ui.Pf={};olympe.sc.ui.Pf.cw=class extends olympe.dc.CloudObject{};olympe.sc.ui.Pf.cw.U=olympe.dc.Ja.C('0168c77252629e4b7e4b',olympe.sc.ui.Pf.cw);olympe.sc.ui.Pf.GestureEvent=class extends olympe.sc.ui.Pf.cw{};olympe.sc.ui.Pf.GestureEvent.U=olympe.dc.Ja.C('0168dcccfca62952a55f',olympe.sc.ui.Pf.GestureEvent);olympe.sc.ui.Pf.GestureEvent.C={I0:'Horizontal Pan',m3:'Vertical Pan',J0:'Horizontal Swipe',T0:'Long Press',U0:'Long Press Up',V1:'Rotate',E1:'Pinch'};olympe.sc.ui.Pf.MouseEvent=class extends olympe.sc.ui.Pf.cw{};olympe.sc.ui.Pf.MouseEvent.U=olympe.dc.Ja.C('0168c772532efa4be843',olympe.sc.ui.Pf.MouseEvent);olympe.sc.ui.Pf.MouseEvent.C={$0:'Mouse Click',O_:'Mouse Double Click',c1:'Mouse Move',a1:'Mouse Enter',b1:'Mouse Leave',d1:'Mouse Wheel'};olympe.sc.ui.Pf.mk=class extends olympe.sc.ui.Pf.MouseEvent{};olympe.sc.ui.Pf.mk.U=olympe.dc.Ja.C('0168dc74bc018fb93ca2',olympe.sc.ui.Pf.mk);olympe.sc.ui.Pf.Nr=class extends olympe.dc.CloudObject{};olympe.sc.ui.Pf.Nr.U=olympe.dc.Ja.C('0168e0e2c4621df32516',olympe.sc.ui.Pf.Nr);olympe.sc.ui.Pf.TouchEvent=class extends olympe.sc.ui.Pf.cw{};olympe.sc.ui.Pf.TouchEvent.U=olympe.dc.Ja.C('0168e0f0f8b8d1b6daa2',olympe.sc.ui.Pf.TouchEvent);olympe.sc.ui.Pf.TouchEvent.C={d3:'Touch Start',c3:'Touch Move',b3:'Touch End',a3:'Touch Cancel'};olympe.sc.ui.jf={};olympe.sc.ui.jf.cl=class extends olympe.sc.Metadata{UA(){return olympe.sc.ui.jf.cl.C}VA(){return olympe.sc.ui.jf.cl.D}};olympe.sc.ui.jf.cl.U=olympe.dc.Ja.C('01621f6ab29d770a3bba',olympe.sc.ui.jf.cl);olympe.sc.ui.jf.cl.C=olympe.sc.ui.jf.cl.U.fa('01621f6ab58c2f884654');olympe.sc.ui.jf.cl.D=olympe.sc.ui.jf.cl.U.fa('01621f6ab6ac89348f20');olympe.sc.Ic={};olympe.sc.Ic.gg=class extends olympe.ui.F.da.Zy{constructor(a){super();a=a.hf().oa();olympe.j.yb();this.size=a.qa().Cn(a.sa());this.fontSize=olympe.j.Ca(16);this.ca=Gc();Fc();this.ld=Hc();this.Ia=O();this.W=new olympe.j.Color(245,110,50);this.hc=olympe.j.Color.create(236,101,87);this.tb=olympe.j.Color.create(251,211,131);olympe.j.Color.create(217,83,79);this.$=olympe.j.Color.create(247,247,247);this.C=O();Gc();olympe.j.Color.create(43,43,43);this.Pa=olympe.j.Color.create(255,255,255,.5);this.na=olympe.j.Color.create(218,
|
|
2016
2016
|
218,218);this.O=olympe.j.Color.create(38,38,38);olympe.j.Color.create(172,146,236)}Di(){return'Helvetica'}Ei(){return 100}kq(){return 0}hf(){return S(this,'rootElement',olympe.ui.F.da.gr,void 0,()=>{let a=new olympe.ui.F.da.gr;a.Ma(this.$);return a})}Nm(a){return S(this,'button',olympe.ui.F.da.gk,a,b=>{let c=new olympe.ui.F.da.gk;switch(b){case olympe.sc.Ic.gg.C.LK:c.Hb(new olympe.j.ga(this.fontSize.hb(12),this.fontSize.hb(3)));c.vb('Helvetica');c.rb(this.fontSize);c.Bb(100);c.Ma(this.W);c.lb(this.Ia);
|
|
2017
2017
|
c.Xb(0);c.od(this.W);c.cd(1);c.ek(this.C);K(c.Pa,this.W);K(c.R,this.W);break;case olympe.sc.Ic.gg.C.tV:c.Hb(new olympe.j.ga(this.fontSize.hb(12),this.fontSize.hb(3)));c.vb('Helvetica');c.rb(this.fontSize);c.Bb(100);c.Ma(this.tb);c.lb(this.ca);c.Xb(0);c.od(this.tb);c.cd(1);break;case olympe.sc.Ic.gg.C.xC:c.Hb(new olympe.j.ga(0,90));c.vb('Helvetica');c.Bb(100);break;case olympe.sc.Ic.gg.C.zD:c.Hb(new olympe.j.ga(10,90));c.vb('Helvetica');c.Bb(100);break;default:c.Hb(new olympe.j.ga(this.fontSize.hb(12),
|
|
2018
2018
|
this.fontSize.hb(3))),c.vb('Helvetica'),c.rb(16),c.Bb(100),c.Ma(olympe.j.Color.create(69,90,100)),b=olympe.j.Color.create(255,255,255,.8),K(c.R,b),c.lb(this.Ia),c.Xb(5),c.od(Ic()),c.cd(1),c.dh(new olympe.j.ga(0,0),5,1,olympe.j.Color.create(0,0,0,.2)),c.ek(olympe.j.Color.create(69,90,100))}return c})}Bu(a){return S(this,'label',olympe.ui.F.da.Vh,a,b=>{let c=new olympe.ui.F.da.Vh;c.vb('Helvetica');c.Bb(100);c.rb(this.fontSize);c.lb(this.ca);c.Yb(olympe.ui.ha.vc.Uc);switch(b){case olympe.sc.Ic.gg.D.IF:c.Bb(700);
|
|
@@ -2024,18 +2024,18 @@ case olympe.sc.Ic.gg.O.XR:c.Ma(this.hc);break;default:c.Ma(this.C),c.od(this.na)
|
|
|
2024
2024
|
'alert',olympe.ui.F.da.Nk,a,()=>{let b=new olympe.ui.F.da.Nk;b.Hb(new olympe.j.ga(360,1));b.Zd(!1);b.Fd(!0);K(b.C,this.Pa);b.Ma(this.C);var c=this.fontSize.hb(1.5);K(b.D,c);b.Ef(this.fontSize.hb(1.5));K(b.O,olympe.sc.Ic.gg.D.IF);K(b.R,olympe.sc.Ic.gg.C.LK);b.Xb(0);return b})}nx(a){return S(this,'grid',olympe.ui.F.da.Aj,a,()=>{let b=new olympe.ui.F.da.Aj;b.Ma(this.$);K(b.C,olympe.sc.Ic.gg.D.xC);K(b.D,olympe.sc.Ic.gg.D.zD);b.ak(30);ag(b);return b})}xA(a){return S(this,'bubble',olympe.ui.F.da.wp,a,()=>
|
|
2025
2025
|
{let b=new olympe.ui.F.da.wp;K(b.D,10);K(b.O,5);K(b.R,10);var c=olympe.j.Color.create(255,255,255);K(b.T,c);c=olympe.j.Color.create(200,200,200);K(b.W,c);K(b.$,1);return b})}zu(a){return S(this,'inputPopup',olympe.ui.F.da.Vk,a,()=>{let b=new olympe.ui.F.da.Vk;b.Hb(new olympe.j.ga(500,1));b.Zd(!1);b.Fd(!0);var c=olympe.j.Color.create(0,0,0,.6);K(b.C,c);b.Ma(this.$);K(b.D,10);b.Ef(10);K(b.R,5);K(b.T,5);K(b.O,'Helvetica');return b})}TA(a){return S(this,'windowComponent',olympe.ui.F.da.$p,a,()=>{let b=
|
|
2026
2026
|
new olympe.ui.F.da.$p;K(b.W,olympe.j.ma(40));K(b.R,olympe.j.ma(100));K(b.T,olympe.j.ma(100));bg(b);cg(b);K(b.C,1);var c=new olympe.j.ga(25,25);K(b.D,c);K(b.O,'images/close.png');return b})}JA(a){return S(this,olympe.ui.F.da.xm.Fc,olympe.ui.F.da.xm,a,b=>{const c=new olympe.ui.F.da.fd,d=new olympe.ui.F.da.xm;d.jv(!1);d.qB(c);switch(b){case olympe.sc.Ic.gg.T.wr:d.jv(!0),d.pB(1),c.Ma(this.O)}return d})}BA(a){return S(this,olympe.ui.F.da.mf.Fc,olympe.ui.F.da.mf,a,b=>{const c=new olympe.ui.F.da.mf;switch(b){case olympe.ui.F.da.mf.D.hH:K(c.C,
|
|
2027
|
-
olympe.ui.F.da.mf.C.nw);break;default:K(c.C,olympe.ui.F.da.mf.C.az)}return c})}};olympe.sc.Ic.gg.O={WR:'dropdown-item',YR:'dropdown-selectedvalue',XR:'dropdown-mouseoveritem'};olympe.sc.Ic.gg.D={xC:'grid-cell',zD:'grid-selected-cell',IF:'alertTitle',wr:'panel'};olympe.sc.Ic.gg.C={LK:'selected',tV:'warning',xC:'grid-cell',zD:'grid-selected-cell'};olympe.sc.Ic.gg.W={wr:'panel'};olympe.sc.Ic.gg.R={wr:'panel'};olympe.sc.Ic.gg.T={wr:'panel'};function
|
|
2027
|
+
olympe.ui.F.da.mf.C.nw);break;default:K(c.C,olympe.ui.F.da.mf.C.az)}return c})}};olympe.sc.Ic.gg.O={WR:'dropdown-item',YR:'dropdown-selectedvalue',XR:'dropdown-mouseoveritem'};olympe.sc.Ic.gg.D={xC:'grid-cell',zD:'grid-selected-cell',IF:'alertTitle',wr:'panel'};olympe.sc.Ic.gg.C={LK:'selected',tV:'warning',xC:'grid-cell',zD:'grid-selected-cell'};olympe.sc.Ic.gg.W={wr:'panel'};olympe.sc.Ic.gg.R={wr:'panel'};olympe.sc.Ic.gg.T={wr:'panel'};function qr(a,b){a.C=b}
|
|
2028
2028
|
olympe.sc.Ic.lT=class extends olympe.ui.F.Screen{constructor(a){super();this.ya=a;this.C=null}render(a){var b=olympe.j.ga,c=olympe.j.Color,d=olympe.j.Za;const e=olympe.j.Ca;var f=olympe.ui.F.cb;const g=olympe.ui.F.ye,k=olympe.ui.F.lc;var l=olympe.ui.F.Nb,m=a.qa();a=a.sa();const n=d(olympe.j.aa),p=d(olympe.j.aa),r=d(olympe.j.aa),t=d(olympe.j.aa);olympe.j.Wa([m],y=>{350<y.valueOf()?(n.update(e(350)),p.update(e(60)),r.update(e(24))):(n.update(e(175)),p.update(e(30)),r.update(e(16)));t.update(e(500>y.valueOf()?
|
|
2029
2029
|
.5:1))});d=new b(n.wa(),p.wa());m=new olympe.ui.F.xd(m,15,30,30,!1,a);m.Ma(Gc());b=new g(new b(t.wa().hb(352),t.wa().hb(204)));b.ah('images/app_launcher_logo.svg');m.appendChild(b,'logo',olympe.ui.ha.Cb.Tb);const u=new f(d);u.Jb('Invalid user name or password!').lb(c.red()).Bb(800).rb(r.wa()).Yb(olympe.ui.ha.vc.Uc).vb('Roboto').rd(!0);m.appendChild(u,'errorLabel',olympe.ui.ha.Cb.Tb);b=new f(d);b.Jb('User Name').lb(Hc()).vb('Roboto').rb(r.wa()).Bb(800).Yb(olympe.ui.ha.vc.Uc);m.appendChild(b,'userNameLabel',
|
|
2030
2030
|
olympe.ui.ha.Cb.Tb);const v=new l(d);v.Gn(olympe.ui.ha.Lr.aH).Qg('username').bh(c.create(132,132,132)).lb(c.create(250,250,250)).op().vb('Roboto').rb(r.wa()).Md(0,Ic()).Ma(N());m.appendChild(v,'userNameField',olympe.ui.ha.Cb.Tb);f=new f(d);f.Jb('Password').lb(Hc()).vb('Roboto').rb(r.wa()).Bb(800).Yb(olympe.ui.ha.vc.Uc);m.appendChild(f,'pwdLabel',olympe.ui.ha.Cb.Tb);const w=new l(d);w.Gn(olympe.ui.ha.Lr.IK).Qg('password').bh(c.create(132,132,132)).lb(c.create(250,250,250)).op().vb('Roboto').rb(r.wa()).Md(0,
|
|
2031
2031
|
Ic()).Ma(N());m.appendChild(w,'pwd',olympe.ui.ha.Cb.Tb);l=(new k(d,'Sign In')).ek(c.create(20,100,253)).Ma(c.create(0,86,253)).vb('Roboto').rb(r).lb(O());m.appendChild(l,'loginButton',olympe.ui.ha.Cb.Tb);this.C&&(c=(new k(d,'Guest')).ek(c.create(20,100,253)).Ma(c.green()).vb('Roboto').rb(r).lb(O()),c.Xc(()=>{this.C()}),m.appendChild(c,'guestButton',olympe.ui.ha.Cb.Tb));const x=()=>{var y=olympe.j.Qa(v.Rj());y=y?y.valueOf().replace(/^\s*|\s*$/,''):'';y=y.split('@');y=y[0];const B=new olympe.ya.Request;
|
|
2032
|
-
B.set('username',y);Hf(B,olympe.j.Qa(w.Rj()));Gf(this.ya,B,void 0,H=>{H&&u.rd(!1)})};v.jj(y=>{y.HA().Sb(13)&&w.rj()});w.jj(y=>{y.HA().Sb(13)&&x()});l.Xc(x);v.rj();return m}};function
|
|
2032
|
+
B.set('username',y);Hf(B,olympe.j.Qa(w.Rj()));Gf(this.ya,B,void 0,H=>{H&&u.rd(!1)})};v.jj(y=>{y.HA().Sb(13)&&w.rj()});w.jj(y=>{y.HA().Sb(13)&&x()});l.Xc(x);v.rj();return m}};function rr(a,b){a.D=b}function sr(a,b){a.C=b}
|
|
2033
2033
|
olympe.sc.Ic.mT=class extends olympe.ui.F.Screen{constructor(a){super();this.C=this.D=null;this.O=a}render(a){const b=olympe.j.ga,c=olympe.ui.F.cb;var d=olympe.ui.F.ye,e=a.qa();const f=a.sa(),g=olympe.j.Xa([e],m=>olympe.j.Ca(500>m.valueOf()?.5:1),olympe.j.aa),k=(new olympe.dc.Sp(olympe.sc.ui.ai.U.ka(),olympe.sc.ui.bA)).NJ().jk();a=new olympe.ui.F.xd(a.qa(),10,10,30,!1,f);a.Ma(Gc());d=new d(new b(g.hb(352),g.hb(204)));d.ah('images/app_launcher_logo.svg');a.appendChild(d,'logo',olympe.ui.ha.Cb.Tb);
|
|
2034
2034
|
const l=tc(e,375);e=new olympe.ui.F.SU(new b(l,f.za(g.hb(204).Sa(100))),k,m=>{m=(new c(new b(l,70))).Jb(m.bb());m.Yb(olympe.ui.ha.vc.Uc).Vb(olympe.ui.ha.Cb.Tb).rb(32);m.lb(Hc());m.Ma(Ic());return m},m=>{m&&this.D&&this.D(m)});e.Ma(N());Dg(e,()=>{});a.appendChild(e,'appList',olympe.ui.ha.Cb.Tb);e=new olympe.ui.F.lc(new b(l,50));e.Jb('Logout').lb(N()).vb('Roboto').rb(20).Bb(800).Xb(15).Md(0,Ic()).Ma(Hc());e.Xc(()=>{this.C&&this.C()});e.rd(this.O.zx());a.appendChild(e,'logoutButton',olympe.ui.ha.Cb.Tb);
|
|
2035
|
-
return a}};function
|
|
2035
|
+
return a}};function tr(a){return q(function*(){a.$||(yield zq(a),a.$=!0)})}function ur(a,b,c){var d=new olympe.sc.Ic.lT(a.T);c.ZD(d,'login');qr(d,()=>{c.jB('logged')});c.MP();d=new olympe.sc.Ic.mT(a.T);c.ZD(d,'selection');c.XD('login','selection','logged');c.XD('selection','login','logout');b.appendChild(c,'launcher',new olympe.j.ga(0,0));rr(d,e=>{a.C=e.ka();b.removeChild('launcher');Bq(a)});sr(d,()=>{a.T.Nu().then(()=>c.jB('logout'))})}
|
|
2036
2036
|
olympe.sc.Ic.Dr=class extends olympe.sc.ve.Dr{constructor(a,b,c,d,e,f,g,k,l,m,n,p,r,t){super(a,c,d,f,g,m,n,p,t,null);this.da=l;this.na=b;this.tb=k;this.$=!1;this.Ba=t.get('manifestBaseUrl');this.Qb=t.get('serviceWorkerUrl');this.R=r}ea(){this.na.ea(this.da)}ca(){super.ca();const a=this.na.hf();if(this.Ba.length){var b=(new URL(window.location.toString())).origin;b=`${this.Ba}/${this.C}?origin=${encodeURI(b)}`;a.Zx(b)}if(this.R.O()){const c=this.Qb+'&appName='+this.C;this.R.register(c).then(()=>{this.R.C(self.location.toString());
|
|
2037
|
-
this.R.C(c);Array.from(document.querySelectorAll('script,link,img')).map(d=>d.src||d.href).filter(d=>!!d).forEach(d=>{this.R.C(d)})})}this.V.debug('Remove loading spinner');a.Xr()}run(){const a=olympe.Y.lf.C.vr,b=olympe.Y.lf.C.ym,c=olympe.Y.lf.C.Rf;let d=!1;const e=olympe.ui.La.hf(),f=new olympe.ui.F.TL(e.oa());0===this.C.length?
|
|
2038
|
-
!1;
|
|
2037
|
+
this.R.C(c);Array.from(document.querySelectorAll('script,link,img')).map(d=>d.src||d.href).filter(d=>!!d).forEach(d=>{this.R.C(d)})})}this.V.debug('Remove loading spinner');a.Xr()}run(){const a=olympe.Y.lf.C.vr,b=olympe.Y.lf.C.ym,c=olympe.Y.lf.C.Rf;let d=!1;const e=olympe.ui.La.hf(),f=new olympe.ui.F.TL(e.oa());0===this.C.length?ur(this,e,f):this.ea();olympe.j.Wa([this.O.getState()],k=>{switch(k){case a:case b:this.V.debug('Server session opened or working offline, start the application');this.$=
|
|
2038
|
+
!1;tr(this).then(olympe.j.yb().re(()=>{0===this.C.length?f.jB('logged'):d||(Bq(this),d=!0)}));break;case c:this.V.debug('Impossible to open a connection to the orchestrator and offline mode is disabled.')}},'Runtime initial connectivity state listener');let g=!1;olympe.j.Jl([this.O.getState()],k=>{const l=k===olympe.Y.lf.C.vr;g&&l&&this.tb.D();g=k===olympe.Y.lf.C.Rf})}};olympe.sc.Ic.Dr.Aa=[olympe.Bf.TF];olympe.sc.Ic.ba={VL:'sc.uiruntime.Theme',Pt:'sc.uiruntime.RuntimeAppConfig'};olympe.sc.Ic.Ey={Zi:'sc.uiruntime.Main'};olympe.sc.Ic.pa={XJ:'app.manifest.enabled',$C:'app.manifest.httpHost',ZJ:'app.manifest.httpPort',$J:'app.manifest.httpSSL',YJ:'app.manifest.httpBasePath',wL:'app.serviceworker.url',uL:'app.serviceworker.cacheVersion'};
|
|
2039
2039
|
olympe.ta.af(function(a){A(a,olympe.sc.Ic.ba.VL,olympe.sc.Ic.gg,olympe.ui.ba.Pb);var b=a.getParameter(olympe.Y.pa.Uy);E(a,olympe.sc.Ic.pa.XJ,!0);E(a,olympe.sc.Ic.pa.$C,b);b='localhost'===a.getParameter(olympe.sc.Ic.pa.$C);E(a,olympe.sc.Ic.pa.ZJ,b?3141:443);E(a,olympe.sc.Ic.pa.$J,!b);E(a,olympe.sc.Ic.pa.YJ,'runtime/manifest');E(a,olympe.sc.Ic.pa.wL,'/service_worker.js');E(a,olympe.sc.Ic.pa.uL,a.getParameter(olympe.Po.pa.VERSION)||'1');C(a,olympe.sc.Ic.ba.Pt,[olympe.sc.ve.ba.Pt,new olympe.ta.Db(olympe.sc.Ic.pa.XJ),
|
|
2040
2040
|
new olympe.ta.Db(olympe.sc.Ic.pa.$C),new olympe.ta.Db(olympe.sc.Ic.pa.ZJ),new olympe.ta.Db(olympe.sc.Ic.pa.$J),new olympe.ta.Db(olympe.sc.Ic.pa.YJ),new olympe.ta.Db(olympe.sc.Ic.pa.wL),new olympe.ta.Db(olympe.sc.Ic.pa.uL)],(c,d,e,f,g,k,l,m)=>{c=new Map(c);e=(new olympe.xa.Zv(e,f,k,g)).le();c.set('manifestBaseUrl',d?e:'');c.set('serviceWorkerUrl',`${l}?version=${m}`);return c});A(a,olympe.sc.Ic.Ey.Zi,olympe.sc.Ic.Dr,olympe.sc.ba.Wb,olympe.ui.ba.Pb,olympe.ya.ba.Pb,olympe.Y.ba.hm,olympe.Y.ba.Tt,olympe.dc.query.ba.sw,
|
|
2041
2041
|
olympe.host.ba.zm,olympe.host.ba.Vt,olympe.sc.Ic.ba.VL,olympe.sc.ba.uw,olympe.sc.ve.ba.hl,olympe.la.ba.mo,olympe.xa.ba.Sz,olympe.sc.Ic.ba.Pt);olympe.Bf.Qq(a,olympe.sc.Ic.Ey.Zi,'sc.runtime');olympe.Bf.Qq(a,olympe.sc.Ic.Ey.Zi,'sc.ui');olympe.Bf.Qq(a,olympe.sc.Ic.Ey.Zi)},'olympe.sc.uiruntime');olympe.public={};olympe.public.Mc=class a{static DW(b,c){const d=new SRPClient,e=d.generateRandomSalt();return{username:b,login:b,salt:e,verifier:d.generateVerifier(e,b,c)}}static getState(){return olympe.j.Qa(olympe.public.Mc.get().state.wa())}static zx(b){return a.D(olympe.public.Mc.get().zx(),b).pipe(rxjs.operators.map(c=>c.valueOf()))}static VW(){return olympe.j.Qa(olympe.public.Mc.get().Ak())}static MY(b){return a.D(olympe.public.Mc.get().Ak(),b)}static zk(){var b=olympe.j,c=b.Qa;var d=olympe.public.Mc.get().Bh.wa().Fi();
|
|
@@ -2043,14 +2043,14 @@ return c.call(b,d)}static Pq(){return new Promise((b,c)=>{olympe.public.Mc.get()
|
|
|
2043
2043
|
b).set('password',c),olympe.ya.Vg.C.SRP)}static wY(b){const c=If();if(0===c.size||b&&!c.has(b)){var d=0===c.size?'There are no available IDPs':`The IDP name ${b} is not valid, the valid names are ${Array.from(c.keys())}`;return Promise.reject(d)}b?(d=b,b=c.get(b)):(b=Array.from(c)[0],d=b[0],b=b[1]);return olympe.public.Mc.C((new Map).set('idpName',d),b)}static uY(){return olympe.public.Mc.C(new Map,olympe.ya.Vg.C.SAML)}static xY(b,c){return olympe.public.Mc.C((new Map).set('username',b).set('nonce',
|
|
2044
2044
|
c),olympe.ya.Vg.C.iD)}static tY(){return olympe.public.Mc.C(new Map,olympe.ya.Vg.C.OAUTH2)}static Nu(){return olympe.public.Mc.get().Nu()}static C(b,c){const d=new olympe.ya.Request;for(const [e,f]of b)d.set(e,f);return new Promise(e=>{Gf(olympe.public.Mc.get(),d,c,()=>{e()})})}static get(){return olympe.ya.vk()}static D(b,c){return b.asObservable('function'===typeof c.se?c.se():c)}};olympe.public.Mc.logout=olympe.public.Mc.Nu;olympe.public.Mc.loginOpenID=olympe.public.Mc.tY;
|
|
2045
2045
|
olympe.public.Mc.loginToken=olympe.public.Mc.xY;olympe.public.Mc.loginSAML=olympe.public.Mc.uY;olympe.public.Mc.loginSSO=olympe.public.Mc.wY;olympe.public.Mc.loginSRP=olympe.public.Mc.vY;olympe.public.Mc.getUserFromToken=olympe.public.Mc.Hu;olympe.public.Mc.sendKeepAlive=olympe.public.Mc.En;olympe.public.Mc.getIDPNames=olympe.public.Mc.mX;olympe.public.Mc.getUserToken=olympe.public.Mc.UX;olympe.public.Mc.getIDPToken=olympe.public.Mc.nX;olympe.public.Mc.refreshToken=olympe.public.Mc.Pq;
|
|
2046
|
-
olympe.public.Mc.getToken=olympe.public.Mc.zk;olympe.public.Mc.observeUser=olympe.public.Mc.MY;olympe.public.Mc.getCurrentUser=olympe.public.Mc.VW;olympe.public.Mc.isAuthenticated=olympe.public.Mc.zx;olympe.public.Mc.getState=olympe.public.Mc.getState;olympe.public.Mc.generateSRPData=olympe.public.Mc.DW;olympe.public.Zb=class{static create(a){return new class extends olympe.dc.Da.Zq{C(b,c){b=a(olympe.dc.CloudObject.get(c));if('boolean'===typeof b)return b;const d=olympe.j.Za(olympe.j.ia),e=b.subscribe(f=>d.update(olympe.j.jc(f)));olympe.j.
|
|
2047
|
-
olympe.public.Xn=class{static create(a){return new class extends olympe.dc.ug.Zq{O(b,c){return olympe.dc.CloudObject.get(c)}compare(b,c){b=a(b,c);if('number'===typeof b)return b;const d=olympe.j.Za(olympe.j.aa),e=b.subscribe(f=>d.update(olympe.j.Ca(f)));olympe.j.
|
|
2046
|
+
olympe.public.Mc.getToken=olympe.public.Mc.zk;olympe.public.Mc.observeUser=olympe.public.Mc.MY;olympe.public.Mc.getCurrentUser=olympe.public.Mc.VW;olympe.public.Mc.isAuthenticated=olympe.public.Mc.zx;olympe.public.Mc.getState=olympe.public.Mc.getState;olympe.public.Mc.generateSRPData=olympe.public.Mc.DW;olympe.public.Zb=class{static create(a){return new class extends olympe.dc.Da.Zq{C(b,c){b=a(olympe.dc.CloudObject.get(c));if('boolean'===typeof b)return b;const d=olympe.j.Za(olympe.j.ia),e=b.subscribe(f=>d.update(olympe.j.jc(f)));olympe.j.yb().Ve(()=>e.unsubscribe());return d.wa()}}}};
|
|
2047
|
+
olympe.public.Xn=class{static create(a){return new class extends olympe.dc.ug.Zq{O(b,c){return olympe.dc.CloudObject.get(c)}compare(b,c){b=a(b,c);if('number'===typeof b)return b;const d=olympe.j.Za(olympe.j.aa),e=b.subscribe(f=>d.update(olympe.j.Ca(f)));olympe.j.yb().Ve(()=>e.unsubscribe());return d.wa()}}}};olympe.public.el=class{static PY(a,b){if('string'===typeof b)throw Error('When registering a health check, the options parameter should be an object: string is not supported anymore.');return()=>{}}static QY(){return()=>{}}static connect(){return olympe.Y.lE().connect()}static disconnect(){return olympe.Y.lE().disconnect()}static Oo(a){a='function'===typeof a.se?a.se():a;return olympe.Y.lE().Oo().asObservable(a).pipe(rxjs.operators.map(b=>b.valueOf()))}};olympe.public.el.isOnline=olympe.public.el.Oo;
|
|
2048
2048
|
olympe.public.el.disconnect=olympe.public.el.disconnect;olympe.public.el.connect=olympe.public.el.connect;olympe.public.el.onShutdown=olympe.public.el.QY;olympe.public.el.onHealthCheck=olympe.public.el.PY;'object'===typeof exports&&(exports={CloudObject:olympe.dc.CloudObject,Relation:olympe.dc.Pc.Relation,Direction:olympe.dc.Ib,generateTag:olympe.la.Yr,tagToString:olympe.dc.Ya,register:olympe.dc.register,defineProperty:olympe.dc.defineProperty,defineRelation:olympe.dc.fN,defineInverseRelation:olympe.dc.lW,BrickContext:olympe.sc.Fb,Brick:olympe.sc.logic.Function,ActionBrick:olympe.sc.logic.Function,GlobalProperties:olympe.sc.Fb.C,registerBrick:olympe.sc.logic.Ja.C,FunctionBrick:olympe.sc.logic.Function,
|
|
2049
2049
|
Context:olympe.sc.Fb,Entry:olympe.dc.Pc.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.Dp,EnumValue:olympe.sc.Qv,DataSource:olympe.dm.DataSource,DataResult:olympe.dc.query.yi,Workflow:olympe.sc.workflow.Workflow,WorkflowState:olympe.sc.workflow.Dm,WorkflowTransition:olympe.sc.workflow.Transition,
|
|
2050
2050
|
WorkflowObjectState:olympe.sc.workflow.ObjectState,Transaction:olympe.sc.Vc,BurstTransaction:olympe.dc.Kv,TransactionResult:olympe.sc.Dw,PredefinedDataSource:olympe.dc.uc,QueryResult:olympe.dc.zc,Query:olympe.dc.nb,QuerySingle:olympe.dc.Xh,Predicate:olympe.dc.query.Zb,Order:olympe.dc.query.Hz,Config:class{static getParameter(a){return olympe.ta.getParameter(a)}},Process:olympe.public.el,ProbeType:olympe.host.sD.C,Cache:{getCacheEntries:()=>olympe.dc.sources.Kj().T,clearCache:a=>qn(olympe.dc.sources.Kj(),
|
|
2051
2051
|
a),getProcessingStatus:()=>olympe.dc.sources.Kj().mh(),getProcessingErrors:()=>olympe.dc.sources.Kj().Gb.asObservable(),hasPendingChanges:()=>olympe.dc.sources.Kj().ea.asObservable(),synchroniseChanges:()=>wn(),getPendingChanges:()=>zn(),clearPendingChanges:()=>Dn(),loadPendingChanges:a=>Bn(a)},Color:olympe.j.Color,ErrorFlow:olympe.sc.logic.Error,ServiceRequestType:olympe.Y.Mb.C,ServiceRequest:olympe.Y.Wg,Service:olympe.Y.Od,Auth:olympe.public.Mc,AuthState:{INIT:olympe.ya.Ec.C.INIT,AUTHENTICATING:olympe.ya.Ec.C.By,
|
|
2052
2052
|
GUEST:olympe.ya.Ec.C.Tv,AUTHENTICATED:olympe.ya.Ec.C.Tn,ERROR:olympe.ya.Ec.C.we},AuthProtocol:olympe.ya.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,RelationPrimitive:olympe.dm.Relation,DBView:class extends olympe.dc.Ad{static get(){return olympe.dc.eb()}},ListDef:olympe.dc.Kb,
|
|
2053
|
-
instanceToTag:olympe.dc.Ya,registerSync:olympe.dc.Ja.C,getUniqueTag:olympe.la.Yr,onDestroy:a=>olympe.j.
|
|
2053
|
+
instanceToTag:olympe.dc.Ya,registerSync:olympe.dc.Ja.C,getUniqueTag:olympe.la.Yr,onDestroy:a=>olympe.j.yb().onDestroy(a),offDestroy:a=>olympe.j.yb().Ro(a),FollowRules:olympe.dc.Te,transformers:{Related:olympe.dc.Ra.Bm,RecursiveRelated:olympe.dc.Ra.Fj,Distinct:olympe.dc.Ra.Ov,Filter:olympe.dc.Ra.Sf,Limit:olympe.dc.Ra.Gt,Sort:olympe.dc.Ra.Jr,Union:olympe.dc.Ra.yo},ListDefPredicate:olympe.public.Zb,predicates:{And:olympe.dc.Da.Qi,Or:olympe.dc.Da.$k,Not:olympe.dc.Da.nk,Equals:olympe.dc.Da.Qk,Contains:olympe.dc.Da.Zn,
|
|
2054
2054
|
Greater:olympe.dc.Da.hz,Smaller:olympe.dc.Da.Wz,HasRelated:olympe.dc.Da.Bt,InstanceOf:olympe.dc.Da.bw,Regex:olympe.dc.Da.ro},Comparator:olympe.public.Xn,comparators:{Number:olympe.dc.ug.Number,String:olympe.dc.ug.String,DateTime:olympe.dc.ug.DateTime},valuedefs:{BooleanProperty:olympe.dc.dd.Ky,StringProperty:olympe.dc.dd.zw,NumberProperty:olympe.dc.dd.mw,DateTimeProperty:olympe.dc.dd.Nv,Constant:olympe.dc.dd.mm,Tag:olympe.dc.dd.Aw}});'object'===typeof exports&&Object.assign(exports,{VisualBrick:olympe.sc.ui.fc,Theme:olympe.sc.ui.ThemeModel,registerBrick:(a,b,...c)=>{b.prototype instanceof olympe.sc.ui.fc?olympe.dc.Ja.C(a,b,...c):olympe.sc.logic.Ja.C(a,b,...c)},UIBrick:olympe.sc.ui.fc});
|
|
2055
2055
|
|
|
2056
2056
|
|